/* Self-Made — site dos cursos. Mesma identidade dos apps: Fraunces (títulos), Figtree (texto),
   azul-marinho #141B2E, fundo #F2F4F9, dourado do inglês e vermelho do espanhol.
   Fontes servidas pelo próprio site (licença SIL OFL 1.1, ver /assets/fonts/LICENSE.txt). */

@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/assets/fonts/fraunces.woff2) format('woff2'); }
@font-face { font-family: 'Fraunces'; font-style: italic; font-weight: 100 900; font-display: swap; src: url(/assets/fonts/fraunces-italic.woff2) format('woff2'); }
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 300 900; font-display: swap; src: url(/assets/fonts/figtree.woff2) format('woff2'); }

:root {
  color-scheme: light;
  --bg: #F2F4F9; --surface: #FFFFFF; --surface-2: #E9EDF6; --line: #D6DCE9;
  --ink: #141B2E; --muted: #4F586C; --navy: #141B2E; --navy-2: #1E2742;
  --en: #8A570C; --en-soft: #F6EAD3; --en-bright: #D9A441;
  --es: #A3142A; --es-soft: #FBE3E6;
  --accent: #8A570C; --accent-ink: #FFFFFF;
  --ok: #0F7A53; --ok-soft: #DDF5EA; --bad: #B4232F; --bad-soft: #FCE3E5; --warn: #8A6000; --warn-soft: #FFF3D6;
  --shadow: 0 1px 2px rgba(20, 27, 46, .06), 0 10px 30px -14px rgba(20, 27, 46, .25);
  --r: 16px; --r-sm: 10px;
  --f-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --f-body: 'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --f-mono: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --wrap: 1180px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0D1220; --surface: #151C2E; --surface-2: #1C2540; --line: #2A3452;
    --ink: #E9EDF7; --muted: #A3ADC4; --navy: #0A0F1C; --navy-2: #151C2E;
    --en: #F2BE5C; --en-soft: #3A2E16; --es: #FF8A94; --es-soft: #3B1B22;
    --accent: #F2BE5C; --accent-ink: #1A1206;
    --ok: #4BD9A2; --ok-soft: #133528; --bad: #FF7B86; --bad-soft: #3B1B22; --warn: #F5C04A; --warn-soft: #3A3016;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px -14px rgba(0, 0, 0, .7);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0D1220; --surface: #151C2E; --surface-2: #1C2540; --line: #2A3452;
  --ink: #E9EDF7; --muted: #A3ADC4; --navy: #0A0F1C; --navy-2: #151C2E;
  --en: #F2BE5C; --en-soft: #3A2E16; --es: #FF8A94; --es-soft: #3B1B22;
  --accent: #F2BE5C; --accent-ink: #1A1206;
  --ok: #4BD9A2; --ok-soft: #133528; --bad: #FF7B86; --bad-soft: #3B1B22; --warn: #F5C04A; --warn-soft: #3A3016;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px -14px rgba(0, 0, 0, .7);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--f-body); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { font-family: var(--f-display); line-height: 1.12; letter-spacing: -.015em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 5.4vw, 3.9rem); font-weight: 760; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 720; }
h3 { font-size: 1.2rem; font-weight: 680; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 12px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }
.eyebrow { font-family: var(--f-mono); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: .8em; display: block; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
[hidden] { display: none !important; }

/* ---------- topo ---------- */
.top { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 12px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-display); font-weight: 800; font-size: 1.15rem; color: var(--ink); text-decoration: none; letter-spacing: -.01em; }
.brand svg { width: 32px; height: 32px; flex: none; }
.brand em { font-style: italic; font-weight: 600; color: var(--en); }
.nav { display: none; gap: 4px; margin-left: 18px; }
.nav a { color: var(--ink); text-decoration: none; padding: 8px 12px; border-radius: 999px; font-weight: 600; font-size: .95rem; }
.nav a:hover { background: var(--surface-2); }
@media (min-width: 900px) { .nav { display: flex; } }
.top .spacer { flex: 1; }
.icon-btn { width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); display: inline-grid; place-items: center; cursor: pointer; flex: none; }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn .moon { display: none; }
:root[data-theme="dark"] .icon-btn .sun { display: none; }
:root[data-theme="dark"] .icon-btn .moon { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .icon-btn .sun { display: none; } :root:not([data-theme="light"]) .icon-btn .moon { display: block; } }

/* ---------- botões ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 20px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-weight: 700; font-size: .98rem; text-decoration: none; cursor: pointer; transition: transform .12s ease, box-shadow .12s ease, background .12s; }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; pointer-events: none; }
.btn.primary { background: var(--navy); border-color: var(--navy); color: #fff; }
:root[data-theme="dark"] .btn.primary { background: var(--en-bright, #D9A441); border-color: #D9A441; color: #1A1206; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn.primary { background: #D9A441; border-color: #D9A441; color: #1A1206; } }
.btn.gold { background: #D9A441; border-color: #D9A441; color: #1A1206; }
.btn.ghost { background: transparent; }
.btn.danger { background: var(--bad-soft); border-color: transparent; color: var(--bad); }
.btn.sm { min-height: 38px; padding: 6px 14px; font-size: .9rem; }
.btn.block { width: 100%; }
.top .btn { min-height: 42px; padding: 8px 16px; }
.hide-sm { display: none; }
@media (min-width: 560px) { .hide-sm { display: inline-flex; } }

/* ---------- hero ---------- */
.hero { padding: clamp(36px, 7vw, 88px) 0 clamp(32px, 6vw, 72px); position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: -20% -10% auto auto; width: 60vw; height: 60vw; max-width: 760px; max-height: 760px; background: radial-gradient(closest-side, color-mix(in srgb, #D9A441 22%, transparent), transparent); pointer-events: none; }
.hero .wrap { display: grid; gap: clamp(28px, 5vw, 56px); align-items: center; position: relative; }
@media (min-width: 980px) { .hero .wrap { grid-template-columns: 1.02fr 1fr; } }
.hero h1 em { font-style: italic; font-weight: 640; }
.hero h1 .en { color: var(--en); }
.hero h1 .es { color: var(--es); }
.lead { font-size: clamp(1.05rem, 1.8vw, 1.22rem); color: var(--muted); max-width: 36em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 18px; }
.badge-invite { display: inline-flex; align-items: center; gap: 8px; background: var(--surface); border: 1px dashed color-mix(in srgb, var(--en) 55%, var(--line)); color: var(--ink); padding: 6px 14px; border-radius: 999px; font-weight: 600; font-size: .9rem; margin-bottom: 18px; }
.badge-invite .dot { width: 8px; height: 8px; border-radius: 50%; background: #D9A441; box-shadow: 0 0 0 4px color-mix(in srgb, #D9A441 25%, transparent); }
.facts { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 0; margin: 8px 0 0; list-style: none; color: var(--muted); font-size: .95rem; }
.facts li::before { content: '✓'; color: var(--ok); font-weight: 800; margin-right: 6px; }

.showcase { position: relative; min-height: 260px; }
.frame { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 30px 60px -30px rgba(20, 27, 46, .45), var(--shadow); overflow: hidden; }
.frame .bar { height: 26px; display: flex; gap: 6px; align-items: center; padding: 0 10px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.frame .bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); display: block; }
.showcase .desk { width: 100%; }
.showcase .phone { position: absolute; width: 31%; right: -2%; bottom: -10%; border-radius: 26px; border: 6px solid var(--navy); box-shadow: 0 30px 60px -20px rgba(10, 15, 28, .6); overflow: hidden; background: var(--navy); }
@media (max-width: 979px) { .showcase { margin-bottom: 40px; } .showcase .phone { width: 30%; right: 2%; bottom: -14%; } }

/* ---------- seções ---------- */
section { padding: clamp(48px, 8vw, 96px) 0; }
section.alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { max-width: 46em; margin-bottom: clamp(24px, 4vw, 44px); }
.section-head p { color: var(--muted); font-size: 1.08rem; }

/* cursos */
.courses { display: grid; gap: 22px; }
@media (min-width: 900px) { .courses { grid-template-columns: 1fr 1fr; } }
.course { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.course .shot { border-bottom: 1px solid var(--line); aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); }
.course .shot img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.course .body { padding: clamp(20px, 3vw, 30px); display: flex; flex-direction: column; gap: 14px; flex: 1; }
.course h3 { font-size: clamp(1.45rem, 2.6vw, 1.85rem); margin: 0; }
.course h3 em { font-style: italic; font-weight: 600; }
.course.en h3 em { color: var(--en); }
.course.es h3 em { color: var(--es); }
.tag { display: inline-block; font-family: var(--f-mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; font-weight: 700; }
.course.en .tag { background: var(--en-soft); color: var(--en); }
.course.es .tag { background: var(--es-soft); color: var(--es); }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 4px 0; padding: 0; list-style: none; }
@media (min-width: 520px) { .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.stats li { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font-size: .9rem; color: var(--muted); line-height: 1.3; }
.stats b { display: block; font-family: var(--f-display); font-size: 1.5rem; color: var(--ink); font-weight: 720; letter-spacing: -.01em; }
.course ul.list { margin: 0; padding-left: 1.2em; color: var(--muted); }
.course ul.list li { margin: 4px 0; }

/* recursos */
.features { display: grid; gap: 18px; }
@media (min-width: 700px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .features { grid-template-columns: repeat(3, 1fr); } }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
section.alt .feature { background: var(--bg); }
.feature .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 1.35rem; background: var(--en-soft); margin-bottom: 12px; }
.feature:nth-child(even) .ico { background: var(--es-soft); }
.feature p { color: var(--muted); margin: 0; font-size: .98rem; }

/* galeria */
.gallery { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .gallery { grid-template-columns: 1.6fr 1fr; } }
.gallery figure { margin: 0; }
.gallery figcaption { font-size: .9rem; color: var(--muted); margin-top: 8px; }
.gallery .stack { display: grid; gap: 18px; }
.gallery .phones { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.gallery .phones .frame { border-radius: 22px; border: 5px solid var(--navy); }

/* passos */
.steps { counter-reset: s; display: grid; gap: 18px; padding: 0; margin: 0; list-style: none; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; position: relative; }
section.alt .steps li { background: var(--bg); }
.steps li::before { counter-increment: s; content: counter(s); font-family: var(--f-display); font-size: 2.6rem; font-weight: 760; color: var(--en); line-height: 1; display: block; margin-bottom: 10px; }
.steps p { color: var(--muted); margin: 0; }

/* convite */
.invite { background: var(--navy); color: #EDF0F8; border-radius: 26px; padding: clamp(26px, 5vw, 52px); display: grid; gap: 24px; position: relative; overflow: hidden; }
.invite::after { content: ''; position: absolute; right: -40px; bottom: -40px; width: 260px; height: 260px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M6 25h4v-4h4v-4h4v-4h4V9h4V6' stroke='%23D9A441' stroke-width='2.4' fill='none' stroke-linejoin='round' stroke-linecap='round' opacity='.35'/%3E%3C/svg%3E") no-repeat center / contain; pointer-events: none; }
@media (min-width: 860px) { .invite { grid-template-columns: 1.4fr 1fr; align-items: center; } }
.invite h2 { color: #fff; }
.invite p { color: #C9D0E2; }
.invite a:not(.btn) { color: #F2BE5C; }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 0 20px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.4rem; font-weight: 400; color: var(--muted); transition: transform .15s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin: 0 0 16px; }

/* rodapé */
.foot { border-top: 1px solid var(--line); padding: 36px 0 44px; color: var(--muted); font-size: .94rem; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot a { color: var(--ink); }

/* ---------- páginas simples (conta, formulários, textos legais) ---------- */
.narrow { max-width: 560px; margin: 0 auto; padding: clamp(28px, 6vw, 64px) 16px; }
.medium { max-width: 860px; margin: 0 auto; padding: clamp(28px, 6vw, 56px) 16px; }
.wide { max-width: 1100px; margin: 0 auto; padding: clamp(24px, 5vw, 48px) 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: clamp(20px, 4vw, 34px); }
.card + .card { margin-top: 20px; }
.card h2 { font-size: 1.35rem; }
.card-page h1 { font-size: clamp(1.7rem, 4vw, 2.3rem); }
body.simple { min-height: 100vh; }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label, .label { font-weight: 700; font-size: .95rem; }
.hint { font-size: .86rem; color: var(--muted); margin: 0; }
input[type=text], input[type=email], input[type=password], input[type=search], textarea { width: 100%; font: inherit; color: var(--ink); background: var(--bg); border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; min-height: 48px; }
textarea { min-height: 110px; resize: vertical; font-family: var(--f-mono); font-size: .88rem; }
input:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent); }
input[aria-invalid="true"] { border-color: var(--bad); }
.pw { position: relative; }
.pw input { padding-right: 96px; }
.pw button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); min-height: 36px; padding: 4px 12px; border-radius: 9px; border: 0; background: var(--surface-2); color: var(--ink); font: inherit; font-size: .85rem; font-weight: 700; cursor: pointer; }
meter { width: 100%; height: 10px; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0; font-size: .95rem; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; accent-color: var(--navy); }
.msg { border-radius: 12px; padding: 12px 14px; margin: 0 0 16px; font-weight: 600; font-size: .95rem; background: var(--surface-2); }
.msg[data-kind="ok"] { background: var(--ok-soft); color: var(--ok); }
.msg[data-kind="error"] { background: var(--bad-soft); color: var(--bad); }
.msg[data-kind="warn"] { background: var(--warn-soft); color: var(--warn); }
.links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 18px; font-size: .95rem; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.danger-zone { border-color: color-mix(in srgb, var(--bad) 40%, var(--line)); }
.course-cards { display: grid; gap: 16px; }
@media (min-width: 700px) { .course-cards { grid-template-columns: 1fr 1fr; } }
.course-card { border: 1px solid var(--line); border-radius: 16px; padding: 18px; background: var(--bg); display: grid; gap: 10px; }
.course-card h3 { margin: 0; }
.course-card.en h3 em { color: var(--en); font-style: italic; }
.course-card.es h3 em { color: var(--es); font-style: italic; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
table { width: 100%; border-collapse: collapse; font-size: .94rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { background: var(--surface-2); font-weight: 700; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
.legal h2 { font-size: 1.35rem; margin-top: 1.8em; }
.legal li { margin: 4px 0; }
.legal .note { background: var(--warn-soft); color: var(--warn); border-radius: 12px; padding: 12px 16px; font-weight: 600; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; }
.kv dt { font-weight: 700; }
.kv dd { margin: 0; color: var(--muted); overflow-wrap: anywhere; }
code { font-family: var(--f-mono); font-size: .9em; background: var(--surface-2); padding: 1px 6px; border-radius: 6px; overflow-wrap: anywhere; }

/* ---------- moldura do curso ---------- */
body.shell { margin: 0; height: 100vh; height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }
.shellbar { flex: none; height: 40px; display: flex; align-items: center; gap: 8px; padding: 0 8px; background: var(--navy); color: #E9EDF7; font-size: .86rem; }
.shellbar a, .shellbar button { color: #E9EDF7; }
.shellbar .back { display: inline-flex; align-items: center; gap: 4px; text-decoration: none; font-weight: 700; padding: 6px 8px; border-radius: 8px; min-height: 32px; }
.shellbar .back:hover { background: rgba(255, 255, 255, .08); }
.shellbar .grow { flex: 1; min-width: 0; }
.sync { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, .08); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 62vw; }
.sync::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #9AA3B8; flex: none; }
.sync[data-kind="ok"]::before { background: #3DD39A; }
.sync[data-kind="busy"]::before { background: #F5C04A; animation: pulse 1.2s infinite; }
.sync[data-kind="off"]::before { background: #9AA3B8; }
.sync[data-kind="bad"]::before { background: #FF6B78; }
@keyframes pulse { 50% { opacity: .35; } }
.sync button { background: none; border: 0; text-decoration: underline; cursor: pointer; font: inherit; padding: 0 0 0 4px; }
.shellbar .menu { position: relative; }
.shellbar .menu summary { list-style: none; cursor: pointer; padding: 6px 10px; border-radius: 8px; font-weight: 700; min-height: 32px; display: flex; align-items: center; }
.shellbar .menu summary::-webkit-details-marker { display: none; }
.shellbar .menu[open] summary, .shellbar .menu summary:hover { background: rgba(255, 255, 255, .08); }
.shellbar .menu .pop { position: absolute; right: 0; top: 38px; z-index: 50; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 8px; min-width: 240px; display: grid; gap: 2px; }
.shellbar .menu .pop a, .shellbar .menu .pop button { color: var(--ink); text-align: left; padding: 10px 12px; border-radius: 9px; text-decoration: none; background: none; border: 0; font: inherit; cursor: pointer; }
.shellbar .menu .pop a:hover, .shellbar .menu .pop button:hover { background: var(--surface-2); }
.shellbar .menu .pop .who { padding: 8px 12px; color: var(--muted); font-size: .82rem; overflow-wrap: anywhere; }
.appframe { flex: 1; width: 100%; border: 0; background: #F2F4F9; display: block; }
@media (max-width: 420px) { .shellbar .label-long { display: none; } }
.foot-note { margin: 0; }
.mt { margin-top: 18px; }
.center { text-align: center; }
.top .btn, .brand span { white-space: nowrap; }
@media (max-width: 420px) {
  .brand em { display: none; }
  .top .wrap { gap: 8px; }
  .top .btn { padding: 8px 14px; font-size: .92rem; }
}

/* ---------- grupo de testes (relatos, opinião, resumo opcional) ---------- */
.shellbar .fb-link { display: none; text-decoration: none; font-weight: 700; padding: 6px 10px; border-radius: 8px; min-height: 32px; align-items: center; white-space: nowrap; border: 1px solid rgba(255, 255, 255, .22); }
.shellbar .fb-link:hover { background: rgba(255, 255, 255, .08); }
@media (min-width: 640px) { .shellbar .fb-link { display: inline-flex; } }
.shellnote { flex: none; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 8px 44px 8px 14px; position: relative; background: var(--warn-soft); color: var(--ink); border-bottom: 1px solid var(--line); font-size: .9rem; line-height: 1.4; }
.shellnote p { margin: 0; flex: 1 1 260px; }
.note-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.note-btn { display: inline-flex; align-items: center; min-height: 36px; padding: 4px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-weight: 700; font-size: .88rem; text-decoration: none; cursor: pointer; }
.note-btn.primary { background: var(--navy); border-color: var(--navy); color: #fff; }
:root[data-theme="dark"] .note-btn.primary { background: #D9A441; border-color: #D9A441; color: #1A1206; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .note-btn.primary { background: #D9A441; border-color: #D9A441; color: #1A1206; } }
.note-x { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 999px; border: 0; background: transparent; color: var(--ink); font-size: 1.3rem; line-height: 1; cursor: pointer; }
.note-x:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); }

/* abas (administração) */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 20px; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; width: fit-content; max-width: 100%; }
.tabs [role="tab"] { min-height: 42px; padding: 8px 16px; border-radius: 999px; border: 0; background: transparent; color: var(--ink); font: inherit; font-weight: 700; font-size: .95rem; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.tabs [role="tab"][aria-selected="true"] { background: var(--navy); color: #fff; }
:root[data-theme="dark"] .tabs [role="tab"][aria-selected="true"] { background: #D9A441; color: #1A1206; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tabs [role="tab"][aria-selected="true"] { background: #D9A441; color: #1A1206; } }
.tabs .count { font-family: var(--f-mono); font-size: .78rem; padding: 1px 8px; border-radius: 999px; background: var(--surface-2); color: var(--ink); }
.tabs [aria-selected="true"] .count { background: rgba(255, 255, 255, .2); color: inherit; }
@media (max-width: 560px) { .tabs { border-radius: 18px; width: 100%; } .tabs [role="tab"] { flex: 1 1 auto; justify-content: center; } }

/* chave liga/desliga */
.switch { display: flex; gap: 14px; align-items: flex-start; cursor: pointer; font-weight: 700; }
.switch input { appearance: none; -webkit-appearance: none; flex: none; width: 52px; height: 30px; margin: 0; border-radius: 999px; background: var(--surface-2); border: 1.5px solid var(--line); position: relative; cursor: pointer; transition: background .15s; }
.switch input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 21px; height: 21px; border-radius: 50%; background: var(--muted); transition: transform .15s, background .15s; }
.switch input:checked { background: var(--ok); border-color: var(--ok); }
.switch input:checked::after { transform: translateX(22px); background: #fff; }
.switch input:disabled { opacity: .55; cursor: wait; }
.switch input:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.share-box { border: 1px solid var(--line); background: var(--bg); border-radius: 14px; padding: 14px 16px; margin-top: 14px; }
.share-box ul { margin: 6px 0 0; padding-left: 1.2em; }
.share-box li { margin: 2px 0; }

/* pílulas de situação */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px; font-size: .8rem; font-weight: 700; white-space: nowrap; background: var(--surface-2); color: var(--ink); }
.pill.novo { background: var(--warn-soft); color: var(--warn); }
.pill.resolvido { background: var(--ok-soft); color: var(--ok); }
.pill.en { background: var(--en-soft); color: var(--en); }
.pill.es { background: var(--es-soft); color: var(--es); }

/* listas de relatos e opiniões */
.items { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.item { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; background: var(--bg); }
.item-head { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: .9rem; }
.item-head .when { color: var(--muted); }
.item-head .spacer { flex: 1; }
.item dl { display: grid; grid-template-columns: minmax(110px, auto) 1fr; gap: 4px 14px; margin: 10px 0 0; font-size: .93rem; }
.item dt { font-weight: 700; color: var(--muted); }
.item dd { margin: 0; overflow-wrap: anywhere; white-space: pre-wrap; }
@media (max-width: 520px) { .item dl { grid-template-columns: 1fr; } .item dt { margin-top: 6px; } }
.item .row { margin-top: 10px; }
.filters { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: flex-end; margin-bottom: 16px; }
.filters .field { margin: 0; min-width: 160px; }
select { font: inherit; color: var(--ink); background: var(--bg); border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 12px; min-height: 46px; }
select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin: 0 0 18px; padding: 0; list-style: none; }
.kpis li { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; color: var(--muted); font-size: .88rem; line-height: 1.3; }
.kpis b { display: block; font-family: var(--f-display); font-size: 1.7rem; color: var(--ink); font-weight: 720; }
td.sum { font-size: .86rem; color: var(--muted); min-width: 220px; }
td.sum b { color: var(--ink); }

/* questionário */
.nps { border: 0; margin: 0 0 18px; padding: 0; min-width: 0; }
.nps legend { font-weight: 700; font-size: .95rem; margin-bottom: 8px; padding: 0; }
.nps-scale { display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); gap: 6px; }
.nps-scale label { position: relative; }
.nps-scale input { position: absolute; opacity: 0; width: 100%; height: 100%; inset: 0; margin: 0; cursor: pointer; }
.nps-scale span { display: grid; place-items: center; min-height: 46px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--bg); font-weight: 800; font-variant-numeric: tabular-nums; }
.nps-scale input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
:root[data-theme="dark"] .nps-scale input:checked + span { background: #D9A441; border-color: #D9A441; color: #1A1206; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .nps-scale input:checked + span { background: #D9A441; border-color: #D9A441; color: #1A1206; } }
.nps-scale input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.nps-ends { display: flex; justify-content: space-between; gap: 12px; font-size: .84rem; color: var(--muted); margin-top: 6px; }
@media (max-width: 480px) { .nps-scale { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.choices { border: 0; margin: 0 0 16px; padding: 0; min-width: 0; }
.choices legend { font-weight: 700; font-size: .95rem; margin-bottom: 6px; padding: 0; }
.choices .row { gap: 6px 18px; }
.choices label { display: inline-flex; gap: 8px; align-items: center; min-height: 44px; }
.choices input { width: 20px; height: 20px; accent-color: var(--navy); }
textarea.prose { font-family: var(--f-body); font-size: 1rem; min-height: 96px; }
.counter { font-size: .8rem; color: var(--muted); text-align: right; margin: -2px 0 0; }
.guide ol, .guide ul { padding-left: 1.3em; }
.guide li { margin: 6px 0; }
.guide h2 { font-size: 1.35rem; margin-top: 1.6em; }
.guide .tip { background: var(--surface-2); border-radius: 12px; padding: 12px 16px; }
.flag-demo { display: inline-grid; place-items: center; width: 1.6em; height: 1.6em; border-radius: 6px; background: var(--surface-2); vertical-align: -.35em; }

/* ---------------------------------------------------------------- v7: aparelho de outra conta, diálogo de saída */
.guard { flex: 1; overflow: auto; display: flex; align-items: flex-start; justify-content: center; padding: 32px 16px; background: var(--bg); }
.guard-box { max-width: 620px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px; box-shadow: var(--shadow); }
.guard-box h1 { font-size: 1.4rem; margin-top: 0; }
.dlg { max-width: 520px; width: calc(100% - 32px); border: 1px solid var(--line); border-radius: 18px; padding: 22px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.dlg::backdrop { background: rgba(10, 14, 26, .55); }
.dlg h2 { margin-top: 0; font-size: 1.25rem; }
.dlg-actions { display: grid; gap: 10px; margin-top: 14px; }
.dlg-actions .btn { display: flex; flex-direction: column; align-items: flex-start; text-align: left; height: auto; padding: 12px 16px; line-height: 1.3; white-space: normal; }
.dlg-actions .btn small { font-weight: 400; font-size: .82rem; opacity: .9; margin-top: 2px; }
.dlg-actions .btn.ghost { align-items: center; }
/* faixa "sem internet" nas páginas do site */
.offline-bar { background: var(--warn-soft); color: var(--ink); border-bottom: 1px solid var(--line); padding: 8px 16px; text-align: center; font-size: .92rem; }
/* painel de visão geral da administração */
.overview { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin: 0 0 18px; padding: 0; list-style: none; }
.overview li { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; min-width: 0; }
.overview b { display: block; font-size: 1.5rem; line-height: 1.2; font-family: var(--f-display); }
.overview span { display: block; font-size: .86rem; color: var(--muted); overflow-wrap: anywhere; }
.overview li.attn { border-color: var(--en-bright); box-shadow: inset 4px 0 0 var(--en-bright); }
/* verificação da instalação */
.checks { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
.checks li { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: var(--surface); }
.checks li b { display: block; }
.checks li[data-st="ok"] b::before { content: "✓ "; color: var(--ok); }
.checks li[data-st="bad"] b::before { content: "✗ "; color: var(--bad); }
.checks li[data-st="warn"] b::before { content: "! "; color: var(--warn); }
.checks li[data-st="wait"] b::before { content: "… "; }
.checks li p { margin: 4px 0 0; font-size: .92rem; }
.help { margin-top: 14px; }
.help summary { cursor: pointer; font-weight: 700; }
.help ol, .help ul { margin: 8px 0 0; padding-left: 22px; }
.help li { margin: 4px 0; }
.table-wrap:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.dlg-actions .btn { border-radius: 14px; }
#guard-t:focus { outline: none; }
.filters .field input[type=search] { min-height: 44px; }

/* ---------- v8: marca d'água visível do curso (discreta, não bloqueia nada) ---------- */
/* O texto vem de data-wm por CSS (::after): não é selecionável, não entra no leitor de tela (aria-hidden) e não
   atrapalha cliques (pointer-events: none). É um aviso de "este curso é de fulano", não uma trava. */
body.shell { position: relative; }
.wm { position: fixed; right: 10px; bottom: 6px; z-index: 30; pointer-events: none; user-select: none; -webkit-user-select: none;
  max-width: calc(100vw - 20px); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.wm::after { content: attr(data-wm); font: 600 11px/1.2 var(--f-body); letter-spacing: .02em; color: rgba(20, 27, 46, .34);
  text-shadow: 0 0 2px rgba(255, 255, 255, .55); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .wm::after { color: rgba(233, 237, 247, .30); text-shadow: 0 0 2px rgba(0, 0, 0, .5); } }
:root[data-theme="dark"] .wm::after { color: rgba(233, 237, 247, .30); text-shadow: 0 0 2px rgba(0, 0, 0, .5); }
@media print { .wm { position: fixed; } .wm::after { color: rgba(20, 27, 46, .5); } }
.shellbar .menu .pop .pop-note { padding: 0 12px 8px; color: var(--muted); font-size: .78rem; line-height: 1.35; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.guard-box .h3 { font-size: 1.1rem; margin-top: 1.2em; }
.guard-box #stop-files { margin-top: 8px; }
.keybox { font-family: var(--f-mono); font-size: .8rem; min-height: 9em; }
