/* Recomp — visual minimalista (mobile-first) */
/* fonte Inter servida pelo próprio site (licença SIL OFL 1.1) */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../fonts/inter-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../fonts/inter-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f3f3f5;
  --surface-3: #e8e8ec;
  --border: #ececee;
  --line: #ececee;
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --text-3: #a1a1a6;
  --ink: #1d1d1f;          /* botões primários */
  --ink-text: #ffffff;
  --accent: #34a853;       /* verde: progresso / concluído */
  --accent-ink: #ffffff;
  --accent-soft: #e9f6ec;
  --track: #ededef;
  --good: #34a853;
  --good-soft: #e9f6ec;
  --warn: #b26b00;
  --warn-soft: #fbf3e4;
  --bad: #d93025;
  --bad-soft: #fcebea;
  --info-soft: #f3f3f5;
  --series-1: #34a853;
  --series-2: #eb6834;
  --series-3: #2a78d6;
  --grid: #f0f0f2;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.06);
  --radius: 16px;
  --radius-sm: 12px;
  --tap: 44px;
  --nav-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
  --content: 720px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #000000; --surface: #0b0b0c; --surface-2: #1c1c1e; --surface-3: #2c2c2e; --border: #232325; --line: #232325;
    --text: #f5f5f7; --text-2: #a1a1a6; --text-3: #6e6e73; --ink: #f5f5f7; --ink-text: #000000;
    --accent: #3fb95f; --accent-soft: #11291a; --track: #2c2c2e; --good: #3fb95f; --good-soft: #11291a;
    --warn: #e0a534; --warn-soft: #2e2410; --bad: #ff6b60; --bad-soft: #351816; --info-soft: #1c1c1e;
    --series-1: #3fb95f; --series-2: #d95926; --series-3: #3987e5; --grid: #1c1c1e;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.4);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #000000; --surface: #0b0b0c; --surface-2: #1c1c1e; --surface-3: #2c2c2e; --border: #232325; --line: #232325;
  --text: #f5f5f7; --text-2: #a1a1a6; --text-3: #6e6e73; --ink: #f5f5f7; --ink-text: #000000;
  --accent: #3fb95f; --accent-soft: #11291a; --track: #2c2c2e; --good: #3fb95f; --good-soft: #11291a;
  --warn: #e0a534; --warn-soft: #2e2410; --bad: #ff6b60; --bad-soft: #351816; --info-soft: #1c1c1e;
  --series-1: #3fb95f; --series-2: #d95926; --series-3: #3987e5; --grid: #1c1c1e;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.4);
}

/* logo horizontal: troca a versão clara/escura junto com o tema */
.logo { display: inline-block; aspect-ratio: 454 / 120; height: 24px; background: url("../icons/logo.png") left center / contain no-repeat; }
:root[data-theme="dark"] .logo { background-image: url("../icons/logo-white.png"); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo { background-image: url("../icons/logo-white.png"); } }

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg); color: var(--text); font-family: var(--font);
  font-size: 16px; line-height: 1.45; -webkit-tap-highlight-color: transparent; overflow-x: hidden;
  -webkit-font-smoothing: antialiased; font-feature-settings: "cv11", "ss01";
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
svg { display: block; }
[hidden] { display: none !important; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; }
h2 { font-size: 1.35rem; font-weight: 600; }
h3 { font-size: 1.05rem; font-weight: 600; }
p { margin: 0 0 .5rem; }
small, .muted { color: var(--text-2); }
.dim { color: var(--text-3); }
.num { font-variant-numeric: tabular-nums; }

/* ---------- topo (desktop) ---------- */
.topbar { display: none; }
.avatar {
  width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--ink); color: var(--ink-text);
  font-weight: 600; font-size: .95rem; display: grid; place-items: center; cursor: pointer; flex: none;
}
.project-pill {
  border: 0; background: var(--surface-2); border-radius: 999px; padding: 8px 14px; font-size: .82rem; font-weight: 500;
  white-space: nowrap; max-width: 240px; overflow: hidden; text-overflow: ellipsis; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
}
.project-pill::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); flex: none; }

/* ---------- cabeçalho da página ---------- */
.main { min-width: 0; }
.page-head {
  display: flex; align-items: flex-start; gap: 8px;
  padding: calc(var(--safe-t) + 28px) 22px 4px; max-width: var(--content); margin: 0 auto;
}
.page-head-text { flex: 1; min-width: 0; }
.eyebrow { font-size: .95rem; color: var(--text-2); }
.eyebrow:empty { display: none; }
.page-title { font-size: 2.35rem; font-weight: 700; letter-spacing: -0.035em; margin-top: 2px; }
.page-head.sub { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); padding-top: calc(var(--safe-t) + 10px); padding-bottom: 10px; align-items: center; }
.page-head.sub .page-title { font-size: 1.2rem; font-weight: 600; letter-spacing: -0.01em; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.page-head.sub .eyebrow { display: none; }
.page-head.sub .avatar-m { width: 34px; height: 34px; font-size: .82rem; }
.icon-btn { width: var(--tap); height: var(--tap); display: inline-grid; place-items: center; border: 0; background: transparent; border-radius: 50%; cursor: pointer; flex: none; color: inherit; }
.icon-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn:active { background: var(--surface-2); }
.icon-btn:disabled { opacity: .3; }
.back-btn { margin-left: -12px; }

.view { padding: 12px 22px calc(var(--nav-h) + var(--safe-b) + 32px); outline: none; max-width: var(--content); margin: 0 auto; }

/* ---------- navegação inferior (mobile) ---------- */
.nav-bottom {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(4, 1fr);
  height: calc(var(--nav-h) + var(--safe-b) + 6px); padding: 6px 0 var(--safe-b);
  background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
}
.nav-bottom a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-decoration: none; color: var(--text-2); font-size: .78rem; font-weight: 500; }
.nav-bottom a svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nav-bottom a.active { color: var(--text); font-weight: 600; }
.nav-bottom a.active svg { stroke-width: 2.2; }

/* ---------- desktop ---------- */
@media (min-width: 900px) {
  .topbar { display: block; position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
  .topbar-inner { max-width: 1040px; margin: 0 auto; height: 56px; padding: 0 24px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
  .brand { display: flex; align-items: center; text-decoration: none; }
  .brand .logo { height: 22px; }
  .nav-top { display: flex; gap: 28px; }
  .nav-top a { text-decoration: none; color: var(--text-2); font-size: .92rem; font-weight: 500; padding: 6px 0; }
  .nav-top a:hover { color: var(--text); }
  .nav-top a.active { color: var(--text); font-weight: 600; }
  .topbar-right { display: flex; justify-content: flex-end; align-items: center; gap: 12px; }
  .topbar .avatar { width: 32px; height: 32px; font-size: .8rem; }
  .nav-bottom { display: none; }
  .avatar-m { display: none !important; }
  .page-head { padding: 48px 24px 0; }
  .page-head.main-tab .page-title { display: none; }
  .page-head.sub { position: static; background: none; backdrop-filter: none; padding-top: 36px; }
  .page-head.sub .page-title { font-size: 1.6rem; font-weight: 700; letter-spacing: -0.02em; }
  .view { padding: 16px 24px 80px; }
}
@media (max-width: 899px) {
  .page-head.main-tab .back-btn { display: none; }
}

/* ---------- herói / tipografia de destaque ---------- */
.hero-num { font-size: clamp(84px, 25vw, 132px); font-weight: 700; letter-spacing: -0.055em; line-height: .92; font-variant-numeric: tabular-nums; }
.hero-num.md { font-size: clamp(64px, 19vw, 104px); }
.hero-row { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.hero-row.nowrap { flex-wrap: nowrap; }
.hero-num.long { font-size: clamp(64px, 19vw, 124px); }
.hero-unit { font-size: clamp(1.3rem, 5vw, 1.6rem); color: var(--text-2); font-weight: 500; letter-spacing: -0.01em; padding-bottom: .35em; line-height: 1.15; }
.hero-sub { font-size: clamp(1.15rem, 4.6vw, 1.45rem); color: var(--text-2); font-weight: 500; letter-spacing: -0.015em; margin-top: 8px; }
.hero-title { font-size: clamp(56px, 15vw, 96px); font-weight: 700; letter-spacing: -0.05em; line-height: .95; }
.bar { height: 6px; border-radius: 99px; background: var(--track); overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--accent); border-radius: 99px; min-width: 6px; }
.bar.thin { height: 4px; }
.bar-legend { display: flex; justify-content: space-between; font-size: .86rem; color: var(--text-2); margin-top: 10px; gap: 8px; }
.bar-legend b { color: var(--text); font-weight: 600; }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.trio .k { font-size: .95rem; color: var(--text-2); }
.trio .v { font-size: clamp(1.8rem, 8vw, 2.4rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; margin-top: 4px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.trio .v small { font-size: .5em; color: var(--text-2); font-weight: 500; letter-spacing: 0; margin-left: 2px; }
.trio .s { font-size: .86rem; color: var(--text-2); margin-top: 4px; }
.trio .bar { margin-top: 10px; }
.sep { height: 1px; background: var(--line); margin: 28px 0; border: 0; }
.space { height: 28px; }
.space-lg { height: 44px; }
.foot-line { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: .9rem; color: var(--text-2); flex-wrap: wrap; }
.foot-line b { color: var(--text); font-weight: 600; }
.foot-line a, .link { color: var(--text); font-weight: 600; text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; font-size: inherit; }
.link.muted { color: var(--text-2); font-weight: 500; }
.next { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.next .lbl { font-size: .95rem; color: var(--text-2); }
.next .ttl { font-size: clamp(1.45rem, 5.6vw, 1.85rem); font-weight: 600; letter-spacing: -0.025em; margin-top: 6px; }
.next .meta { font-size: 1.05rem; color: var(--text-2); margin-top: 2px; }
@media (max-width: 699px) { .next .btn.lg { width: 100%; } }
.links { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .9rem; }
.links a, .links button { color: var(--text-2); text-decoration: none; background: none; border: 0; padding: 6px 0; cursor: pointer; font-weight: 500; }
.links a:hover, .links button:hover { color: var(--text); }

/* visibilidade por tamanho de tela */
@media (max-width: 699px) { .hide-m, .hide-m-legend { display: none !important; } }
@media (min-width: 700px) { .show-m { display: none !important; } }

/* ---------- layout helpers ---------- */
.stack { display: flex; flex-direction: column; gap: 14px; }
.stack-sm { display: flex; flex-direction: column; gap: 6px; }
.row { display: flex; align-items: center; gap: 8px; }
.row.wrap { flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cards { display: grid; gap: 14px; grid-template-columns: 1fr; }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 22px 0 4px; }
.section-title h2 { font-size: 1.35rem; font-weight: 600; letter-spacing: -0.02em; }
.mt { margin-top: 14px; } .mb { margin-bottom: 14px; }

/* ---------- cartões ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; min-width: 0; }
.card.flat { background: var(--surface-2); border-color: transparent; }
.card.hero { background: var(--surface); }
.card h3 { margin-bottom: 8px; }
.card-link { display: block; text-decoration: none; color: inherit; }

.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 16px; padding: 4px 0; }
@media (min-width: 700px) { .stat-grid { grid-template-columns: repeat(4, 1fr); } }
.stat { min-width: 0; }
.stat .label { font-size: .88rem; color: var(--text-2); }
.stat .value { font-size: 1.85rem; font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1.15; margin-top: 2px; }
.stat .value small { font-size: .55em; color: var(--text-2); font-weight: 500; letter-spacing: 0; }
.stat .sub { font-size: .84rem; color: var(--text-2); margin-top: 2px; }

/* ---------- listas (linhas com divisória) ---------- */
.list { border-top: 1px solid var(--line); }
.list-item {
  display: flex; align-items: center; gap: 14px; padding: 16px 0; border: 0; border-bottom: 1px solid var(--line);
  min-height: 60px; text-decoration: none; color: inherit; background: none; width: 100%; text-align: left; cursor: pointer;
}
.list-item:active { opacity: .6; }
.list-item .title { font-size: 1.02rem; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-item .meta { font-size: .88rem; color: var(--text-2); margin-top: 1px; }
.list-item .chev { color: var(--text-3); }
.list-item .chev svg { width: 16px; height: 16px; }
.list-item .end { color: var(--text-2); font-size: 1.02rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (min-width: 900px) { .list-item { padding: 14px 0; } .list-item .title { font-size: .98rem; } }
.check-circle { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--surface-3); flex: none; display: grid; place-items: center; }
.check-circle.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.check-circle svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 3; }
.add-circle { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--surface-2); display: grid; place-items: center; cursor: pointer; flex: none; color: var(--text); }
.add-circle svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; }
.add-circle.on { background: var(--accent); color: #fff; }
.empty { text-align: center; color: var(--text-2); padding: 32px 16px; border-radius: var(--radius); background: var(--surface-2); }
.empty .big { font-size: 1.8rem; margin-bottom: 6px; }

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--tap); padding: 0 18px; border-radius: 999px; border: 0;
  background: var(--surface-2); font-weight: 500; font-size: .95rem; cursor: pointer; text-decoration: none; color: var(--text);
  white-space: nowrap; user-select: none;
}
.btn svg { width: 1.05em !important; height: 1.05em !important; }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--ink); color: var(--ink-text); }
.btn.good { background: var(--accent); color: #fff; }
.btn.danger { color: var(--bad); }
.btn.danger.solid { background: var(--bad); color: #fff; }
.btn.ghost { background: transparent; }
.btn.sm { min-height: 36px; padding: 0 14px; font-size: .86rem; }
.btn.block { width: 100%; }
.btn.lg { min-height: 52px; font-size: 1.02rem; padding: 0 26px; }
.btn.xl { min-height: 64px; font-size: 1.15rem; padding: 0 28px; }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-row > .btn { flex: 1 1 auto; }
.round-btn { width: 64px; height: 64px; border-radius: 50%; border: 0; background: var(--ink); color: var(--ink-text); display: grid; place-items: center; cursor: pointer; flex: none; }
.round-btn svg { width: 20px; height: 20px; fill: currentColor; stroke: none; }
.fab { position: fixed; right: 20px; bottom: calc(var(--nav-h) + var(--safe-b) + 20px); z-index: 25; width: 56px; height: 56px; border-radius: 50%; border: 0; background: var(--ink); color: var(--ink-text); box-shadow: var(--shadow); display: grid; place-items: center; font-size: 26px; cursor: pointer; }

/* ---------- formulários ---------- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span, .field > label { font-size: .86rem; font-weight: 500; color: var(--text-2); }
.input, select.input, textarea.input {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 12px; border: 1px solid transparent;
  background: var(--surface-2); font-size: 16px;
}
textarea.input { min-height: 90px; resize: vertical; }
.input:focus { outline: 2px solid var(--ink); outline-offset: -2px; background: var(--surface); }
.input::placeholder { color: var(--text-3); }
.search-input { position: relative; }
.search-input svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--text-2); }
.search-input .input { padding-left: 48px; min-height: 52px; border-radius: 14px; }
.form { display: flex; flex-direction: column; gap: 14px; }
.hint { font-size: .82rem; color: var(--text-3); }
.check { display: flex; align-items: center; gap: 12px; min-height: var(--tap); cursor: pointer; }
.check input { width: 22px; height: 22px; accent-color: var(--accent); }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 4px; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 0; background: var(--surface-2); font-size: .88rem; font-weight: 500; cursor: pointer; text-decoration: none; color: var(--text); }
.chip.on, .chip[aria-pressed="true"] { background: var(--ink); color: var(--ink-text); }
.chip.xs { min-height: 24px; padding: 0 8px; font-size: .74rem; cursor: default; }

.seg { display: flex; background: var(--surface-2); border-radius: 14px; padding: 4px; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button { flex: 1 0 auto; min-height: 40px; border: 0; background: transparent; border-radius: 10px; padding: 0 14px; font-weight: 500; font-size: .92rem; color: var(--text); cursor: pointer; white-space: nowrap; }
.seg button.on { background: var(--surface); box-shadow: 0 1px 3px rgba(0,0,0,.1); font-weight: 600; }
:root[data-theme="dark"] .seg button.on { background: var(--surface-3); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .seg button.on { background: var(--surface-3); } }
.seg.sm button { min-height: 32px; font-size: .82rem; padding: 0 12px; }

.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; font-size: .74rem; font-weight: 500; background: var(--surface-2); color: var(--text-2); white-space: nowrap; vertical-align: middle; }
.badge.good { background: var(--good-soft); color: var(--good); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.bad { background: var(--bad-soft); color: var(--bad); }
.badge.info { background: var(--surface-2); color: var(--text); }

.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--surface-2); font-size: .92rem; }
.alert > svg { flex: none; margin-top: 2px; }
.alert a { font-weight: 600; }
.alert.warn { background: var(--warn-soft); }
.alert.bad { background: var(--bad-soft); }
.alert.good { background: var(--good-soft); }

.progress { height: 6px; background: var(--track); border-radius: 99px; overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.progress.good > i { background: var(--accent); }
.progress.warn > i { background: var(--warn); }
.progress.bad > i { background: var(--bad); }

/* ---------- sheet / modal ---------- */
.sheet-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 60; display: flex; align-items: flex-end; justify-content: center; animation: fade .15s ease; }
.sheet { background: var(--surface); width: 100%; max-height: 92dvh; overflow: auto; border-radius: 22px 22px 0 0; padding: 8px 22px calc(18px + var(--safe-b)); animation: up .22s ease; overscroll-behavior: contain; }
.sheet.full { max-height: 100dvh; height: 100dvh; border-radius: 0; padding-top: calc(var(--safe-t) + 8px); display: flex; flex-direction: column; }
.sheet.full .sheet-body { flex: 1 0 auto; }
.sheet.full .sheet-foot { border-top: 0; }
.sheet-grip { width: 38px; height: 5px; background: var(--surface-3); border-radius: 9px; margin: 4px auto 10px; }
.sheet.full .sheet-grip { display: none; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 14px; position: sticky; top: -8px; background: var(--surface); padding: 8px 0; z-index: 2; }
.sheet-head h2 { font-size: 1.2rem; font-weight: 600; }
.sheet-head.nav { display: grid; grid-template-columns: 1fr auto 1fr; padding: 14px 0; }
.sheet-head.nav h2 { text-align: center; font-size: 1.15rem; }
.sheet-head.nav .l { justify-self: start; } .sheet-head.nav .r { justify-self: end; }
.sheet-head .txt-btn { background: none; border: 0; font-size: 1.05rem; cursor: pointer; padding: 8px 0; color: var(--text); }
.sheet-head .txt-btn.strong { font-weight: 600; }
.sheet-foot { position: sticky; bottom: calc(-18px - var(--safe-b)); background: var(--surface); padding: 14px 0 calc(6px + var(--safe-b)); margin-top: 14px; display: flex; gap: 8px; border-top: 1px solid var(--line); }
.sheet-foot .btn { flex: 1; min-height: 50px; }
@media (min-width: 700px) {
  .sheet-backdrop { align-items: center; }
  .sheet, .sheet.full { max-width: 560px; height: auto; max-height: 88dvh; border-radius: 22px; padding: 18px 24px 22px; }
  .sheet.wide { max-width: 900px; }
  .sheet-grip { display: none; }
  .sheet-foot { bottom: -22px; }
}
@keyframes up { from { transform: translateY(24px); opacity: .6; } to { transform: none; opacity: 1; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.toast-root { position: fixed; left: 0; right: 0; bottom: calc(var(--nav-h) + var(--safe-b) + 18px); z-index: 80; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; padding: 0 16px; }
@media (min-width: 900px) { .toast-root { bottom: 28px; } }
.toast { background: var(--ink); color: var(--ink-text); padding: 11px 18px; border-radius: 999px; font-weight: 500; font-size: .9rem; box-shadow: var(--shadow); animation: up .2s ease; max-width: 520px; pointer-events: auto; }
.toast.good { background: var(--ink); }
.toast.bad { background: var(--bad); color: #fff; }

/* ---------- calendário ---------- */
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal .dow { text-align: center; font-size: .74rem; font-weight: 500; color: var(--text-3); padding: 4px 0; }
.cal .day { aspect-ratio: 1 / 1.1; border-radius: 12px; background: transparent; border: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding: 6px 2px; gap: 3px; cursor: pointer; min-width: 0; font-size: .9rem; }
.cal .day:hover { background: var(--surface-2); }
.cal .day.out { opacity: .3; }
.cal .day.today { background: var(--ink); color: var(--ink-text); }
.cal .day .n { font-weight: 500; font-variant-numeric: tabular-nums; }
.cal .dots { display: flex; gap: 2px; flex-wrap: wrap; justify-content: center; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); display: inline-block; flex: none; }
.dot.planned { background: transparent; border: 1.5px solid var(--text-2); }
.cal .day.today .dot.planned { border-color: var(--ink-text); }
.dot.done { background: var(--accent); }
.dot.missed { background: var(--bad); }
.dot.canceled { background: var(--text-3); }
.dot.rescheduled { background: var(--warn); }
.dot.checkin { background: var(--series-3); border-radius: 2px; }
.dot.excluded { background: transparent; border: 1.5px dashed var(--text-3); }
.dot.paused { background: var(--surface-3); }
.cal .day .tag { font-size: .62rem; line-height: 1.1; font-weight: 600; color: var(--text-2); max-width: 100%; padding: 0 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal .day.today .tag { color: var(--ink-text); opacity: .85; }

/* semana de treinos (formulário do projeto) */
.week { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.week-row { display: grid; grid-template-columns: 88px 1fr 1fr; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.week-day { font-weight: 600; font-size: .92rem; }
.week-row.rest .week-day { color: var(--text-3); font-weight: 500; }
.week-row.rest select.input { color: var(--text-2); }
.week-row select.input { min-height: 42px; padding: 8px 10px; font-size: .92rem; }
@media (max-width: 420px) {
  .week-row { grid-template-columns: 1fr 1fr; row-gap: 6px; }
  .week-day { grid-column: 1 / -1; }
  .week-gap { display: none; }
}

.legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: .8rem; color: var(--text-2); margin-top: 14px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- sessão de treino ---------- */
.session-bar { position: sticky; top: 0; z-index: 15; margin: 0 -22px 14px; padding: 12px 22px; background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.page-head.sub ~ .view .session-bar { top: calc(var(--safe-t) + 64px); }
@media (min-width: 900px) { .session-bar, .page-head.sub ~ .view .session-bar { top: 56px; margin: 0 -24px 16px; padding: 12px 24px; } }
.clock { font-size: 1.7rem; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.ex-card { padding: 0; overflow: hidden; }
.ex-head { padding: 16px 16px 12px; display: flex; align-items: flex-start; gap: 10px; }
.ex-head .name { font-weight: 600; font-size: 1.08rem; letter-spacing: -0.01em; }
.set-row { display: grid; grid-template-columns: 28px 1fr 1fr 66px 48px; gap: 6px; align-items: center; padding: 5px 12px; }
.set-row.head { font-size: .72rem; font-weight: 500; color: var(--text-3); padding-top: 4px; padding-bottom: 2px; }
.set-row.done .input { background: var(--accent-soft); }
.set-row .idx { font-weight: 600; text-align: center; color: var(--text-2); font-variant-numeric: tabular-nums; }
.set-row .input { min-height: 44px; padding: 6px 8px; text-align: center; font-variant-numeric: tabular-nums; border-radius: 10px; }
.set-row select.input { padding: 6px 2px; }
.set-check { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--surface-3); background: transparent; display: grid; place-items: center; cursor: pointer; color: var(--text-3); }
.set-check svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 3; }
.set-row.done .set-check { background: var(--accent); border-color: var(--accent); color: #fff; }
.prev-hint { font-size: .74rem; color: var(--text-3); padding: 0 12px 4px 46px; }
.ex-foot { display: flex; gap: 6px; padding: 10px 12px 14px; flex-wrap: wrap; align-items: center; }

.rest-timer { position: fixed; left: 14px; right: 14px; bottom: calc(var(--nav-h) + var(--safe-b) + 16px); z-index: 40; background: var(--ink); color: var(--ink-text); border-radius: 22px; padding: 14px 16px; display: flex; align-items: center; gap: 10px; box-shadow: 0 12px 32px rgba(0,0,0,.28); }
.rest-timer .clock { font-size: 2.1rem; }
.rest-timer .btn { background: color-mix(in srgb, var(--ink-text) 14%, transparent); color: inherit; min-height: 40px; padding: 0 12px; }
.rest-timer.over { background: var(--accent); color: #fff; }
@media (min-width: 900px) { .rest-timer { left: auto; right: 32px; bottom: 28px; width: 400px; } }

/* ---------- gráficos ---------- */
.chart { position: relative; width: 100%; }
.chart svg { width: 100%; height: auto; overflow: visible; }
.chart .grid line { stroke: var(--grid); stroke-width: 1; }
.chart .axis text { fill: var(--text-3); font-size: 11px; font-family: var(--font); }
.chart .s-line { fill: none; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.chart .goal { stroke: var(--text-3); stroke-dasharray: 4 4; stroke-width: 1.5; }
.chart .goal-label { fill: var(--text-2); font-size: 11px; }
.chart .xhair { stroke: var(--text-3); stroke-width: 1; }
.chart.minimal .axis { display: none; }
.chart-tip { position: absolute; pointer-events: none; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 12px; padding: 7px 11px; font-size: .8rem; white-space: nowrap; z-index: 5; transform: translate(-50%, -115%); }
.chart-tip b { font-variant-numeric: tabular-nums; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: .82rem; color: var(--text-2); margin-bottom: 8px; }
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.chart-legend i { width: 14px; height: 3px; border-radius: 2px; display: inline-block; }
.chart-empty { padding: 34px 10px; text-align: center; color: var(--text-3); font-size: .9rem; }
.chart-axis-ends { display: flex; justify-content: space-between; font-size: .84rem; color: var(--text-2); margin-top: 6px; }

/* ---------- tabelas ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius-sm); }
table.t { width: 100%; border-collapse: collapse; font-size: .86rem; }
table.t th, table.t td { padding: 10px 10px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.t th { font-size: .75rem; color: var(--text-3); font-weight: 500; position: sticky; top: 0; background: var(--surface); }
table.t td.r, table.t th.r { text-align: right; font-variant-numeric: tabular-nums; }
table.t tr:last-child td { border-bottom: 0; }

/* ---------- fotos ---------- */
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (min-width: 700px) { .photo-grid { grid-template-columns: repeat(4, 1fr); } }
.photo-grid.three { grid-template-columns: repeat(3, 1fr) !important; }
.photo-tile { position: relative; aspect-ratio: 3/4; border-radius: 14px; overflow: hidden; background: var(--surface-2); border: 0; padding: 0; cursor: pointer; display: block; }
.photo-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-tile .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 12px; font-size: .78rem; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.55)); text-align: left; line-height: 1.25; }
.photo-tile .cap small { color: rgba(255,255,255,.8); display: block; font-size: .72rem; }
.photo-tile.empty-tile .cap { color: var(--text); background: none; }
.photo-tile.empty-tile .cap small { color: var(--text-2); }
.blurred img { filter: blur(18px) saturate(.6); transform: scale(1.1); }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.compare figure { margin: 0; }
.compare img { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: 14px; background: var(--surface-2); }
.compare figcaption { font-size: .82rem; color: var(--text-2); margin-top: 6px; }
.slider-compare { position: relative; aspect-ratio: 3/4; max-width: 520px; margin: 0 auto; border-radius: 16px; overflow: hidden; background: var(--surface-2); touch-action: none; }
.slider-compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slider-compare .after { clip-path: inset(0 0 0 50%); }
.slider-compare .handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; background: #fff; box-shadow: 0 0 8px rgba(0,0,0,.5); }
.slider-compare .tag { position: absolute; top: 10px; padding: 3px 10px; font-size: .74rem; font-weight: 500; color: #fff; background: rgba(0,0,0,.5); border-radius: 99px; }

/* ---------- bloqueio ---------- */
.lock { position: fixed; inset: 0; z-index: 100; background: var(--bg); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 24px; }
.lock .lock-icon { width: 64px; height: 64px; border-radius: 15px; }
.lock .pin-dots { display: flex; gap: 14px; }
.lock .pin-dots i { width: 13px; height: 13px; border-radius: 50%; border: 1.5px solid var(--text-2); }
.lock .pin-dots i.on { background: var(--text); border-color: var(--text); }
.keypad { display: grid; grid-template-columns: repeat(3, 76px); gap: 14px; }
.keypad button { height: 76px; border-radius: 50%; border: 0; background: var(--surface-2); font-size: 1.6rem; font-weight: 500; cursor: pointer; }
.keypad button:active { background: var(--surface-3); }

/* ---------- login ---------- */
.auth { position: fixed; inset: 0; z-index: 99; background: var(--bg); overflow-y: auto; display: flex; animation: fade-in .25s ease both; }
.auth.closing { animation: fade-out .22s ease both; pointer-events: none; }
.auth-box { width: 100%; max-width: 420px; margin: auto; padding: calc(var(--safe-t) + 40px) 24px calc(var(--safe-b) + 40px); display: flex; flex-direction: column; gap: 14px; }
.auth-brand { margin-bottom: 28px; line-height: 0; }
.auth-brand .logo { height: 28px; }
.auth-title { font-size: clamp(48px, 13vw, 68px); }
.auth-sub { margin: 0 0 10px; font-size: 1.1rem; }
.auth-form { margin-top: 6px; }
.auth-form .btn { margin-top: 8px; }
.auth-links { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; margin-top: 10px; }
.auth-links button { background: none; border: 0; padding: 10px 0; font-size: 1rem; color: var(--text-2); cursor: pointer; }
.auth-links button:first-child { color: var(--text); font-weight: 600; }
.auth-links button:disabled { opacity: .4; }
.pw { position: relative; }
.pw .input { padding-right: 52px; }
.pw-eye { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: 0; background: none; color: var(--text-2); cursor: pointer; display: grid; place-items: center; border-radius: 50%; }
.pw-eye:hover { color: var(--text); }
.qr { display: grid; place-items: center; padding: 16px; background: #fff; border-radius: 16px; border: 1px solid var(--line); width: fit-content; margin: 4px auto; }
.qr img { display: block; width: 200px; height: 200px; image-rendering: pixelated; }
.secret { display: block; font-size: .95rem; letter-spacing: .05em; padding: 10px 12px; background: var(--surface-2); border-radius: 10px; word-break: break-all; user-select: all; }
.rkey { font-family: var(--mono); font-size: clamp(1.05rem, 4.6vw, 1.35rem); font-weight: 600; letter-spacing: .06em; line-height: 1.6; padding: 18px; text-align: center; background: var(--surface-2); border-radius: 16px; word-break: break-word; user-select: all; }
.code-input { font-size: 1.6rem !important; letter-spacing: .35em; text-align: center; font-variant-numeric: tabular-nums; }
.sync-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); display: inline-block; margin-right: 6px; vertical-align: middle; }
.sync-dot.syncing { background: var(--series-3); animation: pulse 1s ease-in-out infinite; }
.sync-dot.offline { background: var(--text-3); }
.sync-dot.error { background: var(--warn); }

/* ---------- conta ---------- */
.acct-head { display: flex; align-items: center; gap: 18px; margin: 8px 0 30px; }
.acct-head .avatar { width: 72px; height: 72px; font-size: 1.6rem; }
.acct-head h2 { font-size: 2rem; font-weight: 700; letter-spacing: -0.03em; }
.acct-proj .ttl { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em; margin: 8px 0 14px; }
.acct-quiet { display: flex; flex-direction: column; gap: 4px; margin-top: 28px; }
.acct-quiet a, .acct-quiet button { color: var(--text-2); text-decoration: none; font-size: 1.05rem; padding: 10px 0; background: none; border: 0; text-align: left; cursor: pointer; }
.list-item .ico { color: var(--text); flex: none; }
.list-item .ico svg { width: 22px; height: 22px; }

/* ---------- nutrição: blocos ---------- */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tile { background: var(--surface-2); border: 0; border-radius: 16px; min-height: 84px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; cursor: pointer; font-size: .95rem; font-weight: 500; color: var(--text); }
.tile svg { width: 22px; height: 22px; }
.tile.on { background: var(--ink); color: var(--ink-text); }
.group-label { font-size: .9rem; color: var(--text-2); margin: 18px 0 6px; }

/* ---------- diversos ---------- */
.scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.scale button { min-height: 46px; border-radius: 12px; border: 0; background: var(--surface-2); font-weight: 600; cursor: pointer; }
.scale button.on { background: var(--ink); color: var(--ink-text); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: .92rem; margin: 0; }
.kv dt { color: var(--text-2); }
.kv dd { margin: 0; font-weight: 500; text-align: right; font-variant-numeric: tabular-nums; }
.delta-up { color: var(--good); } .delta-down { color: var(--bad); } .delta-flat { color: var(--text-3); }
.macro-bars { display: flex; flex-direction: column; gap: 10px; }
.macro-bars .lbl { display: flex; justify-content: space-between; font-size: .86rem; margin-bottom: 5px; }
.details summary { cursor: pointer; font-weight: 500; min-height: var(--tap); display: flex; align-items: center; gap: 6px; color: var(--text-2); }
code, pre { font-family: var(--mono); font-size: .82rem; }
pre { background: var(--surface-2); padding: 12px; border-radius: 12px; overflow: auto; white-space: pre-wrap; }
.divider { height: 1px; background: var(--line); margin: 8px 0; }

/* ---------- impressão (relatório PDF) ---------- */
@media print {
  .topbar, .nav-bottom, .page-head, .fab, .rest-timer, .no-print, #toast-root { display: none !important; }
  body { background: #fff; color: #000; }
  .view { padding: 0; max-width: none; }
  .card, .stat, .list { break-inside: avoid; }
  .dp { display: none !important; }
}

/* ---------- seletor de datas (desktop) ---------- */
@media (pointer: fine) {
  input[type="date"].input::-webkit-calendar-picker-indicator { display: none; }
  input[type="date"].input {
    cursor: pointer; padding-right: 44px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236e6e73' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='3'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
  }
}
.dp {
  position: fixed; z-index: 95; width: 304px; padding: 14px 14px 10px;
  background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,.06), 0 18px 44px -12px rgba(0,0,0,.28);
  font-variant-numeric: tabular-nums; transform-origin: top left;
  animation: dp-in .18s cubic-bezier(.2, .8, .2, 1) both;
}
.dp.closing { animation: dp-out .14s ease both; pointer-events: none; }
@keyframes dp-in { from { opacity: 0; transform: translate3d(0, -4px, 0) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes dp-out { to { opacity: 0; transform: translate3d(0, -4px, 0) scale(.97); } }
.dp-head { display: flex; align-items: center; justify-content: space-between; margin: 0 0 8px; }
.dp-title { font-weight: 600; font-size: 1rem; letter-spacing: -0.01em; }
.dp-nav { width: 34px; height: 34px; border-radius: 50%; border: 0; background: transparent; color: var(--text); display: grid; place-items: center; cursor: pointer; transition: background-color .15s, transform .15s; }
.dp-nav svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dp-nav:hover { background: var(--surface-2); }
.dp-nav:active { transform: scale(.9); }
.dp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.dp-dow { font-size: .72rem; font-weight: 500; color: var(--text-3); text-align: center; padding: 2px 0 6px; }
.dp-day { aspect-ratio: 1; border: 0; border-radius: 50%; background: transparent; color: var(--text); font-size: .88rem; cursor: pointer; padding: 0; transition: background-color .15s, transform .15s; }
.dp-day:hover { background: var(--surface-2); }
.dp-day:active { transform: scale(.9); }
.dp-day.out { color: var(--text-3); }
.dp-day.today { box-shadow: inset 0 0 0 1.5px var(--surface-3); font-weight: 600; }
.dp-day.focus { box-shadow: inset 0 0 0 2px var(--ink); }
.dp-day.sel { background: var(--ink); color: var(--ink-text); font-weight: 600; box-shadow: 0 4px 12px -4px rgba(0,0,0,.4); }
.dp-day:disabled { opacity: .25; cursor: not-allowed; background: transparent; }
.dp-foot { display: flex; justify-content: space-between; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.dp-link { background: none; border: 0; border-radius: 999px; padding: 7px 12px; font-size: .88rem; font-weight: 500; color: var(--text-2); cursor: pointer; transition: background-color .15s, color .15s; }
.dp-link:hover { background: var(--surface-2); color: var(--text); }
.dp-link.strong { color: var(--text); font-weight: 600; }
.dp-link:disabled { opacity: .35; cursor: default; background: none; }
@media (prefers-reduced-motion: reduce) { .dp, .dp.closing { animation: none; } }

/* ---------- compras ---------- */
.money-big { font-size: clamp(2.2rem, 10vw, 3rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.money-trio { gap: 10px; }
.money-trio .k { font-size: .82rem; }
.money-trio .v { font-size: clamp(1rem, 4.6vw, 1.35rem); letter-spacing: -0.02em; }
.scan-box { position: relative; width: 100%; aspect-ratio: 1 / 1; max-height: 52vh; border-radius: var(--radius); overflow: hidden; background: #000; margin: 0 auto; }
.scan-box video { width: 100%; height: 100%; object-fit: cover; display: block; }
.scan-frame { position: absolute; inset: 18%; border: 3px solid rgba(255,255,255,.9); border-radius: 18px; box-shadow: 0 0 0 999px rgba(0,0,0,.35); pointer-events: none; }
.pi { display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); }
.pi .badge { flex: 0 0 auto; }
.pi-nums { display: grid; grid-template-columns: 1fr 1fr 1.2fr 1.2fr; gap: 8px; align-items: end; }
.pi-nums label, .pi-total { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pi-nums span { font-size: .74rem; color: var(--text-2); }
.pi-nums .input { min-width: 0; padding-left: 10px; padding-right: 6px; }
.pi-total b { min-height: 44px; display: flex; align-items: center; justify-content: flex-end; font-size: .95rem; }
.pu-sum { display: flex; justify-content: space-between; align-items: baseline; padding-top: 6px; border-top: 1px solid var(--line); }
.pu-sum b { font-size: 1.3rem; }
