/* 配置: 広い画面 = 左に説明の列・右に端末の枠 ／ スマホ = 画面いっぱいに経営アプリ */
:root {
  /* 端末の外側（説明の列・背景）— 共通デザインシステム LAYER 0-b */
  --surface-paper: #f7f9fb;
  --surface-card: #ffffff;
  --surface-line: #d8e2e7;
  --text-ink: #1d2b32;
  --text-ink-2: #48606b;
  --accent: #0090b0;
  --accent-strong: #006e87;
  --accent-soft: #e3f2f7;
  --frame: #1d2b32;
  --font-ui: "Noto Sans JP", "Hiragino Sans", "Yu Gothic UI", "Meiryo", system-ui, sans-serif;
  /* 経営アプリの画面の色（本番と同じ。本番は明るい画面だけなので、端末の中はダークにしない） */
  --a: #00a4c5;
  --a-strong: #0083a0;
  --a-text: #00627b;
  --a-tint: #e6f7fa;
  --a-100: #b3e8f0;
  --a-200: #80d9e6;
  --on-a: #ffffff;
  --ink: #1f2937;
  --muted: #5f6672;
  --line: #e7eaed;
  --bg: #f9f9f9;
  --card: #ffffff;
  --danger: #991b1b;
  --danger-soft: #fee2e2;
  --warn: #92400e;
  --warn-soft: #fef3c7;
  --pl-cost: #7fb4c2;
  --pl-labor: #aacfd8;
  --pl-other: #d8dee2;
  --cam: #002031;
  --cam-2: #004156;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --surface-paper: #10181c;
    --surface-card: #182229;
    --surface-line: #2b3a42;
    --text-ink: #dce7ea;
    --text-ink-2: #93aab4;
    --accent: #4cc3dd;
    --accent-strong: #7dd6e9;
    --accent-soft: #12303a;
    --frame: #000000;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --surface-paper: #10181c;
  --surface-card: #182229;
  --surface-line: #2b3a42;
  --text-ink: #dce7ea;
  --text-ink-2: #93aab4;
  --accent: #4cc3dd;
  --accent-strong: #7dd6e9;
  --accent-soft: #12303a;
  --frame: #000000;
  color-scheme: dark;
}
html, body { height: 100%; }
body { margin: 0; background: var(--surface-paper); color: var(--text-ink); font-family: var(--font-ui); -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--a); outline-offset: 2px; }

/* ── 外側: 説明の列と端末の枠 ── */
.page { min-height: 100%; box-sizing: border-box; display: flex; justify-content: center; align-items: flex-start; gap: 48px; padding-block: 32px; padding-inline: 24px; }
.side { flex: 0 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 16px; position: sticky; top: calc(24px + env(safe-area-inset-top, 0px)); }
.side-top { display: flex; flex-direction: column; gap: 6px; }
.eyebrow { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--accent-strong); }
.side h1 { margin: 0; font-size: 26px; line-height: 1.35; font-weight: 700; text-wrap: balance; }
.doc-dates { font-size: 12px; color: var(--text-ink-2); font-variant-numeric: tabular-nums; }
.lede { margin: 0; font-size: 14px; line-height: 1.75; color: var(--text-ink-2); }
.about { display: flex; flex-direction: column; gap: 14px; }
.panel { background: var(--surface-card); border: 1px solid var(--surface-line); border-radius: 14px; padding: 16px 18px; }
.panel h2 { margin: 0; font-size: 15px; font-weight: 700; }
details.panel > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 8px; border-radius: 8px; }
details.panel > summary::-webkit-details-marker { display: none; }
details.panel > summary::after { content: ""; flex: 0 0 auto; width: 7px; height: 7px; margin-right: 4px; border-right: 2px solid var(--text-ink-2); border-bottom: 2px solid var(--text-ink-2); transform: rotate(45deg) translateY(-2px); transition: transform .2s ease; }
details.panel[open] > summary::after { transform: rotate(-135deg) translateY(-2px); }
details.panel[open] > summary { margin-bottom: 8px; }
.about:not(.open) { display: none; }
.fold { align-self: flex-start; margin-top: 4px; }
.panel p { margin: 0; font-size: 13.5px; line-height: 1.75; color: var(--text-ink-2); }
.panel p + p { margin-top: 6px; }
.panel b { color: var(--text-ink); }
.route { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; counter-reset: r; }
.route li { counter-increment: r; }
.route button { width: 100%; display: grid; grid-template-columns: 24px 1fr auto; gap: 10px; align-items: center; text-align: left; padding: 8px 10px; border-radius: 10px; font-size: 13.5px; line-height: 1.5; color: var(--text-ink); }
.route button::before { content: counter(r); width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: var(--accent-soft); color: var(--accent-strong); }
.route button:hover { background: var(--accent-soft); }
.route .rt { min-width: 0; }
.route small { display: block; color: var(--text-ink-2); font-size: 12px; }
.route .go { font-size: 12px; font-weight: 700; color: var(--accent-strong); white-space: nowrap; }
.side-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.s-btn { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--surface-line); background: var(--surface-card); font-size: 13px; font-weight: 700; color: var(--text-ink); }
.s-btn.primary { background: var(--accent-strong); border-color: var(--accent-strong); color: var(--surface-card); }
.src { margin: 0; font-size: 12px; line-height: 1.7; color: var(--text-ink-2); }
.start-btn { display: none; }
.mbar { display: none; }

/* 業種のタブ（端末の上）。押すと飲食店・店舗ビジネス・フリーランスの版に切り替わる */
.stage { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.ind-tabs { display: flex; gap: 4px; width: 410px; max-width: 100%; box-sizing: border-box; padding: 4px; border: 1px solid var(--surface-line); border-radius: 999px; background: var(--surface-card); }
.ind-tabs button { flex: 1 1 0; min-width: 0; min-height: 36px; padding: 0 8px; border: 0; border-radius: 999px; background: transparent; font: inherit; font-size: 13px; font-weight: 700; color: var(--text-ink-2); white-space: nowrap; cursor: pointer; }
.ind-tabs button:hover { background: var(--accent-soft); color: var(--text-ink); }
.ind-tabs button[aria-selected="true"] { background: var(--accent-strong); color: var(--surface-card); }
.ind-tabs button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.device { position: relative; flex: 0 0 auto; width: 390px; height: min(844px, calc(100vh - 116px)); min-height: 640px; border: 10px solid var(--frame); border-radius: 46px; overflow: hidden; background: var(--bg); box-shadow: 0 24px 48px rgba(16, 24, 28, .18); }

/* ── 端末の中: 経営アプリ ── */
.app { position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--bg); color: var(--ink); font-size: 14px; line-height: 1.6; color-scheme: light; overflow: hidden; }
.sbar { flex: 0 0 34px; display: flex; align-items: flex-end; justify-content: space-between; padding: 0 28px 4px; font-size: 13px; font-weight: 700; background: var(--card); font-variant-numeric: tabular-nums; }
.sbar .bat { display: inline-flex; gap: 6px; align-items: center; }
.sbar .bat i { display: inline-block; width: 22px; height: 11px; border: 1.5px solid var(--ink); border-radius: 3px; position: relative; box-sizing: border-box; }
.sbar .bat i::after { content: ""; position: absolute; inset: 1.5px; right: 5px; background: var(--ink); border-radius: 1px; }
.scr { flex: 1 1 auto; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; position: relative; }
.body { padding: 16px 16px 28px; display: flex; flex-direction: column; gap: 12px; }
.ic { width: 22px; height: 22px; flex: 0 0 auto; }
.ic-s { width: 16px; height: 16px; }
.ic-m { width: 20px; height: 20px; }
.hd { background: var(--card); border-bottom: 1px solid var(--line); padding: 6px 12px 12px 16px; position: sticky; top: 0; z-index: 5; }
.hd-top { display: flex; align-items: center; justify-content: space-between; height: 40px; }
.logo img { height: 22px; width: auto; display: block; }
.hd-ic { display: flex; gap: 2px; }
.icbtn { position: relative; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 999px; color: var(--muted); }
.icbtn:hover { background: var(--bg); }
.icbtn .dot { position: absolute; top: 8px; right: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--danger); box-shadow: 0 0 0 2px var(--card); }
.greet { display: flex; align-items: center; gap: 10px; margin-top: 6px; padding-right: 4px; }
.avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--a); color: var(--on-a); display: grid; place-items: center; font-weight: 700; font-size: 16px; flex: 0 0 auto; }
.greet .who { flex: 1 1 auto; min-width: 0; }
.greet .store { font-size: 16px; font-weight: 700; line-height: 1.35; }
.greet .org { font-size: 12px; color: var(--muted); }
.greet .hello { font-size: 12px; color: var(--ink); }
.greet .date { font-size: 12px; color: var(--muted); white-space: nowrap; align-self: flex-start; padding-top: 2px; }
.hd-store { font-size: 12px; color: var(--muted); margin-top: 2px; }
.sh { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 4px; height: 52px; padding: 0 12px 0 4px; background: var(--card); border-bottom: 1px solid var(--line); }
.sh h2 { margin: 0; font-size: 16px; font-weight: 700; flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.page-title { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.page-title h2 { margin: 0; font-size: 20px; font-weight: 700; }
.desc { margin: 0; font-size: 13px; color: var(--muted); }

.card { background: var(--card); border-radius: 16px; box-shadow: 0 1px 2px rgba(31, 41, 55, .07); padding: 16px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.card h3 { margin: 0; font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.card h3 .grow { flex: 1 1 auto; }
.card.line-l { border-left: 4px solid var(--a); }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.num { font-variant-numeric: tabular-nums; }
.big { font-size: 30px; font-weight: 700; line-height: 1.2; letter-spacing: -.01em; }
.mid { font-size: 20px; font-weight: 700; line-height: 1.3; }
.row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.row.between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 6px; }
.hr { height: 1px; background: var(--line); border: 0; margin: 2px 0; }
.link { display: inline-flex; align-items: center; gap: 2px; color: var(--a-text); font-weight: 700; font-size: 14px; }
.link .ic-s { margin-top: 1px; }
.pill { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 500; white-space: nowrap; box-sizing: border-box; }
.p-neutral { background: var(--bg); border: 1px solid var(--line); color: var(--muted); }
.p-info { background: var(--a-tint); color: var(--a-text); }
.p-warn { background: var(--warn-soft); color: var(--warn); }
.p-danger { border: 1px solid var(--danger); color: var(--danger); background: var(--card); }
.p-todo { background: var(--danger-soft); color: var(--danger); }
.p-done { background: var(--a-tint); color: var(--a-text); }
.btn { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 46px; padding: 0 18px; border-radius: 999px; font-weight: 700; font-size: 14px; width: 100%; box-sizing: border-box; }
.btn-fill { background: var(--a-strong); color: var(--on-a); }
.btn-fill:hover { background: var(--a-text); }
.btn-line { border: 2px solid var(--a); color: var(--a-text); background: var(--card); }
.btn-quiet { border: 1px solid var(--line); color: var(--ink); background: var(--card); }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn-row { display: flex; gap: 8px; }
.btn-row .btn { flex: 1 1 0; }
.tile { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; background: var(--bg); text-align: left; width: 100%; box-sizing: border-box; }
.tile .ibox { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--a-tint); color: var(--a-text); flex: 0 0 auto; }
.tile .t { flex: 1 1 auto; min-width: 0; }
.tile .t b { display: block; font-size: 14px; }
.tile .t span { display: block; font-size: 12px; color: var(--muted); }
.tile .chev { color: var(--muted); }
.list { display: flex; flex-direction: column; }
.li { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); text-align: left; width: 100%; min-width: 0; }
.li:first-child { border-top: 0; }
.li .t { flex: 1 1 auto; min-width: 0; }
.li .t b { display: block; font-size: 14px; font-weight: 500; }
.li .t span { display: block; font-size: 12px; color: var(--muted); }
.li .v { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 3px; gap: 3px; }
.seg button { min-height: 34px; border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--muted); padding: 0 8px; white-space: nowrap; }
.seg button.on { background: var(--card); color: var(--a-text); font-weight: 700; box-shadow: 0 1px 2px rgba(31, 41, 55, .12); }

.meter { position: relative; height: 10px; border-radius: 999px; background: var(--a-tint); margin: 6px 0 18px; }
.meter .fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; background: var(--a); transition: width .6s ease; }
.meter .fill.w { background: var(--warn); }
.meter .fill.d { background: var(--danger); }
.meter .mk { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--ink); opacity: .55; }
.meter .mk span { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); font-size: 12px; color: var(--muted); white-space: nowrap; }
.field { display: flex; flex-direction: column; gap: 4px; }
.field label { font-size: 13px; font-weight: 700; }
.field .hint { font-size: 12px; color: var(--muted); }
.inp { display: flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); padding: 0 12px; min-height: 48px; }
.inp:focus-within { border-color: var(--a); box-shadow: 0 0 0 3px var(--a-tint); }
.inp input, .inp select { border: 0; outline: 0; background: transparent; flex: 1 1 auto; min-width: 0; font-size: 16px; padding: 10px 0; font-variant-numeric: tabular-nums; }
.inp .u { color: var(--muted); font-size: 14px; }
.inp.lg input { font-size: 24px; font-weight: 700; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.chk { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.chk input { width: 20px; height: 20px; accent-color: var(--a-strong); }
.okbox { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 8px 0; }
.okbox .ok-ic { width: 56px; height: 56px; border-radius: 50%; background: var(--a-tint); color: var(--a-text); display: grid; place-items: center; }
.okbox .ok-ic .ic { width: 30px; height: 30px; }
.streak { display: inline-flex; align-items: center; gap: 6px; background: var(--a-tint); color: var(--a-text); padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.stepper { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.stepper:first-child { border-top: 0; }
.stepper .nm { font-size: 14px; }
.stepper .nm span { display: block; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.stepper .ctl { display: flex; align-items: center; gap: 4px; }
.stepper .ctl button { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--a-text); background: var(--card); }
.stepper .ctl input { width: 48px; text-align: center; border: 1px solid var(--line); border-radius: 10px; height: 36px; font-size: 15px; font-variant-numeric: tabular-nums; background: var(--card); }
.diff { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; font-size: 14px; font-variant-numeric: tabular-nums; }
.diff .k { color: var(--muted); }
.diff .v { text-align: right; font-weight: 700; }
.diff .tot { font-size: 18px; }
.note-ok { background: var(--a-tint); color: var(--a-text); border-radius: 12px; padding: 10px 12px; font-weight: 700; font-size: 14px; display: flex; gap: 8px; align-items: center; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { min-height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-size: 13px; color: var(--ink); }
.chip.on { border-color: var(--a); background: var(--a-tint); color: var(--a-text); font-weight: 700; }
.steps { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.steps li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.steps li:first-child { border-top: 0; }
.steps .n { width: 24px; height: 24px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line); display: grid; place-items: center; font-size: 12px; font-weight: 700; flex: 0 0 auto; }
.steps .t { flex: 1 1 auto; min-width: 0; }
.steps .t span { display: block; font-size: 12px; color: var(--muted); }
/* 下のタブ */
.nav { flex: 0 0 auto; height: 61px; background: var(--card); border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(5, 1fr); position: relative; z-index: 6; }
.nav button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 12px; color: var(--muted); min-width: 0; }
.nav button .ic { transition: transform .15s ease; }
.nav button.on { color: var(--a-text); font-weight: 700; }
.nav button.on .ic { transform: scale(1.1); }
.nav .fab { width: 52px; height: 52px; border-radius: 50%; background: var(--a); color: var(--on-a); display: grid; place-items: center; margin-top: -28px; box-shadow: 0 8px 16px rgba(0, 98, 123, .3); border: 3px solid var(--card); box-sizing: border-box; }
.nav .fab .ic { width: 24px; height: 24px; }
.nav span { white-space: nowrap; }
/* 重ねる部品 */
.toast { position: absolute; left: 16px; right: 16px; bottom: 76px; z-index: 60; background: var(--ink); color: var(--card); border-radius: 12px; padding: 12px 14px; font-size: 13.5px; line-height: 1.6; box-shadow: 0 10px 24px rgba(31, 41, 55, .25); display: flex; gap: 8px; align-items: flex-start; }
.toast .ic { width: 18px; height: 18px; margin-top: 2px; color: var(--a-200); }
.sheet-bg { position: absolute; inset: 0; z-index: 50; background: rgba(31, 41, 55, .42); display: flex; align-items: flex-end; }
.sheet { width: 100%; max-height: 82%; overflow-y: auto; background: var(--card); border-radius: 20px 20px 0 0; padding: 8px 16px 20px; box-sizing: border-box; display: flex; flex-direction: column; gap: 12px; animation: up .25s ease-out both; }
.sheet .grab { width: 40px; height: 4px; border-radius: 2px; background: var(--line); align-self: center; margin-bottom: 2px; }
.sheet h3 { margin: 0; font-size: 16px; font-weight: 700; }
@keyframes up { from { transform: translateY(24px); opacity: .6; } to { transform: none; opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* スマホ: 端末の枠を外し、アプリを画面いっぱいに */
@media (max-width: 820px) {
  .page { display: block; padding: 0; }
  .side { position: static; gap: 0; }
  .mbar { display: flex; align-items: center; gap: 10px; height: 52px; padding-inline: 16px; background: var(--surface-card); border-bottom: 1px solid var(--surface-line); box-sizing: border-box; }
  .mbar .t { flex: 1 1 auto; min-width: 0; font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .side-top { display: none; }
  .about { position: fixed; z-index: 100; left: 0; right: 0; bottom: 0; top: calc(52px + env(safe-area-inset-top, 0px)); overflow-y: auto; background: var(--surface-paper); padding: 16px 16px calc(24px + var(--dk-fab-space, 0px) + env(safe-area-inset-bottom, 0px)); box-sizing: border-box; }
  .about:not(.open) { display: none; }
  /* スマホの幅では中身が端末の枠の中（.scr）でスクロールし、右下のデモ用のボタンは下のメニューの上に持ち上がる。最後の行がボタンの上までスクロールできるよう、ボタンの高さぶんを空ける */
  .scr::after { content: ''; display: block; flex: none; height: var(--dk-fab-space, 0px); }
  /* ページの最後の空の箱（右下のボタンの高さぶん）は、スマホの幅では要らない（空きは .scr の中で取る）。残すとページが箱の高さだけ動き、下のメニューが持ち上げた右下のボタンの下に入る */
  .dk-space { display: none; }
  .side h1.m-h1 { display: block; }
  .start-btn { display: flex; }
  .stage { display: block; }
  .ind-tabs { width: auto; margin: 6px 16px; }
  /* 52px = 上の帯、58px = 業種のタブ（高さ 46px ＋ 上下 6px） */
  .device { width: 100%; height: calc(100vh - 110px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)); height: calc(100dvh - 110px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)); min-height: 0; border: 0; border-radius: 0; box-shadow: none; }
  .sbar { display: none; }
}

/* ── 開業アプリ固有 ── */
.nav { grid-template-columns: repeat(4, 1fr); }
.hd-store { font-weight: 700; color: var(--ink); font-size: 13px; }
.greet-row { display: flex; gap: 10px; align-items: flex-start; }
.greet-row .avatar { margin-top: 2px; }
.bub { flex: 1 1 auto; min-width: 0; background: var(--card); border: 2px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: 13.5px; line-height: 1.7; }
.bub b { color: var(--a-text); font-size: 16px; }
/* あいさつの欄の下に、開業までの残り日数と準備の進み具合を並べる（最初に目に入る範囲で結論を見せる） */
.goal { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.goal > div { min-width: 0; background: var(--a-tint); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.goal span { font-size: 12px; color: var(--muted); }
.goal b { font-size: 20px; line-height: 1.3; color: var(--a-text); font-variant-numeric: tabular-nums; }
.goal .bar { margin-top: 4px; background: var(--card); }
.sched { background: var(--a-strong); color: var(--on-a); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.sched h3 { margin: 0; font-size: 15px; display: flex; gap: 8px; align-items: center; }
.srow { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; }
.srow span:first-child { opacity: .9; }
.srow b { font-variant-numeric: tabular-nums; }
.sched .pct { display: flex; justify-content: space-between; font-size: 13px; border-top: 1px solid rgba(255, 255, 255, .35); padding-top: 10px; }
.bar { height: 8px; border-radius: 999px; background: var(--a-tint); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--a); border-radius: 999px; transition: width .5s ease; }
.sched .bar { background: rgba(255, 255, 255, .3); }
.sched .bar i { background: var(--on-a); }
.rm { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.rm li { display: grid; grid-template-columns: 18px 1fr auto; gap: 10px; padding: 8px 0; position: relative; align-items: start; }
.rm li::before { content: ""; position: absolute; left: 8px; top: 28px; bottom: -8px; width: 2px; background: var(--line); }
.rm li:last-child::before { display: none; }
.rm .dot { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); background: var(--card); box-sizing: border-box; margin-top: 2px; }
.rm li.done .dot { background: var(--a-200); border-color: var(--a-200); }
.rm li.now .dot { background: var(--a); border-color: var(--a); box-shadow: 0 0 0 4px var(--a-tint); }
.rm b { font-size: 14px; }
.rm span.d { display: block; font-size: 12px; color: var(--muted); }
.rm li.now b { color: var(--a-text); }
.trow { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.trow:first-child { border-top: 0; }
.trow .t b { display: block; font-size: 14px; font-weight: 500; }
.trow .t span { font-size: 12px; color: var(--muted); }
.mini { min-height: 34px; padding: 0 14px; border-radius: 999px; border: 2px solid var(--a); color: var(--a-text); font-weight: 700; font-size: 13px; background: var(--card); }
.chkb { display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; align-items: center; width: 100%; text-align: left; padding: 10px 0; border-top: 1px solid var(--line); }
.chkb:first-of-type { border-top: 0; }
.chkb .bx { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; color: transparent; box-sizing: border-box; }
.chkb .bx .ic { width: 14px; height: 14px; }
.chkb[aria-checked="true"] .bx { background: var(--a); border-color: var(--a); color: var(--on-a); }
.chkb[aria-checked="true"] .tt { color: var(--muted); text-decoration: line-through; }
.chkb .tt { font-size: 14px; }
.chkb .mn { font-size: 12px; color: var(--muted); white-space: nowrap; }
.ring-row { display: flex; align-items: center; gap: 14px; }
.pcnt { font-size: 34px; font-weight: 700; color: var(--a-text); font-variant-numeric: tabular-nums; }
.gh { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-top: 4px; }
.gh h3 { margin: 0; font-size: 15px; }
.opt { width: 100%; text-align: left; min-height: 48px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); font-size: 14px; }
.opt:hover { border-color: var(--a); background: var(--a-tint); }
.back { display: inline-flex; align-items: center; gap: 2px; color: var(--a-text); font-weight: 700; font-size: 14px; min-height: 36px; }
.art p { margin: 0 0 10px; font-size: 14px; line-height: 1.8; }
.art h3 { font-size: 18px; line-height: 1.5; }
.kt { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; text-align: left; width: 100%; padding: 10px 0; border-top: 1px solid var(--line); }
.kt:first-of-type { border-top: 0; }
.kt b { display: block; font-size: 14px; font-weight: 500; }
.kt span { font-size: 12px; color: var(--muted); }
.memo { width: 100%; box-sizing: border-box; min-height: 92px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font: inherit; font-size: 14px; background: var(--card); resize: vertical; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }

/* ── 段階ごとの機能 ── */
.can { gap: 8px; }
.swb { display: flex; align-items: center; gap: 10px; min-height: 40px; font-size: 14px; text-align: left; }
.trk { width: 38px; height: 22px; border-radius: 999px; background: var(--line); position: relative; flex: 0 0 auto; transition: background .2s; }
.trk i { position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--card); box-shadow: 0 1px 2px rgba(31, 41, 55, .3); transition: transform .2s; }
.swb[aria-checked="true"] .trk { background: var(--a); }
.swb[aria-checked="true"] .trk i { transform: translateX(16px); }
.warnbox { background: var(--warn-soft); color: var(--warn); border-radius: 12px; padding: 10px 12px; font-size: 13px; line-height: 1.6; }
.bul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; }
.vc { display: flex; flex-direction: column; gap: 4px; text-align: left; width: 100%; box-sizing: border-box; background: var(--card); border-radius: 14px; padding: 12px 14px; box-shadow: 0 1px 2px rgba(31, 41, 55, .07); }
.vc b { font-size: 14px; }
.opt.on, .kt[aria-pressed="true"] { border-color: var(--a); background: var(--a-tint); }
.kt[aria-pressed] { padding-inline: 10px; border-radius: 10px; }
.meta { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.row .inp { flex: 1 1 auto; }
.tw { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.tbl th, .tbl td { padding: 7px 4px; border-top: 1px solid var(--line); text-align: right; vertical-align: top; }
.tbl th:first-child, .tbl td:first-child { text-align: left; color: var(--muted); white-space: nowrap; }
.tbl tr.sec td { background: var(--bg); font-weight: 700; color: var(--ink); text-align: left; }
.card h4 { margin: 6px 0 0; font-size: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-size: 13px; }
.chip.on { background: var(--a-tint); border-color: var(--a); color: var(--a-text); font-weight: 700; }
.aians { display: flex; flex-direction: column; gap: 8px; background: var(--a-tint); border-radius: 12px; padding: 12px; font-size: 13.5px; }
/* AI の答えの 2 段: 何を見ているか（点の動き）→ 1 行ずつ。最後に参照したデータ */
.aians .seeing { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--muted); }
.thinking { display: inline-flex; gap: 4px; }
.thinking i { width: 6px; height: 6px; border-radius: 50%; background: var(--a); animation: bob 1s infinite ease-in-out; }
.thinking i:nth-child(2) { animation-delay: .15s; }
.thinking i:nth-child(3) { animation-delay: .3s; }
@keyframes bob { 0%, 100% { transform: translateY(0); opacity: .4; } 50% { transform: translateY(-4px); opacity: 1; } }
.aians p.in { animation: line-in .3s ease-out both; }
@keyframes line-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.aians .src { font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 8px; }
.aican .tile { align-items: flex-start; }
