/* Moldura da plataforma: topo verde, abas sublinhadas, sub-abas em pílulas suaves
   e barra de baixo no celular. Fica por cima do app.css do protótipo. */

/* Linha 1: topo verde */
.icon-btn { width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .08); color: var(--brand-ink); display: grid; place-items: center; cursor: pointer; flex: none; }
.icon-btn:hover { background: rgba(255, 255, 255, .16); }
.vswitch { display: inline-flex; background: rgba(255, 255, 255, .08); border-radius: 999px; padding: 3px; gap: 2px; flex: none; }
.vswitch button { border: 0; background: none; color: #e8d6a4; padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; cursor: pointer; }
.vswitch button.on { background: #e8d6a4; color: #0f3d2e; }
.who { padding-right: 12px; }

/* Linha 2: abas com sublinhado */
.nav-in { gap: 28px; padding: 0 20px; align-items: stretch; }
.nav a, .nav a:hover { background: none !important; border: 0; border-radius: 0; border-bottom: 2px solid transparent; padding: 14px 0 12px; font-weight: 500; color: var(--ink-2); }
.nav a:hover { color: var(--ink); }
.nav a.on { color: var(--series); border-bottom-color: var(--series); font-weight: 600; }

/* Linha 3: sub-abas de Acompanhamento */
.subnav-in { max-width: 1240px; margin: 0 auto; padding: 14px 20px 0; display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; }
.subnav-in::-webkit-scrollbar { display: none; }
.subnav a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 13px; border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--ink-3); text-decoration: none; white-space: nowrap; }
.subnav a svg.i { width: 15px; height: 15px; }
.subnav a:hover { color: var(--ink); }
.subnav a.on { background: var(--series-soft); color: var(--series); font-weight: 600; }
body.has-sub main { padding-top: 14px; }

/* Barra de baixo (só no celular) */
.bottom { display: none; }
@media (max-width: 720px) {
  .nav { display: none !important; }
  .vswitch button { padding: 5px 9px; }
  .subnav-in { padding: 12px 16px 0; }
  .bottom { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; background: var(--surface); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px)); justify-content: space-around; }
  .bottom > a, .bottom > button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; font-weight: 500; color: var(--ink-3); text-decoration: none; border: 0; background: none; padding: 4px 0; cursor: pointer; }
  .bottom > .on { color: var(--series); }
  .bottom svg.i { width: 22px; height: 22px; }
  .bottom .reg svg.i { width: 40px; height: 40px; padding: 9px; margin-top: -18px; border-radius: 50%; background: var(--gold-mark); color: #0f3d2e; box-shadow: 0 4px 12px rgba(0, 0, 0, .15); }
  .bottom .reg { color: var(--gold-strong); }
  .more-sheet { position: absolute; right: 8px; bottom: calc(100% + 8px); min-width: 220px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 6px; display: grid; }
  .more-sheet a { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 10px; text-decoration: none; color: var(--ink); font-size: 14px; font-weight: 500; }
  .more-sheet a.on { background: var(--series-soft); color: var(--series); }
  main { padding-bottom: 120px; }
  .foot { padding-bottom: 100px; }
}

@media (max-width: 440px) { .logo-name { display: none; } }

/* ---------- Páginas novas ---------- */
.draft { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-3); margin-top: 10px; }
.draft svg.i { width: 14px; height: 14px; }
.home-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 960px) { .home-grid { grid-template-columns: minmax(0, 1fr); } }
.mini-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.mini-kpis > div { display: grid; gap: 2px; align-content: start; }
.mini-kpis .kpi-v { font-size: 24px; }
.meet { display: flex; gap: 12px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.meet:first-of-type { border-top: 0; }
.meet b { display: block; font-size: 14px; }
.meet small { color: var(--ink-3); font-size: 12px; }
.meet-d { width: 46px; height: 46px; border-radius: 10px; background: var(--gold-soft); color: var(--gold-strong); display: grid; place-items: center; text-align: center; font-size: 11px; line-height: 1.1; flex: none; }
.meet-d b { font-size: 13px; }

.modules { display: grid; gap: 16px; }
.mod-pct { font-weight: 650; color: var(--series); font-size: 14px; }
.lesson-row { display: flex; align-items: center; gap: 12px; padding: 10px 8px; border-top: 1px solid var(--line); text-decoration: none; border-radius: 8px; }
.card-h + .lesson-row { border-top: 0; }
.lesson-row:hover { background: var(--surface-2); }
.lesson-row .lr-t { flex: 1; min-width: 0; }
.lesson-row b { display: block; font-size: 14px; font-weight: 600; }
.lesson-row small { color: var(--ink-3); font-size: 12px; }
.play { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--series-soft); color: var(--series); flex: none; }
.play.done { background: var(--good-soft); color: var(--good-ink); }
.lesson-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
@media (max-width: 960px) { .lesson-layout { grid-template-columns: minmax(0, 1fr); } }
.video { aspect-ratio: 16 / 9; border-radius: var(--radius); background: #0f1a16; color: #cfd8d3; display: grid; place-items: center; align-content: center; gap: 6px; text-align: center; }
.video svg.i { width: 44px; height: 44px; color: #e8d6a4; }
.video span { font-weight: 600; }
.video small { color: #8fa39a; font-size: 12px; }
.materials { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 14px; }
.lesson-nav { display: flex; justify-content: space-between; margin-top: 16px; }
.lesson-side { position: sticky; top: 130px; }
.side-row { display: block; padding: 8px 10px; border-radius: 8px; text-decoration: none; font-size: 13px; color: var(--ink-2); }
.side-row:hover { background: var(--surface-2); }
.side-row.on { background: var(--series-soft); color: var(--series); font-weight: 600; }

.tl { list-style: none; margin: 0; padding: 0; position: relative; }
.tl::before { content: ''; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.tl li { display: grid; grid-template-columns: 16px 64px minmax(0, 1fr); gap: 14px; align-items: start; padding: 10px 0; position: relative; }
.tl-dot { width: 16px; height: 16px; border-radius: 50%; background: var(--series); box-shadow: 0 0 0 4px var(--surface); margin-top: 2px; }
.tl-sim .tl-dot { background: var(--info-ink); }
.tl-today .tl-dot { background: var(--ink); }
.tl-exam .tl-dot { background: var(--gold-mark); }
.tl li.future .tl-dot { background: var(--surface); border: 2px dashed var(--gold-mark); }
.tl-date { font-size: 13px; color: var(--ink-3); font-weight: 600; padding-top: 1px; }
.tl b { display: block; font-size: 14px; }
.tl small { color: var(--ink-3); font-size: 12px; }

.guide-ic { width: 38px; height: 38px; border-radius: 10px; background: var(--series-soft); color: var(--series); display: grid; place-items: center; flex: none; }
.guide-list { list-style: none; margin: 0; padding: 0; }
.guide-list li { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; }
.guide-list small { color: var(--ink-3); font-size: 12px; }

/* Admin */
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar select.input { width: auto; }
.search-box { position: relative; display: flex; align-items: center; flex: 1 1 220px; max-width: 320px; }
.search-box svg.i { position: absolute; left: 12px; color: var(--ink-3); width: 16px; height: 16px; }
.search-box .input { padding-left: 36px; }
table.students tbody tr { cursor: pointer; }
table.students tbody tr:hover td { background: var(--surface-2); }
table.students .stu-name { display: flex; gap: 10px; align-items: center; }
table.students .stu-name b { display: block; }
table.students .stu-name small { color: var(--ink-3); font-size: 12px; }
.avatars { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 14px; }
.avatars .avatar { text-decoration: none; }
.kanban { display: grid; grid-template-columns: repeat(4, minmax(180px, 1fr)); gap: 12px; overflow-x: auto; }
.kcol { background: var(--surface-3); border-radius: var(--radius); padding: 12px; min-height: 220px; display: grid; gap: 8px; align-content: start; }
.kcol-h { font-size: 12px; font-weight: 700; color: var(--ink-2); text-transform: uppercase; letter-spacing: .06em; }
.kcard { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px; display: grid; gap: 8px; }
.sk { height: 9px; border-radius: 5px; background: var(--line); }
.sk.short { width: 60%; }

/* Acervo */
.fdot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: var(--ink-3); flex: none; }
.f-Reel { background: #d9463b; } .f-Carrossel { background: #2f6fd6; } .f-Foto { background: #c98a12; }
.seg button .fdot { margin-right: 2px; }
.tchips { margin: -2px 0 16px; }
.tchips .chip .muted { font-size: 11px; }
.fav-on { color: var(--gold-strong); border-color: var(--gold-line); }
.acervo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.ac-card { all: unset; box-sizing: border-box; cursor: pointer; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ac-card:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.ac-card:focus-visible { outline: 2px solid var(--series); outline-offset: 2px; }
.ac-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ac-fmt { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.ac-date { font-size: 12px; color: var(--ink-3); }
.ac-title { font-weight: 600; font-size: 14px; line-height: 1.35; color: var(--ink); }
.ac-ex { font-size: 13px; color: var(--ink-3); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.ac-foot { display: flex; justify-content: space-between; margin-top: auto; font-size: 12.5px; font-weight: 500; color: var(--ink-2); }
.ac-star { color: var(--gold-mark); }
.scrim { position: fixed; inset: 0; background: rgba(10, 15, 12, .35); z-index: 60; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 61; width: min(460px, 100vw); background: var(--surface); border-left: 1px solid var(--line); overflow-y: auto; padding: calc(20px + env(safe-area-inset-top, 0px)) 20px calc(28px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 14px; }
.dr-title { font-size: 19px; line-height: 1.3; margin: 0; text-wrap: balance; }
.dr-quote { margin: 0; padding: 12px 14px; background: var(--surface-2); border-radius: var(--radius-sm); font-size: 13.5px; overflow-wrap: anywhere; }
.dr-kv { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 8px 12px; font-size: 13px; margin: 0; }
.dr-kv dt { color: var(--ink-3); } .dr-kv dd { margin: 0; }

/* Data da prova: "Ainda sem data" ou "Já tenho data" */
.exam-date { gap: 8px; }
.exam-date .seg { justify-self: start; display: inline-flex; flex-wrap: nowrap; }
.exam-date .seg button { padding: 6px 12px; font-size: 13px; }
.exam-date input[name="examDate"] { max-width: 240px; }

/* ---------- Guias ---------- */
.g-index { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.g-index-card { display: flex; gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); }
.g-index-card:hover { border-color: var(--series); }
.g-index-card > span:nth-child(2) { flex: 1; min-width: 0; }
.g-index-card b { display: block; font-size: 15px; }
.g-index-card small { display: block; color: var(--ink-3); font-size: 13px; line-height: 1.4; margin-top: 2px; }
.guide-ic.lg { width: 46px; height: 46px; border-radius: 12px; }
.g-layout { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 28px; align-items: start; }
@media (max-width: 960px) { .g-layout { grid-template-columns: minmax(0, 1fr); } .g-side { display: none; } }
.g-side { position: sticky; top: 130px; padding: 12px; }
.g-article { max-width: 820px; min-width: 0; }
.g-toc { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; }
.g-toc button { border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); border-radius: 999px; padding: 5px 12px; font-size: 12.5px; font-weight: 500; cursor: pointer; }
.g-toc button:hover { border-color: var(--series); color: var(--series); }
.g-h { font: 600 18px/1.3 var(--font-display); margin: 30px 0 12px; scroll-margin-top: 140px; letter-spacing: -.005em; }
.g-p { margin: 12px 0; color: var(--ink-2); font-size: 15px; line-height: 1.6; max-width: 68ch; }
.g-note { margin: 6px 0 0; color: var(--ink-3); font-size: 12.5px; }
.g-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.g-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--series); background: var(--series-soft); padding: 4px 10px; border-radius: 999px; text-decoration: none; }
.g-chip svg.i { width: 14px; height: 14px; }
.g-steps { list-style: none; counter-reset: st; margin: 8px 0; padding: 0; display: grid; gap: 0; }
.g-steps > li { counter-increment: st; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.g-steps > li:first-child { border-top: 0; }
.g-steps > li::before { content: counter(st); width: 30px; height: 30px; border-radius: 50%; background: var(--series-soft); color: var(--series); font-weight: 700; font-size: 14px; display: grid; place-items: center; }
.g-steps b { font-size: 15px; }
.g-steps p { margin: 3px 0 0; color: var(--ink-2); font-size: 14px; line-height: 1.5; }
.g-steps ul, .g-card ul, .g-res-card ul, .g-list { margin: 6px 0 0; padding-left: 18px; color: var(--ink-2); font-size: 14px; line-height: 1.55; }
.g-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin: 8px 0; }
.g-cards.wide { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.g-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: grid; gap: 4px; align-content: start; }
.g-card-t { font-size: 12px; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; }
.g-card-v { font-size: 24px; font-weight: 700; letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.g-card p { margin: 2px 0 0; font-size: 13px; color: var(--ink-2); line-height: 1.45; }
.g-total { display: flex; gap: 18px; align-items: center; justify-content: space-between; background: var(--series-soft); border: 1px solid color-mix(in srgb, var(--series) 30%, transparent); border-radius: var(--radius); padding: 16px 20px; margin: 16px 0; }
.g-total p { margin: 4px 0 0; font-size: 13px; color: var(--ink-2); max-width: 60ch; }
.g-total-v { font-size: 30px; font-weight: 700; color: var(--series); letter-spacing: -.02em; white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .g-total { flex-direction: column; align-items: flex-start; } }
.g-table { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin: 8px 0 0; }
.g-table td.g-first { font-weight: 600; }
.g-alert { margin: 14px 0; }
.g-terms { display: grid; gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.g-term { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 14px; padding: 12px 16px; border-top: 1px solid var(--line); }
.g-term:first-child { border-top: 0; }
.g-term-k { font-weight: 700; color: var(--series); font-size: 14px; overflow-wrap: anywhere; }
.g-term b { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.g-term p { margin: 2px 0 0; font-size: 14px; color: var(--ink); line-height: 1.45; }
@media (max-width: 560px) { .g-term { grid-template-columns: minmax(0, 1fr); gap: 2px; } }
.g-res { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin: 8px 0; }
.g-res-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.g-res-h { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.g-res-h b { display: block; font-size: 15px; }
.g-role { font-size: 12px; color: var(--ink-3); }
.g-price { font-size: 12.5px; font-weight: 600; color: var(--gold-strong); background: var(--gold-soft); padding: 3px 9px; border-radius: 999px; white-space: nowrap; text-align: right; }
.g-links { display: grid; gap: 8px; }
.g-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; text-decoration: none; color: var(--ink); }
.g-link:hover { border-color: var(--series); }
.g-link b { display: block; font-size: 15px; }
.g-link small { color: var(--ink-3); font-size: 13px; }
.g-link svg.i { color: var(--ink-3); flex: none; }
.g-sources { margin: 26px 0 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--ink-3); }
.g-sources a { color: var(--ink-2); }

/* ---------- Timeline com zoom ---------- */
:root { --tl-p1: #1f7a55; --tl-p2: #2e5d8a; --tl-p3: #a06b10; --tl-p4: #7a3e6a; --tl-marco: #c9a03a; --tl-proc: #4a5751; --tl-sim: #6b4fb0; --tl-ment: #b07d12; --tl-today: #d03b3b; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --tl-p1: #3fa77a; --tl-p2: #5b8fc4; --tl-p3: #d39a3a; --tl-p4: #b878a8; --tl-proc: #a9b4ae; --tl-sim: #a891e6; --tl-ment: #e0b85a; } }
:root[data-theme="dark"] { --tl-p1: #3fa77a; --tl-p2: #5b8fc4; --tl-p3: #d39a3a; --tl-p4: #b878a8; --tl-proc: #a9b4ae; --tl-sim: #a891e6; --tl-ment: #e0b85a; }
.tlx-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.tlx-crumb { flex: 1; min-width: 240px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 14px; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.tlx-crumb .k { font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.tlx-crumb .ph { font: 600 19px/1.2 var(--font-display); }
.tlx-crumb .sub { color: var(--ink-2); }
.tlx-crumb .rng { color: var(--ink-3); font-size: 12.5px; }
.tlx-ctrl { display: flex; gap: 2px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px; }
.tlx-ctrl button { border: 0; background: none; color: var(--ink-2); padding: 7px 11px; border-radius: 8px; font: 600 13px var(--font); cursor: pointer; }
.tlx-ctrl button:hover { background: var(--surface-2); color: var(--ink); }
.tlx-ctrl button.on { background: var(--gold-soft); color: var(--gold-strong); }
.tlx-sep { width: 1px; height: 20px; background: var(--line); }
.tlx-toggles { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin: 0 0 10px; }
.tlx-lt { display: inline-flex; gap: 6px; align-items: center; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 5px 11px; font-size: 12.5px; font-weight: 600; cursor: pointer; color: var(--ink-2); }
.tlx-lt i { width: 9px; height: 9px; border-radius: 50%; }
.tlx-lt.off { opacity: .45; }
.tlx-legend { margin-left: auto; display: inline-flex; gap: 6px; align-items: center; font-size: 12px; color: var(--ink-3); flex-wrap: wrap; }
.tlx-legend .st { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-left: 6px; }
.st.done { background: var(--good); } .st.next { background: var(--surface); border: 2px solid var(--ink-3); } .st.late { background: var(--critical); } .st.est { background: var(--surface); border: 2px dashed var(--ink-3); }
.tlx-view { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; user-select: none; touch-action: none; cursor: grab; box-shadow: var(--shadow); }
.tlx-view.drag { cursor: grabbing; }
.tlx-lane { position: relative; border-top: 1px solid var(--line); }
.tlx-lane:first-child { border-top: 0; }
.tlx-lh { position: absolute; left: 10px; top: 8px; z-index: 5; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: var(--surface); padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-2); display: flex; gap: 6px; align-items: center; max-width: 160px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tlx-lh i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.tlx-empty { position: absolute; left: 130px; top: 10px; font-size: 11.5px; color: var(--ink-3); }
.tlx-pip { position: absolute; top: 26px; width: 6px; height: 6px; border-radius: 50%; opacity: .7; }
.tlx-grid { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--line); opacity: .6; }
.tlx-grid.major { background: var(--line-2); opacity: 1; }
.tlx-phase { position: absolute; height: 26px; border-radius: 6px; background: var(--c); color: #fff; font-size: 12px; font-weight: 700; display: flex; align-items: center; padding-right: 10px; white-space: nowrap; overflow: hidden; cursor: pointer; text-decoration: none; }
.tlx-phase.sub { height: 20px; font-weight: 600; font-size: 11px; opacity: .88; }
.tlx-phase.dashed { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--c) 22%, var(--surface)) 0 8px, color-mix(in srgb, var(--c) 12%, var(--surface)) 8px 16px); color: var(--c); border: 1.5px dashed var(--c); }
.tlx-phase .d { font-weight: 500; opacity: .85; margin-left: 8px; }
.tlx-ev { position: absolute; cursor: pointer; }
.tlx-dot { position: absolute; width: 11px; height: 11px; border-radius: 50%; transform: translate(-5.5px, -5.5px); background: var(--surface); border: 2px solid var(--c); }
.tlx-dot.m { width: 14px; height: 14px; border-radius: 3px; transform: translate(-7px, -7px) rotate(45deg); }
.tlx-ev.s-done .tlx-dot { background: var(--c); }
.tlx-ev.s-late .tlx-dot { background: var(--critical); border-color: var(--critical); }
.tlx-ev.est .tlx-dot { border-style: dashed; background: var(--surface); }
.tlx-stem { position: absolute; width: 1px; opacity: .5; }
.tlx-lab { position: absolute; transform: translateX(-6px); background: var(--surface-2); border: 1px solid var(--line); border-left: 3px solid; border-radius: 6px; padding: 3px 8px; white-space: nowrap; font-size: 12px; line-height: 1.3; }
.tlx-lab small { display: block; font-size: 10.5px; color: var(--ink-3); }
.tlx-ev.s-done .tlx-lab { color: var(--ink-3); }
.tlx-ev.s-late .tlx-lab { border-color: var(--critical); }
.tlx-ev.s-late .tlx-lab small { color: var(--critical-ink); }
.tlx-ev.est .tlx-lab { border-style: dashed; }
.tlx-ev:hover .tlx-lab, .tlx-ev.sel .tlx-lab { background: var(--surface); box-shadow: var(--shadow); }
.tlx-agg { position: absolute; top: 34px; transform: translateX(-50%); background: var(--gold-soft); color: var(--gold-strong); border-radius: 999px; padding: 3px 10px; font-size: 11.5px; font-weight: 700; white-space: nowrap; cursor: pointer; }
.tlx-today { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--tl-today); z-index: 4; pointer-events: none; }
.tlx-today span { position: absolute; top: 4px; left: 4px; background: var(--tl-today); color: #fff; font-size: 10.5px; font-weight: 700; padding: 1px 6px; border-radius: 4px; }
.tlx-axis { position: relative; height: 32px; border-top: 1px solid var(--line-2); background: var(--surface-2); overflow: hidden; }
.tlx-tick { position: absolute; top: 0; height: 100%; font-size: 11px; color: var(--ink-3); padding: 7px 0 0 5px; white-space: nowrap; border-left: 1px solid var(--line-2); }
.tlx-tick.major { color: var(--ink); font-weight: 700; }
.tlx-below { display: flex; gap: 12px; align-items: center; margin-top: 10px; flex-wrap: wrap; }
.tlx-scale { font-size: 12px; color: var(--ink-3); min-width: 100px; }
.tlx-mini { position: relative; flex: 1; min-width: 220px; height: 24px; border-radius: 8px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.tlx-mini .m { position: absolute; top: 4px; bottom: 4px; background: var(--c); opacity: .8; border-radius: 3px; }
.tlx-mini .m.dashed { opacity: .35; }
.tlx-mini .t { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--tl-today); }
.tlx-mini .win { position: absolute; top: 0; bottom: 0; border: 2px solid var(--ink); border-radius: 6px; }
.tlx-hint { font-size: 12px; color: var(--ink-3); }
.tlx-hint kbd { border: 1px solid var(--line-2); border-radius: 4px; padding: 0 5px; font: 600 11px var(--font); background: var(--surface); }
.tlx-panel { position: fixed; right: 16px; bottom: 16px; width: min(380px, calc(100vw - 32px)); max-height: calc(100vh - 120px); overflow: auto; background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 16px 18px; z-index: 40; }
.tlx-panel h3 { margin: 4px 0 4px; font: 600 18px/1.25 var(--font-display); padding-right: 60px; }
.tlx-tag { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.tlx-when { color: var(--ink-3); font-size: 13px; }
.tlx-pills { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.tlx-st { font-size: 11.5px; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: var(--surface-3); color: var(--ink-2); }
.tlx-st.s-done { background: var(--good-soft); color: var(--good-ink); } .tlx-st.s-late { background: var(--critical-soft); color: var(--critical-ink); } .tlx-st.s-next { background: var(--info-soft); color: var(--info-ink); }
.tlx-panel p { margin: 8px 0 0; color: var(--ink-2); }
.tlx-panel a { color: var(--series); font-weight: 600; display: inline-flex; gap: 6px; align-items: center; }
.tlx-close { position: absolute; top: 10px; right: 10px; border: 0; background: var(--surface-2); border-radius: 8px; padding: 4px 9px; cursor: pointer; color: var(--ink-2); }
@media (max-width: 720px) { .tlx-panel { bottom: 76px; } }
/* Lista (celular e "Próximos 7 dias") */
.tlx-scopes { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0 6px; }
.tlx-scopes button { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 12px; font: 600 12.5px var(--font); color: var(--ink-2); cursor: pointer; }
.tlx-scopes button.on { background: var(--gold-soft); color: var(--gold-strong); border-color: var(--gold-line); }
.tlx-mh { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin: 16px 0 6px; }
.tlx-mlist { display: grid; gap: 6px; }
.tlx-mrow { all: unset; box-sizing: border-box; display: flex; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; cursor: pointer; color: var(--ink); text-decoration: none; }
.tlx-mrow:hover { border-color: var(--line-2); }
.tlx-mrow b { display: block; font-size: 14px; font-weight: 600; }
.tlx-mrow small { color: var(--ink-3); font-size: 12px; }
.tlx-mrow.s-late { border-color: var(--critical); }
.tlx-mrow.s-late small { color: var(--critical-ink); }
.tlx-mrow.s-done b { color: var(--ink-3); text-decoration: line-through; }
.tlx-mrow.est { border-style: dashed; }
.tlx-mdate { width: 36px; text-align: center; font-size: 11px; color: var(--ink-3); line-height: 1.1; flex: none; }
.tlx-mdate b { display: block; font-size: 17px; color: var(--ink); text-decoration: none !important; }
.tlx-mdot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.tlx-more { font-size: 12.5px; font-weight: 600; color: var(--critical-ink); text-decoration: none; padding: 2px 4px; }
.tlx-ctrl[hidden], .tlx-below[hidden], .tlx-view[hidden] { display: none !important; }

/* Acervo: prévia no estilo de post do Instagram */
.ac-pv { position: fixed; z-index: 70; width: 340px; max-width: calc(100vw - 32px); background: #fff; color: #000; border: 1px solid #dbdbdb; border-radius: 8px; box-shadow: var(--shadow-lg); overflow: hidden; pointer-events: none; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
.ac-pv .ig-h { display: flex; align-items: center; gap: 10px; padding: 10px 12px; }
.ac-pv .ig-av { width: 32px; height: 32px; border-radius: 50%; padding: 2px; background: linear-gradient(45deg, #f9ce34, #ee2a7b, #6228d7); flex: none; }
.ac-pv .ig-av span { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; background: #fff; border: 2px solid #fff; font-weight: 700; font-size: 12px; color: #262626; }
.ac-pv .ig-h b { font-size: 13.5px; font-weight: 600; }
.ac-pv .ig-h small { display: block; font-size: 11.5px; color: #737373; }
.ac-pv .ig-more { margin-left: auto; font-weight: 700; color: #262626; letter-spacing: 1px; }
.ac-pv .ig-m { position: relative; background: #efefef; max-height: 400px; overflow: hidden; }
.ac-pv .ig-m img { display: block; width: 100%; height: auto; }
.ac-pv .ig-m .ph { aspect-ratio: 4 / 5; display: grid; place-items: center; color: #737373; font-size: 13px; }
.ac-pv .ig-m .k { position: absolute; top: 10px; right: 10px; background: rgba(0, 0, 0, .55); color: #fff; font-size: 11px; font-weight: 600; border-radius: 999px; padding: 3px 8px; }
.ac-pv .ig-a { display: flex; gap: 14px; padding: 10px 12px 4px; }
.ac-pv .ig-a svg { width: 22px; height: 22px; fill: none; stroke: #262626; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.ac-pv .ig-a .sv { margin-left: auto; }
.ac-pv .ig-c { padding: 2px 12px 12px; font-size: 13.5px; line-height: 1.4; }
.ac-pv .ig-c p { margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.ac-pv .ig-c small { display: block; margin-top: 6px; font-size: 10.5px; color: #737373; text-transform: uppercase; letter-spacing: .03em; }
.dr-img { display: block; width: 100%; max-height: 420px; object-fit: contain; background: var(--surface-2); border-radius: var(--radius-sm); }
