:root {
  --bg: #f3f1ea;
  --panel: #ffffff;
  --panel-2: #eeebe1;
  --line: #ddd7c6;
  --ink: #1d2215;
  --muted: #676b5a;
  --accent: #46592a;
  --accent-ink: #ffffff;
  --home: #5f8f2f;
  --home-soft: #e3eed2;
  --home-ink: #ffffff;
  --warn: #b34d17;
  --warn-soft: #fbe6d8;
  --ok: #367035;
  --ok-soft: #e0efdc;
  --task: #9a6410;
  --shadow: 0 1px 2px rgba(40, 40, 20, .07), 0 6px 18px rgba(40, 40, 20, .06);
  --r: 16px;
  --nav-h: 64px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #12150e; --panel: #1b1f15; --panel-2: #252a1d; --line: #343a28; --ink: #eceadb;
    --muted: #a2a58f; --accent: #a3bf69; --accent-ink: #12150e; --home: #8bb04f; --home-soft: #2c3a1c;
    --home-ink: #10130b; --warn: #f29a62; --warn-soft: #3b2416; --ok: #93c784; --ok-soft: #1d311e;
    --task: #e5b55e; --shadow: 0 1px 2px rgba(0,0,0,.45); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #12150e; --panel: #1b1f15; --panel-2: #252a1d; --line: #343a28; --ink: #eceadb;
  --muted: #a2a58f; --accent: #a3bf69; --accent-ink: #12150e; --home: #8bb04f; --home-soft: #2c3a1c;
  --home-ink: #10130b; --warn: #f29a62; --warn-soft: #3b2416; --ok: #93c784; --ok-soft: #1d311e;
  --task: #e5b55e; --shadow: 0 1px 2px rgba(0,0,0,.45); color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body { font-family: Heebo, system-ui, sans-serif; font-size: 16px; line-height: 1.45; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body.locked { overflow: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { margin: 0; line-height: 1.2; }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 14px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.hint { font-size: 14px; color: var(--muted); margin: 4px 0 0; }
.grow { flex: 1 1 auto; min-width: 0; }
.stack > * + * { margin-top: 12px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.empty { text-align: center; padding: 30px 10px; color: var(--muted); }

/* top + bottom bars */
.top { position: sticky; top: 0; z-index: 20; background: var(--accent); color: var(--accent-ink); }
.top .wrap { display: flex; align-items: center; gap: 10px; min-height: 52px; }
.top h1 { font-size: 19px; font-weight: 800; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.save-dot { font-size: 12px; opacity: .85; white-space: nowrap; }
main { padding: 12px 0 calc(var(--nav-h) + 90px + env(safe-area-inset-bottom)); }
main > .wrap > * + * { margin-top: 12px; }
.bottomnav { position: fixed; bottom: 0; inset-inline: 0; z-index: 30; display: grid; grid-template-columns: repeat(5, 1fr);
  background: var(--panel); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -4px 16px rgba(0,0,0,.06); }
.bottomnav button { border: 0; background: none; height: var(--nav-h); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--muted); font-size: 12px; font-weight: 500; }
.bottomnav svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bottomnav button.on { color: var(--accent); font-weight: 800; }
.bottomnav button.on svg { stroke-width: 2.4; }
.fab { position: fixed; z-index: 29; bottom: calc(var(--nav-h) + 14px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%);
  border: 0; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 800; font-size: 16px; padding: 13px 26px; box-shadow: 0 6px 20px rgba(0,0,0,.25); }

/* cards + buttons */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; box-shadow: var(--shadow); }
.card h2 { font-size: 18px; font-weight: 800; margin-bottom: 6px; }
.card h3 { font-size: 16px; font-weight: 700; }
.card.inner { box-shadow: none; background: var(--bg); }
.btn { border: 1px solid var(--line); background: var(--panel); border-radius: 12px; padding: 10px 14px; font-weight: 600; min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-align: center; }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 800; }
.btn.big { width: 100%; min-height: 54px; font-size: 18px; }
.btn.ghost { background: transparent; }
.btn.danger { color: var(--warn); }
.btn.sm { min-height: 36px; padding: 4px 12px; font-size: 14px; }
.wide-btn { width: 100%; }
.icon-btn { border: 0; background: transparent; padding: 10px; border-radius: 10px; color: inherit; line-height: 1; min-width: 40px; min-height: 40px; }
.icon-btn:active { background: var(--panel-2); }

label.f { display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--muted); }
label.f > span { font-weight: 500; }
label.f.c { text-align: center; }
input[type=text], input[type=number], input[type=date], input[type=search], select, textarea {
  border: 1px solid var(--line); background: var(--bg); border-radius: 12px; padding: 10px 12px; min-height: 46px; width: 100%; color: var(--ink); font-size: 16px;
}
input[type=number] { text-align: center; }
textarea { min-height: 130px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.search { background: var(--panel) !important; }

/* label + stepper rows */
.frow { display: flex; align-items: center; gap: 10px; justify-content: space-between; padding: 6px 0; }
.frow > span { flex: 1; min-width: 0; font-weight: 500; }
.frow > span small { display: block; font-size: 13px; color: var(--muted); font-weight: 400; }
.stepper { display: flex; align-items: center; flex: none; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--bg); }
.stepper button { border: 0; background: var(--panel-2); width: 44px; height: 44px; font-size: 22px; font-weight: 700; color: var(--accent); }
.stepper button:active { background: var(--line); }
.stepper input { width: 52px; min-height: 44px; border: 0; border-radius: 0; padding: 0; background: transparent; font-weight: 800; font-size: 18px; -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button, .stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; padding: 6px 0; }
.check small { display: block; color: var(--muted); font-size: 14px; }
input[type=checkbox], input[type=radio] { flex: none; width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--accent); }

.chip { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--line); background: var(--panel-2); border-radius: 999px; padding: 8px 14px; font-size: 15px; font-weight: 500; }
.chip.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.days7 { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; margin-top: 4px; }
.days7 .chip { justify-content: center; padding: 10px 0; }
.days7 input { padding: 6px 2px; }
details.more summary { cursor: pointer; font-weight: 600; color: var(--accent); padding: 8px 0; }

/* setup + compute */
.setup h2 { margin-bottom: 8px; }
.setup-row { display: flex; align-items: center; gap: 12px; width: 100%; border: 0; background: var(--panel-2); border-radius: 12px; padding: 12px; text-align: start; margin-top: 6px; }
.setup-row .num { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--warn); color: #fff; font-weight: 800; flex: none; }
.setup-row.done { background: transparent; }
.setup-row.done .num { background: var(--ok); }
.setup-row b { display: block; }
.setup-row small { color: var(--muted); font-size: 14px; }
.setup-row .go { color: var(--accent); font-weight: 700; font-size: 14px; }
.setup .btn { margin-top: 8px; }
.warnbox { border-color: var(--warn); background: var(--warn-soft); }
.warnbox .btn { margin-top: 10px; }
.okline { display: flex; align-items: center; gap: 10px; justify-content: space-between; background: var(--ok-soft); color: var(--ok); border-radius: 12px; padding: 8px 12px; font-weight: 600; font-size: 14px; }
.banner { border-radius: 12px; padding: 10px 12px; background: var(--warn-soft); border: 1px solid var(--warn); }
.banner.info { background: var(--panel-2); border-color: var(--line); }
.banner summary { cursor: pointer; font-weight: 700; }
.banner ul { margin: 8px 0 0; padding-inline-start: 20px; max-height: 300px; overflow: auto; }

.seg { display: flex; background: var(--panel-2); border-radius: 12px; padding: 4px; gap: 4px; }
.seg button { flex: 1; border: 0; background: transparent; padding: 10px 6px; border-radius: 9px; font-weight: 600; font-size: 15px; color: var(--muted); }
.seg button.on { background: var(--panel); box-shadow: var(--shadow); color: var(--ink); font-weight: 800; }

/* pager */
.pager { display: grid; grid-template-columns: 52px 1fr 52px; gap: 8px; align-items: stretch; position: relative; }
.pg { border: 1px solid var(--line); background: var(--panel); border-radius: 12px; font-size: 22px; font-weight: 700; color: var(--accent); min-height: 54px; }
.pg-mid { border: 1px solid var(--line); background: var(--panel); border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 4px; }
.pg-mid b { font-size: 18px; }
.pg-mid small { color: var(--accent); font-weight: 700; font-size: 13px; }
input.hidden-date { position: absolute; inset-inline-start: 50%; bottom: 0; width: 1px !important; height: 1px !important; min-height: 0 !important; padding: 0 !important; border: 0 !important; opacity: 0; pointer-events: none; }

.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tile { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 10px 8px; text-align: center; }
.tile b { display: block; font-size: 26px; font-weight: 800; line-height: 1.1; }
.tile b small { font-size: 16px; color: var(--muted); font-weight: 600; }
.tile span { font-size: 12px; color: var(--muted); }
.tile.good { border-color: var(--ok); background: var(--ok-soft); }
.tile.good b { color: var(--ok); }
.tile.bad { border-color: var(--warn); background: var(--warn-soft); }
.tile.bad b { color: var(--warn); }

/* group lists */
.group { padding: 6px 6px 8px; }
.gh { display: flex; align-items: center; gap: 8px; padding: 8px 8px 6px; }
.gh h3 { flex: 1; }
.gstat { font-size: 13px; color: var(--muted); font-weight: 600; }
.pill { display: inline-block; border-radius: 999px; padding: 1px 10px; font-size: 13px; font-weight: 700; }
.pill.short { background: var(--warn-soft); color: var(--warn); }
.prow { display: flex; align-items: center; gap: 8px; width: 100%; border: 0; background: transparent; padding: 0 8px; min-height: 50px; border-top: 1px solid var(--line); text-align: start; }
.prow:active { background: var(--panel-2); }
.prow .nm { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prow .sub { color: var(--muted); font-size: 14px; }
.prow .chev { color: var(--muted); font-size: 20px; }
.st { flex: none; min-width: 64px; text-align: center; border-radius: 999px; padding: 5px 10px; font-size: 14px; font-weight: 800; }
.st.h { background: var(--home); color: var(--home-ink); }
.st.b { background: var(--panel-2); color: var(--muted); }
.tg { font-style: normal; font-size: 12px; font-weight: 700; border-radius: 6px; padding: 1px 6px; background: var(--panel-2); color: var(--muted); white-space: nowrap; }
.tg.out { background: var(--home-soft); color: var(--home); }
.tg.back { background: var(--panel-2); color: var(--accent); }
.tg.man { background: var(--warn-soft); color: var(--warn); }

/* names view */
.nrow { display: grid; grid-template-columns: 1fr; gap: 5px; width: 100%; border: 0; border-top: 1px solid var(--line); background: transparent; padding: 10px 8px; text-align: start; }
.nrow:active { background: var(--panel-2); }
.nt { display: flex; align-items: baseline; gap: 8px; }
.nt b { flex: 1; }
.nt small { color: var(--muted); font-size: 13px; }
.bar { position: relative; display: flex; height: 14px; border-radius: 7px; overflow: hidden; background: var(--panel-2); }
.bar i { display: block; height: 100%; background: var(--panel-2); }
.bar i.h { background: var(--home); }
.bar .now { position: absolute; top: -2px; bottom: -2px; width: 2px; background: var(--warn); }
.rg { font-size: 14px; color: var(--ink); }

/* balance rows */
.brow { display: flex; align-items: center; gap: 8px; width: 100%; border: 0; border-top: 1px solid var(--line); background: transparent; padding: 0 4px; min-height: 48px; text-align: start; }
.brow .nm { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brow .nums { display: grid; grid-template-columns: 54px 34px 44px; gap: 6px; text-align: center; font-size: 14px; color: var(--muted); }
.brow .nums b { color: var(--ink); font-size: 16px; }
.delta.neg { color: var(--warn); font-weight: 700; }
.delta.pos { color: var(--ok); font-weight: 700; }

/* people */
.add-toggle { display: flex; width: 100%; align-items: center; justify-content: space-between; border: 0; background: none; padding: 4px 0; color: var(--accent); font-size: 16px; }
.add-toggle span { color: var(--muted); font-size: 14px; }
.req { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; font-size: 14px; padding: 4px 4px 4px 10px; background: var(--panel); border-radius: 10px; margin-top: 6px; }
.req .icon-btn { margin-inline-start: auto; }
.list-row { display: flex; gap: 8px; align-items: center; padding: 4px 0; }
.leaves { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.leaves span { background: var(--home-soft); color: var(--home); border-radius: 8px; padding: 3px 9px; font-weight: 700; font-size: 14px; }

/* week table */
.week { padding: 8px; }
.grid { display: grid; grid-template-columns: minmax(62px, 1.5fr) repeat(7, minmax(0, 1fr)); gap: 2px; font-size: 13px; }
.grid .nm { padding: 4px 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; align-self: center; cursor: pointer; }
.grid .hd { text-align: center; padding: 4px 0; cursor: pointer; border-radius: 6px; line-height: 1.15; }
.grid .hd b { display: block; font-size: 14px; }
.grid .hd.task::after { content: ""; display: block; width: 6px; height: 6px; border-radius: 50%; background: var(--task); margin: 2px auto 0; }
.grid .hd.today { background: var(--panel-2); outline: 2px solid var(--accent); }
.grid .gsep { grid-column: 1 / -1; font-weight: 800; font-size: 13px; color: var(--accent); padding: 8px 4px 2px; }
.cell { position: relative; height: 32px; border-radius: 6px; background: var(--panel-2); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; user-select: none; color: var(--muted); }
.cell.h { background: var(--home); color: var(--home-ink); }
.cell.off { background: transparent; cursor: default; background-image: repeating-linear-gradient(45deg, transparent 0 4px, var(--line) 4px 5px); }
.cell.lock::before { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 7px; height: 7px; border-radius: 50%; background: var(--warn); }
.cell.bad { box-shadow: inset 0 0 0 2px var(--warn); }
.cell.tk { box-shadow: inset 0 -3px 0 var(--task); }
.foot { text-align: center; font-size: 12px; font-weight: 700; padding: 3px 0; border-radius: 6px; }
.foot.ok { color: var(--ok); }
.foot.short { background: var(--warn-soft); color: var(--warn); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 13px; color: var(--muted); }
.legend i { display: inline-block; width: 14px; height: 14px; border-radius: 4px; vertical-align: -2px; margin-inline-end: 4px; background: var(--panel-2); position: relative; border: 1px solid var(--line); }
.legend i.h { background: var(--home); border-color: var(--home); }
.legend i.lock::before { content: ""; position: absolute; top: 2px; inset-inline-start: 2px; width: 6px; height: 6px; background: var(--warn); border-radius: 50%; }
.legend i.tk { box-shadow: inset 0 -3px 0 var(--task); }

/* login */
.login { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.login .card { width: 100%; max-width: 420px; padding: 22px; }
.login h1 { font-size: 30px; font-weight: 800; color: var(--accent); }
.login .logo { width: 56px; height: 56px; border-radius: 14px; background: #46592a; display: grid; place-items: center; margin-bottom: 12px; }
.code { font-family: ui-monospace, Consolas, monospace; letter-spacing: 2px; font-size: 24px; font-weight: 700; text-align: center; padding: 12px; background: var(--panel-2); border-radius: 12px; direction: ltr; }

/* bottom sheet */
.sheet { position: fixed; inset: 0; z-index: 50; background: rgba(10, 12, 6, .5); display: flex; align-items: flex-end; justify-content: center; }
.sheet[hidden] { display: none; }
.sheet .panel { position: relative; background: var(--panel); width: 100%; max-width: 640px; max-height: 90vh; overflow: auto; overscroll-behavior: contain;
  border-radius: 22px 22px 0 0; padding: 10px 16px calc(24px + env(safe-area-inset-bottom)); animation: up .22s cubic-bezier(.2, .9, .3, 1.15); }
@keyframes up { from { transform: translateY(40%); opacity: .3; } to { transform: none; opacity: 1; } }
@media (min-width: 700px) { .sheet { align-items: center; } .sheet .panel { border-radius: 22px; } }
.sheet .grab { width: 44px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 10px; }
.sheet .close { position: absolute; top: 8px; left: 8px; }
.sheet h2 { font-size: 22px; font-weight: 800; padding-inline-end: 40px; }
.sheet .state { margin: 12px 0 8px; font-size: 16px; }
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.choice button { min-height: 64px; border-radius: 16px; border: 2px solid var(--line); background: var(--panel); font-size: 20px; font-weight: 800; }
.choice button.on.h { background: var(--home); border-color: var(--home); color: var(--home-ink); }
.choice button.on.b { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.wa { white-space: pre-wrap; background: var(--panel-2); border-radius: 12px; padding: 10px; font-size: 14px; max-height: 45vh; overflow: auto; }

.toast { position: fixed; bottom: calc(var(--nav-h) + 76px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); z-index: 60; background: var(--ink); color: var(--bg); padding: 11px 16px; border-radius: 12px; font-weight: 600; width: max-content; max-width: calc(100vw - 32px); text-align: center; box-shadow: var(--shadow); }
.toast[hidden] { display: none; }
@media print {
  .bottomnav, .fab, .no-print, .pager, .search { display: none !important; }
  .top { position: static; }
  body { background: #fff; }
  .card { box-shadow: none; break-inside: avoid; }
}
.leaves span { white-space: nowrap; }
.nrow .leaves { margin-top: 2px; }
.leaves small { font-weight: 500; opacity: .8; }
.grid2 > * { min-width: 0; }
input[type=date] { min-width: 0; max-width: 100%; }

/* ---------- wider screens ---------- */
.groups { display: grid; gap: 12px; align-items: start; }
.cols { display: grid; gap: 12px; }
.grid.full { gap: 2px 1px; font-size: 11px; }
.grid.full .hd { padding: 2px 0; font-size: 11px; position: sticky; top: 52px; z-index: 2; background: var(--panel); }
.grid.full .hd b { font-size: 12px; }
.grid.full .hd span { display: block; }
.grid.full .corner { position: sticky; top: 52px; z-index: 2; background: var(--panel); font-weight: 700; color: var(--muted); padding: 4px; align-self: stretch; }
.grid.full .cell { height: 26px; border-radius: 4px; }
.grid.full .wk { margin-inline-start: 4px; }
.grid.full .nm { font-size: 14px; font-weight: 600; }
.grid.full .nm:hover { color: var(--accent); }
.grid.full .tot { text-align: center; font-weight: 800; font-size: 14px; align-self: center; }
.grid.full .gsep { font-size: 14px; padding-top: 12px; }
.grid.full .foot { font-size: 11px; }
.cell:hover { outline: 2px solid var(--accent); outline-offset: -1px; }

@media (min-width: 760px) {
  .groups { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
  .tiles .tile b { font-size: 30px; }
}
@media (min-width: 1000px) {
  :root { --side: 96px; }
  .bottomnav { top: 0; bottom: 0; inset-inline-start: 0; inset-inline-end: auto; width: var(--side); grid-template-columns: 1fr; grid-auto-rows: 78px;
    align-content: start; padding: 64px 0 0; border-top: 0; border-inline-end: 1px solid var(--line); box-shadow: none; }
  .bottomnav button { height: 78px; font-size: 13px; border-radius: 14px; margin: 0 8px; }
  .bottomnav button:hover { background: var(--panel-2); color: var(--ink); }
  .bottomnav button.on { background: var(--panel-2); }
  .top { margin-inline-start: var(--side); }
  .top .wrap { min-height: 60px; }
  .top h1 { font-size: 22px; }
  main { margin-inline-start: var(--side); padding: 20px 0 60px; }
  .wrap { max-width: 1500px; padding: 0 28px; }
  main > .wrap > * + * { margin-top: 16px; }
  .fab { left: auto; inset-inline-end: 32px; transform: none; bottom: 28px; }
  .toast { bottom: 28px; }
  .seg { max-width: 520px; }
  .pager { max-width: 620px; }
  .tiles { max-width: 620px; }
  .search { max-width: 360px; }
  .wide-btn { width: auto; min-width: 280px; }
  .okline, .warnbox, .setup, .btn.big { max-width: 620px; }
  .cols { display: block; columns: 2; column-gap: 18px; }
  .cols > .card { break-inside: avoid; margin: 0 0 18px; }
  .sheet .panel { max-width: 560px; }
  .grid.full .hd, .grid.full .corner { top: 60px; }
}
@media (min-width: 1500px) {
  .cols { columns: 3; }
}

/* guide */
.help { border: 1px solid rgba(255,255,255,.5); background: transparent; color: var(--accent-ink); border-radius: 999px; padding: 5px 12px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.guide { text-align: center; padding-top: 4px; }
.g-art { background: var(--bg); border-radius: 18px; padding: 14px; min-height: 210px; display: flex; flex-direction: column; justify-content: center; gap: 10px; text-align: start; pointer-events: none;
  animation: gIn .38s cubic-bezier(.2, .9, .25, 1.12); }
.guide h2 { margin-top: 14px; font-size: 24px; padding: 0; animation: gIn .38s .04s cubic-bezier(.2, .9, .25, 1.12) both; }
.g-text { font-size: 17px; line-height: 1.55; margin: 8px 4px 0; min-height: 80px; animation: gIn .38s .08s cubic-bezier(.2, .9, .25, 1.12) both; }
@keyframes gIn { from { opacity: 0; transform: translateX(-28px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .g-art, .guide h2, .g-text, .sheet .panel { animation: none; } }
.g-dots { display: flex; justify-content: center; gap: 6px; margin-top: 14px; }
.g-dots i { width: 8px; height: 8px; border-radius: 4px; background: var(--line); transition: width .3s cubic-bezier(.2, .9, .25, 1.2), background .3s; }
.g-dots i.on { width: 24px; background: var(--accent); }
.g-nav { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; margin-top: 18px; }
.g-nav .btn { min-height: 52px; font-size: 17px; }
.mock { box-shadow: none; }
.mock .prow { min-height: 42px; }
.mock-name { display: block; margin-bottom: 10px; }
.cbtn { display: flex; align-items: center; justify-content: center; min-height: 56px; border-radius: 14px; border: 2px solid var(--line); background: var(--panel); font-size: 19px; font-weight: 800; }
.cbtn.on.h { background: var(--home); border-color: var(--home); color: var(--home-ink); }
.warnbox.mock .btn { margin-top: 10px; }
.mock-req { background: var(--panel); }
.mock-wa { text-align: start; }
.g-art .tiles .tile b { font-size: 24px; }
