/* Área de membros Venturi: identidade Venturi (preto, vermelho, Archivo + JetBrains Mono) */
:root {
  --bg: #060606; --panel: #0E0E10; --panel2: #141417; --line: rgba(244, 242, 239, .1); --line2: rgba(244, 242, 239, .18);
  --text: #F4F2EF; --sub: #C9C6C1; --muted: #8E8B86;
  --red: #DE1B1B; --red2: #FF2E2E; --red-press: #B81414; --redbg: rgba(222, 27, 27, .12);
  --ok: #3FB27F; --okbg: rgba(63, 178, 127, .12); --warn: #E7A33E; --warnbg: rgba(231, 163, 62, .12);
  --display: "Archivo", system-ui, sans-serif; --mono: "JetBrains Mono", ui-monospace, monospace;
  --r: 4px; --pill: 999px; --wrapw: 1040px;
  --ring: 0 0 0 3px rgba(244, 242, 239, .14);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --info: #8AB4FF; --on-ok: #04130C; --glass: rgba(6, 6, 6, .86); --glass2: rgba(10, 10, 11, .94); --shadow: 0 10px 40px rgba(0, 0, 0, .5);
  color-scheme: dark;
}
/* tema claro: neutros quentes, vermelho e verde mais escuros para manter contraste AA sobre fundo claro */
:root[data-theme="light"] {
  --bg: #F6F5F2; --panel: #FFFFFF; --panel2: #F0EEEA; --line: rgba(18, 17, 16, .1); --line2: rgba(18, 17, 16, .18);
  --text: #121110; --sub: #46423D; --muted: #6E6A64;
  --red2: #C41414; --redbg: rgba(222, 27, 27, .07);
  --ok: #1E7F52; --okbg: rgba(30, 127, 82, .09); --warn: #9A5B00; --warnbg: rgba(154, 91, 0, .09);
  --info: #1F57C3; --on-ok: #FFFFFF; --glass: rgba(246, 245, 242, .88); --glass2: rgba(255, 255, 255, .94); --shadow: 0 10px 40px rgba(18, 17, 16, .12);
  --ring: 0 0 0 3px rgba(18, 17, 16, .12);
  color-scheme: light;
}
:root[data-theme="light"] .card, :root[data-theme="light"] .sol, :root[data-theme="light"] .stat { box-shadow: 0 1px 2px rgba(18, 17, 16, .05); }
.logo-l { display: none !important; }
:root[data-theme="light"] .logo-d { display: none !important; }
:root[data-theme="light"] .logo-l { display: block !important; }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { font: 15px/1.55 var(--display); -webkit-font-smoothing: antialiased; min-height: 100svh; }
a { color: inherit; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--red2); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* tipografia */
h1, h2, h3 { font-family: var(--display); margin: 0; letter-spacing: -.02em; line-height: 1.05; }
h1 { font-size: clamp(28px, 6vw, 44px); font-weight: 900; text-transform: uppercase; letter-spacing: -.03em; }
h2 { font-size: 22px; font-weight: 800; }
h3 { font-size: 17px; font-weight: 700; }
.eyebrow { font: 500 11px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.eyebrow.red { color: var(--red2); }
.muted { color: var(--muted); }
.sub { color: var(--sub); }
.mono { font-family: var(--mono); }
p { margin: 0; }
.stack > * + * { margin-top: 12px; }
.stack-lg > * + * { margin-top: 24px; }

/* botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: var(--pill);
  border: 1px solid var(--line2); background: transparent; color: var(--text); font-weight: 700; font-size: 14px; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn { transition: background-color .15s ease, border-color .15s ease, transform .16s var(--ease-out); }
.btn:hover { border-color: var(--text); }
.btn:active:not([disabled]) { transform: scale(.97); }
label.btn { position: relative; }
label.btn:focus-within { outline: 2px solid var(--red2); outline-offset: 2px; }
.btn.primary { background: var(--red); border-color: var(--red); color: #fff; }
.btn.primary:hover { background: var(--red-press); border-color: var(--red-press); }
.btn.ok { background: var(--ok); border-color: var(--ok); color: var(--on-ok); }
.btn.ghost { border-color: transparent; }
.btn.sm { min-height: 36px; padding: 0 14px; font-size: 13px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
@media (pointer: coarse) { .btn.sm { min-height: 44px; } }
.btn svg { width: 18px; height: 18px; }
.link { background: none; border: 0; padding: 0; color: var(--sub); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* formulários */
label.f { display: block; }
label.f > span { display: block; font: 500 11px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
label.f > small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 6px; }
.in { width: 100%; min-height: 46px; padding: 11px 14px; background: var(--panel2); border: 1px solid var(--line2); border-radius: var(--r); outline: none; }
.in { transition: border-color .15s ease, box-shadow .15s ease; }
.in:focus { border-color: var(--text); box-shadow: var(--ring); }
.in::placeholder { color: var(--muted); opacity: 1; }
textarea.in { min-height: 110px; resize: vertical; }
select.in { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.grid2 { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 720px) { .grid2 { grid-template-columns: 1fr 1fr; } }
.err { color: var(--red2); font-size: 13.5px; min-height: 1em; }

/* cartões e superfícies */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; overflow-wrap: break-word; }
.card.tight { padding: 14px; }
.card.red { border-color: rgba(222, 27, 27, .5); background: linear-gradient(160deg, rgba(222, 27, 27, .14), var(--panel) 60%); }
.hr { height: 1px; background: var(--line); border: 0; margin: 20px 0; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--pill); font: 500 11px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; border: 1px solid var(--line2); color: var(--sub); white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.diagnostico { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 45%, transparent); }
.badge.producao, .badge.correcao { color: var(--info); border-color: color-mix(in srgb, var(--info) 45%, transparent); }
.badge.entregue { color: var(--red2); border-color: color-mix(in srgb, var(--red2) 45%, transparent); }
.badge.aprovado { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 45%, transparent); }
.badge.late { color: #fff; background: var(--red); border-color: var(--red); }
.notice { padding: 12px 14px; border-radius: var(--r); background: var(--panel2); border-left: 3px solid var(--line2); color: var(--sub); font-size: 14px; }
.notice.warn { border-color: var(--warn); background: var(--warnbg); }
.notice.ok { border-color: var(--ok); background: var(--okbg); }
.notice.red { border-color: var(--red); background: var(--redbg); }

/* casca */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px max(16px, calc((100% - var(--wrapw)) / 2 + 16px)); background: var(--glass); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top > a { display: flex; align-items: center; min-height: 44px; }
.top .logo { height: 18px; width: auto; }
.wrap { width: 100%; max-width: var(--wrapw); margin: 0 auto; padding: 24px 16px 96px; }
.wrap.narrow { max-width: 680px; }
.tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.tabs a { padding: 8px 12px; border-radius: var(--pill); text-decoration: none; font-weight: 600; font-size: 14px; color: var(--sub); white-space: nowrap; position: relative; }
.tabs a { transition: color .15s ease, background-color .15s ease; }
.tabs a:hover { color: var(--text); }
.tabs a.on { background: var(--text); color: var(--bg); }
.dot { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red); color: #fff; font: 700 11px/1 var(--mono); margin-left: 4px; }
.bottomnav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; justify-content: space-around; padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); background: var(--glass2); backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
.bottomnav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0; text-decoration: none; color: var(--muted); font-size: 11px; font-weight: 600; min-height: 48px; }
.bottomnav a { position: relative; }
.bottomnav a svg { width: 22px; height: 22px; }
.bottomnav .dot { position: absolute; top: 2px; left: calc(50% + 4px); margin: 0; }
.bottomnav a.on { color: var(--text); }
@media (min-width: 860px) { .bottomnav { display: none; } .wrap { padding-bottom: 48px; } }
@media (max-width: 859px) { .top .tabs { display: none; } }

/* etapas */
.steps { display: flex; gap: 4px; margin: 4px 0 0; }
.steps i { flex: 1; height: 4px; border-radius: 2px; background: var(--line2); }
.steps i.on { background: var(--red); }
.track { display: grid; gap: 0; }
.track li { list-style: none; display: grid; grid-template-columns: 24px 1fr; gap: 12px; padding-bottom: 16px; position: relative; }
.track li::before { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--line2); margin: 4px 0 0 6px; background: var(--bg); z-index: 1; }
.track li::after { content: ""; position: absolute; left: 11px; top: 18px; bottom: 0; width: 2px; background: var(--line); }
.track li:last-child::after { display: none; }
.track li.done::before { background: var(--red); border-color: var(--red); }
.track li.now::before { border-color: var(--red2); box-shadow: 0 0 0 4px var(--redbg); }
.track li strong { display: block; }
.track { padding: 0; margin: 0; }

/* celular de prévia */
.phone { width: 100%; max-width: 360px; aspect-ratio: 9 / 19; border-radius: 34px; border: 10px solid #1B1B1E; background: #000; overflow: hidden; margin: 0 auto; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.phone iframe { width: 100%; height: 100%; border: 0; display: block; }
.phone:focus-within, .phone.kb { outline: 2px solid var(--red2); outline-offset: 3px; }
.wait { display: grid; gap: 6px; padding: 18px; border: 1px dashed var(--line2); border-radius: var(--r); text-align: center; }

/* escolha de cena */
.looks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 720px) { .looks { grid-template-columns: repeat(3, 1fr); } }
.look { position: relative; border: 2px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--panel); cursor: pointer; padding: 0; text-align: left; }
.look .frame { aspect-ratio: 9 / 15; overflow: hidden; position: relative; background: #000; }
.look iframe { width: 390px; height: 650px; border: 0; transform-origin: 0 0; pointer-events: none; position: absolute; top: 0; left: 0; }
.look .cap { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; font-weight: 700; font-size: 14px; }
.look[aria-pressed="true"] { border-color: var(--red2); box-shadow: 0 0 0 3px var(--redbg); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { min-height: 40px; padding: 0 14px; border-radius: var(--pill); border: 1px solid var(--line2); background: transparent; cursor: pointer; font-weight: 600; font-size: 14px; }
.chip[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }

/* fotos */
.drops { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.drop { position: relative; aspect-ratio: 1; border: 1.5px dashed var(--line2); border-radius: 10px; display: grid; place-items: center; text-align: center; color: var(--muted); font-size: 12.5px; cursor: pointer; overflow: hidden; background: var(--panel2); padding: 8px; }
.drop.big { aspect-ratio: 4 / 5; max-width: 220px; }
.drop img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.drop .x { position: absolute; top: 6px; right: 6px; width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .7); color: #fff; cursor: pointer; z-index: 2; font-size: 16px; line-height: 1; }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop:focus-within { outline: 2px solid var(--red2); outline-offset: 2px; }
.drop:hover { border-color: var(--sub); }
.drop.busy::after { content: "Enviando…"; position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0, 0, 0, .7); color: #fff; }

/* listas editáveis */
.items { display: grid; gap: 8px; }
.item { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; align-items: center; }
@media (max-width: 560px) { .item { grid-template-columns: 1fr auto; } .item > :nth-child(2) { grid-column: 1; grid-row: 2; } .item > :nth-child(3) { grid-row: 1 / 3; grid-column: 2; } }
.iconbtn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--pill); border: 1px solid var(--line2); background: transparent; cursor: pointer; flex: none; }
.iconbtn svg { width: 18px; height: 18px; }

/* chat */
.chat { display: flex; flex-direction: column; gap: 10px; padding: 4px 0 16px; }
.msg { max-width: 82%; padding: 10px 14px; border-radius: 16px; background: var(--panel2); border: 1px solid var(--line); white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14.5px; }
.msg.me { align-self: flex-end; background: var(--text); color: var(--bg); border-color: var(--text); border-bottom-right-radius: 4px; }
.msg.them { align-self: flex-start; border-bottom-left-radius: 4px; }
.msg.sys { align-self: center; max-width: 92%; background: transparent; border-style: dashed; color: var(--sub); font-size: 13.5px; }
.msg small { display: block; margin-top: 4px; font: 500 10.5px/1.3 var(--mono); opacity: .65; }
.composer { position: sticky; bottom: 70px; display: flex; gap: 8px; padding: 10px 0; background: var(--bg); }
@media (min-width: 860px) { .composer { bottom: 0; } }
.composer textarea { min-height: 48px; max-height: 160px; flex: 1; }

/* tabelas da operação */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font: 500 10.5px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 10px 10px; border-bottom: 1px solid var(--line2); white-space: nowrap; }
.table td { padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr.click { cursor: pointer; }
.table tr.click:hover td { background: var(--panel); }
.scroll-x { overflow-x: auto; }
.table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table a.rowlink { text-decoration: none; }
.table a.rowlink:hover { text-decoration: underline; }
@media (max-width: 719px) {
  .table.cards thead { display: none; }
  .table.cards, .table.cards tbody, .table.cards tr { display: block; }
  .table.cards tr { padding: 14px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; }
  .table.cards td { display: block; padding: 0; border: 0; text-align: left; }
  .table.cards td[data-l]::before { content: attr(data-l) " "; font: 500 10.5px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
  .table.cards td.hide-m { display: none; }
}

/* toast */
.toast { transition: opacity .2s var(--ease-out), transform .2s var(--ease-out); }
.toast[hidden] { display: block; opacity: 0; transform: translate(-50%, 8px); pointer-events: none; }
.toast { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%); z-index: 99; background: var(--text); color: var(--bg); padding: 12px 18px; border-radius: var(--pill); font-weight: 700; font-size: 14px; box-shadow: var(--shadow); max-width: calc(100% - 32px); }
.toast.bad { background: var(--red); color: #fff; }

/* modal */
dialog { background: var(--panel); color: var(--text); border: 1px solid var(--line2); border-radius: 10px; padding: 22px; width: min(560px, calc(100% - 24px)); }
dialog::backdrop { background: rgba(0, 0, 0, .7); }

/* entrada (login, acesso) */
.auth { min-height: 100svh; display: grid; place-items: center; padding: 24px 16px; background: radial-gradient(80% 60% at 80% 0%, rgba(222, 27, 27, .18), transparent 60%), var(--bg); }
.auth .box { width: 100%; max-width: 400px; }
.auth .logo { height: 22px; width: auto; margin-bottom: 36px; }
.grain { position: fixed; inset: 0; pointer-events: none; opacity: .06; z-index: 0; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
.auth .box, .auth form { position: relative; z-index: 1; }

@media (prefers-reduced-motion: no-preference) {
  .fade { animation: fade .22s var(--ease-out) both; }
  @keyframes fade { from { opacity: 0; transform: translateY(4px); } }
}
@media (prefers-reduced-motion: reduce) {
  .fade { animation: fadeo .2s ease both; }
  @keyframes fadeo { from { opacity: 0; } }
  .btn:active:not([disabled]) { transform: none; }
}
main[tabindex="-1"]:focus { outline: none; }
@media (max-width: 719px) { .order-grid .preview-col.first { order: -1; } }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; }
.chips.scroll > * { flex: none; }
@media (min-width: 720px) { .chips.scroll { flex-wrap: wrap; margin-inline: 0; padding-inline: 0; } }

/* estilos favoritos: ordem de preferência no canto */
.look .rank { position: absolute; top: 10px; right: 10px; z-index: 2; min-width: 34px; height: 34px; padding: 0 8px; border-radius: var(--pill); background: var(--red); color: #fff; font: 700 13px/34px var(--mono); text-align: center; box-shadow: 0 4px 14px rgba(0, 0, 0, .5); }
.look .rank:empty { display: none; }

/* ===== contas da agência (2026-11-09): projeto, resultados, soluções ===== */
ul.plain { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.bar { height: 6px; border-radius: 3px; background: var(--line2); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--ok); border-radius: 3px; }
.metrics { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.metric .big { font: 900 30px/1.1 var(--display); letter-spacing: -.02em; margin-top: 8px; font-variant-numeric: tabular-nums; }
.metric .delta { font: 500 13px/1.4 var(--mono); margin-top: 6px; }
.metric .delta.up { color: var(--ok); }
.metric .delta.down { color: var(--red2); }
.metric .spark { display: block; width: 100%; height: 40px; margin-top: 10px; color: var(--sub); }
.sol-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.sol { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-top: 2px solid var(--line2); border-radius: var(--r); overflow: hidden; }
.sol.locked { background: linear-gradient(180deg, color-mix(in srgb, var(--text) 3%, transparent), var(--panel) 40%); }
.sol .cover { position: relative; aspect-ratio: 16 / 9; background: radial-gradient(120% 90% at 100% 0%, rgba(222, 27, 27, .22), transparent 60%), var(--panel2); border-bottom: 1px solid var(--line); display: grid; place-items: end start; padding: 14px; }
.sol .cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sol .cover > span { font: 900 20px/1 var(--display); text-transform: uppercase; letter-spacing: -.02em; color: var(--text); opacity: .82; }
.sol .pill { position: absolute; top: 10px; right: 10px; padding: 3px 9px; border-radius: var(--pill); font: 500 10.5px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; background: var(--glass2); border: 1px solid var(--line2); }
.sol .pill.ok { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 45%, transparent); }
.sol .body { display: flex; flex-direction: column; gap: 8px; padding: 16px; flex: 1; }
.sol .foot { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 10px; }
.track li > div { min-width: 0; }
.mstep > * + * { margin-top: 4px; }
.mstep { padding-bottom: 4px; }
section.stack > h3 + .track { margin-top: 14px; }
.mrow { align-items: flex-start; flex-wrap: nowrap; }
@media (max-width: 719px) { .mrow { flex-wrap: wrap; } .mrow > div:nth-child(2) { flex: 1 1 100% !important; order: -1; } }
.bottomnav a { min-width: 0; }
.bottomnav a > span { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 2px; }


/* ===== plataforma do empresário (2026-11-09): casca com barra lateral (estilo comunidade), visão geral, mural, agenda ===== */
.shell { min-height: 100svh; }
.sidenav { display: none; }
@media (min-width: 860px) {
  body.app .top.mob { display: none; }
  .shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); }
  .sidenav { display: flex; flex-direction: column; position: sticky; top: 0; height: 100svh; overflow-y: auto; padding: 18px 12px 14px; border-right: 1px solid var(--line); background: var(--panel); scrollbar-width: thin; }
  body.app .wrap { max-width: 1120px; padding: 32px 32px 56px; }
}
@media (max-width: 859px) { body.app .wrap { padding-bottom: 104px; } }
.sidenav .brand { display: flex; align-items: center; min-height: 44px; padding: 0 10px; margin-bottom: 10px; }
.sidenav .brand img { height: 18px; width: auto; }
.sidenav .sec { font: 500 10.5px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: 16px 10px 6px; }
.sidenav a.item, .menu-list a { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 10px; border-radius: 8px; text-decoration: none; color: var(--sub); font-weight: 600; font-size: 14.5px; transition: background-color .15s ease, color .15s ease; }
.sidenav a.item svg, .menu-list a svg { width: 18px; height: 18px; flex: none; }
.sidenav a.item:hover { background: var(--panel2); color: var(--text); }
.sidenav a.item.on { background: var(--panel2); color: var(--text); box-shadow: inset 2px 0 0 var(--red); }
.sidenav a.item .dot, .menu-list a .dot { margin-left: auto; }
.side-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); display: grid; gap: 6px; }
.side-foot .who { padding: 4px 10px; font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.theme-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line2); background: transparent; cursor: pointer; font-weight: 600; font-size: 13.5px; color: var(--sub); }
.theme-btn:hover { color: var(--text); border-color: var(--text); }
.theme-btn svg { width: 17px; height: 17px; }
.top.mob .theme-btn { min-height: 40px; padding: 0 10px; }
.menu-list { display: grid; gap: 2px; }
.menu-list a { min-height: 48px; font-size: 15.5px; }

/* visão geral */
.hub { display: grid; gap: 24px; align-items: start; }
@media (min-width: 1100px) { .hub { grid-template-columns: minmax(0, 1fr) 340px; } }
.hub > * { min-width: 0; }
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 720px) { .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.kpi { display: flex; flex-direction: column; justify-content: space-between; gap: 8px; min-height: 96px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); text-decoration: none; transition: border-color .15s ease; }
.kpi:hover { border-color: var(--line2); }
.kpi b { font: 900 26px/1 var(--display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kpi small { color: var(--muted); font-size: 12.5px; }
.kpi.hot { border-color: var(--red); background: var(--redbg); }
.kpi.okk b { color: var(--ok); }
.agenda { list-style: none; margin: 0; padding: 0; display: grid; }
.agenda li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.agenda li:first-child { border-top: 0; }
.agenda .when { font: 700 13px/1.2 var(--mono); color: var(--sub); padding-top: 2px; font-variant-numeric: tabular-nums; }
.agenda .when.none { color: var(--muted); font-weight: 500; font-size: 11.5px; }
.agenda .when.late { color: var(--red2); }
.agenda a { text-decoration: none; }
.agenda a:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.agenda .meta { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin-top: 4px; font-size: 12.5px; color: var(--muted); }
.who-tag { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: var(--pill); font: 500 10.5px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; border: 1px solid var(--line2); color: var(--sub); }
.who-tag.client, .who-tag.both { color: var(--red2); border-color: color-mix(in srgb, var(--red2) 45%, transparent); }
.post { display: grid; gap: 8px; }
.post + .post { border-top: 1px solid var(--line); padding-top: 16px; margin-top: 16px; }
.post .body { color: var(--sub); white-space: pre-wrap; overflow-wrap: anywhere; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.tile { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); text-decoration: none; transition: border-color .15s ease; min-height: 64px; }
.tile:hover { border-color: var(--line2); }
.tile .ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 8px; background: var(--panel2); color: var(--sub); flex: none; }
.tile .ic svg { width: 18px; height: 18px; }
.tile strong { display: block; }
.tile small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.side-col > * + * { margin-top: 16px; }
.inv { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 14px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.inv:first-child { border-top: 0; }
.inv .amt { font: 700 16px/1.2 var(--display); font-variant-numeric: tabular-nums; text-align: right; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--sub); cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--red); flex: none; }
.card > h2 + .inv { margin-top: 8px; }

/* ===== painel do cliente (2026-11-09, do Portal da Transparência): capa, indicadores, notificações, escopo, cronograma ===== */
.capa { position: relative; overflow: hidden; border-radius: 10px; min-height: 220px; padding: 28px; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; color: #F4F2EF;
  background: radial-gradient(90% 120% at 100% 0%, color-mix(in srgb, var(--capa, #DE1B1B) 55%, transparent), transparent 62%), linear-gradient(135deg, #111013 0%, #060606 70%); isolation: isolate; }
.capa::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .07; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
.capa > img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.capa.has-bg::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(6, 6, 6, .15) 0%, rgba(6, 6, 6, .82) 78%); }
.capa .logo-cli { position: absolute; top: 22px; right: 22px; max-height: 44px; max-width: 160px; width: auto; padding: 8px 10px; border-radius: 8px; background: rgba(255, 255, 255, .94); }
.capa .eyebrow { color: rgba(244, 242, 239, .78); }
.capa h1 { color: #fff; font-size: clamp(30px, 5vw, 52px); }
.capa p.lead { color: rgba(244, 242, 239, .86); max-width: 680px; font-size: 15.5px; }
@media (min-width: 860px) { .capa { min-height: 260px; padding: 36px; } }
.tiles5 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 720px) { .tiles5 { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.t5 { padding: 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); border-top: 3px solid var(--t5, var(--line2)); }
.t5 b { display: block; font: 900 28px/1 var(--display); font-variant-numeric: tabular-nums; }
.t5 span { display: block; margin-top: 6px; font-size: 13px; color: var(--sub); }
.t5.ok, .st-ok { --t5: var(--ok); } .t5.and { --t5: var(--info); } .t5.cli { --t5: var(--red); } .t5.plan { --t5: var(--line2); } .t5.atr { --t5: var(--warn); }
.notif { list-style: none; margin: 0; padding: 0; display: grid; }
.notif li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; padding: 11px 0; border-top: 1px solid var(--line); }
.notif li:first-child { border-top: 0; }
.notif .ic { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 700 13px/1 var(--mono); background: var(--panel2); color: var(--sub); }
.notif .ic.cliente { background: var(--redbg); color: var(--red2); } .notif .ic.atrasado { background: var(--warnbg); color: var(--warn); } .notif .ic.concluido { background: var(--okbg); color: var(--ok); }
.notif button { all: unset; cursor: pointer; display: block; }
.notif button:focus-visible { outline: 2px solid var(--red2); outline-offset: 2px; }
.notif strong { display: block; font-size: 14.5px; } .notif small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.pils { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.pil { display: grid; gap: 8px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); text-decoration: none; }
.pil:hover { border-color: var(--line2); }
.sbar { display: flex; height: 8px; border-radius: 4px; overflow: hidden; background: var(--panel2); }
.sbar i { display: block; height: 100%; }
.sbar .b-ok { background: var(--ok); } .sbar .b-and { background: var(--info); } .sbar .b-cli { background: var(--red); } .sbar .b-atr { background: var(--warn); }
.stchip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: var(--pill); font: 500 10.5px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; border: 1px solid var(--line2); color: var(--sub); white-space: nowrap; }
.stchip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.stchip.concluido { color: var(--ok); } .stchip.andamento { color: var(--info); } .stchip.cliente { color: var(--red2); } .stchip.atrasado { color: var(--warn); }
.dl { list-style: none; margin: 0; padding: 0; }
.dl li + li { border-top: 1px solid var(--line); }
.dl button { all: unset; box-sizing: border-box; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; width: 100%; padding: 12px 4px; }
.dl button:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.dl button:focus-visible { outline: 2px solid var(--red2); outline-offset: 2px; border-radius: 4px; }
.dl small { grid-column: 1; color: var(--muted); font-size: 13px; }
.dl .stchip { grid-row: 1 / 3; grid-column: 2; }
.gantt { display: grid; gap: 6px; }
.g-row { display: grid; grid-template-columns: minmax(120px, 34%) minmax(0, 1fr); gap: 12px; align-items: center; min-height: 28px; }
.g-lab { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.g-tr { position: relative; height: 14px; border-radius: 7px; background: var(--panel2); }
.g-b { position: absolute; top: 2px; height: 10px; border-radius: 5px; background: var(--line2); }
.g-b.concluido { background: var(--ok); } .g-b.andamento { background: var(--info); } .g-b.atrasado { background: var(--warn); }
.g-b.cliente { background: repeating-linear-gradient(45deg, var(--red) 0 4px, color-mix(in srgb, var(--red) 45%, transparent) 4px 8px); }
.g-hoje { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--text); z-index: 1; }
.g-head .g-tr { background: none; height: 18px; }
.g-m { position: absolute; font: 500 10.5px/1 var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.g-sec { font: 500 10.5px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 10px; }
.leg { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 14px; font-size: 12.5px; color: var(--sub); }
.leg span { display: inline-flex; align-items: center; gap: 6px; }
.leg i { display: inline-block; width: 18px; height: 8px; border-radius: 4px; position: static; }

/* ===== biblioteca em fileiras (estilo área de membros de curso) ===== */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 300px); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: thin; }
.rail > * { scroll-snap-align: start; }
@media (max-width: 719px) { .rail { grid-auto-columns: 78%; margin-inline: -16px; padding-inline: 16px; scroll-padding-inline: 16px; } }
.poster { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--panel); transition: border-color .15s ease, transform .2s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .poster:hover { border-color: var(--line2); transform: translateY(-2px); } }
.poster:focus-visible { outline: 2px solid var(--red2); outline-offset: 2px; }
.poster[disabled] { cursor: default; }
.pcover { position: relative; aspect-ratio: 16 / 9; background: #0b0b0d; }
.pcover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ptag { position: absolute; top: 10px; left: 10px; padding: 3px 9px; border-radius: var(--pill); font: 500 10.5px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; background: rgba(6, 6, 6, .72); color: #F4F2EF; border: 1px solid rgba(244, 242, 239, .22); backdrop-filter: blur(6px); }
.pbar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(244, 242, 239, .22); }
.pbar i { display: block; height: 100%; background: var(--red); }
.pbody { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 14px; flex: 1; }
.pbody strong { font-size: 15px; line-height: 1.3; }
.pbody small { color: var(--muted); font-size: 13px; }
.pcta { margin-top: auto; padding-top: 8px; font-weight: 700; font-size: 13.5px; color: var(--red2); }
.poster.locked .pcover img { filter: saturate(.8); }
.mini-steps { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.mini-steps span { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--pill); font-size: 12.5px; border: 1px solid var(--line2); color: var(--muted); }
.mini-steps span.done { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 45%, transparent); }
.mini-steps span.now { color: var(--red2); border-color: color-mix(in srgb, var(--red2) 50%, transparent); font-weight: 700; }

/* produtos e serviços contratados (2026-11-10) */
.ctr-list { display: grid; gap: 10px; }
.ctr { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); }
.ctr-main { min-width: 0; flex: 1 1 260px; }
.ctr-main h3 { margin: 6px 0 4px; }
.ctr-side { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ctr-status { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: var(--sub); }
#ctrPanel .ctr { background: transparent; }

/* portfólio (2026-11-10): páginas reais no diagnóstico e no painel */
.pf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
@media (max-width: 559px) { .pf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .pf-body { padding: 10px; } }
.pf { display: flex; flex-direction: column; border: 2px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--panel); }
.pf.off .pf-cover { opacity: .45; }
.pf-toggle { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; cursor: pointer; min-height: 36px; }
.pf-toggle input { width: 18px; height: 18px; accent-color: var(--ok); }
.pf-cover { position: relative; display: grid; place-items: end start; aspect-ratio: 9 / 13; padding: 12px; border: 0; background: radial-gradient(120% 90% at 100% 0%, rgba(222, 27, 27, .25), transparent 60%), var(--panel2); cursor: pointer; text-align: left; color: var(--text); width: 100%; }
.pf-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pf-cover > span { position: relative; font: 800 16px/1.1 var(--display); }
.pf-body { display: grid; gap: 6px; padding: 12px; }
.pf-body h3 { font-size: 15px; }
.pf-heart { position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(6, 6, 6, .7); color: #fff; font-style: normal; font-size: 16px; opacity: .55; }
.pf.pick[aria-pressed="true"] { border-color: var(--red2); box-shadow: 0 0 0 3px var(--redbg); }
.pf.pick[aria-pressed="true"] .pf-heart { background: var(--red); opacity: 1; }

/* jornada do Link in Bio na página principal (2026-11-10): 5 etapas ligadas, vermelho só na vez do cliente */
.jr { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; align-items: start; }
.jr li { position: relative; display: grid; justify-items: center; align-content: start; text-align: center; gap: 10px; padding: 0 6px; }
.jr li::before { content: ""; position: absolute; top: 19px; left: calc(-50% + 22px); width: calc(100% - 44px); height: 2px; background: var(--line2); }
.jr li:first-child::before { display: none; }
.jr li.done::before, .jr li.now::before { background: var(--ok); }
.jr-dot { position: relative; z-index: 1; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--line2); background: var(--panel); font: 700 15px/1 var(--mono); color: var(--muted); }
.jr li.done .jr-dot { background: var(--ok); border-color: var(--ok); color: #04130C; }
.jr li.now .jr-dot { border-color: var(--text); color: var(--text); box-shadow: 0 0 0 5px var(--panel2); }
.jr li.now.you .jr-dot { border-color: var(--red); background: var(--red); color: #fff; box-shadow: 0 0 0 5px var(--redbg); }
.jr-txt { display: grid; gap: 4px; }
.jr-txt strong { font-size: 14.5px; }
.jr-txt span { font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.jr li.now .jr-txt span { color: var(--sub); }
.jr-now { margin-top: 18px; padding: 12px 14px; border-radius: var(--r); background: var(--panel2); border-left: 3px solid var(--text); font-size: 14px; }
.jr-now.you { border-color: var(--red); background: var(--redbg); }
@media (max-width: 719px) {
  .jr { grid-template-columns: 1fr; gap: 0; }
  .jr li { grid-template-columns: 40px 1fr; justify-items: start; text-align: left; gap: 14px; padding: 0 0 18px; }
  .jr li::before { top: auto; bottom: 0; left: 19px; width: 2px; height: calc(100% - 44px); display: block; }
  .jr li:first-child::before { display: block; }
  .jr li:last-child::before { display: none; }
  .jr-dot { grid-row: 1; }
}

/* chamados (2026-11-10) */
.tk-list { display: grid; }
.tk { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 10px; border-top: 1px solid var(--line); text-decoration: none; }
.tk:first-child { border-top: 0; }
.tk:hover { background: var(--panel2); }
.tk strong { display: block; margin: 4px 0 2px; }
.tk.unread strong { color: var(--text); }
.tk-thread { display: grid; gap: 12px; }
.tk-msg { padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); max-width: 92%; }
.tk-msg.me { justify-self: end; background: var(--panel2); }
.aviso { padding: 12px 6px; border-top: 1px solid var(--line); }
.aviso:first-child { border-top: 0; }
.aviso.unread { box-shadow: inset 3px 0 0 var(--red); padding-left: 12px; }
