/* Inter (SIL OFL 1.1) embutida — funciona sem internet. Ver fonts/LICENSE-Inter.txt */
@font-face { font-family: Inter; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/inter-400.woff) format("woff"); }
@font-face { font-family: Inter; font-style: normal; font-weight: 500 600; font-display: swap; src: url(../fonts/inter-600.woff) format("woff"); }
@font-face { font-family: Inter; font-style: normal; font-weight: 650 700; font-display: swap; src: url(../fonts/inter-700.woff) format("woff"); }
@font-face { font-family: Inter; font-style: normal; font-weight: 750 900; font-display: swap; src: url(../fonts/inter-800.woff) format("woff"); }
:root {
  --bg: #eef1f5;
  --surface: #ffffff;
  --surface-2: #f5f7fa;
  --ink: #172230;
  --muted: #5a6575;
  --line: #dce2ea;
  --accent: #2747a8;
  --accent-soft: #e3e9fa;
  --on-accent: #ffffff;
  --today: #d9960f;
  --danger: #c43c3c;
  --shadow: 0 10px 30px rgba(20, 30, 50, 0.16);
  --nav-h: 64px;
  --r-lg: 18px;
  --r-md: 12px;
  --r-sm: 8px;
  color-scheme: light;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-feature-settings: "cv11", "ss01";
  font-variant-numeric: tabular-nums;
  -webkit-text-size-adjust: 100%;
}
html.dark {
  --bg: #0d1218;
  --surface: #151c26;
  --surface-2: #1b2430;
  --ink: #e6ebf2;
  --muted: #97a3b4;
  --line: #263141;
  --accent: #7f9cff;
  --accent-soft: #222d4a;
  --on-accent: #0d1218;
  --today: #f0b53c;
  --danger: #ff7b7b;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.4;
  overscroll-behavior-y: none;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ic { width: 20px; height: 20px; flex: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Cor do item: --c muda conforme o tema */
.tint { --c: var(--cl); }
html.dark .tint { --c: var(--cdk); }

/* ---------- Estrutura ---------- */
#app {
  max-width: 780px;
  margin: 0 auto;
  min-height: 100%;
  padding: calc(env(safe-area-inset-top, 0px) + 6px) 12px calc(var(--nav-h) + env(safe-area-inset-bottom, 0px) + 92px);
}
.topbar { display: flex; align-items: center; gap: 8px; padding: 6px 2px 10px; }
.topbar h1 { font-size: 22px; margin: 0; letter-spacing: -0.01em; flex: 1; font-weight: 750; }
.brand-plus { color: var(--accent); }
.brand-chip { display: inline-flex; align-items: center; gap: 1px; padding: 3px 11px 4px; border-radius: 12px;
  background: #3b4049; color: #fff; font-size: 22px; font-weight: 800; letter-spacing: 0.01em; line-height: 1.15; }
.brand-chip b { color: #ffb830; font-weight: 800; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent;
  display: grid; place-items: center; color: var(--ink);
}
.icon-btn:active { background: var(--line); }

/* ---------- Painel "hoje" ---------- */
.now { display: grid; grid-template-columns: 1.35fr 1fr; gap: 8px; margin-bottom: 14px; }
.now-card {
  background: var(--surface); border-radius: var(--r-lg); padding: 14px; border: 0; text-align: left;
  display: flex; flex-direction: column; gap: 4px; min-width: 0;
}
.now-card .lbl { font-size: 13px; color: var(--muted); }
.status { font-size: 21px; font-weight: 750; line-height: 1.15; display: flex; align-items: center; gap: 6px; }
.status .ic { width: 22px; height: 22px; color: var(--c); }
.status.off { color: var(--muted); }
.now-card .time { font-size: 15px; font-weight: 600; }
.progress { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; margin-top: 6px; }
.progress > i { display: block; height: 100%; background: var(--c); border-radius: 3px; }
.counts { display: flex; gap: 12px; font-size: 13px; color: var(--muted); margin-top: 6px; flex-wrap: wrap; }
.counts span { display: inline-flex; align-items: center; gap: 4px; }
.counts .ic { width: 15px; height: 15px; }
.next .date { font-size: 18px; font-weight: 750; }
.next .when { font-size: 13px; color: var(--muted); }
.next .t { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; min-width: 0; }
.next .t .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--c); flex: none; }

/* ---------- Calendário ---------- */
.monthbar { display: flex; align-items: center; gap: 4px; margin-bottom: 8px; }
.monthbar h2 { flex: 1; margin: 0 0 0 4px; font-size: 19px; font-weight: 700; }
.monthbar h2 span { color: var(--muted); font-weight: 500; }
.pill-btn {
  border: 1px solid var(--line); background: var(--surface); border-radius: 999px; height: 36px; padding: 0 14px;
  font-size: 14px; font-weight: 600;
}
.dow { display: grid; grid-template-columns: repeat(7, 1fr); font-size: 12px; color: var(--muted); text-align: center; padding: 0 0 4px; }
.grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; touch-action: pan-y; }
.day {
  position: relative; min-height: 78px; border: 0; padding: 4px 3px 3px; border-radius: var(--r-sm);
  background: var(--surface); text-align: left; display: flex; flex-direction: column; gap: 2px; min-width: 0; overflow: hidden;
}
.day.out { opacity: 0.38; }
.day.duty { background: var(--surface); }
.day > .duty-bg { position: absolute; inset: 0; display: flex; pointer-events: none; z-index: 0; }
.day > .duty-bg i { flex: 1; background: color-mix(in srgb, var(--c) 17%, var(--surface)); box-shadow: inset 0 3px 0 var(--c); }
.day.multi > .duty-bg i { background: color-mix(in srgb, var(--c) 24%, var(--surface)); box-shadow: inset 0 4px 0 var(--c); }
.day.multi > .duty-bg i + i { border-left: 1px solid var(--surface); }
.day > :not(.duty-bg) { position: relative; z-index: 1; }
.multi-svc { display: flex; flex-direction: column; gap: 3px; margin: 6px 0 2px; font-size: 13px; }
.multi-svc .t { display: flex; align-items: center; gap: 6px; }
.multi-svc .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--c); flex: none; }
.day .top { display: flex; align-items: center; justify-content: space-between; gap: 2px; }
.day .top .bl { width: 11px; height: 11px; color: var(--muted); margin-right: 1px; }
.day .num { font-size: 13px; font-weight: 650; line-height: 1; padding: 2px 3px; align-self: flex-start; border-radius: 6px; display: flex; align-items: center; gap: 2px; }
.day .num .ic { width: 11px; height: 11px; color: var(--c); }
.day.today { outline: 2.5px solid var(--today); outline-offset: -2.5px; }
.day.today .num { background: var(--today); color: #1a1406; }
.day.sel { outline: 2.5px solid var(--accent); outline-offset: -2.5px; }
.ln {
  display: flex; align-items: center; gap: 3px; font-size: 10.5px; line-height: 1.25; white-space: nowrap; overflow: hidden;
  border-radius: 4px; padding: 1px 3px 1px 2px; min-width: 0;
}
.ln .bar { width: 3px; align-self: stretch; border-radius: 2px; background: var(--c); flex: none; }
.ln .ic { width: 10px; height: 10px; flex: none; }
.ln .tx { overflow: hidden; text-overflow: ellipsis; }
.ln.done .tx { text-decoration: line-through; color: var(--muted); }
.ln .bl { width: 9px; height: 9px; color: var(--muted); }
.ln.svc { font-weight: 700; padding-left: 4px; padding-right: 1px; letter-spacing: -0.02em; box-shadow: inset 2.5px 0 0 var(--c); border-radius: 2px; }
.ln.svc .tx { text-overflow: clip; }
.ln .bar + .tx { margin-left: 0; }
.more { font-size: 10px; color: var(--muted); padding-left: 4px; }
.legend { display: flex; gap: 14px; justify-content: flex-start; padding: 0 4px; font-size: 12px; color: var(--muted); margin: 12px 0 0; flex-wrap: wrap; }
.legend span { display: inline-flex; gap: 5px; align-items: center; }
.legend .ic { width: 14px; height: 14px; }
.legend .sw { width: 14px; height: 14px; border-radius: 4px; background: color-mix(in srgb, var(--accent) 18%, var(--surface)); box-shadow: inset 0 3px 0 var(--accent); }
.legend .sw.t { background: var(--surface); outline: 2px solid var(--today); outline-offset: -2px; box-shadow: none; }

/* ---------- Listas ---------- */
.section-h { display: flex; align-items: baseline; justify-content: space-between; margin: 20px 4px 8px; }
.section-h h2, .section-h h3 { margin: 0; font-size: 17px; font-weight: 700; }
.section-h small { color: var(--muted); font-size: 13px; }
.list { background: var(--surface); border-radius: var(--r-lg); overflow: hidden; }
.row {
  display: flex; align-items: center; gap: 12px; width: 100%; border: 0; background: transparent; text-align: left;
  padding: 12px 14px; min-height: 60px; border-top: 1px solid var(--line);
}
.list > .row:first-child, .list > :first-child .row { border-top: 0; }
.row .bar { width: 4px; align-self: stretch; border-radius: 2px; background: var(--c); flex: none; }
.row .main { flex: 1; min-width: 0; }
.row .title { font-weight: 600; display: flex; gap: 6px; align-items: center; min-width: 0; }
.row .title > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .sub { font-size: 13.5px; color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.row .sub span { display: inline-flex; gap: 4px; align-items: center; }
.row .sub .ic { width: 14px; height: 14px; }
.row .type-ic { color: var(--c); }
.row.done .title > span:first-child { text-decoration: line-through; color: var(--muted); }
.row .late { color: var(--danger); font-weight: 600; }
.check {
  width: 30px; height: 30px; border-radius: 9px; border: 2px solid var(--c); background: transparent; flex: none;
  display: grid; place-items: center; color: var(--on-accent); padding: 0;
}
.check .ic { width: 18px; height: 18px; opacity: 0; }
.check.on { background: var(--c); color: #fff; }
.check.on .ic { opacity: 1; }
.check-wrap { width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: transparent; padding: 0; margin: -7px -7px -7px -9px; }
.empty { padding: 26px 18px; text-align: center; color: var(--muted); background: var(--surface); border-radius: var(--r-lg); }
.empty p { margin: 0 0 12px; }
.seg { display: flex; background: var(--surface); border-radius: 999px; padding: 4px; gap: 4px; margin: 4px 0 8px; }
.seg button { flex: 1; border: 0; border-radius: 999px; height: 38px; background: transparent; font-weight: 600; color: var(--muted); }
.seg button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
.view-title { font-size: 24px; font-weight: 750; margin: 6px 4px 12px; }

/* ---------- Navegação ---------- */
.nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.nav-in { max-width: 780px; margin: 0 auto; display: grid; grid-template-columns: repeat(5, 1fr); height: var(--nav-h); }
.nav button {
  border: 0; background: transparent; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; font-size: 11.5px; color: var(--muted); font-weight: 600;
}
.nav button .ic { width: 23px; height: 23px; }
.nav button[aria-current="page"] { color: var(--accent); }
.fab {
  position: fixed; z-index: 21; right: max(18px, calc(50% - 390px + 18px));
  bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px) + 16px);
  width: 62px; height: 62px; border-radius: 20px; border: 0; background: var(--accent); color: var(--on-accent);
  display: grid; place-items: center; box-shadow: var(--shadow);
}
.fab .ic { width: 28px; height: 28px; stroke-width: 2.4; }
.fab:active { transform: scale(0.96); }

/* ---------- Painéis (bottom sheet) ---------- */
.backdrop {
  position: fixed; inset: 0; z-index: 40; background: rgba(8, 12, 18, 0.45);
  display: flex; align-items: flex-end; justify-content: center; animation: fade 0.18s ease-out;
}
.sheet {
  width: 100%; max-width: 620px; max-height: 92vh; max-height: 92dvh; background: var(--bg);
  border-radius: 22px 22px 0 0; display: flex; flex-direction: column; animation: up 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.sheet.small { background: var(--surface); }
.sheet-h { display: flex; align-items: center; gap: 8px; padding: 10px 10px 6px 18px; }
.sheet-h h2 { flex: 1; margin: 0; font-size: 19px; font-weight: 750; min-width: 0; }
.sheet-h h2 small { display: block; font-size: 13.5px; color: var(--muted); font-weight: 500; }
.grip { width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin: 8px auto 0; flex: none; }
.sheet-b { overflow-y: auto; padding: 4px 14px 16px; -webkit-overflow-scrolling: touch; }
.sheet-f { padding: 10px 14px 14px; display: flex; gap: 10px; border-top: 1px solid var(--line); background: var(--bg); }
.sheet.small .sheet-f { background: var(--surface); }
@keyframes up { from { transform: translateY(40px); opacity: 0.4; } }
@keyframes fade { from { opacity: 0; } }
@media (min-width: 700px) {
  .backdrop { align-items: center; }
  .sheet { border-radius: 22px; max-height: 86vh; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.btn {
  height: 50px; border-radius: 14px; border: 0; padding: 0 18px; font-weight: 700; font-size: 16px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.btn.primary { background: var(--accent); color: var(--on-accent); flex: 1; }
.btn.ghost { background: var(--surface-2); color: var(--ink); }
.btn.danger { background: transparent; color: var(--danger); }
.btn.block { width: 100%; }
.btn .ic { width: 19px; height: 19px; }

/* Escolha de tipo (botão +) */
.choices { display: grid; gap: 8px; padding: 6px 14px 18px; }
.choice {
  display: flex; align-items: center; gap: 14px; border: 0; background: var(--surface-2); border-radius: 16px;
  padding: 14px 16px; text-align: left; min-height: 64px;
}
.choice .ic { width: 26px; height: 26px; color: var(--accent); }
.choice b { display: block; font-size: 17px; }
.choice small { color: var(--muted); font-size: 13.5px; }

/* ---------- Formulário ---------- */
.fgroup { background: var(--surface); border-radius: var(--r-lg); padding: 4px 14px; margin-bottom: 10px; }
.field { display: flex; flex-direction: column; gap: 4px; padding: 10px 0; border-top: 1px solid var(--line); min-width: 0; }
.fgroup > .field:first-child, .fgroup > :first-child { border-top: 0; }
.field > span, .flabel { font-size: 13px; color: var(--muted); font-weight: 600; }
.field input[type="text"], .field input[type="date"], .field input[type="time"], .field input[type="number"], .field select, .field textarea {
  width: 100%; min-width: 0; border: 1px solid var(--line); background: var(--surface-2); border-radius: 10px;
  height: 46px; padding: 0 12px; font-size: 16px;
}
.field textarea { height: auto; min-height: 76px; padding: 10px 12px; resize: vertical; }
.field input.big { font-size: 19px; font-weight: 650; border: 0; background: transparent; padding: 0; height: 44px; }
.row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.row2 .field { border-top: 0; }
.hint { font-size: 13px; color: var(--muted); margin: 2px 0 0; }
.hint.warn { color: var(--today); }
.inline { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.inline input[type="number"] { width: 84px; flex: none; }
.inline select { flex: 1; width: auto; min-width: 120px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  border: 1px solid var(--line); background: var(--surface-2); border-radius: 999px; min-height: 38px; padding: 0 14px;
  font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 6px;
}
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.chip .x { width: 16px; height: 16px; }
.chip.rem { padding-right: 6px; }
.chip.rem button { border: 0; background: transparent; width: 30px; height: 30px; display: grid; place-items: center; padding: 0; color: var(--muted); }
.toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); min-height: 56px; }
.fgroup > .toggle:first-child { border-top: 0; }
.toggle .t b { display: block; font-weight: 600; }
.toggle .t small { color: var(--muted); font-size: 13px; }
.switch { appearance: none; -webkit-appearance: none; width: 50px; height: 30px; border-radius: 15px; background: var(--line); position: relative; flex: none; margin: 0; cursor: pointer; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform 0.15s; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.switch:checked { background: var(--accent); }
.switch:checked::after { transform: translateX(20px); }

.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(38px, 1fr)); gap: 8px; padding: 4px 0; }
.swatch {
  aspect-ratio: 1; border-radius: 50%; border: 0; background: var(--c); position: relative; padding: 0; min-height: 38px;
  display: grid; place-items: center; color: #fff;
}
.swatch .ic { width: 18px; height: 18px; opacity: 0; stroke-width: 3; filter: drop-shadow(0 0 1px rgba(0,0,0,.6)); }
.swatch[aria-checked="true"] { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--c); }
.swatch[aria-checked="true"] .ic { opacity: 1; }
.color-name { font-size: 13px; color: var(--muted); }

/* Detalhe */
.detail-head { display: flex; gap: 12px; align-items: flex-start; padding: 6px 4px 14px; }
.detail-head .badge { width: 46px; height: 46px; border-radius: 14px; background: color-mix(in srgb, var(--c) 22%, var(--surface)); color: var(--c); display: grid; place-items: center; flex: none; }
.detail-head .badge .ic { width: 25px; height: 25px; }
.detail-head h3 { margin: 0; font-size: 21px; line-height: 1.2; }
.detail-head .tp { font-size: 13px; color: var(--muted); }
.dl { background: var(--surface); border-radius: var(--r-lg); padding: 2px 14px; margin-bottom: 10px; }
.dl > div { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); align-items: flex-start; }
.dl > div:first-child { border-top: 0; }
.dl .ic { color: var(--muted); margin-top: 1px; }
.dl .v { flex: 1; min-width: 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.dl .v small { display: block; color: var(--muted); font-size: 13px; }

/* Busca */
.search-in { display: flex; gap: 8px; align-items: center; background: var(--surface); border-radius: 14px; padding: 0 12px; margin: 0 0 12px; }
.search-in input { flex: 1; border: 0; background: transparent; height: 50px; font-size: 17px; outline: none; min-width: 0; }

/* Avisos */
.toast {
  position: fixed; left: 50%; transform: translateX(-50%); z-index: 60;
  bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px) + 92px);
  background: var(--ink); color: var(--bg); padding: 12px 16px; border-radius: 14px; font-weight: 600; font-size: 14.5px;
  max-width: calc(100% - 32px); display: flex; gap: 12px; align-items: center; box-shadow: var(--shadow); animation: fade 0.2s;
}
.toast button { border: 0; background: transparent; color: var(--accent); font-weight: 800; padding: 6px; }
html.dark .toast button { color: #3550b5; }
.note { background: var(--accent-soft); border-radius: var(--r-md); padding: 12px 14px; font-size: 14px; margin-bottom: 10px; }
.note.warn { background: color-mix(in srgb, var(--today) 18%, var(--surface)); }

@media (min-width: 640px) {
  .day { min-height: 96px; padding: 6px 5px 4px; }
  .ln { font-size: 12px; }
  .ln .ic { width: 12px; height: 12px; }
  .day .num { font-size: 14px; }
}
@media (max-width: 360px) {
  .now { grid-template-columns: 1fr; }
  .day { min-height: 70px; }
}

/* botão principal dentro das linhas */
.row .main { flex: 1; min-width: 0; border: 0; background: transparent; text-align: left; padding: 2px 0; color: inherit; display: flex; flex-direction: column; gap: 2px; }
.btn.danger-fill { background: var(--danger); color: #fff; }
html.dark .btn.danger-fill { color: #1a0d0d; }
.sheet:focus { outline: none; }
@media (max-width: 639px) {
  .day .num .ic { display: none; }
}

/* ======================================================================
   Visualização do calendário: 5 formas × 5 disposições
   ====================================================================== */
.day .lines { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.day .dots { display: none; gap: 3px; justify-content: center; flex-wrap: wrap; margin-top: 2px; }
.day .dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--c); }
.day .dots i.done { opacity: 0.35; }
.day .dw { font-size: 11px; font-weight: 650; color: var(--muted); line-height: 1; padding: 2px 3px 0; }

/* ---- formas ---- */
.cal.shape-square .grid { gap: 1px; background: var(--line); border: 1px solid var(--line); }
.cal.shape-square .day, .cal.shape-square .badge { border-radius: 0; }
.cal.shape-square .strip .day { border-radius: 0; }

.cal.shape-circle .grid { gap: 4px; }
.cal.shape-circle .day { aspect-ratio: 1; min-height: 0; border-radius: 50%; align-items: center; justify-content: center; padding: 2px; gap: 0; }
.cal.shape-circle .day .lines, .cal.shape-circle .day .top .bl { display: none; }
.cal.shape-circle .day .dots { display: flex; }
.cal.shape-circle .day .top { justify-content: center; }
.cal.shape-circle .day > .duty-bg i { box-shadow: none; background: color-mix(in srgb, var(--c) 30%, var(--surface)); }
.cal.shape-circle .day.duty:not(.multi) > .duty-bg { border-radius: 50%; box-shadow: inset 0 0 0 2.5px var(--c); }
.cal.shape-circle .strip .day { flex-basis: 58px; }

.cal.shape-pill .day { border-radius: 999px; padding: 9px 3px 12px; align-items: center; min-height: 92px; }
.cal.shape-pill .day .top { justify-content: center; gap: 1px; }
.cal.shape-pill .day .lines { width: 100%; align-items: center; }
.cal.shape-pill .day .ln { justify-content: center; max-width: 100%; }
.cal.shape-pill .day .dots { display: flex; }
.cal.shape-pill .day .lines:not(:empty) + .dots { display: none; }
.cal.shape-pill .day > .duty-bg i { box-shadow: none; background: color-mix(in srgb, var(--c) 24%, var(--surface)); }
.cal.shape-pill .day.duty:not(.multi) > .duty-bg { border-radius: 999px; box-shadow: inset 0 0 0 2px var(--c); }
.cal.shape-pill .cgrid .day { min-height: 54px; }
.cal.shape-pill .badge { border-radius: 999px; height: 56px; width: 40px; }

.cal.shape-minimal .grid { gap: 0 2px; }
.cal.shape-minimal .day { background: transparent; border-radius: 0; border-top: 1px solid var(--line); }
.cal.shape-minimal .day.today { outline: none; }
.cal.shape-minimal .day.sel { outline: none; border-top: 2.5px solid var(--accent); }
.cal.shape-minimal .day > .duty-bg { inset: auto 3px 3px 3px; height: 4px; border-radius: 2px; overflow: hidden; gap: 2px; }
.cal.shape-minimal .day > .duty-bg i { background: var(--c); box-shadow: none; border: 0; border-radius: 2px; }
.cal.shape-minimal .day.duty .num .ic { color: var(--c); }
.cal.shape-minimal .badge { background: transparent; }

/* ---- disposição: vertical (linhas = dias da semana, colunas = semanas) ---- */
.vgrid { grid-template-columns: 30px repeat(var(--weeks), minmax(0, 1fr)); grid-template-rows: repeat(7, auto); grid-auto-flow: column; }
.vlab { display: flex; align-items: center; justify-content: center; font-size: 11.5px; color: var(--muted); font-weight: 600; }
.cal.shape-square .vgrid .vlab { background: var(--bg); }
.layout-vertical .day { min-height: 60px; }

/* ---- disposição: lista (linear) ---- */
.lgrid { display: flex; flex-direction: column; gap: 6px; }
.lrow { display: flex; gap: 10px; align-items: center; border: 0; background: var(--surface); border-radius: var(--r-sm); padding: 6px 10px 6px 6px; text-align: left; color: inherit; width: 100%; min-height: 58px; }
.lrow.today { outline: 2.5px solid var(--today); outline-offset: -2.5px; }
.lgrid .badge { position: relative; width: 46px; height: 46px; min-height: 0; flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; border-radius: 12px; background: var(--bg); overflow: hidden; padding: 0; outline: none; aspect-ratio: auto; border-top: 0; }
.lgrid .badge .num { font-size: 17px; font-weight: 750; padding: 1px 4px; align-self: center; }
.lgrid .badge .dw { align-self: center; }
.lgrid .badge .dw { padding: 0; }
.lgrid .badge > :not(.duty-bg) { position: relative; z-index: 1; }
.cal.shape-minimal .lgrid .badge > .duty-bg { inset: auto 6px 2px 6px; }
.cal.shape-minimal .lrow { background: transparent; border-radius: 0; border-top: 1px solid var(--line); }
.cal.shape-square .lrow { border-radius: 0; }
.cal.shape-pill .lrow { border-radius: 30px; }
.cal.shape-circle .lrow { border-radius: 30px 14px 14px 30px; }
.lbody { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.li { display: flex; align-items: center; gap: 6px; font-size: 14px; min-width: 0; }
.li .bar { width: 3px; height: 16px; border-radius: 2px; background: var(--c); flex: none; }
.li .ic { width: 14px; height: 14px; color: var(--c); flex: none; }
.li .tx { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.li.done .tx { text-decoration: line-through; color: var(--muted); }
.li.free { color: var(--muted); font-size: 13px; }
.lrow > .bl { width: 14px; height: 14px; color: var(--muted); flex: none; }

/* ---- disposição: faixa (linear horizontal) ---- */
.strip { display: flex; gap: 6px; overflow-x: auto; scroll-snap-type: x proximity; padding: 3px 2px 8px; scrollbar-width: none; }
.strip::-webkit-scrollbar { display: none; }
.strip .day { flex: 0 0 64px; min-height: 108px; scroll-snap-align: center; }
.cal.shape-circle .strip .day { min-height: 0; }

/* ---- disposição: compacta (grade pequena + dia selecionado) ---- */
.cgrid .day { min-height: 46px; align-items: center; justify-content: center; padding: 3px; gap: 0; }
.cgrid .day .lines, .cgrid .day .top .bl { display: none; }
.cgrid .day .dots { display: flex; }
.cgrid .day .top { justify-content: center; }
.cal.shape-circle .cgrid { gap: 6px; padding: 0 6px; }

/* ---- dia selecionado (faixa e compacta) ---- */
.sel-day { margin-top: 14px; }
.sel-h { display: flex; align-items: center; gap: 8px; margin: 0 2px 2px; }
.sel-h h3 { flex: 1; margin: 0; font-size: 17px; font-weight: 750; }
.sel-h h3 small { display: block; font-size: 13px; color: var(--muted); font-weight: 500; }
.pill-btn { display: inline-flex; align-items: center; gap: 4px; }
.pill-btn .ic { width: 16px; height: 16px; }

/* ---- seletores visuais ---- */
.vopts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin-top: 4px; }
.vopt { border: 1.5px solid var(--line); background: var(--bg); border-radius: 12px; padding: 9px 2px 7px; display: flex; flex-direction: column; align-items: center; gap: 7px; color: var(--ink); min-height: 78px; }
.vopt[aria-pressed="true"] { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--surface)); }
.vopt .vl { font-size: 11px; font-weight: 650; line-height: 1.15; text-align: center; }
.pv { width: 34px; height: 30px; display: grid; gap: 3px; }
.pv i { background: color-mix(in srgb, var(--muted) 40%, transparent); }
.pv i:first-child { background: var(--accent); }
.pv-calShape-rounded, .pv-calShape-square, .pv-calShape-circle, .pv-calShape-minimal { grid-template-columns: 1fr 1fr; }
.pv-calShape-rounded i { border-radius: 4px; }
.pv-calShape-square { gap: 1px; } .pv-calShape-square i { border-radius: 0; }
.pv-calShape-circle { width: 30px; } .pv-calShape-circle i { border-radius: 50%; }
.pv-calShape-pill { grid-template-columns: repeat(4, 1fr); width: 30px; } .pv-calShape-pill i { border-radius: 999px; }
.pv-calShape-minimal i { background: transparent; border-bottom: 3px solid color-mix(in srgb, var(--muted) 50%, transparent); }
.pv-calShape-minimal i:first-child { background: transparent; border-bottom-color: var(--accent); }
.pv-calLayout-grid { grid-template-columns: repeat(3, 1fr); } .pv-calLayout-grid i { border-radius: 2px; }
.pv-calLayout-vertical { grid-template-columns: 1fr 1fr; width: 22px; } .pv-calLayout-vertical i { border-radius: 2px; }
.pv-calLayout-list { grid-template-columns: 1fr; gap: 2px; } .pv-calLayout-list i { border-radius: 1px; }
.pv-calLayout-strip { grid-template-columns: repeat(6, 1fr); gap: 2px; height: 22px; align-self: center; margin: 4px 0; } .pv-calLayout-strip i { border-radius: 2px; }
.pv-calLayout-compact { grid-template-columns: repeat(3, 1fr); grid-template-rows: 9px 9px 8px; } .pv-calLayout-compact i { border-radius: 50%; width: 9px; height: 9px; justify-self: center; }
.pv-calLayout-compact i:nth-child(n+4) { border-radius: 1px; height: 3px; width: 100%; align-self: end; }

/* ---- pesquisa em tela cheia, ancorada no topo (o teclado nunca cobre o campo) ---- */
.backdrop.full { align-items: stretch; }
.sheet.full { max-height: none; height: 100%; border-radius: 0; max-width: none; padding-top: env(safe-area-inset-top, 0px); animation: fade 0.15s ease-out; }
.sheet.full .grip { display: none; }
.sheet.full .search-in { position: sticky; top: 0; z-index: 2; box-shadow: 0 0 0 6px var(--bg); }
@media (min-width: 700px) {
  .backdrop.full { align-items: flex-start; }
  .sheet.full { max-width: 620px; height: auto; max-height: 86vh; border-radius: 22px; margin-top: 6vh; }
}

/* ======================================================================
   v1.3 — feriados, férias/afastamentos, trocas, resumo do mês, assistente
   ====================================================================== */
:root { --hol: #c2410c; }
html.dark { --hol: #fb923c; }

/* feriado: número do dia na cor de feriado (+ sublinhado, para não depender só da cor) */
.day.hol .num { color: var(--hol); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 2px; }
.day.hol.opt .num { text-decoration-style: dotted; }
.day.today.hol .num { color: #1a1406; }
.lgrid .badge.hol .num { color: var(--hol); text-decoration: underline; text-underline-offset: 2px; }
.li.holn { color: var(--hol); font-weight: 600; font-size: 13px; }
.li.holn .ic { color: var(--hol); }
.hol-banner { display: flex; gap: 10px; align-items: center; margin: 6px 0 4px; padding: 10px 12px; border-radius: var(--r-sm);
  background: color-mix(in srgb, var(--hol) 12%, var(--surface)); color: var(--ink); }
.hol-banner .ic { width: 20px; height: 20px; color: var(--hol); flex: none; }
.hol-banner b { display: block; font-size: 12px; color: var(--hol); text-transform: uppercase; letter-spacing: .03em; }
.legend .hl { color: var(--hol); font-weight: 700; text-decoration: underline; }

/* férias/afastamento no calendário: dia hachurado */
.day.onleave { background-image: repeating-linear-gradient(135deg, transparent 0 6px, color-mix(in srgb, var(--muted) 14%, transparent) 6px 8px); }
.ln.lv { color: var(--muted); font-weight: 650; gap: 3px; }
.ln.lv .ic, .ln.given .ic { width: 10px; height: 10px; flex: none; }
.ln.given { color: var(--muted); text-decoration: line-through; }
.row .tag { background: color-mix(in srgb, var(--muted) 14%, transparent); border-radius: 999px; padding: 1px 8px; font-size: 12.5px; color: var(--ink); }

/* troca no detalhe */
.swap-box { display: flex; gap: 10px; padding: 12px; margin: 0 0 10px; border-radius: var(--r-sm); background: color-mix(in srgb, var(--accent) 9%, var(--surface)); }
.swap-box > .ic { width: 20px; height: 20px; color: var(--accent); flex: none; margin-top: 2px; }
.swap-box .v { flex: 1; min-width: 0; }
.swap-box small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.swap-box .btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.btn.sm { height: 38px; padding: 0 12px; font-size: 14px; }
.swap-person { margin-top: 8px; }
.sp-h { display: flex; align-items: center; gap: 8px; margin: 6px 4px; flex-wrap: wrap; }
.sp-h .ic { width: 16px; height: 16px; color: var(--accent); }
.sp-h span { color: var(--muted); font-size: 13.5px; }

/* escolher escalas (férias) */
.checks { display: flex; flex-direction: column; gap: 2px; margin-top: 8px; }
.check-row { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 4px; font-weight: 600; }
.check-row input { width: 20px; height: 20px; accent-color: var(--accent); }
.check-row .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }

/* resumo do mês */
.sum-card { background: var(--surface); border-radius: var(--r-lg); padding: 6px 12px 12px; margin: 4px 0 6px; }
.sum-h { display: flex; align-items: center; gap: 4px; }
.sum-h h2 { flex: 1; margin: 0; font-size: 16.5px; font-weight: 750; text-align: center; }
.sum-h h2 span { color: var(--muted); font-weight: 500; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 6px 0 10px; }
.stat { background: var(--bg); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.stat b { font-size: 20px; font-weight: 750; line-height: 1.15; }
.stat span { font-size: 12.5px; color: var(--muted); }
.sum-series { display: flex; flex-direction: column; gap: 6px; margin: 0 2px 8px; }
.sum-series > div { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.sum-series .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c); flex: none; }
.sum-series .t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.sum-series .n { color: var(--muted); white-space: nowrap; }
.sum-card .hint { margin: 4px 2px 8px; }
.sum-card .hint .ic { width: 14px; height: 14px; vertical-align: -2px; color: var(--hol); }

/* assistente inicial */
.wiz { max-width: 520px; margin: 0 auto; padding: 4px 2px 20px; }
.wiz-dots { display: flex; gap: 6px; justify-content: center; margin: 2px 0 14px; }
.wiz-dots i { width: 26px; height: 5px; border-radius: 3px; background: var(--line); }
.wiz-dots i.on { background: var(--accent); }
.wiz-h h2 { margin: 0 0 4px; font-size: 24px; font-weight: 800; letter-spacing: -0.01em; }
.wiz-h p { margin: 0 0 16px; color: var(--muted); }
.wiz-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.wiz-opt { border: 1.5px solid var(--line); background: var(--surface); border-radius: 16px; padding: 14px 12px; text-align: left; color: var(--ink);
  display: flex; flex-direction: column; gap: 4px; min-height: 92px; justify-content: center; }
.wiz-opt b { font-size: 24px; font-weight: 800; letter-spacing: -0.01em; }
.wiz-opt small { color: var(--muted); font-size: 13px; line-height: 1.3; }
.wiz-opt:active { border-color: var(--accent); }
.wiz-opt.wide { width: 100%; margin-top: 10px; flex-direction: row; align-items: center; min-height: 64px; gap: 10px; flex-wrap: wrap; }
.wiz-opt.wide b { font-size: 17px; }
.wiz-opt.wide .ic { width: 22px; height: 22px; color: var(--accent); }
.wiz-custom.open .wiz-opt.wide { border-color: var(--accent); }
.wiz-rems { display: flex; flex-direction: column; gap: 8px; }
.wiz-rems .chip { height: 52px; font-size: 16px; justify-content: flex-start; gap: 10px; padding: 0 16px; }
.wiz-rems .chip .ic { width: 18px; height: 18px; }
.wiz-nav { display: flex; gap: 10px; margin-top: 16px; }
.wiz-nav .btn { flex: 1; }
.wiz-nav .btn.primary { flex: 2; }

/* ======================================================================
   v1.5 — cor do app, tema preto, tela "Hoje", animações, gestos, atalhos
   ====================================================================== */
button, input, select, textarea { font-family: inherit; }

/* cor do app (6 opções) */
html[data-accent="verde"] { --accent: #1d7a4c; }
html[data-accent="roxo"] { --accent: #6a3fc2; }
html[data-accent="vinho"] { --accent: #9a2847; }
html[data-accent="laranja"] { --accent: #b84e0a; }
html[data-accent="grafite"] { --accent: #39424f; }
html.dark[data-accent="verde"] { --accent: #5cd39a; }
html.dark[data-accent="roxo"] { --accent: #b49cff; }
html.dark[data-accent="vinho"] { --accent: #f28aa8; }
html.dark[data-accent="laranja"] { --accent: #ffa45e; }
html.dark[data-accent="grafite"] { --accent: #c3cad6; }
html[data-accent]:not([data-accent="azul"]) { --accent-soft: color-mix(in srgb, var(--accent) 13%, #ffffff); }
html.dark[data-accent]:not([data-accent="azul"]) { --accent-soft: color-mix(in srgb, var(--accent) 16%, #151c26); }

/* tema preto (AMOLED) */
html.dark.black { --bg: #000000; --surface: #0e0f12; --surface-2: #16181c; --line: #23262d; --shadow: 0 10px 30px rgba(0, 0, 0, 0.8); }
html.dark.black .nav { background: #000000; }

.accents { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; margin-top: 6px; }
.accent-sw { border: 0; background: transparent; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 4px 0; color: var(--muted); font-size: 11.5px; font-weight: 650; }
.accent-sw i { width: 36px; height: 36px; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 2px rgba(255,255,255,.25); transition: transform .15s; }
.accent-sw[aria-checked="true"] i { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5.5px var(--sw); transform: scale(1.04); }
.accent-sw[aria-checked="true"] { color: var(--ink); }

/* tela "Hoje" */
.now { display: flex; flex-direction: column; gap: 8px; }
.now-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.now-card.hero {
  position: relative; overflow: hidden; padding: 16px 16px 14px; gap: 3px; color: var(--on-accent);
  background: linear-gradient(140deg, var(--accent) 0%, color-mix(in srgb, var(--accent) 58%, #0a0f1f) 100%);
  box-shadow: 0 14px 30px -16px color-mix(in srgb, var(--accent) 80%, transparent);
}
html.dark .now-card.hero { background: linear-gradient(140deg, color-mix(in srgb, var(--accent) 82%, #ffffff) 0%, var(--accent) 100%); }
.now-card.hero::after {
  content: ""; position: absolute; right: -40px; top: -50px; width: 170px; height: 170px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--on-accent) 22%, transparent), transparent 70%); pointer-events: none;
}
.hero .lbl, .hero .time, .hero .counts { color: color-mix(in srgb, var(--on-accent) 80%, transparent); }
.hero .status, .hero .status .ic { color: var(--on-accent); }
.hero .status { font-size: 24px; letter-spacing: -0.01em; }
.hero .cd { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.hero .cd b { font-size: 32px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; }
.hero .cd span { font-size: 14px; font-weight: 600; opacity: .85; }
.hero .progress { background: color-mix(in srgb, var(--on-accent) 22%, transparent); }
.hero .progress > i { background: var(--on-accent); }
.hero .multi-svc .t { color: var(--on-accent); }
.hero .multi-svc .dot { box-shadow: 0 0 0 2px color-mix(in srgb, var(--on-accent) 60%, transparent); }
.now-card.mon .date { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.now-card.mon .date small { font-size: 15px; color: var(--muted); font-weight: 700; }
.now-card.mon .when { font-size: 13px; color: var(--muted); }
.now-card.mon .progress > i { background: var(--accent); }
.now-card { transition: transform .12s ease; }
.now-card:active { transform: scale(0.985); }

/* animações */
@keyframes slideFromRight { from { transform: translateX(28px); opacity: 0; } }
@keyframes slideFromLeft { from { transform: translateX(-28px); opacity: 0; } }
@keyframes viewIn { from { transform: translateY(6px); opacity: 0; } }
@keyframes pop { 0% { transform: scale(.6); } 60% { transform: scale(1.18); } 100% { transform: scale(1); } }
.cal.slide-next { animation: slideFromRight .22s cubic-bezier(.2,.8,.2,1); }
.cal.slide-prev { animation: slideFromLeft .22s cubic-bezier(.2,.8,.2,1); }
#main.fade-in { animation: viewIn .2s ease-out; }
.check.pop { animation: pop .32s cubic-bezier(.2,.8,.2,1); }
.btn, .fab, .icon-btn, .chip, .choice, .qa { transition: transform .1s ease, background-color .15s; }
.btn:active, .icon-btn:active, .chip:active, .choice:active, .qa:active { transform: scale(0.97); }

/* gestos: deslizar itens */
.swipe { position: relative; overflow: hidden; touch-action: pan-y; }
.swipe + .swipe .row { border-top: 1px solid var(--line); }
.list > .swipe:first-child .row { border-top: 0; }
.swipe .row { position: relative; z-index: 1; background: var(--surface); transition: transform .22s cubic-bezier(.2,.8,.2,1); }
.swipe.dragging .row { transition: none; }
.swipe-bg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; font-weight: 750; font-size: 14.5px; color: #fff; opacity: 0; }
.swipe-bg span { display: inline-flex; align-items: center; gap: 8px; opacity: .55; transition: opacity .12s, transform .12s; }
.swipe-bg .ic { width: 20px; height: 20px; }
.swipe[data-dir] .swipe-bg { opacity: 1; }
.swipe[data-dir="right"] .swipe-bg { background: #2f9e62; }
.swipe[data-dir="left"] .swipe-bg { background: var(--danger); }
.swipe[data-dir="right"] .sw-r, .swipe[data-dir="left"] .sw-l { visibility: hidden; }
.swipe:not([data-kind="task"])[data-dir="right"] .swipe-bg { background: var(--line); }
.swipe:not([data-kind="task"]) .sw-l { visibility: hidden; }
.swipe.armed .swipe-bg span { opacity: 1; transform: scale(1.06); }
.cal .day, .cal .lrow { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }

/* atalhos no botão + */
.qas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0 0 12px; }
.qa { border: 1.5px solid var(--line); background: var(--surface); border-radius: 14px; padding: 10px 10px; display: flex; gap: 8px; align-items: center; text-align: left; color: var(--ink); min-width: 0; min-height: 56px; }
.qa-ic { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; flex: none; background: color-mix(in srgb, var(--c) 20%, var(--surface)); color: var(--c); }
.qa-ic .ic { width: 18px; height: 18px; }
.qa-t { display: flex; flex-direction: column; min-width: 0; }
.qa-t b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qa-t small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.sum-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sum-btns .btn { padding: 0 8px; font-size: 14px; }
@media (max-width: 360px) { .now-row { grid-template-columns: 1fr; } }

/* ======================================================================
   v1.6 — Estatísticas
   ====================================================================== */
.nav-in { grid-template-columns: repeat(4, 1fr); }
.filters { display: flex; flex-direction: column; gap: 8px; margin: 2px 0 12px; }
.filters .seg { margin: 0; }
.per-nav { display: flex; align-items: center; justify-content: space-between; background: var(--surface); border-radius: 14px; padding: 2px 4px; }
.per-nav b { font-size: 17px; font-weight: 750; }
.filters .row2 { gap: 8px; }
.filters select { width: 100%; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); padding: 0 10px; font-size: 14px; font-weight: 600; }
.st-hero { border-radius: var(--r-lg); padding: 16px; margin-bottom: 8px; color: var(--on-accent); display: flex; flex-direction: column; gap: 4px; align-items: flex-start;
  background: linear-gradient(140deg, var(--accent) 0%, color-mix(in srgb, var(--accent) 58%, #0a0f1f) 100%); }
html.dark .st-hero { background: linear-gradient(140deg, color-mix(in srgb, var(--accent) 82%, #ffffff) 0%, var(--accent) 100%); }
.st-hero > span { font-size: 13.5px; font-weight: 600; opacity: .85; }
.st-hero > b { font-size: 40px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; }
.st-hero .delta, .st-hero .warn { font-size: 13px; opacity: .9; }
.st-hero .btn { margin-top: 8px; background: var(--on-accent); color: var(--accent); }
.stat .delta { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.chart { background: var(--surface); border-radius: var(--r-lg); padding: 12px 12px 10px; margin: 0 0 8px; position: relative; }
.chart figcaption { display: flex; flex-direction: column; margin: 0 2px 6px; }
.chart figcaption b { font-size: 15px; font-weight: 750; }
.chart figcaption small { font-size: 12.5px; color: var(--muted); }
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .ytick { fill: var(--muted); font-size: 10px; text-anchor: end; }
.chart .xtick { fill: var(--muted); font-size: 10px; text-anchor: middle; }
.chart .vlab { fill: var(--ink); font-size: 10.5px; font-weight: 700; text-anchor: middle; }
.chart path.tint { fill: var(--c); }
.chart path.acc { fill: var(--accent); }
.chart .hit { fill: transparent; cursor: pointer; outline: none; }
.chart .hit.on, .chart .hit:focus-visible { fill: color-mix(in srgb, var(--ink) 6%, transparent); }
.chart-tip { position: absolute; z-index: 3; width: 220px; background: var(--ink); color: var(--bg); font-size: 12.5px; font-weight: 600; line-height: 1.35;
  padding: 8px 10px; border-radius: 10px; box-shadow: var(--shadow); transform: translateY(-100%); pointer-events: none; }
.legend-list { list-style: none; margin: 8px 2px 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.legend-list.row { flex-direction: row; flex-wrap: wrap; gap: 6px 14px; }
.legend-list li { display: flex; align-items: center; gap: 7px; min-width: 0; }
.legend-list .dot { width: 10px; height: 10px; border-radius: 3px; background: var(--c); flex: none; }
.legend-list .t { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.legend-list .n { color: var(--muted); margin-left: auto; white-space: nowrap; }
.legend-list.row .n { margin-left: 2px; }
.donut-wrap { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 12px; align-items: center; }
.donut-wrap svg { width: 128px; }
.donut-seg { stroke: var(--c); cursor: pointer; }
.donut-seg.on { stroke-width: 22px; }
.dc-v { fill: var(--ink); font-size: 22px; font-weight: 800; text-anchor: middle; }
.dc-l { fill: var(--muted); font-size: 11px; text-anchor: middle; }
.dn { display: flex; gap: 2px; height: 14px; border-radius: 4px; overflow: hidden; margin: 4px 2px 0; }
.dn i { display: block; }
.dn .d, .legend-list .dot.d { background: color-mix(in srgb, var(--accent) 35%, var(--surface)); }
.dn .n, .legend-list .dot.n { background: var(--accent); }
.st-table { width: 100%; border-collapse: collapse; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.st-table th { text-align: right; font-size: 12px; color: var(--muted); font-weight: 650; padding: 4px 4px 6px; }
.st-table td { text-align: right; padding: 8px 4px; border-top: 1px solid var(--line); white-space: nowrap; }
.st-table th:first-child, .st-table td:first-child { text-align: left; white-space: normal; }
.st-table td:first-child .dot { display: inline-block; width: 9px; height: 9px; border-radius: 3px; background: var(--c); margin-right: 6px; }
.st-table tfoot td { font-weight: 750; }
.st-notes { background: var(--surface); border-radius: var(--r-lg); padding: 4px 12px; margin-bottom: 10px; font-size: 13px; color: var(--muted); }
.st-notes p { margin: 8px 0; display: flex; gap: 6px; align-items: flex-start; }
.st-notes .ic { width: 15px; height: 15px; flex: none; margin-top: 1px; }
.pay-local .pl-h { display: flex; align-items: center; gap: 8px; font-weight: 750; color: var(--ink); font-size: 15px; }
.pay-local .pl-h .dot { width: 12px; height: 12px; border-radius: 4px; background: var(--c); }
.st-tiles .stat { background: var(--surface); }
