/* =====================================================================
   METAS & AGENDA — design system
   ===================================================================== */
:root {
  --bg: #F5F4F0;
  --surface: #FFFFFF;
  --surface-2: #EFEDE7;
  --surface-3: #E5E2DA;
  --text: #16171B;
  --muted: #6C6D76;
  --faint: #A4A5AD;
  --line: rgba(22, 23, 27, .08);
  --line-strong: rgba(22, 23, 27, .14);

  --accent: #FF5B37;
  --accent-text: #CF3E1E;
  --accent-soft: #FFE8E1;
  --ink: #16171B;
  --on-ink: #FFFFFF;

  --success: #1E9A60;
  --success-soft: #DFF3E8;
  --danger: #D63B2C;
  --danger-soft: #FCE5E1;
  --warn: #B86E00;
  --warn-soft: #FFF0D6;
  --partner: #7561F0;
  --partner-soft: #ECE8FF;

  --hero-1: #1C1E24;
  --hero-2: #111216;

  --shadow-sm: 0 1px 2px rgba(22,23,27,.04), 0 1px 1px rgba(22,23,27,.03);
  --shadow: 0 1px 2px rgba(22,23,27,.04), 0 6px 20px -6px rgba(22,23,27,.08);
  --shadow-lg: 0 10px 40px -10px rgba(22,23,27,.22), 0 2px 6px rgba(22,23,27,.05);

  --r-sm: 12px;
  --r: 20px;
  --r-lg: 26px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --nav-h: 66px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-mode="light"]) {
    --bg: #0D0E11;
    --surface: #16181C;
    --surface-2: #1F2126;
    --surface-3: #2A2D34;
    --text: #F1F1F3;
    --muted: #9C9EA8;
    --faint: #5F626B;
    --line: rgba(255,255,255,.07);
    --line-strong: rgba(255,255,255,.13);
    --accent: #FF6A45;
    --accent-text: #FF8D70;
    --accent-soft: #35201A;
    --ink: #F1F1F3;
    --on-ink: #111214;
    --success: #3CC68A;
    --success-soft: #142D21;
    --danger: #FF6E5E;
    --danger-soft: #3A1D19;
    --warn: #F2B04B;
    --warn-soft: #33260F;
    --partner: #A190FF;
    --partner-soft: #241F40;
    --hero-1: #1D1F25;
    --hero-2: #15161A;
    --shadow-sm: none;
    --shadow: none;
    --shadow-lg: 0 16px 50px -12px rgba(0,0,0,.7);
    color-scheme: dark;
  }
}
:root[data-mode="dark"] {
    --bg: #0D0E11;
    --surface: #16181C;
    --surface-2: #1F2126;
    --surface-3: #2A2D34;
    --text: #F1F1F3;
    --muted: #9C9EA8;
    --faint: #5F626B;
    --line: rgba(255,255,255,.07);
    --line-strong: rgba(255,255,255,.13);
    --accent: #FF6A45;
    --accent-text: #FF8D70;
    --accent-soft: #35201A;
    --ink: #F1F1F3;
    --on-ink: #111214;
    --success: #3CC68A;
    --success-soft: #142D21;
    --danger: #FF6E5E;
    --danger-soft: #3A1D19;
    --warn: #F2B04B;
    --warn-soft: #33260F;
    --partner: #A190FF;
    --partner-soft: #241F40;
    --hero-1: #1D1F25;
    --hero-2: #15161A;
    --shadow-sm: none;
    --shadow: none;
    --shadow-lg: 0 16px 50px -12px rgba(0,0,0,.7);
    color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 15.5px/1.45 "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overscroll-behavior-y: none;
  font-variant-numeric: tabular-nums;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 10px; }
[hidden] { display: none !important; }
svg { display: block; }
.i { width: 20px; height: 20px; flex: none; }
.i-sm { width: 16px; height: 16px; flex: none; }

.splash { min-height: 100vh; display: grid; place-items: center; }
.splash-mark { width: 44px; height: 44px; border-radius: 50%; border: 4px solid var(--surface-3); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* =====================================================================
   Estrutura
   ===================================================================== */
.topbar {
  position: sticky; top: 0; z-index: 10;
  padding: calc(var(--safe-t) + 14px) 20px 12px;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(1.6) blur(16px);
  -webkit-backdrop-filter: saturate(1.6) blur(16px);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.topbar .eyebrow { font-size: 12.5px; font-weight: 600; color: var(--muted); letter-spacing: .01em; }
.topbar .eyebrow::first-letter { text-transform: uppercase; }
.topbar h1 { margin: 1px 0 0; font-size: 27px; line-height: 1.15; font-weight: 800; letter-spacing: -.03em; }
.top-actions { display: flex; align-items: center; gap: 8px; }

main { padding: 4px 20px calc(var(--nav-h) + var(--safe-b) + 40px); max-width: 680px; margin: 0 auto; }
.view-enter { animation: viewIn .32s var(--ease); }
@keyframes viewIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.demo-banner {
  display: flex; align-items: center; gap: 10px;
  margin: 0 20px 6px; padding: 10px 14px; border-radius: 14px;
  background: var(--warn-soft); color: var(--warn); font-size: 12.5px; font-weight: 600;
}
.demo-banner .i { width: 18px; height: 18px; }

/* ---------- avatar ---------- */
.avatar {
  --av: var(--accent);
  width: 40px; height: 40px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--av) 18%, var(--surface));
  color: var(--av); font-weight: 800; font-size: 15px;
  border: 2px solid var(--surface);
  box-shadow: 0 0 0 1px var(--line);
}
.avatar.sm { width: 24px; height: 24px; font-size: 10.5px; border-width: 1.5px; }
.avatar.lg { width: 64px; height: 64px; font-size: 24px; }
.avatars { display: flex; }
.avatars .avatar + .avatar { margin-left: -7px; }

/* ---------- barra de navegação (celular) ---------- */
.tabbar {
  position: fixed; z-index: 30;
  left: 12px; right: 12px; bottom: calc(10px + var(--safe-b));
  height: var(--nav-h);
  max-width: 520px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(var(--tabs, 5), 1fr); align-items: center;
  background: color-mix(in srgb, var(--surface) 84%, transparent);
  backdrop-filter: blur(22px) saturate(1.8);
  -webkit-backdrop-filter: blur(22px) saturate(1.8);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  padding: 0 6px;
}
.tab {
  height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: var(--faint); font-size: 10.5px; font-weight: 700; letter-spacing: .01em;
  transition: color .2s;
}
.tab .i { width: 23px; height: 23px; transition: transform .25s var(--ease); }
.tab.on { color: var(--text); }
.tab.on .i { transform: translateY(-1px); color: var(--accent); }
.tab-add {
  width: 50px; height: 50px; margin: auto; border-radius: 17px;
  display: grid; place-items: center;
  background: var(--accent); color: #fff;
  box-shadow: 0 8px 22px -6px color-mix(in srgb, var(--accent) 70%, transparent);
  transition: transform .2s var(--ease);
}
.tab-add:active { transform: scale(.92); }
.tab-add .i { width: 24px; height: 24px; }
.tabbar .tab-add, .tab-add span, .brand, .side-foot { display: none; }

/* =====================================================================
   Blocos
   ===================================================================== */
.section { margin-top: 26px; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin: 0 2px 10px; }
.section-head h2 { margin: 0; font-size: 17px; font-weight: 800; letter-spacing: -.02em; }
.section-head .count-badge { margin-left: 6px; }
.link { color: var(--accent-text); font-weight: 700; font-size: 13.5px; display: inline-flex; align-items: center; gap: 2px; }
.link .i { width: 16px; height: 16px; }

.card {
  background: var(--surface); border-radius: var(--r);
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.empty-inline { padding: 22px 18px; color: var(--muted); font-size: 14px; text-align: center; }
.count-badge {
  display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 7px;
  border-radius: 99px; background: var(--surface-2); color: var(--muted); font-size: 12px; font-weight: 700;
}

/* ---------- hero (resumo do dia) ---------- */
.hero {
  position: relative; overflow: hidden;
  border-radius: var(--r-lg); padding: 20px;
  color: #fff;
  background:
    radial-gradient(120% 120% at 100% 0%, color-mix(in srgb, var(--accent) 60%, transparent) 0%, transparent 52%),
    radial-gradient(90% 90% at 0% 100%, rgba(117, 97, 240, .35) 0%, transparent 60%),
    linear-gradient(160deg, var(--hero-1), var(--hero-2));
  box-shadow: 0 18px 40px -20px rgba(22,23,27,.6);
  display: flex; align-items: center; gap: 18px;
}
@media (prefers-color-scheme: dark) { :root:not([data-mode="light"]) .hero { border: 1px solid var(--line); } }
:root[data-mode="dark"] .hero { border: 1px solid var(--line); }
.hero .ring-track { stroke: rgba(255,255,255,.14); }
.hero-label { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.hero-title { font-size: 21px; font-weight: 800; letter-spacing: -.02em; margin: 2px 0 12px; line-height: 1.2; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 6px; }
.hero-stat {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px; border-radius: 99px;
  background: rgba(255,255,255,.1); font-size: 12.5px; font-weight: 600; color: rgba(255,255,255,.92);
}
.hero-stat .i { width: 14px; height: 14px; opacity: .8; }

/* ---------- semana (faixa de dias) ---------- */
.week-strip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: 14px; }
.wday {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 9px 0 8px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--line);
  transition: transform .15s;
}
.wday:active { transform: scale(.95); }
.wday small { font-size: 10.5px; font-weight: 700; color: var(--faint); text-transform: uppercase; letter-spacing: .04em; }
.wday b { font-size: 17px; font-weight: 800; }
.wday .dots { min-height: 5px; }
.wday.today { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.wday.today small { color: color-mix(in srgb, var(--on-ink) 60%, transparent); }
.wday.past b { color: var(--muted); }

.dots { display: flex; gap: 3px; justify-content: center; }
.dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.dots i.p { background: var(--partner); }

/* ---------- anel de progresso ---------- */
.ring { position: relative; flex: none; }
.ring > svg { width: 100%; height: 100%; }
.ring-label .i { width: 30px; height: 30px; opacity: .9; }
.ring-track { stroke: var(--surface-2); fill: none; }
.ring-fill { fill: none; transition: stroke-dashoffset .8s var(--ease); }
.ring-label {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center;
  font-weight: 800; letter-spacing: -.02em; line-height: 1;
}
.ring-label small { display: block; font-size: 10px; font-weight: 600; letter-spacing: 0; opacity: .65; margin-top: 2px; }

/* ---------- check-in (treinos da semana) ---------- */
.hscroll {
  display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory;
  margin: 0 -20px; padding: 2px 20px 6px; scrollbar-width: none;
}
.hscroll::-webkit-scrollbar { display: none; }
.checkin {
  --c: var(--accent);
  scroll-snap-align: start; flex: 0 0 auto; width: 172px;
  padding: 14px; border-radius: var(--r);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 10px; text-align: left;
}
.checkin-top { display: flex; align-items: center; justify-content: space-between; }
.checkin b { font-size: 14px; font-weight: 700; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 35px; }
.checkin .meta { font-size: 12px; color: var(--muted); font-weight: 600; }
.checkin-btn {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px; border-radius: 12px; font-size: 13px; font-weight: 700;
  background: color-mix(in srgb, var(--c) 12%, transparent); color: var(--c);
  transition: transform .15s, background .2s;
}
.checkin-btn:active { transform: scale(.96); }
.checkin-btn.done { background: var(--c); color: #fff; }
.checkin-btn .i { width: 16px; height: 16px; }

/* ---------- ícone de categoria ---------- */
.cat-ic {
  --c: var(--accent);
  width: 42px; height: 42px; border-radius: 14px; flex: none;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--c) 14%, transparent); color: var(--c);
}
.cat-ic .i { width: 21px; height: 21px; }
.cat-ic.sm { width: 34px; height: 34px; border-radius: 11px; }
.cat-ic.sm .i { width: 18px; height: 18px; }

/* =====================================================================
   Metas
   ===================================================================== */
.filter-row { display: flex; gap: 8px; overflow-x: auto; margin: 4px -20px 16px; padding: 2px 20px; scrollbar-width: none; }
.filter-row::-webkit-scrollbar { display: none; }
.fchip {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 99px; font-size: 13.5px; font-weight: 700;
  background: var(--surface); border: 1px solid var(--line); color: var(--muted);
  transition: all .2s;
}
.fchip.on { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.fchip .count-badge { height: 18px; min-width: 18px; font-size: 11px; padding: 0 5px; background: color-mix(in srgb, currentColor 14%, transparent); color: inherit; }

.goal-grid { display: grid; gap: 12px; }
.goal {
  --c: var(--accent);
  position: relative; padding: 16px; border-radius: var(--r);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 14px;
  transition: transform .2s var(--ease), box-shadow .2s;
}
.goal-open { display: flex; align-items: center; gap: 14px; text-align: left; width: 100%; }
.goal-info { flex: 1; min-width: 0; }
.goal-info .cat-name { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--c); }
.goal-info b { display: block; font-size: 16.5px; font-weight: 800; letter-spacing: -.02em; line-height: 1.25; margin: 2px 0 3px; overflow-wrap: anywhere; }
.goal-info .sub { font-size: 13px; color: var(--muted); font-weight: 500; }
.goal-info .sub strong { color: var(--text); font-weight: 700; }
.goal-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pills { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }

.pill { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 700; padding: 4px 9px; border-radius: 99px; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.pill .i { width: 13px; height: 13px; }
.pill.ok { background: var(--success-soft); color: var(--success); }
.pill.late { background: var(--danger-soft); color: var(--danger); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.partner { background: var(--partner-soft); color: var(--partner); }
.pill.fire { background: var(--accent-soft); color: var(--accent-text); }

.act-btn {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  padding: 9px 14px; border-radius: 12px; font-size: 13.5px; font-weight: 700;
  background: color-mix(in srgb, var(--c, var(--accent)) 12%, transparent); color: var(--c, var(--accent));
  transition: transform .15s;
}
.act-btn:active { transform: scale(.95); }
.act-btn.done { background: var(--c, var(--accent)); color: #fff; }
.act-btn .i { width: 16px; height: 16px; }

.week-dots { display: flex; gap: 5px; }
.week-dots span { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 9.5px; font-weight: 700; color: var(--faint); text-transform: uppercase; }
.week-dots i {
  width: 22px; height: 22px; border-radius: 8px; display: grid; place-items: center;
  background: var(--surface-2); color: #fff;
}
.week-dots i.on { background: var(--c); }
.week-dots i.today { box-shadow: inset 0 0 0 2px var(--c); }
.week-dots i.on.today { box-shadow: none; }
.week-dots i svg { width: 12px; height: 12px; }

/* mini metas no início */
.mini-goals { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mini-goal {
  --c: var(--accent);
  display: flex; flex-direction: column; gap: 12px; padding: 14px; text-align: left;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow);
}
.mini-goal .top { display: flex; align-items: center; justify-content: space-between; }
.mini-goal b { font-size: 14px; font-weight: 700; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mini-goal small { font-size: 12px; color: var(--muted); font-weight: 600; }

/* templates */
.templates { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tpl {
  --c: var(--accent);
  display: flex; flex-direction: column; gap: 10px; padding: 14px; text-align: left;
  border-radius: var(--r); background: var(--surface); border: 1px dashed var(--line-strong);
  transition: transform .15s, border-color .2s;
}
.tpl:active { transform: scale(.97); }
.tpl b { font-size: 14px; font-weight: 700; line-height: 1.25; }
.tpl small { font-size: 12px; color: var(--muted); }

.empty-state { text-align: center; padding: 28px 12px 18px; }
.empty-art { width: 76px; height: 76px; border-radius: 24px; margin: 0 auto 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.empty-art .i { width: 34px; height: 34px; }
.empty-state h3 { margin: 0 0 4px; font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.empty-state p { margin: 0 auto; color: var(--muted); font-size: 14px; max-width: 300px; }

/* detalhe da meta */
.detail-hero { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 6px 0 4px; }
.detail-hero .big { font-size: 32px; font-weight: 800; letter-spacing: -.035em; margin-top: 14px; line-height: 1.1; }
.detail-hero .of { color: var(--muted); font-size: 14px; font-weight: 600; margin-top: 4px; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 18px; }
.tile { padding: 12px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.tile span { display: block; font-size: 11.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.tile b { display: block; font-size: 17px; font-weight: 800; letter-spacing: -.02em; margin-top: 3px; }
.chart-card { margin-top: 12px; padding: 14px 14px 10px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.chart-card .chart-title { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 8px; }
.spark { width: 100%; height: 110px; overflow: visible; }
.bars { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; align-items: end; height: 110px; position: relative; }
.bars div { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 6px; }
.bars i { width: 100%; max-width: 30px; border-radius: 8px 8px 4px 4px; background: var(--surface-3); min-height: 5px; transition: height .6s var(--ease); }
.bars i.hit { background: var(--c); }
.bars span { font-size: 10px; color: var(--faint); font-weight: 700; }
.bars .target-line { position: absolute; left: 0; right: 0; border-top: 1.5px dashed var(--faint); pointer-events: none; }

/* =====================================================================
   Listas (tarefas e compromissos)
   ===================================================================== */
.list { background: var(--surface); border-radius: var(--r); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.group-label { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 20px 4px 8px; }
.group-label.late { color: var(--danger); }
.group-label:first-child { margin-top: 4px; }

.task { display: flex; align-items: center; gap: 12px; padding: 13px 14px 13px 16px; min-height: 58px; position: relative; }
.swipe + .swipe .task::before { content: ""; position: absolute; top: 0; left: 54px; right: 0; border-top: 1px solid var(--line); }
.task-main { flex: 1; min-width: 0; text-align: left; }
.task-main b { display: block; font-size: 15px; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; transition: color .2s; }
.task-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 3px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.task-meta span { display: inline-flex; align-items: center; gap: 4px; }
.task-meta .i { width: 13px; height: 13px; }
.task-meta .late { color: var(--danger); }
.task.done .task-main b { color: var(--faint); text-decoration: line-through; text-decoration-thickness: 1.5px; }

.check {
  width: 26px; height: 26px; border-radius: 9px; flex: none;
  border: 2px solid var(--line-strong); display: grid; place-items: center;
  transition: background .2s, border-color .2s, transform .2s var(--ease);
}
.check svg { width: 15px; height: 15px; color: #fff; transform: scale(0); transition: transform .25s var(--ease); }
.check.on { background: var(--success); border-color: var(--success); }
.check.on svg { transform: scale(1); }
.check:active { transform: scale(.88); }
.check.prio { border-color: color-mix(in srgb, var(--accent) 70%, transparent); }

.flag { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; color: var(--faint); flex: none; }
.flag .i { width: 18px; height: 18px; }
.flag.on { color: var(--accent); }

.quick-add {
  display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow);
  margin-bottom: 6px; transition: border-color .2s, box-shadow .2s;
}
.quick-add:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent); }
.quick-add > .i { color: var(--faint); }
.quick-add input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 16px; padding: 10px 0; }
.quick-add button { width: 40px; height: 40px; border-radius: 13px; background: var(--ink); color: var(--on-ink); display: grid; place-items: center; }

.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--surface-2); padding: 4px; border-radius: 16px; margin: 4px 0 16px; }
.seg button { padding: 9px 6px; border-radius: 12px; font-size: 14px; font-weight: 700; color: var(--muted); display: flex; align-items: center; justify-content: center; gap: 6px; transition: all .2s; }
.seg button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm), 0 2px 8px -2px rgba(0,0,0,.08); }
.seg .count-badge { height: 19px; min-width: 19px; font-size: 11px; padding: 0 5px; background: var(--surface-3); }
.seg button.on .count-badge { background: var(--accent); color: #fff; }

/* compromissos */
.ev { display: flex; gap: 12px; padding: 12px 14px; text-align: left; width: 100%; position: relative; align-items: stretch; }
.ev + .ev::before { content: ""; position: absolute; top: 0; left: 76px; right: 0; border-top: 1px solid var(--line); }
.ev-time { width: 50px; flex: none; padding-top: 1px; }
.ev-time b { display: block; font-size: 14px; font-weight: 800; letter-spacing: -.01em; }
.ev-time span { display: block; font-size: 12px; color: var(--faint); font-weight: 600; }
.ev-line { width: 4px; border-radius: 4px; flex: none; background: var(--accent); }
.ev.partner .ev-line { background: var(--partner); }
.ev-body { flex: 1; min-width: 0; }
.ev-body b { display: block; font-size: 15px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.ev-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 4px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.ev-sub span { display: inline-flex; align-items: center; gap: 4px; }
.ev-sub .i { width: 13px; height: 13px; }
.ev-sub .who { color: var(--partner); }
.vis-tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px 2px 6px; border-radius: 99px;
  background: var(--surface-2); color: var(--muted);
  font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em;
}
.vis-tag .i { width: 12px; height: 12px; }
.vis-tag.shared { background: var(--partner-soft); color: var(--partner); }
.ev.is-shared .ev-line { background: linear-gradient(var(--accent), var(--partner)); }
.vis-opts .opt[data-vis="private"].on { box-shadow: inset 0 0 0 2px var(--ink); }
.vis-opts .opt[data-vis="shared"].on { box-shadow: inset 0 0 0 2px var(--partner); background: color-mix(in srgb, var(--partner) 7%, var(--surface)); }
.vis-opts .opt[data-vis="shared"].on .i { color: var(--partner); }

/* calendário */
.cal { padding: 16px 14px 12px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; padding: 0 4px 12px; }
.cal-head b { font-size: 17px; font-weight: 800; letter-spacing: -.02em; display: inline-block; }
.cal-head b::first-letter { text-transform: uppercase; }
.cal-nav { display: flex; gap: 6px; }
.icon-btn { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); color: var(--text); }
.icon-btn .i { width: 18px; height: 18px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 4px; text-align: center; }
.cal-grid .dow { font-size: 11px; color: var(--faint); font-weight: 800; padding: 2px 0 6px; letter-spacing: .04em; }
.cal-day {
  height: 44px; border-radius: 14px; margin: 0 2px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  font-size: 15px; font-weight: 600; transition: background .15s;
}
.cal-day .dots { height: 5px; }
.cal-day.out { color: var(--faint); opacity: .5; }
.cal-day.today { color: var(--accent-text); font-weight: 800; }
.cal-day.sel { background: var(--ink); color: var(--on-ink); font-weight: 800; }
.cal-day.sel .dots i { background: var(--on-ink); }
.legend { display: flex; gap: 16px; justify-content: center; padding-top: 10px; margin-top: 6px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); font-weight: 600; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.legend i.p { background: var(--partner); }

.day-head { display: flex; align-items: baseline; justify-content: space-between; margin: 24px 2px 10px; }
.day-head h2 { margin: 0; font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.day-head h2::first-letter { text-transform: uppercase; }
.day-head small { color: var(--muted); font-weight: 600; font-size: 13px; }

/* =====================================================================
   Formulários
   ===================================================================== */
.field { display: block; margin-bottom: 14px; }
.field > span, .label { display: block; font-size: 13px; font-weight: 700; color: var(--muted); margin: 0 0 7px 2px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px; border-radius: 14px;
  border: 1.5px solid transparent; background: var(--surface); outline: none;
  font-size: 16px; font-weight: 500;
  box-shadow: inset 0 0 0 1px var(--line);
  appearance: none; -webkit-appearance: none;
  transition: box-shadow .2s, border-color .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent); }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field textarea { min-height: 76px; resize: vertical; }
.field input.big { font-size: 19px; font-weight: 700; padding: 15px 16px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hint { font-size: 12.5px; color: var(--muted); margin: -6px 2px 14px; line-height: 1.45; }
.input-wrap { position: relative; }
.input-wrap .suffix { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 700; font-size: 14px; pointer-events: none; }

.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cat-opt {
  --c: var(--accent);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 12px 4px 10px; border-radius: 16px;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
  font-size: 11.5px; font-weight: 700; color: var(--muted);
  transition: all .15s;
}
.cat-opt .cat-ic { width: 36px; height: 36px; border-radius: 12px; }
.cat-opt .cat-ic .i { width: 19px; height: 19px; }
.cat-opt.on { box-shadow: inset 0 0 0 2px var(--c); color: var(--text); background: color-mix(in srgb, var(--c) 6%, var(--surface)); }

.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.opt {
  display: flex; flex-direction: column; gap: 6px; padding: 14px; text-align: left; border-radius: 16px;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); transition: all .15s;
}
.opt .i { width: 22px; height: 22px; color: var(--muted); }
.opt b { font-size: 14.5px; font-weight: 800; }
.opt small { font-size: 12px; color: var(--muted); line-height: 1.35; }
.opt.on { box-shadow: inset 0 0 0 2px var(--ink); background: var(--surface); }
.opt.on .i { color: var(--accent); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 14px; border-radius: 99px; font-size: 14px; font-weight: 700;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--muted);
  transition: all .15s;
}
.chip.on { background: var(--ink); color: var(--on-ink); box-shadow: none; }
.chip .avatar { border: 0; box-shadow: none; }
.people { margin-top: 10px; }

.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 14px; border-radius: 14px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); margin-bottom: 14px; }
.toggle-row b { font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.toggle-row b .i { color: var(--accent); }
.switch { position: relative; width: 50px; height: 30px; flex: none; }
.switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch i { position: absolute; inset: 0; border-radius: 99px; background: var(--surface-3); transition: background .2s; }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.2); transition: transform .25s var(--ease); }
.switch input:checked + i { background: var(--accent); }
.switch input:checked + i::after { transform: translateX(20px); }

.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  border-radius: 16px; padding: 15px; font-weight: 800; font-size: 15.5px; letter-spacing: -.01em;
  background: var(--ink); color: var(--on-ink);
  transition: transform .15s, opacity .2s;
}
.btn:active { transform: scale(.98); }
.btn .i { width: 18px; height: 18px; }
.btn.accent { background: var(--accent); color: #fff; }
.btn.ghost { background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.btn.danger { background: transparent; color: var(--danger); }
.btn + .btn { margin-top: 8px; }
.btn:disabled { opacity: .5; }
.btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.btn-row .btn + .btn { margin-top: 0; }

/* =====================================================================
   Sheet / modal
   ===================================================================== */
.backdrop { position: fixed; inset: 0; background: rgba(10, 10, 14, .42); z-index: 40; animation: fade .25s; backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 41;
  max-height: 93vh; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
  background: var(--bg); border-radius: 28px 28px 0 0;
  padding: 0 20px calc(var(--safe-b) + 24px);
  max-width: 640px; margin: 0 auto;
  animation: up .38s var(--ease);
  box-shadow: 0 -10px 40px rgba(0,0,0,.15);
}
.sheet-head {
  position: sticky; top: 0; z-index: 2; margin: 0 -20px 6px; padding: 10px 20px 12px;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.grab { width: 38px; height: 5px; border-radius: 9px; background: var(--surface-3); margin: 0 auto 12px; }
.sheet-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sheet-title h2 { margin: 0; font-size: 21px; font-weight: 800; letter-spacing: -.025em; display: flex; align-items: center; gap: 10px; min-width: 0; }
.sheet-title h2 span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.close-btn { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--muted); flex: none; }
.close-btn .i { width: 17px; height: 17px; }
@keyframes up { from { transform: translateY(100%); } to { transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.toast {
  position: fixed; left: 50%; z-index: 60;
  bottom: calc(var(--nav-h) + var(--safe-b) + 24px);
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 14px;
  background: var(--ink); color: var(--on-ink);
  padding: 12px 14px 12px 18px; border-radius: 16px;
  font-size: 14px; font-weight: 700; max-width: calc(100vw - 32px);
  box-shadow: var(--shadow-lg);
  animation: toastIn .3s var(--ease);
}
.toast button { color: var(--accent); font-weight: 800; padding: 4px 6px; }
@media (prefers-color-scheme: dark) { :root:not([data-mode="light"]) .toast button { color: var(--accent-text); } }
:root[data-mode="dark"] .toast button { color: var(--accent-text); }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 10px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* histórico */
.hist { display: flex; align-items: center; gap: 12px; padding: 12px 14px; position: relative; }
.hist + .hist::before { content: ""; position: absolute; top: 0; left: 14px; right: 0; border-top: 1px solid var(--line); }
.hist .val { font-weight: 800; font-size: 15px; }
.hist .val.neg { color: var(--danger); }
.hist .val.pos { color: var(--success); }
.hist .info { flex: 1; min-width: 0; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.hist .info b { display: block; color: var(--text); font-size: 15px; font-weight: 700; margin-bottom: 1px; overflow-wrap: anywhere; }
.book-spine {
  width: 34px; height: 44px; border-radius: 4px 8px 8px 4px; flex: none;
  display: grid; place-items: center; font-size: 12px; font-weight: 800; color: #fff;
  background: linear-gradient(90deg, color-mix(in srgb, var(--c) 70%, #000) 0 5px, var(--c) 5px);
  box-shadow: 0 2px 6px -2px color-mix(in srgb, var(--c) 60%, transparent);
}
.del-btn { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; color: var(--faint); }
.del-btn .i { width: 16px; height: 16px; }

/* perfil */
.profile-head { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 6px 0 20px; }
.profile-head b { font-size: 19px; font-weight: 800; }
.profile-head small { color: var(--muted); font-size: 13px; }
.user-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.user-row + .user-row { border-top: 1px solid var(--line); }
.user-row b { flex: 1; font-weight: 700; font-size: 15px; }

/* =====================================================================
   Login
   ===================================================================== */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; position: relative; overflow: hidden; }
.login-wrap::before, .login-wrap::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5; z-index: 0;
}
.login-wrap::before { width: 380px; height: 380px; background: var(--accent); top: -140px; right: -120px; opacity: .28; }
.login-wrap::after { width: 340px; height: 340px; background: var(--partner); bottom: -140px; left: -120px; opacity: .22; }
.login { position: relative; z-index: 1; width: 100%; max-width: 400px; }
.login .logo { width: 60px; height: 60px; border-radius: 18px; margin-bottom: 20px; box-shadow: var(--shadow-lg); }
.login h1 { margin: 0 0 6px; font-size: 32px; font-weight: 800; letter-spacing: -.035em; line-height: 1.1; }
.login p { color: var(--muted); margin: 0 0 26px; font-size: 15px; }
.error { display: flex; gap: 8px; align-items: center; background: var(--danger-soft); color: var(--danger); font-size: 14px; font-weight: 600; padding: 12px 14px; border-radius: 14px; margin: 0 0 14px; }
.link-btn { display: block; margin: 16px auto 0; color: var(--muted); font-weight: 600; font-size: 14px; padding: 8px; }
.link-btn b { color: var(--accent-text); }

/* =====================================================================
   PC / telas grandes
   ===================================================================== */
@media (hover: hover) {
  .goal:hover, .mini-goal:hover, .checkin:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
  .task:hover, .ev:hover { background: color-mix(in srgb, var(--surface-2) 50%, transparent); }
  .cal-day:not(.sel):hover { background: var(--surface-2); }
  .wday:hover { border-color: var(--line-strong); }
  .tpl:hover { border-color: var(--c); }
  .cat-opt:hover, .opt:hover, .chip:not(.on):hover { box-shadow: inset 0 0 0 1px var(--line-strong); }
  .fchip:not(.on):hover { color: var(--text); }
}

@media (min-width: 960px) {
  :root { --side: 256px; }
  body { font-size: 15px; }

  .tabbar {
    left: 0; right: auto; top: 0; bottom: 0; height: auto; width: var(--side); max-width: none;
    margin: 0; border-radius: 0; border: 0; border-right: 1px solid var(--line);
    background: var(--surface); box-shadow: none;
    display: flex; flex-direction: column; align-items: stretch; gap: 4px; padding: 24px 16px;
    backdrop-filter: none; -webkit-backdrop-filter: none;
  }
  .brand { display: flex; align-items: center; gap: 11px; padding: 0 8px 24px; order: 0; font-weight: 800; font-size: 17px; letter-spacing: -.02em; }
  .brand img { width: 34px; height: 34px; border-radius: 10px; }
  .tab {
    order: 2; height: auto; flex-direction: row; justify-content: flex-start; gap: 12px;
    padding: 11px 12px; border-radius: 13px; font-size: 14.5px; font-weight: 700; color: var(--muted);
  }
  .tab .i { width: 21px; height: 21px; }
  .tab:hover { background: var(--surface-2); color: var(--text); }
  .tab.on { background: var(--surface-2); color: var(--text); }
  .tab.on .i { transform: none; }
  .tabbar .tab-add {
    order: 1; width: 100%; height: auto; margin: 0 0 18px; border-radius: 14px; padding: 12px;
    display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 800; font-size: 14.5px;
  }
  .tab-add span { display: inline; }
  .fab { display: none; }
  .tab-add .i { width: 20px; height: 20px; }
  .side-foot { order: 3; margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 14px; text-align: left; }
  .side-foot:hover { background: var(--surface-2); }
  .side-foot b { display: block; font-size: 14px; }
  .side-foot small { color: var(--muted); font-size: 12px; }

  .topbar, .demo-banner, main { margin-left: var(--side); }
  .topbar { padding: 30px 44px 16px; }
  .topbar h1 { font-size: 32px; }
  .topbar .avatar { display: none; }
  .demo-banner { margin: 0 44px 6px calc(var(--side) + 44px); }
  main { max-width: 1240px; padding: 6px 44px 64px; margin-right: 0; }

  .home-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px; align-items: start; }
  .home-grid .section:first-child { margin-top: 0; }
  .hero { padding: 26px; }
  .goal-grid { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
  .templates { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
  .agenda-grid { display: grid; grid-template-columns: 400px minmax(0, 1fr); gap: 32px; align-items: start; }
  .agenda-grid > :first-child { position: sticky; top: 110px; }
  .agenda-grid .day-head:first-child { margin-top: 0; }
  .tasks-wrap { max-width: 760px; }
  .hscroll { margin: 0; padding: 2px 0 6px; flex-wrap: wrap; overflow: visible; }

  .sheet {
    top: 50%; bottom: auto; left: 50%; right: auto;
    width: min(560px, calc(100vw - 48px)); max-height: 88vh;
    transform: translate(-50%, -50%); border-radius: 26px;
    padding: 0 26px 26px; animation: pop .22s var(--ease);
    box-shadow: var(--shadow-lg);
  }
  .sheet-head { margin: 0 -26px 8px; padding: 22px 26px 14px; }
  .grab { display: none; }
  @keyframes pop { from { opacity: 0; transform: translate(-50%, -47%) scale(.97); } to { opacity: 1; transform: translate(-50%, -50%); } }
  .toast { bottom: 28px; left: calc(50% + var(--side) / 2); }
}

/* =====================================================================
   v3 — Recursos, Painel e recursos opcionais
   ===================================================================== */
.muted { color: var(--muted); }
.tab span { white-space: nowrap; }
@media (max-width: 400px) { .tab { font-size: 9.5px; } .tab .i { width: 21px; height: 21px; } }

/* botão + flutuante (celular) */
.fab {
  position: fixed; z-index: 31; right: 18px;
  bottom: calc(var(--nav-h) + var(--safe-b) + 22px);
  width: 56px; height: 56px; border-radius: 19px;
  display: grid; place-items: center;
  background: var(--accent); color: #fff;
  box-shadow: 0 10px 26px -6px color-mix(in srgb, var(--accent) 70%, transparent);
  transition: transform .2s var(--ease);
}
.fab:active { transform: scale(.92); }
.fab .i { width: 26px; height: 26px; }
main { padding-bottom: calc(var(--nav-h) + var(--safe-b) + 96px); }
.toast { bottom: calc(var(--nav-h) + var(--safe-b) + 92px); }

/* ---------- deslizar tarefas ---------- */
.swipe { position: relative; overflow: hidden; }
.swipe .task { background: var(--surface); position: relative; z-index: 1; touch-action: pan-y; }
.swipe-bg { position: absolute; inset: 0; display: flex; justify-content: space-between; align-items: center; padding: 0 20px; font-size: 13.5px; font-weight: 800; color: #fff; opacity: 0; }
.swipe-bg span { display: inline-flex; align-items: center; gap: 6px; }
.swipe-bg .i { width: 18px; height: 18px; }
.swipe.swiping .swipe-bg { opacity: 1; }
.swipe[data-dir="right"] .swipe-bg { background: color-mix(in srgb, var(--success) 70%, var(--surface)); }
.swipe[data-dir="left"] .swipe-bg { background: color-mix(in srgb, var(--warn) 70%, var(--surface)); }
.swipe[data-dir="right"] .sw-r, .swipe[data-dir="left"] .sw-l { visibility: hidden; }
.swipe.armed[data-dir="right"] .swipe-bg { background: var(--success); }
.swipe.armed[data-dir="left"] .swipe-bg { background: var(--warn); }
.swipe-hint { display: flex; align-items: center; gap: 6px; margin: 2px 4px 0 !important; }
@media (hover: hover) and (pointer: fine) { .swipe-hint { display: none; } }

/* ---------- hábitos ---------- */
.habit-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; position: relative; }
.habit-row + .habit-row::before { content: ""; position: absolute; top: 0; left: 60px; right: 0; border-top: 1px solid var(--line); }
.habit-row .streak { color: var(--accent-text); }
.habit-check {
  width: 40px; height: 40px; border-radius: 14px; flex: none; display: grid; place-items: center;
  border: 2px dashed color-mix(in srgb, var(--c) 55%, transparent); color: transparent;
  transition: all .2s var(--ease);
}
.habit-check .i { width: 20px; height: 20px; }
.habit-check.on { background: var(--c); border: 2px solid var(--c); color: #fff; }
.habit-check:active { transform: scale(.9); }
.day-strip { display: flex; gap: 4px; flex-wrap: nowrap; }
.day-strip i { width: 13px; height: 22px; border-radius: 5px; background: var(--surface-2); }
.day-strip i.on { background: var(--c); }
.day-strip i.today { box-shadow: inset 0 0 0 2px var(--c); }
.day-strip i.on.today { box-shadow: none; }
@media (max-width: 400px) { .day-strip i { width: 10px; } }
.heat { display: grid; grid-auto-flow: column; grid-template-rows: repeat(7, 1fr); gap: 3px; }
.heat i { aspect-ratio: 1; border-radius: 3px; background: var(--surface-2); }
.heat i.on { background: var(--c); }
.heat i.today { box-shadow: inset 0 0 0 1.5px var(--c); }
.heat i.future { background: transparent; }
.heat-foot { display: flex; justify-content: space-between; font-size: 11px; color: var(--faint); font-weight: 700; margin-top: 6px; }
.opts.three { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 420px) { .opts.three { grid-template-columns: 1fr 1fr; } .opts.three .opt:last-child { grid-column: span 2; } }

/* ---------- datas especiais ---------- */
.special-list { display: grid; gap: 10px; }
.special {
  display: flex; align-items: center; gap: 14px; padding: 12px 14px; text-align: left; width: 100%;
  border-radius: var(--r); background: linear-gradient(135deg, color-mix(in srgb, #D6409F 10%, var(--surface)), var(--surface) 70%);
  border: 1px solid color-mix(in srgb, #D6409F 22%, var(--line)); box-shadow: var(--shadow);
}
.countdown { width: 56px; height: 56px; flex: none; border-radius: 16px; display: grid; place-content: center; text-align: center; background: #D6409F; color: #fff; line-height: 1; }
.countdown b { font-size: 21px; font-weight: 800; }
.countdown small { font-size: 10.5px; font-weight: 700; opacity: .85; }
.countdown.now { font-size: 26px; }
.vis-tag.special { background: color-mix(in srgb, #D6409F 14%, transparent); color: #C0358C; }
@media (prefers-color-scheme: dark) { :root:not([data-mode="light"]) .vis-tag.special { color: #F27BC4; } }
:root[data-mode="dark"] .vis-tag.special { color: #F27BC4; }
.dots i.s, .legend i.s { background: #D6409F; }

/* ---------- toggle com subtítulo ---------- */
.toggle-row b { align-items: flex-start; flex-wrap: wrap; }
.toggle-row b small { flex-basis: 100%; font-size: 12px; font-weight: 500; color: var(--muted); margin: -4px 0 0 28px; }

/* ---------- simulador e contribuição ---------- */
.chart-title { display: flex; align-items: center; gap: 6px; }
.sim-q { display: block; font-size: 15px; font-weight: 600; line-height: 2.1; }
.sim-input { display: inline-flex; align-items: center; gap: 4px; background: var(--surface-2); border-radius: 10px; padding: 2px 10px; }
.sim-input input { width: 90px; border: 0; background: none; outline: 0; font-size: 16px; font-weight: 800; color: var(--accent-text); }
.sim-input em { font-style: normal; font-weight: 700; color: var(--muted); font-size: 13px; }
.sim-out { margin-top: 6px; font-size: 15px; }
.sim-out b { color: var(--success); font-size: 18px; }
.sim-out small { display: block; color: var(--muted); font-size: 12.5px; font-weight: 600; margin-top: 2px; }
.sim-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.sim-facts div { background: var(--surface-2); border-radius: 12px; padding: 9px 11px; }
.sim-facts span { display: block; font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.sim-facts b { font-size: 14.5px; font-weight: 800; }
.stack { display: flex; gap: 2px; height: 12px; border-radius: 99px; overflow: hidden; margin-bottom: 10px; background: var(--surface-2); }
.stack i { min-width: 4px; }
.contrib-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 14px; }
.contrib-row span { flex: 1; font-weight: 600; }
.contrib-row b { font-weight: 800; }
.contrib-row small { width: 40px; text-align: right; color: var(--muted); font-weight: 700; }

/* ---------- Recursos ---------- */
.rec-intro { display: flex; gap: 14px; padding: 16px; align-items: flex-start; }
.rec-intro b { font-size: 16px; font-weight: 800; }
.rec-intro p { margin: 4px 0 10px; color: var(--muted); font-size: 13.5px; }
.mod-row { display: flex; align-items: center; gap: 12px; padding: 14px; cursor: pointer; position: relative; }
.mod-row + .mod-row::before { content: ""; position: absolute; top: 0; left: 60px; right: 0; border-top: 1px solid var(--line); }
.mod-txt { flex: 1; min-width: 0; }
.mod-txt b { display: block; font-size: 15px; font-weight: 700; }
.mod-txt small { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.4; margin-top: 2px; }
.soon-list { display: flex; flex-wrap: wrap; gap: 6px; }
.soon { font-size: 12.5px; font-weight: 600; padding: 6px 11px; border-radius: 99px; color: var(--muted); border: 1px dashed var(--line-strong); }

/* ---------- Painel ---------- */
.dash-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 2px 0 14px; }
.dash-nav > div { text-align: center; }
.dash-nav b { display: block; font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
.dash-nav b::first-letter { text-transform: uppercase; }
.dash-nav small { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.icon-btn:disabled { opacity: .35; cursor: default; }
.dash-hero {
  display: flex; align-items: center; gap: 18px; padding: 20px; border-radius: var(--r-lg); color: #fff;
  background:
    radial-gradient(120% 120% at 100% 0%, color-mix(in srgb, var(--accent) 55%, transparent) 0%, transparent 55%),
    radial-gradient(90% 90% at 0% 100%, rgba(18, 165, 148, .35) 0%, transparent 60%),
    linear-gradient(160deg, var(--hero-1), var(--hero-2));
  box-shadow: 0 18px 40px -20px rgba(22,23,27,.6);
}
.dash-hero .ring-track { stroke: rgba(255,255,255,.14); }
.dash-hero-txt { flex: 1; min-width: 0; }
.dash-hero .hero-title { font-size: 18px; margin-bottom: 12px; }
.score-comps { display: grid; gap: 7px; }
.score-comps > div { display: grid; grid-template-columns: 110px 1fr 40px; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; color: rgba(255,255,255,.85); }
.score-comps b { text-align: right; }
.mini-bar { height: 6px; border-radius: 99px; background: rgba(255,255,255,.14); overflow: hidden; }
.mini-bar i { display: block; height: 100%; border-radius: 99px; background: #fff; }
@media (max-width: 420px) { .dash-hero { flex-direction: column; align-items: stretch; } .dash-hero > .ring { align-self: center; } .score-comps > div { grid-template-columns: 96px 1fr 38px; } }

.kpi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kpi {
  display: flex; flex-direction: column; gap: 4px; text-align: left; padding: 14px; min-width: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow);
  transition: box-shadow .2s, transform .2s var(--ease);
}
.kpi.on { box-shadow: inset 0 0 0 2px var(--c), var(--shadow); }
.kpi-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 6px; }
.kpi-val { font-size: 22px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; overflow-wrap: anywhere; }
.kpi-label { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.kpi-label small { font-weight: 600; }
.kpi-spark { display: flex; align-items: flex-end; gap: 3px; height: 28px; margin-top: 8px; }
.kpi-spark i { flex: 1; border-radius: 3px 3px 1px 1px; background: var(--surface-3); }
.kpi-spark i.cur { background: var(--c); }
.delta { display: inline-flex; align-items: center; gap: 2px; font-size: 11.5px; font-weight: 800; padding: 3px 7px; border-radius: 99px; white-space: nowrap; }
.delta .i { width: 12px; height: 12px; }
.delta.up { background: var(--success-soft); color: var(--success); }
.delta.down { background: var(--danger-soft); color: var(--danger); }
.delta.flat { background: var(--surface-2); color: var(--muted); }

.dash-grid { display: grid; gap: 22px; margin-top: 22px; }
.dash-chart { padding: 16px; }
.dash-chart-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 6px; }
.chart-title { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.dash-big { font-size: 28px; font-weight: 800; letter-spacing: -.03em; margin-top: 2px; }
.dash-cmp { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); font-weight: 600; margin-top: 2px; flex-wrap: wrap; }
.seg.mini { margin: 0; padding: 3px; border-radius: 12px; flex: none; }
.seg.mini button { padding: 6px 9px; font-size: 12px; border-radius: 9px; }
.vbars { position: relative; display: flex; align-items: stretch; gap: 6px; height: 190px; padding-top: 18px; margin-top: 8px; }
.vbar { flex: 1; position: relative; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; outline: none; }
.vbar i { width: 100%; max-width: 38px; min-height: 4px; border-radius: 4px 4px 2px 2px; background: color-mix(in srgb, var(--c) 30%, var(--surface-2)); transition: height .5s var(--ease), background .2s; }
.vbar.cur i, .vbar:hover i, .vbar:focus i { background: var(--c); }
.vbar.future i { background: transparent; border: 1.5px dashed var(--line-strong); }
.vbar span { font-size: 11px; font-weight: 700; color: var(--faint); text-transform: capitalize; height: 14px; }
.vbar.cur span { color: var(--text); }
.vbar em { font-style: normal; font-size: 11.5px; font-weight: 800; color: var(--text); white-space: nowrap; }
.vbar .tip {
  position: absolute; bottom: calc(100% - 10px); left: 50%; transform: translateX(-50%); z-index: 3;
  background: var(--ink); color: var(--on-ink); padding: 7px 10px; border-radius: 10px; font-size: 11.5px; white-space: nowrap;
  pointer-events: none; opacity: 0; transition: opacity .15s;
}
.vbar .tip b { display: block; font-size: 13.5px; }
.vbar:hover .tip, .vbar:focus .tip { opacity: 1; }
.vbar:hover em, .vbar:focus em { visibility: hidden; }
.avg-line { position: absolute; left: 0; right: 0; border-top: 1.5px dashed var(--faint); z-index: 2; pointer-events: none; }
.avg-line span { position: absolute; right: 0; top: -18px; font-size: 10.5px; font-weight: 700; color: var(--muted); background: var(--surface); padding: 0 4px; border-radius: 4px; }

.prog-row { display: flex; gap: 12px; align-items: center; padding: 13px 14px; width: 100%; text-align: left; position: relative; }
.prog-row + .prog-row::before { content: ""; position: absolute; top: 0; left: 60px; right: 0; border-top: 1px solid var(--line); }
.prog-main { flex: 1; min-width: 0; }
.prog-top { display: flex; justify-content: space-between; gap: 8px; }
.prog-top b { font-size: 14.5px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prog-top span { font-weight: 800; font-size: 14px; }
.prog-bar { display: flex; gap: 2px; height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; margin: 7px 0 5px; }
.prog-bar i { display: block; height: 100%; }
.prog-bar i.base { background: color-mix(in srgb, var(--c) 35%, var(--surface-2)); }
.prog-bar i.gain { background: var(--c); border-radius: 0 99px 99px 0; }
.prog-main small { font-size: 12px; color: var(--muted); font-weight: 600; }
.prog-main small strong { color: var(--text); }

.dash-heat { padding: 16px; margin-top: 14px; }
.dash-heat-sub { font-size: 13px; color: var(--muted); font-weight: 600; margin: 4px 0 12px; }
.dash-heat-sub b { color: var(--text); font-size: 16px; }
.mcal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.mcal .dow { font-size: 10.5px; font-weight: 800; color: var(--faint); text-align: center; }
.mcal i { aspect-ratio: 1; max-height: 46px; border-radius: 9px; display: grid; place-items: center; font-style: normal; font-size: 12px; font-weight: 700; color: var(--muted); }
.mcal i.blank { visibility: hidden; }
.lv0 { background: var(--surface-2); }
.lv1 { background: color-mix(in srgb, var(--accent) 22%, var(--surface-2)); }
.lv2 { background: color-mix(in srgb, var(--accent) 45%, var(--surface-2)); }
.lv3 { background: color-mix(in srgb, var(--accent) 70%, var(--surface-2)); color: #fff !important; }
.lv4 { background: var(--accent); color: #fff !important; }
.lvx { background: transparent; border: 1.5px dashed var(--line); color: var(--faint) !important; }
.heat-legend { display: flex; align-items: center; justify-content: flex-end; gap: 4px; font-size: 11px; color: var(--faint); font-weight: 700; margin-top: 10px; }
.heat-legend i { width: 12px; height: 12px; border-radius: 3px; }

@media (min-width: 700px) { .kpi-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); } }
@media (min-width: 960px) {
  .fab { display: none; }
  main { padding-bottom: 64px; }
  .toast { bottom: 28px; }
  .dash-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: start; }
  .vbars { height: 230px; }
}

/* ---------- entrada rápida com dados de exemplo ---------- */
.demo-box { margin-top: 22px; padding: 14px; border-radius: var(--r); background: var(--surface); border: 1px dashed var(--line-strong); }
.demo-box-title { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--accent-text); margin-bottom: 10px; }
.demo-users { display: grid; gap: 8px; }
.demo-user { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: var(--surface-2); text-align: left; transition: transform .15s; }
.demo-user:active { transform: scale(.98); }
.demo-user > span:nth-child(2) { flex: 1; min-width: 0; }
.demo-user b { display: block; font-size: 14.5px; font-weight: 800; }
.demo-user small { display: block; font-size: 12px; color: var(--muted); }
.demo-user .i-sm { color: var(--faint); }
@media (hover: hover) { .demo-user:hover { background: var(--surface-3); } }
.demo-banner { flex-wrap: wrap; }
.banner-btn { margin-left: auto; padding: 6px 12px; border-radius: 10px; background: var(--warn); color: #fff; font-size: 12.5px; font-weight: 800; white-space: nowrap; }

/* =====================================================================
   v4 — card de meta alinhado + lista de leitura
   ===================================================================== */
.goal { gap: 12px; padding: 16px 16px 14px; }
.goal-open { gap: 14px; align-items: center; }
.goal-info b { font-size: 16px; }
.rl-main { font-size: 15px; font-weight: 800; letter-spacing: -.03em; }
.rl-of { opacity: .4; font-size: 12px; }
.goal-mid { min-height: 0; }
.goal-mid .week-dots { justify-content: space-between; gap: 6px; }
.goal-mid .week-dots span { flex: 1; }
.goal-mid .week-dots i { width: 100%; max-width: 34px; height: 24px; }
.goal-mid .day-strip { gap: 4px; }
.goal-mid .day-strip i { flex: 1; width: auto; height: 24px; }
.goal-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; min-height: 38px; }
.goal-foot .pills { min-width: 0; flex: 1; }
.goal-foot .pill { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }

.book-line {
  display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 12px;
  background: color-mix(in srgb, var(--c) 8%, var(--surface-2)); font-size: 13px; color: var(--muted); font-weight: 600;
}
.book-line .i-sm { color: var(--c); }
.book-line span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.book-line strong { color: var(--text); }
.book-line em { font-style: normal; font-weight: 800; font-size: 11.5px; white-space: nowrap; color: var(--c); }

.book-row { display: flex; align-items: center; gap: 12px; padding: 10px 14px; position: relative; }
.book-row + .book-row::before { content: ""; position: absolute; top: 0; left: 60px; right: 0; border-top: 1px solid var(--line); }
.book-row .info { flex: 1; min-width: 0; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.book-row .info b { display: block; color: var(--text); font-size: 15px; font-weight: 700; overflow-wrap: anywhere; }
.book-row.done .info b { color: var(--text); }
.book-row .check { width: 30px; height: 30px; }
.book-spine.todo { background: transparent; color: var(--c); border: 2px dashed color-mix(in srgb, var(--c) 55%, transparent); box-shadow: none; }
.book-edit .book-row { padding: 8px 10px; }
.book-edit .book-spine { width: 26px; height: 34px; font-size: 11px; }
.book-edit .book-row + .book-row::before { left: 48px; }

.book-pick { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 14px; text-align: left; position: relative; }
.book-pick + .book-pick::before { content: ""; position: absolute; top: 0; left: 60px; right: 0; border-top: 1px solid var(--line); }
.book-pick b { flex: 1; font-size: 15px; font-weight: 700; }
.pick-check { width: 34px; height: 34px; border-radius: 11px; border: 2px solid var(--line-strong); display: grid; place-items: center; color: transparent; transition: all .15s; }
.pick-check .i { width: 18px; height: 18px; }
.book-pick:active .pick-check { background: var(--c); border-color: var(--c); color: #fff; }
@media (hover: hover) { .book-pick:hover .pick-check { border-color: var(--c); color: var(--c); } .book-pick:hover { background: color-mix(in srgb, var(--surface-2) 50%, transparent); } }
.opt-tag { font-style: normal; font-weight: 600; color: var(--faint); margin-left: 4px; }

@media (min-width: 960px) {
  main { max-width: 1440px; }
  .goal-grid { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
}

/* =====================================================================
   v5 — calendário grande no PC
   ===================================================================== */
.cal-day .dn { font-weight: inherit; }
.cal-evs { display: none; }

@media (min-width: 960px) {
  .agenda-grid { grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); gap: 24px; }
  .agenda-grid > :first-child { position: sticky; top: 100px; }
  .cal { padding: 18px 16px 14px; }
  .cal-head b { font-size: 20px; }
  .cal-grid { row-gap: 6px; column-gap: 6px; }
  .cal-grid .dow { text-align: left; padding: 0 8px 4px; font-size: 11.5px; }
  .cal-day {
    height: auto; min-height: 82px; margin: 0; padding: 5px;
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 4px;
    border-radius: 12px; background: color-mix(in srgb, var(--surface-2) 45%, transparent);
    border: 1px solid transparent; text-align: left; font-size: 13px; overflow: hidden;
  }
  .cal-day .dots { display: none; }
  .cal-day .dn {
    align-self: flex-start; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 99px;
    display: grid; place-items: center; font-size: 13px; font-weight: 700;
  }
  .cal-day.out { opacity: .4; }
  .cal-day.today .dn { background: var(--accent); color: #fff; }
  .cal-day.sel { background: var(--surface); border-color: var(--ink); color: var(--text); }
  .cal-day.sel .dn { background: var(--ink); color: var(--on-ink); }
  .cal-day.sel.today .dn { background: var(--accent); color: #fff; }
  .cal-day:not(.sel):hover { background: var(--surface-2); }
  .cal-evs { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
  .cal-evs em {
    display: block; font-style: normal; font-size: 11.5px; font-weight: 600; line-height: 1.3;
    padding: 3px 6px; border-radius: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    background: color-mix(in srgb, var(--accent) 14%, var(--surface)); color: var(--text);
    border-left: 3px solid var(--accent);
  }
  .cal-evs em small { font-size: 10.5px; font-weight: 800; color: var(--muted); margin-right: 4px; }
  .cal-evs em.p { background: color-mix(in srgb, var(--partner) 14%, var(--surface)); border-left-color: var(--partner); }
  .cal-evs em.s { background: color-mix(in srgb, #D6409F 14%, var(--surface)); border-left-color: #D6409F; }
  .cal-evs em.more { background: none; border: 0; color: var(--muted); font-weight: 700; padding: 0 6px; }
  .legend { justify-content: flex-start; padding-left: 6px; }
}
@media (min-width: 1500px) and (min-height: 900px) { .cal-day { min-height: 96px; } }
.cal-evs em small { display: none; }
@media (min-width: 960px) {
  .cal-evs em { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; word-break: break-word; }
  .cal-evs em.more { display: block; }
}

/* =====================================================================
   v6 — temas (paletas) e modo claro/escuro escolhidos pelo usuário
   ===================================================================== */
:root { --on-accent: #FFFFFF; }
:root[data-theme="oceano"] { --accent: #2563EB; --accent-text: #1D4ED8; --accent-soft: #E2EAFE; --bg: #F2F5FA; --surface-2: #E9EEF6; --surface-3: #DCE3EE; --hero-1: #16213A; --hero-2: #0D1424; --on-accent: #FFFFFF; --surface: #FFFFFF; }
@media (prefers-color-scheme: dark) { :root[data-theme="oceano"]:not([data-mode="light"]) { --accent: #5B8CFF; --accent-text: #8DB0FF; --accent-soft: #16213B; --bg: #0A0E16; --surface: #121826; --surface-2: #1A2234; --surface-3: #253047; --hero-1: #18233B; --hero-2: #0F1626; --on-accent: #FFFFFF; } }
:root[data-theme="oceano"][data-mode="dark"] { --accent: #5B8CFF; --accent-text: #8DB0FF; --accent-soft: #16213B; --bg: #0A0E16; --surface: #121826; --surface-2: #1A2234; --surface-3: #253047; --hero-1: #18233B; --hero-2: #0F1626; --on-accent: #FFFFFF; }
:root[data-theme="floresta"] { --accent: #1F8A5B; --accent-text: #17724A; --accent-soft: #DDF1E6; --bg: #F3F6F2; --surface-2: #E8EEE7; --surface-3: #DAE3D8; --hero-1: #14261D; --hero-2: #0C1712; --on-accent: #FFFFFF; --surface: #FFFFFF; }
@media (prefers-color-scheme: dark) { :root[data-theme="floresta"]:not([data-mode="light"]) { --accent: #3CC68A; --accent-text: #6FDCAA; --accent-soft: #13291F; --bg: #0A100D; --surface: #121A16; --surface-2: #1A251F; --surface-3: #24332B; --hero-1: #15251C; --hero-2: #0D1712; --on-accent: #FFFFFF; } }
:root[data-theme="floresta"][data-mode="dark"] { --accent: #3CC68A; --accent-text: #6FDCAA; --accent-soft: #13291F; --bg: #0A100D; --surface: #121A16; --surface-2: #1A251F; --surface-3: #24332B; --hero-1: #15251C; --hero-2: #0D1712; --on-accent: #FFFFFF; }
:root[data-theme="uva"] { --accent: #7C4DFF; --accent-text: #6334E8; --accent-soft: #ECE5FF; --bg: #F6F4FA; --surface-2: #EEEAF6; --surface-3: #E2DCEF; --hero-1: #221A3A; --hero-2: #140F24; --partner: #0E9F96; --partner-soft: #D9F3F1; --on-accent: #FFFFFF; --surface: #FFFFFF; }
@media (prefers-color-scheme: dark) { :root[data-theme="uva"]:not([data-mode="light"]) { --accent: #A48BFF; --accent-text: #C2B2FF; --accent-soft: #231C40; --bg: #0E0C14; --surface: #17141F; --surface-2: #201C2B; --surface-3: #2B2639; --hero-1: #221B38; --hero-2: #140F22; --partner: #2CC7BC; --partner-soft: #10302D; --on-accent: #FFFFFF; } }
:root[data-theme="uva"][data-mode="dark"] { --accent: #A48BFF; --accent-text: #C2B2FF; --accent-soft: #231C40; --bg: #0E0C14; --surface: #17141F; --surface-2: #201C2B; --surface-3: #2B2639; --hero-1: #221B38; --hero-2: #140F22; --partner: #2CC7BC; --partner-soft: #10302D; --on-accent: #FFFFFF; }
:root[data-theme="rosa"] { --accent: #E0427A; --accent-text: #C02862; --accent-soft: #FCE4EC; --bg: #FAF4F5; --surface-2: #F4EAEC; --surface-3: #EBDCE0; --hero-1: #2E1621; --hero-2: #1C0D14; --on-accent: #FFFFFF; --surface: #FFFFFF; }
@media (prefers-color-scheme: dark) { :root[data-theme="rosa"]:not([data-mode="light"]) { --accent: #FF6FA3; --accent-text: #FF9DC0; --accent-soft: #3A1826; --bg: #120C0F; --surface: #1C1418; --surface-2: #261C21; --surface-3: #33262C; --hero-1: #2C1620; --hero-2: #1A0D13; --on-accent: #FFFFFF; } }
:root[data-theme="rosa"][data-mode="dark"] { --accent: #FF6FA3; --accent-text: #FF9DC0; --accent-soft: #3A1826; --bg: #120C0F; --surface: #1C1418; --surface-2: #261C21; --surface-3: #33262C; --hero-1: #2C1620; --hero-2: #1A0D13; --on-accent: #FFFFFF; }
:root[data-theme="ambar"] { --accent: #E58A00; --accent-text: #A85F00; --accent-soft: #FFF0D6; --bg: #FAF7F0; --surface-2: #F2EDE2; --surface-3: #E8E0D0; --hero-1: #2A2112; --hero-2: #18130A; --on-accent: #1F1500; --surface: #FFFFFF; }
@media (prefers-color-scheme: dark) { :root[data-theme="ambar"]:not([data-mode="light"]) { --accent: #FFB020; --accent-text: #FFC659; --accent-soft: #33260F; --bg: #100E09; --surface: #1A1710; --surface-2: #242017; --surface-3: #302A1E; --hero-1: #2A2111; --hero-2: #18130A; --on-accent: #1F1500; } }
:root[data-theme="ambar"][data-mode="dark"] { --accent: #FFB020; --accent-text: #FFC659; --accent-soft: #33260F; --bg: #100E09; --surface: #1A1710; --surface-2: #242017; --surface-3: #302A1E; --hero-1: #2A2111; --hero-2: #18130A; --on-accent: #1F1500; }
:root[data-theme="menta"] { --accent: #0E9F96; --accent-text: #0A7E77; --accent-soft: #D9F3F1; --bg: #F2F7F6; --surface-2: #E6EFEE; --surface-3: #D7E4E2; --hero-1: #112725; --hero-2: #0A1817; --on-accent: #FFFFFF; --surface: #FFFFFF; }
@media (prefers-color-scheme: dark) { :root[data-theme="menta"]:not([data-mode="light"]) { --accent: #2CC7BC; --accent-text: #66DCD3; --accent-soft: #10302D; --bg: #091110; --surface: #111B1A; --surface-2: #192625; --surface-3: #233332; --hero-1: #122826; --hero-2: #0A1817; --on-accent: #FFFFFF; } }
:root[data-theme="menta"][data-mode="dark"] { --accent: #2CC7BC; --accent-text: #66DCD3; --accent-soft: #10302D; --bg: #091110; --surface: #111B1A; --surface-2: #192625; --surface-3: #233332; --hero-1: #122826; --hero-2: #0A1817; --on-accent: #FFFFFF; }
:root[data-theme="grafite"] { --accent: #2E3138; --accent-text: #2E3138; --accent-soft: #E6E6E9; --bg: #F4F4F5; --surface-2: #EBEBED; --surface-3: #DEDEE2; --hero-1: #26282E; --hero-2: #141518; --on-accent: #FFFFFF; --surface: #FFFFFF; }
@media (prefers-color-scheme: dark) { :root[data-theme="grafite"]:not([data-mode="light"]) { --accent: #E4E5E9; --accent-text: #F1F1F3; --accent-soft: #2A2C31; --bg: #0C0C0D; --surface: #161618; --surface-2: #1F1F22; --surface-3: #2A2A2E; --hero-1: #232428; --hero-2: #141416; --on-accent: #111214; } }
:root[data-theme="grafite"][data-mode="dark"] { --accent: #E4E5E9; --accent-text: #F1F1F3; --accent-soft: #2A2C31; --bg: #0C0C0D; --surface: #161618; --surface-2: #1F1F22; --surface-3: #2A2A2E; --hero-1: #232428; --hero-2: #141416; --on-accent: #111214; }

/* texto sobre a cor de destaque */
.tab-add, .fab, .btn.accent, .seg button.on .count-badge, .cal-day.today .dn, .lv3, .lv4, .banner-btn { color: var(--on-accent) !important; }

/* ---------- Aparência ---------- */
.appear { padding: 16px; }
.appear .label { margin-top: 2px; }
.theme-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 16px; }
.theme-sw {
  display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 12px 4px 10px; border-radius: 16px;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-size: 12px; font-weight: 700; color: var(--muted);
  transition: box-shadow .15s, transform .15s;
}
.theme-sw:active { transform: scale(.96); }
.theme-sw.on { box-shadow: inset 0 0 0 2px var(--sw); color: var(--text); }
.sw-dot { position: relative; width: 38px; height: 38px; border-radius: 50%; background: conic-gradient(var(--sw) 0 50%, var(--sw2) 50% 100%); box-shadow: 0 0 0 3px var(--surface), 0 0 0 4px var(--line); }
.theme-sw.on .sw-dot::after { content: ""; position: absolute; inset: 11px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.25); }
.appear .seg { margin-bottom: 0; }
.mode-preview { display: flex; gap: 6px; align-items: center; }
@media (min-width: 700px) { .theme-grid { grid-template-columns: repeat(8, 1fr); } }


/* =====================================================================
   v7 — texto decorativo de fundo
   ===================================================================== */
main { position: relative; isolation: isolate; }
.watermark {
  position: absolute; z-index: -1; left: 0; right: 0; top: -18px;
  overflow: hidden; pointer-events: none; user-select: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 35%, transparent 95%);
          mask-image: linear-gradient(to bottom, #000 35%, transparent 95%);
}
.watermark span {
  display: block; white-space: nowrap; line-height: .82;
  font-size: clamp(88px, 27vw, 150px); font-weight: 800; letter-spacing: -.055em;
  color: color-mix(in srgb, var(--accent) 11%, transparent);
  padding-left: 12px;
  animation: wmIn .6s var(--ease);
}
@keyframes wmIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.view-enter > *:not(.watermark) { position: relative; }

/* dentro dos cards escuros de destaque */
.hero, .dash-hero { position: relative; overflow: hidden; }
.hero > *:not(.hero-wm), .dash-hero > *:not(.hero-wm) { position: relative; z-index: 1; }
.hero-wm {
  position: absolute; z-index: 0; right: -8px; bottom: -26px;
  font-size: 116px; font-weight: 800; letter-spacing: -.06em; line-height: 1;
  color: rgba(255, 255, 255, .055); pointer-events: none; user-select: none; white-space: nowrap;
}

@media (min-width: 960px) {
  .watermark { top: -34px; }
  .watermark span { font-size: clamp(150px, 15vw, 250px); padding-left: 0; margin-left: -8px; }
  .hero-wm { font-size: 150px; bottom: -36px; }
}

/* v7.1 — palavra de fundo atrás do título (cortada pela borda) */
.topbar { overflow: hidden; isolation: isolate; }
.topbar .watermark {
  top: auto; left: auto; right: -6px; bottom: -.36em; z-index: -1;
  font-size: clamp(84px, 25vw, 124px);
  -webkit-mask-image: linear-gradient(to left, #000 55%, transparent 100%);
          mask-image: linear-gradient(to left, #000 55%, transparent 100%);
}
.topbar .watermark span { font-size: 1em; padding: 0; margin: 0; color: color-mix(in srgb, var(--accent) 14%, transparent); }
.topbar > div:not(.watermark) { position: relative; z-index: 1; }
@media (min-width: 960px) {
  .topbar .watermark { font-size: 176px; right: 24px; bottom: -.4em; }
}
.topbar .watermark span { color: color-mix(in srgb, var(--accent) 20%, transparent); }
@media (prefers-color-scheme: dark) { :root:not([data-mode="light"]) .topbar .watermark span { color: color-mix(in srgb, var(--accent) 15%, transparent); } }
:root[data-mode="dark"] .topbar .watermark span { color: color-mix(in srgb, var(--accent) 15%, transparent); }

/* =====================================================================
   v8 — aprovação de contas
   ===================================================================== */
.tab { position: relative; }
.tab-badge {
  position: absolute; top: 6px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 99px; background: var(--danger); color: #fff; font-style: normal; font-size: 10.5px; font-weight: 800;
  display: grid; place-items: center; box-shadow: 0 0 0 2px var(--surface);
}
.count-badge.alert { background: var(--danger); color: #fff; }

.admin-alert {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; margin-bottom: 14px;
  padding: 13px 16px; border-radius: var(--r); background: var(--danger-soft); color: var(--danger); font-size: 14px; font-weight: 600;
  border: 1px solid color-mix(in srgb, var(--danger) 25%, transparent);
}
.admin-alert span { flex: 1; }
.admin-alert b { font-weight: 800; }

.adm-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; position: relative; }
.adm-row + .adm-row::before { content: ""; position: absolute; top: 0; left: 64px; right: 0; border-top: 1px solid var(--line); }
.adm-txt { flex: 1; min-width: 0; }
.adm-txt b { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 15px; font-weight: 700; }
.adm-txt small { display: block; font-size: 12.5px; color: var(--muted); font-weight: 600; overflow-wrap: anywhere; }
.adm-act { display: flex; gap: 6px; flex: none; }
.adm-btn { display: inline-flex; align-items: center; gap: 4px; padding: 8px 12px; border-radius: 11px; font-size: 13px; font-weight: 800; background: var(--surface-2); color: var(--text); }
.adm-btn.ok { background: var(--success); color: #fff; }
.adm-btn.no { background: var(--danger-soft); color: var(--danger); }
.adm-more { margin-top: 10px; }
.adm-more summary { cursor: pointer; font-size: 13px; font-weight: 700; color: var(--muted); padding: 6px 4px; list-style: none; }
.adm-more summary::before { content: "▸ "; }
.adm-more[open] summary::before { content: "▾ "; }
.adm-more .list { margin-top: 6px; }
@media (max-width: 420px) { .adm-row { flex-wrap: wrap; } .adm-act { width: 100%; padding-left: 52px; } .adm-act .adm-btn { flex: 1; justify-content: center; } }

.pending-box { text-align: left; }
.pending-icon { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; margin-bottom: 18px; background: var(--warn-soft); color: var(--warn); }
.pending-icon .i { width: 30px; height: 30px; }
.pending-icon.rej { background: var(--danger-soft); color: var(--danger); }
.steps { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 4px; }
.steps li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 14px; color: var(--faint); font-weight: 700; font-size: 14.5px; }
.steps li .i-sm { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--surface-2); flex: none; margin-top: 1px; }
.steps li small { display: block; font-weight: 500; font-size: 12.5px; color: var(--muted); }
.steps li.done { color: var(--text); }
.steps li.done .i-sm { background: var(--success); color: #fff; }
.steps li.now { color: var(--text); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.steps li.now .i-sm { background: var(--warn); color: #fff; }
.hint .i-sm { display: inline-block; vertical-align: -3px; }

/* =====================================================================
   v9 — vínculos por código
   ===================================================================== */
.links-chip { margin-left: auto; color: var(--partner); }
.links-chip .count-badge { background: var(--partner-soft); color: var(--partner); }
.link-inline { display: inline-flex; align-items: center; gap: 5px; color: var(--accent-text); font-weight: 700; font-size: 13px; padding: 4px 2px; }
.field .link-inline { margin-top: 10px; }
.link-code { padding: 16px; text-align: center; }
.link-code .label { text-align: left; }
.code-big {
  font-size: 38px; font-weight: 800; letter-spacing: .06em; margin: 6px 0 4px;
  color: var(--partner); font-variant-numeric: tabular-nums; user-select: all;
}
.code-big.expired { color: var(--faint); text-decoration: line-through; }
.code-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 14px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.link-use { padding: 14px 16px 16px; margin-top: 10px; }
.link-use input { letter-spacing: .08em; font-weight: 700; }
.user-row .adm-txt { flex: 1; }
@media (max-width: 400px) { .code-big { font-size: 32px; } }

/* =====================================================================
   v10 — notificações
   ===================================================================== */
.top-actions { position: relative; z-index: 1; }
.bell {
  position: relative; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface); color: var(--muted); box-shadow: 0 0 0 1px var(--line);
}
.bell .i { width: 20px; height: 20px; }
.bell.has { color: var(--text); }
.bell.has .i { animation: ring 1.2s var(--ease) 1; transform-origin: 50% 10%; }
@keyframes ring { 0%, 100% { transform: rotate(0); } 15% { transform: rotate(14deg); } 30% { transform: rotate(-12deg); } 45% { transform: rotate(8deg); } 60% { transform: rotate(-5deg); } }
.bell-badge {
  position: absolute; top: -3px; right: -3px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 99px;
  background: var(--danger); color: #fff; font-style: normal; font-size: 10.5px; font-weight: 800;
  display: grid; place-items: center; box-shadow: 0 0 0 2px var(--bg);
}
.notif { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; text-align: left; position: relative; }
.notif + .notif::before { content: ""; position: absolute; top: 0; left: 62px; right: 0; border-top: 1px solid var(--line); }
.notif.unread { background: color-mix(in srgb, var(--partner) 6%, transparent); }
.notif-ic { width: 36px; height: 36px; border-radius: 12px; flex: none; display: grid; place-items: center; background: var(--surface-2); color: var(--muted); }
.notif-ic .i { width: 18px; height: 18px; }
.notif-ic.new { background: var(--partner-soft); color: var(--partner); }
.notif-ic.edit { background: var(--warn-soft); color: var(--warn); }
.notif-ic.del { background: var(--danger-soft); color: var(--danger); }
.notif-ic.link { background: var(--success-soft); color: var(--success); }
.notif-txt { flex: 1; min-width: 0; font-size: 14.5px; line-height: 1.35; }
.notif-txt b { font-weight: 800; }
.notif-txt small { display: block; color: var(--muted); font-size: 12.5px; font-weight: 600; margin-top: 2px; }
.notif-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--partner); flex: none; }
@media (min-width: 960px) { .topbar .top-actions { margin-right: 4px; } }

/* =====================================================================
   v11 — tela Acessos (admin)
   ===================================================================== */
.acc-wrap { max-width: 900px; }
.acc-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.acc-stats .tile b { font-size: 24px; }
@media (min-width: 700px) { .acc-stats { grid-template-columns: repeat(4, 1fr); } }
.acc-row { display: flex; align-items: flex-start; gap: 12px; padding: 14px; position: relative; }
.acc-row + .acc-row::before { content: ""; position: absolute; top: 0; left: 64px; right: 0; border-top: 1px solid var(--line); }
.acc-main { flex: 1; min-width: 0; }
.acc-top { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.acc-top b { font-size: 15.5px; font-weight: 800; }
.acc-mail { font-size: 13px; color: var(--muted); font-weight: 600; overflow-wrap: anywhere; margin-top: 1px; }
.acc-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 6px; font-size: 12px; color: var(--muted); font-weight: 600; }
.acc-meta span { display: inline-flex; align-items: center; gap: 4px; }
.acc-meta .i-sm { width: 13px; height: 13px; }
.acc-row .adm-act { align-self: center; }
@media (max-width: 520px) { .acc-row { flex-wrap: wrap; } .acc-row .adm-act { width: 100%; padding-left: 52px; } .acc-row .adm-act .adm-btn { flex: 1; justify-content: center; } }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
/* menu com 7 abas no celular (admin) */
.tabbar[style*="--tabs:7"] .tab { font-size: 9px; }
.tabbar[style*="--tabs:7"] .tab .i { width: 21px; height: 21px; }

/* =====================================================================
   v12 — marca Repeat
   ===================================================================== */
.brand > span { display: flex; flex-direction: column; line-height: 1.1; }
.brand small { font-size: 10.5px; font-weight: 700; color: var(--muted); letter-spacing: .02em; margin-top: 3px; }
.brand-login { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.brand-login .logo { margin: 0; }
.brand-login b { display: block; font-size: 24px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.brand-login small { display: block; font-size: 12.5px; font-weight: 700; color: var(--accent-text); letter-spacing: .03em; margin-top: 5px; }

/* =====================================================================
   v13 — projetos, retrospectiva e aba Mais
   ===================================================================== */
/* menu: no celular só as principais + "Mais"; no PC tudo no menu lateral */
.tabbar .desk-only { display: none; }
@media (min-width: 960px) {
  .tabbar .desk-only { display: flex; }
  .tabbar .mob-only { display: none; }
}

/* projetos */
.proj.is-done { opacity: .86; }
.psteps { display: grid; gap: 2px; margin: -2px -6px 0; }
.pstep { display: flex; align-items: center; gap: 10px; padding: 7px 6px; border-radius: 10px; text-align: left; font-size: 14px; font-weight: 600; }
.pstep .check { width: 22px; height: 22px; border-radius: 7px; border-color: color-mix(in srgb, var(--c) 45%, var(--line-strong)); }
.pstep .check svg { width: 13px; height: 13px; }
.pstep .check.on { background: var(--c); border-color: var(--c); }
.pstep span:last-child { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pstep.ticking span:last-child { text-decoration: line-through; color: var(--faint); }
@media (hover: hover) { .pstep:hover { background: var(--surface-2); } }
.pmore { font-size: 12.5px; font-weight: 700; color: var(--muted); padding: 4px 6px; text-align: left; }
.step-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 14px; position: relative; }
.step-row + .step-row::before { content: ""; position: absolute; top: 0; left: 52px; right: 0; border-top: 1px solid var(--line); }
.step-main { flex: 1; min-width: 0; text-align: left; }
.step-main b { display: block; font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.step-main b em { font-style: normal; color: var(--faint); font-weight: 700; margin-right: 2px; }
.step-main small { display: block; font-size: 12px; color: var(--muted); font-weight: 600; }
.step-row.done .step-main b { color: var(--faint); text-decoration: line-through; }

/* chamada da retrospectiva no Início */
.retro-cta {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; margin-bottom: 14px; padding: 14px 16px;
  border-radius: var(--r); color: #fff;
  background: linear-gradient(120deg, #B45309, #E58A00 55%, #FFB020);
  box-shadow: 0 12px 28px -14px rgba(229, 138, 0, .7);
}
.retro-cta > .i { width: 26px; height: 26px; flex: none; }
.retro-cta span { flex: 1; }
.retro-cta b { display: block; font-size: 15.5px; font-weight: 800; }
.retro-cta small { display: block; font-size: 12.5px; opacity: .9; }

/* retrospectiva */
.retro-hero {
  position: relative; overflow: hidden; padding: 22px 20px 20px; border-radius: var(--r-lg); color: #fff;
  background:
    radial-gradient(110% 120% at 100% 0%, rgba(255, 176, 32, .55) 0%, transparent 55%),
    radial-gradient(90% 90% at 0% 100%, color-mix(in srgb, var(--accent) 45%, transparent) 0%, transparent 60%),
    linear-gradient(160deg, var(--hero-1), var(--hero-2));
  box-shadow: 0 18px 40px -20px rgba(22, 23, 27, .6);
}
.retro-hero > *:not(.hero-wm) { position: relative; z-index: 1; }
.retro-hero .hero-wm { font-size: 150px; right: -10px; bottom: -40px; }
.retro-hero .hero-title { font-size: 19px; margin-bottom: 16px; }
.rstats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.rstat { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 10px; padding: 12px; border-radius: 16px; background: rgba(255, 255, 255, .08); }
.rstat .i { grid-row: span 2; width: 22px; height: 22px; color: var(--c); }
.rstat b { font-size: 22px; font-weight: 800; letter-spacing: -.03em; line-height: 1.05; }
.rstat span { font-size: 12px; font-weight: 600; color: rgba(255, 255, 255, .75); }
.retro-print { margin-top: 16px; background: rgba(255, 255, 255, .12) !important; color: #fff !important; }
.retro-grid { display: grid; gap: 14px; margin-top: 16px; }
.retro-card { padding: 16px; }
.retro-card .chart-title { margin-bottom: 10px; }
.retro-bars { height: 160px; }
.rlist { display: grid; gap: 2px; }
.rrow { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; }
.rrow + .rrow { border-top: 1px solid var(--line); }
.rrow > div:last-child { flex: 1; min-width: 0; }
.rrow b { display: block; font-size: 14.5px; font-weight: 700; }
.rrow small { display: block; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.rrow .prog-bar { margin: 6px 0 0; }
.okt { color: var(--success); font-weight: 800; }
.rbooks { margin: 0; padding-left: 22px; display: grid; gap: 6px; }
.rbooks li { font-size: 14.5px; }
.rbooks small { color: var(--muted); font-weight: 600; margin-left: 6px; }
@media (min-width: 700px) { .rstats { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px) {
  .rstats { grid-template-columns: repeat(5, 1fr); }
  .retro-grid { grid-template-columns: 1fr 1fr; align-items: start; }
  .retro-hero { padding: 28px; }
}

/* Mais */
.mais-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px; text-align: left; position: relative; }
.mais-item + .mais-item::before { content: ""; position: absolute; top: 0; left: 60px; right: 0; border-top: 1px solid var(--line); }
.mais-item > span { flex: 1; min-width: 0; }
.mais-item b { display: block; font-size: 15.5px; font-weight: 700; }
.mais-item small { display: block; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.mais-item > .i-sm { color: var(--faint); }

/* impressão / PDF da retrospectiva */
@media print {
  @page { margin: 14mm; }
  body { background: #fff !important; color: #111 !important; }
  .tabbar, .fab, .topbar .top-actions, .demo-banner, .dash-nav .icon-btn, .retro-print, .toast, .watermark { display: none !important; }
  .topbar, .demo-banner, main { margin-left: 0 !important; }
  .topbar { position: static; background: none; padding: 0 0 8px; }
  main { padding: 0 !important; max-width: none !important; }
  .retro-hero { box-shadow: none; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .card { box-shadow: none; break-inside: avoid; }
  .retro-grid { grid-template-columns: 1fr 1fr; }
  .vbar .tip { display: none; }
}
