/* Sistema Vitta — temas Creme (claro) e Café (escuro): vidro, fundo ambiente e movimento. */

/* ---------- Tokens: Creme (padrão) ---------- */
:root {
  --bg:#EFE6DA; --glass:rgba(255,252,247,.6); --glass-hover:rgba(255,252,247,.72); --glass-border:rgba(120,86,60,.14);
  --glass-inset:rgba(255,255,255,.8); --glass-shadow:rgba(80,52,32,.10); --glass-shadow-hover:rgba(80,52,32,.14);
  --ink:#2E211A; --ink-muted:#6E5A4B; --ink-strong:#2E211A;
  --btn:#3A2A20; --on-btn:#F6EEE3; --btn-shadow:rgba(58,42,32,.22);
  --link:#7A5236; --link-hover:#3A2A20;
  --line:rgba(58,42,32,.1); --line-strong:rgba(58,42,32,.35); --field:rgba(255,252,247,.7); --field-border:rgba(120,86,60,.22);
  --track:rgba(58,42,32,.1); --hover:rgba(58,42,32,.05); --active:rgba(58,42,32,.1); --avatar:#E6D9C8; --on-avatar:#4A3628;
  --ok-bg:#DCE6CF; --ok-ink:#33472A; --warn-bg:#F2DDB0; --warn-ink:#6B4A12; --late-bg:#F1CBBE; --late-ink:#7A2E1C;
  --bar-ok:#5E7B4A; --bar-warn:#C08A2E; --bar-late:#B5543A; --bar-neutral:#3A2A20;
  --glow-1:rgba(255,251,245,.95); --glow-2:rgba(176,128,86,.2); --window:rgba(90,60,40,.05);
  color-scheme: light;
}
/* ---------- Tokens: Café ---------- */
:root[data-theme="dark"] {
  --bg:#1A130F; --glass:rgba(255,240,222,.07); --glass-hover:rgba(255,240,222,.1); --glass-border:rgba(255,236,214,.14);
  --glass-inset:rgba(255,255,255,.08); --glass-shadow:rgba(0,0,0,.22); --glass-shadow-hover:rgba(0,0,0,.3);
  --ink:#F3E9DC; --ink-muted:#CDBBA6; --ink-strong:#FFF4E6;
  --btn:#E9D5BC; --on-btn:#2A1D15; --btn-shadow:rgba(0,0,0,.25);
  --link:#E9D5BC; --link-hover:#FFF4E6;
  --line:rgba(255,240,222,.1); --line-strong:rgba(255,236,214,.3); --field:rgba(255,240,222,.07); --field-border:rgba(255,236,214,.18);
  --track:rgba(255,240,222,.12); --hover:rgba(255,240,222,.06); --active:rgba(233,213,188,.18); --avatar:rgba(233,213,188,.14); --on-avatar:#E9D5BC;
  --ok-bg:#A9C08F; --ok-ink:#24180F; --warn-bg:#E6B865; --warn-ink:#24180F; --late-bg:#E58F75; --late-ink:#24180F;
  --bar-ok:#A9C08F; --bar-warn:#E6B865; --bar-late:#E58F75; --bar-neutral:#E9D5BC;
  --glow-1:rgba(201,146,94,.3); --glow-2:rgba(233,213,188,.16); --window:rgba(255,240,222,.035);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:#1A130F; --glass:rgba(255,240,222,.07); --glass-hover:rgba(255,240,222,.1); --glass-border:rgba(255,236,214,.14);
    --glass-inset:rgba(255,255,255,.08); --glass-shadow:rgba(0,0,0,.22); --glass-shadow-hover:rgba(0,0,0,.3);
    --ink:#F3E9DC; --ink-muted:#CDBBA6; --ink-strong:#FFF4E6;
    --btn:#E9D5BC; --on-btn:#2A1D15; --btn-shadow:rgba(0,0,0,.25);
    --link:#E9D5BC; --link-hover:#FFF4E6;
    --line:rgba(255,240,222,.1); --line-strong:rgba(255,236,214,.3); --field:rgba(255,240,222,.07); --field-border:rgba(255,236,214,.18);
    --track:rgba(255,240,222,.12); --hover:rgba(255,240,222,.06); --active:rgba(233,213,188,.18); --avatar:rgba(233,213,188,.14); --on-avatar:#E9D5BC;
    --ok-bg:#A9C08F; --ok-ink:#24180F; --warn-bg:#E6B865; --warn-ink:#24180F; --late-bg:#E58F75; --late-ink:#24180F;
    --bar-ok:#A9C08F; --bar-warn:#E6B865; --bar-late:#E58F75; --bar-neutral:#E9D5BC;
    --glow-1:rgba(201,146,94,.3); --glow-2:rgba(233,213,188,.16); --window:rgba(255,240,222,.035);
    color-scheme: dark;
  }
}
/* Texto de status solto (fora de pílula): no Café usa a cor cheia; no Creme, a tinta escura. */
:root { --late-text:var(--late-ink); --warn-text:var(--warn-ink); }
:root[data-theme="dark"] { --late-text:var(--bar-late); --warn-text:var(--bar-warn); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --late-text:var(--bar-late); --warn-text:var(--bar-warn); } }

:root {
  --space-1:4px; --space-2:8px; --space-4:16px; --space-6:24px;
  --radius-sm:12px; --radius-md:16px; --radius-card:22px; --radius-panel:26px; --radius-pill:999px;
  --blur:blur(24px);
  --font-sans:"Urbanist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease:cubic-bezier(.2,.7,.2,1);
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { background: var(--bg); }
html, body { min-height: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-sans); font-size: 15px; line-height: 22px; font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: var(--link-hover); }
h1, h2, h3, p { margin: 0; }
:where(a, button, input, select, textarea, summary, .vt-row-click):focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* Fundo ambiente: dois brilhos quentes e linhas finas de janela. */
.ambient { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
  background: radial-gradient(350px 260px at 430px 100%, var(--glow-2), transparent), repeating-linear-gradient(90deg, transparent 0 238px, var(--window) 238px 240px); }
.ambient-glow { position: absolute; top: -220px; right: -160px; width: 760px; height: 620px; border-radius: 50%; background: radial-gradient(closest-side, var(--glow-1), transparent); animation: drift 18s ease-in-out infinite; }

/* Vidro */
.glass, .card, .vt-stat, .vt-order, .vt-notice, .vt-table-wrap, .dock, .more-menu {
  background: var(--glass); border: 1px solid var(--glass-border); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  box-shadow: inset 0 1px 0 var(--glass-inset), 0 20px 40px var(--glass-shadow);
}

/* ---------- Movimento ---------- */
@keyframes rise { from { opacity: .35; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes grow-x { from { transform: scaleX(.15); } to { transform: scaleX(1); } }
@keyframes drift { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-40px, 24px); } }
.rise, .main > *, .grid-3 > *, .board > .col, .public > * { animation: rise .7s var(--ease) backwards; }
.main > :nth-child(1), .public > :nth-child(1) { animation-delay: .05s; }
.main > :nth-child(2), .public > :nth-child(2) { animation-delay: .12s; }
.main > :nth-child(3), .public > :nth-child(3) { animation-delay: .19s; }
.main > :nth-child(4), .public > :nth-child(4) { animation-delay: .26s; }
.main > :nth-child(5) { animation-delay: .33s; }
.main > :nth-child(n+6) { animation-delay: .4s; }
.grid-3 > :nth-child(1) { animation-delay: .12s; } .grid-3 > :nth-child(2) { animation-delay: .19s; }
.grid-3 > :nth-child(3) { animation-delay: .26s; } .grid-3 > :nth-child(n+4) { animation-delay: .33s; }
.board > .col:nth-child(2) { animation-delay: .1s; } .board > .col:nth-child(3) { animation-delay: .15s; }
.board > .col:nth-child(4) { animation-delay: .2s; } .board > .col:nth-child(n+5) { animation-delay: .25s; }
.vt-bar-fill { transform-origin: left; animation: grow-x .9s var(--ease) .2s backwards; }
.vt-stat, .vt-order { transition: transform .25s ease, background-color .25s ease, box-shadow .25s ease; }
.vt-stat:hover, a.vt-order:hover, .vt-order-click:hover { transform: translateY(-2px); background: var(--glass-hover); box-shadow: inset 0 1px 0 var(--glass-inset), 0 28px 56px var(--glass-shadow-hover); }

/* ---------- Utilitários do design system ---------- */
.vt-num { font-variant-numeric: tabular-nums; font-weight: 600; }
.vt-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.vt-row { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; padding: var(--space-4); }
.vt-stack { display: grid; gap: var(--space-4); padding: var(--space-4); max-width: 420px; }

/* Botões em pílula */
.vt-btn { text-decoration: none; font: inherit; font-size: 14px; font-weight: 600; height: 44px; padding: 0 20px; border-radius: var(--radius-pill); border: 1px solid var(--line-strong); background: transparent; color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); white-space: nowrap; transition: background-color .2s ease, color .2s ease, box-shadow .2s ease; }
.vt-btn:hover { background: var(--hover); color: var(--ink); }
.vt-btn-primary { padding: 0 22px; font-size: 15px; background: var(--btn); border-color: var(--btn); color: var(--on-btn); box-shadow: 0 10px 24px var(--btn-shadow); }
.vt-btn-primary:hover { background: var(--btn); color: var(--on-btn); filter: brightness(1.08); }
.vt-btn-ghost { border-color: transparent; color: var(--ink-muted); }
.vt-btn-ghost:hover { color: var(--ink); background: var(--hover); }
.vt-btn-sm { height: 32px; padding: 0 14px; font-size: 13px; }
.vt-btn:disabled { cursor: not-allowed; opacity: .55; filter: none; }

/* Pílulas e pontos de status (sempre com a palavra) */
.vt-pill { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: var(--radius-pill); font-size: 12px; line-height: 16px; font-weight: 700; white-space: nowrap; }
.vt-pill-ok { background: var(--ok-bg); color: var(--ok-ink); }
.vt-pill-warn { background: var(--warn-bg); color: var(--warn-ink); }
.vt-pill-late { background: var(--late-bg); color: var(--late-ink); }
.vt-pill-neutral { background: var(--active); color: var(--ink); }
.vt-dot-status { display: inline-flex; align-items: center; gap: var(--space-2); color: var(--ink); white-space: nowrap; font-size: 13px; }
.vt-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-muted); flex: none; }
.vt-dot-ok { background: var(--bar-ok); } .vt-dot-warn { background: var(--bar-warn); } .vt-dot-late { background: var(--bar-late); }

/* Avisos */
.vt-notice { display: flex; align-items: flex-start; gap: 14px; padding: 16px 20px; border-radius: var(--radius-card); }
.vt-notice-bar { width: 10px; height: 10px; margin-top: 6px; border-radius: 50%; background: var(--bar-neutral); flex: none; }
.vt-notice-warn .vt-notice-bar { background: var(--bar-warn); } .vt-notice-late .vt-notice-bar { background: var(--bar-late); } .vt-notice-ok .vt-notice-bar { background: var(--bar-ok); }
.vt-notice-late { border-color: var(--bar-late); }
.vt-notice-body { flex: 1; min-width: 0; }
.vt-notice-title { margin: 0; font-weight: 600; font-size: 16px; line-height: 22px; }
.vt-notice-text { margin-top: 2px; color: var(--ink-muted); font-size: 14px; }

/* Campos em pílula */
.vt-field { display: grid; gap: 6px; }
.vt-label { font-size: 13px; line-height: 18px; font-weight: 500; color: var(--ink-muted); }
.vt-req { color: var(--late-text); }
.vt-input { font: inherit; font-size: 15px; color: var(--ink); background: var(--field); border: 1px solid var(--field-border); border-radius: var(--radius-pill); height: 44px; padding: 0 18px; width: 100%; -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); transition: border-color .2s ease; }
.vt-input:hover { border-color: var(--line-strong); }
.vt-input::placeholder { color: var(--ink-muted); opacity: 1; }
.vt-input[type="file"] { padding: 9px 18px; font-size: 14px; }
.vt-input::file-selector-button { font: inherit; font-weight: 600; font-size: 13px; color: var(--on-btn); background: var(--btn); border: 0; border-radius: var(--radius-pill); height: 26px; padding: 0 12px; margin-right: 12px; cursor: pointer; }
.vt-input[readonly] { color: var(--ink-muted); }
.vt-textarea { height: auto; min-height: 104px; padding: 12px 18px; border-radius: 20px; resize: vertical; line-height: 22px; }
.vt-select { appearance: none; padding-right: 40px; cursor: pointer; }
.vt-select option { background: var(--bg); color: var(--ink); }
.vt-select-wrap { position: relative; }
.vt-select-wrap::after { content: ""; position: absolute; right: 18px; top: 50%; width: 7px; height: 7px; border-right: 1.6px solid var(--ink-muted); border-bottom: 1.6px solid var(--ink-muted); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.vt-field-error .vt-input { border-color: var(--bar-late); }
.vt-hint { margin: 0; font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.vt-field-error .vt-hint { color: var(--late-text); }

/* Card de pedido */
.vt-order { box-sizing: border-box; display: grid; gap: 4px; width: 100%; max-width: 320px; padding: 18px 20px; border-radius: var(--radius-card); color: var(--ink); font: inherit; text-align: left; text-decoration: none; }
.vt-order-click { cursor: pointer; }
.vt-order-top { display: flex; justify-content: space-between; align-items: center; gap: var(--space-2); }
.vt-order-product { font-size: 13px; line-height: 18px; font-weight: 500; color: var(--ink-muted); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vt-order-title { margin: 4px 0 0; font-size: 17px; line-height: 24px; font-weight: 600; }
.vt-order-meta { margin: 0; color: var(--ink-muted); font-size: 14px; }
.vt-order-foot { display: flex; justify-content: space-between; align-items: center; gap: var(--space-2); margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 14px; }
.vt-order-side { display: inline-flex; align-items: center; gap: var(--space-2); color: var(--ink-muted); }
.vt-avatar { width: 28px; height: 28px; border-radius: 10px; background: var(--avatar); color: var(--on-avatar); display: inline-grid; place-items: center; font-size: 13px; font-weight: 700; }

/* Tabelas */
.vt-table-wrap { overflow-x: auto; border-radius: var(--radius-card); padding: 6px; }
.vt-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.vt-table th { text-align: left; font-size: 13px; line-height: 18px; font-weight: 500; color: var(--ink-muted); padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.vt-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.vt-table tr:last-child td { border-bottom: 0; }
.vt-right { text-align: right !important; }
.vt-row-click { cursor: pointer; }
.vt-row-click td { transition: background-color .2s ease; }
.vt-row-click:hover td { background: var(--hover); }
.vt-row-click:hover td:first-child { border-radius: 14px 0 0 14px; } .vt-row-click:hover td:last-child { border-radius: 0 14px 14px 0; }
.vt-empty { color: var(--ink-muted); text-align: center; padding: var(--space-6) !important; white-space: normal !important; }

/* Indicadores com números grandes */
.vt-stat { padding: 20px; border-radius: var(--radius-card); display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.vt-stat-label { margin: 0; font-size: 13px; line-height: 18px; font-weight: 500; color: var(--ink-muted); }
.vt-stat-value { margin: 0; font-size: 32px; line-height: 36px; font-weight: 600; letter-spacing: -.01em; color: var(--ink); overflow-wrap: anywhere; }
.vt-stat-hint { margin: 0; font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.vt-bar { position: relative; height: 6px; border-radius: var(--radius-pill); background: var(--track); }
.vt-bar-fill { display: block; height: 100%; border-radius: var(--radius-pill); background: var(--bar-neutral); }
.vt-bar-ok { background: var(--bar-ok); } .vt-bar-warn { background: var(--bar-warn); } .vt-bar-late { background: var(--bar-late); }
.vt-bar-marker { position: absolute; top: -4px; width: 2px; height: 14px; margin-left: -1px; background: var(--ink); border-radius: 1px; }

/* Contador (sobre ícones e nas colunas) */
.vt-count { min-width: 22px; height: 22px; padding: 0 7px; border-radius: var(--radius-pill); background: var(--active); color: var(--ink); font-size: 12px; font-weight: 700; display: inline-grid; place-items: center; line-height: 1; }
.vt-count-warn { background: var(--warn-bg); color: var(--warn-ink); } .vt-count-late { background: var(--late-bg); color: var(--late-ink); }

/* ---------- Estrutura do sistema ---------- */
.app { position: relative; z-index: 1; display: flex; gap: 24px; align-items: flex-start; max-width: 1440px; margin: 0 auto; padding: 28px max(28px, env(safe-area-inset-right, 0px)) 40px max(28px, env(safe-area-inset-left, 0px)); }
.main { flex: 1; min-width: 0; display: grid; gap: 20px; align-content: start; }

/* Cápsula de ícones */
.dock { position: sticky; top: 28px; flex: 0 0 64px; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 0; border-radius: var(--radius-pill); box-shadow: inset 0 1px 0 var(--glass-inset), 0 24px 48px var(--glass-shadow); z-index: 5; }
.dock-brand { width: 40px; height: 40px; border-radius: 50%; background: var(--btn); color: var(--on-btn); display: grid; place-items: center; font-weight: 700; font-size: 16px; margin-bottom: 6px; text-decoration: none; }
.dock-brand:hover { color: var(--on-btn); }
.dock-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.dock-btn { position: relative; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-muted); background: transparent; border: 0; padding: 0; font: inherit; cursor: pointer; text-decoration: none; transition: background-color .2s ease, color .2s ease; }
.dock-btn:hover { background: var(--active); color: var(--ink-strong); }
.dock-btn[aria-current="page"] { background: var(--active); color: var(--ink-strong); }
.dock-btn svg { width: 20px; height: 20px; }
.dock-btn .vt-count { position: absolute; top: -3px; right: -5px; min-width: 18px; height: 18px; padding: 0 5px; font-size: 11px; box-shadow: 0 0 0 2px var(--bg); }
.dock-sep { width: 28px; height: 1px; background: var(--line); margin: 6px 0; }
.dock-themes { display: grid; gap: 2px; padding: 4px; border-radius: var(--radius-pill); background: var(--hover); }
.dock-themes form, .menu-themes form { margin: 0; display: contents; }
.dock-theme { width: 36px; height: 36px; }
.dock-theme svg { width: 17px; height: 17px; }
.dock-theme[aria-pressed="true"] { background: var(--btn); color: var(--on-btn); }
.dock-theme[aria-pressed="true"]:hover { background: var(--btn); color: var(--on-btn); }
/* Dica ao lado do ícone */
.dock [data-tip]::after { content: attr(data-tip); position: absolute; left: calc(100% + 14px); top: 50%; transform: translate(-4px, -50%); padding: 6px 12px; border-radius: var(--radius-pill); background: var(--btn); color: var(--on-btn); font-size: 13px; font-weight: 600; line-height: 18px; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .15s ease, transform .15s ease; box-shadow: 0 10px 24px var(--btn-shadow); }
.dock [data-tip]:hover::after, .dock [data-tip]:focus-visible::after { opacity: 1; transform: translate(0, -50%); }

/* Barra inferior (celular) */
.bottom-nav { display: none; }
.more { position: relative; display: contents; }
.more > summary { list-style: none; }
.more > summary::-webkit-details-marker { display: none; }
.more-menu { position: absolute; right: 0; bottom: calc(100% + 10px); width: 220px; padding: 8px; border-radius: var(--radius-card); display: grid; gap: 2px; box-shadow: inset 0 1px 0 var(--glass-inset), 0 24px 48px var(--glass-shadow-hover); background: var(--bg); }
.more-menu a, .more-menu .menu-item { display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 12px; border-radius: 14px; color: var(--ink); text-decoration: none; font: inherit; font-size: 15px; font-weight: 500; background: transparent; border: 0; width: 100%; cursor: pointer; text-align: left; }
.more-menu a:hover, .more-menu .menu-item:hover, .more-menu a[aria-current="page"] { background: var(--active); }
.more-menu svg { width: 18px; height: 18px; flex: none; color: var(--ink-muted); }
.menu-themes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 6px 4px; margin: 4px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.menu-themes .dock-btn { width: 100%; height: 38px; border-radius: var(--radius-pill); }
.menu-themes .dock-btn[aria-pressed="true"] { background: var(--btn); color: var(--on-btn); }
.menu-themes .dock-btn svg { width: 17px; height: 17px; }

/* ---------- Classes de tela ---------- */
.page-head { display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: flex-end; justify-content: space-between; }
.title { font-size: 34px; line-height: 40px; font-weight: 600; letter-spacing: -.01em; text-wrap: balance; overflow-wrap: anywhere; }
.card .title { font-size: 26px; line-height: 32px; }
.heading { font-size: 17px; line-height: 24px; font-weight: 600; }
.muted { color: var(--ink-muted); }
.small { font-size: 13px; line-height: 18px; }
.label { font-size: 13px; line-height: 18px; font-weight: 500; color: var(--ink-muted); }
.page-head .label { letter-spacing: .14em; text-transform: uppercase; }
.card { border-radius: var(--radius-panel); padding: 22px 24px; display: grid; gap: var(--space-4); min-width: 0; align-content: start; }
.grid { display: grid; gap: var(--space-4); min-width: 0; }
.grid-2 { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); align-items: start; }
.grid-3 { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); }
.row { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }
.between { justify-content: space-between; }
.stack { display: grid; gap: 6px; min-width: 0; }
.form { display: grid; gap: var(--space-4); }
.form > .vt-btn, .form > button { justify-self: start; }
.card .vt-table-wrap { background: transparent; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; padding: 0; margin: 0 -14px; border-radius: 0; }
.form-row { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); }
.check { display: flex; gap: 10px; align-items: center; min-height: 44px; padding: 8px 18px; border: 1px solid var(--field-border); border-radius: var(--radius-pill); background: var(--field); cursor: pointer; transition: background-color .2s ease; }
.check:hover { background: var(--hover); }
.check input { accent-color: var(--btn); width: 18px; height: 18px; flex: none; }
.check .price { margin-left: auto; color: var(--ink-muted); }
.kv { display: grid; grid-template-columns: minmax(120px, auto) 1fr; gap: 10px var(--space-4); margin: 0; }
.kv dt { color: var(--ink-muted); } .kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.list { list-style: none; margin: 0; padding: 0; display: grid; }
.list > li { padding: 10px 0; border-bottom: 1px solid var(--line); display: flex; gap: var(--space-2); align-items: center; justify-content: space-between; flex-wrap: wrap; min-width: 0; }
.list > li > span { min-width: 0; overflow-wrap: anywhere; }
.list > li:last-child { border-bottom: 0; }
.link-box { display: flex; gap: var(--space-2); align-items: center; }
.link-box input, .link-box textarea { flex: 1; min-width: 0; }
.remind-wrap { display: grid; gap: var(--space-2); align-content: start; width: 100%; max-width: 320px; }
.remind-wrap form { display: flex; }
.remind-wrap .vt-btn { width: 100%; }
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 1fr); gap: var(--space-4); overflow-x: auto; padding: 4px 4px var(--space-2); margin: -4px; }
.col { display: grid; gap: 10px; align-content: start; }
.col-head { display: flex; justify-content: space-between; align-items: center; padding: 0 6px; }
.board .vt-order { max-width: none; }
.waiting { font-size: 13px; color: var(--warn-text); font-weight: 600; }
.flash { position: relative; }
.bars { display: grid; gap: 12px; }
.bar-row { display: grid; grid-template-columns: minmax(96px, 160px) minmax(0, 1fr) auto; gap: 12px; align-items: center; font-size: 14px; }
.bar-row > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-row .vt-bar { height: 10px; }
.tag { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: var(--radius-pill); background: transparent; color: var(--ink); font-size: 12px; font-weight: 600; box-shadow: inset 0 0 0 1px var(--line-strong); white-space: nowrap; }
.preview-media { width: 100%; max-height: 70vh; border-radius: var(--radius-card); background: #000; display: block; object-fit: contain; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.thumbs a { display: block; aspect-ratio: 1; border-radius: var(--radius-md); overflow: hidden; background: var(--hover); border: 1px solid var(--glass-border); transition: transform .25s ease; }
.thumbs a:hover { transform: translateY(-2px); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumbs .file { display: grid; place-items: center; height: 100%; font-size: 12px; color: var(--ink-muted); padding: var(--space-1); text-align: center; overflow-wrap: anywhere; }
details > summary { cursor: pointer; color: var(--link); font-weight: 600; }
.inline { display: inline; }
.danger { color: var(--late-text); }
.right { text-align: right; }
.num { font-variant-numeric: tabular-nums; }

/* Páginas públicas (briefing, aprovação, entrar, primeiro acesso) */
.public { position: relative; z-index: 1; max-width: 640px; margin: 0 auto; padding-block: 32px 48px; padding-left: max(var(--space-4), env(safe-area-inset-left, 0px)); padding-right: max(var(--space-4), env(safe-area-inset-right, 0px)); display: grid; gap: var(--space-6); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 16px; }
.brand::before { content: "V"; width: 36px; height: 36px; border-radius: 50%; background: var(--btn); color: var(--on-btn); display: grid; place-items: center; font-weight: 700; font-size: 15px; }

@media (max-width: 860px) {
  .app { padding: 20px max(var(--space-4), env(safe-area-inset-right, 0px)) calc(108px + env(safe-area-inset-bottom, 0px)) max(var(--space-4), env(safe-area-inset-left, 0px)); }
  .dock { display: none; }
  .title { font-size: 28px; line-height: 34px; }
  .card { padding: 18px; }
  .vt-order { max-width: none; }
  .remind-wrap { max-width: none; }
  .board { grid-auto-flow: row; grid-auto-columns: auto; overflow: visible; margin: 0; padding: 0; }
  .bottom-nav { display: flex; position: fixed; z-index: 20; left: max(12px, env(safe-area-inset-left, 0px)); right: max(12px, env(safe-area-inset-right, 0px)); bottom: calc(12px + env(safe-area-inset-bottom, 0px)); padding: 6px; gap: 2px; border-radius: var(--radius-pill); justify-content: space-between; }
  .bottom-nav > a, .bottom-nav .more > summary { position: relative; flex: 1; min-width: 0; height: 52px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border-radius: var(--radius-pill); color: var(--ink-muted); text-decoration: none; font-size: 11px; line-height: 14px; font-weight: 600; cursor: pointer; transition: background-color .2s ease, color .2s ease; }
  .bottom-nav > a[aria-current="page"], .bottom-nav .more[open] > summary, .bottom-nav .more > summary.is-current { background: var(--active); color: var(--ink-strong); }
  .bottom-nav svg { width: 20px; height: 20px; }
  .bottom-nav .vt-count { position: absolute; top: 2px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; font-size: 11px; box-shadow: 0 0 0 2px var(--bg); }
  .bottom-nav .more { display: flex; flex: 1; min-width: 0; position: static; }
  .more-menu { right: 0; }
}
@media (max-width: 480px) {
  .kv { grid-template-columns: 1fr; gap: 2px; }
  .kv dd { margin-bottom: 8px; }
  .page-head > .vt-btn-primary { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .vt-stat:hover, a.vt-order:hover, .vt-order-click:hover, .thumbs a:hover, .gal-tile:hover { transform: none; }
}

/* ---------- Galeria ---------- */
.gal-search { flex: 1 1 240px; }
.gal-tile { text-decoration: none; color: inherit; transition: transform .25s ease; }
.gal-tile:hover { transform: translateY(-2px); }
.gal-thumb { display: block; aspect-ratio: 4 / 3; border-radius: var(--radius-md); overflow: hidden; background: var(--hover); border: 1px solid var(--glass-border); }
.gal-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gal-initial { display: grid; place-items: center; height: 100%; font-size: 44px; font-weight: 600; color: var(--ink-muted); }
.gal-media { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: var(--space-4); align-items: start; }
.gal-media img, .gal-media video { width: 100%; border-radius: var(--radius-md); border: 1px solid var(--glass-border); display: block; background: var(--hover); }
.gal-media figure { margin: 0; display: grid; gap: var(--space-2); justify-items: start; }
.gal-prompt { font-size: 14px; }
