/* ==========================================================================
   Prof. Thyago Soares — site de disciplinas
   ========================================================================== */
:root {
  --brand: #0f766e;
  --brand-2: #14b8a6;
  --brand-deep: #042f2e;
  --brand-soft: #e6f4f1;
  --brand-ink: #0b4f4a;
  --accent: #ff5c39;
  --accent-2: #ff8a3d;
  --accent-soft: #fff0ea;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e7eaee;
  --line-2: #d7dde3;
  --bg: #f6f7f8;
  --bg-2: #eef1f3;
  --card: #ffffff;
  --glass: rgba(255, 255, 255, .72);
  --ok: #059669; --ok-soft: #e7f7ef;
  --err: #dc2626; --err-soft: #fdecec;
  --warn-soft: #fff7e0;
  --ring: 0 0 0 4px rgba(20, 184, 166, .22);
  --sh-1: 0 1px 2px rgba(15, 23, 42, .04), 0 1px 1px rgba(15, 23, 42, .03);
  --sh-2: 0 10px 30px -12px rgba(15, 23, 42, .18), 0 2px 6px -2px rgba(15, 23, 42, .06);
  --sh-3: 0 30px 60px -20px rgba(15, 23, 42, .28);
  --r-xl: 24px; --r-lg: 18px; --r: 14px; --r-sm: 10px;
  --font: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --maxw: 1240px;
  --header-h: 68px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --brand-soft: #0f2a28; --brand-ink: #7fe0d3; --accent-soft: #3a1d14;
    --ink: #e8edf2; --ink-2: #c3cdd8; --muted: #8b9aab; --line: #1f2a33; --line-2: #2a3742;
    --bg: #0a1014; --bg-2: #0f171d; --card: #111a21; --glass: rgba(10, 16, 20, .72);
    --ok-soft: #0d2b20; --err-soft: #331517; --warn-soft: #2e2715;
    --sh-1: none; --sh-2: 0 12px 30px -12px rgba(0,0,0,.6); --sh-3: 0 30px 60px -20px rgba(0,0,0,.7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --brand-soft: #0f2a28; --brand-ink: #7fe0d3; --accent-soft: #3a1d14;
  --ink: #e8edf2; --ink-2: #c3cdd8; --muted: #8b9aab; --line: #1f2a33; --line-2: #2a3742;
  --bg: #0a1014; --bg-2: #0f171d; --card: #111a21; --glass: rgba(10, 16, 20, .72);
  --ok-soft: #0d2b20; --err-soft: #331517; --warn-soft: #2e2715;
  --sh-1: none; --sh-2: 0 12px 30px -12px rgba(0,0,0,.6); --sh-3: 0 30px 60px -20px rgba(0,0,0,.7);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.65; color: var(--ink);
  background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.15; letter-spacing: -.025em; font-weight: 800; color: var(--ink); }
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.45rem, 2.6vw, 2rem); }
h3 { font-size: 1.12rem; letter-spacing: -.015em; }
p { margin: 0 0 1em; }
button { font: inherit; color: inherit; }
::selection { background: rgba(20, 184, 166, .25); }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: 16px; padding-right: 16px; }
@media (min-width: 760px) { .wrap { padding-left: 32px; padding-right: 32px; } }
.icon { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.icon.sm { width: 16px; height: 16px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.grow { flex: 1; }

/* ---------------------------------------------------------------- header */
.topbar {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: var(--glass); backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap { height: 100%; display: flex; align-items: center; gap: 14px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); min-width: 0; }
.brand:hover { text-decoration: none; }
.avatar-sm {
  width: 40px; height: 40px; border-radius: 12px; flex: 0 0 auto; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%); color: #fff; font-weight: 800; font-size: .95rem; letter-spacing: .02em;
  box-shadow: 0 6px 14px -6px rgba(15, 118, 110, .7); overflow: hidden;
}
.avatar-sm img { width: 100%; height: 100%; object-fit: cover; }
.brand-txt { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-txt b { font-size: 1rem; letter-spacing: -.01em; white-space: nowrap; }
.brand-txt span { font-size: .76rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mainnav { margin-left: auto; display: flex; align-items: center; gap: 4px; padding: 4px; background: var(--bg-2); border-radius: 999px; border: 1px solid var(--line); }
.mainnav a { color: var(--ink-2); font-weight: 600; font-size: .9rem; padding: 7px 14px; border-radius: 999px; white-space: nowrap; }
.mainnav a:hover { text-decoration: none; color: var(--ink); }
.mainnav a.on { background: var(--card); color: var(--ink); box-shadow: var(--sh-1); }
.icon-btn { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); display: grid; place-items: center; cursor: pointer; color: var(--ink-2); flex: 0 0 auto; }
.icon-btn:hover { color: var(--ink); border-color: var(--line-2); }
@media (max-width: 760px) {
  .mainnav { position: fixed; left: 12px; right: 12px; bottom: 12px; margin: 0; justify-content: space-around; z-index: 60; background: var(--glass); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: var(--sh-2); }
  .mainnav a { padding: 9px 12px; font-size: .84rem; }
  body { padding-bottom: 78px; }
  .topbar { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--card); }
  .theme-wrap { margin-left: auto; }
}

/* sub-navegação da disciplina */
#subnav { position: sticky; top: var(--header-h); z-index: 40; }
.subnav { background: var(--glass); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.subnav .wrap { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-top: 8px; padding-bottom: 8px; align-items: center; }
.subnav .wrap::-webkit-scrollbar { display: none; }
.subnav .dname { font-weight: 800; font-size: .9rem; white-space: nowrap; margin-right: 8px; display: flex; align-items: center; gap: 8px; color: var(--ink); }
.subnav .dname:hover { text-decoration: none; }
.subnav .dot { width: 10px; height: 10px; border-radius: 3px; background: var(--brand); flex: 0 0 auto; }
.subnav a.tab { color: var(--muted); font-weight: 600; font-size: .88rem; padding: 7px 12px; border-radius: 10px; white-space: nowrap; }
.subnav a.tab:hover { background: var(--bg-2); color: var(--ink); text-decoration: none; }
.subnav a.tab.on { background: var(--brand-soft); color: var(--brand-ink); }
.subnav .sep { width: 1px; height: 22px; background: var(--line-2); margin: 0 6px; flex: 0 0 auto; }

/* ---------------------------------------------------------------- botões, chips */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 12px; border: 1px solid transparent; font-weight: 700; font-size: .93rem; cursor: pointer; line-height: 1.2; transition: transform .12s ease, box-shadow .2s ease, background .2s, border-color .2s; white-space: nowrap; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--ink); color: #fff; box-shadow: 0 8px 20px -10px rgba(15, 23, 42, .6); }
:root[data-theme="dark"] .btn-primary { background: #fff; color: #0a1014; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-primary { background: #fff; color: #0a1014; } }
.btn-accent { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; box-shadow: 0 10px 24px -10px rgba(255, 92, 57, .8); }
.btn-brand { background: var(--brand); color: #fff; box-shadow: 0 10px 24px -12px rgba(15, 118, 110, .8); }
.btn-ghost { background: var(--card); color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--muted); }
.btn-glass { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.28); backdrop-filter: blur(6px); }
.btn-glass:hover { background: rgba(255,255,255,.22); }
.btn-sm { padding: 8px 13px; font-size: .85rem; border-radius: 10px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: .76rem; font-weight: 700; padding: 5px 11px; border-radius: 999px; background: var(--bg-2); color: var(--ink-2); border: 1px solid var(--line); white-space: nowrap; }
.chip-brand { background: var(--brand-soft); color: var(--brand-ink); border-color: transparent; }
.chip-accent { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.chip-ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.chip-dark { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.18); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 800; color: var(--brand); margin-bottom: 12px; }
.eyebrow::before { content: ""; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }

/* ---------------------------------------------------------------- cards e grids */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--sh-1); }
.card-hover { transition: transform .2s ease, box-shadow .25s ease, border-color .2s; display: block; color: inherit; }
.card-hover:hover { transform: translateY(-3px); box-shadow: var(--sh-2); border-color: var(--line-2); text-decoration: none; }
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); }
.g3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.g4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.section { margin-top: 64px; }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.sec-head h2 { margin: 0; }
.sec-head p { margin: 6px 0 0; color: var(--muted); max-width: 60ch; }
.page { padding-top: 36px; padding-bottom: 80px; }
.page-title { margin-bottom: 28px; }
.page-title p { color: var(--muted); font-size: 1.08rem; max-width: 70ch; margin: 0; }
.ic-box { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); margin-bottom: 14px; }
.ic-box.accent { background: var(--accent-soft); color: var(--accent); }

/* ---------------------------------------------------------------- hero (início) */
.hero { position: relative; overflow: hidden; padding: 72px 0 84px; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: -30% -10% auto -10%; height: 140%; z-index: -1;
  background:
    radial-gradient(40% 50% at 85% 20%, rgba(20, 184, 166, .22), transparent 70%),
    radial-gradient(35% 45% at 10% 10%, rgba(255, 92, 57, .14), transparent 70%),
    radial-gradient(50% 60% at 50% 100%, rgba(15, 118, 110, .10), transparent 70%);
}
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(var(--line-2) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(to bottom, rgba(0,0,0,.5), transparent 80%); -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,.5), transparent 80%); }
.hero-grid { display: grid; grid-template-columns: 1.25fr .9fr; gap: 48px; align-items: center; }
@media (max-width: 920px) { .hero-grid { grid-template-columns: 1fr; gap: 32px; } .hero { padding: 44px 0 56px; } }
.hero h1 { font-size: clamp(2.3rem, 5.6vw, 4.2rem); letter-spacing: -.04em; line-height: 1.02; margin-bottom: 20px; }
.hl { background: linear-gradient(120deg, var(--brand) 10%, var(--brand-2) 55%, var(--accent) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--ink-2); max-width: 54ch; margin-bottom: 28px; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.profile-card { position: relative; border-radius: var(--r-xl); padding: 28px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--sh-3); }
.profile-card .top { display: flex; gap: 16px; align-items: center; margin-bottom: 18px; }
.avatar-lg { width: 84px; height: 84px; border-radius: 24px; display: grid; place-items: center; font-weight: 800; font-size: 1.8rem; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2)); box-shadow: 0 16px 30px -14px rgba(15, 118, 110, .9); flex: 0 0 auto; overflow: hidden; }
.avatar-lg img { width: 100%; height: 100%; object-fit: cover; }
.profile-card h3 { margin: 0; font-size: 1.2rem; }
.profile-card .role { color: var(--muted); font-size: .9rem; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0; }
.stat { background: var(--bg-2); border-radius: var(--r); padding: 14px; border: 1px solid var(--line); }
.stat b { display: block; font-size: 1.6rem; letter-spacing: -.03em; line-height: 1.05; }
.stat span { font-size: .8rem; color: var(--muted); line-height: 1.3; display: block; margin-top: 4px; }
.quote { font-size: .95rem; color: var(--ink-2); border-left: 3px solid var(--accent); padding: 4px 0 4px 14px; margin: 0; font-style: italic; }

/* disciplina card (início) */
.disc-card { position: relative; overflow: hidden; border-radius: var(--r-xl); padding: 0; display: grid; grid-template-columns: 1.1fr 1fr; min-height: 280px; }
@media (max-width: 820px) { .disc-card { grid-template-columns: 1fr; } }
.disc-card .body { padding: 30px; display: flex; flex-direction: column; gap: 12px; }
.disc-card h3 { font-size: 1.6rem; letter-spacing: -.03em; margin: 0; }
.disc-card .cover { position: relative; background: linear-gradient(135deg, var(--brand-deep), var(--brand)); min-height: 230px; overflow: hidden; }
.disc-card .cover img { position: absolute; left: 50%; top: 50%; width: 62%; border-radius: 10px; box-shadow: var(--sh-3); border: 1px solid rgba(255,255,255,.2); transition: transform .45s ease; }
.disc-card .cover img:nth-child(1) { transform: translate(-50%, -50%) rotate(-7deg) translate(-16%, 6%); opacity: .7; }
.disc-card .cover img:nth-child(2) { transform: translate(-50%, -50%) rotate(5deg) translate(14%, -4%); opacity: .85; }
.disc-card .cover img:nth-child(3) { transform: translate(-50%, -50%) rotate(-1deg); }
.disc-card:hover .cover img:nth-child(1) { transform: translate(-50%, -50%) rotate(-10deg) translate(-24%, 8%); }
.disc-card:hover .cover img:nth-child(2) { transform: translate(-50%, -50%) rotate(8deg) translate(22%, -6%); }
.kpis { display: flex; gap: 22px; flex-wrap: wrap; margin-top: auto; padding-top: 6px; }
.kpis div b { display: block; font-size: 1.35rem; letter-spacing: -.03em; line-height: 1.1; }
.kpis div span { font-size: .78rem; color: var(--muted); }
.soon { border: 1.5px dashed var(--line-2); background: transparent; box-shadow: none; display: grid; place-items: center; text-align: center; min-height: 180px; color: var(--muted); }

/* ---------------------------------------------------------------- disciplina: cabeçalho */
.dhero { position: relative; overflow: hidden; color: #fff; background: linear-gradient(135deg, var(--brand-deep) 0%, #0b4a45 55%, var(--brand) 120%); isolation: isolate; }
.dhero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(45% 80% at 90% 10%, rgba(20, 184, 166, .45), transparent 70%), radial-gradient(30% 60% at 0% 100%, rgba(255, 92, 57, .25), transparent 70%); }
.dhero::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px); background-size: 20px 20px; }
.dhero .wrap { padding-top: 44px; padding-bottom: 44px; display: grid; grid-template-columns: 1.4fr .8fr; gap: 32px; align-items: center; }
@media (max-width: 880px) { .dhero .wrap { grid-template-columns: 1fr; } }
.dhero h1 { color: #fff; font-size: clamp(2rem, 4.4vw, 3.2rem); margin-bottom: 12px; }
.dhero p { color: rgba(255,255,255,.82); max-width: 60ch; font-size: 1.05rem; }
.dhero .eyebrow { color: #7ff0e0; }
.next-card { background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.16); border-radius: var(--r-lg); padding: 20px; backdrop-filter: blur(8px); }
.next-card h4 { color: rgba(255,255,255,.7); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 10px; font-weight: 800; }
.agenda-item { display: flex; gap: 14px; align-items: center; padding: 10px 0; border-top: 1px solid rgba(255,255,255,.1); }
.agenda-item:first-of-type { border-top: 0; }
.date-pill { flex: 0 0 52px; text-align: center; background: rgba(255,255,255,.12); border-radius: 12px; padding: 6px 0; line-height: 1.05; }
.date-pill b { display: block; font-size: 1.3rem; letter-spacing: -.03em; }
.date-pill small { font-size: .66rem; text-transform: uppercase; letter-spacing: .1em; opacity: .75; font-weight: 700; }
.agenda-item .t { font-weight: 700; font-size: .94rem; line-height: 1.3; color: #fff; }
.agenda-item .t a { color: #fff; }
.agenda-item .s { font-size: .8rem; color: rgba(255,255,255,.65); }
.prog-line { display: flex; align-items: center; gap: 14px; margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.12); }
.ring { --p: 0; --c: var(--accent); width: 56px; height: 56px; border-radius: 50%; flex: 0 0 auto; background: conic-gradient(var(--c) calc(var(--p) * 1%), rgba(255,255,255,.15) 0); display: grid; place-items: center; }
.ring::before { content: attr(data-label); width: 44px; height: 44px; border-radius: 50%; background: #073b38; color: #fff; display: grid; place-items: center; font-weight: 800; font-size: .82rem; }
.ring.light { background: conic-gradient(var(--c) calc(var(--p) * 1%), var(--bg-2) 0); }
.ring.light::before { background: var(--card); color: var(--ink); }

/* bento (visão geral da disciplina) */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.bento > * { grid-column: span 12; }
@media (min-width: 900px) { .b3 { grid-column: span 3; } .b4 { grid-column: span 4; } .b6 { grid-column: span 6; } .b8 { grid-column: span 8; } }
.tool-card h3 { margin-bottom: 4px; }
.tool-card p { color: var(--muted); font-size: .92rem; margin: 0; }
.tool-card .go { margin-top: 14px; font-weight: 700; color: var(--brand); display: inline-flex; gap: 6px; align-items: center; font-size: .9rem; }

/* lista de aulas */
.lessons { display: grid; gap: 12px; }
.lesson-row { display: grid; grid-template-columns: 148px 1fr auto; gap: 18px; align-items: center; padding: 12px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); color: inherit; transition: border-color .2s, box-shadow .2s, transform .2s; }
.lesson-row:hover { text-decoration: none; border-color: var(--line-2); box-shadow: var(--sh-2); transform: translateY(-1px); }
.lesson-row .thumb { aspect-ratio: 16/9; border-radius: 10px; background: var(--bg-2) center/cover; border: 1px solid var(--line); }
.lesson-row .thumb.none { display: grid; place-items: center; background: linear-gradient(135deg, var(--brand-deep), var(--brand)); color: #fff; font-weight: 800; font-size: .8rem; text-align: center; padding: 6px; }
.lesson-row .meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 4px; font-size: .8rem; color: var(--muted); font-weight: 600; }
.lesson-row h3 { margin: 0 0 3px; font-size: 1.04rem; }
.lesson-row p { margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lesson-row .side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; padding-right: 8px; min-width: 100px; }
@media (max-width: 680px) { .lesson-row { grid-template-columns: 96px 1fr; gap: 12px; } .lesson-row .side { display: none; } }
.num-badge { font-weight: 800; color: var(--brand-ink); background: var(--brand-soft); border-radius: 7px; padding: 1px 8px; font-size: .74rem; }
.bar { height: 6px; background: var(--bg-2); border-radius: 999px; overflow: hidden; width: 100%; }
.bar > i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--brand), var(--brand-2)); transition: width .4s ease; }
.seg { display: inline-flex; gap: 4px; padding: 4px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; padding: 7px 14px; border-radius: 9px; cursor: pointer; font-weight: 700; font-size: .86rem; color: var(--muted); }
.seg button.on { background: var(--card); color: var(--ink); box-shadow: var(--sh-1); }
.unit-h { display: flex; align-items: baseline; gap: 12px; margin: 30px 0 12px; }
.unit-h .u { font-weight: 800; color: var(--accent); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.unit-h h3 { margin: 0; }

/* ---------------------------------------------------------------- player da aula */
.player { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 32px; align-items: start; padding-top: 28px; padding-bottom: 80px; }
@media (max-width: 1060px) { .player { grid-template-columns: minmax(0, 1fr); } .side-list { display: none; } .side-list.open { display: block; } }
.side-list { position: sticky; top: calc(var(--header-h) + 66px); max-height: calc(100vh - var(--header-h) - 86px); overflow: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 10px; scrollbar-width: thin; }
@media (max-width: 1060px) { .side-list { position: static; max-height: none; margin-bottom: 8px; } }
.side-list h4 { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 8px 10px 8px; }
.side-list a { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; padding: 9px 10px; border-radius: 11px; color: var(--ink-2); font-size: .85rem; line-height: 1.35; }
.side-list a:hover { background: var(--bg-2); text-decoration: none; }
.side-list a.on { background: var(--brand-soft); color: var(--brand-ink); font-weight: 700; }
.side-list .st { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-size: .7rem; font-weight: 800; background: var(--bg-2); color: var(--muted); border: 1px solid var(--line); }
.side-list a.done .st { background: var(--ok); color: #fff; border-color: var(--ok); }
.side-list a.on .st { background: var(--brand); color: #fff; border-color: var(--brand); }
.side-list small { display: block; color: var(--muted); font-weight: 600; font-size: .72rem; }
.side-toggle { display: none !important; }
@media (max-width: 1060px) { .side-toggle { display: inline-flex !important; } }
.lhead { margin-bottom: 18px; }
.crumbs { font-size: .84rem; color: var(--muted); margin-bottom: 14px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.crumbs a { color: var(--muted); }
.lhead h1 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin-bottom: 10px; }
.lhead p { color: var(--muted); font-size: 1.02rem; max-width: 72ch; }
.ltabs { display: flex; gap: 4px; padding: 5px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; overflow-x: auto; scrollbar-width: none; margin-bottom: 26px; position: sticky; top: calc(var(--header-h) + 58px); z-index: 30; }
.ltabs::-webkit-scrollbar { display: none; }
.ltabs a { padding: 9px 14px; border-radius: 10px; font-weight: 700; font-size: .87rem; color: var(--muted); white-space: nowrap; display: inline-flex; gap: 7px; align-items: center; }
.ltabs a:hover { color: var(--ink); text-decoration: none; }
.ltabs a.on { background: var(--card); color: var(--ink); box-shadow: var(--sh-1); }
.ltabs .n { font-size: .7rem; background: var(--card); border: 1px solid var(--line); padding: 0 7px; border-radius: 999px; color: var(--muted); }
.ltabs a.on .n { background: var(--brand-soft); color: var(--brand-ink); border-color: transparent; }
.ltabs .ok { color: var(--ok); font-weight: 800; }
.lnav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 48px; }
.lnav a { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px 18px; background: var(--card); color: var(--ink); }
.lnav a:hover { text-decoration: none; border-color: var(--line-2); box-shadow: var(--sh-2); }
.lnav small { display: block; color: var(--muted); font-weight: 700; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 2px; }
.lnav span { font-weight: 700; line-height: 1.3; }
.lnav .next { text-align: right; grid-column: 2; }
@media (max-width: 600px) { .lnav { grid-template-columns: 1fr; } .lnav .next { grid-column: 1; } }

.overview { display: grid; grid-template-columns: 1.35fr 1fr; gap: 18px; align-items: start; }
@media (max-width: 980px) { .overview { grid-template-columns: minmax(0, 1fr); } }
.keypoints { list-style: none; margin: 0; padding: 0; counter-reset: k; }
.keypoints li { position: relative; padding: 14px 0 14px 50px; border-top: 1px solid var(--line); color: var(--ink-2); }
.keypoints li:first-child { border-top: 0; padding-top: 4px; }
.keypoints li::before { counter-increment: k; content: counter(k, decimal-leading-zero); position: absolute; left: 0; top: 13px; font-weight: 800; font-size: .78rem; color: var(--brand-ink); background: var(--brand-soft); border-radius: 9px; padding: 4px 8px; }
.keypoints li:first-child::before { top: 3px; }
.checks { list-style: none; margin: 0; padding: 0; }
.checks li { padding: 7px 0 7px 30px; position: relative; color: var(--ink-2); }
.checks li::before { content: ""; position: absolute; left: 2px; top: 11px; width: 18px; height: 18px; border-radius: 6px; background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314b8a6' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/12px no-repeat; }
.todo { list-style: none; margin: 0; padding: 0; }
.todo li { display: flex; gap: 12px; align-items: center; padding: 11px 0; border-top: 1px solid var(--line); }
.todo li:first-child { border-top: 0; }
.todo .tk { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line-2); display: grid; place-items: center; flex: 0 0 auto; color: #fff; }
.todo li.ok .tk { background: var(--ok); border-color: var(--ok); }
.todo a { font-weight: 700; color: var(--ink); }

/* leitura */
.reader { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 28px; align-items: start; }
@media (max-width: 1280px) { .reader { grid-template-columns: minmax(0, 1fr); } .toc { display: none; } }
.toc { position: sticky; top: calc(var(--header-h) + 130px); font-size: .84rem; }
.toc h4 { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.toc a { display: block; padding: 5px 0 5px 12px; color: var(--muted); border-left: 2px solid var(--line); line-height: 1.35; }
.toc a:hover { color: var(--ink); border-left-color: var(--brand); text-decoration: none; }
.prose { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(22px, 4.5vw, 52px); font-size: 1.02rem; }
.prose > :first-child { margin-top: 0; }
.prose p, .prose li { max-width: 74ch; color: var(--ink-2); }
.prose h2 { font-size: 1.45rem; margin: 2em 0 .7em; scroll-margin-top: 150px; }
.prose h3 { font-size: 1.12rem; margin: 1.6em 0 .5em; scroll-margin-top: 150px; color: var(--brand-ink); }
.prose strong { color: var(--ink); }
.prose .destaque { font-weight: 700; color: var(--ink); background: linear-gradient(90deg, var(--accent-soft), transparent); border-left: 3px solid var(--accent); padding: 12px 16px; border-radius: 0 12px 12px 0; }
.prose .nota { font-size: .9rem; color: var(--muted); }
.prose .caption { font-weight: 800; font-size: .8rem; margin: 1.6em 0 .5em; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .4em 0; }
.prose li::marker { color: var(--brand); font-weight: 700; }
.prose .box { background: var(--brand-soft); border-radius: var(--r); padding: 18px 22px; margin: 1.4em 0; }
.prose .box p { color: var(--ink); }
.prose .box p:last-child { margin-bottom: 0; }
.tabela { overflow-x: auto; margin: 1.2em 0 1.6em; border: 1px solid var(--line); border-radius: var(--r); }
.tabela table { border-collapse: collapse; width: 100%; font-size: .9rem; }
.tabela th { background: var(--bg-2); color: var(--ink); text-align: left; padding: 11px 14px; font-weight: 800; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; border-bottom: 1px solid var(--line); vertical-align: bottom; }
.tabela td { padding: 11px 14px; border-top: 1px solid var(--line); vertical-align: top; color: var(--ink-2); }
.tabela tr:hover td { background: var(--bg); }
.doc-switch { margin-bottom: 16px; }
.done-bar { margin-top: 22px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 18px 20px; border-radius: var(--r-lg); background: var(--card); border: 1px dashed var(--line-2); }

/* slides */
.viewer { background: #0b1418; border-radius: var(--r-xl); padding: 14px; box-shadow: var(--sh-3); }
.viewer:fullscreen { border-radius: 0; display: flex; flex-direction: column; justify-content: center; padding: 20px; }
.viewer:fullscreen .stage { max-height: calc(100vh - 150px); aspect-ratio: auto !important; background: transparent; }
.viewer:fullscreen .stage img { max-height: calc(100vh - 150px); width: auto; margin: 0 auto; }
.stage { position: relative; border-radius: 12px; overflow: hidden; background: #fff; user-select: none; }
.stage img { width: 100%; height: auto; }
.navz { position: absolute; top: 0; bottom: 0; width: 20%; border: 0; background: transparent; cursor: pointer; display: flex; align-items: center; opacity: 0; transition: opacity .2s; padding: 0 12px; }
.stage:hover .navz { opacity: 1; }
.navz.l { left: 0; justify-content: flex-start; }
.navz.r { right: 0; justify-content: flex-end; }
.navz span { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: rgba(11, 20, 24, .75); color: #fff; backdrop-filter: blur(6px); }
.vbar { display: flex; align-items: center; gap: 10px; padding: 14px 4px 4px; color: #c9d6dc; flex-wrap: wrap; }
.vbar .count { font-weight: 800; font-variant-numeric: tabular-nums; min-width: 64px; text-align: center; }
.vbar .hint { font-size: .8rem; color: #7f939c; }
@media (max-width: 600px) { .vbar .hint { display: none; } }
.vprog { height: 3px; background: rgba(255,255,255,.1); border-radius: 3px; margin: 12px 4px 0; overflow: hidden; }
.vprog i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand-2), var(--accent)); transition: width .25s; }
.thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 12px 4px 4px; scrollbar-width: thin; }
.thumbs button { flex: 0 0 104px; border: 2px solid transparent; border-radius: 8px; padding: 0; background: #fff; cursor: pointer; overflow: hidden; opacity: .5; transition: opacity .2s; }
.thumbs button.on { border-color: var(--accent); opacity: 1; }
.thumbs button:hover { opacity: 1; }
.kbd { font-family: var(--mono); font-size: .75em; border: 1px solid currentColor; border-radius: 5px; padding: 0 5px; opacity: .8; }

/* quiz */
.quiz { max-width: 860px; scroll-margin-top: 150px; }
.qtop { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; flex-wrap: wrap; }
.qtop .bar { flex: 1; min-width: 140px; height: 8px; }
.qtop .count { font-weight: 800; color: var(--muted); font-variant-numeric: tabular-nums; font-size: .88rem; }
.qcard { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(20px, 3.5vw, 34px); box-shadow: var(--sh-2); }
.qtags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.qtext { font-size: 1.12rem; font-weight: 700; letter-spacing: -.01em; margin-bottom: 20px; line-height: 1.5; }
.opts { display: grid; gap: 10px; }
.opt { display: flex; gap: 14px; align-items: flex-start; text-align: left; width: 100%; background: var(--card); border: 1.5px solid var(--line); border-radius: 14px; padding: 14px 16px; cursor: pointer; transition: border-color .15s, background .15s, transform .1s; line-height: 1.5; color: var(--ink-2); }
.opt:hover:not([disabled]) { border-color: var(--brand-2); background: var(--bg); }
.opt:active:not([disabled]) { transform: scale(.995); }
.opt .l { flex: 0 0 30px; height: 30px; border-radius: 9px; background: var(--bg-2); color: var(--ink-2); display: grid; place-items: center; font-weight: 800; font-size: .86rem; border: 1px solid var(--line); }
.opt .tx { padding-top: 3px; }
.opt.sel { border-color: var(--brand); background: var(--brand-soft); color: var(--ink); }
.opt.sel .l { background: var(--brand); color: #fff; border-color: var(--brand); }
.opt.right { border-color: var(--ok); background: var(--ok-soft); color: var(--ink); }
.opt.right .l { background: var(--ok); color: #fff; border-color: var(--ok); }
.opt.wrong { border-color: var(--err); background: var(--err-soft); color: var(--ink); }
.opt.wrong .l { background: var(--err); color: #fff; border-color: var(--err); }
.opt[disabled] { cursor: default; }
.vf { grid-template-columns: 1fr 1fr; }
.vf .opt { justify-content: center; font-weight: 800; padding: 18px; }
.num-in { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.input, .num-in input, .field input, .field select, textarea.input {
  font: inherit; color: var(--ink); background: var(--card); border: 1.5px solid var(--line-2); border-radius: 12px; padding: 11px 14px; transition: border-color .15s, box-shadow .15s; }
.input:focus, .num-in input:focus, .field input:focus, .field select:focus, textarea.input:focus { outline: none; border-color: var(--brand-2); box-shadow: var(--ring); }
.num-in input { width: 190px; font-size: 1.1rem; }
.fb { margin-top: 18px; border-radius: 14px; padding: 15px 18px; display: flex; gap: 12px; align-items: flex-start; animation: pop .25s ease; }
.fb.ok { background: var(--ok-soft); }
.fb.err { background: var(--err-soft); }
.fb .ic { flex: 0 0 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; }
.fb.ok .ic { background: var(--ok); }
.fb.err .ic { background: var(--err); }
.fb b { display: block; margin-bottom: 2px; }
.fb p { margin: 0; white-space: pre-line; color: var(--ink-2); }
@keyframes pop { from { transform: translateY(6px); } to { transform: none; } }
.qact { display: flex; justify-content: space-between; gap: 10px; margin-top: 18px; flex-wrap: wrap; align-items: center; }
.result { text-align: center; padding: 38px 22px; }
.result .score { font-size: clamp(3.4rem, 9vw, 5rem); font-weight: 800; letter-spacing: -.05em; line-height: 1; background: linear-gradient(120deg, var(--brand), var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.review { margin-top: 18px; display: grid; gap: 12px; }
.rv { border: 1px solid var(--line); border-left: 4px solid var(--ok); border-radius: 14px; padding: 14px 18px; background: var(--card); }
.rv.bad { border-left-color: var(--err); }
.rv .q { font-weight: 700; margin-bottom: 6px; }
.rv .a { font-size: .92rem; color: var(--ink-2); }
.rv .e { font-size: .88rem; color: var(--muted); margin-top: 6px; white-space: pre-line; }
.timer { font-weight: 800; font-variant-numeric: tabular-nums; padding: 4px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
.pts { font-weight: 800; color: var(--brand-ink); }

/* seletor (praticar) */
.setup { display: grid; gap: 26px; }
.setup fieldset { border: 0; margin: 0; padding: 0; }
.setup legend { font-weight: 800; margin-bottom: 12px; font-size: .95rem; display: flex; gap: 10px; align-items: center; }
.setup legend .n { width: 24px; height: 24px; border-radius: 8px; background: var(--ink); color: var(--card); display: grid; place-items: center; font-size: .78rem; }
.pick { display: flex; flex-wrap: wrap; gap: 8px; }
.pick label { cursor: pointer; }
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick span { display: inline-block; border: 1.5px solid var(--line-2); background: var(--card); padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: .86rem; color: var(--ink-2); transition: all .15s; }
.pick input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--card); }
.pick input:focus-visible + span { box-shadow: var(--ring); }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: .92rem; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--brand); }

/* classificar */
.cls { padding: 14px 0; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.cls:first-of-type { border-top: 0; }
.cls .txt { font-weight: 600; }
.cls .cats { display: flex; flex-wrap: wrap; gap: 6px; }
.cls .cats button { border: 1.5px solid var(--line-2); background: var(--card); padding: 6px 13px; border-radius: 999px; cursor: pointer; font-size: .84rem; font-weight: 700; color: var(--muted); }
.cls .cats button:hover:not([disabled]) { border-color: var(--brand-2); color: var(--ink); }
.cls .cats button.on { background: var(--ink); color: var(--card); border-color: var(--ink); }
.cls .cats button.right { background: var(--ok); color: #fff; border-color: var(--ok); }
.cls .cats button.wrong { background: var(--err); color: #fff; border-color: var(--err); }
.cls .why { font-size: .86rem; color: var(--muted); }
.cls.ok .txt::before { content: "✓  "; color: var(--ok); font-weight: 800; }
.cls.bad .txt::before { content: "✗  "; color: var(--err); font-weight: 800; }

/* casos */
.case .sit { white-space: pre-line; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; margin: 12px 0 14px; color: var(--ink-2); }
.case ol { padding-left: 1.2em; color: var(--ink-2); }
.case textarea { width: 100%; min-height: 120px; resize: vertical; }
.answer { margin-top: 14px; background: var(--ok-soft); border-radius: var(--r); padding: 16px 18px; white-space: pre-line; animation: pop .25s ease; color: var(--ink-2); }
.answer b { display: block; color: var(--ok); margin-bottom: 4px; }

/* flashcards */
.fcw { max-width: 720px; margin: 0 auto; }
.fc { perspective: 1600px; cursor: pointer; margin: 12px 0 16px; }
.fc-in { position: relative; min-height: 300px; transition: transform .6s cubic-bezier(.2,.8,.2,1); transform-style: preserve-3d; }
.fc.flip .fc-in { transform: rotateY(180deg); }
.fc-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: var(--r-xl); padding: 40px 34px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; border: 1px solid var(--line); box-shadow: var(--sh-2); }
.fc-front { background: var(--card); }
.fc-front .q { font-size: clamp(1.2rem, 3vw, 1.6rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.3; }
.fc-back { background: linear-gradient(135deg, var(--brand-deep), var(--brand)); color: #fff; transform: rotateY(180deg); border-color: transparent; }
.fc-back .a { font-size: 1.06rem; line-height: 1.6; }
.fc-face .hint { position: absolute; bottom: 16px; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 800; color: var(--muted); }
.fc-back .hint { color: rgba(255,255,255,.6); }
.fc-face .src { position: absolute; top: 16px; left: 18px; }
.fc-act { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fc-act .btn { padding: 15px; }
.btn-no { background: var(--err-soft); color: var(--err); }
.btn-yes { background: var(--ok-soft); color: var(--ok); }
.fc-stats { display: flex; justify-content: center; gap: 18px; font-weight: 700; font-size: .88rem; color: var(--muted); flex-wrap: wrap; }

/* glossário */
.search { position: relative; max-width: 560px; }
.search input { width: 100%; padding: 14px 16px 14px 46px; border-radius: 14px; }
.search .icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.gloss { columns: 2 380px; column-gap: 18px; margin-top: 22px; }
.gloss .card { break-inside: avoid; margin-bottom: 18px; padding: 18px 20px; }
.gloss dt { font-weight: 800; font-size: 1.04rem; margin-bottom: 4px; letter-spacing: -.01em; }
.gloss dd { margin: 0 0 10px; color: var(--ink-2); }

/* cronograma */
.tl-it { display: grid; grid-template-columns: 70px 1fr; gap: 18px; padding: 0 0 22px; position: relative; }
.tl-it::before { content: ""; position: absolute; left: 34px; top: 64px; bottom: 0; width: 2px; background: var(--line); }
.tl-it:last-child::before { display: none; }
.tl-d { width: 70px; text-align: center; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 8px 0; line-height: 1.05; height: max-content; }
.tl-d b { display: block; font-size: 1.5rem; letter-spacing: -.03em; }
.tl-d small { font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 800; }
.tl-it.past .tl-d { opacity: .55; }
.tl-it.next .tl-d { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 10px 20px -10px rgba(255, 92, 57, .8); }
.tl-it.next .tl-d small { color: rgba(255,255,255,.85); }
.tl-it.eval .tl-d { border: 2px solid var(--accent); }
.tl-b { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px 20px; }
.tl-b h3 { font-size: 1rem; margin: 0 0 4px; }
.tl-b p { margin: 0 0 6px; color: var(--ink-2); font-size: .94rem; }
.tl-b .met { font-size: .86rem; color: var(--muted); }
.weights { display: flex; height: 46px; border-radius: 14px; overflow: hidden; margin: 14px 0 10px; gap: 3px; }
.weights div { display: grid; place-items: center; color: #fff; font-weight: 800; font-size: .84rem; white-space: nowrap; overflow: hidden; }
.legend { display: flex; flex-wrap: wrap; gap: 16px; font-size: .88rem; color: var(--ink-2); }
.legend span { display: inline-flex; gap: 7px; align-items: center; }
.legend i { width: 11px; height: 11px; border-radius: 4px; display: inline-block; }

/* dimensionamento */
.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 18px; align-items: start; }
@media (max-width: 960px) { .calc { grid-template-columns: minmax(0, 1fr); } }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 700; font-size: .9rem; }
.field .help { font-size: .8rem; color: var(--muted); }
.beds { display: grid; grid-template-columns: 1fr 100px 56px; gap: 8px 10px; align-items: center; margin: 14px 0 20px; }
.beds .h { font-size: .7rem; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.beds input { font: inherit; padding: 10px 12px; border-radius: 10px; border: 1.5px solid var(--line-2); width: 100%; background: var(--card); color: var(--ink); text-align: right; }
.beds input:focus { outline: none; border-color: var(--brand-2); box-shadow: var(--ring); }
.beds .hrs { text-align: center; font-weight: 700; color: var(--muted); font-size: .88rem; }
.big3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 16px 0; }
.big3 div { border-radius: 16px; padding: 16px 10px; text-align: center; color: #fff; background: linear-gradient(135deg, var(--brand-deep), var(--brand)); }
.big3 div:nth-child(2) { background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.big3 div:nth-child(3) { background: linear-gradient(135deg, #334155, #64748b); }
.big3 b { display: block; font-size: 2.3rem; letter-spacing: -.04em; line-height: 1.05; }
.big3 small { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 800; opacity: .9; }
.memo li { margin: 8px 0; color: var(--ink-2); }
.memo code, .code { font-family: var(--mono); font-size: .84em; background: var(--bg-2); padding: 2px 7px; border-radius: 6px; color: var(--ink); }
.formula { background: linear-gradient(135deg, var(--brand-deep), var(--brand)); color: #fff; border-radius: var(--r-xl); padding: 24px; text-align: center; font-family: var(--mono); font-size: clamp(1.05rem, 2.4vw, 1.4rem); font-weight: 700; }
.formula small { display: block; font-family: var(--font); font-weight: 500; font-size: .86rem; color: rgba(255,255,255,.75); margin-top: 8px; }
.notice { background: var(--warn-soft); border-radius: 12px; padding: 12px 16px; font-size: .9rem; }
.fug-row { display: grid; grid-template-columns: 170px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.fug-row:first-child { border-top: 0; }
@media (max-width: 720px) { .fug-row { grid-template-columns: 1fr; } }
.fug-row .area { font-weight: 800; font-size: .9rem; padding-top: 6px; }
.fug-opts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
@media (max-width: 720px) { .fug-opts { grid-template-columns: 1fr 1fr; } }
.fug-opts button { border: 1.5px solid var(--line); background: var(--card); border-radius: 11px; padding: 8px 10px; cursor: pointer; font-size: .8rem; text-align: left; line-height: 1.3; color: var(--ink-2); }
.fug-opts button:hover { border-color: var(--brand-2); }
.fug-opts button b { display: block; font-size: .66rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.fug-opts button.on { background: var(--ink); border-color: var(--ink); color: var(--card); }
.fug-opts button.on b { color: var(--card); opacity: .7; }
.fug-opts button.gab { box-shadow: 0 0 0 3px var(--ok); }
.fug-total { position: sticky; bottom: 14px; margin-top: 16px; background: var(--ink); color: var(--card); border-radius: 16px; padding: 14px 18px; display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; box-shadow: var(--sh-3); }
@media (max-width: 760px) { .fug-total { bottom: 86px; } }
.fug-total b { font-size: 1.7rem; letter-spacing: -.03em; }
.fug-total .btn-ghost { background: transparent; color: var(--card); border-color: rgba(127,127,127,.5); }

/* downloads */
.dl { display: flex; gap: 14px; align-items: center; color: var(--ink); }
.dl .ext { flex: 0 0 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; font-weight: 800; font-size: .7rem; text-transform: uppercase; color: #fff; background: #475569; }
.dl .ext.pdf { background: linear-gradient(135deg, #ef4444, #b91c1c); }
.dl .ext.docx { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.dl .ext.xlsx { background: linear-gradient(135deg, #22c55e, #15803d); }
.dl .t { font-weight: 700; line-height: 1.3; }
.dl .s { font-size: .8rem; color: var(--muted); }

/* sobre */
.about-hero { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; }
@media (max-width: 700px) { .about-hero { grid-template-columns: 1fr; } }
.about-hero .avatar-lg { width: 120px; height: 120px; border-radius: 32px; font-size: 2.5rem; }
.about-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 18px; align-items: start; margin-top: 34px; }
@media (max-width: 960px) { .about-grid { grid-template-columns: 1fr; } }
.bio p { color: var(--ink-2); font-size: 1.04rem; }
.tline { list-style: none; margin: 0; padding: 0; }
.tline li { position: relative; padding: 0 0 18px 26px; }
.tline li::before { content: ""; position: absolute; left: 3px; top: 8px; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.tline li::after { content: ""; position: absolute; left: 7px; top: 22px; bottom: 0; width: 2px; background: var(--line); }
.tline li:last-child::after { display: none; }
.tline .y { font-size: .74rem; font-weight: 800; color: var(--brand); letter-spacing: .04em; text-transform: uppercase; }
.tline .t { font-weight: 700; line-height: 1.35; }
.tline .l { font-size: .86rem; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }

/* misc */
.empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.loading { padding: 120px 0; text-align: center; color: var(--muted); }
.loading::before { content: ""; display: block; width: 34px; height: 34px; margin: 0 auto 14px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--brand); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 30px); opacity: 0; background: var(--ink); color: var(--card); padding: 12px 20px; border-radius: 14px; font-weight: 700; box-shadow: var(--sh-3); transition: all .25s ease; z-index: 100; pointer-events: none; max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 760px) { .toast { bottom: 96px; } }
.fade-in { animation: fadein .35s ease both; }
@keyframes fadein { from { transform: translateY(10px); } to { transform: none; } }

footer.site { border-top: 1px solid var(--line); padding: 34px 0; color: var(--muted); font-size: .86rem; margin-top: 20px; }
footer.site .wrap { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; align-items: center; }
footer.site b { color: var(--ink); }

@media print {
  .topbar, .subnav, .side-list, .ltabs, footer.site, .done-bar, .lnav, .mainnav { display: none !important; }
  .player { display: block; }
  .prose { border: 0; padding: 0; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* lista de exercícios */
.print-only { display: none; }
@media print {
  .no-print, .dhero, #subnav, .lista .fb, .lista .num-in button, .lista .case .row, .lista .case textarea, .lista .case label, .lista .answer { display: none !important; }
  .print-only { display: block !important; }
  .lista .qcard, .lista .card { box-shadow: none !important; border: 1px solid #ccc; break-inside: avoid; padding: 14px 16px; }
  .lista .opt { border: 0; padding: 4px 0; background: none !important; color: #000 !important; }
  .lista .opt .l { background: none !important; border: 1px solid #999; color: #000 !important; }
  .lista .num-in input { border: 0; border-bottom: 1px solid #999; border-radius: 0; }
  .lista-tema { break-before: auto; }
  .gabarito { break-before: page; font-size: .9rem; }
  .gabarito li { margin: 6px 0; }
  body { background: #fff; color: #000; padding: 0 !important; }
}
.visitas { opacity: .7; font-variant-numeric: tabular-nums; }
