
@font-face { font-family: "Simple Michael"; src: url("./fonts/SimpleMichael.otf") format("opentype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Simple Michael"; src: url("./fonts/SimpleMichael-Italic.otf") format("opentype"); font-weight: 400; font-style: italic; font-display: swap; }
/* Litus OS — estilos (Design System Litus) */
:root {
  /* Litus — Design System (Figma) */
  --brand-offwhite: #F8F5F1;
  --brand-beige: #EBD9C8;
  --brand-rose: #B76E79;
  --brand-lightblue: #A9C4D6;
  --brand-navy: #163B58;
  --bg: #F8F5F1;            /* bg/canvas */
  --paper: #FFFFFF;
  --surface: #EBD9C8;       /* bg/surface */
  --surface-soft: #F3EAE1;
  --ink: #163B58;           /* text/primary */
  --muted: #36566B;         /* text/secondary */
  --faint: #7D8F9C;
  --line: #DBC5B7;          /* border/default */
  --line-soft: #EADDD3;
  --accent: #163B58;        /* action/primary */
  --accent-ink: #FFFFFF;
  --accent-soft: #E7EEF3;
  --rose: #B76E79;
  --rose-soft: #F4E4E6;
  --ok: #2B6248; --ok-bg: #E1EDE4;
  --pend: #7A5A12; --pend-bg: #F5EBD3;
  --adj: #A0434F; --adj-bg: #F6E1E3;
  --info: #163B58; --info-bg: #E2ECF3;
  --display: "Simple Michael", "Instrument Serif", Georgia, "Times New Roman", serif;
  --italic: "Montserrat", system-ui, sans-serif;
  --body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(22, 59, 88, .04), 0 6px 20px rgba(22, 59, 88, .04);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 15px; line-height: 1.55; -webkit-text-size-adjust: 100%; }
body.noscroll { overflow: hidden; }
a { color: inherit; }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
code { background: var(--accent-soft); padding: 1px 6px; border-radius: 4px; }

/* ---------- tipografia ---------- */
.display { font-family: var(--display); font-weight: 500; font-size: clamp(32px, 5vw, 46px); line-height: 1.05; letter-spacing: -0.01em; margin: 0; }
.h-serif { font-family: var(--display); font-size: 26px; font-weight: 500; margin: 0 0 8px; }
.eyebrow { margin: 0 0 6px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.eyebrow a { text-decoration: none; }
.eyebrow a:hover { color: var(--accent); }
.muted { color: var(--muted); }
.pre { white-space: pre-line; margin: 0; }
.lead { font-size: 17px; }
.mono { font-family: ui-monospace, monospace; font-size: 13px; }
h2 { font-size: 16px; font-weight: 600; margin: 0; }
.label { font-size: 13px; font-weight: 600; color: var(--muted); margin: 18px 0 6px; }
.label.ok { color: var(--ok); } .label.adj { color: var(--adj); }

/* ---------- botões e campos ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 8px 16px; border-radius: 8px; border: 1.5px solid var(--line); background: var(--paper); font-weight: 600; font-size: 14px; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { border-color: var(--accent); }
.btn:disabled { opacity: .55; cursor: default; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.06); }
.btn-ghost { background: transparent; border-style: dashed; }
.btn-sm { min-height: 32px; padding: 4px 12px; font-size: 13px; }
.btn-danger { background: var(--adj); border-color: var(--adj); color: #fff; }
.btn-danger-ghost { color: var(--adj); border-color: transparent; background: transparent; }
.btn-google { background: #fff; border: 1.5px solid #dadce0; min-height: 46px; width: 100%; }
.icon-btn { border: 0; background: transparent; width: 32px; height: 32px; border-radius: 6px; font-size: 18px; cursor: pointer; color: var(--muted); flex: none; }
.icon-btn:hover { background: var(--accent-soft); color: var(--ink); }
.link { border: 0; background: none; padding: 0; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: 13px; }
.link:hover { color: var(--accent); }

input:not([type=checkbox]):not([type=color]):not([type=file]), select, textarea {
  width: 100%; background: var(--paper); border: 1.5px solid var(--line); border-radius: 8px; padding: 9px 12px; font-size: 15px; min-height: 40px;
}
input[type=color] { width: 56px; height: 40px; border: 1.5px solid var(--line); border-radius: 8px; padding: 2px; background: var(--paper); }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field.wide { grid-column: 1 / -1; }
.field-label { font-size: 13px; font-weight: 600; }
.field-hint { font-size: 12px; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.inline-form { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.inline-form > input, .inline-form > select { flex: 1 1 200px; width: auto; }
.search { max-width: 360px; margin-bottom: 16px; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.stack-lg { display: flex; flex-direction: column; gap: 20px; }
.grow { flex: 1; min-width: 0; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- selos ---------- */
.badge { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap; background: #EFEAE7; color: var(--muted); }
.badge-ok { background: var(--ok-bg); color: var(--ok); }
.badge-pend { background: var(--pend-bg); color: var(--pend); }
.badge-adj { background: var(--adj-bg); color: var(--adj); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; align-items: center; }
.pill { background: var(--accent); color: #fff; border-radius: 999px; font-size: 11px; padding: 1px 7px; margin-left: auto; }

/* ---------- segmentado / abas ---------- */
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; background: #EFE8E4; padding: 4px; border-radius: 10px; }
.seg button { border: 0; background: transparent; padding: 7px 14px; border-radius: 7px; font-size: 14px; font-weight: 500; cursor: pointer; color: var(--muted); }
.seg button[aria-selected=true] { background: var(--paper); color: var(--ink); box-shadow: var(--shadow); font-weight: 600; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 22px; overflow-x: auto; scrollbar-width: none; }
.tab { padding: 10px 14px; text-decoration: none; color: var(--muted); font-weight: 500; font-size: 14px; border-bottom: 2px solid transparent; white-space: nowrap; }
.tab.active { color: var(--ink); border-bottom-color: var(--accent); font-weight: 600; }
.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 16px; }
.filters select { width: auto; min-width: 200px; }

/* ---------- login ---------- */
.login, .center-screen { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.login-card { width: min(420px, 100%); background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 36px 32px; box-shadow: var(--shadow); }
.login-card .display { margin-bottom: 24px; }
.login .seg { width: 100%; margin-bottom: 20px; }
.login .seg button { flex: 1; }
.note { font-size: 14px; padding: 10px 12px; border-radius: 8px; margin: 14px 0 0; }
.note-err { background: var(--adj-bg); color: var(--adj); }
.note-ok { background: var(--ok-bg); color: var(--ok); }

/* ---------- layout equipe ---------- */
.shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--paper); border-right: 1px solid var(--line); padding: 20px 14px; display: flex; flex-direction: column; gap: 18px; }
.brand { display: flex; gap: 10px; align-items: center; padding: 0 6px; }
.brand-mark { width: 36px; height: 36px; border-radius: 9px; background: var(--accent); color: #fff; display: grid; place-items: center; font-family: var(--display); font-size: 22px; }
.brand-name { margin: 0; font-weight: 700; } .brand-sub { margin: 0; font-size: 12px; color: var(--muted); }
.sidebar nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.nav-label { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin: 14px 8px 6px; }
.nav-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; text-decoration: none; font-weight: 500; font-size: 14px; }
.nav-item:hover { background: var(--bg); }
.nav-item.active { background: var(--accent-soft); color: var(--ink); font-weight: 600; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: inline-grid; place-items: center; font-weight: 700; object-fit: cover; flex: none; }
.avatar.sm { width: 24px; height: 24px; font-size: 12px; }
.me { display: flex; gap: 10px; align-items: center; border-top: 1px solid var(--line); padding: 14px 6px 0; }
.me-txt p { margin: 0; font-size: 14px; font-weight: 600; }
.main { min-width: 0; }
.topbar { display: none; }
.content { padding: 32px clamp(16px, 4vw, 44px) 80px; max-width: 1240px; }
.scrim { display: none; }
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; z-index: 30; left: 0; top: 0; width: 270px; transform: translateX(-100%); transition: transform .2s; }
  .menu-open .sidebar { transform: none; }
  .scrim { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.3); z-index: 20; }
  .topbar { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
  .topbar-title { font-weight: 700; }
  .content { padding-top: 20px; }
}

/* ---------- páginas ---------- */
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); min-width: 0; }
.card > h2 { margin-bottom: 12px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.card.danger { border-color: var(--adj-bg); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.span-2 { grid-column: 1 / -1; }
@media (max-width: 820px) { .grid-2 { grid-template-columns: 1fr; } }
.rows { list-style: none; margin: 0; padding: 0; }
.rows > li + li { border-top: 1px solid var(--line); }
.row { display: flex; align-items: center; gap: 12px; padding: 11px 4px; text-decoration: none; }
a.row:hover { background: var(--bg); border-radius: 6px; }
.row > div:first-child, .row .grow { flex: 1; min-width: 0; }
.row p { margin: 0; }
.row-title { font-weight: 600; margin: 0; }
.row-sub { font-size: 13px; color: var(--muted); margin: 0; }
.row-quote { font-size: 13px; color: var(--adj); margin: 4px 0 0; }
.row.unread .row-title::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-right: 7px; vertical-align: middle; }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.row-actions select { width: auto; }
.empty { padding: 22px 8px; text-align: center; color: var(--muted); }
.empty-title { margin: 0; font-weight: 500; }
.empty-body { margin-top: 10px; font-size: 14px; }
.error-box { background: var(--adj-bg); color: var(--adj); padding: 12px 14px; border-radius: 8px; margin-bottom: 14px; }
.spinner { display: flex; align-items: center; gap: 10px; color: var(--muted); padding: 24px 0; }
.spinner .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); animation: pulse 1s infinite alternate; }
@keyframes pulse { from { opacity: .3; transform: scale(.8); } to { opacity: 1; transform: scale(1.1); } }
.savebar, .actions-bar { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; margin-top: 16px; }
.actions-bar { justify-content: flex-start; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.client-card { display: flex; gap: 14px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; text-decoration: none; box-shadow: var(--shadow); }
.client-card:hover { border-color: var(--accent); }
.client-card p { margin: 0; }
.swatch { width: 12px; height: 12px; border-radius: 50%; flex: none; margin-top: 6px; }
.swatch.lg { width: 34px; height: 34px; border-radius: 8px; margin: 0; border: 1px solid var(--line); }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }

.list-editor { display: flex; flex-direction: column; gap: 8px; }
.list-row { display: flex; gap: 8px; align-items: flex-start; }
.list-row > input, .list-row > textarea { flex: 1; }
@media (max-width: 640px) { .list-row { flex-wrap: wrap; } .list-row > input, .list-row > textarea { flex-basis: 100%; max-width: none !important; } }

.checklist { list-style: none; padding: 0; margin: 12px 0 0; }
.checklist li { display: flex; gap: 10px; align-items: center; padding: 9px 2px; border-top: 1px solid var(--line); }
.checklist li:first-child { border-top: 0; }
.checklist li.done .grow { text-decoration: line-through; color: var(--muted); }
.checklist input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--accent); flex: none; }

.cred { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.cred textarea { font-size: 14px; background: var(--bg); }

/* ---------- modal e aviso ---------- */
.overlay { position: fixed; inset: 0; z-index: 50; background: rgba(42,34,38,.45); display: grid; place-items: center; padding: 16px; }
.modal { background: var(--paper); border-radius: 14px; width: min(560px, 100%); max-height: calc(100vh - 32px); display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(0,0,0,.2); }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px 8px; }
.modal-head h3 { margin: 0; font-family: var(--display); font-size: 28px; font-weight: 500; }
.modal-body { padding: 8px 20px 16px; overflow-y: auto; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--line); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 60; background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 999px; font-size: 14px; max-width: calc(100% - 32px); text-align: center; box-shadow: 0 8px 24px rgba(0,0,0,.2); }
.toast-err { background: var(--adj); }

/* ---------- visualizador de mídia ---------- */
.viewer-wrap { min-width: 0; }
.viewer { position: relative; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #111; }
.viewer-empty { display: grid; place-items: center; color: var(--muted); background: var(--paper); border: 1px dashed var(--line); border-radius: 10px; }
.track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: center; display: grid; place-items: center; background: #111; }
.slide img, .slide video, .slide iframe { width: 100%; height: 100%; object-fit: cover; display: block; border: 0; }
.slide video { object-fit: contain; background: #000; }
.slide-link { color: #fff; text-align: center; padding: 20px; }
.count { position: absolute; top: 10px; left: 10px; background: rgba(0,0,0,.6); color: #fff; font-size: 12px; font-weight: 600; padding: 2px 10px; border-radius: 999px; }
.nav { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); font-size: 24px; line-height: 1; cursor: pointer; display: grid; place-items: center; color: var(--ink); }
.nav.prev { left: 10px; } .nav.next { right: 10px; }
.nav:disabled { opacity: 0; pointer-events: none; }
.dots { display: flex; justify-content: center; gap: 2px; margin-top: 6px; }
.dots button { width: 24px; height: 24px; border: 0; background: none; padding: 0; display: grid; place-items: center; cursor: pointer; }
.dots button::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--line); }
.dots button[aria-current=true]::after { background: var(--accent); }

/* ---------- editor de entrega ---------- */
.editor { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 28px; align-items: start; }
.editor-preview { position: sticky; top: 20px; }
.editor-preview .caption { font-size: 14px; margin-top: 12px; white-space: pre-line; max-height: 300px; overflow: auto; }
@media (max-width: 960px) { .editor { grid-template-columns: 1fr; } .editor-preview { position: static; max-width: 420px; } }
.media-list { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-direction: column; gap: 6px; }
.media-list li { display: flex; align-items: center; gap: 8px; background: var(--bg); border-radius: 8px; padding: 6px 8px; font-size: 14px; }
.media-thumb { width: 40px; height: 40px; border-radius: 6px; overflow: hidden; background: var(--line); display: grid; place-items: center; flex: none; }
.media-thumb img { width: 100%; height: 100%; object-fit: cover; }
.dropzone { display: block; border: 2px dashed var(--line); border-radius: 10px; padding: 22px; text-align: center; color: var(--muted); cursor: pointer; font-size: 14px; }
.dropzone:hover { border-color: var(--accent); color: var(--ink); }
.dropzone.busy { border-color: var(--accent); color: var(--accent); }
.dropzone input { display: none; }
.notes { list-style: none; padding: 0; margin: 12px 0; display: flex; flex-direction: column; gap: 8px; }
.note-item { background: var(--bg); border-left: 3px solid var(--line); padding: 8px 12px; border-radius: 0 8px 8px 0; font-size: 14px; }
.note-item p { margin: 0; }
.note-item.adjust { border-left-color: var(--adj); }
.note-item.approve { border-left-color: var(--ok); }
.note-meta { font-size: 12px; color: var(--muted); margin-bottom: 2px !important; }

/* ---------- portal do cliente ---------- */
.portal { --accent: var(--client, #B76E79); min-height: 100vh; display: flex; flex-direction: column; }
.portal-head { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.portal-head-in { max-width: 1080px; margin: 0 auto; padding: 16px 20px 6px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.portal-brand { margin: 0; font-family: var(--display); font-size: 26px; line-height: 1.1; }
.me-mini { display: flex; gap: 12px; align-items: center; font-size: 14px; }
.portal-nav { max-width: 1080px; margin: 0 auto; padding: 0 12px; display: flex; overflow-x: auto; scrollbar-width: none; }
.portal-main { flex: 1; width: 100%; max-width: 1080px; margin: 0 auto; padding: 28px 20px 60px; }
.portal-foot { text-align: center; color: var(--muted); font-size: 13px; padding: 24px 16px 32px; }
.hero { padding: 12px 0 4px; }
.hero-note { font-size: 17px; max-width: 62ch; white-space: pre-line; margin: 12px 0 0; }
.quote-block { padding: 26px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.quote { font-family: var(--display); font-size: clamp(24px, 4vw, 34px); line-height: 1.2; margin: 0; }

.review { display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: 40px; padding: 30px 0; border-top: 1px solid var(--line); scroll-margin-top: 130px; }
.review.tall { grid-template-columns: minmax(0, 340px) minmax(0, 1fr); }
@media (max-width: 820px) { .review, .review.tall { grid-template-columns: 1fr; gap: 20px; } }
.review-media { position: relative; }
.review-title { font-family: var(--display); font-weight: 500; font-size: clamp(26px, 4vw, 36px); line-height: 1.1; margin: 0 0 8px; }
.review .meta { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 14px; color: var(--muted); margin: 0 0 8px; }
.review .meta b { color: var(--ink); }
.review .caption { white-space: pre-line; max-width: 60ch; margin: 0; }
.decision { margin-top: 24px; padding: 20px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; max-width: 560px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.decision > * { max-width: 100%; }
.decision .stack { width: 100%; }
.decision .ask { margin: 0; color: var(--muted); }
.stamp { position: absolute; left: 50%; top: 45%; transform: translate(-50%, -50%) rotate(-8deg); font-family: var(--display); font-style: italic; font-size: 40px; color: var(--ok); border: 3px double var(--ok); border-radius: 8px; padding: 6px 22px 10px; background: rgba(255,255,255,.92); pointer-events: none; }

.defs { margin: 0; display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 10px 20px; }
.defs dt { font-weight: 600; font-size: 14px; color: var(--muted); }
.defs dd { margin: 0; }
@media (max-width: 640px) { .defs { grid-template-columns: 1fr; } .defs dd { margin-bottom: 8px; } }
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.pillar p { margin: 0 0 4px; }
.pillar-pct { font-family: var(--display); font-size: 34px; color: var(--accent); line-height: 1; }
.bar { height: 6px; background: var(--accent-soft); border-radius: 3px; margin-top: 8px; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--accent); }
.plain { margin: 0; padding-left: 18px; } .plain li { margin: 4px 0; }
.qa { display: flex; flex-direction: column; gap: 22px; }
.qa-item p { margin: 0; }
.qa-q { font-weight: 600; margin-bottom: 4px !important; }
.qa-a { white-space: pre-line; }
.qa-l { background: var(--accent-soft); padding: 10px 14px; border-radius: 8px; margin-top: 8px !important; font-size: 14px; }
.qa-l .eyebrow { display: block; }
.journey { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.journey-step p { margin: 0 0 4px; }
.palette { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 16px; }
.pal p { margin: 0; }
.pal-sw { display: block; aspect-ratio: 1; border-radius: 10px; border: 1px solid var(--line); margin-bottom: 8px; }
.keywords { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.keywords p { margin: 0; }
.sample { font-family: var(--display); font-size: 30px; margin: 0 0 12px; }
.money { font-weight: 700; margin: 0; white-space: nowrap; }

/* ---------- projetos, tarefas, calendário ---------- */
.page.wide { max-width: none; }
.small { font-size: 12px; } .nowrap { white-space: nowrap; } .cap { text-transform: capitalize; }
.late { color: var(--adj) !important; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.status-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: #EFEAE7; white-space: nowrap; }
.person { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; white-space: nowrap; }
.avatar.xs { width: 20px; height: 20px; font-size: 10px; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.check.wide { grid-column: 1 / -1; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.row-btn { width: 100%; border: 0; background: none; text-align: left; cursor: pointer; font: inherit; color: inherit; }
.row-btn:hover { background: var(--bg); border-radius: 6px; }
.modal-lg { width: min(760px, 100%); }
.client-card .bar { margin-top: 10px; }
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 1fr); gap: 14px; overflow-x: auto; padding-bottom: 12px; align-items: start; }
.board-col { background: #EFE8E4; border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 8px; min-height: 120px; }
.board-col.droppable { outline: 2px dashed var(--line); }
.board-head { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; padding: 4px 4px 6px; }
.board-head .muted { margin-left: auto; font-weight: 500; }
.task-card { background: var(--paper); border-radius: 10px; padding: 10px 12px; box-shadow: var(--shadow); cursor: pointer; display: flex; flex-direction: column; gap: 6px; border: 1px solid transparent; }
.task-card:hover { border-color: var(--accent); }
.task-card p { margin: 0; }
.task-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.mini-select { min-height: 30px !important; padding: 2px 8px !important; font-size: 12px !important; width: auto !important; align-self: flex-start; }
.add-task { border: 1px dashed transparent; background: none; color: var(--muted); padding: 8px; border-radius: 8px; cursor: pointer; text-align: left; font-size: 14px; }
.add-task:hover { border-color: var(--line); color: var(--ink); background: var(--paper); }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--line); gap: 1px; }
.cal-dow { background: var(--paper); padding: 8px; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.cal-day { background: var(--paper); min-height: 112px; padding: 6px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cal-day.out { background: #FBF9F7; } .cal-day.out .cal-num { color: #C9BFBA; }
.cal-num { font-size: 13px; font-weight: 600; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; }
.cal-day.today .cal-num { background: var(--accent); color: #fff; }
.cal-item { border: 0; text-align: left; font-size: 12px; padding: 2px 6px; border-radius: 4px; background: color-mix(in srgb, var(--c) 14%, white); border-left: 3px solid var(--c); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; color: var(--ink); }
.cal-item.done { opacity: .5; text-decoration: line-through; }
@media (max-width: 760px) { .cal-day { min-height: 76px; } .cal-item { font-size: 10px; padding: 1px 3px; } .cal-dow { padding: 6px 2px; font-size: 10px; text-align: center; } }

.gcal { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; height: min(78vh, 900px); min-height: 520px; }
.gcal iframe { width: 100%; height: 100%; border: 0; display: block; }


/* =====================================================================
   DESIGN SYSTEM LITUS — componentes
   ===================================================================== */
body { font-size: 15px; }
.display { font-weight: 400; font-size: clamp(30px, 4vw, 40px); letter-spacing: -0.005em; }
.subtitle { font-family: var(--italic); font-style: italic; font-weight: 500; color: var(--rose); margin: 4px 0 0; }
.page-sub { color: var(--muted); margin: 6px 0 0; font-size: 14px; }
.date-line { font-size: 13px; color: var(--muted); margin: 0 0 4px; }
.eyebrow { color: var(--faint); letter-spacing: .1em; }
h2 { font-family: var(--display); font-weight: 400; font-size: 20px; }
.card-head h2 { font-size: 19px; }

.btn { border-radius: 8px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); font-weight: 500; }
.btn:hover { border-color: var(--ink); }
.btn-primary { background: var(--brand-navy); border-color: var(--brand-navy); color: #fff; }
.btn-primary:hover { filter: none; background: #1d4b70; }
.btn-secondary { background: var(--brand-beige); border-color: var(--line); color: var(--ink); }
.btn-rose { background: var(--brand-rose); border-color: var(--brand-rose); color: #fff; }
.btn-rose:hover { background: #a85f6a; }
.btn-google { background: var(--brand-navy); color: #fff; border: 0; }
.btn-google:hover { background: #1d4b70; }
.btn-google svg { background: #fff; border-radius: 50%; padding: 2px; width: 20px; height: 20px; }

input:not([type=checkbox]):not([type=color]):not([type=file]), select, textarea {
  background: var(--brand-offwhite); border: 1px solid var(--line); border-radius: 8px;
}
input:focus, select:focus, textarea:focus { border-color: var(--brand-navy); box-shadow: 0 0 0 3px var(--accent-soft); }
.field-label { color: var(--rose); font-weight: 600; font-size: 13px; }

.badge { background: var(--info-bg); color: var(--info); font-weight: 600; }
.badge-muted { background: #EEE8E2; color: var(--muted); }
.seg { background: var(--brand-offwhite); border: 1px solid var(--line); }
.seg button[aria-selected=true] { background: var(--brand-navy); color: #fff; box-shadow: none; }
.tab.active { border-bottom-color: var(--rose); }
.card { border-color: var(--line-soft); border-radius: var(--radius); box-shadow: none; }
.card-beige { background: var(--brand-beige); border-color: var(--line); }
.client-card { border-color: var(--line-soft); box-shadow: none; }
.client-card:hover { border-color: var(--line); background: #FFFDFB; }
.pill { background: var(--rose); }
.bar { background: var(--line-soft); } .bar span { background: var(--brand-navy); }
.toast { background: var(--brand-navy); }

/* ---------- login com curvas topográficas ---------- */
.login { position: relative; overflow: hidden; background: var(--brand-offwhite); }
.login::before { content: ""; position: absolute; inset: -10%; background: url("./topo.svg") center / 900px auto repeat; opacity: .55; pointer-events: none; }
.login.equipe::before { background-image: url("./topo-navy.svg"); }
.login-wrap { position: relative; width: min(400px, 100%); text-align: center; }
.login-brand { font-family: var(--display); font-size: 46px; line-height: 1; color: var(--brand-navy); margin: 0; font-weight: 400; }
.login.equipe .login-brand { color: var(--rose); }
.login-wrap .subtitle { color: var(--brand-navy); margin: 6px 0 4px; }
.login.equipe .login-wrap .subtitle { color: var(--rose); }
.login-hint { font-size: 12px; color: var(--muted); margin: 0 0 14px; }
.login-card { text-align: left; border-color: var(--line-soft); box-shadow: 0 10px 40px rgba(22,59,88,.06); padding: 28px 28px 30px; border-radius: 12px; margin-top: 18px; }
.login .seg { display: flex; width: 170px; margin: 0 auto 22px; border-radius: 999px; padding: 3px; }
.login .seg button { border-radius: 999px; padding: 5px 12px; font-size: 13px; }
.login .seg button.t-cliente[aria-selected=true] { background: var(--rose); }
.login .seg button.t-equipe[aria-selected=true] { background: var(--brand-navy); }
.login .link { display: block; margin: 0 auto; font-size: 12px; }
.login .link.right { margin: -4px 0 0 auto; }

/* ---------- casca: menu e barra superior ---------- */
.shell { grid-template-columns: 232px minmax(0, 1fr); }
.sidebar { background: #FFFDFB; border-right: 1px solid var(--line-soft); padding: 22px 16px 14px; gap: 10px; }
.logo { display: inline-flex; align-items: flex-start; text-decoration: none; color: var(--rose); padding: 0 4px 14px; border-bottom: 1px solid var(--line-soft); margin-bottom: 4px; }
.logo img { height: 38px; width: auto; }
.logo-word { font-family: var(--display); font-size: 36px; line-height: .9; letter-spacing: -.01em; }
.logo-studio { font-size: 10px; letter-spacing: .12em; margin-left: 2px; font-weight: 600; }
.nav-group { font-family: var(--italic); font-style: italic; font-weight: 500; color: var(--rose); font-size: 18px; margin: 12px 4px 4px; text-transform: none; letter-spacing: 0; }
.nav-item { gap: 10px; padding: 6px 8px; font-weight: 400; font-size: 14px; color: var(--ink); border-radius: 8px; }
.nav-item .ring { width: 13px; height: 13px; border-radius: 50%; border: 1.3px solid var(--ink); flex: none; }
.nav-item:hover { background: var(--brand-offwhite); }
.nav-item.active { background: var(--rose-soft); font-weight: 600; }
.nav-item.active .ring { background: var(--rose); border-color: var(--rose); }
.nav-item.sub { padding-left: 30px; font-size: 13px; color: var(--muted); }
.nav-bottom { border-top: 1px solid var(--line-soft); padding-top: 10px; display: flex; flex-direction: column; gap: 2px; }
.main { display: flex; flex-direction: column; min-height: 100vh; }
.topbar { display: flex; align-items: center; gap: 12px; padding: 12px clamp(16px, 3vw, 32px); background: #FFFDFB; border-bottom: 1px solid var(--line-soft); position: sticky; top: 0; z-index: 10; }
.topbar .menu-btn { display: none; }
.topbar-title { display: none; }
.search-wrap { position: relative; flex: 1; max-width: 420px; }
.search-wrap input { min-height: 36px !important; padding: 6px 12px 6px 32px !important; font-size: 13px !important; background: var(--brand-offwhite) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%2336566B' stroke-width='2' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") 10px center no-repeat !important; }
.search-results { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: var(--paper); border: 1px solid var(--line-soft); border-radius: 10px; box-shadow: 0 12px 30px rgba(22,59,88,.1); padding: 6px; z-index: 40; max-height: 60vh; overflow: auto; }
.search-results a { display: flex; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: 6px; text-decoration: none; font-size: 14px; }
.search-results a:hover, .search-results a.on { background: var(--brand-offwhite); }
.search-results .kind { font-size: 11px; color: var(--faint); text-transform: uppercase; letter-spacing: .06em; }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.bell { position: relative; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--rose); text-decoration: none; }
.bell:hover { background: var(--brand-offwhite); }
.bell .dot { position: absolute; top: 6px; right: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--rose); border: 2px solid #FFFDFB; }
.avatar { background: var(--brand-beige); color: var(--ink); }
.content { padding: 28px clamp(16px, 3vw, 40px) 80px; max-width: 1280px; width: 100%; }
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .topbar .menu-btn { display: inline-grid; place-items: center; }
  .search-wrap { max-width: none; }
}

/* ---------- indicadores do Space ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat { background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 14px 16px; text-decoration: none; display: block; }
.stat:hover { border-color: var(--line); }
.stat-label { font-size: 13px; color: var(--muted); margin: 0; }
.stat-value { font-family: var(--italic); font-style: italic; font-weight: 600; font-size: 26px; margin: 4px 0 0; color: var(--ink); line-height: 1.1; }
.stat-sub { font-size: 12px; color: var(--faint); margin: 2px 0 0; }
@media (max-width: 820px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.agenda-list { list-style: none; margin: 0; padding: 0; }
.agenda-list li { padding: 9px 0; border-top: 1px solid var(--line-soft); }
.agenda-list li:first-child { border-top: 0; }
.agenda-list p { margin: 0; }
.mini-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.mini-card { border: 1px solid var(--line-soft); border-radius: 10px; padding: 12px; text-decoration: none; display: flex; flex-direction: column; gap: 4px; }
.mini-card:hover { border-color: var(--line); }
.mini-card p { margin: 0; }
.card-link { font-size: 13px; color: var(--muted); text-decoration: none; }
.card-link:hover { color: var(--rose); }

/* ---------- tabelas ---------- */
.table-wrap { background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--radius); overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; background: var(--surface-soft); padding: 10px 14px; white-space: nowrap; }
.table.blue th { background: var(--brand-lightblue); color: var(--ink); }
.table td { padding: 12px 14px; border-top: 1px solid var(--line-soft); vertical-align: middle; }
.table tr.click { cursor: pointer; }
.table tr.click:hover td { background: #FFFBF7; }
.table td.strong { font-weight: 600; }
.table .row-sub { margin: 2px 0 0; }

/* ---------- detalhe com lateral ---------- */
.detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px); gap: 16px; align-items: start; }
@media (max-width: 900px) { .detail { grid-template-columns: 1fr; } }
.kv { display: flex; flex-direction: column; gap: 0; margin: 0; }
.kv > div { padding: 9px 0; border-top: 1px solid var(--line-soft); }
.kv > div:first-child { border-top: 0; }
.kv dt { font-size: 12px; color: var(--faint); }
.kv dd { margin: 2px 0 0; font-size: 14px; }

/* ---------- em construção / equipe ---------- */
.building { background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 48px 20px; text-align: center; }
.building .plus { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); display: inline-grid; place-items: center; color: var(--muted); font-size: 20px; margin-bottom: 10px; }
.building p { margin: 0; }
.building .t { font-family: var(--display); font-size: 20px; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.team-card { background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 6px; text-decoration: none; }
.team-card:hover { border-color: var(--line); }
.team-card p { margin: 0; }
.team-card .avatar { width: 44px; height: 44px; }

.card-blue { background: #DCE7EF; border-color: #C3D5E2; }
.kv-grid { gap: 14px 24px; }
.kv-grid dt { font-size: 12px; color: var(--muted); margin: 0; }
.kv-grid dd { margin: 2px 0 0; font-size: 14px; word-break: break-word; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 12px; padding: 9px 0; border-top: 1px solid #C3D5E2; }
.timeline li:first-child { border-top: 0; }
.timeline p { margin: 0; }
.badge-info { background: var(--info-bg); color: var(--info); }
.badge-ok { background: var(--ok-bg); color: var(--ok); }
.badge-pend { background: var(--pend-bg); color: var(--pend); }
.badge-adj { background: var(--adj-bg); color: var(--adj); }

.logo img { height: 40px; width: auto; display: block; }

/* Acessos da equipe */
.section-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.section-head h2 { margin: 0 0 4px; }
.section-head p { margin: 0; }
.btn.btn-danger { background: var(--adj); border-color: var(--adj); color: #fff; }
.btn.btn-danger-ghost { color: var(--adj); background: transparent; }
.btn.btn-danger-ghost:hover { border-color: var(--adj); background: var(--adj-bg); }

/* Faixa: ligar pop-ups */
.notify-banner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--brand-rose, #B76E79); border-radius: var(--radius); padding: 12px 16px; margin-bottom: 20px; }
.notify-banner p { margin: 0; font-size: 14px; flex: 1 1 320px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--brand-rose); font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }

/* =================== Portal da cliente (design system) =================== */
.portal { background: var(--brand-offwhite); }
.portal-head { background: rgba(248,245,241,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line-soft); }
.portal-head-in { max-width: 980px; padding: 12px 20px 4px; align-items: center; }
.portal-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.portal-logo img { height: 34px; width: auto; display: block; }
.portal-x { color: var(--muted); font-size: 13px; padding-left: 12px; border-left: 1px solid var(--line); white-space: nowrap; }
.portal-me { display: flex; align-items: center; gap: 12px; }
.portal-av { width: 34px; height: 34px; border-radius: 50%; background: var(--brand-navy); color: #fff; display: grid; place-items: center; font-family: var(--display); font-size: 18px; flex-shrink: 0; }
.portal-tabs { max-width: 980px; margin: 0 auto; padding: 0 12px; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.portal-tabs::-webkit-scrollbar { display: none; }
.ptab { padding: 10px 14px 12px; color: var(--muted); text-decoration: none; font-size: 14px; border-bottom: 2px solid transparent; white-space: nowrap; }
.ptab:hover { color: var(--ink); }
.ptab.active { color: var(--ink); font-weight: 600; border-bottom-color: var(--rose); }
.portal-main { max-width: 980px; padding: 32px 20px 64px; }
.phead { display: grid; gap: 6px; max-width: 660px; }
.psub { margin: 0; font-family: var(--italic); font-style: italic; color: var(--rose); font-size: 15px; }
.pback { font-size: 14px; font-weight: 600; color: var(--ink); text-decoration: none; margin-bottom: 10px; justify-self: start; }
.pback:hover { text-decoration: underline; }
.pintro { margin: 4px 0 0; }
.greet { display: flex; align-items: center; gap: 16px; }
.greet-av { width: 56px; height: 56px; border-radius: 50%; background: var(--brand-navy); color: #fff; display: grid; place-items: center; font-family: var(--display); font-size: 28px; flex-shrink: 0; box-shadow: 0 0 0 3px var(--brand-offwhite), 0 0 0 5px var(--rose); }
.greet .muted { margin: 4px 0 0; }
.phase-card { background: var(--paper); border: 1px solid var(--line-soft); border-radius: 16px; padding: 18px 20px; display: grid; gap: 12px; }
.phase-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.phase-row .eyebrow { margin: 0; }
.phase-row b { font-family: var(--display); font-weight: 400; font-size: 22px; color: var(--ink); }
.phase-track { height: 6px; background: var(--brand-beige); border-radius: 6px; overflow: hidden; }
.phase-track i { display: block; height: 100%; background: var(--rose); border-radius: 6px; }
.phase-card p { margin: 0; }
.phase-stats { display: flex; gap: 28px; flex-wrap: wrap; padding-top: 12px; border-top: 1px solid var(--line-soft); }
.phase-stats .eyebrow { margin: 0; display: block; }
.phase-stats b { font-family: var(--display); font-weight: 400; font-size: 22px; }
.tilegrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 640px) { .tilegrid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ptile { position: relative; min-height: 104px; border-radius: 16px; padding: 16px; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; text-decoration: none; overflow: hidden; transition: transform .15s; }
.ptile:hover { transform: translateY(-2px); }
.ptile-t { font-family: var(--display); font-size: 20px; line-height: 1.1; }
.ptile-s { font-size: 12px; opacity: .88; }
.ptile-badge { position: absolute; top: 10px; right: 10px; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: rgba(255,255,255,.4); }
.tile-navy { background: var(--brand-navy); color: #fff; }
.tile-navy2 { background: #2A4D6C; color: #fff; }
.tile-rose { background: var(--rose); color: #fff; }
.tile-ink { background: #36566B; color: #fff; }
.tile-beige { background: var(--brand-beige); color: var(--ink); }
.tile-beige .ptile-badge { background: var(--rose); color: #fff; }
.tile-blue { background: var(--brand-lightblue); color: var(--ink); }
.tile-off { background: var(--paper); color: var(--ink); border: 1px solid var(--line); }
.psec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.link-more { font-size: 13px; color: var(--rose); font-weight: 600; text-decoration: none; white-space: nowrap; }
.link-more:hover { text-decoration: underline; }
.plist { display: grid; gap: 8px; }
.prow { display: flex; align-items: center; gap: 14px; background: var(--paper); border: 1px solid var(--line-soft); border-radius: 14px; padding: 12px 16px; text-decoration: none; color: inherit; }
a.prow:hover { border-color: var(--line); }
.prow-thumb { width: 42px; height: 42px; border-radius: 10px; background: linear-gradient(135deg, var(--brand-beige), var(--rose)); flex-shrink: 0; }
.prow-info { display: grid; gap: 2px; min-width: 0; flex: 1; }
.prow-info b { font-weight: 600; font-size: 15px; }
.prow-info span { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pdot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.pdate { width: 46px; flex-shrink: 0; text-align: center; display: grid; line-height: 1.1; }
.pdate b { font-family: var(--display); font-weight: 400; font-size: 22px; }
.pdate span { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.journey-line { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: relative; }
.journey-line::before { content: ""; position: absolute; left: 0; right: 0; top: 17px; height: 2px; background: var(--brand-beige); }
.journey-line li { position: relative; display: grid; gap: 6px; padding-right: 12px; min-width: 0; align-content: start; }
.journey-line h3 { font-family: var(--display); font-weight: 400; font-size: 20px; margin: 0; }
.journey-line p { font-size: 13px; color: var(--muted); margin: 0; }
.jdot { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-size: 18px; background: var(--brand-offwhite); border: 2px solid var(--brand-beige); color: var(--muted); position: relative; }
.journey-line .done .jdot { background: var(--brand-navy); border-color: var(--brand-navy); color: #fff; }
.journey-line .current .jdot { border-color: var(--rose); color: var(--rose); box-shadow: 0 0 0 5px rgba(183,110,121,.14); }
.jtag { justify-self: start; font-size: 11px; font-weight: 700; letter-spacing: .05em; padding: 2px 9px; border-radius: 999px; }
.jtag.ok { background: var(--brand-navy); color: #fff; }
.jtag.go { background: var(--rose); color: #fff; }
.jtag.next { background: var(--brand-beige); color: var(--ink); }
@media (max-width: 760px) {
  .journey-line { grid-template-columns: 1fr; gap: 18px; }
  .journey-line::before { left: 17px; right: auto; top: 8px; bottom: 8px; width: 2px; height: auto; }
  .journey-line li { grid-template-columns: 36px 1fr; column-gap: 14px; padding: 0; }
  .journey-line li > *:not(.jdot) { grid-column: 2; }
  .journey-line .jdot { grid-row: 1 / span 3; }
}
.todo-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 28px; align-items: start; }
@media (max-width: 780px) { .todo-grid { grid-template-columns: 1fr; } }
.pchecks { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.pchecks label { display: flex; gap: 12px; align-items: flex-start; background: var(--paper); border: 1px solid var(--line-soft); border-radius: 12px; padding: 12px 14px; cursor: pointer; }
.pchecks input { width: 19px; height: 19px; accent-color: var(--brand-navy); margin-top: 2px; flex-shrink: 0; }
.pchecks span { display: grid; gap: 2px; }
.pchecks b { font-weight: 500; }
.pchecks small { color: var(--muted); font-size: 13px; }
.pchecks label.done b { text-decoration: line-through; color: var(--muted); }
.pcta { background: var(--brand-navy); color: #fff; border-radius: 4px 32px 4px 32px; padding: 24px; display: grid; gap: 12px; }
.pcta h3 { font-family: var(--display); font-weight: 400; font-size: 24px; margin: 0; color: #fff; }
.pcta .btn { justify-self: start; background: var(--brand-offwhite); color: var(--ink); border-color: var(--brand-offwhite); }
.cal-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.cal-legend span { display: flex; align-items: center; gap: 6px; }
.cal-legend i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.pcal { background: var(--paper); border: 1px solid var(--line-soft); border-radius: 16px; padding: 16px; }
.pcal-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.pcal-nav h3 { font-family: var(--display); font-weight: 400; font-size: 22px; margin: 0; }
.pcal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.pcal-dow { font-size: 11px; letter-spacing: .06em; color: var(--muted); text-align: center; font-weight: 700; padding-bottom: 6px; text-transform: uppercase; }
.pcal-cell { aspect-ratio: 1; border-radius: 10px; border: 1px solid transparent; background: var(--brand-offwhite); padding: 6px; display: flex; flex-direction: column; gap: 3px; min-width: 0; text-align: left; cursor: pointer; }
.pcal-cell .n { font-size: 13px; font-variant-numeric: tabular-nums; }
.pcal-cell .dots { display: flex; gap: 3px; flex-wrap: wrap; margin-top: auto; }
.pcal-cell .dots i { width: 6px; height: 6px; border-radius: 50%; }
.pcal-cell:hover { background: var(--brand-beige); }
.pcal-cell.today { border-color: var(--rose); }
.pcal-cell.sel { background: var(--brand-navy); color: #fff; border-color: var(--brand-navy); }
.fin-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.fin-summary > div { background: var(--paper); border: 1px solid var(--line-soft); border-radius: 14px; padding: 14px 16px; display: grid; gap: 4px; }
.fin-summary .eyebrow { margin: 0; }
.fin-summary b { font-family: var(--display); font-weight: 400; font-size: 26px; }
@media (max-width: 460px) { .fin-summary { grid-template-columns: 1fr; } .portal-x { display: none; } }
@media (min-width: 700px) { .pcal-cell { aspect-ratio: auto; min-height: 66px; } }
.portal .seg { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.portal .seg button { white-space: nowrap; }

/* =================== Briefing =================== */
.block-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; margin-bottom: 6px; }
.block-opt { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line-soft); border-radius: 10px; padding: 10px 12px; cursor: pointer; background: var(--paper); }
.block-opt.on { border-color: var(--brand-navy); background: var(--accent-soft); }
.block-opt input { margin-top: 3px; accent-color: var(--brand-navy); }
.block-opt span { display: grid; gap: 2px; }
.block-opt b { font-size: 14px; }
.block-opt small { font-size: 12px; color: var(--muted); }
.answers { margin: 0; padding-left: 22px; display: grid; gap: 16px; }
.answers .q { margin: 0; font-weight: 600; }
.answers .a { margin: 4px 0 0; }
.answers audio { margin-top: 8px; width: 100%; max-width: 420px; height: 36px; }
.brief-send { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.brief-send p { margin: 4px 0 0; }
.brief-cta { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: var(--rose); color: #fff; border-radius: 16px; padding: 16px 20px; text-decoration: none; }
.brief-cta > span:first-child { display: grid; gap: 2px; }
.brief-cta .psub { color: #fff; opacity: .9; }
.brief-cta b { font-family: var(--display); font-weight: 400; font-size: 22px; }
.brief-cta .btn { background: #fff; color: var(--ink); border-color: #fff; }
.bp { min-height: 100vh; background: var(--brand-offwhite); position: relative; }
.bp::before { content: ""; position: fixed; inset: 0; background: url("./topo.svg") center / 900px auto repeat; opacity: .25; pointer-events: none; }
.bp-in { position: relative; max-width: 560px; margin: 0 auto; padding: 32px 20px 64px; display: grid; gap: 16px; }
.bp-in.wide { max-width: 720px; }
.bp-logo { height: 40px; width: auto; justify-self: start; }
.bp-head { display: grid; gap: 10px; background: var(--paper); border: 1px solid var(--line-soft); border-radius: 18px; padding: 22px; }
.bp-head p { margin: 0; }
.bp-progress { display: flex; align-items: center; gap: 12px; }
.bp-progress .phase-track { flex: 1; }
.bp-erro { background: var(--adj-bg); color: var(--adj); border-radius: 10px; padding: 10px 14px; margin: 0; position: sticky; top: 8px; z-index: 5; }
.bp-sec { display: grid; gap: 12px; }
.bp-sec-t { font-family: var(--display); font-weight: 400; font-size: 26px; margin: 18px 0 0; }
.bp-q { background: var(--paper); border: 1px solid var(--line-soft); border-radius: 16px; padding: 16px 18px; display: grid; gap: 8px; }
.bp-q-t { font-weight: 600; display: flex; gap: 10px; align-items: baseline; }
.bp-n { flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--brand-beige); color: var(--ink); font-size: 12px; display: grid; place-items: center; font-weight: 700; }
.bp-help { margin: -4px 0 0 34px; }
.bp-q textarea { width: 100%; resize: vertical; padding: 10px 12px; }
.bp-q-foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.bp-q p { margin: 0; }
.bp-aviso { color: var(--adj); }
.ok-t { color: var(--ok); font-weight: 600; }
.rec-on { animation: recpulse 1.2s ease-in-out infinite; }
.rec-dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; display: inline-block; }
@keyframes recpulse { 50% { opacity: .75; } }
@media (prefers-reduced-motion: reduce) { .rec-on { animation: none; } }
.bp-send { display: grid; gap: 8px; justify-items: start; margin-top: 12px; }
.bp-send p { margin: 0; }
.month-nav { display: flex; align-items: center; gap: 8px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 2px 6px; }
.month-nav b { min-width: 130px; text-align: center; font-weight: 600; font-size: 14px; }
.table td.neg { color: var(--adj); }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* =================== Onboarding, Ideias, Serviços =================== */
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.clamp2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.filters .inline-form { margin-top: 0; }
.onb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.onb-card { background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 16px; display: grid; gap: 10px; text-decoration: none; }
.onb-card:hover { border-color: var(--line); }
.onb-card p { margin: 0; }
.onb-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.onb-steps li { display: flex; align-items: center; gap: 10px; padding: 7px 4px; border-bottom: 1px solid var(--line-soft); }
.onb-steps li:last-child { border-bottom: 0; }
.onb-steps label { display: flex; align-items: center; gap: 10px; flex: 1; cursor: pointer; }
.onb-steps input { width: 18px; height: 18px; accent-color: var(--brand-navy); }
.onb-steps li.done span:not(.small) { text-decoration: line-through; color: var(--muted); }
.kanban { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start; }
@media (max-width: 860px) { .kanban { grid-template-columns: 1fr; } }
.kcol { background: var(--surface-soft); border-radius: var(--radius); padding: 12px; display: grid; gap: 8px; }
.kcol h2 { font-size: 18px; margin: 0 0 4px; }
.kcard { background: var(--paper); border: 1px solid var(--line-soft); border-radius: 10px; padding: 12px; display: grid; gap: 6px; cursor: pointer; }
.kcard:hover { border-color: var(--line); }
.kcard p { margin: 0; }
.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.svc-card { background: var(--paper); border: 1px solid var(--line-soft); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.svc-card.off { opacity: .6; }
.svc-card .eyebrow { margin: 0; }
.svc-card .h-serif { margin: 0; }
.svc-card p { margin: 0; }
.svc-inc { margin: 4px 0; padding-left: 18px; font-size: 13px; columns: 2; column-gap: 18px; }
.svc-inc li { break-inside: avoid; margin-bottom: 2px; }
.svc-foot { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line-soft); }

/* =================== Documentos, Biblioteca, Instas, Configurações =================== */
.check-line { display: flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; }
.check-line.wide { grid-column: 1 / -1; }
.check-line input { width: 18px; height: 18px; accent-color: var(--brand-navy); }
.lib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.lib-card { display: flex; align-items: center; gap: 12px; background: var(--paper); border: 1px solid var(--line-soft); border-radius: 12px; padding: 12px 14px; cursor: pointer; }
.lib-card:hover { border-color: var(--line); }
.lib-card p { margin: 0; }
.lib-plat { width: 38px; height: 38px; border-radius: 10px; background: var(--brand-beige); color: var(--ink); display: grid; place-items: center; font-weight: 700; font-size: 13px; flex-shrink: 0; }
.insta-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.insta-card { background: var(--paper); border: 1px solid var(--line-soft); border-radius: 16px; padding: 18px; display: grid; gap: 10px; align-content: start; }
.insta-card p { margin: 0; }
.insta-card .h-serif { margin: 0; }
.insta-card .btn { justify-self: start; }
.insta-nums { display: flex; gap: 28px; }
.insta-nums > div { display: grid; gap: 2px; }
.insta-nums .eyebrow { margin: 0; }
.insta-nums b { font-family: var(--display); font-weight: 400; font-size: 28px; }
.neg-t { color: var(--adj); font-weight: 600; }
.insta-links { margin: 0; padding-left: 18px; font-size: 14px; }
.status-edit { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.status-edit li { display: flex; align-items: center; gap: 10px; }
.status-edit input[type=color] { width: 36px; height: 32px; padding: 0; border: 1px solid var(--line); border-radius: 6px; background: none; }
.status-edit input:not([type=color]) { max-width: 280px; }
.collab-task { flex-wrap: wrap; }
.collab-open { flex: 1; min-width: 0; background: none; border: 0; padding: 0; text-align: left; cursor: pointer; display: flex; }
.collab-task select { width: auto; min-width: 150px; }
.collab-body { flex-basis: 100%; border-top: 1px solid var(--line-soft); padding-top: 10px; display: grid; gap: 6px; font-size: 14px; }
.collab-body p { margin: 0; }

/* =================== Agendamento =================== */
.chip { border: 1px solid var(--line); background: var(--paper); color: var(--ink); border-radius: 999px; padding: 6px 12px; font-size: 13px; cursor: pointer; }
.chip:hover { border-color: var(--brand-navy); }
.chip.on { background: var(--brand-navy); border-color: var(--brand-navy); color: #fff; }
.chip.big { padding: 10px 18px; font-size: 15px; font-weight: 600; }
.slot-list { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 4px; }
.slot-list li { display: flex; gap: 12px; align-items: center; padding: 6px 10px; border-radius: 8px; background: var(--brand-offwhite); font-size: 14px; }
.slot-list li.warn { background: var(--pend-bg); color: var(--pend); }
.slot-list li .link-btn { margin-left: auto; }
.bp-head .btn { justify-self: start; }

/* =================== Ficha da cliente: foto, Da cliente =================== */
.client-title { display: flex; align-items: center; gap: 16px; }
.client-photo { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex-shrink: 0; display: grid; place-items: center; background: var(--brand-navy); color: #fff; font-family: var(--display); font-size: 28px; box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--rose); }
.client-photo.lg { width: 96px; height: 96px; font-size: 40px; }
.foto-edit { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.foto-edit .stack { flex: 1; min-width: 200px; }
.stars { margin: 0 0 4px; color: #C98A2E; letter-spacing: 2px; }
.stars span { color: var(--line); }
.break { word-break: break-all; }

/* =================== Projeto: etapa do fluxo e copys =================== */
.stage-card { display: grid; gap: 10px; margin-bottom: 18px; }
.stage-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.stage-head select { min-width: 280px; width: auto; }
.stage-track { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.stage-track li { flex: 1; height: 6px; border-radius: 6px; background: var(--brand-beige); }
.stage-track li.done { background: var(--brand-navy); }
.stage-track li.now { background: var(--rose); }
.stage-card p { margin: 0; }
.copy-hook { margin: 4px 0 0; font-style: italic; }
.copy-old { margin-top: 10px; background: var(--surface-soft); }
.copy-old .label:first-child { margin-top: 0; }
.wf-edit { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.wf-edit li { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 0; border-bottom: 1px solid var(--line-soft); }
.wf-n { width: 26px; height: 26px; border-radius: 50%; background: var(--brand-beige); display: grid; place-items: center; font-size: 12px; font-weight: 700; flex-shrink: 0; }
.wf-fields { flex: 1; min-width: 220px; display: grid; gap: 6px; }
.wf-vis { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.wf-act { display: flex; gap: 2px; }

/* =================== Envio de material =================== */
.dropzone { display: grid; place-items: center; gap: 2px; text-align: center; border: 1.5px dashed var(--line); border-radius: 12px; padding: 22px 16px; cursor: pointer; background: var(--paper); }
.dropzone:hover { border-color: var(--brand-navy); }
.file-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.file-list li { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 8px; background: var(--surface-soft); font-size: 14px; min-width: 0; }
.file-list .grow { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.upload-prog { display: grid; gap: 6px; font-size: 14px; }

/* =================== Portal v2 =================== */
.pbell { position: relative; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: var(--ink); text-decoration: none; }
.pbell:hover { background: var(--surface-soft); }
.pbell-n { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--rose); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.portal-av { text-decoration: none; overflow: hidden; }
.portal-av img { width: 100%; height: 100%; object-fit: cover; }
.hero { display: flex; align-items: center; gap: 18px; }
.hero > div { display: grid; gap: 2px; min-width: 0; }
.hero a { text-decoration: none; justify-self: start; }
.hero-av { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; flex-shrink: 0; display: grid; place-items: center; background: var(--brand-navy); color: #fff; font-family: var(--display); font-size: 36px; box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--rose); }
@media (max-width: 460px) { .hero-av { width: 64px; height: 64px; font-size: 28px; } }
.welcome { background: var(--paper); border: 1px solid var(--line-soft); border-left: 4px solid var(--rose); border-radius: 4px 24px 24px 4px; padding: 20px 22px; display: grid; gap: 12px; }
.welcome p { margin: 0; }
.welcome-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.welcome-t { font-family: var(--display); font-weight: 400; font-size: 26px; line-height: 1.15; }
.combinados { background: var(--surface-soft); border-radius: 14px; padding: 14px 16px; }
.combinados .eyebrow { margin-bottom: 8px; }
.combinados ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: 14px; }
.welcome-sign { font-family: var(--italic); font-style: italic; color: var(--rose); }
.welcome.closed { gap: 10px; }
.phase-link { text-decoration: none; color: inherit; }
.phase-link:hover { border-color: var(--line); }
.tilegrid-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .tilegrid-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.seg .seg-link { padding: 7px 14px; border-radius: 7px; font-size: 14px; font-weight: 500; color: var(--muted); text-decoration: none; white-space: nowrap; }
.seg .seg-link[aria-selected=true] { background: var(--brand-navy); color: #fff; font-weight: 600; }
.igrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; border-radius: 12px; overflow: hidden; }
.igrid-item { position: relative; aspect-ratio: 4 / 5; background: var(--surface-soft); display: block; overflow: hidden; }
.igrid-item img, .igrid-item video { width: 100%; height: 100%; object-fit: cover; display: block; }
.igrid-item:hover img, .igrid-item:hover video { opacity: .9; }
.igrid-ph { position: absolute; inset: 0; display: grid; place-items: center; padding: 10px; text-align: center; font-size: 12px; color: var(--muted); background: linear-gradient(135deg, var(--brand-beige), var(--surface-soft)); }
.igrid-ic { position: absolute; top: 6px; right: 8px; color: #fff; font-size: 14px; text-shadow: 0 1px 3px rgba(0,0,0,.5); }
.igrid-tag { position: absolute; left: 6px; bottom: 6px; background: rgba(22,59,88,.85); color: #fff; font-size: 10px; font-weight: 600; padding: 2px 7px; border-radius: 999px; }
.iprofile { display: flex; align-items: center; gap: 18px; }
.iprofile > div { display: grid; gap: 6px; justify-items: start; }
.iprofile p { margin: 0; }
.feedback { display: grid; gap: 8px; }
.feedback .psub, .feedback .h-serif { margin: 0; }
.stars-pick { display: flex; align-items: center; gap: 2px; }
.stars-pick button { background: none; border: 0; font-size: 28px; line-height: 1; color: var(--line); cursor: pointer; padding: 2px; }
.stars-pick button.on { color: #C98A2E; }
.stars-pick span { margin-left: 8px; }
.jv { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; position: relative; }
.jv::before { content: ""; position: absolute; left: 17px; top: 12px; bottom: 12px; width: 2px; background: var(--brand-beige); }
.jv li { display: grid; grid-template-columns: 36px 1fr; gap: 14px; padding: 8px 0 14px; position: relative; }
.jv li > div { display: grid; gap: 4px; justify-items: start; }
.jv h3 { font-family: var(--display); font-weight: 400; font-size: 21px; margin: 0; }
.jv p { margin: 0; font-size: 14px; color: var(--muted); }
.jv .done .jdot { background: var(--brand-navy); border-color: var(--brand-navy); color: #fff; }
.jv .current .jdot { border-color: var(--rose); color: var(--rose); box-shadow: 0 0 0 5px rgba(183,110,121,.14); background: var(--paper); }
.jv .next h3 { color: var(--muted); }

/* =================== Modo escuro (portal da cliente) =================== */
html[data-theme=dark] {
  --bg: #121C25; --paper: #1A2733; --surface: #24343F; --surface-soft: #1F2E3A;
  --ink: #EEE6DD; --muted: #B3BFC8; --faint: #8796A2; --line: #33485A; --line-soft: #2A3C4B;
  --accent: #A9C4D6; --accent-ink: #121C25; --accent-soft: #24343F;
  --brand-offwhite: #121C25; --brand-beige: #33485A;
  --ok-bg: #1E3A2D; --ok: #8FD0AE; --pend-bg: #3A3220; --pend: #E8C77A; --adj-bg: #3E2328; --adj: #F0A4AE; --info-bg: #22384A; --info: #A9C4D6;
  --shadow: none; color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  html[data-theme=auto] {
    --bg: #121C25; --paper: #1A2733; --surface: #24343F; --surface-soft: #1F2E3A;
    --ink: #EEE6DD; --muted: #B3BFC8; --faint: #8796A2; --line: #33485A; --line-soft: #2A3C4B;
    --accent: #A9C4D6; --accent-ink: #121C25; --accent-soft: #24343F;
    --brand-offwhite: #121C25; --brand-beige: #33485A;
    --ok-bg: #1E3A2D; --ok: #8FD0AE; --pend-bg: #3A3220; --pend: #E8C77A; --adj-bg: #3E2328; --adj: #F0A4AE; --info-bg: #22384A; --info: #A9C4D6;
    --shadow: none; color-scheme: dark;
  }
}
html[data-theme=dark] .portal-head { background: rgba(18,28,37,.94); }
html[data-theme=dark] .logo-img, html[data-theme=dark] .bp-logo { filter: brightness(0) invert(.92); }
html[data-theme=dark] .tile-beige { background: #3A4E5E; color: var(--ink); }
html[data-theme=dark] .tile-blue { background: #4F7189; color: #fff; }
html[data-theme=dark] .tile-off { background: var(--paper); }
html[data-theme=dark] .seg { background: var(--paper); }
html[data-theme=dark] .seg button[aria-selected=true], html[data-theme=dark] .seg .seg-link[aria-selected=true] { background: var(--brand-lightblue); color: #121C25; }
html[data-theme=dark] .pcal-cell.sel, html[data-theme=dark] .chip.on { background: var(--brand-lightblue); border-color: var(--brand-lightblue); color: #121C25; }
html[data-theme=dark] .jv .done .jdot, html[data-theme=dark] .jtag.ok { background: var(--brand-lightblue); border-color: var(--brand-lightblue); color: #121C25; }
html[data-theme=dark] .pcta .btn { background: var(--paper); color: var(--ink); border-color: var(--paper); }
html[data-theme=dark] .btn-primary, html[data-theme=dark] .btn-primary:hover { background: var(--brand-lightblue); border-color: var(--brand-lightblue); color: #121C25; }
html[data-theme=dark] .badge-muted { background: var(--surface); color: var(--muted); }
html[data-theme=dark] input:not([type=checkbox]):not([type=radio]):not([type=color]), html[data-theme=dark] select, html[data-theme=dark] textarea { background: var(--bg); color: var(--ink); border-color: var(--line); }
@media (prefers-color-scheme: dark) {
  html[data-theme=auto] .portal-head { background: rgba(18,28,37,.94); }
  html[data-theme=auto] .logo-img { filter: brightness(0) invert(.92); }
  html[data-theme=auto] .tile-beige { background: #3A4E5E; color: var(--ink); }
  html[data-theme=auto] .tile-blue { background: #4F7189; color: #fff; }
  html[data-theme=auto] .seg { background: var(--paper); }
  html[data-theme=auto] .seg button[aria-selected=true], html[data-theme=auto] .seg .seg-link[aria-selected=true] { background: var(--brand-lightblue); color: #121C25; }
  html[data-theme=auto] .pcal-cell.sel, html[data-theme=auto] .chip.on { background: var(--brand-lightblue); border-color: var(--brand-lightblue); color: #121C25; }
  html[data-theme=auto] .jv .done .jdot, html[data-theme=auto] .jtag.ok { background: var(--brand-lightblue); border-color: var(--brand-lightblue); color: #121C25; }
  html[data-theme=auto] .pcta .btn { background: var(--paper); color: var(--ink); border-color: var(--paper); }
  html[data-theme=auto] .btn-primary, html[data-theme=auto] .btn-primary:hover { background: var(--brand-lightblue); border-color: var(--brand-lightblue); color: #121C25; }
  html[data-theme=auto] .badge-muted { background: var(--surface); color: var(--muted); }
  html[data-theme=auto] input:not([type=checkbox]):not([type=radio]):not([type=color]), html[data-theme=auto] select, html[data-theme=auto] textarea { background: var(--bg); color: var(--ink); border-color: var(--line); }
}
.igrid { max-width: 620px; }
.feedback form .btn, .welcome .btn { width: auto; }
.feedback form > .btn, .dropzone + * { align-self: flex-start; }
.brief-cta .btn { color: #163B58; }
.igrid-tag { white-space: nowrap; }
.bell-n { position: absolute; top: -1px; right: -3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--rose); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; border: 2px solid #FFFDFB; line-height: 1; }
.zap-msg { background: var(--surface-soft); border-radius: 10px; padding: 12px 14px; font-size: 14px; margin: 10px 0; }
.btn-zap, .btn-zap:hover { background: #1F7A4D; border-color: #1F7A4D; color: #fff; }
