:root {
  --purple: #400080;
  --purple-2: #6633a0;
  --purple-soft: #efe7f6;
  --red: #b9281d;
  --green: #277a3d;
  --ink: #292730;
  --muted: #625d69;
  --line: #cbc6d2;
  --panel: #f4f4f5;
  --sidebar: 185px;
  --shadow: 0 2px 8px rgba(30, 20, 45, .13);
  font-family: Arial, "Helvetica Neue", sans-serif;
  color: var(--ink);
  background: #fff;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body, #app { min-height: 100%; margin: 0; }
body { font-size: 14px; }
body.has-overlay { overflow: hidden; }
.auth-loading { display: grid; place-items: center; min-height: 100vh; color: var(--purple); }
.account-modal { width: min(1100px, calc(100vw - 32px)); }
.account-modal .summary-grid { grid-template-columns: 1fr 1fr; }
.account-modal .metric { grid-template-columns: minmax(0, 1fr) minmax(100px, 170px); }
.account-modal .metric span { overflow-wrap: anywhere; }
.reconciliation-metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin: 20px 0 28px; }
.dashboard-grid .data-table { min-width: 0; }
.dashboard-grid .data-table th:last-child, .dashboard-grid .data-table td:last-child { width: 108px; text-align: center; }
.table-hint { display: none; }
@media (max-width: 760px) { .table-hint { display: block; margin: 5px 0 8px; color: var(--muted); font-size: 12px; font-weight: 600; } }
.reconciliation-metrics > div { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 18px; border: 1px solid var(--line); border-top: 4px solid var(--purple); background: #fff; }
.reconciliation-metrics strong { color: var(--purple); font-size: 27px; line-height: 1; }
.reconciliation-metrics span { color: var(--muted); line-height: 1.35; }
.reconciliation-metrics .metric-alert { border-top-color: #a5321f; background: #fff7f4; }
.reconciliation-metrics .metric-alert strong { color: #922a18; }
.notice.critical-notice { border-left-color: #a5321f; background: #fff1ec; color: #612015; font-weight: 600; }
.status-badge { display: inline-flex; align-items: center; padding: 4px 8px; border: 1px solid #b9a5cf; border-radius: 4px; color: #35155a; background: #f3eafa; font-size: 12px; font-weight: 700; white-space: nowrap; }
.status-warning { border-color: #d98c70; background: #fff1ec; color: #8c2817; }
.finding-count { color: #912719; font-weight: 700; }
.finding-card { margin: 13px 0; padding: 16px; border: 1px solid #d8b8aa; border-left: 4px solid #a5321f; background: #fffaf8; }
.finding-card h3 { margin: 0 0 5px; font-size: 16px; overflow-wrap: anywhere; }
.finding-card p { margin: 0 0 8px; }
.finding-card li { margin: 5px 0; line-height: 1.45; }
.finding-card details { margin-top: 12px; }
.finding-card summary, .scenario-panel > summary { cursor: pointer; color: var(--purple); font-weight: 700; }
.scenario-panel > summary { padding: 17px; }
.scenario-panel .form-field { max-width: 420px; }
@media (max-width: 900px) { .reconciliation-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 520px) { .reconciliation-metrics { grid-template-columns: 1fr 1fr; gap: 8px; } .reconciliation-metrics > div { padding: 12px; } .reconciliation-metrics strong { font-size: 23px; } }
.welcome span { min-width: 0; overflow-wrap: anywhere; }
img { max-width: 100%; }
.icon { display: inline-block; width: 24px; height: 24px; flex: 0 0 auto; vertical-align: middle; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, .table-scroll:focus-visible { outline: 2px solid var(--purple-2); outline-offset: 3px; }
button:disabled { cursor: not-allowed; opacity: .5; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }

.demo-ribbon {
  position: fixed;
  z-index: 1000;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  padding: 8px 18px;
  border: 1px solid rgba(64, 0, 128, .18);
  border-radius: 999px;
  background: rgba(255,255,255,.94);
  color: var(--purple);
  box-shadow: var(--shadow);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  backdrop-filter: blur(8px);
}

.brand-corner {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 0;
  width: 65px;
  height: 65px;
  color: #fff;
  background: linear-gradient(135deg, #e63048 0 50%, transparent 50%);
}
.brand-corner span { position: absolute; left: 13px; top: 10px; font-size: 20px; font-weight: 800; transform: rotate(-4deg); }

.logo { width: 62px; height: 62px; border-radius: 50%; object-fit: cover; }
.muted { color: var(--muted); }
.purple { color: var(--purple); }
.danger { color: var(--red); }
.success { color: #55b62e; }
.nowrap { white-space: nowrap; }

.btn {
  min-height: 40px;
  padding: 0 22px;
  border: 0;
  border-radius: 3px;
  background: var(--purple);
  color: #fff;
  text-transform: uppercase;
  transition: opacity .18s ease, transform .18s ease;
}
.btn:hover { opacity: .9; }
.btn:active { transform: translateY(1px); }
.btn-secondary { background: #777; }
.btn-danger { background: var(--red); }
.btn-outline { border: 1px solid var(--line); background: #fff; color: var(--ink); }
.btn-small { min-height: 32px; padding: 0 13px; font-size: 12px; }
.btn-store { background: var(--green); text-transform: none; font-size: 16px; }

/* Login */
.auth-screen { min-height: 100vh; display: grid; grid-template-columns: minmax(360px, 1fr) 2fr; background: #fff; }
.auth-panel { position: relative; min-height: 100vh; padding: 30px 50px 28px; display: flex; flex-direction: column; align-items: center; }
.auth-panel .logo { margin-bottom: auto; }
.auth-card { width: min(302px, 100%); margin: auto 0; }
.auth-title { margin: 0 0 8px; text-align: center; font-size: 18px; font-weight: 600; }
.auth-subtitle { margin: 0 0 18px; text-align: center; line-height: 1.5; }
.field-icon { position: relative; margin: 0 0 19px; }
.field-icon input { width: 100%; height: 47px; padding: 0 42px 0 12px; border: 1px solid #ddd; outline: none; }
.field-icon input:focus { border-color: var(--purple); box-shadow: 0 0 0 2px rgba(64,0,128,.08); }
.field-icon .icon-end { position: absolute; top: 50%; right: 14px; transform: translateY(-50%); color: #888; }
.captcha-demo { display: flex; align-items: center; justify-content: space-between; height: 76px; margin: 0 0 20px; padding: 10px 12px; border: 1px solid #d6d6d6; background: #fafafa; box-shadow: 0 1px 2px rgba(0,0,0,.1); }
.captcha-demo label { display: flex; align-items: center; gap: 12px; }
.captcha-demo input { width: 26px; height: 26px; accent-color: var(--purple); }
.captcha-mark { text-align: center; color: #777; font-size: 9px; line-height: 1.1; }
.captcha-mark b { display: block; color: #4b75d1; font-size: 24px; }
.auth-actions { display: grid; grid-template-columns: 1fr 138px; align-items: center; gap: 12px; }
.link-button { border: 0; padding: 0; background: none; color: #666; font-size: 12px; font-weight: 700; text-align: left; }
.register-callout { margin-top: 36px; text-align: center; font-size: 17px; }
.register-callout .btn { display: block; margin: 10px auto 0; }
.auth-footer { margin-top: auto; color: #999; line-height: 1.5; text-align: center; }
.auth-footer a { color: #1684ca; }
.auth-visual { min-height: 100vh; background: #57347b url("assets/login-background.png") center center / cover no-repeat; }
.form-message { min-height: 18px; margin-top: 12px; font-size: 12px; color: var(--red); text-align: center; }

/* Registration */
.register-screen { min-height: 100vh; padding: 70px 20px 54px; background-color: #fbfbfb; background-image: radial-gradient(circle at 0 0, transparent 8px, #ececf0 9px, transparent 10px); background-size: 22px 22px; }
.register-shell { width: min(820px, 100%); margin: 0 auto; padding: 50px 84px; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.35); }
.register-logo { display: block; width: 96px; height: 96px; margin: 0 auto 22px; border-radius: 50%; }
.step-tabs { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 35px; }
.step-tab { padding: 13px; border: 0; background: #ededee; color: #6f7074; font-weight: 700; border-bottom: 3px solid transparent; }
.step-tab.active { background: #d5d5d7; color: #333; border-color: var(--purple); }
.fieldset { position: relative; margin-bottom: 35px; padding: 40px 10px 22px; border: 1px solid #aaa; }
.legend { position: absolute; top: -1px; left: -1px; padding: 14px 16px; background: var(--purple); color: #fff; text-transform: uppercase; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 30px; }
.form-grid .wide { grid-column: 1 / -1; }
.form-field label { display: block; margin-bottom: 7px; color: #999; font-weight: 700; }
.form-field input, .form-field select, .form-field textarea { width: 100%; min-height: 42px; padding: 10px; border: 1px solid #d7d7d7; background: #fff; outline: none; }
.form-field textarea { min-height: 100px; resize: vertical; }
.choice-row { display: flex; gap: 8px; }
.choice { padding: 10px; border: 1px solid #bbb; background: #fff; color: #888; }
.choice.active { border-color: #8b8b8b; background: #8b8b8b; color: #fff; }
.register-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.plan-card { padding: 24px 16px; border: 1px solid var(--line); text-align: center; }
.plan-card.selected { border: 2px solid var(--purple); box-shadow: 0 0 0 4px var(--purple-soft); }
.plan-card h3 { margin: 0 0 12px; color: var(--purple); }

/* Admin shell */
.admin-shell { min-height: 100vh; background: #fff; }
.admin-header { position: fixed; z-index: 80; top: 0; left: var(--sidebar); right: 0; height: 108px; padding: 20px 16px 10px 30px; background: #fff; }
.admin-header-row { display: grid; grid-template-columns: 1fr 55px 95px; gap: 7px; height: 45px; }
.welcome { display: flex; align-items: center; gap: 10px; padding: 0 12px; background: #f5f5f6; color: #3e3945; }
.header-icon { display: grid; place-items: center; border: 0; background: #d2d3d5; color: #fff; }
.logout { display: grid; place-items: center; border: 0; background: var(--red); color: #fff; font-weight: 700; text-transform: uppercase; }
.version { margin-top: 12px; color: var(--purple); font-size: 10px; text-align: right; }
.mobile-menu { display: none; }

.sidebar { position: fixed; z-index: 90; inset: 0 auto 0 0; width: var(--sidebar); padding: 0 14px 18px; background: #fff; overflow-y: auto; }
.sidebar-head { height: 112px; display: grid; place-items: center; }
.sidebar-head .logo { width: 62px; height: 62px; }
.nav-list { display: grid; gap: 2px; }
.nav-item { min-height: 92px; padding: 12px 6px; border: 0; border-left: 3px solid transparent; background: #f4f4f5; color: #55515d; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; text-align: center; }
.nav-item svg { width: 31px; height: 31px; stroke-width: 1.45; }
.nav-item.active { border-left-color: #b99bda; background: var(--purple); color: #fff; font-weight: 700; }
.nav-item:hover { color: var(--purple); }
.nav-item.active:hover { color: #fff; }

.admin-main { margin-left: var(--sidebar); padding: 125px 15px 88px 30px; min-height: 100vh; }
.page-title { margin: 0 0 14px; padding-bottom: 20px; border-bottom: 1px solid var(--purple); color: var(--purple); font-size: 24px; font-weight: 700; text-transform: uppercase; }
.admin-footer { margin: 35px 0 0; color: #454545; line-height: 1.5; text-align: center; }
.admin-footer a { color: #2588cc; }

.panel { margin: 20px 0; border: 1px solid #d9d9dc; background: #fff; }
.panel-title { padding: 17px 12px 12px; border-bottom: 1px solid #e4e4e7; color: var(--purple); font-size: 17px; text-transform: uppercase; }
.panel-body { padding: 20px 12px; }
.panel-soft { border: 0; background: #f3f3f4; }
.section-cap { display: flex; align-items: center; gap: 12px; margin: 26px 0 14px; color: #dd482e; font-size: 14px; font-weight: 600; text-align: center; }
.section-cap::before, .section-cap::after { content: ""; flex: 1; height: 1px; background: var(--purple); }

.filter-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px 24px; }
.filter-field label { display: block; margin-bottom: 7px; color: #444; font-size: 12px; font-weight: 700; }
.filter-field input, .filter-field select { width: 100%; height: 38px; padding: 0 12px; border: 1px solid #ddd; background: #fff; color: #666; }
.filter-actions { display: grid; grid-template-columns: 215px 215px; gap: 24px; grid-column: 1 / -1; margin-top: 10px; }
.filter-actions .btn { min-height: 39px; text-transform: none; }

.table-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin: 13px 0; }
.status-key { display: flex; align-items: center; gap: 14px; font-size: 12px; }
.dot { display: inline-block; width: 10px; height: 10px; margin-right: 4px; border-radius: 50%; }
.dot.green { background: #79d33f; }
.dot.red { background: #f45b63; }
.table-toolbar select { height: 35px; min-width: 210px; padding: 0 12px; border: 1px solid #ddd; background: #fff; }
.table-scroll { width: 100%; overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; min-width: 760px; }
.data-table th { padding: 15px 10px; background: #f6f6f7; color: #252525; font-size: 12px; text-align: left; }
.data-table td { padding: 14px 10px; border: 1px solid #d9d5df; color: #37333c; vertical-align: middle; }
.data-table tbody tr:hover td { background: #faf8fd; }
.empty-row td { padding: 58px 20px; text-align: center; color: #615d66; }
.action-row { display: flex; align-items: center; gap: 7px; }
.icon-action { width: 31px; height: 31px; display: grid; place-items: center; border: 0; background: transparent; color: #7c7d81; }
.icon-action:hover { color: var(--purple); }
.row-select { height: 35px; min-width: 120px; padding: 0 8px; border: 1px solid #ddd; background: #fff; color: #777; }
.pagination { display: flex; justify-content: flex-end; gap: 5px; margin-top: 14px; }
.page-button { min-width: 28px; height: 28px; border: 0; background: #eee5f7; color: var(--purple); }
.page-button.active { background: var(--purple); color: #fff; }

.dashboard-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 30px; }
.chart-box { min-height: 280px; }
.bar-chart { height: 180px; margin: 15px 24px 0; border-bottom: 1px solid #aaa; display: flex; align-items: end; gap: 35px; padding: 0 20px; background: repeating-linear-gradient(to top, #fff 0 44px, #e5e5e8 45px); }
.bar { width: 43%; height: 52%; background: #4786e9; border-radius: 2px 2px 0 0; }
.pie-wrap { min-height: 200px; display: grid; place-items: center; }
.pie { width: 125px; height: 125px; border-radius: 50%; background: conic-gradient(#316dcb 0 4%, #e43211 4% 100%); position: relative; }
.pie::after { content: "dados de demonstração"; position: absolute; left: 50%; bottom: -30px; transform: translateX(-50%); width: 170px; color: #999; font-size: 10px; text-align: center; }
.summary-box { margin-top: 28px; background: #f6f6f7; }
.summary-title { display: flex; justify-content: space-between; padding: 11px 15px; border-bottom: 3px solid var(--purple); font-size: 18px; color: #6f7073; }
.summary-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5px 40px; padding: 20px; }
.metric { display: grid; grid-template-columns: 1fr 160px; gap: 5px; }
.metric span { min-height: 40px; padding: 12px; background: #fff; }
.metric span:last-child { text-align: center; }

.tile-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 22px; }
.feature-tile { min-height: 145px; padding: 24px; border: 1px solid #ddd; background: #fff; color: #777; display: flex; flex-direction: column; justify-content: space-between; box-shadow: 0 1px 2px rgba(0,0,0,.03); }
.feature-tile:hover { border-color: var(--purple); box-shadow: 0 4px 14px rgba(64,0,128,.1); }
.feature-tile h3 { margin: 0; color: var(--purple); font-size: 17px; text-transform: uppercase; }
.feature-tile p { margin: 8px 0 0; line-height: 1.5; }
.feature-tile .tile-arrow { align-self: flex-end; color: var(--purple); font-size: 22px; }
.group-title { margin: 30px 0 8px; padding: 9px 12px; border-left: 4px solid var(--purple); background: #f4f4f5; color: var(--purple); font-size: 17px; text-transform: uppercase; }

.network-card { display: flex; align-items: center; gap: 24px; width: min(510px, 100%); margin: 40px auto; padding: 35px; border: 1px solid var(--line); background: #fafafa; }
.network-visual { min-width: 105px; height: 105px; border-radius: 50%; display: grid; place-items: center; background: var(--purple-soft); color: var(--purple); }
.network-visual svg { width: 62px; height: 62px; }
.network-card h3 { margin: 0 0 8px; color: var(--purple); text-transform: uppercase; }

.tabs { display: flex; gap: 2px; margin: 18px 0 0; overflow-x: auto; }
.tab { padding: 12px 18px; border: 0; border-bottom: 3px solid transparent; background: #eee; color: #666; white-space: nowrap; }
.tab.active { border-color: var(--purple); background: #d8d8da; color: #222; font-weight: 700; }

/* Modal / toast */
.modal-backdrop { position: fixed; z-index: 1100; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(18,10,26,.62); }
.modal { width: min(680px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; background: #fff; box-shadow: 0 18px 60px rgba(0,0,0,.3); }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.modal-header h3 { margin: 0; color: var(--purple); text-transform: uppercase; }
.modal-close { border: 0; background: none; color: #777; font-size: 24px; }
.modal-body { padding: 24px 22px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; padding: 0 22px 22px; }
.notice { margin: 15px 0; padding: 13px 15px; border-left: 4px solid var(--purple); background: #f5f0fa; line-height: 1.5; }
.toast { position: fixed; z-index: 1300; right: 22px; bottom: 62px; max-width: 360px; padding: 14px 18px; border-radius: 3px; background: #28242e; color: #fff; box-shadow: var(--shadow); }

/* Store */
.store-page { min-height: 100vh; background: #f5f6f7; }
.store-header { height: 160px; background: #fff; }
.store-head-main { height: 112px; width: min(1015px, calc(100% - 40px)); margin: 0 auto; display: grid; grid-template-columns: 100px 1fr auto; gap: 45px; align-items: center; }
.store-logo { width: 70px; height: 70px; border-radius: 50%; }
.store-search { position: relative; }
.store-search input { width: 100%; height: 41px; padding: 0 16px 0 38px; border: 1px solid #ddd; box-shadow: 0 2px 4px rgba(0,0,0,.08); font-size: 16px; }
.store-search span { position: absolute; left: 12px; top: 11px; color: #aaa; }
.store-account { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.store-nav { height: 48px; display: grid; place-items: center; border-bottom: 1px solid #d8d8dc; }
.hero-banner { width: 100%; aspect-ratio: 2000 / 600; max-height: 430px; object-fit: cover; display: block; }
.store-content { width: min(1160px, calc(100% - 40px)); margin: 0 auto; padding: 0 0 40px; }
.store-section-title { margin: -12px 0 55px; color: #666; font-size: 38px; letter-spacing: 2px; text-align: center; text-transform: uppercase; }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.product-card { border: 1px solid #ddd; border-radius: 4px; background: #fff; overflow: hidden; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.product-card img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.product-body { padding: 16px 12px 12px; }
.product-category { color: #777; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; }
.product-name { height: 42px; margin: 8px 0 15px; font-size: 16px; line-height: 1.3; overflow: hidden; }
.product-price { margin: 0 0 8px; font-size: 20px; }
.product-points { margin: 0 0 16px; color: #777; font-size: 11px; }
.product-card .btn { width: 100%; }
.store-more { display: block; margin: 8px 10px 0 auto; border: 0; background: transparent; color: #666; font-size: 15px; font-weight: 700; }
.product-description { min-height: 3.2em; color: #777; font-size: 13px; line-height: 1.55; }
.course-detail-image { display: block; width: min(220px, 100%); max-height: 220px; object-fit: contain; margin: 0 auto 18px; }
.store-footer { padding: 55px 0 36px; background: #898a8c; color: #cfd0d2; }
.store-footer-grid { width: min(1160px, calc(100% - 40px)); margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 45px; }
.store-footer h3 { color: #fff; font-size: 16px; font-weight: 400; letter-spacing: 1px; }
.store-footer p, .store-footer li { line-height: 1.7; }
.store-footer ul { list-style: none; padding: 0; }
.store-copy { margin: 45px 0 0; text-align: center; }
.cart-drawer { position: fixed; z-index: 1000; top: 0; right: 0; width: min(430px, 100%); height: 100vh; padding: 24px; background: #fff; box-shadow: -12px 0 40px rgba(0,0,0,.22); overflow-y: auto; }
.cart-head { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); }
.cart-item { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-item img { width: 56px; height: 56px; object-fit: cover; }

@media (max-width: 1050px) {
  .dashboard-grid { grid-template-columns: 1fr; gap: 0; }
  .tile-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .store-head-main { grid-template-columns: 70px 1fr auto; gap: 20px; }
  .store-head-main .store-account:first-of-type { display: none; }
  .summary-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  :root { --sidebar: 0px; }
  .demo-ribbon { bottom: 8px; max-width: calc(100% - 20px); overflow: hidden; text-overflow: ellipsis; }
  .auth-screen { display: block; }
  .auth-panel { min-height: 100vh; padding: 30px 22px 65px; }
  .auth-panel .logo { margin-bottom: 70px; }
  .auth-visual { display: none; }
  .auth-footer { margin-top: 70px; }
  .register-screen { padding: 20px 10px 65px; }
  .register-shell { padding: 30px 18px; }
  .form-grid, .register-actions, .plan-grid { grid-template-columns: 1fr; }
  .form-grid .wide { grid-column: auto; }
  .admin-header { left: 0; height: 78px; padding: 12px 10px; border-bottom: 1px solid var(--line); }
  .admin-header-row { height: 48px; grid-template-columns: 48px 1fr 66px; }
  .mobile-menu { display: grid; place-items: center; border: 0; background: var(--purple); color: #fff; }
  .header-icon, .version { display: none; }
  .welcome { font-size: 12px; }
  .sidebar { transform: translateX(-105%); width: 185px; padding-top: 0; box-shadow: 12px 0 30px rgba(0,0,0,.18); transition: transform .22s ease; }
  .sidebar.open { transform: translateX(0); }
  .sidebar-scrim { position: fixed; z-index: 85; inset: 0; background: rgba(0,0,0,.35); }
  .admin-main { margin-left: 0; padding: 96px 14px 80px; }
  .page-title { font-size: 20px; }
  .filter-grid { grid-template-columns: 1fr; }
  .filter-actions { grid-column: auto; grid-template-columns: 1fr 1fr; gap: 10px; }
  .filter-actions .btn { padding: 0 10px; }
  .tile-grid { grid-template-columns: 1fr; }
  .summary-grid { padding: 12px; }
  .metric { grid-template-columns: 1fr 105px; }
  .table-toolbar { align-items: flex-start; flex-direction: column; }
  .network-card { align-items: flex-start; flex-direction: column; }
  .store-header { height: auto; }
  .store-head-main { width: calc(100% - 24px); height: auto; padding: 14px 0; grid-template-columns: 60px 1fr auto; gap: 10px; }
  .store-logo { width: 54px; height: 54px; }
  .store-search { grid-row: 2; grid-column: 1 / -1; }
  .store-account { font-size: 0; }
  .store-account span { font-size: 24px; }
  .store-nav { height: 42px; }
  .hero-banner { aspect-ratio: 16 / 6; object-position: center; }
  .store-content { width: calc(100% - 24px); }
  .store-section-title { margin: 20px 0 24px; font-size: 26px; }
  .product-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .product-body { padding: 12px 9px 9px; }
  .product-name { font-size: 14px; }
  .product-price { font-size: 17px; }
  .product-points { height: 28px; }
  .product-card .btn { padding: 0 6px; font-size: 12px; }
  .store-footer-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
}

@media (max-width: 430px) {
  .product-grid { grid-template-columns: 1fr; }
  .store-footer-grid { grid-template-columns: 1fr; }
}

/* Revisão dos painéis: mesma identidade, dimensões estáveis e perfis separados. */
.admin-header-row { display: flex; align-items: stretch; gap: 10px; }
.welcome { flex: 1; min-width: 0; }
.welcome > span { min-width: 0; overflow-wrap: anywhere; }
.welcome small { display: block; margin-top: 3px; color: #666; font-size: 11px; line-height: 1.4; }
.logout { width: 82px; flex: 0 0 auto; }
.switch-profile { flex: 0 0 auto; }
.admin-main { min-width: 0; }
.page-title { overflow-wrap: anywhere; line-height: 1.3; }
.panel, .panel-body, .form-field, .filter-field, .dashboard-grid > *, .summary-grid > *, .metric > *, .form-grid > *, .tile-grid > * { min-width: 0; }
.panel-body > p { line-height: 1.6; }
.chart-box .panel-body { padding: 16px 10px; }
.chart-box .panel-body > p { margin: 8px 0 16px; line-height: 1.2; }
.chart-box .bar-chart { height: 130px; margin-top: 12px; }
.form-field label { color: #59595e; font-size: 13px; line-height: 1.5; }
.form-field input, .form-field select, .form-field textarea { color: #444; font-size: 14px; border-radius: 0; }
.form-actions, .page-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 12px; margin: 20px 0 0; }
.page-actions { justify-content: space-between; margin: 0 0 20px; }
.page-actions p { flex: 1; line-height: 1.5; }
.form-feedback { margin-top: 16px; color: #a42624; line-height: 1.6; }
.form-feedback:empty { display: none; }
.form-feedback ul { margin: 0; padding-left: 20px; }
.notice { overflow-wrap: anywhere; }
.data-table td { line-height: 1.5; }
.data-table input { width: 100%; min-width: 90px; min-height: 40px; padding: 8px; border: 1px solid #d7d7d7; color: #444; }
.data-table .structure-input { min-width: 290px; }
.table-scroll { max-width: 100%; }
.pagination { align-items: center; color: #777; font-size: 12px; }
.page-button { display: grid; place-items: center; }
.metric { align-items: stretch; }
.metric span { overflow-wrap: anywhere; line-height: 1.4; }
.feature-tile { text-align: left; }
.tile-arrow .icon { width: 24px; height: 24px; }
.nav-item.active { color: #400080; background: #e9e1f1; }
.nav-item.active:hover { color: #400080; }
.nav-item span { line-height: 1.35; }
.unilevel-fields { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.budget-totals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: 18px 0; background: #dedee2; border: 1px solid #dedee2; }
.budget-totals > div { padding: 14px; background: #fff; }
.budget-totals dt { color: #666; font-size: 12px; line-height: 1.5; }
.budget-totals dd { margin: 6px 0 0; font-size: 19px; font-weight: 700; color: #400080; overflow-wrap: anywhere; }
.simulation-result { padding: 18px; margin: 20px 0 0; border: 1px solid #d8cce5; background: #fcfaff; line-height: 1.6; }
.simulation-result h3 { margin: 0 0 10px; color: #400080; font-size: 17px; }
.simulation-result p:last-child { margin-bottom: 0; }
.result-error { border-color: #dba39c; background: #fff8f7; }
.result-error h3 { color: #a42624; }
.result-success { border-color: #a7c7ad; background: #f7fcf8; }
.result-success h3 { color: #236831; }
.package-editor { padding: 24px 18px; margin: 12px 0 28px; border: 1px solid #dedee2; }
.package-editor legend { padding: 0 8px; color: #400080; font-size: 17px; font-weight: 700; }
.referral-row { padding: 22px 0; border-bottom: 1px solid #dedee2; }
.referral-row h2 { margin: 0 0 12px; font-size: 16px; color: #400080; }
.copy-row { display: flex; gap: 12px; align-items: center; }
.copy-row input { flex: 1; min-width: 0; height: 40px; padding: 10px; border: 1px solid #d7d7d7; color: #555; }
.copy-row .btn { display: inline-flex; align-items: center; justify-content: center; }
.course-row { display: flex; gap: 20px; align-items: center; padding: 20px 0; border-bottom: 1px solid #dedee2; }
.course-row img { width: 72px; height: 72px; flex: 0 0 auto; object-fit: cover; }
.course-row > div { flex: 1; min-width: 0; }
.course-row h3 { margin: 0; font-size: 16px; color: #400080; line-height: 1.5; }
.course-row p { margin: 6px 0 0; line-height: 1.5; }
.example-actions { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 22px; }
.auth-role { margin: 0 0 18px; }
.auth-help { color: #777; font-size: 11px; line-height: 1.5; margin: -5px 0 16px; }
.password-toggle { position: absolute; top: 0; right: 0; width: 44px; height: 47px; display: grid; place-items: center; border: 0; background: transparent; color: #777; }
.password-toggle .icon { width: 20px; height: 20px; }
.store-entry { display: block; margin: 24px auto 0; color: #400080; text-align: center; }
.signup-role { margin-bottom: 20px; }
.plan-card p { line-height: 1.5; }
.plan-card span { display: block; font-size: 12px; line-height: 1.6; }
.store-account { border: 0; background: transparent; color: #555; padding: 8px 0; }
.store-intro { text-align: center; color: #666; line-height: 1.6; margin: -30px 0 28px; }
.footer-link { border: 0; padding: 0; color: inherit; background: transparent; text-align: left; }
.cart-scrim { position: fixed; z-index: 999; inset: 0; background: rgba(18,10,26,.45); }
.cart-drawer { padding-bottom: 90px; }
.cart-total { padding-top: 18px; font-size: 20px; font-weight: 700; }
.toast { max-width: min(420px, calc(100vw - 28px)); line-height: 1.5; overflow-wrap: anywhere; }
.check-field { display: flex !important; align-items: flex-start; gap: 10px; }
.form-field .check-field input { width: 18px; min-height: 18px; flex: 0 0 auto; margin: 3px 0 0; }

/* Área de estudo — identidade Imbyser, navegação compacta e conteúdo em foco. */
.member-shell { --member-sidebar: 212px; color: #25213a; }
.member-shell .sidebar { width: var(--member-sidebar); padding: 0 12px 24px; border-right: 1px solid #eeebf2; }
.member-shell .sidebar-head { height: 102px; }
.member-shell .nav-list { gap: 5px; }
.member-shell .nav-item { min-height: 48px; padding: 10px 12px; flex-direction: row; justify-content: flex-start; gap: 12px; border: 0; border-radius: 7px; background: transparent; color: #4c4859; text-align: left; font-size: 13px; }
.member-shell .nav-item svg { width: 21px; height: 21px; stroke-width: 1.7; }
.member-shell .nav-item.active { background: #eee6f8; color: #400080; }
.member-shell .nav-item:hover { background: #f7f3fb; color: #400080; }
.member-shell .admin-header { left: var(--member-sidebar); height: 86px; padding: 15px 30px; border-bottom: 1px solid #efedf2; }
.member-shell .admin-header-row { grid-template-columns: 1fr auto auto; }
.member-shell .welcome { justify-self: end; background: transparent; color: #332f40; font-size: 14px; }
.member-shell .welcome small { color: #817b8b; }
.member-shell .version { display: none; }
.member-shell .admin-main { margin-left: var(--member-sidebar); padding: 112px clamp(20px,3vw,52px) 90px; }
.member-shell .page-title { margin: 0 0 24px; padding: 0; border: 0; color: #211b32; font-size: clamp(25px,2.3vw,32px); line-height: 1.15; letter-spacing: -.025em; text-transform: none; }
.member-shell .btn { min-height: 42px; border-radius: 7px; text-transform: none; font-weight: 700; }
.member-shell .link-button, .learning-area .link-button { color: #400080; font-size: 13px; }
.member-shell .admin-footer { margin-top: 64px; color: #908a98; font-size: 12px; }
.learning-area { width: min(1250px,100%); margin: 0 auto; min-width: 0; }
.learning-area h2,.learning-area h3,.learning-area h4 { letter-spacing: -.02em; }
.learning-hero { min-height: 300px; border-radius: 16px; display: flex; align-items: center; overflow: hidden; background: #171221 url('assets/member-library-hero.png') center 48% / cover no-repeat; box-shadow: 0 14px 36px rgba(29,20,45,.12); }
.learning-hero-copy { width: min(560px,100%); padding: 34px clamp(26px,3vw,56px); color: #fff; }
.learning-hero-copy > p { margin: 0 0 12px; font-size: 15px; line-height: 1.45; }
.learning-hero-copy h2 { margin: 0 0 18px; font-size: clamp(26px,2.7vw,39px); line-height: 1.16; color: #fff; }
.learning-hero-copy > span { display: block; margin-bottom: 10px; font-size: 14px; }
.learning-hero .btn { margin-top: 23px; background: #5200a8; }
.learning-progress { height: 7px; border-radius: 99px; background: #e8e3ee; overflow: hidden; }
.learning-progress > span { display: block; height: 100%; border-radius: inherit; background: #8247d5; transition: width .25s ease; }
.learning-hero .learning-progress { width: min(360px,100%); background: rgba(255,255,255,.36); }
.learning-hero .learning-progress > span { background: #b78af5; }
.learning-section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin: 36px 0 16px; }
.learning-section-head h2 { margin: 0; color: #211b32; font-size: 22px; }
.learning-section-head p { margin: 6px 0 0; color: #706b78; line-height: 1.5; }
.learning-search input { width: min(260px,40vw); height: 42px; padding: 0 14px; border: 1px solid #dad5e1; border-radius: 9px; color: #211b32; }
.learning-course-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(240px,1fr)); gap: 18px; }
.learning-course-card { min-width: 0; overflow: hidden; border: 1px solid #ece9ef; border-radius: 11px; background: #fff; box-shadow: 0 4px 18px rgba(28,18,44,.035); }
.learning-cover { position: relative; height: 165px; background: #f3edf9; overflow: hidden; }
.learning-cover img { width: 100%; height: 100%; object-fit: cover; }
.learning-cover .learning-card-count { position: absolute; right: 9px; bottom: 9px; padding: 5px 8px; border-radius: 5px; background: rgba(23,15,34,.82); color: #fff; font-size: 11px; }
.learning-card-content { padding: 17px; }
.learning-card-content h3 { min-height: 2.5em; margin: 0 0 9px; font-size: 17px; line-height: 1.25; color: #241e35; }
.learning-card-content p { min-height: 2.8em; margin: 0 0 16px; color: #706b78; font-size: 13px; line-height: 1.45; }
.learning-card-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 13px; }
.learning-card-foot small { color: #77707f; font-size: 12px; }
.learning-empty { padding: 30px 24px; border: 1px solid #e8e2ef; border-radius: 12px; background: #fcfaff; }
.learning-empty h2 { margin: 0 0 8px; color: #332544; font-size: 19px; }
.learning-empty p { max-width: 640px; margin: 0; color: #6c6377; line-height: 1.6; }
.learning-empty-search { padding: 28px 0; color: #777; }
.learning-footnote { margin: 22px 0; color: #77707f; font-size: 13px; line-height: 1.5; }
.learning-end-action { margin-top: 22px; }
.learning-breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin-bottom: 20px; color: #817a8a; font-size: 13px; }
.learning-course-head { display: flex; justify-content: space-between; gap: 30px; align-items: end; margin-bottom: 26px; }
.learning-course-head h2 { margin: 0 0 8px; color: #211b32; font-size: clamp(25px,2.4vw,34px); }
.learning-course-head p { margin: 0; color: #716b79; line-height: 1.5; }
.learning-course-head > div:last-child { width: 170px; flex: 0 0 170px; text-align: right; }
.learning-course-head strong { display: block; font-size: 23px; color: #400080; }
.learning-course-head span { display: block; margin: 0 0 8px; color: #716b79; font-size: 12px; }
.learning-detail-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(260px,330px); gap: 28px; align-items: start; }
.learning-primary { min-width: 0; }
.learning-primary > h3 { margin: 0 0 15px; color: #241e35; font-size: 21px; }
.learning-media { width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 12px; background: #191421; }
.learning-media.is-reading { min-height: 220px; aspect-ratio: auto; background: #fcfaff; }
.learning-player { width: 100%; height: 100%; border: 0; display: block; background: #151118; }
.learning-media-empty { height: 100%; padding: 24px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #f5f2f7; text-align: center; }
.learning-media-empty h3 { color: #fff; }
.learning-media-symbol { font-size: 55px; color: #caa8f4; }
.learning-reading { width: 100%; min-height: 220px; padding: 28px; overflow: auto; background: #fcfaff; color: #292334; font-size: 16px; line-height: 1.75; }
.learning-lesson-description { margin: 19px 0 0; color: #686172; line-height: 1.65; }
.learning-lesson-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 28px; }
.learning-resources { margin-top: 30px; }
.learning-resources h4 { margin: 0 0 12px; color: #241e35; font-size: 18px; }
.learning-resources p { color: #746d7d; }
.learning-resource { display: flex; align-items: center; gap: 15px; padding: 14px 16px; border: 1px solid #ebe7ef; border-radius: 9px; margin-bottom: 9px; color: #3c3548; }
.learning-resource > span:first-child { color: #672bb1; font-size: 27px; }
.learning-resource > span:nth-child(2) { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.learning-resource b,.learning-resource small { display: block; }
.learning-resource small { margin-top: 4px; color: #807988; }
.learning-resource > span:last-child { color: #400080; font-weight: 700; white-space: nowrap; }
.learning-outline { border: 1px solid #e8e2ef; border-radius: 11px; background: #fff; overflow: hidden; }
.learning-outline-head { padding: 17px; border-bottom: 1px solid #ebe7ef; }
.learning-outline-head h3 { margin: 0; font-size: 17px; }
.learning-outline-head p { margin: 6px 0 0; color: #77717e; font-size: 12px; }
.learning-module { border-bottom: 1px solid #eeeaf2; }
.learning-module:last-child { border-bottom: 0; }
.learning-module summary { min-height: 56px; padding: 11px 15px; display: flex; align-items: center; justify-content: space-between; cursor: pointer; list-style: none; }
.learning-module summary::-webkit-details-marker { display: none; }
.learning-module summary b,.learning-module summary small { display: block; }
.learning-module summary b { color: #332b3f; font-size: 13px; }
.learning-module summary small { margin-top: 4px; color: #827b88; font-size: 11px; }
.learning-module[open] summary > span:last-child { transform: rotate(180deg); }
.learning-lesson-link { width: 100%; min-height: 56px; padding: 8px 14px; border: 0; display: flex; align-items: center; gap: 10px; background: #fff; color: #393143; text-align: left; }
.learning-lesson-link:hover,.learning-lesson-link.is-active { background: #f2ebfa; color: #400080; }
.learning-lesson-icon { width: 24px; height: 24px; flex: 0 0 24px; border: 1px solid #bda3dc; border-radius: 50%; display: grid; place-items: center; color: #5a169e; font-size: 11px; }
.learning-lesson-link b,.learning-lesson-link small { display: block; }
.learning-lesson-link b { font-size: 12px; line-height: 1.3; }
.learning-lesson-link small { margin-top: 4px; color: #89818e; font-size: 11px; }
.learning-module-empty { margin: 0; padding: 14px; color: #81798b; font-size: 13px; }
/* A experiência de estudo ocupa a página inteira, para qualquer curso. */
.member-shell:has(.learning-library),.member-shell:has(.learning-detail) { min-height: 100vh; background: #100e19; color: #f8f5fc; }
.member-shell:has(.learning-library) .sidebar,.member-shell:has(.learning-detail) .sidebar { border-color: #272235; background: #151220; }
.member-shell:has(.learning-library) .admin-header,.member-shell:has(.learning-detail) .admin-header { border-color: #272235; background: #151220; }
.member-shell:has(.learning-library) .welcome,.member-shell:has(.learning-detail) .welcome { color: #f7f2ff; }
.member-shell:has(.learning-library) .welcome small,.member-shell:has(.learning-detail) .welcome small { color: #aaa1b9; }
.member-shell:has(.learning-library) .nav-item,.member-shell:has(.learning-detail) .nav-item { color: #c0b8ce; }
.member-shell:has(.learning-library) .nav-item.active,.member-shell:has(.learning-detail) .nav-item.active { background: #372550; color: #eadbff; }
.member-shell:has(.learning-library) .nav-item:hover,.member-shell:has(.learning-detail) .nav-item:hover { background: #292036; color: #fff; }
.member-shell:has(.learning-library) .page-title,.member-shell:has(.learning-detail) .page-title { color: #fff; }
.member-shell:has(.learning-library) .admin-footer,.member-shell:has(.learning-detail) .admin-footer { color: #898195; }
.learning-library { width: min(1280px,100%); color: #fff; }
.learning-hero { position: relative; min-height: 380px; isolation: isolate; background: #211a34; box-shadow: 0 22px 40px rgba(0,0,0,.18); }
.learning-hero-image { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.learning-hero::after { position: absolute; z-index: -1; inset: 0; content: ''; background: linear-gradient(90deg,rgba(12,9,23,.96) 0%,rgba(13,10,25,.86) 36%,rgba(15,11,26,.35) 70%,rgba(15,11,26,.12) 100%); }
.learning-hero .learning-hero-copy { position: relative; z-index: 1; width: min(620px,68%); padding: clamp(30px,4vw,58px); }
.learning-hero-kicker { display: inline-block; margin-bottom: 16px !important; color: #d7b7ff; font-size: 11px !important; font-weight: 800; letter-spacing: .16em; }
.learning-hero .learning-hero-copy h2 { margin-bottom: 12px; font-size: clamp(34px,4vw,55px); font-weight: 800; letter-spacing: -.045em; }
.learning-hero .learning-hero-copy p { max-width: 540px; color: #d4cbdf; line-height: 1.5; }
.learning-hero .btn { background: #fff; color: #351468; }
.learning-hero .btn:hover { background: #efe2ff; }
.learning-hero .learning-progress { margin-top: 12px; background: rgba(255,255,255,.27); }
.learning-section-head h2 { color: #fff; font-size: 25px; }
.learning-section-head p { color: #a9a1b6; }
.learning-library .learning-search input { border-color: #3a304c; background: #201a30; color: #fff; }
.learning-library .learning-search input::placeholder { color: #b4aabe; }
.learning-library .learning-course-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.learning-library .learning-course-card { border: 1px solid #352d44; border-radius: 13px; background: #1b1728; box-shadow: 0 13px 26px rgba(0,0,0,.14); transition: transform .2s ease,border-color .2s ease,box-shadow .2s ease; }
.learning-library .learning-course-card:hover { transform: translateY(-5px); border-color: #9e6bea; box-shadow: 0 20px 32px rgba(0,0,0,.27); }
.learning-library .learning-cover { height: 185px; background: #29213b; }
.learning-library .learning-card-content h3 { min-height: 0; color: #fff; font-size: 18px; }
.learning-library .learning-card-content p { min-height: 3em; color: #b4adbe; }
.learning-library .learning-card-foot small { color: #b7aeca; }
.learning-library .learning-card-foot .link-button { color: #d6b8ff; font-weight: 700; }
.learning-library .learning-progress { background: #3b324a; }
.learning-library .learning-progress > span { background: #b480ff; }
.learning-library .learning-empty,.learning-library .learning-empty-search { border-color: #352d44; background: #1b1728; color: #c9c1d2; }
.learning-library .learning-empty h2 { color: #fff; }
.learning-library .learning-empty p { color: #b4adbe; }
.learning-library .learning-end-action .btn { border-color: #76618d; color: #eee3ff; }
.learning-detail .learning-breadcrumb,.learning-detail .learning-course-head p,.learning-detail .learning-course-head span { color: #a9a1b6; }
.learning-detail .learning-breadcrumb .link-button { color: #d6b8ff; }
.learning-detail .learning-course-head h2,.learning-detail .learning-primary > h3,.learning-detail .learning-resources h4 { color: #fff; }
.learning-detail .learning-course-head strong { color: #d1a9ff; }
.learning-detail .learning-media { border-radius: 13px; box-shadow: 0 18px 35px rgba(0,0,0,.22); }
.learning-detail .learning-reading { background: #211b2e; color: #f6f1fc; }
.learning-detail .learning-lesson-description,.learning-detail .learning-resources p { color: #b4adbe; }
.learning-detail .learning-outline { border-color: #352d44; background: #1b1728; }
.learning-detail .learning-outline-head,.learning-detail .learning-module { border-color: #352d44; }
.learning-detail .learning-outline-head h3,.learning-detail .learning-module summary b,.learning-detail .learning-lesson-link b { color: #fff; }
.learning-detail .learning-outline-head p,.learning-detail .learning-module summary small,.learning-detail .learning-lesson-link small { color: #aaa0b8; }
.learning-detail .learning-lesson-link { background: #1b1728; color: #eee6f5; }
.learning-detail .learning-lesson-link:hover,.learning-detail .learning-lesson-link.is-active { background: #35254d; color: #fff; }
.learning-detail .learning-lesson-icon { border-color: #8d6cac; color: #d7b7ff; }
.learning-video-poster { position: relative; width: 100%; height: 100%; border: 0; padding: 24px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 17px; overflow: hidden; cursor: pointer; background: radial-gradient(circle at 70% 27%,rgba(137,74,221,.5),transparent 31%),linear-gradient(135deg,#171129,#35235b 58%,#121d37); color: #fff; }
.learning-video-poster::before { position: absolute; right: 8%; bottom: -20%; content: '▶'; color: rgba(255,255,255,.045); font-size: clamp(160px,25vw,350px); transform: rotate(-10deg); pointer-events: none; }
.learning-video-poster-mark { position: relative; z-index: 1; width: 78px; height: 78px; border: 2px solid rgba(255,255,255,.8); border-radius: 50%; display: grid; place-items: center; padding-left: 5px; background: rgba(255,255,255,.12); box-shadow: 0 10px 35px rgba(0,0,0,.28); font-size: 27px; transition: transform .2s ease,background .2s ease; }
.learning-video-poster:hover .learning-video-poster-mark,.learning-video-poster:focus-visible .learning-video-poster-mark { transform: scale(1.08); background: #fff; color: #492080; }
.learning-video-poster-copy { position: relative; z-index: 1; display: grid; gap: 7px; text-align: center; }
.learning-video-poster-copy strong { font-size: clamp(18px,2vw,25px); }
.learning-video-poster-copy small { color: #dccbed; font-size: 13px; }
.learning-video-poster:focus-visible { outline: 3px solid #b77aff; outline-offset: -4px; }
.learning-video-credit { margin: 13px 0 0; color: #756b7f; font-size: 12px; line-height: 1.55; }
.learning-video-credit a { color: #5a1aa0; text-decoration: underline; }
.creator-intro { margin: 0 0 26px; padding: 25px 27px; border-left: 4px solid #400080; background: #f6f1fb; }
.creator-intro h2 { margin: 0 0 9px; font-size: 24px; color: #2b2040; }
.creator-intro p { margin: 0; color: #63576f; line-height: 1.6; }
.creator-course-row { display: flex; align-items: center; gap: 18px; padding: 15px 0; border-bottom: 1px solid #e9e5ee; }
.creator-course-row img { width: 75px; height: 62px; object-fit: cover; border-radius: 7px; background: #eee9f4; }
.creator-course-row > div { flex: 1; min-width: 0; }
.creator-course-row h3 { margin: 0 0 5px; color: #2b2040; font-size: 16px; }
.creator-course-row p { margin: 0; color: #797180; font-size: 13px; }
.creator-request { display: grid; grid-template-columns: minmax(0,1fr) minmax(300px,410px); gap: 24px; padding: 18px 0; border-bottom: 1px solid #eae5ef; }
.creator-request h3 { margin: 0 0 6px; color: #2a2039; }
.creator-request h3 small { color: #8a8091; font-weight: 400; }
.creator-request p { line-height: 1.55; }
.creator-request > div > span { color: #6c5b7c; font-size: 12px; }
.creator-decision-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.creator-decision-form > .form-field:nth-child(3),.creator-decision-form > .form-feedback { grid-column: 1 / -1; }
.creator-decision-form button { justify-self: start; }
.editor-area > .link-button { display: inline-block; margin-bottom: 18px; }
.editor-status { margin: 0 0 22px; padding: 12px 15px; border-radius: 8px; background: #f6f4f8; color: #5b5263; }
.editor-module { margin: 15px 0; border: 1px solid #e9e4ee; border-radius: 10px; overflow: hidden; }
.editor-module header { min-height: 72px; padding: 15px 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #fbf9fd; }
.editor-module header span { color: #7e698e; font-size: 11px; }
.editor-module h3 { margin: 4px 0 0; color: #302342; font-size: 17px; }
.editor-lesson-list { padding: 0 18px; }
.editor-lesson { display: flex; justify-content: space-between; gap: 12px; align-items: center; min-height: 62px; border-top: 1px solid #eeeaf2; }
.editor-lesson b,.editor-lesson small { display: block; }
.editor-lesson b { color: #3a3046; }
.editor-lesson small { margin-top: 4px; color: #867c8c; }
.editor-lesson-form .panel-body { padding: 22px; }
.editor-lesson-form #editor-asset-form { margin-top: 28px; padding-top: 20px; border-top: 1px solid #eee8f3; }
.editor-lesson-form h4 { margin: 0 0 15px; font-size: 17px; color: #352245; }
.editor-assets { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; color: #71687a; }
.editor-assets a { padding: 7px 10px; border-radius: 6px; background: #eee7f5; color: #400080; }

@media (max-width: 1050px) {
  .learning-detail-grid { grid-template-columns: minmax(0,1fr) 265px; gap: 18px; }
}

@media (max-width: 760px) {
  .member-shell { --member-sidebar: 0px; }
  .member-shell .sidebar { width: 220px; }
  .member-shell .admin-header { left: 0; height: 78px; padding: 12px 10px; }
  .member-shell .admin-header-row { grid-template-columns: 48px 1fr 66px; }
  .member-shell .admin-main { margin-left: 0; padding: 98px 15px 80px; }
  .member-shell .page-title { font-size: 26px; }
  .learning-hero { min-height: 270px; background-position: 58% center; }
  .learning-hero-copy { padding: 26px; }
  .learning-hero-copy h2 { font-size: 29px; }
  .learning-hero { min-height: 325px; }
  .learning-hero .learning-hero-copy { width: 100%; padding: 28px; }
  .learning-hero .learning-hero-copy h2 { font-size: clamp(29px,6vw,40px); }
  .learning-hero::after { background: linear-gradient(90deg,rgba(12,9,23,.94),rgba(12,9,23,.57)); }
  .learning-library .learning-course-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .learning-section-head { align-items: stretch; flex-direction: column; gap: 14px; }
  .learning-search input { width: 100%; }
  .learning-course-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .learning-cover { height: 120px; }
  .learning-card-content { padding: 12px; }
  .learning-card-content h3 { font-size: 15px; }
  .learning-detail-grid { grid-template-columns: 1fr; }
  .learning-course-head { display: block; }
  .learning-course-head > div:last-child { width: 100%; margin-top: 18px; text-align: left; }
  .learning-course-head .learning-progress { max-width: 260px; }
  .creator-request { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .learning-course-grid { grid-template-columns: 1fr; }
  .learning-cover { height: 160px; }
  .learning-hero { min-height: 300px; }
  .learning-hero-copy h2 { font-size: 26px; }
  .learning-hero { min-height: 355px; }
  .learning-hero .learning-hero-copy { padding: 25px 20px; }
  .learning-hero .learning-hero-copy h2 { font-size: 30px; }
  .learning-library .learning-course-grid { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(235px,82%); grid-template-columns: none; overflow-x: auto; padding: 3px 2px 15px; scroll-snap-type: x mandatory; scrollbar-color: #6e558d #21192e; }
  .learning-library .learning-course-card { scroll-snap-align: start; }
  .creator-course-row { flex-wrap: wrap; }
  .creator-course-row .btn { width: 100%; }
  .creator-decision-form { grid-template-columns: 1fr; }
  .creator-decision-form > .form-field:nth-child(3),.creator-decision-form > .form-feedback { grid-column: auto; }
  .learning-resource { gap: 9px; }
  .learning-resource > span:last-child { font-size: 11px; }
}

@media (max-width: 1050px) {
  .unilevel-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .budget-totals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .admin-header-row { gap: 8px; }
  .mobile-menu { flex: 0 0 44px; }
  .switch-profile { display: none; }
  .logout { width: 58px; font-size: 12px; }
  .welcome { padding: 5px 8px; gap: 6px; font-size: 11px; }
  .welcome .icon { width: 20px; height: 20px; }
  .welcome small { font-size: 10px; }
  .demo-ribbon { width: max-content; max-width: calc(100% - 24px); padding: 7px 12px; white-space: normal; font-size: 10px; text-align: center; line-height: 1.4; }
  .unilevel-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .budget-totals { grid-template-columns: 1fr; }
  .simulation-result { padding: 14px; }
  .copy-row { display: grid; grid-template-columns: 1fr 1fr; }
  .copy-row input { width: 100%; grid-column: 1 / -1; }
  .course-row { gap: 12px; flex-wrap: wrap; }
  .course-row > div { flex-basis: calc(100% - 90px); }
  .course-row .btn { margin-left: 84px; }
  .page-actions { align-items: stretch; }
  .page-actions .btn { flex: 1 1 auto; }
  .form-actions .btn { max-width: 100%; }
  .store-head-main .store-account:first-of-type { display: flex; }
  .store-account .icon { width: 24px; height: 24px; }
  .store-account span { display: none; }
  .store-head-main { grid-template-columns: 70px minmax(0, 1fr) auto; gap: 12px; }
  .store-intro { margin: 0 0 24px; font-size: 12px; }
  .package-editor { padding: 16px 12px; }
  .metric { grid-template-columns: minmax(0, 1fr) 125px; }
}

@media (prefers-reduced-motion: reduce) {
  .sidebar { transition: none; }
}

.account-overlay { position: fixed; z-index: 1150; inset: 0; padding: 20px; display: grid; place-items: center; background: rgba(18,10,26,.62); }
.account-modal { position: relative; width: min(1100px, 100%); padding: 28px; }
.account-modal > .modal-close { position: absolute; top: 12px; right: 12px; }
.account-modal > h2 { color: var(--purple); margin: 0 32px 18px 0; }
.account-modal .summary-grid { grid-template-columns: 1fr 1fr; }
.account-modal .metric { grid-template-columns: minmax(0, 1fr) minmax(100px, 170px); }
@media (max-width:760px) {
  .sidebar:not(.open) { visibility: hidden; pointer-events: none; }
  .account-overlay { padding: 12px; }
  .account-modal { padding: 24px 14px; }
  .account-modal .summary-grid { grid-template-columns: 1fr; }
  .account-modal .metric { grid-template-columns: minmax(0, 1fr) 125px; }
}

/* Vitrine de cursos: capa e banner seguem a identidade da biblioteca. */
.store-page { background: #100e19; color: #f8f5fc; }
.store-page .store-header { height: 128px; background: #151220; }
.store-page .store-head-main { height: 86px; width: min(1240px,calc(100% - 48px)); }
.store-page .store-search input { border-color: #3a304c; border-radius: 8px; background: #211b30; box-shadow: none; color: #fff; }
.store-page .store-search input::placeholder { color: #aaa1b9; }
.store-page .store-account { color: #efe8fa; }
.store-page .store-nav { height: 42px; border-color: #292238; color: #d8c7ef; font-weight: 700; }
.store-feature { min-height: 390px; display: flex; align-items: center; background-image: linear-gradient(90deg,rgba(10,8,20,.97) 0%,rgba(10,8,20,.86) 38%,rgba(10,8,20,.1) 100%),var(--store-feature-image); background-color: #1c1830; background-size: cover; background-position: center; }
.store-feature-empty { background-image: linear-gradient(90deg,rgba(10,8,20,.9),rgba(10,8,20,.25)),url('assets/member-library-hero.png'); }
.store-feature-copy { width: min(1240px,calc(100% - 48px)); margin: 0 auto; padding: 46px 0; }
.store-feature-copy > span { color: #d3b3f7; font-size: 11px; font-weight: 800; letter-spacing: .17em; }
.store-feature h1 { max-width: 590px; margin: 14px 0 12px; color: #fff; font-size: clamp(36px,4.5vw,60px); line-height: 1.08; letter-spacing: -.045em; }
.store-feature p { max-width: 530px; color: #d2c8df; font-size: 16px; line-height: 1.55; }
.store-feature .btn { margin-top: 12px; background: #fff; color: #351468; }
.store-page .store-content { width: min(1240px,calc(100% - 48px)); padding: 54px 0 76px; }
.store-page .store-section-title { margin: 0 0 9px; color: #fff; font-size: clamp(28px,3vw,37px); letter-spacing: -.03em; text-align: left; text-transform: none; }
.store-page .store-intro { margin: 0 0 28px; color: #aaa1b9; text-align: left; font-size: 14px; }
.store-page .product-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.store-page .product-card { border: 1px solid #352d44; border-radius: 13px; background: #1b1728; box-shadow: 0 13px 26px rgba(0,0,0,.14); }
.store-page .product-card img { aspect-ratio: 16/9; }
.store-page .product-body { padding: 18px; }
.store-page .product-category { color: #c6a7ea; font-size: 10px; font-weight: 800; }
.store-page .product-name { height: auto; min-height: 2.4em; margin: 9px 0; color: #fff; font-size: 20px; }
.store-page .product-description { min-height: 3em; color: #b7aeca; }
.store-page .product-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; }
.store-page .product-card-foot .product-price { margin: 0; color: #fff; font-size: 18px; font-weight: 800; }
.store-page .product-card .btn { width: auto; min-height: 40px; padding: 0 14px; border-radius: 7px; background: #7040aa; white-space: nowrap; }
.store-page .store-footer { background: #151220; color: #aaa1b9; }
.store-page .store-footer h3 { color: #f8f5fc; }
.course-purchase-modal { border-radius: 15px; }
.course-purchase-modal .modal-header h3 { text-transform: none; }
.course-purchase-modal .course-detail-image { width: 100%; max-height: 280px; aspect-ratio: 16/9; object-fit: cover; border-radius: 9px; }
.course-purchase-action { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 20px; }
.course-purchase-action .product-price { margin: 0; color: #271b38; font-size: 24px; }
@media (max-width: 760px) {
  .store-page .store-header { height: auto; }
  .store-page .store-head-main { width: calc(100% - 28px); height: auto; }
  .store-feature { min-height: 330px; background-image: linear-gradient(90deg,rgba(10,8,20,.9),rgba(10,8,20,.55)),var(--store-feature-image); }
  .store-feature-copy { width: calc(100% - 36px); padding: 35px 0; }
  .store-feature h1 { font-size: clamp(32px,8vw,45px); }
  .store-page .store-content { width: calc(100% - 28px); padding: 38px 0 55px; }
  .store-page .product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  .store-page .product-body { padding: 13px; }
  .store-page .product-name { font-size: 16px; }
  .store-page .product-card-foot { align-items: stretch; flex-direction: column; }
  .store-page .product-card .btn { width: 100%; }
}
@media (max-width: 480px) {
  .store-page .product-grid { grid-template-columns: 1fr; }
  .course-purchase-action { align-items: stretch; flex-direction: column; }
}
