/* ============================================================================
   MarkFlow 4 — estilos. Tokens da Etapa 5 (Design System v1.0, Agency OS).
   Nenhuma cor fora daqui: componentes usam só var(--…).
   ============================================================================ */
@font-face { font-family: Inter; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/inter-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: Inter; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/inter-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: Inter; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/inter-latin-600-normal.woff2) format('woff2'); }

:root {
  /* 5.1–5.2 neutros e superfície */
  --canvas: #F6F7F9; --surface: #FFFFFF; --surface-subtle: #F8FAFC; --surface-muted: #F1F5F9;
  --border: #E2E8F0; --border-strong: #CBD5E1;
  --text: #0B1020; --text-2: #475569; --text-muted: #64748B; --text-disabled: #94A3B8;
  /* 5.3 primária */
  --p-50: #EEF3FF; --p-100: #DDE7FF; --p-200: #B8CCFF; --p-400: #5C7CFA; --p-500: #4164E8; --p-600: #3151D3; --p-700: #2943AE; --p-800: #26398A;
  /* semânticas (fundo / texto) */
  --success-bg: #F0FDF4; --success: #15803D; --warning-bg: #FFFBEB; --warning: #B45309;
  --danger-bg: #FEF2F2; --danger: #B91C1C; --info-bg: #EFF6FF; --info: #1D4ED8; --violet-bg: #F5F3FF; --violet: #6D28D9;
  /* 5.4 sidebar */
  --side-bg: #0B1020; --side-active: #121A2B; --side-text: #E5E7EB; --side-text-2: #94A3B8;
  /* tráfego (cores validadas no dashboard de 2025) */
  --chart-spend: #d97706; --chart-result: #3b82f6;
  /* 7 espaçamento (base 4) · 9 raios · 11 motion */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 40px; --s8: 48px;
  --r-xs: 4px; --r-sm: 6px; --r-md: 8px; --r-lg: 12px; --r-xl: 16px; --r-full: 999px;
  --sh-xs: 0 1px 2px rgba(11,16,32,.06); --sh-sm: 0 4px 12px rgba(11,16,32,.08); --sh-md: 0 12px 32px rgba(11,16,32,.14); --sh-ov: 0 24px 64px rgba(11,16,32,.24);
  --fast: 120ms; --default: 180ms; --slow: 260ms; --ease: cubic-bezier(0.2, 0, 0, 1);
  --side-w: 248px; --top-h: 56px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}
@media (prefers-reduced-motion: reduce) { :root { --fast: 0ms; --default: 0ms; --slow: 0ms; } }

* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 400 14px/20px var(--font); color: var(--text); background: var(--canvas); -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
a { color: var(--p-600); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 24px; line-height: 32px; font-weight: 600; margin: 0; letter-spacing: -.01em; }
h2 { font-size: 20px; line-height: 28px; font-weight: 600; margin: 0; }
h3 { font-size: 16px; line-height: 24px; font-weight: 600; margin: 0; }
p { margin: 0 0 var(--s2); }
.small { font-size: 12px; line-height: 18px; }
.caption { font-size: 11px; line-height: 16px; font-weight: 500; }
.muted { color: var(--text-muted); }
.sec { color: var(--text-2); }
.num { font-variant-numeric: tabular-nums; }
.prewrap { white-space: pre-wrap; overflow-wrap: anywhere; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--p-400); outline-offset: 2px; }
svg.i { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -3px; }
svg.i.i14 { width: 14px; height: 14px; } svg.i.i18 { width: 18px; height: 18px; } svg.i.i24 { width: 24px; height: 24px; }
.spin { animation: spin 1s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } }

/* ---------------------------------------------------------------- botões (DS-CMP-001) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); height: 36px; padding: 0 14px; border-radius: var(--r-md);
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font: 500 14px/1 var(--font); cursor: pointer; white-space: nowrap;
  transition: background var(--fast) var(--ease), border-color var(--fast) var(--ease); text-decoration: none !important; }
.btn:hover { background: var(--surface-muted); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--p-600); border-color: var(--p-600); color: #fff; }
.btn-primary:hover { background: var(--p-700); border-color: var(--p-700); }
.btn-primary:active { background: var(--p-800); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--surface-muted); color: var(--text); }
.btn-danger { background: var(--surface); border-color: var(--danger); color: var(--danger); }
.btn-danger:hover { background: var(--danger-bg); }
.btn-link { border: 0; background: none; color: var(--p-600); padding: 0; height: auto; }
.btn-sm { height: 32px; padding: 0 10px; font-size: 13px; }
.btn-lg { height: 40px; padding: 0 18px; }
.btn-block { width: 100%; }
.icon-btn { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: var(--r-md); border: 0; background: transparent; color: var(--text-2); cursor: pointer; }
.icon-btn:hover { background: var(--surface-muted); color: var(--text); }

/* ---------------------------------------------------------------- campos */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--s4); min-width: 0; }
.field > span { font-size: 13px; line-height: 18px; font-weight: 500; color: var(--text); }
.field .hint { font-size: 12px; color: var(--text-muted); font-style: normal; }
.field .ferr { font-size: 12px; color: var(--danger); }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=url], input[type=number], input[type=search], input[type=tel], select, textarea {
  width: 100%; height: 36px; padding: 0 10px; border: 1px solid var(--border-strong); border-radius: var(--r-md); background: var(--surface);
  font: 400 14px/20px var(--font); color: var(--text); min-width: 0; }
textarea { height: auto; min-height: 88px; padding: 8px 10px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--p-400); box-shadow: 0 0 0 3px var(--p-100); }
input[aria-invalid=true], select[aria-invalid=true] { border-color: var(--danger); }
.check { display: flex; align-items: center; gap: var(--s2); min-height: 32px; cursor: pointer; }
.check input { width: 16px; height: 16px; margin: 0; accent-color: var(--p-600); }
.row { display: flex; gap: var(--s4); flex-wrap: wrap; } .row > * { flex: 1 1 200px; }
.form-col { max-width: 760px; }
.fieldset { border: 0; padding: 0; margin: 0 0 var(--s5); }
.fieldset legend { font-weight: 600; font-size: 16px; margin-bottom: var(--s3); padding: 0; }

/* ---------------------------------------------------------------- badges e chips */
.badge { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: var(--r-full); font: 500 12px/1 var(--font);
  background: var(--surface-muted); color: var(--text-2); white-space: nowrap; }
.b-gray { background: var(--surface-muted); color: var(--text-2); }
.b-blue { background: var(--info-bg); color: var(--info); }
.b-green { background: var(--success-bg); color: var(--success); }
.b-amber { background: var(--warning-bg); color: var(--warning); }
.b-red { background: var(--danger-bg); color: var(--danger); }
.b-purple { background: var(--violet-bg); color: var(--violet); }
.b-primary { background: var(--p-50); color: var(--p-700); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; background: currentColor; }
.prio { display: inline-flex; align-items: center; gap: 4px; font: 500 12px/18px var(--font); color: var(--text-2); }
.prio.urgent { color: var(--danger); } .prio.high { color: var(--warning); }
.avatar { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--p-100); color: var(--p-800); font: 600 11px/1 var(--font); flex: none; }
.avatar.lg { width: 32px; height: 32px; font-size: 12px; }
.avs { display: inline-flex; } .avs .avatar { margin-left: -6px; border: 2px solid var(--surface); } .avs .avatar:first-child { margin-left: 0; }

/* ---------------------------------------------------------------- shell (WFR-GLO-001) */
.shell { display: grid; grid-template-columns: var(--side-w) 1fr; min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; background: var(--side-bg); color: var(--side-text); display: flex; flex-direction: column; padding: var(--s3); overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 10px; padding: 6px 8px 16px; font-weight: 600; }
.brand small { display: block; font-weight: 400; font-size: 12px; color: var(--side-text-2); }
.brand-mark { width: 28px; height: 28px; border-radius: var(--r-md); background: var(--p-600); color: #fff; display: grid; place-items: center; font-weight: 600; }
.org-name { font-size: 12px; color: var(--side-text-2); padding: 0 8px 8px; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a { position: relative; display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 10px; border-radius: var(--r-md); color: var(--side-text-2); font-weight: 500; text-decoration: none; }
.nav a:hover { color: var(--side-text); background: var(--side-active); }
.nav a.on { color: #fff; background: var(--side-active); font-weight: 600; }
.nav a.on::before { content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--p-400); }
.nav a .count { margin-left: auto; font-size: 12px; color: var(--side-text-2); }
.nav-sec { margin: var(--s4) 10px var(--s1); font-size: 12px; color: var(--side-text-2); }
.side-foot { margin-top: auto; padding-top: var(--s3); border-top: 1px solid var(--side-active); }
.main { min-width: 0; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 20; height: var(--top-h); display: flex; align-items: center; gap: var(--s3); padding: 0 var(--s6); background: var(--surface); border-bottom: 1px solid var(--border); }
.crumb { display: flex; align-items: center; gap: 6px; min-width: 0; color: var(--text-muted); font-size: 13px; }
.crumb a { color: var(--text-muted); } .crumb b { color: var(--text); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top .sp { flex: 1; }
.search-btn { display: inline-flex; align-items: center; gap: var(--s2); height: 32px; padding: 0 10px; min-width: 220px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface-subtle); color: var(--text-muted); font: 400 13px var(--font); cursor: pointer; }
.search-btn kbd { margin-left: auto; font: 500 11px var(--font); color: var(--text-muted); border: 1px solid var(--border); border-radius: var(--r-xs); padding: 1px 5px; background: var(--surface); }
.menu-btn { display: none; }
.content { padding: var(--s5) var(--s6) var(--s8); min-width: 0; }
.content:focus { outline: none; }

/* menus suspensos (+ Criar, conta) */
.pop { position: relative; }
.pop-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 60; min-width: 220px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); box-shadow: var(--sh-sm); padding: 4px; }
.pop-menu button, .pop-menu a { display: flex; width: 100%; align-items: center; gap: 10px; height: 36px; padding: 0 10px; border: 0; background: none; border-radius: var(--r-sm); font: 400 14px var(--font); color: var(--text); cursor: pointer; text-decoration: none; }
.pop-menu button:hover, .pop-menu a:hover { background: var(--surface-muted); }
.pop-menu hr { border: 0; border-top: 1px solid var(--border); margin: 4px 0; }
.pop-menu .who { padding: 8px 10px; } .pop-menu .who b { display: block; }

/* ---------------------------------------------------------------- página */
.page-head { display: flex; align-items: flex-start; gap: var(--s4); flex-wrap: wrap; margin-bottom: var(--s5); }
.page-head > div:first-child { flex: 1; min-width: 220px; }
.page-head p { color: var(--text-2); margin: 4px 0 0; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); margin-bottom: var(--s4); }
.toolbar select, .toolbar input { width: auto; height: 32px; font-size: 13px; }
.toolbar input[type=search] { min-width: 200px; }
.seg { display: inline-flex; border: 1px solid var(--border-strong); border-radius: var(--r-md); overflow: hidden; }
.seg a, .seg button { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; background: var(--surface); color: var(--text-2); border: 0; font: 500 13px var(--font); cursor: pointer; text-decoration: none; }
.seg a + a, .seg button + button { border-left: 1px solid var(--border-strong); }
.seg .on { background: var(--surface-muted); color: var(--text); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: var(--s4); }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: var(--r-full); border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font: 500 13px var(--font); cursor: pointer; text-decoration: none !important; }
.chip b { color: var(--text); font-weight: 600; }
.chip.on { border-color: var(--p-400); background: var(--p-50); color: var(--p-700); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--s4) 20px; min-width: 0; }
.card > h3, .card-h { display: flex; align-items: center; gap: var(--s2); margin-bottom: var(--s3); }
.card-h h3 { flex: 1; }
.grid { display: grid; gap: var(--s4); }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kpi span { display: block; color: var(--text-2); font-size: 13px; }
.kpi b { display: block; font-size: 24px; line-height: 32px; font-weight: 600; font-variant-numeric: tabular-nums; margin-top: 2px; }
.kpi a { color: inherit; text-decoration: none; display: block; }
.list { display: flex; flex-direction: column; }
.li { display: flex; align-items: center; gap: var(--s3); padding: 10px 0; border-top: 1px solid var(--border); min-width: 0; }
.li:first-child { border-top: 0; }
.li .grow { flex: 1; min-width: 0; }
.li .t { display: block; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.li .m { display: block; font-size: 12px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.li { color: inherit; text-decoration: none; } a.li:hover .t { color: var(--p-700); }
.sev { width: 4px; align-self: stretch; border-radius: 2px; flex: none; }
.sev.critical { background: var(--danger); } .sev.high { background: var(--warning); } .sev.medium { background: var(--border-strong); }
.empty { text-align: center; padding: var(--s7) var(--s4); color: var(--text-2); border: 1px dashed var(--border-strong); border-radius: var(--r-xl); background: var(--surface); }
.empty b { display: block; color: var(--text); font-size: 16px; margin-bottom: 4px; }
.empty .btn { margin-top: var(--s3); }
.empty.forbidden { border-style: solid; border-color: var(--danger-bg); }
.empty.ok b { color: var(--success); }
.note { background: var(--warning-bg); color: var(--warning); border-radius: var(--r-md); padding: 10px 12px; font-size: 13px; margin: 0 0 var(--s4); }
.note.info { background: var(--info-bg); color: var(--info); }
.skel { background: linear-gradient(90deg, var(--surface-muted), var(--surface-subtle), var(--surface-muted)); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: var(--r-md); }
@keyframes sk { to { background-position: -200% 0; } }
.loading { padding: var(--s6) 0; color: var(--text-muted); display: flex; align-items: center; gap: var(--s2); }

/* tabelas */
.tscroll { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th { text-align: left; font: 500 12px/18px var(--font); color: var(--text-muted); padding: 8px 12px; border-bottom: 1px solid var(--border); white-space: nowrap; }
table.t td { padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
table.t tbody tr:hover { background: var(--surface-subtle); }
table.t tr[data-href] { cursor: pointer; }
table.t td.num, table.t th.num { text-align: right; font-variant-numeric: tabular-nums; }
.tcard { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }

/* abas */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); margin-bottom: var(--s5); overflow-x: auto; scrollbar-width: none; }
.tabs a { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; color: var(--text-2); font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; text-decoration: none; }
.tabs a.on { color: var(--text); border-color: var(--p-600); font-weight: 600; }
.subtabs { display: flex; gap: 6px; margin-bottom: var(--s4); flex-wrap: wrap; }

/* cabeçalho de contexto (cliente/projeto) */
.ctx-head { display: flex; gap: var(--s4); align-items: flex-start; flex-wrap: wrap; margin-bottom: var(--s4); }
.ctx-head .grow { flex: 1; min-width: 240px; }
.ctx-meta { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); color: var(--text-2); font-size: 13px; margin-top: 6px; align-items: center; }
.ctx-actions { display: flex; gap: var(--s2); flex-wrap: wrap; }

/* ---------------------------------------------------------------- Kanban (WFR-006) */
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(272px, 1fr); gap: var(--s3); overflow-x: auto; padding-bottom: var(--s3); align-items: start; }
.col { background: var(--surface-muted); border-radius: var(--r-lg); padding: var(--s2); min-height: 120px; display: flex; flex-direction: column; gap: var(--s2); }
.col.over { box-shadow: inset 0 0 0 2px var(--p-400); }
.col-h { display: flex; align-items: center; gap: var(--s2); padding: 4px 6px; font-weight: 600; font-size: 13px; }
.col-h .n { color: var(--text-muted); font-weight: 500; }
.col-h .sp { flex: 1; }
.tcardk { display: block; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 10px 12px; color: inherit; text-decoration: none !important; cursor: pointer; box-shadow: var(--sh-xs); }
.tcardk:hover { border-color: var(--border-strong); }
.tcardk.dragging { opacity: .5; }
.tcardk .cl { font-size: 12px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tcardk .tt { font-weight: 500; margin: 2px 0 8px; overflow-wrap: anywhere; }
.tcardk .ft { display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap; font-size: 12px; color: var(--text-2); }
.tcardk .ft .sp { flex: 1; }
.due { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--text-2); }
.due.late { color: var(--danger); font-weight: 500; } .due.today { color: var(--warning); font-weight: 500; }
.col-add { display: flex; align-items: center; justify-content: center; gap: 6px; height: 32px; border: 1px dashed var(--border-strong); border-radius: var(--r-md); background: transparent; color: var(--text-2); font: 500 13px var(--font); cursor: pointer; }
.col-add:hover { background: var(--surface); color: var(--text); }
.state-tabs { display: none; }

/* ---------------------------------------------------------------- demanda em página (TSK-004, DELTA-10) */
.task-page { max-width: 1240px; }
.task-back { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); font-weight: 500; margin-bottom: var(--s3); }
.task-title { min-height: 0; font-size: 24px; line-height: 32px; font-weight: 600; width: 100%; border: 1px solid transparent; border-radius: var(--r-md); padding: 2px 6px; margin-left: -7px; background: transparent; font-family: var(--font); color: var(--text); resize: none; overflow: hidden; }
.task-title:hover { border-color: var(--border); } .task-title:focus { border-color: var(--p-400); outline: none; box-shadow: 0 0 0 3px var(--p-100); }
.task-chips { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; margin: var(--s2) 0 var(--s5); }
.task-chips select, .task-chips input { width: auto; height: 32px; font-size: 13px; }
.task-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: var(--s5); align-items: start; }
.task-main > section, .task-side > section { margin-bottom: var(--s5); }
.task-main h3, .task-side h3 { font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: var(--s2); display: flex; align-items: center; gap: 6px; }
.task-side { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--s4); position: sticky; top: calc(var(--top-h) + 16px); }
.meta-row { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: var(--s2); align-items: center; min-height: 36px; padding: 2px 0; }
.meta-row > span { font-size: 13px; color: var(--text-muted); }
.meta-row select, .meta-row input { height: 32px; font-size: 13px; }
.desc-view { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 10px 12px; min-height: 64px; cursor: text; }
.desc-view.empty-d { color: var(--text-muted); }
.ck-item { display: flex; align-items: center; gap: var(--s2); min-height: 36px; padding: 0 4px; border-radius: var(--r-sm); }
.ck-item:hover { background: var(--surface-muted); }
.ck-item.done .tx { color: var(--text-muted); text-decoration: line-through; }
.ck-item .tx { flex: 1; overflow-wrap: anywhere; }
.ck-item .icon-btn { opacity: 0; } .ck-item:hover .icon-btn, .ck-item .icon-btn:focus { opacity: 1; }
.progress { height: 4px; background: var(--surface-muted); border-radius: 2px; overflow: hidden; margin-bottom: var(--s2); }
.progress i { display: block; height: 100%; background: var(--success); }
.brain-box { border: 1px solid var(--p-200); background: var(--p-50); border-radius: var(--r-lg); padding: var(--s3) var(--s4); }
.brain-box h3 { color: var(--p-800) !important; }
.brain-box ul { margin: 0 0 var(--s2); padding-left: 18px; }
.brain-box li { margin: 4px 0; }
.brain-box .why { color: var(--text-2); font-size: 12px; }
.brain-box.acked { background: var(--surface); border-color: var(--border); }
.comment { padding: 10px 0; border-top: 1px solid var(--border); }
.comment:first-child { border-top: 0; }
.comment .ch { font-size: 12px; color: var(--text-muted); margin-bottom: 2px; display: flex; gap: 6px; align-items: center; }
.comment .ch b { color: var(--text); font-weight: 600; }
.act { font-size: 12px; color: var(--text-muted); padding: 6px 0; border-top: 1px solid var(--border); }
.act b { color: var(--text-2); font-weight: 500; }

/* ---------------------------------------------------------------- diálogos (modais curtos e formulários rápidos) */
.dlg-root { position: fixed; inset: 0; z-index: 100; display: grid; place-items: start center; padding: 8vh var(--s4) var(--s4); background: rgba(11,16,32,.45); overflow-y: auto; animation: fade var(--default) var(--ease); }
.dlg { width: 100%; max-width: 560px; background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--sh-md); animation: rise var(--slow) var(--ease); }
.dlg.wide { max-width: 720px; }
.dlg-h { display: flex; align-items: center; gap: var(--s2); padding: var(--s4) 20px 0; }
.dlg-h h2 { flex: 1; font-size: 18px; }
.dlg-b { padding: var(--s4) 20px; }
.dlg-f { display: flex; justify-content: flex-end; gap: var(--s2); padding: var(--s3) 20px var(--s4); border-top: 1px solid var(--border); }
.dlg-f .left { margin-right: auto; }
@keyframes fade { from { opacity: 0; } } @keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 2px var(--s3); max-height: 220px; overflow-y: auto; border: 1px solid var(--border); border-radius: var(--r-md); padding: 6px 10px; }

/* paleta Ctrl+K */
.pal-root { position: fixed; inset: 0; z-index: 110; background: rgba(11,16,32,.45); display: grid; place-items: start center; padding: 12vh var(--s4) 0; }
.pal { width: 100%; max-width: 620px; background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--sh-ov); overflow: hidden; }
.pal-in { display: flex; align-items: center; gap: var(--s2); padding: 0 var(--s4); border-bottom: 1px solid var(--border); }
.pal-in input { border: 0; height: 52px; font-size: 16px; box-shadow: none !important; padding: 0; }
.pal-list { max-height: 50vh; overflow-y: auto; padding: 6px; }
.pal-item { display: flex; align-items: center; gap: var(--s3); padding: 8px 10px; border-radius: var(--r-md); color: var(--text); text-decoration: none !important; cursor: pointer; }
.pal-item .grow { flex: 1; min-width: 0; } .pal-item .m { font-size: 12px; color: var(--text-muted); }
.pal-item.sel { background: var(--p-50); }
.pal-sec { font-size: 12px; color: var(--text-muted); padding: 8px 10px 4px; }
.pal-foot { font-size: 12px; color: var(--text-muted); padding: 8px var(--s4); border-top: 1px solid var(--border); display: flex; gap: var(--s4); }

/* wizard (CLI-002) */
.wiz { max-width: 880px; }
.steps { display: flex; gap: var(--s2); margin-bottom: var(--s5); flex-wrap: wrap; padding: 0; list-style: none; }
.steps li { display: flex; align-items: center; gap: var(--s2); font-size: 13px; color: var(--text-muted); }
.steps li + li::before { content: ""; width: 24px; height: 1px; background: var(--border-strong); }
.steps .n { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--border-strong); font-weight: 600; font-size: 12px; background: var(--surface); }
.steps .on { color: var(--text); font-weight: 600; } .steps .on .n { background: var(--p-600); border-color: var(--p-600); color: #fff; }
.steps .ok .n { background: var(--success-bg); border-color: var(--success); color: var(--success); }
.wiz-foot { display: flex; gap: var(--s2); margin-top: var(--s5); padding-top: var(--s4); border-top: 1px solid var(--border); }
.wiz-foot .sp { flex: 1; }

/* toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 200; background: var(--text); color: #fff; padding: 10px 16px; border-radius: var(--r-md); box-shadow: var(--sh-md); max-width: calc(100vw - 32px); font-weight: 500; }
.toast.erro { background: var(--danger); }

/* login e páginas públicas */
.login { min-height: 100vh; display: grid; place-items: center; padding: var(--s4); background: var(--canvas); }
.login-card { width: 100%; max-width: 400px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--s6); }
.login-card .brand { padding: 0 0 var(--s5); color: var(--text); } .login-card .brand small { color: var(--text-muted); }
.login-card h1 { margin-bottom: 4px; } .login-card .sub { color: var(--text-2); margin-bottom: var(--s5); }
.err { background: var(--danger-bg); color: var(--danger); padding: 10px 12px; border-radius: var(--r-md); margin-bottom: var(--s4); font-size: 13px; }
.okmsg { background: var(--success-bg); color: var(--success); padding: 10px 12px; border-radius: var(--r-md); margin-bottom: var(--s4); font-size: 13px; }
.linkbox { display: flex; gap: var(--s2); } .linkbox input { font-family: var(--mono); font-size: 12px; }

/* ---------------------------------------------------------------- tráfego */
.chart { width: 100%; height: auto; display: block; }
.chart .grid { stroke: var(--border); stroke-width: 1; } .chart .ax { fill: var(--text-muted); font: 400 10px var(--font); }
.chart .hit:hover rect:last-of-type { opacity: .8; }
.key { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.hbars { display: flex; flex-direction: column; gap: 6px; }
.hb { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto; gap: var(--s2); align-items: center; font-size: 13px; }
.hb-l { display: flex; gap: 6px; min-width: 0; } .hb-l span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hb-bar { height: 10px; background: var(--surface-muted); border-radius: 3px; overflow: hidden; } .hb-bar i { display: block; height: 100%; border-radius: 3px; }
.hb-v { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; } .hb-v small { display: block; color: var(--text-muted); font-size: 11px; }
.best h3 { font-size: 13px; color: var(--text-2); } .best-name { display: block; font-size: 16px; margin-bottom: 6px; overflow-wrap: anywhere; }
.best-n { display: flex; flex-direction: column; gap: 2px; margin-bottom: 6px; font-size: 13px; }
.heat { background: rgba(59,130,246, calc(var(--h) * .22)); padding: 2px 6px; border-radius: var(--r-xs); font-variant-numeric: tabular-nums; }
.preview { margin-bottom: var(--s4); border-color: var(--p-200); }

/* ---------------------------------------------------------------- responsivo (Etapa 5 §8.3) */
@media (max-width: 1279px) {
  :root { --side-w: 72px; }
  .side { padding: var(--s3) var(--s2); }
  .side .brand > span:last-child, .nav a .lbl, .nav a .count, .nav-sec, .org-name { display: none; }
  .nav a { justify-content: center; padding: 0; } .nav a.on::before { left: -8px; }
  .brand { justify-content: center; padding: 6px 0 16px; }
  .task-grid { grid-template-columns: minmax(0, 1fr) 280px; }
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .search-btn { min-width: 0; } .search-btn .lbl, .search-btn kbd { display: none; }
}
@media (max-width: 767px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; inset: 0 auto 0 0; width: 264px; z-index: 90; transform: translateX(-100%); transition: transform var(--slow) var(--ease); padding: var(--s3); }
  .side .brand > span:last-child, .nav a .lbl, .nav a .count, .nav-sec, .org-name { display: revert; }
  .nav a { justify-content: flex-start; padding: 0 10px; height: 44px; } .nav a .count { display: inline; }
  .brand { justify-content: flex-start; padding: 6px 8px 16px; }
  body.nav-open .side { transform: none; box-shadow: var(--sh-ov); }
  body.nav-open::after { content: ""; position: fixed; inset: 0; background: rgba(11,16,32,.45); z-index: 80; }
  .menu-btn { display: inline-grid; width: 44px; height: 44px; }
  .top { padding: 0 var(--s2); gap: var(--s1); }
  .top .icon-btn, .top .btn { min-height: 44px; }
  .crumb { font-size: 14px; } .crumb .c-anc { display: none; }
  .content { padding: var(--s4) var(--s4) var(--s8); }
  .g2, .g3, .g4 { grid-template-columns: minmax(0, 1fr); }
  .kpis.g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .task-grid { grid-template-columns: minmax(0, 1fr); }
  .task-side { position: static; }
  .task-main { display: contents; }
  .task-grid { display: flex; flex-direction: column; gap: 0; align-items: stretch; }
  .o-desc { order: 1; } .o-brain { order: 0; } .o-check { order: 2; } .o-subs { order: 3; } .task-side { order: 4; margin-bottom: var(--s5); } .o-talk { order: 5; }
  .board { display: none; }
  .state-tabs { display: flex; gap: 6px; overflow-x: auto; margin-bottom: var(--s3); scrollbar-width: none; }
  .state-tabs .chip { flex: none; height: 36px; }
  .mlist { display: flex !important; flex-direction: column; gap: var(--s2); }
  .hide-m { display: none; }
  table.t.stack thead { display: none; }
  table.t.stack tr { display: block; padding: 10px 12px; border-bottom: 1px solid var(--border); }
  table.t.stack td { display: block; border: 0; padding: 2px 0; }
  table.t.stack td[data-l]::before { content: attr(data-l) ": "; color: var(--text-muted); font-size: 12px; }
  .dlg-root { padding: 0; place-items: stretch; }
  .dlg, .dlg.wide { max-width: none; min-height: 100%; border-radius: 0; }
  .meta-row { grid-template-columns: 96px minmax(0, 1fr); }
  .toolbar input[type=search] { min-width: 0; flex: 1 1 100%; }
  .toolbar > select { flex: 1 1 calc(50% - 8px); min-width: 0; }
  input, select, textarea { font-size: 16px !important; }   /* iOS não dá zoom no foco */
  .search-btn { width: 44px; justify-content: center; padding: 0; }
  .hb { grid-template-columns: minmax(0, 1fr) auto; } .hb-bar { grid-column: 1 / -1; grid-row: 2; }
}
.mlist { display: none; }
@media print { .side, .top, .toolbar { display: none !important; } .shell { display: block; } }

/* fotos de perfil e logo do cliente */
.avatar.has-img { padding: 0; overflow: hidden; background: var(--surface); }
.avatar.has-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar.xl { width: 72px; height: 72px; font-size: 22px; }
.photo-card { display: flex; gap: 18px; align-items: center; }
.photo-card h3 { margin: 0; }
.clogo { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: #fff; box-shadow: inset 0 0 0 1px rgba(10,10,10,.1); overflow: hidden; flex: none; font: 600 12px/1 var(--font); color: var(--p-800); }
.clogo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.clogo.none { background: var(--p-100); box-shadow: none; }
.clogo.lg { width: 56px; height: 56px; border-radius: 14px; font-size: 18px; }
.cname { display: flex; gap: 10px; align-items: center; }
.clogo-btn { position: relative; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 14px; flex: none; align-self: flex-start; }
.clogo-btn .clogo-edit { position: absolute; right: -4px; bottom: -4px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); box-shadow: 0 1px 4px rgba(0,0,0,.2); opacity: 0; transition: opacity .15s; }
.clogo-btn:hover .clogo-edit, .clogo-btn:focus-visible .clogo-edit { opacity: 1; }
@media (hover: none) { .clogo-btn .clogo-edit { opacity: 1; } }

/* @menções */
.mention { color: var(--p-700, #c2410c); font-weight: 600; }
.mention-pop { position: absolute; z-index: 30; min-width: 220px; max-width: 320px; margin-top: 4px; padding: 4px; border-radius: 12px; background: var(--surface); box-shadow: 0 10px 30px rgba(0,0,0,.16), 0 0 0 1px rgba(10,10,10,.06); }
.mention-it { display: flex; gap: 8px; align-items: center; width: 100%; padding: 6px 8px; border: 0; border-radius: 8px; background: none; font: inherit; text-align: left; cursor: pointer; }
.mention-it.on, .mention-it:hover { background: var(--p-100); }

/* 6.92: Financeiro › Recebido por mês */
.fin-bm .btns { display: flex; align-items: center; gap: 4px; }
.fbm-y { min-width: 44px; text-align: center; }
.fbm-sum { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s2); margin: 4px 0 14px; }
.fbm-sum > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fbm-sum span { font-size: 12px; color: var(--text-muted); }
.fbm-sum b { font-size: 17px; font-variant-numeric: tabular-nums; }
.fbm-sum i.up { color: var(--success); font-style: normal; } .fbm-sum i.down { color: var(--danger); font-style: normal; }
.fbm { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; align-items: end; height: 170px; }
.fbm-c { display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; min-width: 0; position: relative; }
.fbm-t { flex: 1; width: 100%; display: flex; align-items: flex-end; background: var(--fill); border-radius: 6px; overflow: hidden; }
.fbm-t i { display: block; width: 100%; background: var(--accent); border-radius: 6px 6px 0 0; opacity: .85; }
.fbm-c.best .fbm-t i { opacity: 1; }
.fbm-c.fut .fbm-t { background: transparent; border: 1px dashed rgba(127,127,127,.25); }
.fbm-v { font-size: 10.5px; line-height: 1.2; min-height: 13px; white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--text-muted); }
.fbm-c.best .fbm-v { color: inherit; font-weight: 600; }
.fbm-m { font-size: 11px; color: var(--text-muted); }
.fbm-x { position: absolute; bottom: 22px; font-size: 14px; color: var(--text-muted); }
@media (max-width: 767px) { .fbm { gap: 3px; height: 150px; } .fbm-v { font-size: 9px; writing-mode: vertical-rl; transform: rotate(180deg); min-height: 34px; } .fbm-sum b { font-size: 15px; } }

/* 6.95: Quadro com fundo leve por etapa (cor do estado misturada ao fundo da coluna; funciona no claro e no escuro).
   O realce de arrastar (.col.over) continua por cima. */
.col.tint-blue:not(.over) { background: color-mix(in srgb, #60A5FA 12%, var(--surface-subtle)); }
.col.tint-amber:not(.over) { background: color-mix(in srgb, #FBBF24 14%, var(--surface-subtle)); }
.col.tint-red:not(.over) { background: color-mix(in srgb, #F87171 11%, var(--surface-subtle)); }
.col.tint-purple:not(.over) { background: color-mix(in srgb, #A78BFA 12%, var(--surface-subtle)); }
.col.tint-green:not(.over) { background: color-mix(in srgb, #4ADE80 13%, var(--surface-subtle)); }
.col.tint-gray:not(.over) { background: var(--surface-muted); }
/* 6.95: cartão baixo na Produção (etapa sem nenhuma prévia) */
.wk-grid.lite { align-items: start; }
.wk-grid.lite .wk-t.nc .wk-m { background: var(--surface-muted); }
.wk-t.nc .wk-ph { grid-auto-flow: column; justify-content: start; align-content: center; padding-left: 10px; } .wk-t.nc .wk-ph small { display: none; }

/* 6.97: Treinamentos */
.trn-tabs { margin: 4px 0 16px; max-width: 100%; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }   /* 6.101.5: uma linha só; no celular rola para o lado */
.trn-tabs::-webkit-scrollbar { display: none; } .trn-tabs a { white-space: nowrap; flex: none; }
.tr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.tr-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; color: inherit; text-decoration: none; }
.tr-card:hover { box-shadow: var(--sh-sm); }
.tr-cv { aspect-ratio: 16 / 9; background: var(--surface-muted) center / cover no-repeat; display: grid; place-items: center; color: var(--text-muted); }
.tr-cb { padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.tr-ct { display: flex; gap: 8px; align-items: center; }
.tr-cb b { font-size: 16px; line-height: 1.3; }
.tr-cls { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.tr-mod { margin-bottom: 14px; }
.tr-mod .card-h .btns { display: flex; align-items: center; gap: 4px; }
.tr-mv { display: inline-flex; gap: 2px; }
.tr-les { display: flex; align-items: center; gap: 4px; }
.tr-les a { color: inherit; text-decoration: none; }
.tr-lf { margin-bottom: 14px; }
.tr-blocks { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.tr-blk { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.tr-blk-h { display: flex; align-items: center; gap: 4px; font-size: 13px; }
.tr-blk-h .sp { flex: 1; }
.tr-blk textarea, .tr-blk input, .tr-blk select { width: 100%; box-sizing: border-box; }
.tr-blk .row { display: grid; grid-template-columns: 1fr 140px; gap: 8px; }
.tr-add { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 12px; }
.tr-read { line-height: 1.6; max-width: 760px; }
.tr-read h2 { font-size: 22px; margin: 18px 0 8px; } .tr-read h3 { font-size: 18px; margin: 14px 0 6px; }
.tr-read img { max-width: 100%; border-radius: 12px; } .tr-read figcaption { font-size: 13px; color: var(--text-muted); }
.tr-box { border-radius: 12px; padding: 12px 14px; margin: 12px 0; background: var(--surface-muted); }
.tr-box p { margin: 6px 0 0; }
.tr-box.callout { background: var(--p-50); } .tr-box.example { background: var(--info-bg); } .tr-box.exercise { background: var(--success-bg); } .tr-box.q { background: var(--violet-bg); }
@media (max-width: 767px) { .tr-blk .row { grid-template-columns: 1fr; } }
@media (min-width: 768px) { .nav a[href="#/treinamentos"] .lbl { font-size: 10px; letter-spacing: -.02em; } }   /* "Treinamentos" cabe inteiro no menu lateral do computador (6.101.5: não vale para o menu do celular) */

/* 6.98: Treinamentos — slides 16:9 (palco fixo 1920×1080, escalado) */
.sld { position: relative; width: 1920px; height: 1080px; box-sizing: border-box; overflow: hidden; background: var(--dk-bg); color: var(--dk-ink); font-family: var(--dk-ff); letter-spacing: -.01em; }
.sld.dk-dark { background: var(--dk-dk); color: #fff; }
.sld h1 { font-size: 124px; line-height: 1.02; font-weight: 700; letter-spacing: -.035em; margin: 0; max-width: 1500px; }
.sld h2 { font-size: 80px; line-height: 1.06; font-weight: 700; letter-spacing: -.03em; margin: 0 0 48px; max-width: 1560px; }
.sld h3 { font-size: 44px; margin: 0 0 24px; font-weight: 650; }
.dk-pad { position: absolute; inset: 0; padding: 130px 150px 150px; display: flex; flex-direction: column; }
.dk-k { font-size: 26px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--dk-ac); margin-bottom: 36px; }
.dk-sub { font-size: 44px; line-height: 1.3; margin: 40px 0 0; max-width: 1400px; opacity: .78; }
.dk-p { font-size: 40px; line-height: 1.45; margin: 0 0 32px; max-width: 1500px; }
.dk-p.dk-lg { font-size: 46px; }
.dk-cap { font-size: 28px; opacity: .7; margin: 24px 0 0; }
.dk-bar { width: 140px; height: 10px; background: var(--dk-ac); border-radius: 6px; margin-top: 64px; }
.dk-cover, .dk-section { justify-content: center; }
.dk-section h1 { font-size: 112px; }
.sld.dk-dark .dk-k { color: var(--dk-ac); }
.dk-ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 30px; }
.dk-ul li { font-size: 42px; line-height: 1.3; padding-left: 56px; position: relative; max-width: 1500px; }
.dk-ul li::before { content: ''; position: absolute; left: 0; top: 20px; width: 22px; height: 22px; border-radius: 50%; background: var(--dk-ac); }
.dk-ul.dk-sm li { font-size: 34px; padding-left: 44px; } .dk-ul.dk-sm li::before { width: 16px; height: 16px; top: 16px; }
.dk-ul.dk-check li::before { border-radius: 6px; }
.dk-ol { list-style: none; counter-reset: sl; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 80px; }
.dk-ol li { counter-increment: sl; display: flex; gap: 32px; align-items: flex-start; font-size: 40px; line-height: 1.3; }
.dk-ol li::before { content: counter(sl, decimal-leading-zero); font-size: 64px; font-weight: 700; color: var(--dk-ac); line-height: 1; min-width: 96px; }
.dk-two { flex-direction: row; gap: 110px; align-items: center; }
.dk-ph { width: 560px; height: 700px; border-radius: 28px; overflow: hidden; flex: none; background: color-mix(in srgb, var(--dk-ac) 18%, var(--dk-bg)); display: grid; place-items: center; font-size: 200px; font-weight: 700; color: var(--dk-ac); }
.dk-ph img { width: 100%; height: 100%; object-fit: cover; }
.dk-col { display: flex; flex-direction: column; min-width: 0; }
.dk-cmp { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; flex: 1; }
.dk-cmp > div { background: color-mix(in srgb, var(--dk-ink) 5%, var(--dk-bg)); border-radius: 28px; padding: 56px; }
.dk-cmp > div.dk-r { background: color-mix(in srgb, var(--dk-ac) 12%, var(--dk-bg)); }
.dk-cmp .dk-ul li { font-size: 36px; }
.dk-box { border-radius: 28px; padding: 60px 64px; background: color-mix(in srgb, var(--dk-ac) 10%, var(--dk-bg)); border-left: 0; }
.dk-box.dk-exercise { background: color-mix(in srgb, var(--dk-ink) 6%, var(--dk-bg)); }
.dk-img { position: absolute; inset: 0; display: grid; grid-template-columns: 1040px 1fr; }
.dk-img > img, .dk-img-e { width: 100%; height: 100%; object-fit: cover; background: color-mix(in srgb, var(--dk-ink) 8%, var(--dk-bg)); display: grid; place-items: center; font-size: 40px; opacity: .9; }
.dk-img .dk-col { padding: 130px 120px 150px 110px; justify-content: center; }
.dk-img h2 { font-size: 68px; }
.dk-foot { position: absolute; left: 150px; right: 150px; bottom: 56px; display: flex; justify-content: space-between; font-size: 22px; letter-spacing: .08em; text-transform: uppercase; opacity: .5; }
.dk-img .dk-foot { left: 1150px; }
.dk-logo { position: absolute; top: 64px; right: 96px; height: 72px; max-width: 320px; object-fit: contain; }
/* escala */
.dk-fit { position: relative; overflow: hidden; border-radius: 10px; box-shadow: var(--sh-xs); flex: none; }
.dk-sc { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
/* editor */
.dk-ed { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 18px; align-items: start; }
.dk-list { display: flex; flex-direction: column; gap: 10px; max-height: calc(100vh - 220px); overflow: auto; padding-right: 4px; position: sticky; top: 80px; }
.dk-th { position: relative; padding: 4px; width: 212px; box-sizing: border-box; border: 2px solid transparent; border-radius: 14px; background: none; cursor: pointer; }
.dk-th.dk-on { border-color: var(--accent); }
.dk-n { position: absolute; left: 10px; top: 8px; z-index: 1; font-size: 11px; background: rgba(0,0,0,.6); color: #fff; border-radius: 6px; padding: 1px 6px; }
.dk-add { display: flex; flex-direction: column; gap: 6px; padding: 8px 4px; }
.dk-main { min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.dk-prev { min-height: 120px; }
.dk-f-h { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; } .dk-f-h .sp { flex: 1; }
.dk-f textarea, .dk-f input[type=text] { width: 100%; box-sizing: border-box; }
@media (max-width: 900px) { .dk-ed { grid-template-columns: 1fr; } .dk-list { position: static; flex-direction: row; max-height: none; overflow-x: auto; } .dk-th { flex: none; } }
/* apresentar */
.slp { position: fixed; inset: 0; z-index: 9999; background: #000; outline: none; cursor: none; }
.slp:hover { cursor: default; }
.slp-stage { position: absolute; inset: 0; }
.slp-sc { position: absolute; left: 50%; top: 50%; transform-origin: 50% 50%; }
.slp-sc .sld { animation: slpIn .22s ease; }
@keyframes slpIn { from { opacity: .35; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .slp-sc .sld { animation: none; } }
.slp-prog { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255,255,255,.08); } .slp-prog i { display: block; height: 4px; background: rgba(255,255,255,.45); transition: width .2s; }
.slp-ui { position: absolute; right: 18px; bottom: 16px; display: flex; gap: 6px; align-items: center; opacity: 0; transition: opacity .2s; color: #fff; font-size: 13px; }
.slp:hover .slp-ui, .slp-ui:focus-within { opacity: .85; }
.slp-ui button { background: rgba(255,255,255,.12); color: #fff; border: 0; border-radius: 999px; width: 40px; height: 40px; display: grid; place-items: center; cursor: pointer; }
/* modo apresentador */
.sla-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; } .sla-h .sp { flex: 1; }
.sla-clock { font-size: 28px; font-variant-numeric: tabular-nums; font-weight: 650; }
.sla-g { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); gap: 20px; }
.sla-notes { margin-top: 14px; font-size: 18px; line-height: 1.5; }
@media (max-width: 900px) { .sla-g { grid-template-columns: 1fr; } }
/* PDF */
#slPrint { display: none; }
@media print {
  html.mf-print-deck body > *:not(#slPrint) { display: none !important; }
  html.mf-print-deck #slPrint { display: block !important; }   /* ganha da regra de impressão das propostas (body > *:not(#pub)) */
  html.mf-print-deck, html.mf-print-deck body { background: #fff !important; margin: 0; }
  .slpr-pg { page: mfdeck; width: 1920px; height: 1080px; break-after: page; page-break-after: always; overflow: hidden; }
  .slpr-pg:last-child { break-after: auto; page-break-after: auto; }
  .slpr-pg .sld { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
@page mfdeck { size: 1920px 1080px; margin: 0; }   /* só as páginas da apresentação (as outras impressões continuam em A4) */
.dk-col .dk-ul { margin-top: 36px; }

/* 6.99: Treinamentos — apostila A4 (tela e impressão) */
.bk { font-family: var(--bk-ff); color: #1a1a1a; }
.bk-screen { display: flex; justify-content: center; }
.bk-screen .bk { width: 100%; max-width: 820px; display: flex; flex-direction: column; gap: 18px; }
.bk-screen .bk > section { background: #fff; border-radius: 6px; box-shadow: var(--sh-sm); padding: 64px 70px; }
.bk h1 { font-size: 40px; line-height: 1.1; letter-spacing: -.02em; margin: 0; }
.bk h2 { font-size: 26px; letter-spacing: -.01em; margin: 0 0 18px; }
.bk h3 { font-size: 18px; margin: 22px 0 8px; } .bk h4 { font-size: 15px; margin: 16px 0 6px; }
.bk p, .bk li { font-size: 14px; line-height: 1.7; } .bk ul { padding-left: 20px; }
.bk-k { font-size: 11px !important; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--bk-ac); margin: 18px 0 4px; }
.bk-lead { font-size: 15px !important; color: #555; }
.bk-todo { color: #b45309; }
.bk-cover { display: flex; flex-direction: column; justify-content: space-between; min-height: 900px; background: #141414 !important; color: #fff; }
.bk-cv-top { display: flex; align-items: center; gap: 14px; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--bk-ac); }
.bk-logo { height: 40px; max-width: 160px; object-fit: contain; }
.bk-cover h1 { font-size: 52px; color: #fff; }
.bk-cv-sub { font-size: 18px !important; color: rgba(255,255,255,.75); margin-top: 18px; }
.bk-bar { width: 72px; height: 6px; border-radius: 3px; background: var(--bk-ac); margin-top: 30px; }
.bk-cv-bot { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: rgba(255,255,255,.7); } .bk-cv-bot b { color: #fff; font-size: 15px; }
.bk-toc ol { list-style: none; padding: 0; } .bk-toc > ol > li { margin: 0 0 10px; } .bk-toc ul { margin: 4px 0 0; color: #555; }
.bk-author .bk-ph { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; }
.bk-role { color: #555; margin-top: -4px; }
.bk-les + .bk-les { margin-top: 26px; padding-top: 18px; border-top: 1px solid #eee; }
.bk-lt { font-size: 20px !important; }
.bk-box { border-radius: 10px; padding: 14px 18px; margin: 14px 0; background: #f5f3ef; break-inside: avoid; }
.bk-box b { font-size: 13px; } .bk-box p { margin: 6px 0 0; }
.bk-box.bk-eg { background: #eef4ff; } .bk-box.bk-ex { background: #eefaf2; } .bk-box.bk-q { background: #f5f2ff; }
.bk-box:not(.bk-eg):not(.bk-ex):not(.bk-q) { background: color-mix(in srgb, var(--bk-ac) 10%, #fff); }
.bk-lines { height: 64px; margin-top: 8px; background: repeating-linear-gradient(transparent 0 21px, #cfcfcf 21px 22px); }
.bk-ans { color: #444; }
.bk-link span { color: #555; word-break: break-all; }
.bk figure { margin: 14px 0; } .bk img { max-width: 100%; } .bk figcaption { font-size: 12px; color: #666; }
#bkPrint { display: none; }
@media print {
  html.mf-print-book body > *:not(#bkPrint) { display: none !important; }
  html.mf-print-book #bkPrint { display: block !important; }
  html.mf-print-book { color-scheme: light !important; }
  html.mf-print-book, html.mf-print-book body { background: #fff !important; margin: 0; }
  #bkPrint .bk > section { break-after: page; page-break-after: always; }
  #bkPrint .bk > section:last-child { break-after: auto; page-break-after: auto; }
  #bkPrint .bk-cover { height: 297mm; min-height: 0; box-sizing: border-box; padding: 26mm 22mm; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  #bkPrint .bk-box, #bkPrint .bk-lines { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  #bkPrint h2, #bkPrint h3 { break-after: avoid; }
}

/* ---------------------------------------------------------------- 6.100 Treinamentos etapa D: sessões, progresso, vídeo */
.tr-ses { margin-bottom: 16px; }
.tr-ses .card-h h3 { display: flex; align-items: center; gap: 6px; }
.tr-ses .li { text-decoration: none; color: inherit; }
.tr-ok { display: inline-flex; color: var(--success); margin-right: 6px; vertical-align: -2px; }
.tr-prog { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.tr-prog > div { flex: 1 1 240px; }
.tr-pbar { height: 8px; border-radius: 99px; background: var(--border); overflow: hidden; margin-top: 8px; }
.tr-pbar i { display: block; height: 100%; background: var(--accent, #FF6B00); border-radius: inherit; }
.tr-video { position: relative; aspect-ratio: 16 / 9; width: 100%; margin: 0 0 16px; border-radius: 12px; overflow: hidden; background: #000; }
.tr-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tr-nav { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin: 16px 0; }
.ss-warn { display: flex; align-items: center; gap: 6px; color: var(--warning); margin: 6px 0 0; }
.ss-grp { margin-bottom: 12px; }
.ss-grp .card-h { flex-wrap: wrap; gap: 8px; }
.ss-p { flex-wrap: wrap; gap: 8px; align-items: center; }
.ss-p .grow { min-width: 160px; }
.ss-pres button { font-size: 12px; padding: 4px 10px; }
.ss-done { font-size: 13px; white-space: nowrap; }
.ss-stars { display: inline-flex; }
.ss-stars button { background: none; border: 0; padding: 2px 3px; font-size: 18px; line-height: 1; color: var(--border-strong); cursor: pointer; }
.ss-stars button.on { color: var(--accent, #FF6B00); }
.ss-stars button:focus-visible { outline: 2px solid var(--accent, #FF6B00); border-radius: 4px; }
@media (max-width: 640px) { .ss-p > .grow { flex-basis: 100%; } .tr-nav .btn { flex: 1 1 auto; justify-content: center; } }
#ssPrint { display: none; }
@media print {
  html.mf-print-ss { color-scheme: light !important; }
  html.mf-print-ss, html.mf-print-ss body { background: #fff !important; margin: 0; }
  html.mf-print-ss body > *:not(#ssPrint) { display: none !important; }
  html.mf-print-ss #ssPrint { display: block !important; color: #111; font: 10.5pt/1.4 Inter, system-ui, sans-serif; }
  #ssPrint .ssp-page { break-after: page; page-break-after: always; }
  #ssPrint .ssp-page:last-child { break-after: auto; page-break-after: auto; }
  #ssPrint .ssp-h { margin-bottom: 10px; }
  #ssPrint .ssp-k { font-size: 8pt; letter-spacing: .14em; color: #C24E00; font-weight: 700; }
  #ssPrint h1 { font-size: 15pt; margin: 2px 0; font-weight: 600; }
  #ssPrint h2 { font-size: 12pt; margin: 8px 0 0; }
  #ssPrint .ssp-h p { margin: 0; color: #555; font-size: 9.5pt; }
  #ssPrint .ssp-t { width: 100%; border-collapse: collapse; }
  #ssPrint .ssp-t th, #ssPrint .ssp-t td { border: 1px solid #999; padding: 0 6px; height: 9mm; text-align: left; font-size: 10pt; }
  #ssPrint .ssp-t th { background: #f2f2f2; height: 7mm; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  #ssPrint .ssp-t th:first-child, #ssPrint .ssp-t td:first-child { width: 9mm; text-align: center; }
  #ssPrint .ssp-t td:nth-child(3) { width: 38mm; } #ssPrint .ssp-t td:last-child { width: 62mm; }
  #ssPrint .ssp-ev { height: 128mm; overflow: hidden; }
  #ssPrint .ssp-row { display: flex; justify-content: space-between; gap: 10px; margin: 6px 0 4px; font-size: 9.5pt; }
  #ssPrint .ssp-q { margin: 7px 0 2px; font-weight: 600; font-size: 10pt; }
  #ssPrint .ssp-sc { font-weight: 400; margin-left: 8px; }
  #ssPrint .ssp-l { border-bottom: 1px solid #aaa; height: 7mm; }
  #ssPrint .ssp-cut { text-align: center; color: #999; font-size: 8pt; margin: 2mm 0 4mm; white-space: nowrap; overflow: hidden; }
}
.ss-when { margin: 6px 0 0; color: var(--text-muted); font-size: 14px; }

/* ---------------------------------------------------------------- 6.101 Tráfego: filtro · legenda rápida */
.trf-h { display: flex; align-items: center; justify-content: space-between; gap: 8px 12px; flex-wrap: wrap; margin-bottom: 8px; }
.trf-h h3 { margin: 0; }
.trf-f { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.trf-f select { height: 32px; font-size: 13px; padding: 0 28px 0 10px; max-width: 220px; }
.ads-card [hidden] { display: none !important; }
.cap-warn { display: flex; gap: 6px; align-items: flex-start; margin: 4px 0 8px; padding: 8px 10px; border-radius: 8px; background: var(--info-bg); color: var(--info); }
.cap-warn svg { flex: none; margin-top: 2px; }
.cap-who { margin: 6px 0 0; }
.cap-who:empty { display: none; }
/* 6.101.3: prévia da apostila no celular (a impressão A4 não muda) */
@media (max-width: 640px) {
  .bk-screen .bk > section { padding: 28px 20px; }
  .bk-screen .bk-cover { min-height: 520px; }
  .bk-screen .bk-cover h1 { font-size: 30px; }
  .bk-screen .bk h1 { font-size: 26px; } .bk-screen .bk h2 { font-size: 21px; }
  .bk-screen .bk h1, .bk-screen .bk h2, .bk-screen .bk h3 { overflow-wrap: break-word; hyphens: auto; }
}

/* 6.101.5: treinamento sem imagem de capa ganha só uma faixa, não um bloco 16:9 vazio */
.tr-cv.tr-cv-none { aspect-ratio: auto; height: 64px; }

/* ---------------------------------------------------------------- 6.102 Treinamentos: "O que você aprendeu" e flashcards (prefixo trn-) */
.trn-k { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.trn-sum { margin: 18px 0; padding: 16px 18px; border-radius: 14px; background: var(--surface-muted); border-left: 4px solid var(--accent); }
.trn-sum-t { font-size: 16px; font-weight: 600; margin: 8px 0; }
.trn-sum ul { margin: 6px 0 0; padding-left: 20px; } .trn-sum li { margin: 3px 0; }
.trn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin-top: 12px; }
.trn-flash { position: relative; display: block; width: 100%; min-height: 150px; padding: 0; border: 0; background: none; cursor: pointer; perspective: 900px; text-align: left; font: inherit; color: inherit; margin: 10px 0; }
.trn-grid .trn-flash { margin: 0; }
.trn-flash[data-big] { min-height: 220px; }
.trn-ff, .trn-fb { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: 14px; border: 1px solid var(--border); backface-visibility: hidden; -webkit-backface-visibility: hidden; transition: transform .45s ease; overflow: auto; }
.trn-ff { background: var(--surface); }
.trn-fb { background: var(--surface-muted); transform: rotateY(180deg); border-color: var(--accent); }
.trn-flash.on .trn-ff { transform: rotateY(-180deg); } .trn-flash.on .trn-fb { transform: rotateY(0); }
.trn-ft { font-size: 15px; line-height: 1.45; }
.trn-flash[data-big] .trn-ft { font-size: 18px; }
.trn-hint { margin-top: auto; font-size: 12px; color: var(--text-muted); }
.trn-flash[data-st="1"] .trn-ff { border-color: var(--success); } .trn-flash[data-st="0"] .trn-ff { border-color: var(--warning); }
.trn-flash:focus-visible .trn-ff, .trn-flash:focus-visible .trn-fb { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .trn-ff, .trn-fb { transition: none; } }
.trn-ans { display: flex; gap: 10px; justify-content: flex-end; margin-top: 14px; flex-wrap: wrap; }
.trn-cbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 4px 0 14px; }
.trn-cbar select { height: 36px; max-width: 100%; }
.trn-cl { margin-bottom: 12px; } .trn-cl .card-h h3 { line-height: 1.35; }
/* apostila: resumo e cartões de revisão para recortar */
.bk-sum { border-left: 4px solid var(--bk-ac) !important; }
.bk-card { display: grid; grid-template-columns: 1fr 1fr; border: 1px dashed #999; border-radius: 6px; margin: 10px 0; break-inside: avoid; page-break-inside: avoid; }
.bk-card > div { padding: 10px 12px; font-size: 13px; line-height: 1.5; } .bk-card-f { border-right: 1px dashed #999; }
.bk-card span { display: block; font-size: 9px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--bk-ac); margin-bottom: 4px; }
/* 6.102.1: faixa do "Ver como participante" */
.trn-asm { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 14px; padding: 10px 14px; border-radius: 12px; background: var(--info-bg); color: var(--info); }
.trn-asm span { flex: 1 1 220px; } .trn-asm .btn { flex: none; }
/* 6.102.2: trilha do topo (Treinamentos / nome longo / aula) numa linha só, cortando com "…" */
.crumb { flex-wrap: nowrap; overflow: hidden; }
.crumb a.c-anc { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 26ch; flex: 0 1 auto; min-width: 0; }
.crumb span.c-anc { flex: none; }
.crumb b { flex: 0 1 auto; min-width: 0; }
.crumb a.c-anc:first-child { flex: none; max-width: none; }

/* ---------------------------------------------------------------- 6.103 Treinamentos: área do aluno (prefixo trn-) */
.trn-bar { margin: 10px 0 6px; }
.trn-go { max-width: 100%; } .trn-go span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trn-k { margin-bottom: 6px; }
.linklike { border: 0; background: none; padding: 0; font: inherit; color: var(--accent); text-decoration: underline; cursor: pointer; }
/* Meus treinamentos */
.trn-hgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; align-items: start; }
.trn-hc { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.trn-hcv { display: flex; align-items: flex-end; height: 120px; padding: 12px 16px; background: center / cover no-repeat var(--surface-muted); text-decoration: none; }
.trn-hcv.none { background: linear-gradient(135deg, var(--accent), #7c2d12); }
.trn-hcv.none span { color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.trn-hcb { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 16px; }
.trn-hct { font-size: 17px; font-weight: 600; color: var(--text); text-decoration: none; line-height: 1.35; }
.trn-hcb .trn-go { margin-top: 10px; align-self: flex-start; }
.trn-hcards { display: flex; align-items: center; gap: 12px; padding: 16px; text-decoration: none; color: var(--text); margin-top: 16px; }
.trn-hgrid .trn-hcards { margin-top: 0; }
.trn-hcards > span { flex: 1; display: flex; flex-direction: column; gap: 2px; } .trn-hcards > svg:first-child { color: var(--accent); flex: none; }
/* página do treinamento */
.card.trn-hero { padding: 0; margin-bottom: 16px; overflow: hidden; } .trn-hero-b { padding: 16px 20px 20px; } .trn-sub { margin: 6px 0 2px; font-size: 15px; color: var(--text-2); }
.card.trn-hc { padding: 0; }
.trn-hero .ph-help { margin: 0 0 4px; }
.trn-pt { margin: 0 0 14px; }
.trn-obj { margin: 0 0 14px; }
.trn-learn { margin: 4px 0 16px; padding: 14px 16px; border-radius: 12px; background: var(--surface-muted); }
.trn-learn ul { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px 24px; }
@media (min-width: 900px) { .trn-learn ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.trn-learn li { display: flex; gap: 8px; align-items: flex-start; line-height: 1.45; } .trn-learn li svg { color: var(--success); flex: none; margin-top: 3px; }
.trn-about { margin-bottom: 16px; }
.trn-about summary, .trn-mod summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; }
.trn-about summary::-webkit-details-marker, .trn-mod summary::-webkit-details-marker { display: none; }
.trn-about summary b { flex: 1; } .trn-about[open] summary > svg, .trn-mod[open] summary > svg { transform: rotate(180deg); }
.trn-h2 { font-size: 17px; margin: 22px 0 10px; }
.trn-mod { border: 1px solid var(--border); border-radius: 14px; background: var(--surface); margin-bottom: 10px; overflow: hidden; }
.trn-mod summary { padding: 12px 14px; } .trn-mod summary > svg { color: var(--text-muted); flex: none; transition: transform var(--fast) var(--ease); }
.trn-mod.trn-now { border-color: var(--accent); }
.trn-mod.trn-next:not([open]) { opacity: .8; }
.trn-mt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; } .trn-mt b { line-height: 1.35; }
.trn-num { width: 30px; height: 30px; border-radius: 50%; display: inline-grid; place-items: center; flex: none; font-size: 13px; font-weight: 700; background: var(--surface-muted); border: 2px solid var(--border); color: var(--text-2); }
.trn-num.sm { width: 24px; height: 24px; font-size: 11px; }
.trn-num.trn-done { background: var(--success); border-color: var(--success); color: #fff; }
.trn-num.trn-now { border-color: var(--accent); color: var(--accent); background: var(--surface); }
.trn-goal { margin: 0; padding: 0 14px 10px 56px; font-size: 13px; color: var(--text-2); }
.trn-ll { border-top: 1px solid var(--border); }
.trn-les { display: flex; align-items: center; gap: 10px; padding: 11px 14px 11px 56px; color: var(--text); text-decoration: none; font-size: 14px; border-top: 1px solid var(--border); }
.trn-ll .trn-les:first-child { border-top: 0; }
.trn-les:hover { background: var(--surface-muted); }
.trn-les.now, .trn-les.cur { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.trn-les.cur .trn-lt { font-weight: 600; }
.trn-ck { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--border-strong); flex: none; display: grid; place-items: center; }
.trn-les.d .trn-ck { background: var(--success); border-color: var(--success); color: #fff; }
.trn-les.now .trn-ck, .trn-les.cur:not(.d) .trn-ck { border-color: var(--accent); }
.trn-lt { flex: 1; min-width: 0; line-height: 1.4; }
.trn-ld { flex: none; font-size: 12px; color: var(--text-muted); }
.trn-tag { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 99px; font-size: 11px; font-weight: 600; background: var(--accent); color: var(--accent-ink, #111); vertical-align: 1px; }
/* a aula: currículo ao lado (computador) ou gaveta (celular) */
.trn-lay { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 24px; align-items: start; }
.trn-side { position: sticky; top: calc(var(--top-h) + 12px); max-height: calc(100vh - var(--top-h) - 24px); overflow: auto; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.trn-side-tg { display: none; }
.trn-side-h { display: block; padding: 14px; border-bottom: 1px solid var(--border); color: var(--text); text-decoration: none; }
.trn-side-h .trn-bar { margin: 8px 0 4px; }
.trn-smh { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--surface-muted); border-top: 1px solid var(--border); }
.trn-smh > span:last-child { display: flex; flex-direction: column; min-width: 0; } .trn-smh b { font-size: 13px; line-height: 1.35; }
.trn-side .trn-les { padding: 9px 14px 9px 20px; font-size: 13px; }
.trn-main { min-width: 0; max-width: 820px; }
.trn-eb { margin: 0; font-size: 12px; font-weight: 600; color: var(--accent); letter-spacing: .02em; }
.trn-lh { margin: 4px 0 2px; font-size: 26px; line-height: 1.25; }
.trn-okt { color: var(--success); font-weight: 600; }
.trn-main .tr-video { margin: 14px 0; }
.trn-lead { font-size: 16px; color: var(--text-2); margin: 14px 0; }
.trn-read { max-width: none; }
.trn-nav { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin: 22px 0 8px; padding-top: 16px; border-top: 1px solid var(--border); }
.trn-undo { margin: 6px 0 0; text-align: right; }
/* fim de módulo */
.trn-fin { max-width: 640px; margin: 24px auto; padding: 28px 24px; text-align: center; }
.trn-fin-i { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--success-bg); color: var(--success); }
.trn-fin h1 { font-size: 24px; margin: 12px 0 4px; } .trn-fin-s { margin: 0 0 8px; color: var(--text-2); }
.trn-fin .trn-bar { max-width: 360px; margin: 14px auto 6px; }
.trn-fin-n { margin: 20px 0 4px; padding: 14px 16px; border-radius: 12px; background: var(--surface-muted); text-align: left; }
.trn-fin-n b { display: block; font-size: 16px; } .trn-fin-n p { margin: 4px 0 0; }
.trn-fin-b { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin: 18px 0 8px; }
@media (max-width: 960px) {
  .trn-lay { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .trn-side { position: static; max-height: none; }
  .trn-side-tg { display: flex; width: 100%; align-items: center; gap: 10px; padding: 12px 14px; border: 0; background: none; font: inherit; color: var(--text); text-align: left; cursor: pointer; }
  .trn-side-tg > span { flex: 1; display: flex; flex-direction: column; } .trn-side-tg > svg:last-child { transition: transform var(--fast) var(--ease); }
  .trn-side.open .trn-side-tg > svg:last-child { transform: rotate(180deg); }
  .trn-side-l { display: none; border-top: 1px solid var(--border); } .trn-side.open .trn-side-l { display: block; }
  .trn-side-h { display: none; }
}
@media (max-width: 640px) {
  .trn-hgrid { grid-template-columns: minmax(0, 1fr); }
  .trn-lh { font-size: 22px; }
  .trn-hero .trn-go, .trn-hcb .trn-go { width: 100%; justify-content: center; align-self: stretch; }
  .trn-goal { padding-left: 14px; } .trn-les { padding-left: 14px; }
  .trn-nav .btn { flex: 1 1 auto; justify-content: center; } .trn-nav > span:empty { display: none; }
  .trn-fin { padding: 22px 16px; margin: 8px auto; } .trn-fin-b .btn { flex: 1 1 100%; justify-content: center; }
}

/* 6.103 capas desenhadas (sem imagem no servidor): fundo em degradê + desenho por estilo + título grande */
.trn-cover { position: relative; overflow: hidden; display: flex; align-items: flex-end; color: #fff; background-size: cover; background-position: center; isolation: isolate; --cv-a: #FF6B00; --cv-b: #2A1204; --cv-art: #FFB27A; }
.trn-cover::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--cv-a) 75%, transparent), transparent 60%), linear-gradient(135deg, var(--cv-b) 0%, color-mix(in srgb, var(--cv-b) 70%, #000) 100%); }
.trn-cover.img::before { display: none; }
.trn-cover::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.1) 55%, transparent 80%); }
.trn-cv-art { position: absolute; right: 0; top: 0; height: 100%; width: 70%; color: var(--cv-art); z-index: -1; }
.trn-cv-in { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; max-width: 78%; }
.trn-cv-k { font-size: 10px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; opacity: .85; display: inline-flex; align-items: center; gap: 8px; }
.trn-cv-k::before { content: ""; width: 18px; height: 3px; border-radius: 3px; background: var(--cv-a); }
.trn-cv-t { font-size: 22px; line-height: 1.12; font-weight: 700; letter-spacing: -.01em; text-wrap: balance; text-shadow: 0 2px 12px rgba(0,0,0,.25); }
.trn-cv-s { font-size: 12.5px; line-height: 1.35; opacity: .88; text-wrap: balance; }
.trn-cv-x { margin-top: 6px; align-self: flex-start; font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 99px; background: rgba(255,255,255,.16); backdrop-filter: blur(4px); }
.trn-cv-card { min-height: 168px; }
.trn-cv-hero { min-height: 220px; } .trn-cv-hero .trn-cv-t { margin: 0; }
.trn-cv-hero .trn-cv-t { font-size: 30px; } .trn-cv-hero .trn-cv-s { font-size: 14px; } .trn-cv-hero .trn-cv-in { padding: 22px 24px; }
.trn-cv-laranja { --cv-a: #FF6B00; --cv-b: #2B1206; --cv-art: #FF8A3D; }
.trn-cv-azul { --cv-a: #3B82F6; --cv-b: #0B1530; --cv-art: #60A5FA; }
.trn-cv-verde { --cv-a: #10B981; --cv-b: #062319; --cv-art: #34D399; }
.trn-cv-roxo { --cv-a: #8B5CF6; --cv-b: #1A0F33; --cv-art: #A78BFA; }
.trn-cv-grafite { --cv-a: #FF6B00; --cv-b: #141416; --cv-art: #A1A1AA; }
.trn-cv-areia { --cv-a: #FF6B00; --cv-b: #F3E9DC; --cv-art: #E07A3A; color: #1C1917; }
.trn-cv-areia::before { background: radial-gradient(120% 90% at 100% 0%, rgba(255,107,0,.22), transparent 60%), linear-gradient(135deg, #FBF5EC, #EFE3D2); }
.trn-cv-areia::after { background: linear-gradient(90deg, rgba(255,255,255,.55), transparent 70%); }
.trn-cv-areia .trn-cv-t { text-shadow: none; } .trn-cv-areia .trn-cv-x { background: rgba(0,0,0,.08); }
.trn-hcv { display: block; text-decoration: none; height: auto; padding: 0; background: none; }
.trn-hcv .trn-cover { border-radius: 0; }
.tr-card .trn-cover { border-radius: 12px 12px 0 0; min-height: 132px; } .tr-card .trn-cv-t { font-size: 18px; } .tr-card .trn-cv-in { padding: 12px 14px; }
@media (max-width: 640px) { .trn-hero-b { padding: 14px 16px 16px; } .trn-cv-hero { min-height: 190px; } .trn-cv-hero .trn-cv-t { font-size: 24px; } .trn-cv-in { max-width: 92%; } .trn-cv-art { width: 75%; opacity: .4; } }

/* 6.103 flashcards: cartas com cara de carta (marca d'água, selo, verso em destaque) */
.trn-flash { min-height: 190px; perspective: 1100px; }
.trn-flash[data-big] { min-height: 260px; }
.trn-ff, .trn-fb { gap: 10px; padding: 18px 18px 14px; border-radius: 18px; overflow: hidden; transition: transform .55s cubic-bezier(.2,.7,.2,1), box-shadow var(--default) var(--ease); box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 8px 24px -12px rgba(0,0,0,.35); }
.trn-ff { background: linear-gradient(160deg, var(--surface) 0%, var(--surface-muted) 100%); border: 1px solid var(--border); }
.trn-ff::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 35%, #fff)); }
.trn-fb { background: radial-gradient(120% 100% at 100% 0%, color-mix(in srgb, var(--accent) 55%, #000) 0%, transparent 60%), linear-gradient(150deg, #2a1306, #0f0a07); border: 1px solid color-mix(in srgb, var(--accent) 60%, transparent); color: #fff; }
.trn-wm { position: absolute; right: 10px; bottom: -22px; font-size: 140px; line-height: 1; font-weight: 800; color: var(--accent); opacity: .08; pointer-events: none; }
.trn-fb .trn-wm { color: #fff; opacity: .1; }
.trn-fh { display: flex; align-items: center; justify-content: space-between; gap: 8px; position: relative; }
.trn-pill { display: inline-flex; font-size: 10.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; padding: 4px 10px; border-radius: 99px; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.trn-fb .trn-pill { background: rgba(255,255,255,.14); color: #fff; }
.trn-ft { position: relative; font-size: 16.5px; font-weight: 600; line-height: 1.4; letter-spacing: -.005em; }
.trn-fb .trn-ft { font-weight: 500; }
.trn-flash[data-big] .trn-ft { font-size: 20px; }
.trn-hint { position: relative; display: inline-flex; align-items: center; gap: 6px; margin-top: auto; font-size: 12px; color: var(--text-muted); }
.trn-fb .trn-hint { color: rgba(255,255,255,.7); }
.trn-flash:hover .trn-ff { box-shadow: 0 2px 4px rgba(0,0,0,.08), 0 14px 32px -12px rgba(0,0,0,.45); transform: translateY(-2px); }
.trn-flash.on:hover .trn-ff { transform: rotateY(-180deg); }
.trn-seal { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 99px; }
.trn-seal.s1 { background: var(--success-bg); color: var(--success); } .trn-seal.s0 { background: var(--warning-bg); color: var(--warning); }
.trn-flash[data-st="1"] .trn-ff, .trn-flash[data-st="0"] .trn-ff { border-color: var(--border); }
.trn-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
@media (prefers-reduced-motion: reduce) { .trn-flash:hover .trn-ff { transform: none; } }
.trn-cv-hero .trn-cv-art, .tr-card .trn-cv-art { width: min(70%, 460px); }

/* ---------------------------------------------------------------- 6.104 Tráfego: painel rápido (prefixo trp-) */
.trp { padding: 16px; margin: 0 0 16px; }
.trp-h { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 16px; flex-wrap: wrap; margin-bottom: 12px; }
.trp-h h2 { display: inline-flex; align-items: center; gap: 8px; font-size: 17px; margin: 0; } .trp-h h2 svg { color: var(--accent); }
.trp-g { display: grid; grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 8px; }
.trp-k { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; padding: 10px 12px 8px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--text); font: inherit; text-align: left; cursor: pointer; overflow: hidden; }
.trp-k:hover:not(:disabled) { border-color: var(--border-strong); }
.trp-k.on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.trp-k.nod { cursor: default; }
.trp-l { font-size: 12px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.trp-v { font-size: 20px; font-weight: 700; letter-spacing: -.01em; line-height: 1.2; font-variant-numeric: tabular-nums; white-space: nowrap; }
.trp-m { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-height: 18px; font-size: 11px; color: var(--text-muted); } .trp-m i { font-style: normal; }
.trp-dl { font-weight: 700; font-size: 11.5px; padding: 1px 6px; border-radius: 99px; white-space: nowrap; }
.trp-dl.ok { background: var(--success-bg); color: var(--success); } .trp-dl.bad { background: var(--danger-bg); color: var(--danger); } .trp-dl.neu, .trp-dl.eq { background: var(--surface-muted); color: var(--text-2); }
.trp-sp { width: 100%; height: 24px; margin-top: 4px; color: var(--text-muted); opacity: .7; } .trp-k.on .trp-sp { color: var(--accent); opacity: 1; }
.trp-cw { margin: 12px 0 4px; padding: 12px 14px 6px; border: 1px solid var(--border); border-radius: 12px; }
.trp-ct { display: flex; align-items: baseline; justify-content: space-between; gap: 4px 12px; flex-wrap: wrap; }
.trp-cs { margin: 4px 0 2px; font-size: 13px; color: var(--text-2); }
.trp-ch { margin: 8px 0 4px; }
.trp-cols { position: relative; display: flex; align-items: flex-end; gap: 3px; height: 160px; border-bottom: 1px solid var(--border); }
.trp-col { flex: 1 1 0; min-width: 2px; height: var(--h); border-radius: 3px 3px 0 0; background: color-mix(in srgb, var(--accent) 50%, transparent); }
.trp-col.hi { background: var(--accent); } .trp-col:hover { background: var(--accent); }
.trp-avg { position: absolute; left: 0; right: 0; bottom: var(--a); border-top: 1.5px dashed var(--text-2); pointer-events: none; }
.trp-avg em { position: absolute; right: 0; bottom: 3px; font-style: normal; font-size: 11px; font-weight: 600; color: var(--text-2); background: var(--surface); padding: 0 4px; border-radius: 4px; }
.trp-xs { display: flex; gap: 3px; margin-top: 4px; } .trp-xs span { flex: 1 1 0; min-width: 2px; font-size: 10.5px; color: var(--text-muted); white-space: nowrap; overflow: visible; }
.trp-th { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin: 16px 0 8px; } .trp-th h3 { margin: 0; font-size: 15px; }
.trp-tw { overflow-x: auto; border: 1px solid var(--border); border-radius: 12px; -webkit-overflow-scrolling: touch; }
.trp-t { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; font-variant-numeric: tabular-nums; }
.trp-t th, .trp-t td { padding: 9px 10px; text-align: right; white-space: nowrap; border-bottom: 1px solid var(--border); background: var(--surface); }
.trp-t th { position: sticky; top: 0; z-index: 1; background: var(--surface-muted); font-weight: 600; font-size: 12px; }
.trp-t th button { border: 0; background: none; font: inherit; color: var(--text-2); cursor: pointer; padding: 0; white-space: nowrap; } .trp-t th button.on { color: var(--text); }
.trp-t .trp-c1 { position: sticky; left: 0; z-index: 2; text-align: left; min-width: 260px; max-width: 340px; white-space: normal; box-shadow: 1px 0 0 var(--border); }
.trp-t th.trp-c1 { z-index: 3; }
.trp-t td.trp-c1 a { color: var(--text); font-weight: 600; text-decoration: none; line-height: 1.35; } .trp-t td.trp-c1 a:hover { text-decoration: underline; }
.trp-sub { display: block; font-size: 11.5px; color: var(--text-muted); font-weight: 400; margin-top: 2px; }
.trp-st { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 7px; vertical-align: 1px; background: var(--text-disabled); } .trp-st.on { background: var(--success); }
.trp-t tbody tr:hover td { background: var(--surface-subtle); }
.trp-t td { position: relative; }
.trp-bar { position: absolute; left: 6px; right: 6px; bottom: 4px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--accent) var(--w), transparent var(--w)); opacity: .55; }
.trp-t tfoot td { background: var(--surface-muted); border-bottom: 0; font-weight: 600; }
@media (max-width: 760px) { .trp { padding: 12px; } .trp-g { grid-template-columns: repeat(2, minmax(0, 1fr)); } .trp-k { padding: 8px 10px 6px; } .trp-v { font-size: 18px; } .trp-m i { display: none; } .trp-t .trp-c1 { min-width: 150px; max-width: 190px; } .trp-cols { height: 130px; } }
/* a tabela antiga do fim da tela fica escondida: a nova (no painel) tem as mesmas colunas e mais */
.trp ~ .ads-card .ads-tbl, #trpPanel ~ * .ads-tbl { display: none; }

/* ---------------------------------------------------------------- 6.105 Treinamentos: roteiro de gravação (só quem edita) */
.trn-script { margin: 16px 0; padding: 14px 16px; border-radius: 12px; border: 1px dashed var(--warning); background: var(--warning-bg); color: var(--text); }
.trn-script-h { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; color: var(--warning); } .trn-script-h span { margin-left: auto; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.trn-script h4, .scr-body h4 { margin: 14px 0 4px; font-size: 14px; } .trn-script h4:first-of-type, .scr-body h4:first-child { margin-top: 4px; }
.trn-script p, .scr-body p { margin: 4px 0; line-height: 1.55; } .trn-script ul, .scr-body ul { margin: 4px 0; padding-left: 20px; } .trn-script li, .scr-body li { margin: 3px 0; line-height: 1.5; }
.trn-script blockquote, .scr-body blockquote { margin: 6px 0; padding: 6px 12px; border-left: 3px solid var(--accent); background: var(--surface); border-radius: 6px; font-style: italic; }
.scr-idx { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px 20px; padding: 14px 16px; margin-bottom: 16px; font-size: 13px; }
.scr-idx ol { margin: 4px 0 0; padding-left: 20px; } .scr-idx li { margin: 2px 0; } .scr-idx li.done a { text-decoration: line-through; color: var(--text-muted); } .scr-idx a { color: inherit; }
.scr-mh { font-size: 18px; margin: 26px 0 4px; } .scr-mobj { margin: 0 0 10px; }
.scr-l { padding: 16px 18px; margin-bottom: 12px; } .scr-l.done { opacity: .7; }
.scr-lh { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12px; color: var(--text-muted); } .scr-n { font-weight: 700; color: var(--accent); } .scr-ok { margin-left: auto; }
.scr-l h3 { margin: 6px 0 6px; font-size: 19px; line-height: 1.3; }
.scr-msg { margin: 0 0 8px; padding: 8px 12px; border-radius: 8px; background: var(--surface-muted); font-size: 14px; }
.scr-body { font-size: 15px; } .scr-links { margin: 10px 0 0; }
@media print {
  html.mf-print-scr { color-scheme: light !important; }
  html.mf-print-scr body { background: #fff !important; }
  html.mf-print-scr .side, html.mf-print-scr .top, html.mf-print-scr .tabbar, html.mf-print-scr .ctx-actions, html.mf-print-scr .scr-ok, html.mf-print-scr .scr-links, html.mf-print-scr #nwCard, html.mf-print-scr .scr-idx { display: none !important; }
  html.mf-print-scr .content { padding: 0 !important; max-width: none !important; }
  html.mf-print-scr .scr-l { break-inside: avoid-page; border: 1px solid #ccc; box-shadow: none; opacity: 1; }
  html.mf-print-scr .scr-mh { break-before: page; }
}
/* 6.105 (2) aulas visuais: Em 1 minuto, passo a passo, antes e depois, aprofundar */
.trn-tldr { margin: 4px 0 18px; padding: 16px 18px 14px; border-radius: 16px; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 14%, var(--surface)), var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--border)); }
.trn-tldr-t { margin: 6px 0 12px; font-size: 18px; font-weight: 700; line-height: 1.35; letter-spacing: -.01em; }
.trn-tldr-s { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; }
.trn-tldr-s li { counter-increment: s; display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); font-size: 14px; line-height: 1.4; font-weight: 500; }
.trn-tldr-s li::before { content: counter(s); flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink, #111); font-weight: 800; font-size: 12px; }
.trn-tldr-x { margin: 12px 0 0; font-size: 14px; } .trn-tldr-x b { color: var(--accent); }
.trn-steps { list-style: none; counter-reset: st; margin: 14px 0; padding: 0; position: relative; }
.trn-steps li { counter-increment: st; position: relative; padding: 0 0 16px 48px; min-height: 36px; display: flex; flex-direction: column; gap: 2px; }
.trn-steps li::before { content: counter(st); position: absolute; left: 0; top: -2px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 2px solid var(--accent); color: var(--accent); font-weight: 800; font-size: 14px; z-index: 1; }
.trn-steps li:not(:last-child)::after { content: ""; position: absolute; left: 16px; top: 32px; bottom: 0; width: 2px; background: color-mix(in srgb, var(--accent) 30%, var(--border)); }
.trn-steps b { font-size: 15px; line-height: 1.35; } .trn-steps span { font-size: 14px; color: var(--text-2); line-height: 1.45; }
.trn-cmp { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0; }
.trn-cmp-c { padding: 12px 14px; border-radius: 14px; border: 1px solid var(--border); }
.trn-cmp-c.a { background: var(--danger-bg); border-color: color-mix(in srgb, var(--danger) 30%, transparent); } .trn-cmp-c.d { background: var(--success-bg); border-color: color-mix(in srgb, var(--success) 30%, transparent); }
.trn-cmp-c > b { display: block; margin-bottom: 6px; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; } .trn-cmp-c.a > b { color: var(--danger); } .trn-cmp-c.d > b { color: var(--success); }
.trn-cmp-c ul { list-style: none; margin: 0; padding: 0; } .trn-cmp-c li { display: flex; gap: 8px; font-size: 14px; line-height: 1.45; margin: 4px 0; color: var(--text); }
.trn-cmp-c i { font-style: normal; font-weight: 800; flex: none; } .trn-cmp-c.a i { color: var(--danger); } .trn-cmp-c.d i { color: var(--success); }
.trn-deep { margin: 16px 0; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.trn-deep summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 12px 14px; font-weight: 600; }
.trn-deep summary::-webkit-details-marker { display: none; } .trn-deep summary em { font-style: normal; font-weight: 400; font-size: 12px; color: var(--text-muted); } .trn-deep summary > svg:last-child { margin-left: auto; transition: transform var(--fast) var(--ease); }
.trn-deep[open] summary > svg:last-child { transform: rotate(180deg); } .trn-deep summary > svg:first-child { color: var(--accent); }
.trn-deep-b { padding: 0 16px 12px; border-top: 1px solid var(--border); font-size: 15px; line-height: 1.6; }
.trn-deep-b h4 { margin: 14px 0 4px; } .trn-deep-b ul { padding-left: 20px; } .trn-deep-b blockquote { margin: 8px 0; padding: 6px 12px; border-left: 3px solid var(--accent); background: var(--surface-muted); border-radius: 6px; }
@media (max-width: 640px) { .trn-cmp { grid-template-columns: 1fr; } .trn-tldr-t { font-size: 16.5px; } }
/* apostila (impressão): mesmos blocos, cores fixas */
.trn-tldr.bk { background: #FFF4EC; border-color: var(--bk-ac, #FF6B00); break-inside: avoid; }
.trn-tldr.bk .trn-k { color: var(--bk-ac, #FF6B00); } .trn-tldr.bk .trn-tldr-s li { background: #fff; border-color: #eee; } .trn-tldr.bk .trn-tldr-s li::before { background: var(--bk-ac, #FF6B00); color: #fff; }
.bk-deep { margin: 12px 0; padding: 10px 14px; border-left: 3px solid #ccc; font-size: 92%; color: #333; break-inside: auto; }
.bk-deep > b { display: block; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #777; margin-bottom: 4px; }
@media print { .trn-steps li::before { background: #fff !important; } .trn-steps span { color: #444 !important; } .trn-cmp-c.a { background: #FDECEC !important; } .trn-cmp-c.d { background: #EAF7EE !important; } .trn-steps li { break-inside: avoid; } }

/* 6.106 — apostila sempre em papel claro: os blocos visuais (6.105) usam as cores do tema; dentro da apostila elas ficam fixas no claro, para o texto nunca sumir com o tema escuro nem na impressão */
.bk { --surface: #FFFFFF; --surface-muted: #F1F5F9; --border: #E2E8F0; --text: #0B1020; --text-2: #475569; --text-muted: #64748B; --success-bg: #F0FDF4; --success: #15803D; --danger-bg: #FEF2F2; --danger: #B91C1C; }
/* 6.106 — aviso na janela da peça: pronta, mas o cliente ainda não vê no portal (demanda em produção) */
.pd-hid { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0 4px; padding: 10px 12px; border-radius: 12px; background: var(--warning-bg, color-mix(in srgb, #F59E0B 12%, var(--surface))); border: 1px solid color-mix(in srgb, #F59E0B 35%, var(--border)); font-size: 13px; line-height: 1.45; }
.pd-hid > svg { flex: none; margin-top: 2px; color: #B45309; }
.pd-hid b { display: block; color: var(--text); } .pd-hid span { display: block; color: var(--text-2); margin: 2px 0 8px; }
/* 6.106 — datas do mês lançadas pelo cliente */
.dt-card { padding: 16px; margin: 0 0 16px; } .dt-card-h { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; } .dt-card-h h3 { margin: 0; }
.dt-top { display: flex; gap: 12px; flex-wrap: wrap; margin: 0 0 8px; }
.dt-add { display: flex; gap: 8px; } .dt-add input[type=number] { width: 84px; } .dt-add input:not([type]) , .dt-add #dtName { flex: 1; }
.dt-rows { display: flex; flex-direction: column; gap: 6px; max-height: 340px; overflow: auto; }
.dt-row { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.dt-d { display: flex; flex-direction: column; min-width: 64px; line-height: 1.15; } .dt-d span { font-size: 12px; color: var(--text-muted); } .dt-n { flex: 1; } .dt-row .input { flex: 1; }
.dt-mine { display: flex; gap: 8px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 10px 0 0; margin-top: 10px; border-top: 1px solid var(--border); font-size: 14px; }
.dt-st { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.dt-st.st-warn { background: color-mix(in srgb, #F59E0B 18%, var(--surface)); color: #B45309; } .dt-st.st-ok { background: var(--success-bg); color: var(--success); } .dt-st.st-bad { background: var(--danger-bg); color: var(--danger); }
.dt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; } @media (max-width: 760px) { .dt-grid { grid-template-columns: 1fr; } }
.dt-warn { display: inline-flex; gap: 4px; align-items: center; font-size: 12px; font-weight: 600; color: #B45309; white-space: nowrap; } .dt-warnmsg { color: #B45309; margin: 0 0 6px; }
