/* =========================================================
   Agenda · Clínica de Psicologia Carolina Dziabas
   Identidade: azul-marinho do logo, cinza quente, creme e um toque de dourado.
   Fontes auto-hospedadas (SIL Open Font License) — nenhuma requisição a terceiros.
   ========================================================= */
@font-face { font-family: "DM Sans"; src: url("fonts/dm-sans-latin-wght-normal.woff2") format("woff2"); font-weight: 100 1000; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("fonts/cormorant-garamond-latin-wght-normal.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("fonts/cormorant-garamond-latin-wght-italic.woff2") format("woff2"); font-weight: 300 700; font-style: italic; font-display: swap; }

/* =========================================================
   Tokens — claro por padrão; escuro por escolha ou pelo sistema
   ========================================================= */
:root {
  --brand-navy: #20324a;
  --brand-gray: #898886;
  --accent: #b08a4e;          /* dourado discreto */
  --accent-soft: #f4ead8;

  --bg: #f4f1ec;
  --bg-elev: #f8f6f2;
  --surface: #fffdfa;
  --surface-2: #f5f1eb;
  --surface-3: #ece6dd;
  --ink: #18212f;
  --ink-2: #3c4555;
  --muted: #6c6a67;
  --line: #e6e0d6;
  --line-strong: #d3cbbe;
  --primary: #20324a;
  --primary-hover: #2c4463;
  --btn-glow: rgba(32, 50, 74, .55);
  --primary-ink: #ffffff;
  --primary-soft: #e3e9f1;
  --primary-tint: #eef2f7;
  --sem: #35557f;  --sem-soft: #e5ecf5;
  --qui: #7c5f95;  --qui-soft: #efe9f5;
  --avu: #ad6646;  --avu-soft: #f7e9e1;
  --ok: #2d7650;   --ok-soft: #e1f0e7;
  --danger: #b0413a; --danger-soft: #f8e4e1;
  --exc: #9a6c22;  --exc-soft: #f5ecda;
  --wa: #1d8a4b;
  --focus: #3a6aa6;
  --shadow-sm: 0 1px 2px rgba(24, 33, 47, .05);
  --shadow: 0 1px 2px rgba(24, 33, 47, .05), 0 8px 24px -10px rgba(24, 33, 47, .14);
  --shadow-lg: 0 30px 70px -18px rgba(24, 33, 47, .35);
  --hero: radial-gradient(110% 120% at 0% 0%, #e2e8f0 0%, transparent 52%), radial-gradient(90% 90% at 100% 100%, #f1e6d3 0%, transparent 58%), #f3efe8;
  --leaf-art: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 120 120%27%3E%3Cpath d=%27M14 112C40 96 70 64 104 16%27 fill=%27none%27 stroke=%27%2320324a%27 stroke-width=%271.6%27 stroke-linecap=%27round%27/%3E%3Cpath fill=%27%2320324a%27 d=%27M26.8 103.1Q38.2 111.2 50.7 104.9Q39.3 96.8 26.8 103.1ZM35.9 95.5Q43.9 85.2 38.6 73.3Q30.6 83.6 35.9 95.5ZM45.4 86.8Q56.0 92.7 66.2 86.1Q55.5 80.2 45.4 86.8ZM55.1 77.0Q61.1 67.5 55.6 57.8Q49.6 67.2 55.1 77.0ZM65.1 65.9Q74.5 70.1 82.6 63.8Q73.2 59.6 65.1 65.9ZM75.4 53.7Q79.8 45.5 74.7 37.7Q70.3 46.0 75.4 53.7ZM86.0 40.4Q93.9 43.3 100.2 37.8Q92.3 34.8 86.0 40.4ZM104.0 16.0Q112.7 12.4 113.2 2.9Q104.5 6.6 104.0 16.0Z%27/%3E%3C/svg%3E");
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --radius: 18px;
  --radius-sm: 12px;
  --sidebar: 256px;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --brand-navy: #ece6dc; --brand-gray: #a39d95; --accent: #d6b77f; --accent-soft: #33291a;
  --bg: #10151d; --bg-elev: #131a24; --surface: #18202b; --surface-2: #1d2633; --surface-3: #263142;
  --ink: #efe9e0; --ink-2: #cfc8bd; --muted: #a09a91; --line: #263142; --line-strong: #35425a;
  --primary: #b9cbe5; --primary-hover: #cfdcef; --primary-ink: #111a28; --primary-soft: #223147; --primary-tint: #1a2433; --btn-glow: rgba(0, 0, 0, .6);
  --sem: #9db8de; --sem-soft: #1f2d42; --qui: #c4aee0; --qui-soft: #2b2540; --avu: #e6a585; --avu-soft: #36261f;
  --ok: #7fcb9d; --ok-soft: #18301f; --danger: #f0928a; --danger-soft: #3a2221; --exc: #e0bb70; --exc-soft: #33291a;
  --wa: #5fd391; --focus: #9cc0f0;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .35);
  --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 10px 28px -10px rgba(0, 0, 0, .55);
  --shadow-lg: 0 30px 70px -18px rgba(0, 0, 0, .8);
  --hero: radial-gradient(110% 120% at 0% 0%, #1d2b40 0%, transparent 55%), radial-gradient(90% 90% at 100% 100%, #2c2418 0%, transparent 60%), #141b25;
  --leaf-art: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 120 120%27%3E%3Cpath d=%27M14 112C40 96 70 64 104 16%27 fill=%27none%27 stroke=%27%23ece6dc%27 stroke-width=%271.6%27 stroke-linecap=%27round%27/%3E%3Cpath fill=%27%23ece6dc%27 d=%27M26.8 103.1Q38.2 111.2 50.7 104.9Q39.3 96.8 26.8 103.1ZM35.9 95.5Q43.9 85.2 38.6 73.3Q30.6 83.6 35.9 95.5ZM45.4 86.8Q56.0 92.7 66.2 86.1Q55.5 80.2 45.4 86.8ZM55.1 77.0Q61.1 67.5 55.6 57.8Q49.6 67.2 55.1 77.0ZM65.1 65.9Q74.5 70.1 82.6 63.8Q73.2 59.6 65.1 65.9ZM75.4 53.7Q79.8 45.5 74.7 37.7Q70.3 46.0 75.4 53.7ZM86.0 40.4Q93.9 43.3 100.2 37.8Q92.3 34.8 86.0 40.4ZM104.0 16.0Q112.7 12.4 113.2 2.9Q104.5 6.6 104.0 16.0Z%27/%3E%3C/svg%3E");
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --brand-navy: #ece6dc; --brand-gray: #a39d95; --accent: #d6b77f; --accent-soft: #33291a;
    --bg: #10151d; --bg-elev: #131a24; --surface: #18202b; --surface-2: #1d2633; --surface-3: #263142;
    --ink: #efe9e0; --ink-2: #cfc8bd; --muted: #a09a91; --line: #263142; --line-strong: #35425a;
    --primary: #b9cbe5; --primary-hover: #cfdcef; --primary-ink: #111a28; --primary-soft: #223147; --primary-tint: #1a2433; --btn-glow: rgba(0, 0, 0, .6);
    --sem: #9db8de; --sem-soft: #1f2d42; --qui: #c4aee0; --qui-soft: #2b2540; --avu: #e6a585; --avu-soft: #36261f;
    --ok: #7fcb9d; --ok-soft: #18301f; --danger: #f0928a; --danger-soft: #3a2221; --exc: #e0bb70; --exc-soft: #33291a;
    --wa: #5fd391; --focus: #9cc0f0;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .35);
    --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 10px 28px -10px rgba(0, 0, 0, .55);
    --shadow-lg: 0 30px 70px -18px rgba(0, 0, 0, .8);
    --hero: radial-gradient(110% 120% at 0% 0%, #1d2b40 0%, transparent 55%), radial-gradient(90% 90% at 100% 100%, #2c2418 0%, transparent 60%), #141b25;
    --leaf-art: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 120 120%27%3E%3Cpath d=%27M14 112C40 96 70 64 104 16%27 fill=%27none%27 stroke=%27%23ece6dc%27 stroke-width=%271.6%27 stroke-linecap=%27round%27/%3E%3Cpath fill=%27%23ece6dc%27 d=%27M26.8 103.1Q38.2 111.2 50.7 104.9Q39.3 96.8 26.8 103.1ZM35.9 95.5Q43.9 85.2 38.6 73.3Q30.6 83.6 35.9 95.5ZM45.4 86.8Q56.0 92.7 66.2 86.1Q55.5 80.2 45.4 86.8ZM55.1 77.0Q61.1 67.5 55.6 57.8Q49.6 67.2 55.1 77.0ZM65.1 65.9Q74.5 70.1 82.6 63.8Q73.2 59.6 65.1 65.9ZM75.4 53.7Q79.8 45.5 74.7 37.7Q70.3 46.0 75.4 53.7ZM86.0 40.4Q93.9 43.3 100.2 37.8Q92.3 34.8 86.0 40.4ZM104.0 16.0Q112.7 12.4 113.2 2.9Q104.5 6.6 104.0 16.0Z%27/%3E%3C/svg%3E");
    color-scheme: dark;
  }
}

/* =========================================================
   Base
   ========================================================= */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  transition: background-color .3s ease, color .3s ease;
}
h1, h2, h3 { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 600; margin: 0; letter-spacing: -.005em; line-height: 1.1; font-variant-numeric: lining-nums; }
.chip b, .boot-text, .brand-name { font-variant-numeric: lining-nums; }
h2 em, h1 em { font-style: italic; font-weight: 500; color: var(--primary); }
button, input, select, textarea { font: inherit; color: inherit; }
button { -webkit-tap-highlight-color: transparent; }
::selection { background: var(--primary-soft); color: var(--ink); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 8px; }
.ic { width: 20px; height: 20px; flex: none; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.mt { margin-top: 14px; }
.center { justify-content: center; }
.span-all { grid-column: 1 / -1; }
.foot-note { margin-top: 18px; font-size: 13.5px; }

/* marca (cores vêm dos tokens, então acompanham o tema) */
.b-navy { fill: var(--brand-navy); }
.b-gray { fill: var(--brand-gray); }
.b-stem { fill: none; stroke: var(--brand-gray); stroke-width: .55; stroke-linecap: round; }
.b-line { fill: none; stroke: var(--brand-gray); stroke-width: .45; }
.brand-svg, .brand-logo { display: block; width: 100%; height: 100%; }

/* =========================================================
   Movimento
   ========================================================= */
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.97); } }
@keyframes sheet { from { transform: translateY(100%); } }
@keyframes breathe { 50% { transform: scale(1.06); opacity: .75; } }
@keyframes pulse { 50% { opacity: .3; } }
@keyframes shimmer { from { background-position: -200% 0; } to { background-position: 200% 0; } }
@keyframes glow { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--primary) 30%, transparent); } 50% { box-shadow: 0 0 0 6px transparent; } }

.anim > :not(.today-grid), .anim .today-grid > div:not(.side-col) > *, .anim .side-col > *, .anim .kpis > *, .anim .wk-tiles > *, .anim .plist > *, .anim .days-free > * {
  animation: rise .55s var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * 45ms);
}
.leaf { position: fixed; z-index: 200; width: 11px; height: 21px; pointer-events: none; will-change: transform, opacity; }
.leaf svg { display: block; width: 100%; height: 100%; fill: currentColor; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* modo demonstração: faixa fixa no topo, impossível de confundir com a agenda real */
.demo-bar { display: none; }
body.demo:not(.locked) .demo-bar {
  position: sticky; top: 0; z-index: 40; display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap;
  padding: 8px 16px; background: var(--accent); color: #fff; font-size: 14px; text-align: center;
  background-image: repeating-linear-gradient(135deg, transparent 0 14px, rgba(255, 255, 255, .08) 14px 28px);
}
.demo-bar .btn { background: rgba(255, 255, 255, .95); color: #20324a; border-color: transparent; min-height: 36px; }
.demo-bar .btn:hover { background: #fff; color: #20324a; border-color: transparent; }
body.demo:not(.locked) .sidebar { top: 52px; height: calc(100vh - 52px); }

/* carregando */
.boot { min-height: 70vh; display: grid; place-content: center; justify-items: center; gap: 16px; color: var(--muted); }
.boot-mark { width: 84px; height: 84px; animation: breathe 2.2s ease-in-out infinite; }
.boot-text { font-family: "Cormorant Garamond", Georgia, serif; font-size: 20px; font-style: italic; }

/* =========================================================
   Estrutura: barra lateral (computador) / abas embaixo (celular)
   ========================================================= */
.shell { display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 26px;
  padding: 24px 16px 18px; background: var(--bg-elev); border-right: 1px solid var(--line);
  isolation: isolate; overflow: hidden;
}
.sidebar::after {
  content: ""; position: absolute; z-index: -1; right: -34px; bottom: 120px; width: 170px; height: 170px;
  background: var(--leaf-art) no-repeat center / contain; opacity: .05; transform: rotate(-8deg); pointer-events: none;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 2px 4px; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 600; font-size: 23px; white-space: nowrap; line-height: 1.05; color: var(--brand-navy); }
.brand-sub { font-size: 10px; color: var(--muted); letter-spacing: .16em; text-transform: uppercase; margin-top: 5px; white-space: nowrap; }
.brand-mark { width: 54px; height: 54px; margin: -4px -2px; flex: none; display: block; transition: transform .5s var(--spring); }
.brand:hover .brand-mark { transform: rotate(-4deg) scale(1.04); }
.brand-mark.big { width: 64px; height: 64px; }

.tabs { position: relative; display: flex; flex-direction: column; gap: 4px; }
.tab-glider {
  position: absolute; left: 0; top: 0; z-index: 0; border-radius: 14px; pointer-events: none;
  background: var(--surface); box-shadow: var(--shadow); border: 1px solid var(--line);
  transition: transform .45s var(--spring), width .3s var(--ease-out), height .3s var(--ease-out), opacity .2s;
}
.tab {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 12px; padding: 11px 14px; border: 0; border-radius: 14px; min-height: 46px;
  background: none; color: var(--ink-2); font-weight: 500; cursor: pointer; text-align: left;
  transition: color .2s, background-color .2s;
}
.tab .ic { transition: transform .35s var(--spring); }
.tab:hover { color: var(--ink); background: color-mix(in srgb, var(--surface-3) 60%, transparent); }
.tab:hover .ic { transform: translateY(-1px) scale(1.06); }
.tab.active { background: var(--surface); color: var(--primary); font-weight: 600; }
.tabs.has-glider .tab.active, .tabs.has-glider .tab:hover { background: none; }
.tab.active .ic { color: var(--primary); }

.sidebar-foot { margin-top: auto; display: flex; flex-direction: column; gap: 2px; }
.side-btn {
  display: flex; align-items: center; gap: 12px; padding: 10px 14px; border: 0; border-radius: 12px; min-height: 44px;
  background: none; color: var(--muted); cursor: pointer; font-size: 14px; font-weight: 500; transition: background-color .15s, color .15s;
}
.side-btn:hover { background: var(--surface-3); color: var(--ink); }
.theme-btn .ic { transition: transform .5s var(--spring); }
.theme-btn:hover .ic { transform: rotate(-25deg); }

/* indicador de sincronização */
.sync-pill { font-size: 12.5px; }
.sync-dot { width: 20px; height: 20px; flex: none; display: grid; place-items: center; }
.sync-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); transition: background-color .3s; }
.sync-pill[data-state="ok"] .sync-dot::before { background: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); }
.sync-pill[data-state="syncing"] .sync-dot::before { background: var(--primary); animation: pulse 1s ease-in-out infinite; }
.sync-pill[data-state="offline"] .sync-dot::before { background: var(--exc); }
.sync-pill[data-state="error"] .sync-dot::before, .sync-pill[data-state="auth"] .sync-dot::before { background: var(--danger); }

/* conflitos entre aparelhos */
.conflicts { margin-bottom: 18px; border-color: color-mix(in srgb, var(--exc) 40%, var(--line)); background: linear-gradient(180deg, var(--exc-soft), var(--surface) 80%); }
.conflicts h3 .ic { color: var(--exc); }
.conflict-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 0; border-top: 1px solid var(--line); }
.conflict-row > div:first-child { display: flex; flex-direction: column; min-width: 0; }
.conflict-row span { font-size: 13px; color: var(--muted); }

/* ícone/rótulo do botão de tema conforme o tema em uso */
.theme-btn .i-sun, .theme-btn .l-sun { display: none; }
:root[data-theme="dark"] .theme-btn .i-sun, :root[data-theme="dark"] .theme-btn .l-sun { display: inline; }
:root[data-theme="dark"] .theme-btn .i-moon, :root[data-theme="dark"] .theme-btn .l-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn .i-sun, :root:not([data-theme="light"]) .theme-btn .l-sun { display: inline; }
  :root:not([data-theme="light"]) .theme-btn .i-moon, :root:not([data-theme="light"]) .theme-btn .l-moon { display: none; }
}

main { width: 100%; max-width: 1220px; margin: 0 auto; padding: 36px 40px 80px; min-width: 0; }

body.locked .shell { grid-template-columns: 1fr; }
body.locked .sidebar { display: none; }
body.locked main { max-width: none; padding: 0; }

/* =========================================================
   Componentes
   ========================================================= */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 9px 18px; border-radius: 13px; border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--ink); font-weight: 500; cursor: pointer; text-decoration: none;
  transition: background-color .18s, border-color .18s, transform .18s var(--spring), box-shadow .18s, color .18s;
}
.btn .ic { width: 18px; height: 18px; transition: transform .3s var(--spring); }
.btn:hover { background: var(--surface-2); border-color: color-mix(in srgb, var(--primary) 35%, var(--line-strong)); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn:hover .ic { transform: scale(1.08); }
.btn:active { transform: translateY(0) scale(.97); transition-duration: .06s; }
.btn:disabled { opacity: .45; cursor: default; transform: none; box-shadow: none; }
/* o brilho é uma camada fixa por cima; no hover só a cor de fundo muda (anima sem ficar vazado) */
.btn.primary {
  background-color: var(--primary); background-image: linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, 0));
  border-color: var(--primary); color: var(--primary-ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 6px 16px -8px var(--btn-glow);
}
.btn.primary:hover {
  background-color: var(--primary-hover); background-image: linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, 0));
  border-color: var(--primary-hover); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 10px 22px -10px var(--btn-glow);
}
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--surface-3); box-shadow: none; }
.btn.ok { color: var(--ok); }
.btn.danger { color: var(--danger); }
.btn.wa { color: var(--wa); }
.btn.warn { color: var(--exc); }
.btn.sm { min-height: 38px; padding: 6px 13px; font-size: 14px; border-radius: 11px; }
.btn.block { width: 100%; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 13px; border: 1px solid var(--line-strong); background: var(--surface);
  display: inline-grid; place-items: center; cursor: pointer; color: var(--ink-2);
  transition: background-color .15s, color .15s, transform .2s var(--spring);
}
.icon-btn:hover { background: var(--surface-2); color: var(--ink); transform: translateY(-1px); }
.icon-btn:active { transform: scale(.94); }
.linkbtn { background: none; border: 0; color: var(--primary); cursor: pointer; padding: 8px 0; font-weight: 600; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--primary) 35%, transparent); text-underline-offset: 3px; transition: text-decoration-color .2s; }
.linkbtn:hover { text-decoration-color: var(--primary); }
.linkbtn.inline { padding: 0; font: inherit; font-weight: 600; }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; margin-bottom: 18px; box-shadow: var(--shadow-sm);
  transition: box-shadow .25s, border-color .25s;
}
.card h3 { font-size: 23px; margin-bottom: 4px; display: flex; align-items: center; gap: 10px; }
.card h3 .ic { color: var(--accent); width: 20px; height: 20px; }
.card > p { margin: 0 0 14px; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }
.check { display: flex; align-items: flex-start; gap: 12px; padding: 9px 0; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--primary); flex: none; }
.check small { color: var(--muted); }

.empty { text-align: center; padding: 48px 16px; color: var(--muted); }
.empty::before {
  content: ""; display: block; width: 64px; height: 64px; margin: 0 auto 14px;
  background: var(--leaf-art) no-repeat center / contain; opacity: .25;
}
.empty.small::before { width: 36px; height: 36px; margin-bottom: 8px; }

/* cabeçalho das páginas */
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.page-head h2 { font-size: 40px; }
.page-head p { margin: 4px 0 0; }
.eyebrow { margin: 0 0 6px; font-size: 11.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }

/* =========================================================
   Agenda
   ========================================================= */
.page-hero { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 26px; }
.page-hero h2 { font-size: 44px; }
.stats { display: flex; gap: 10px; flex-wrap: wrap; }
.stat {
  display: flex; align-items: center; gap: 12px; padding: 11px 18px 11px 12px; min-width: 150px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-sm);
  transition: transform .25s var(--spring), box-shadow .25s;
}
.stat:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.stat-ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); }
.stat-ic.free { background: var(--qui-soft); color: var(--qui); }
.stat-ic.warn { background: var(--danger-soft); color: var(--danger); }
.stat b { display: block; font-size: 21px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat span { font-size: 12.5px; color: var(--muted); }

.toolbar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.weeknav { display: flex; align-items: center; gap: 6px; }
.week-label { font-size: 24px; }
.legend { display: flex; gap: 8px; flex-wrap: wrap; margin-left: auto; font-size: 12.5px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot.sem { background: var(--sem); }
.dot.qui { background: var(--qui); }
.dot.avu { background: var(--avu); }
.dot.exc { background: var(--exc); }

.banner {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  padding: 22px 24px; margin-bottom: 18px; border-radius: var(--radius); background: var(--hero); border: 1px solid var(--line);
}
.banner::after { content: ""; position: absolute; z-index: -1; right: -18px; top: -24px; width: 120px; height: 120px; background: var(--leaf-art) no-repeat center / contain; opacity: .08; }
.banner p { margin: 0; max-width: 520px; }
.banner .actions { display: flex; gap: 8px; flex-wrap: wrap; }

.grid-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.grid { display: grid; grid-template-columns: 64px repeat(var(--cols), minmax(0, 1fr)); }
.gh {
  position: sticky; top: 0; z-index: 1; padding: 12px 8px; text-align: center;
  background: var(--surface-2); border-bottom: 1px solid var(--line); border-left: 1px solid var(--line);
}
.gh.corner { border-left: 0; }
.gh-dia { display: block; font-weight: 600; font-size: 14px; }
.gh-data { font-size: 12.5px; color: var(--muted); }
.gh.today .gh-dia { color: var(--primary); }
.gh.today .gh-data {
  display: inline-block; margin-top: 2px; padding: 0 9px; border-radius: 999px;
  background: var(--primary); color: var(--primary-ink); font-weight: 600;
}
.hl { padding: 10px 10px 0 0; font-size: 12px; color: var(--muted); text-align: right; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.hl.exc { color: var(--exc); font-weight: 600; }
.cell { position: relative; border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 5px; min-height: 60px; display: flex; flex-direction: column; gap: 4px; }
.cell.off { background: repeating-linear-gradient(-45deg, transparent 0 7px, var(--surface-2) 7px 14px); }
.cell.today { background: var(--primary-tint); }
.cell.now { box-shadow: inset 0 2px 0 var(--accent); }
.cell.now::before { content: ""; position: absolute; left: -4px; top: -4px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: glow 2s infinite; }
.cell.past .appt, .cell.past .slot-free { opacity: .62; }
.pause {
  grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 6px; font-size: 11.5px; color: var(--muted); letter-spacing: .14em; text-transform: uppercase;
  background: repeating-linear-gradient(90deg, var(--surface-2) 0 10px, var(--surface-3) 10px 20px); border-bottom: 1px solid var(--line);
}

.appt {
  width: 100%; text-align: left; border: 0; cursor: pointer; border-radius: 11px; padding: 7px 10px 7px 13px;
  display: flex; flex-direction: column; min-width: 0; position: relative;
  background: var(--sem-soft); color: var(--ink); transition: transform .2s var(--spring), box-shadow .2s;
}
.appt::before { content: ""; position: absolute; left: 4px; top: 7px; bottom: 7px; width: 3px; border-radius: 3px; background: var(--sem); }
.appt:hover { transform: translateY(-2px); box-shadow: var(--shadow); z-index: 2; }
.appt:active { transform: scale(.98); }
.appt.fq-qui { background: var(--qui-soft); }
.appt.fq-qui::before { background: var(--qui); }
.appt.fq-avu, .appt.fq-rep { background: var(--avu-soft); }
.appt.fq-avu::before, .appt.fq-rep::before { background: var(--avu); }
.appt-name { font-weight: 600; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.appt-sub { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.appt.st-realizada .appt-sub { color: var(--ok); font-weight: 600; }
.appt.st-falta { background: var(--danger-soft); }
.appt.st-falta::before { background: var(--danger); }
.appt.st-falta .appt-sub { color: var(--danger); font-weight: 600; }
.appt.st-desmarcada, .appt.st-remarcada { background: transparent; box-shadow: inset 0 0 0 1px var(--line-strong); }
.appt.st-desmarcada::before, .appt.st-remarcada::before { background: var(--line-strong); }
.appt.st-desmarcada .appt-name, .appt.st-remarcada .appt-name { text-decoration: line-through; color: var(--muted); font-weight: 500; }
.tag-online { font-size: 10.5px; font-weight: 600; padding: 0 6px; border-radius: 6px; background: var(--surface); color: var(--ink-2); margin-left: 3px; }

.slot-free {
  flex: 1; min-height: 44px; width: 100%; border: 1px dashed transparent; border-radius: 11px; background: none;
  color: color-mix(in srgb, var(--muted) 55%, transparent); cursor: pointer; font-size: 12.5px;
  transition: background-color .2s, border-color .2s, color .2s;
}
.cell:hover .slot-free, .slot-free:focus-visible { border-color: color-mix(in srgb, var(--primary) 40%, var(--line-strong)); color: var(--primary); background: var(--primary-tint); }
.slot-free.exc { color: color-mix(in srgb, var(--exc) 60%, transparent); }

/* lista do celular */
.daylist { display: none; }
.daychips { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(58px, 1fr); gap: 8px; overflow-x: auto; padding: 2px 2px 12px; margin-bottom: 4px; scrollbar-width: none; }
.chip {
  border: 1px solid var(--line); background: var(--surface); border-radius: 16px; padding: 8px 6px; cursor: pointer; min-height: 60px;
  display: flex; flex-direction: column; align-items: center; color: var(--muted); font-size: 12.5px; font-weight: 500;
  transition: transform .25s var(--spring), background-color .2s, box-shadow .2s;
}
.chip:active { transform: scale(.95); }
.chip b { font-size: 22px; color: var(--ink); font-family: "Cormorant Garamond", Georgia, serif; line-height: 1.1; }
.chip.on { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); box-shadow: var(--shadow); transform: translateY(-2px); }
.chip.on b { color: var(--primary-ink); }
.chip.today:not(.on) { border-color: var(--accent); color: var(--accent); }
.lrows { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.lrow { display: grid; grid-template-columns: 54px minmax(0, 1fr); }
.lrow .cell { border-left: 1px solid var(--line); }
.lrow .slot-free { color: var(--muted); border-color: var(--line); text-align: left; padding-left: 12px; }
.lpause { text-align: center; font-size: 11.5px; color: var(--muted); padding: 6px; background: var(--surface-2); border-bottom: 1px solid var(--line); letter-spacing: .14em; text-transform: uppercase; }

/* =========================================================
   Pacientes
   ========================================================= */
.search-wrap { position: relative; margin-bottom: 18px; }
.search-wrap .ic { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); transition: color .2s; }
.search-wrap:focus-within .ic { color: var(--primary); }
.search {
  width: 100%; min-height: 50px; padding: 12px 16px 12px 48px; border-radius: 16px; border: 1px solid var(--line);
  background: var(--surface); box-shadow: var(--shadow-sm); transition: border-color .2s, box-shadow .2s;
}
.search:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.group-title { font-size: 11.5px; text-transform: uppercase; letter-spacing: .18em; color: var(--muted); margin: 24px 0 10px; font-family: inherit; font-weight: 600; }
.plist { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 10px; }
.pcard {
  text-align: left; cursor: pointer; background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  padding: 14px 16px; display: flex; gap: 14px; align-items: center; box-shadow: var(--shadow-sm); min-height: 70px;
  transition: border-color .2s, transform .25s var(--spring), box-shadow .2s;
}
.pcard:hover { border-color: color-mix(in srgb, var(--primary) 30%, var(--line-strong)); transform: translateY(-2px); box-shadow: var(--shadow); }
.pcard:active { transform: scale(.985); }
.pcard.ended { opacity: .6; box-shadow: none; }
.avatar {
  width: 44px; height: 44px; border-radius: 15px; display: grid; place-items: center; font-weight: 600; flex: none;
  font-family: "Cormorant Garamond", Georgia, serif; font-size: 19px;
  background: var(--sem-soft); color: var(--sem);
}
.avatar.qui { background: var(--qui-soft); color: var(--qui); }
.pcard-name { font-weight: 600; }
.pcard-sub { font-size: 13px; color: var(--muted); }

/* =========================================================
   Vagas
   ========================================================= */
.days-free { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.dayfree { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow-sm); }
.dayfree h3 { font-size: 23px; margin-bottom: 8px; }
.fslot { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 14px; min-width: 0; }
.fslot:first-of-type { border-top: 0; }
.fslot .h { width: 40px; color: var(--muted); font-variant-numeric: tabular-nums; flex: none; }
.fslot .who { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pill { border: 0; border-radius: 999px; padding: 6px 12px; min-height: 32px; font-size: 12.5px; font-weight: 600; cursor: pointer; white-space: nowrap; flex: none; transition: background-color .2s, color .2s, transform .2s var(--spring); }
.pill:hover:not(:disabled) { transform: scale(1.05); }
.pill.livre { background: var(--ok-soft); color: var(--ok); }
.pill.livre:hover { background: color-mix(in srgb, var(--ok) 22%, var(--ok-soft)); }
.pill.meio { background: var(--qui-soft); color: var(--qui); }
.pill.meio:hover { background: color-mix(in srgb, var(--qui) 22%, var(--qui-soft)); }
.pill.cheio { background: var(--surface-2); color: var(--muted); cursor: default; }
.pill:disabled { cursor: default; }

/* =========================================================
   Ajustes
   ========================================================= */
.theme-picker { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.theme-opt { position: relative; cursor: pointer; }
.theme-opt input { position: absolute; opacity: 0; }
.theme-opt .preview {
  display: block; height: 78px; border-radius: 14px; border: 1px solid var(--line-strong); overflow: hidden; position: relative;
  transition: transform .25s var(--spring), box-shadow .2s, border-color .2s;
}
.theme-opt:hover .preview { transform: translateY(-2px); }
.theme-opt .preview::before { content: ""; position: absolute; left: 10px; top: 10px; width: 40%; height: 8px; border-radius: 4px; }
.theme-opt .preview::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 10px; height: 28px; border-radius: 8px; }
.preview.light { background: #f4f1ec; }
.preview.light::before { background: #20324a; }
.preview.light::after { background: #fffdfa; box-shadow: 0 0 0 1px #e6e0d6; }
.preview.dark { background: #10151d; }
.preview.dark::before { background: #b9cbe5; }
.preview.dark::after { background: #18202b; box-shadow: 0 0 0 1px #263142; }
.preview.auto { background: linear-gradient(105deg, #f4f1ec 0 50%, #10151d 50% 100%); }
.preview.auto::before { background: linear-gradient(90deg, #20324a 0 50%, #b9cbe5 50%); width: calc(100% - 20px); }
.preview.auto::after { background: linear-gradient(105deg, #fffdfa 0 50%, #18202b 50% 100%); }
.theme-opt .opt-label { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 8px; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.theme-opt .opt-label .ic { width: 16px; height: 16px; }
.theme-opt input:checked + .preview { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.theme-opt input:checked ~ .opt-label { color: var(--primary); font-weight: 600; }
.theme-opt input:focus-visible + .preview { outline: 2px solid var(--focus); outline-offset: 2px; }
.card.danger-zone { border-color: color-mix(in srgb, var(--danger) 30%, var(--line)); }

/* =========================================================
   Modal (folha que sobe no celular)
   ========================================================= */
dialog {
  border: 0; padding: 0; border-radius: 24px; width: min(540px, calc(100% - 32px)); max-height: calc(100vh - 48px);
  background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg);
}
dialog[open] { animation: pop .32s var(--spring); }
dialog::backdrop { background: color-mix(in srgb, #0d1420 50%, transparent); backdrop-filter: blur(4px); }
dialog[open]::backdrop { animation: fade .25s ease-out; }
#modal-body { padding: 26px; }
.m-head h3 { font-size: 30px; }
.m-head p { margin: 4px 0 0; color: var(--muted); }
.m-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0; }
.badge { font-size: 12.5px; padding: 4px 11px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2); }
.badge.st { font-weight: 600; background: var(--primary-soft); border-color: transparent; color: var(--primary); }
.note { background: var(--surface-2); border-radius: 13px; padding: 11px 14px; font-size: 14px; margin: 10px 0; }
.note.exc { background: var(--exc-soft); color: var(--exc); }
.note.warn { background: var(--danger-soft); color: var(--danger); }
.note .ic { width: 16px; height: 16px; vertical-align: -3px; margin-right: 4px; }
.action-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 16px 0; }
.action-grid .btn { min-height: 50px; }
.m-foot { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; border-top: 1px solid var(--line); padding-top: 16px; margin-top: 16px; }
.m-foot .spacer, .form-actions .spacer { flex: 1; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; margin: 18px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* formulários */
.form { display: flex; flex-direction: column; gap: 14px; }
.form h3 { font-size: 30px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.form input:not([type=radio]):not([type=checkbox]), .form select, .form textarea {
  width: 100%; min-height: 46px; padding: 10px 13px; border-radius: 13px; border: 1px solid var(--line-strong);
  background: var(--surface-2); color: var(--ink); font-weight: 400; transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.form input:hover:not(:focus), .form select:hover:not(:focus), .form textarea:hover:not(:focus) { border-color: color-mix(in srgb, var(--primary) 30%, var(--line-strong)); }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); background: var(--surface); }
.form small { font-weight: 400; }
.form label.check { flex-direction: row; align-items: flex-start; gap: 12px; color: var(--ink); font-weight: 400; font-size: 14.5px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.seg { border: 0; padding: 0; margin: 0; display: flex; gap: 8px; }
.seg legend { font-size: 13.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; padding: 0; }
.seg label { flex: 1; flex-direction: row; align-items: center; gap: 10px; padding: 11px 14px; min-height: 46px; border: 1px solid var(--line-strong); border-radius: 13px; cursor: pointer; color: var(--ink); font-weight: 500; transition: border-color .2s, background-color .2s, color .2s; }
.seg label:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); }
.seg input { accent-color: var(--primary); }
.hint { font-size: 13.5px; border-radius: 13px; padding: 10px 14px; animation: fade .25s ease-out; }
.hint:empty { display: none; }
.hint.ok { background: var(--ok-soft); color: var(--ok); }
.hint.warn { background: var(--danger-soft); color: var(--danger); }
.hint button { margin-left: 6px; }
.form-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.remarcar { background: var(--surface-2); border-radius: 16px; padding: 14px; margin-top: 4px; animation: rise .3s var(--ease-out); }
.form-error { margin: 0; color: var(--danger); font-size: 14px; font-weight: 500; animation: fade .2s; }

/* =========================================================
   Bloqueio / criação da senha
   ========================================================= */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); position: relative; }
.auth-hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--hero); padding: 56px 64px; display: flex; flex-direction: column; justify-content: center; gap: 20px;
  border-right: 1px solid var(--line);
}
.auth-hero::after {
  content: ""; position: absolute; z-index: -1; right: -60px; bottom: -50px; width: 340px; height: 340px;
  background: var(--leaf-art) no-repeat center / contain; opacity: .07; transform: rotate(-10deg);
}
.auth-logo { width: min(300px, 70%); margin: 0 0 6px -8px; animation: rise .8s var(--ease-out) both; }
.auth-hero h1 { font-size: 46px; max-width: 480px; animation: rise .8s .08s var(--ease-out) both; }
.auth-hero > p { margin: 0; color: var(--ink-2); font-size: 17px; max-width: 440px; animation: rise .8s .14s var(--ease-out) both; }
.features { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-direction: column; gap: 14px; }
.features li { display: flex; gap: 14px; align-items: flex-start; max-width: 440px; animation: rise .7s var(--ease-out) both; }
.features li:nth-child(1) { animation-delay: .22s; }
.features li:nth-child(2) { animation-delay: .3s; }
.features li:nth-child(3) { animation-delay: .38s; }
.features .f-ic { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; flex: none; background: var(--surface); color: var(--accent); box-shadow: var(--shadow-sm); }
.features b { display: block; font-weight: 600; }
.features span { color: var(--muted); font-size: 14px; }
.auth-panel { display: grid; place-items: center; padding: 40px 24px; }
.auth-card { width: min(440px, 100%); animation: rise .6s .1s var(--ease-out) both; }
.auth-logo-sm { display: none; width: 190px; margin: 0 auto 22px; }
.auth-card h2 { font-size: 38px; margin: 0 0 8px; }
.auth-card > p { margin: 0 0 22px; }
.auth-card .linkbtn { display: block; margin: 14px auto 0; }
.auth-theme { position: absolute; top: 18px; right: 18px; }
.auth-theme .l-sun, .auth-theme .l-moon { display: none !important; }

.pw-wrap { position: relative; display: block; }
.pw-wrap input { padding-right: 88px !important; }
.pw-toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: var(--surface-3);
  color: var(--ink-2); font-size: 12px; font-weight: 600; cursor: pointer; padding: 7px 11px; border-radius: 9px; min-height: 32px;
}
.meter { height: 6px; border-radius: 999px; background: var(--surface-3); overflow: hidden; margin-top: -6px; }
.meter span { display: block; height: 100%; width: 0; border-radius: 999px; transition: width .35s var(--ease-out), background-color .25s; }
.meter[data-score="1"] span { width: 25%; background: var(--danger); }
.meter[data-score="2"] span { width: 55%; background: var(--exc); }
.meter[data-score="3"] span { width: 80%; background: var(--ok); }
.meter[data-score="4"] span { width: 100%; background: var(--ok); }
.rcode {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 4px 0 14px;
  font-family: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, monospace; font-size: 18px; font-weight: 600; letter-spacing: .08em;
}
.rcode span { text-align: center; padding: 10px 4px; border-radius: 11px; background: var(--surface-2); border: 1px solid var(--line-strong); animation: rise .4s var(--ease-out) both; }
.rcode span:nth-child(2) { animation-delay: .04s; } .rcode span:nth-child(3) { animation-delay: .08s; } .rcode span:nth-child(4) { animation-delay: .12s; }
.rcode span:nth-child(5) { animation-delay: .16s; } .rcode span:nth-child(6) { animation-delay: .2s; } .rcode span:nth-child(7) { animation-delay: .24s; } .rcode span:nth-child(8) { animation-delay: .28s; }

/* =========================================================
   Aviso flutuante
   ========================================================= */
#toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 150; transform: translate(-50%, 20px) scale(.96); opacity: 0; pointer-events: none;
  display: flex; align-items: center; gap: 10px;
  background: var(--ink); color: var(--bg); padding: 12px 20px 12px 16px; border-radius: 16px; font-size: 14px; font-weight: 500;
  box-shadow: var(--shadow-lg); transition: opacity .25s ease, transform .4s var(--spring); width: max-content; max-width: min(520px, calc(100% - 32px));
}
#toast::before { content: ""; width: 8px; height: 14px; flex: none; border-radius: 0 100% 0 100%; background: var(--accent); transform: rotate(20deg); }
#toast.show { opacity: 1; transform: translate(-50%, 0) scale(1); }
#toast.has-action { padding: 6px 6px 6px 16px; gap: 12px; }
#toast.show.has-action { pointer-events: auto; }
.toast-btn {
  border: 0; border-radius: 11px; min-height: 44px; padding: 8px 14px; cursor: pointer; flex: none;
  background: var(--bg); color: var(--ink); font: inherit; font-weight: 700;
  transition: background-color .15s;
}
.toast-btn:hover { background: var(--surface); }

/* =========================================================
   Impressão da chave de recuperação
   ========================================================= */
#print-area { display: none; }
@media print {
  body.printing > :not(#print-area) { display: none !important; }
  body.printing #print-area { display: block; color: #000; }
  body.printing { background: #fff; }
  .sheet { font-family: system-ui, sans-serif; padding: 24px; }
  .sheet h1 { font-size: 22px; margin-bottom: 8px; }
  .sheet .rcode span { background: #fff; border-color: #999; color: #000; }
}

/* =========================================================
   Hoje
   ========================================================= */
.page-hero .eyebrow { color: var(--accent); }
.hero-cta { min-height: 50px; padding: 10px 20px; border-radius: 15px; }
.hero-cta.pending { animation: glow 2.6s ease-in-out infinite; }
.today-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(290px, 1fr); gap: 18px; align-items: start; }
.side-col { display: flex; flex-direction: column; gap: 16px; }
.side-col .card, .tl-card { margin-bottom: 0; }
.side-card h3 { font-size: 21px; margin-bottom: 8px; }
.side-card.attention { border-color: color-mix(in srgb, var(--exc) 40%, var(--line)); background: linear-gradient(180deg, var(--exc-soft), var(--surface) 70%); }
.side-card.attention h3 .ic { color: var(--exc); }
.side-card .btn.block { margin-top: 10px; }
.tl-head { display: flex; align-items: center; gap: 8px; margin: 6px 0 14px; padding: 11px 14px; border-radius: 13px; background: var(--surface-2); color: var(--ink-2); font-size: 14px; }
.tl-head.now { background: var(--primary-soft); color: var(--primary); }
.tl-head.now .ic { animation: breathe 2s ease-in-out infinite; }
.timeline { display: flex; flex-direction: column; }
.tl-row { position: relative; display: flex; align-items: center; gap: 12px; padding: 8px 0; min-height: 56px; border-top: 1px solid var(--line); transition: background-color .25s; }
.tl-row:first-child { border-top: 0; }
.tl-row.past:not(.now) .tl-main { opacity: .72; }
.tl-row.now { background: var(--primary-tint); margin: 0 -12px; padding: 8px 12px; border-radius: 14px; border-top-color: transparent; box-shadow: inset 3px 0 0 var(--accent); }
.tl-time { width: 38px; flex: none; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.tl-row.now .tl-time { color: var(--primary); font-weight: 700; }
.tl-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; background: var(--sem); box-shadow: 0 0 0 3px var(--surface); }
.tl-row.now .tl-dot { animation: glow 2s infinite; }
.tl-dot.fq-qui { background: var(--qui); }
.tl-dot.fq-avu, .tl-dot.fq-rep { background: var(--avu); }
.tl-row.st-desmarcada .tl-dot, .tl-row.st-remarcada .tl-dot { background: var(--line-strong); }
.tl-main { flex: 1; min-width: 0; border: 0; background: none; text-align: left; cursor: pointer; padding: 4px 0; display: flex; flex-direction: column; border-radius: 8px; }
.tl-main:hover .tl-name { color: var(--primary); }
.tl-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .2s; }
.tl-row.st-desmarcada .tl-name, .tl-row.st-remarcada .tl-name { text-decoration: line-through; color: var(--muted); }
.tl-sub { font-size: 12.5px; color: var(--muted); }
.tl-pause { text-align: center; font-size: 11.5px; color: var(--muted); padding: 6px; margin: 4px 0; border-radius: 9px; background: var(--surface-2); letter-spacing: .14em; text-transform: uppercase; }
.tl-empty { text-align: center; padding: 28px 12px; color: var(--muted); }
.tl-empty::before { content: ""; display: block; width: 72px; height: 72px; margin: 0 auto 12px; background: var(--leaf-art) no-repeat center / contain; opacity: .22; }
.tl-empty p { margin: 0 0 14px; font-family: "Cormorant Garamond", Georgia, serif; font-size: 21px; font-style: italic; color: var(--ink-2); }
.quick { display: flex; gap: 6px; flex: none; }
.qbtn {
  width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface);
  display: grid; place-items: center; cursor: pointer; transition: transform .25s var(--spring), background-color .2s, border-color .2s, color .2s;
}
.qbtn .ic { width: 19px; height: 19px; }
.qbtn:hover { transform: scale(1.08); }
.qbtn:active { transform: scale(.92); }
.qbtn.ok { color: var(--ok); }
.qbtn.ok:hover { background: var(--ok); border-color: var(--ok); color: var(--surface); }
.qbtn.danger { color: var(--danger); }
.qbtn.danger:hover { background: var(--danger); border-color: var(--danger); color: var(--surface); }
.st-chip { display: inline-flex; align-items: center; gap: 4px; flex: none; font-size: 12px; font-weight: 600; padding: 4px 11px; border-radius: 999px; background: var(--surface-2); color: var(--muted); animation: pop .35s var(--spring); }
.st-chip .ic { width: 14px; height: 14px; }
.st-chip.st-realizada { background: var(--ok-soft); color: var(--ok); }
.st-chip.st-falta { background: var(--danger-soft); color: var(--danger); }
.pend-row { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px solid var(--line); }
.pend-main { flex: 1; min-width: 0; border: 0; background: none; cursor: pointer; text-align: left; display: flex; flex-direction: column; padding: 2px 0; }
.pend-main b { font-weight: 600; font-size: 14px; }
.pend-main span { font-size: 12.5px; color: var(--muted); }
.mini-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 128px), 1fr)); gap: 10px; }
.mini-kpis div { background: var(--surface-2); border-radius: 13px; padding: 11px 13px; min-width: 0; }
.mini-kpis span { display: block; font-size: 12.5px; color: var(--muted); }
.mini-kpis b { font-size: 19px; font-variant-numeric: tabular-nums; }
.mini-kpis b.warn { color: var(--exc); }
.recovered { display: flex; align-items: center; gap: 12px; margin: 14px 0 0; padding: 13px 15px; border-radius: 13px; background: var(--primary-soft); color: var(--primary); font-size: 14px; line-height: 1.4; }
.recovered svg { flex: none; }
.recovered + .recovered { background: var(--accent-soft); color: var(--exc); }
/* ganhos do mês no cartão de Hoje: um bloco com respiro acima e abaixo */
.wins { display: flex; flex-direction: column; gap: 10px; margin: 16px 0 6px; }
.wins .recovered { margin: 0; }
.side-card .mini-kpis + .btn.block { margin-top: 16px; }
.bar { flex: 1; height: 8px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.bar span {
  display: block; height: 100%; width: var(--pct, 0%); border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), color-mix(in srgb, var(--primary) 55%, var(--accent)));
  transition: width .6s var(--ease-out); animation: grow 1s var(--ease-out) both;
}
@keyframes grow { from { width: 0; } }
.meter-row { display: flex; align-items: center; gap: 12px; }
.meter-row b { font-size: 19px; font-variant-numeric: tabular-nums; }
.suggest { margin: 12px 0 0; font-weight: 600; }

/* =========================================================
   Mês
   ========================================================= */
.month-nav { display: flex; align-items: center; gap: 10px; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.kpi {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 2px; min-width: 0; transition: transform .25s var(--spring), box-shadow .25s;
}
.kpi:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.kpi > span:not(.kpi-ic) { font-size: 13px; color: var(--muted); }
.kpi b { font-size: 26px; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.kpi small { font-size: 12px; color: var(--muted); }
.kpi-ic { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 10px; background: var(--primary-soft); color: var(--primary); }
.kpi-ic.ok { background: var(--ok-soft); color: var(--ok); }
.kpi-ic.warn { background: var(--exc-soft); color: var(--exc); }
.kpi-ic.qui { background: var(--qui-soft); color: var(--qui); }
.value-card {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; gap: 20px; align-items: center; padding: 24px 26px; margin-bottom: 18px; border-radius: var(--radius);
  background: var(--hero); border: 1px solid var(--line);
}
.value-card::after { content: ""; position: absolute; z-index: -1; right: -20px; bottom: -30px; width: 170px; height: 170px; background: var(--leaf-art) no-repeat center / contain; opacity: .08; transform: rotate(-12deg); }
.value-card h3 { font-size: 46px; color: var(--primary); font-variant-numeric: lining-nums tabular-nums; }
.value-card p { margin: 2px 0 0; }
.value-card .eyebrow { margin: 0; }
.value-ic { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; flex: none; background: var(--surface); color: var(--accent); box-shadow: var(--shadow); }
.value-ic .ic { width: 26px; height: 26px; }
.value-card .saved { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 14px; color: var(--ink-2); }
.value-card .saved .ic { width: 16px; height: 16px; color: var(--accent); }
.money-row { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.money-card h3 + .money-row { border-top: 0; }
.money-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.money-main b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.money-main span { font-size: 13px; color: var(--muted); }
.money-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.money-actions .btn { white-space: nowrap; }
.pay-chip { font-size: 12.5px; font-weight: 600; padding: 4px 11px; border-radius: 999px; white-space: nowrap; }
.pay-chip.open { background: var(--exc-soft); color: var(--exc); }
.pay-chip.ok { background: var(--ok-soft); color: var(--ok); }
.pay-line { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 14px; border-radius: 13px; background: var(--exc-soft); color: var(--exc); font-weight: 500; font-size: 14px; }
.pay-line.paid { background: var(--ok-soft); color: var(--ok); animation: pop .35s var(--spring); }
.pay-line span { display: inline-flex; align-items: center; gap: 6px; }
.pay-line .ic { width: 16px; height: 16px; }
.msg-preview { background: var(--surface-2); border: 1px solid var(--line); border-radius: 16px 16px 16px 4px; padding: 12px 14px; font-size: 14px; margin: 14px 0; max-height: 180px; overflow: auto; overflow-wrap: anywhere; }
.pix-box { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; align-items: center; padding: 12px 14px; border-radius: 13px; border: 1px dashed var(--line-strong); }
.pix-box span { grid-column: 1 / -1; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.pix-box code { font-size: 12px; overflow-wrap: anywhere; color: var(--ink-2); max-height: 54px; overflow: hidden; }

/* =========================================================
   Vagas e lista de espera
   ========================================================= */
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.card-head h3 { margin: 0; }
.count { font-family: "DM Sans", sans-serif; font-size: 13px; font-weight: 700; padding: 1px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--exc); }
.wl-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.wl-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.wl-main span { font-size: 13px; color: var(--muted); }
.wl-main .wl-since { font-size: 12px; }
.icon-btn.sm { width: 38px; height: 38px; border-radius: 11px; }
.icon-btn.sm .ic { width: 16px; height: 16px; }
.occ-pill { display: flex; align-items: center; gap: 10px; min-width: 220px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.empty.small { padding: 18px 8px; font-size: 14px; }

/* confirmações */
.progress { display: flex; align-items: center; gap: 12px; margin: 14px 0 6px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.conf-list { display: flex; flex-direction: column; }
.conf-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; min-height: 56px; border-top: 1px solid var(--line); }
.conf-row b { flex: 1; min-width: 0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conf-row.done b { color: var(--muted); }
.form .seg.wrap { flex-wrap: wrap; }
.form .seg.wrap label.daypick { flex: none; padding: 0; border: 0; position: relative; min-height: 0; }
.daypick input { position: absolute; opacity: 0; }
.daypick span { display: inline-block; padding: 9px 15px; border-radius: 999px; border: 1px solid var(--line-strong); cursor: pointer; font-weight: 500; color: var(--ink); transition: background-color .2s, color .2s, transform .2s var(--spring); }
.daypick input:checked + span { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); transform: scale(1.04); }
.daypick input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }

/* =========================================================
   Segunda-feira: resumo da semana, recibos e documentos
   ========================================================= */
.week-card { position: relative; overflow: hidden; isolation: isolate; background: var(--hero); }
.week-card::after { content: ""; position: absolute; z-index: -1; right: -10px; top: -20px; width: 150px; height: 150px; background: var(--leaf-art) no-repeat center / contain; opacity: .07; }
.wk-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.wk-head h3 { font-size: 28px; margin: 0; }
.wk-head .eyebrow { margin-bottom: 6px; color: var(--accent); }
.wk-saved { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px; background: var(--surface); color: var(--exc); font-size: 13.5px; font-weight: 600; box-shadow: var(--shadow-sm); }
.wk-saved .ic { width: 16px; height: 16px; }
.wk-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.wk-tile { background: var(--surface); border: 1px solid var(--line); border-radius: 15px; padding: 13px 15px; display: flex; flex-direction: column; gap: 2px; min-width: 0; transition: transform .25s var(--spring), box-shadow .25s; }
.wk-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.wk-tile span { font-size: 12.5px; color: var(--muted); }
.wk-tile b { font-size: 22px; font-variant-numeric: tabular-nums; }
.wk-tile small { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wk-tile.ok b { color: var(--ok); }
.wk-tile.warn b { color: var(--exc); }
.wk-tile.danger b { color: var(--danger); }
.wk-actions { display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; margin-top: 14px; }
.wk-actions:empty { display: none; }
.wk-todo { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--ink-2); }
.wk-todo .ic { width: 16px; height: 16px; color: var(--exc); }

.receipts-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.receipts-main { flex: 1; min-width: 240px; }
.receipts-card > .receipts-main > p { margin: 0; }

/* documentos: sempre "papel" claro, nos dois temas, com o timbre da clínica */
.sheet { --brand-navy: #20324a; --brand-gray: #898886; }
.doc-preview { margin: 14px 0; border: 1px solid var(--line); border-radius: 14px; background: #fff; color: #1d1b19; box-shadow: var(--shadow); max-height: 48vh; overflow: auto; }
.doc-preview .sheet { padding: 22px 26px; font-size: 14px; }
.doc-letterhead { display: flex; justify-content: center; margin: 0 0 14px; }
.doc-letterhead .brand-logo { width: 150px; height: auto; }
.sheet.doc { font-family: "DM Sans", system-ui, sans-serif; line-height: 1.6; }
.sheet .doc-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-bottom: 1.5px solid #20324a; padding-bottom: 8px; margin-bottom: 18px; }
.sheet .doc-head h1 { font-family: "Cormorant Garamond", Georgia, serif; font-size: 26px; font-weight: 600; margin: 0; color: #20324a; }
.sheet .doc-value { font-size: 18px; font-weight: 700; white-space: nowrap; color: #20324a; }
.sheet .doc-body { margin: 0 0 12px; text-align: justify; }
.sheet .doc-date { margin: 22px 0 0; }
.sheet .sign { display: flex; flex-direction: column; align-items: center; gap: 1px; margin: 48px auto 0; max-width: 340px; text-align: center; font-size: 13px; }
.sheet .sign-line { display: block; width: 100%; border-top: 1px solid #1d1b19; margin-bottom: 6px; }
.sheet .sign b { font-size: 14px; }

/* relatório impresso */
@media print {
  .report { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 12px; }
  .report th, .report td { border-bottom: 1px solid #bbb; padding: 6px 8px; text-align: left; }
  .report tfoot td { font-weight: 700; border-top: 2px solid #000; }
  .sheet .fine { font-size: 11px; color: #444; }
  .report .num { text-align: right; font-variant-numeric: tabular-nums; }
  .sheet h1 { font-family: "Cormorant Garamond", Georgia, serif; color: #20324a; }
  .sheet h2 { font-size: 16px; margin: 22px 0 0; font-family: "Cormorant Garamond", Georgia, serif; color: #20324a; }
  .sheet.doc { padding: 32px 40px; font-size: 14px; }
  .sheet.doc + .sheet.doc { break-before: page; }
  .doc-letterhead .brand-logo { width: 170px; }
}

/* =========================================================
   Tablet
   ========================================================= */
@media (max-width: 1080px) {
  :root { --sidebar: 84px; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .sidebar { padding: 20px 12px; align-items: center; }
  .sidebar::after { display: none; }
  .brand-text, .tab span, .side-btn span { display: none; }
  .theme-btn .l-sun, .theme-btn .l-moon { display: none !important; }
  .brand { padding: 0; }
  .tab, .side-btn { justify-content: center; padding: 12px; }
  main { padding: 30px 28px 64px; }
  .auth { grid-template-columns: 1fr; }
  .auth-hero { display: none; }
  .auth-logo-sm { display: block; }
}

/* =========================================================
   Celular
   ========================================================= */
@media (max-width: 760px) {
  body.demo:not(.locked) .demo-bar { gap: 10px; padding: 6px 12px; font-size: 13px; flex-wrap: nowrap; }
  .demo-bar .why { display: none; }
  body.demo:not(.locked) .sidebar { top: 50px; height: auto; }
  .shell { display: block; }
  .sidebar {
    position: sticky; top: 0; z-index: 20; height: auto; flex-direction: row; align-items: center; gap: 8px;
    padding: 10px 16px; padding-top: max(10px, env(safe-area-inset-top)); overflow: visible;
    background: color-mix(in srgb, var(--bg) 94%, transparent);
    border-right: 0; border-bottom: 1px solid var(--line);
  }
  .brand { gap: 10px; }
  .brand-text { display: flex; }
  .brand-name { font-size: 20px; }
  .brand-sub { display: none; }
  .brand-mark { width: 36px; height: 36px; }
  .sidebar-foot { margin: 0 0 0 auto; flex-direction: row; }
  .side-btn { padding: 10px; min-width: 44px; min-height: 44px; justify-content: center; }

  .tabs {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; flex-direction: row; gap: 0;
    padding: 6px 8px; padding-bottom: max(6px, env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(16px);
    border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -16px rgba(0, 0, 0, .25);
  }
  .tab-glider { box-shadow: none; border: 0; background: var(--primary-soft); border-radius: 16px; }
  .tab { flex: 1 1 0; min-width: 0; flex-direction: column; gap: 3px; padding: 7px 2px; min-height: 54px; font-size: 10.5px; justify-content: center; align-items: center; }
  .tab span { display: block; }
  .tab.active { background: var(--primary-soft); }
  .tabs.has-glider .tab.active { background: none; }
  .tab.active .ic { transform: translateY(-1px) scale(1.08); }

  main { padding: 20px 16px 110px; }
  .page-hero h2 { font-size: 36px; }
  .page-head h2 { font-size: 34px; }
  .stats { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .stat { min-width: 0; padding: 10px 12px; }
  .legend { margin-left: 0; }
  .week-label { font-size: 21px; }
  .grid-wrap { display: none; }
  .daylist { display: block; }
  .today-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-cta { width: 100%; }
  .card { padding: 20px; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .kpi { padding: 15px; }
  .kpi b { font-size: 21px; }
  .wk-tiles { grid-template-columns: 1fr 1fr; }
  .wk-head h3 { font-size: 24px; }
  .receipts-card .btn { width: 100%; }
  .value-card { padding: 20px; }
  .value-card h3 { font-size: 36px; }
  .money-row { flex-wrap: wrap; }
  .money-actions { width: 100%; padding-left: 58px; }
  .occ-pill { min-width: 0; width: 100%; }
  .row2 { grid-template-columns: 1fr; }
  .qbtn { width: 44px; height: 44px; }
  /* lista de espera: nome em cima, botões embaixo */
  .wl-row { flex-wrap: wrap; row-gap: 8px; }
  .wl-main { flex: 1 1 calc(100% - 60px); }
  .wl-row > .wl-main + * { margin-left: 56px; }

  dialog {
    width: 100%; max-width: 100%; margin: auto 0 0; border-radius: 26px 26px 0 0;
    max-height: 92vh; padding-bottom: env(safe-area-inset-bottom);
  }
  dialog[open] { animation: sheet .38s var(--ease-out); }
  #modal-body { padding: 26px 18px 22px; }
  #modal-body::before { content: ""; display: block; width: 42px; height: 5px; border-radius: 5px; background: var(--line-strong); margin: -12px auto 14px; }
  #toast { bottom: 100px; }

  .auth-panel { padding: 72px 18px 32px; align-items: start; }
  .auth-card h2 { font-size: 34px; }
  .rcode { font-size: 16px; }
  .theme-picker { gap: 8px; }
}

/* celulares estreitos (320–370px) */
@media (max-width: 370px) {
  .tabs { padding-left: 4px; padding-right: 4px; }
  .tab { font-size: 9.5px; padding: 7px 0; }
  main { padding-left: 12px; padding-right: 12px; }
  .card { padding: 16px; }
  .page-hero h2 { font-size: 32px; }
  .sidebar { gap: 4px; padding-left: 12px; padding-right: 8px; }
  .brand { min-width: 0; }
  .brand { gap: 8px; }
  .brand-mark { width: 30px; height: 30px; }
  .brand-name { font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .kpis { gap: 8px; }
  .kpi { padding: 12px; min-width: 0; }
  .kpi b { font-size: 17px; }
  .kpi-ic { display: none; }
}
