/* Equili — visual inspirado em apps de treino: tipografia forte, números grandes,
   cartões limpos. Sem transições de tela (pensado para quem tem tontura). */
:root {
  --bg: #f3f3f0;
  --surface: #ffffff;
  --surface-2: #efeee9;
  --ink: #16181d;
  --muted: #6c7079;
  --line: #e4e3de;
  --brand: #ff5a1f;
  --brand-d: #e04810;
  --brand-ink: #ffffff;
  --brand-soft: #ffe9df;
  --hero: #16181d;
  --hero-ink: #ffffff;
  --hero-muted: #a5a9b2;

  --verde: #12a150;   --verde-bg: #e2f5ea;
  --amarelo: #c98f00; --amarelo-bg: #fff3d1;
  --laranja: #e5484d; --laranja-bg: #fde4e5;
  --vermelho: #9b1c4a; --vermelho-bg: #f8e0ea;

  --tone-blue: #dfe9ff; --tone-orange: #ffe6da; --tone-green: #dcf3e5; --tone-violet: #ebe3ff; --tone-teal: #d9f1ef; --tone-yellow: #fff1cc; --tone-red: #fde2e2;

  --fig-ink: #16181d; --fig-ink2: #b3b6bd; --fig-accent: var(--brand); --fig-accent-d: #d9440f;
  --fig-accent-soft: #ffd3c0; --fig-skin: #f4c6a5; --fig-hair: #2a2522; --fig-prop: #c9c6be; --fig-paper: #ffffff; --fig-bg: var(--tone-orange);
  --face-bg: #ffffff;
  --pill-ink: #ffffff;

  --r-lg: 24px; --r-md: 18px; --r-sm: 12px;
  --shadow: 0 1px 2px rgba(16, 18, 22, .04), 0 6px 20px rgba(16, 18, 22, .06);
  --tab-h: 72px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1013; --surface: #1a1c21; --surface-2: #23262c; --ink: #f2f2ef; --muted: #9a9ea7; --line: #2c2f36;
    --brand: #ff6a33; --brand-d: #ff7f4f; --brand-soft: #3a2218; --hero: #23262c; --hero-muted: #9a9ea7;
    --verde: #4cd486; --verde-bg: #15301f; --amarelo: #f2c14e; --amarelo-bg: #362c12;
    --laranja: #ff7a7e; --laranja-bg: #3a1c1e; --vermelho: #f27aa6; --vermelho-bg: #3a1828;
    --tone-blue: #1e2a40; --tone-orange: #3a2419; --tone-green: #17301f; --tone-violet: #2a2340; --tone-teal: #15302d; --tone-yellow: #352d14; --tone-red: #3a1c1e;
    --fig-ink: #eceae6; --fig-ink2: #6c7079; --fig-accent-d: #e2521c; --fig-accent-soft: #5a2c18; --fig-prop: #4a4e57; --fig-paper: #2c2f36;
    --face-bg: #23262c;
    --pill-ink: #16181d;
    --shadow: none;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1013; --surface: #1a1c21; --surface-2: #23262c; --ink: #f2f2ef; --muted: #9a9ea7; --line: #2c2f36;
  --brand: #ff6a33; --brand-d: #ff7f4f; --brand-soft: #3a2218; --hero: #23262c; --hero-muted: #9a9ea7;
  --verde: #4cd486; --verde-bg: #15301f; --amarelo: #f2c14e; --amarelo-bg: #362c12;
  --laranja: #ff7a7e; --laranja-bg: #3a1c1e; --vermelho: #f27aa6; --vermelho-bg: #3a1828;
  --tone-blue: #1e2a40; --tone-orange: #3a2419; --tone-green: #17301f; --tone-violet: #2a2340; --tone-teal: #15302d; --tone-yellow: #352d14; --tone-red: #3a1c1e;
  --fig-ink: #eceae6; --fig-ink2: #6c7079; --fig-accent-d: #e2521c; --fig-accent-soft: #5a2c18; --fig-prop: #4a4e57; --fig-paper: #2c2f36;
  --face-bg: #23262c;
  --pill-ink: #16181d;
  --shadow: none;
  color-scheme: dark;
}
:root[data-font="grande"] { font-size: 115%; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font);
  font-size: 1rem; line-height: 1.5; -webkit-font-smoothing: antialiased;
}
button { font: inherit; color: inherit; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
.ic { flex-shrink: 0; display: block; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }

/* ---------- Estrutura ---------- */
#app { max-width: 560px; margin: 0 auto; padding: 0 16px calc(var(--tab-h) + 28px + env(safe-area-inset-bottom)); outline: none; }
body.immersive #app { padding: 0; max-width: 560px; }
body.immersive .tabbar { display: none; }

.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 0 14px; }
.page-head h1 { font-size: 1.75rem; font-weight: 800; letter-spacing: -.02em; }
.page-head .sub { color: var(--muted); font-size: .9rem; font-weight: 500; }
.avatar {
  width: 42px; height: 42px; border-radius: 50%; background: var(--ink); color: var(--bg);
  display: grid; place-items: center; font-weight: 800; text-decoration: none; flex-shrink: 0;
}
.icon-btn {
  width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--surface); display: grid; place-items: center;
  cursor: pointer; text-decoration: none; box-shadow: var(--shadow);
}
.section { margin-top: 26px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.section-head h2 { font-size: 1.15rem; font-weight: 800; letter-spacing: -.01em; }
.section-head a { font-size: .9rem; font-weight: 700; color: var(--brand); text-decoration: none; }

/* ---------- Barra inferior ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  height: calc(var(--tab-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  background: var(--surface); border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: center;
}
.tabbar[hidden] { display: none; }
.tabbar a {
  display: flex; flex-direction: column; align-items: center; gap: 3px; text-decoration: none;
  color: var(--muted); font-size: .72rem; font-weight: 700;
}
.tabbar a.active { color: var(--ink); }
.tabbar a.active .ic { color: var(--brand); }
.tabbar .fab {
  width: 58px; height: 58px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center;
  margin: -26px auto 0; box-shadow: 0 6px 18px rgba(255, 90, 31, .4); border: 4px solid var(--bg);
}
.tabbar .fab-wrap { gap: 2px; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 24px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--brand); color: var(--brand-ink); font-weight: 800; font-size: 1rem; text-decoration: none;
}
.btn:active { background: var(--brand-d); }
.btn.dark { background: var(--ink); color: var(--bg); }
.btn.light { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.btn.ghost { background: transparent; color: var(--ink); border: 2px solid var(--line); }
.btn.danger { background: var(--laranja); color: #fff; }
.btn.block { width: 100%; }
.btn.sm { min-height: 40px; padding: 0 16px; font-size: .9rem; }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.link { background: none; border: 0; padding: 0; color: var(--brand); font-weight: 700; cursor: pointer; text-decoration: none; }

/* ---------- Cartões ---------- */
.card { background: var(--surface); border-radius: var(--r-lg); padding: 20px; box-shadow: var(--shadow); }
.card + .card { margin-top: 12px; }
.card.flat { box-shadow: none; background: var(--surface-2); }
.kicker { font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* Check-in rápido na home */
.quick-check h2 { font-size: 1.35rem; font-weight: 800; letter-spacing: -.01em; margin: 6px 0 16px; }
.mood-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mood-btn {
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 6px 12px;
  border-radius: var(--r-md); border: 2px solid var(--line); background: var(--surface); cursor: pointer;
  font-weight: 700; font-size: .9rem; color: var(--ink);
}
.mood-btn .face { color: var(--ink); }
.mood-btn[aria-pressed="true"] { border-color: var(--brand); background: var(--brand-soft); }

/* Status do dia */
.status { display: flex; gap: 16px; align-items: center; }
.status h2 { font-size: 1.2rem; font-weight: 800; letter-spacing: -.01em; line-height: 1.25; }
.status p { color: var(--muted); font-size: .92rem; margin-top: 4px; }
.status-actions { display: flex; gap: 16px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.status-actions a, .status-actions button { font-size: .9rem; }

.gauge { position: relative; width: 74px; height: 74px; flex-shrink: 0; }
.gauge svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.gauge .val { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; line-height: 1; }
.gauge .val b { font-size: 1.6rem; font-weight: 800; }
.gauge .val span { font-size: .65rem; color: var(--muted); font-weight: 700; display: block; margin-top: 2px; }
.gauge.lg { width: 120px; height: 120px; }
.gauge.lg .val b { font-size: 2.6rem; }

/* Cartão escuro do treino */
.hero {
  background: var(--hero); color: var(--hero-ink); border-radius: var(--r-lg); padding: 22px; position: relative; overflow: hidden;
  --fig-bg: rgba(255,255,255,.07); --fig-ink: #f2f2ef; --fig-ink2: #6c7079; --fig-prop: #4a4e57; --fig-paper: #2c2f36;
}
.hero .kicker { color: var(--brand); }
.hero h2 { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; margin: 6px 0 8px; max-width: 62%; }
.hero .meta { display: flex; gap: 14px; flex-wrap: wrap; color: var(--hero-muted); font-size: .88rem; font-weight: 600; max-width: 62%; }
.hero .meta span { display: inline-flex; align-items: center; gap: 5px; }
.hero .art { position: absolute; right: -8px; top: 10px; width: 46%; max-width: 190px; }
.hero .bar { height: 6px; border-radius: 6px; background: rgba(255,255,255,.12); margin: 18px 0 16px; overflow: hidden; }
.hero .bar i { display: block; height: 100%; background: var(--brand); border-radius: 6px; }
.hero .btn { position: relative; }
.hero.rest { --fig-bg: rgba(255,255,255,.07); }

/* Semana */
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; text-align: center; }
.week .d { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: .72rem; font-weight: 700; color: var(--muted); }
.week .dot {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2);
  color: var(--ink); font-size: .85rem; font-weight: 800; position: relative;
}
.week .dot.trained::after { content: ""; position: absolute; bottom: -7px; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.week .today .dot { outline: 2px solid var(--ink); outline-offset: 2px; }
.week-foot { display: flex; justify-content: space-between; margin-top: 18px; font-size: .88rem; color: var(--muted); font-weight: 600; }
.week-foot b { color: var(--ink); }

.tip { display: flex; gap: 14px; align-items: flex-start; }
.tip .ico { width: 40px; height: 40px; border-radius: 12px; background: var(--tone-yellow); display: grid; place-items: center; flex-shrink: 0; color: var(--amarelo); }
.tip p { font-size: .93rem; }

/* Cores por faixa */
.c-verde { color: var(--verde); } .c-amarelo { color: var(--amarelo); } .c-laranja { color: var(--laranja); } .c-vermelho, .c-emergencia { color: var(--vermelho); }
.bg-verde { background: var(--verde); } .bg-amarelo { background: var(--amarelo); } .bg-laranja { background: var(--laranja); } .bg-vermelho { background: var(--vermelho); }
.tag {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: .78rem; font-weight: 800;
  background: var(--surface-2); color: var(--muted);
}
.tag.verde { background: var(--verde-bg); color: var(--verde); }
.tag.amarelo { background: var(--amarelo-bg); color: var(--amarelo); }
.tag.laranja { background: var(--laranja-bg); color: var(--laranja); }
.tag.vermelho, .tag.emergencia { background: var(--vermelho-bg); color: var(--vermelho); }
.tag.brand { background: var(--brand-soft); color: var(--brand); }

/* Avisos */
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r-md); background: var(--surface); font-size: .92rem; box-shadow: var(--shadow); }
.notice + .notice { margin-top: 10px; }
.notice .ic { margin-top: 1px; }
.notice.urgente { background: var(--laranja-bg); color: var(--ink); box-shadow: none; }
.notice.urgente .ic { color: var(--laranja); }
.notice.atencao { background: var(--amarelo-bg); box-shadow: none; }
.notice.atencao .ic { color: var(--amarelo); }
.notice.info .ic { color: var(--muted); }
.notice .act { margin-left: auto; flex-shrink: 0; }

/* ---------- Telas imersivas (check-in, treino, boas-vindas) ---------- */
.screen { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: var(--bg); }
.screen-top { display: flex; align-items: center; gap: 14px; padding: 14px 16px; }
.screen-top .progress { flex: 1; height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; }
.screen-top .progress i { display: block; height: 100%; background: var(--brand); border-radius: 6px; }
.screen-top .step { font-size: .85rem; font-weight: 700; color: var(--muted); min-width: 36px; text-align: right; }
.screen-body { flex: 1; padding: 12px 20px 24px; }
.screen-body h1 { font-size: 1.9rem; font-weight: 800; letter-spacing: -.025em; line-height: 1.15; }
.screen-body .lead { color: var(--muted); margin-top: 8px; font-size: 1rem; }
.screen-foot { position: sticky; bottom: 0; padding: 14px 20px calc(18px + env(safe-area-inset-bottom)); background: linear-gradient(to top, var(--bg) 70%, transparent); display: flex; gap: 10px; }
.screen-foot .btn { flex: 1; }

.opts { display: grid; gap: 12px; margin-top: 28px; }
.opts.three { grid-template-columns: repeat(3, 1fr); }
.opts.two { grid-template-columns: repeat(2, 1fr); }
.opts.five { grid-template-columns: repeat(5, 1fr); gap: 8px; }
.opts.five .opt.col { padding: 14px 2px 12px; font-size: .78rem; gap: 8px; line-height: 1.2; }
.opt {
  display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: var(--r-md); border: 2px solid var(--line);
  background: var(--surface); cursor: pointer; text-align: left; font-weight: 700; font-size: 1.02rem; width: 100%;
}
.opt.col { flex-direction: column; text-align: center; gap: 10px; padding: 20px 8px; }
.opt .opt-sub { display: block; font-weight: 500; font-size: .86rem; color: var(--muted); margin-top: 2px; }
.opt[aria-pressed="true"] { border-color: var(--brand); background: var(--brand-soft); }
.opt .check { margin-left: auto; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; flex-shrink: 0; color: transparent; }
.opt[aria-pressed="true"] .check { background: var(--brand); border-color: var(--brand); color: #fff; }
.opt.big-yes { padding: 26px 10px; font-size: 1.15rem; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.chip {
  padding: 12px 18px; border-radius: 999px; border: 2px solid var(--line); background: var(--surface); cursor: pointer;
  font-weight: 700; font-size: .95rem; display: inline-flex; align-items: center; gap: 8px;
}
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.chip.sm { padding: 8px 14px; font-size: .88rem; }

/* Escala de tontura */
.grade-wrap { margin-top: 26px; text-align: center; }
.grade-face { display: grid; place-items: center; margin-bottom: 8px; }
.grade-num { font-size: 5rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.grade-label { font-weight: 700; font-size: 1.1rem; margin-top: 6px; min-height: 1.6em; }
.range { width: 100%; margin-top: 26px; -webkit-appearance: none; appearance: none; height: 44px; background: transparent; cursor: pointer; }
.range::-webkit-slider-runnable-track { height: 12px; border-radius: 12px; background: linear-gradient(90deg, var(--verde) 0 30%, var(--amarelo) 30% 60%, var(--laranja) 60% 80%, var(--vermelho) 80%); }
.range::-moz-range-track { height: 12px; border-radius: 12px; background: linear-gradient(90deg, var(--verde) 0 30%, var(--amarelo) 30% 60%, var(--laranja) 60% 80%, var(--vermelho) 80%); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 34px; height: 34px; border-radius: 50%; background: var(--surface); border: 4px solid var(--ink); margin-top: -11px; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.range::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: var(--surface); border: 4px solid var(--ink); }
.range-ends { display: flex; justify-content: space-between; font-size: .82rem; font-weight: 700; color: var(--muted); }
.grade-ticks { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; margin-top: 14px; }
.grade-ticks button { height: 40px; border-radius: 10px; border: 0; background: var(--surface); font-weight: 800; cursor: pointer; box-shadow: var(--shadow); }
.grade-ticks button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }

.toggle-row { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); cursor: pointer; font-weight: 600; }
.toggle-row:last-child { border-bottom: 0; }
.switch { margin-left: auto; position: relative; width: 50px; height: 30px; flex-shrink: 0; }
.switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.switch span { position: absolute; inset: 0; border-radius: 30px; background: var(--line); pointer-events: none; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.switch input:checked + span { background: var(--brand); }
.switch input:checked + span::after { left: 23px; }
.switch input:focus-visible + span { outline: 3px solid var(--brand); outline-offset: 2px; }

/* ---------- Campos de formulário ---------- */
input[type="text"], input[type="email"], input[type="password"], input[type="search"],
input[type="tel"], input[type="number"], input[type="time"], input[type="date"], select, textarea {
  width: 100%; height: 54px; padding: 0 16px; margin: 0;
  font: inherit; font-size: 1rem; font-weight: 600; color: var(--ink);
  background: var(--surface); border: 1.5px solid var(--line); border-radius: 14px;
  outline: none; -webkit-appearance: none; appearance: none; box-shadow: var(--shadow);
}
textarea { height: auto; min-height: 104px; padding: 14px 16px; line-height: 1.5; resize: vertical; }
select {
  padding-right: 44px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%238a8f98' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
input::placeholder, textarea::placeholder { color: var(--muted); font-weight: 500; opacity: .75; }
input:hover, select:hover, textarea:hover { border-color: var(--fig-ink2); }
input:focus, select:focus, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; }
input[aria-invalid="true"] { border-color: var(--laranja); }
/* Preenchimento automático do navegador sem o fundo amarelo/azul */
input:-webkit-autofill, input:-webkit-autofill:hover {
  -webkit-text-fill-color: var(--ink); caret-color: var(--ink);
  box-shadow: 0 0 0 1000px var(--surface) inset; border-color: var(--line);
}
input:-webkit-autofill:focus { box-shadow: 0 0 0 1000px var(--surface) inset, 0 0 0 4px var(--brand-soft); border-color: var(--brand); }

label.field { display: block; }
label.field > span:first-child { display: block; margin-bottom: 8px; font-weight: 700; font-size: .88rem; color: var(--ink); }
.input-wrap { position: relative; display: block; }
.input-wrap > input { display: block; }
.input-wrap > .lead-ic { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.input-wrap.has-icon > input { padding-left: 48px; }
.input-wrap:focus-within > .lead-ic { color: var(--brand); }
.pw > input { padding-right: 54px; }
.pw-toggle { position: absolute; right: 7px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; background: none; color: var(--muted); cursor: pointer; display: grid; place-items: center; border-radius: 10px; }
.pw-toggle:hover { background: var(--surface-2); color: var(--ink); }
.pw-toggle.on { color: var(--brand); }
input.code-input { height: 68px; font-size: 1.7rem; letter-spacing: .4em; text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; padding: 0 0 0 .4em; }

/* ---------- Resultado do check-in ---------- */
.result-hero { padding: 8px 4px 4px; text-align: center; }
.result-hero .gauge { margin: 6px auto 16px; }
.result-hero h1 { font-size: 1.7rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.result-hero p { color: var(--muted); margin-top: 10px; }
.emergency { background: var(--laranja); color: #fff; border-radius: var(--r-lg); padding: 24px; text-align: center; }
.emergency h1 { font-size: 1.6rem; font-weight: 800; margin: 10px 0 8px; }
.emergency .btn { background: #fff; color: var(--laranja); margin-top: 18px; }

.do-list { list-style: none; margin: 0; padding: 0; }
.do-list li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.do-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.do-list li:first-child { padding-top: 0; }
.do-list .b { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; }
.do-list .b.ok { background: var(--verde-bg); color: var(--verde); }
.do-list .b.no { background: var(--laranja-bg); color: var(--laranja); }

.refs { font-size: .8rem; color: var(--muted); line-height: 1.6; }
.refs a { color: var(--muted); }

/* ---------- Biblioteca ---------- */
.seg { display: flex; gap: 8px; overflow-x: auto; padding: 2px 16px 10px; margin: 0 -16px; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg .chip { flex-shrink: 0; }
.ex-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.ex-card { background: var(--surface); border-radius: var(--r-md); overflow: hidden; text-decoration: none; box-shadow: var(--shadow); display: flex; flex-direction: column; position: relative; }
.ex-card .thumb { aspect-ratio: 1 / .82; display: grid; place-items: center; overflow: hidden; }
.ex-card .thumb .demo { width: 80%; height: auto; }
.ex-card .body { padding: 12px 14px 14px; }
.ex-card .name { font-weight: 800; font-size: .95rem; line-height: 1.25; letter-spacing: -.01em; }
.ex-card .info { font-size: .8rem; color: var(--muted); font-weight: 600; margin-top: 4px; }
.ex-card .badge { position: absolute; top: 10px; left: 10px; }
.ex-card.dim .thumb, .ex-card.dim .body { opacity: .5; }
.ex-card.done .badge { color: #fff; }

[data-tone="olhar"], [data-tone="blue"] { --fig-bg: var(--tone-blue); background: var(--tone-blue); }
[data-tone="equilibrio"], [data-tone="orange"] { --fig-bg: var(--tone-orange); background: var(--tone-orange); }
[data-tone="marcha"], [data-tone="green"] { --fig-bg: var(--tone-green); background: var(--tone-green); }
[data-tone="habituacao"], [data-tone="violet"] { --fig-bg: var(--tone-violet); background: var(--tone-violet); }
[data-tone="apoio"], [data-tone="teal"] { --fig-bg: var(--tone-teal); background: var(--tone-teal); }
[data-tone="yellow"] { background: var(--tone-yellow); }
[data-tone="red"] { background: var(--tone-red); }

.list { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; }
.row-item { display: flex; align-items: center; gap: 14px; padding: 12px 16px; text-decoration: none; border-bottom: 1px solid var(--line); }
.row-item:last-child { border-bottom: 0; }
.row-item .thumb { width: 56px; height: 56px; border-radius: 14px; overflow: hidden; display: grid; place-items: center; flex-shrink: 0; }
.row-item .thumb .demo { width: 100%; height: auto; }
.row-item .t { flex: 1; min-width: 0; }
.row-item .t b { display: block; font-weight: 800; font-size: .95rem; letter-spacing: -.01em; }
.row-item .t span { font-size: .82rem; color: var(--muted); font-weight: 600; }
.row-item .end { color: var(--muted); }
.row-item .done-ic { width: 28px; height: 28px; border-radius: 50%; background: var(--verde); color: #fff; display: grid; place-items: center; }

/* ---------- Detalhe do exercício ---------- */
.detail-hero { margin: 0 -16px; padding: 12px 16px 18px; position: relative; }
.detail-hero .top { display: flex; justify-content: space-between; }
.demo-wrap { position: relative; max-width: 300px; margin: 0 auto; }
.demo-wrap .demo { width: 100%; height: auto; display: block; }
.demo-wrap .play {
  position: absolute; right: 4px; bottom: 4px; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--surface); color: var(--ink); display: grid; place-items: center; box-shadow: var(--shadow);
}
.detail-title { margin-top: 18px; }
.detail-title h1 { font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; margin-top: 8px; }
.detail-title p { color: var(--muted); margin-top: 4px; font-weight: 500; }
.meta-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.meta-row .meta { background: var(--surface); border-radius: var(--r-md); padding: 12px; box-shadow: var(--shadow); }
.meta-row .meta b { display: block; font-size: 1.1rem; font-weight: 800; }
.meta-row .meta span { font-size: .75rem; color: var(--muted); font-weight: 700; }
.steps { list-style: none; padding: 0; margin: 0; counter-reset: s; }
.steps li { display: flex; gap: 14px; padding: 10px 0; counter-increment: s; }
.steps li::before {
  content: counter(s); width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--bg);
  display: grid; place-items: center; font-weight: 800; font-size: .88rem; flex-shrink: 0;
}
.plain { margin: 0; padding-left: 20px; }
.plain li { margin: 6px 0; }
details.fold { border-top: 1px solid var(--line); }
details.fold summary { list-style: none; cursor: pointer; padding: 16px 0; font-weight: 800; display: flex; justify-content: space-between; align-items: center; }
details.fold summary::-webkit-details-marker { display: none; }
details.fold[open] summary .ic { transform: rotate(90deg); }
details.fold > div { padding-bottom: 16px; font-size: .95rem; }
.sticky-cta { position: sticky; bottom: calc(var(--tab-h) + 12px + env(safe-area-inset-bottom)); margin-top: 20px; z-index: 5; }
.sticky-cta .btn { box-shadow: 0 8px 22px rgba(255, 90, 31, .35); }

/* ---------- Treino guiado ---------- */
.player-top { display: flex; align-items: center; gap: 12px; padding: 14px 16px 6px; }
.segs { flex: 1; display: flex; gap: 4px; }
.segs i { flex: 1; height: 5px; border-radius: 5px; background: var(--line); }
.segs i.done { background: var(--brand); }
.segs i.cur { background: var(--ink); }
.player-body { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 8px 20px 20px; text-align: center; }
.player-body .kicker { margin-top: 6px; }
.player-body h1 { font-size: 1.55rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; margin-top: 6px; }
.player-body .demo-wrap { width: 100%; max-width: 280px; margin-top: 14px; }
.player-body .hint { color: var(--muted); font-size: .95rem; margin-top: 10px; max-width: 420px; }
.target-stage {
  width: 100%; max-width: 420px; aspect-ratio: 1 / .66; border-radius: var(--r-lg); background: var(--surface);
  display: grid; place-items: center; margin-top: 10px; position: relative; box-shadow: var(--shadow);
}
.target-stage.busy {
  background-color: var(--surface);
  background-image: repeating-linear-gradient(45deg, var(--surface-2) 0 14px, transparent 14px 28px), repeating-linear-gradient(-45deg, var(--surface-2) 0 14px, transparent 14px 28px);
}
.target-stage .x { width: 46%; max-width: 160px; color: var(--ink); }
.target-stage .beat { position: absolute; top: 14px; right: 14px; width: 14px; height: 14px; border-radius: 50%; background: var(--line); }
.target-stage .beat.on { background: var(--brand); }
.ring { position: relative; width: 210px; height: 210px; margin-top: 16px; }
.ring.sm { width: 150px; height: 150px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring .in { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring .in b { font-size: 3.2rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.ring.sm .in b { font-size: 2.4rem; }
.ring .in span { font-size: .85rem; color: var(--muted); font-weight: 700; margin-top: 6px; }
.breath-label { font-size: 1.4rem; font-weight: 800; margin-top: 12px; min-height: 1.5em; }
.metro { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.metro .val { font-weight: 800; min-width: 92px; font-variant-numeric: tabular-nums; }
.round { width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--surface); display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow); }
.round[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.controls { display: flex; align-items: center; justify-content: center; gap: 22px; padding: 10px 20px calc(20px + env(safe-area-inset-bottom)); }
.controls .big { width: 76px; height: 76px; border-radius: 50%; border: 0; background: var(--brand); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 8px 22px rgba(255, 90, 31, .35); }
.controls .side { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: .75rem; font-weight: 700; color: var(--muted); background: none; border: 0; cursor: pointer; min-width: 64px; }
.controls .side .round { margin-bottom: 2px; }
.next-up { display: flex; align-items: center; gap: 12px; background: var(--surface); border-radius: var(--r-md); padding: 10px 14px; margin-top: 16px; width: 100%; max-width: 420px; text-align: left; box-shadow: var(--shadow); }
.next-up .thumb { width: 44px; height: 44px; border-radius: 12px; overflow: hidden; display: grid; place-items: center; flex-shrink: 0; }
.next-up .thumb .demo { width: 100%; height: auto; }
.next-up small { display: block; color: var(--muted); font-weight: 700; font-size: .75rem; }
.next-up b { font-size: .92rem; }
.busy-toggle { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; font-size: .88rem; font-weight: 700; color: var(--muted); cursor: pointer; }
.busy-toggle input { width: 18px; height: 18px; accent-color: var(--brand); }

.summary-hero { text-align: center; padding: 24px 20px 8px; }
.summary-hero .medal { width: 84px; height: 84px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; margin: 0 auto 16px; }
.summary-hero h1 { font-size: 2rem; font-weight: 800; letter-spacing: -.025em; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat { background: var(--surface); border-radius: var(--r-md); padding: 14px 12px; box-shadow: var(--shadow); }
.stat b { display: block; font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.15; }
.stat span { font-size: .75rem; color: var(--muted); font-weight: 700; }
.stat .delta { display: inline-flex; align-items: center; gap: 2px; font-size: .75rem; font-weight: 800; margin-top: 4px; }
.delta.good { color: var(--verde); } .delta.bad { color: var(--laranja); } .delta.same { color: var(--muted); }

/* ---------- Progresso ---------- */
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart text { fill: var(--muted); font-size: 10px; font-family: var(--font); font-weight: 600; }
.chart .grid { stroke: var(--line); stroke-dasharray: 3 4; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: .78rem; color: var(--muted); font-weight: 600; margin-top: 10px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 5px; vertical-align: 0; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; text-align: center; }
.cal .wd { font-size: .7rem; font-weight: 800; color: var(--muted); padding-bottom: 4px; }
.cal .day { aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; font-weight: 700; background: var(--surface-2); color: var(--muted); position: relative; }
.cal .day.has { color: var(--pill-ink); }
.cal .day.trained { box-shadow: inset 0 0 0 3px var(--brand); }
.cal .day.today { outline: 2px solid var(--ink); outline-offset: 2px; }
.cal .day.empty { background: transparent; }
.feed-item { display: flex; gap: 14px; padding: 16px; border-bottom: 1px solid var(--line); }
.feed-item:last-child { border-bottom: 0; }
.feed-item .ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; flex-shrink: 0; }
.feed-item .ico.train { background: var(--brand-soft); color: var(--brand); }
.feed-item .ico.check { background: var(--surface-2); }
.feed-item .t { flex: 1; min-width: 0; }
.feed-item .t b { font-weight: 800; font-size: .95rem; }
.feed-item .t .when { font-size: .78rem; color: var(--muted); font-weight: 600; }
.feed-item .facts { display: flex; gap: 18px; margin-top: 8px; flex-wrap: wrap; }
.feed-item .facts div { font-size: .72rem; color: var(--muted); font-weight: 700; }
.feed-item .facts div b { display: block; font-size: 1rem; color: var(--ink); }
.feed-item .note { font-size: .88rem; color: var(--muted); margin-top: 6px; font-style: italic; }

/* ---------- Guia ---------- */
.article-card { display: flex; gap: 14px; align-items: center; padding: 14px; background: var(--surface); border-radius: var(--r-md); text-decoration: none; box-shadow: var(--shadow); }
.article-card + .article-card { margin-top: 10px; }
.article-card .tile { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; flex-shrink: 0; color: var(--ink); }
.article-card .t { flex: 1; }
.article-card .t b { display: block; font-weight: 800; letter-spacing: -.01em; }
.article-card .t span { font-size: .85rem; color: var(--muted); }
.article-card.alarm { background: var(--laranja-bg); box-shadow: none; }
.article-card.alarm .tile { background: var(--laranja); color: #fff; }
.article { padding-bottom: 20px; }
.article .cover { margin: 0 -16px; padding: 18px 16px 28px; }
.article .cover .tile { width: 64px; height: 64px; border-radius: 18px; background: var(--surface); display: grid; place-items: center; margin-top: 18px; }
.article .cover h1 { font-size: 1.8rem; font-weight: 800; letter-spacing: -.025em; line-height: 1.15; margin-top: 16px; }
.article .cover p { color: var(--muted); margin-top: 6px; font-weight: 600; font-size: .9rem; }
.article .content { font-size: 1.05rem; line-height: 1.65; margin-top: 22px; }
.article .content p { margin-bottom: 14px; }
.article .content ul { padding-left: 20px; margin: 0 0 14px; }
.article .content li { margin-bottom: 10px; }
.ref-list { padding-left: 18px; margin: 0; font-size: .85rem; color: var(--muted); }
.ref-list li { margin-bottom: 10px; }
.ref-list a { color: var(--brand); font-weight: 700; }

/* ---------- Perfil ---------- */
.profile-head { display: flex; align-items: center; gap: 16px; padding: 10px 0 6px; }
.profile-head .avatar { width: 64px; height: 64px; font-size: 1.6rem; }
.profile-head h2 { font-size: 1.3rem; font-weight: 800; }
.form-stack > * + * { margin-top: 16px; }
.segmented { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--surface-2); border-radius: 14px; padding: 4px; gap: 4px; }
.segmented button { border: 0; background: transparent; padding: 10px 6px; border-radius: 10px; font-weight: 700; font-size: .88rem; cursor: pointer; color: var(--muted); }
.segmented button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.setting { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-bottom: 1px solid var(--line); font-weight: 600; }
.setting:last-child { border-bottom: 0; }
.setting .ico { width: 36px; height: 36px; border-radius: 10px; background: var(--surface-2); display: grid; place-items: center; flex-shrink: 0; }
.setting .grow { flex: 1; }
.setting small { display: block; color: var(--muted); font-weight: 500; font-size: .8rem; }
.setting select, .setting input[type="time"] { width: auto; height: 44px; padding: 0 12px; box-shadow: none; }
.setting select { padding-right: 38px; background-position: right 10px center; }
.disclaimer { font-size: .8rem; color: var(--muted); text-align: center; margin-top: 26px; line-height: 1.6; }
.disclaimer.legal-links { margin-top: 8px; }
.legal-links a { color: inherit; font-weight: 600; text-underline-offset: 3px; }

/* ---------- Boas-vindas ---------- */
.welcome { text-align: center; padding-top: 10px; }
.welcome .demo-wrap { max-width: 260px; }
.welcome .brandmark { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem; margin-top: 8px; }
.welcome h1 { font-size: 2.2rem; margin-top: 18px; }
.feature { display: flex; gap: 14px; text-align: left; align-items: flex-start; padding: 12px 0; }
.feature .ico { width: 42px; height: 42px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; flex-shrink: 0; }
.feature b { display: block; }
.feature span { color: var(--muted); font-size: .9rem; }

@media (min-width: 600px) {
  .tabbar { max-width: 560px; margin: 0 auto; border: 1px solid var(--line); border-bottom: 0; border-radius: 22px 22px 0 0; }
}
@media (max-width: 360px) {
  .hero h2 { font-size: 1.3rem; }
  .grade-ticks { grid-template-columns: repeat(5, 1fr); }
}

/* ---------- Acesso (login, cadastro, 2FA) ---------- */
.screen.auth .screen-body { max-width: 440px; width: 100%; margin: 0 auto; flex: 0 0 auto; }
.screen.auth .auth-foot { padding-top: 18px; border-top: 1px solid var(--line); max-width: 400px; }
.brandmark { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem; }
.brandmark.small { font-size: 1.05rem; gap: 8px; }
.brandmark .tag { margin-left: 4px; }
.form-stack { display: flex; flex-direction: column; gap: 16px; margin-top: 24px; }
.sheet .form-stack { margin-top: 8px; }
.meter { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: -6px; }
.meter i { height: 5px; border-radius: 5px; background: var(--line); }
.meter span { grid-column: 1 / -1; font-size: .8rem; color: var(--muted); font-weight: 600; }
.meter[data-level="1"] i:nth-child(1) { background: var(--laranja); }
.meter[data-level="2"] i:nth-child(-n+2) { background: var(--amarelo); }
.meter[data-level="3"] i { background: var(--verde); }
.form-error { background: var(--laranja-bg); color: var(--ink); border-radius: var(--r-sm); padding: 10px 14px; font-size: .9rem; font-weight: 600; }
.fine { font-size: .8rem; color: var(--muted); line-height: 1.55; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .88rem; line-height: 1.5; color: var(--ink); cursor: pointer; }
.consent input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.consent .box { flex-shrink: 0; width: 24px; height: 24px; margin-top: 1px; border-radius: 7px; border: 2px solid var(--line); background: var(--surface); display: grid; place-items: center; color: transparent; }
.consent input:checked + .box { background: var(--brand); border-color: var(--brand); color: #fff; }
.consent input:focus-visible + .box { outline: 3px solid var(--brand); outline-offset: 2px; }
.consent a { color: var(--brand); font-weight: 700; text-underline-offset: 3px; }
.center-link { align-self: center; padding: 6px; }
.auth-foot { text-align: center; padding: 8px 20px calc(24px + env(safe-area-inset-bottom)); color: var(--muted); font-size: .92rem; width: 100%; max-width: 480px; margin: 0 auto; }
.setup-steps { list-style: none; padding: 0; margin: 22px 0 0; counter-reset: st; }
.setup-steps li { counter-increment: st; position: relative; padding: 0 0 18px 44px; }
.setup-steps li::before { content: counter(st); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--bg); display: grid; place-items: center; font-weight: 800; font-size: .85rem; }
.setup-steps b { display: block; }
.setup-steps span { color: var(--muted); font-size: .9rem; }
.qr { background: #fff; border-radius: var(--r-md); padding: 10px; width: 200px; margin-top: 12px; }
.qr svg { width: 100%; height: auto; display: block; }
.secret { display: inline-block; margin-top: 10px; padding: 8px 12px; border-radius: 10px; background: var(--surface-2); font-size: .85rem; letter-spacing: .05em; word-break: break-all; }
.codes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 20px; }
.codes code { background: var(--surface); border-radius: 10px; padding: 10px; text-align: center; font-weight: 700; letter-spacing: .04em; box-shadow: var(--shadow); }
.row-btns { display: flex; gap: 10px; margin-top: 14px; }

/* ---------- Avisos e painéis ---------- */
#toasts { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--tab-h) + 18px + env(safe-area-inset-bottom)); z-index: 100; display: flex; flex-direction: column; gap: 8px; width: min(92vw, 440px); pointer-events: none; }
body.immersive #toasts { bottom: calc(24px + env(safe-area-inset-bottom)); }
.toast { background: var(--ink); color: var(--bg); padding: 12px 16px; border-radius: 14px; font-weight: 600; font-size: .92rem; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.toast.error { background: var(--laranja); color: #fff; }
.toast.ok { background: var(--verde); color: #fff; }
.sheet-backdrop { position: fixed; inset: 0; z-index: 90; background: rgba(10, 12, 16, .5); display: flex; align-items: flex-end; justify-content: center; }
.sheet { background: var(--bg); width: 100%; max-width: 560px; max-height: 88vh; overflow-y: auto; border-radius: 24px 24px 0 0; padding: 22px 20px calc(22px + env(safe-area-inset-bottom)); }
@media (min-width: 700px) { .sheet-backdrop { align-items: center; } .sheet { border-radius: 24px; } }
.sheet-title { font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.25; margin: 6px 0 8px; }
.sheet-actions { display: flex; gap: 10px; margin-top: 18px; }
.sheet-actions .btn { flex: 1; }
[aria-busy="true"] { opacity: .6; cursor: progress; }

/* ---------- Perfil: clínica e segurança ---------- */
.row-btn { width: 100%; background: none; border: 0; border-bottom: 1px solid var(--line); cursor: pointer; text-align: left; color: var(--ink); font: inherit; font-weight: 600; }
.row-btn:last-child { border-bottom: 0; }
.row-btn.danger { color: var(--laranja); }
.row-btn.danger .ico { background: var(--laranja-bg); color: var(--laranja); }
.tile-ico { width: 52px; height: 52px; border-radius: 16px; background: var(--verde-bg); color: var(--verde); display: grid; place-items: center; flex-shrink: 0; }
.code-row { display: flex; gap: 10px; margin-top: 14px; }
.code-row input { text-transform: uppercase; letter-spacing: .12em; font-weight: 800; }

/* ---------- Avisos e consultas ---------- */
.bell { position: relative; color: var(--ink); }
.bell .badge { position: absolute; top: -3px; right: -3px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--brand); color: #fff; font-size: .7rem; font-weight: 800; display: grid; place-items: center; border: 2px solid var(--bg); }
.appt-card { display: flex; gap: 16px; background: var(--surface); border-radius: var(--r-lg); padding: 16px; box-shadow: var(--shadow); }
.appt-card + .appt-card { margin-top: 10px; }
.appt-card.past { opacity: .7; box-shadow: none; background: var(--surface-2); }
.appt-date { width: 64px; height: 92px; align-self: flex-start; flex-shrink: 0; border-radius: 16px; background: var(--brand-soft); color: var(--brand); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 10px 0; line-height: 1.1; text-transform: capitalize; }
.appt-date b { font-size: 1.7rem; font-weight: 800; }
.appt-date span { font-weight: 800; font-size: .85rem; }
.appt-date small { font-size: .72rem; font-weight: 700; opacity: .8; }
.appt-card.past .appt-date { background: var(--line); color: var(--muted); }
.appt-info { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.appt-info > b { font-size: 1.05rem; font-weight: 800; }
.appt-info > span:not(.tag) { color: var(--muted); font-size: .9rem; margin-top: 2px; }
.appt-note { display: flex; gap: 6px; align-items: flex-start; font-size: .85rem; color: var(--muted); margin-top: 8px; }
.appt-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 12px; }
.notice-item { display: flex; gap: 14px; padding: 14px 16px; border-bottom: 1px solid var(--line); text-decoration: none; }
.notice-item:last-child { border-bottom: 0; }
.notice-item .ico { width: 40px; height: 40px; border-radius: 12px; background: var(--surface-2); display: grid; place-items: center; flex-shrink: 0; }
.notice-item.unread .ico { background: var(--brand-soft); color: var(--brand); }
.notice-item .t { flex: 1; min-width: 0; }
.notice-item .t b { display: block; font-weight: 800; font-size: .95rem; }
.notice-item .t span { display: block; font-size: .9rem; color: var(--ink); margin-top: 2px; }
.notice-item .t small { display: block; font-size: .78rem; color: var(--muted); font-weight: 600; margin-top: 4px; }
.notice-item.unread .t b::after { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); margin-left: 8px; vertical-align: 2px; }
