/* DREAMBOOK の見た目。白ベース、文字は M PLUS 1 と Montserrat、3色のテープ（演技・歌・ダンス） */
:root {
  --bg: #ffffff;
  --paper: #f6f7f9;
  --ink: #1d2331;
  --navy: #14213d;
  --gold: #c9a55c;
  --muted: #646b7a;
  --line: #e1e4ea;
  --soft: #eef0f4;
  --act: #c0364f;
  --song: #2b68ad;
  --dance: #b57a00;
  --self: #8a90a0;
  --act-bg: #fbe9ec;
  --song-bg: #e6eff9;
  --dance-bg: #fbf1dc;
  --spot: #fff1cc;
  --good: #2a8457;
  --good-bg: #e5f4ec;
  --f-ja: "M PLUS 1", "Hiragino Sans", "Hiragino Kaku Gothic ProN", system-ui, sans-serif;
  --f-en: "Montserrat", "M PLUS 1", "Hiragino Sans", sans-serif;
  --f-brand: "Playfair Display", "Hiragino Mincho ProN", Georgia, serif;
  --nav-h: 62px;
  color-scheme: light;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body { font-family: var(--f-ja); font-size: 15px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
#main {
  max-width: 560px; margin: 0 auto; display: grid; gap: 12px; align-content: start;
  padding: calc(env(safe-area-inset-top, 0px) + 14px) 16px calc(var(--nav-h) + env(safe-area-inset-bottom, 0px) + 24px);
}
body.sender #main { padding-bottom: 40px; padding-top: 16px; }
h1, h2, h3, h4, h5, p { margin: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--song); outline-offset: 2px; }
[hidden] { display: none !important; }

/* 見出し */
.top { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 4px 2px; }
.top h1 { font-size: 22px; font-weight: 800; line-height: 1.3; }
.sub { font-size: 12.5px; color: var(--muted); }
.iconbtn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg); display: grid; place-items: center; text-decoration: none; font-size: 20px; flex: none; }
.iconbtn svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.iconbtn.ghost { border-color: transparent; }
.pager { display: flex; gap: 6px; }
.daylabel { font-size: 13px; color: var(--muted); font-weight: 700; margin-top: 6px; }
.center { text-align: center; }
.hint { font-size: 12.5px; color: var(--muted); line-height: 1.6; }
.hint a { color: var(--song); }
.disc { font-size: 11px; color: var(--muted); }
.pre { white-space: pre-wrap; font-size: 14px; }

/* カード */
.card { background: var(--paper); border-radius: 16px; padding: 14px; display: grid; gap: 9px; }
.card h5, details.card summary { font-size: 12px; color: var(--muted); font-weight: 700; letter-spacing: .05em; }
details.card summary { cursor: pointer; }
.focus-card { box-shadow: 0 0 0 2px var(--ink) inset; }
.goodbox { background: var(--good-bg); border-radius: 14px; padding: 12px 14px; font-size: 14px; }
.goodbox b, .goodbox h5 { color: var(--good); }

/* ジャンルの札 */
.g { display: inline-flex; align-items: center; font-size: 12px; font-weight: 700; padding: 3px 11px; border-radius: 999px; white-space: nowrap; border: 1.5px solid transparent; background: var(--soft); color: var(--muted); text-decoration: none; }
.g.act { color: var(--act); background: var(--act-bg); }
.g.song { color: var(--song); background: var(--song-bg); }
.g.dance { color: var(--dance); background: var(--dance-bg); }
.g.self, .g.plain { color: var(--muted); background: var(--soft); }
.g.pick { padding: 6px 13px; font-size: 13px; }
.g.pick.on { border-color: currentColor; }
.g.plain.pick.on { color: var(--bg); background: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip-row { display: flex; gap: 6px; }
.count-chip { display: inline-flex; gap: 6px; align-items: baseline; background: var(--navy); color: #fff; border-radius: 999px; padding: 4px 14px; font-size: 13px; font-weight: 700; }
.count-chip b { font-family: var(--f-en); font-size: 17px; color: #ebd59e; }

/* ボタン */
.btn { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 48px; border: 0; background: var(--ink); color: #fff; border-radius: 14px; padding: 10px 14px; font-weight: 700; font-size: 15px; text-decoration: none; text-align: center; }
.btn svg { width: 19px; height: 19px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.btn.ghost { background: var(--bg); color: var(--ink); border: 1px solid var(--line); }
.btn.rec { background: var(--act); }
.btn.big { min-height: 56px; font-size: 17px; }
.btn.small { min-height: 34px; font-size: 13px; padding: 4px 14px; justify-self: start; }
.btn.danger { background: var(--act); }
.btn:disabled { opacity: .55; }
.danger-text { color: var(--act) !important; }
.linkbtn { border: 0; background: none; padding: 4px 2px; color: var(--muted); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; justify-self: start; }
.btns, .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.filebtn { position: relative; overflow: hidden; }
.filebtn input { position: absolute; inset: 0; opacity: 0; }

/* 入力 */
.field { display: grid; gap: 4px; font-size: 14px; }
.field > span { font-size: 12px; color: var(--muted); font-weight: 700; }
input[type="text"], input[type="date"], input[type="time"], input[type="number"], select, textarea {
  width: 100%; min-height: 44px; border: 1px solid var(--line); border-radius: 12px; padding: 9px 12px; background: var(--bg); font-size: 16px; -webkit-appearance: none; appearance: none;
}
textarea { resize: vertical; line-height: 1.6; }
input[type="range"] { width: 100%; accent-color: var(--ink); }
.check { display: flex; gap: 9px; align-items: flex-start; font-size: 14px; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--ink); flex: none; }

/* 名言（白地にスポットライト） */
.quote { background: radial-gradient(ellipse 80% 90% at 50% 0%, var(--spot), var(--bg) 72%); border: 1px solid var(--line); border-radius: 18px; padding: 22px 18px 12px; display: grid; gap: 9px; text-align: center; }
.quote .kind { justify-self: center; }
.quote .q { font-size: 18px; font-weight: 700; line-height: 1.75; text-wrap: balance; }
.quote .who { font-size: 12.5px; color: var(--muted); }
.quote .qnote { font-size: 12.5px; color: var(--ink); background: rgba(255,255,255,.7); border-radius: 10px; padding: 7px 10px; text-align: left; }
.quote .row { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 6px; }
.quote .row .linkbtn { text-decoration: none; color: var(--act); font-weight: 700; }
.quote.small { padding: 14px; }
.quote.small .q { font-size: 15px; }

.care { display: grid; grid-template-columns: 24px 1fr; gap: 8px; align-items: center; background: var(--song-bg); border-radius: 14px; padding: 10px 12px; font-size: 13.5px; }
.care svg { width: 22px; height: 22px; stroke: var(--song); fill: none; stroke-width: 1.8; }

.letter { border: 1px solid var(--act); background: var(--act-bg); border-radius: 16px; padding: 14px; display: grid; gap: 8px; }
.letter .from { font-size: 12px; color: var(--act); font-weight: 700; }
.letter .q { font-size: 16px; font-weight: 700; line-height: 1.75; }
.thanks { color: var(--act); font-size: 20px; }

/* 時間割 */
.tt { display: grid; gap: 6px; }
.tt-row { display: grid; grid-template-columns: 44px 5px 1fr auto; gap: 10px; align-items: center; text-decoration: none; background: none; border: 0; padding: 4px 0; text-align: left; width: 100%; }
.tt-row .t { font-family: var(--f-en); font-variant-numeric: tabular-nums; font-weight: 600; font-size: 13px; }
.tt-row .bar { height: 38px; border-radius: 2px; }
.tt-row .what { min-width: 0; }
.tt-row .what b { display: block; font-size: 14.5px; }
.tt-row .what span { color: var(--muted); font-size: 12px; }
.go { color: var(--muted); font-size: 12px; white-space: nowrap; }
.bar.act { background: var(--act); } .bar.song { background: var(--song); } .bar.dance { background: var(--dance); } .bar.self { background: var(--line); }
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.week a { padding: 6px 0 4px; border-radius: 12px; font-size: 11px; color: var(--muted); display: grid; text-decoration: none; }
.week a b { font-family: var(--f-en); font-size: 16px; color: var(--ink); font-variant-numeric: tabular-nums; }
.week a.today b { color: var(--act); }
.week a.on { background: var(--ink); color: #fff; }
.week a.on b { color: #fff; }
.marks { display: flex; justify-content: center; gap: 2px; min-height: 6px; }
.marks i { width: 5px; height: 5px; border-radius: 50%; }
.marks i.act { background: var(--act); } .marks i.song { background: var(--song); } .marks i.dance { background: var(--dance); } .marks i.self { background: var(--self); }

/* 数字 */
.mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 4px 2px; }
.stat { display: grid; }
.stat b { font-family: var(--f-en); font-size: 22px; font-variant-numeric: tabular-nums; line-height: 1.2; }
.stat b small { font-family: var(--f-ja); font-size: 12px; margin-left: 2px; }
.stat span { font-size: 11px; color: var(--muted); }

/* コンディション */
.levels { display: grid; gap: 8px; }
.lv { display: grid; grid-template-columns: 64px 1fr; align-items: center; gap: 8px; font-size: 13.5px; }
.dots { display: flex; gap: 8px; }
.dot { width: 30px; height: 30px; border-radius: 50%; background: var(--bg); border: 1.5px solid var(--line); padding: 0; }
.dot.f { background: var(--ink); border-color: var(--ink); }
.done-line { display: flex; gap: 7px; align-items: center; font-size: 14px; flex-wrap: wrap; }
.star { color: var(--dance); font-weight: 700; font-size: 12px; white-space: nowrap; }
.inline-form { display: grid; gap: 8px; }

/* 一覧 */
.list { display: grid; gap: 2px; background: var(--paper); border-radius: 16px; padding: 4px 12px; }
.list-row { display: flex; gap: 10px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); text-decoration: none; background: none; border-left: 0; border-right: 0; border-top: 0; text-align: left; width: 100%; }
.list-row:last-child { border-bottom: 0; }
.grow { flex: 1; min-width: 0; display: grid; }
.grow small { color: var(--muted); font-size: 12px; }
.empty { display: grid; gap: 14px; justify-items: center; text-align: center; padding: 36px 10px; color: var(--muted); }
.locked { min-height: 100vh; display: grid; place-content: center; gap: 14px; text-align: center; padding: 24px; }
.brand { font-family: var(--f-brand); font-weight: 900; font-size: 34px; letter-spacing: .04em; color: var(--navy); }
.brand em, .brand-s em { font-style: normal; color: var(--gold); }

/* 記録 */
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.thumbs:empty { display: none; }
.thumb { position: relative; width: 76px; height: 76px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb button { position: absolute; top: 3px; right: 3px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(29,35,49,.75); color: #fff; font-size: 13px; line-height: 1; }
.recbox { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: center; }
.recbtn { width: 64px; height: 64px; border-radius: 50%; border: 3px solid var(--line); background: var(--bg); display: grid; place-items: center; padding: 0; }
.recbtn i { width: 26px; height: 26px; border-radius: 50%; background: var(--act); transition: border-radius .2s, width .2s, height .2s; }
.recbtn.on i { width: 22px; height: 22px; border-radius: 5px; }
.rec-info { display: grid; gap: 6px; }
.rec-info b { font-family: var(--f-en); font-size: 14px; font-variant-numeric: tabular-nums; }
.meter { height: 6px; background: var(--soft); border-radius: 3px; overflow: hidden; }
.meter div { height: 100%; width: 0; background: var(--act); transition: width .08s; }
.meter.big { height: 10px; border-radius: 5px; }
.meter.big div { background: var(--ink); }
.audio-row { display: flex; gap: 8px; align-items: center; font-size: 14px; padding: 4px 0; }
.audio-row b { font-family: var(--f-en); font-size: 13px; }
.dotplay { width: 10px; height: 10px; border-radius: 50%; background: var(--act); }
.progress-wrap { position: fixed; inset: 0; background: rgba(255,255,255,.88); display: grid; place-items: center; z-index: 50; padding: 24px; }
.progress-box { display: grid; gap: 10px; justify-items: center; text-align: center; }
.progress-box p { font-weight: 700; }
.progress-box small { color: var(--muted); font-size: 12px; }
.spinner, .loading span { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--soft); border-top-color: var(--ink); animation: spin 0.9s linear infinite; }
.loading { display: grid; place-items: center; padding: 60px 0; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner, .loading span { animation-duration: 3s; } }
.src { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.srcimg { width: 64px; height: 64px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); padding: 0; background: none; }
.srcimg img { width: 100%; height: 100%; object-fit: cover; }
.srcaudio { font-size: 12px; background: var(--soft); border-radius: 999px; padding: 4px 12px; }
.bigimg { width: 100%; border-radius: 12px; }
.ai { font-size: 12px; color: var(--good); font-weight: 700; }
ul.pts { margin: 0; padding-left: 18px; display: grid; gap: 4px; font-size: 14.5px; }
.fix { display: grid; grid-template-columns: auto 1fr; gap: 8px; align-items: start; font-size: 14.5px; }
.fix .cat { display: block; font-size: 11.5px; color: var(--muted); font-weight: 700; }
.quoteline { font-size: 12.5px; color: var(--muted); border-left: 2px solid var(--line); padding-left: 8px; margin-top: 3px; }
.cor-edit { display: grid; grid-template-columns: 1fr 1.4fr; gap: 6px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.cor-edit input[type="text"] { grid-column: 1 / -1; }
.cor-edit .linkbtn { grid-column: 1 / -1; }

/* 切りかえ */
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--soft); border-radius: 12px; padding: 3px; font-size: 13.5px; text-align: center; }
.seg a { padding: 8px 0; border-radius: 10px; color: var(--muted); text-decoration: none; }
.seg a.on { background: var(--bg); color: var(--ink); font-weight: 700; box-shadow: 0 1px 2px rgba(29,35,49,.08); }
.seg.small { font-size: 12.5px; }
.seg.small a { padding: 6px 0; }
#pbody, #rbody { display: grid; gap: 12px; align-content: start; }
.toprow { display: flex; justify-content: space-between; align-items: center; gap: 8px; }

/* 練習 */
.ring { justify-self: center; position: relative; width: 190px; height: 190px; }
.ring svg { width: 190px; height: 190px; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: var(--soft); stroke-width: 10; }
.ring-fg { fill: none; stroke: var(--song); stroke-width: 10; stroke-linecap: round; }
.ring .in { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring .in b { font-family: var(--f-en); font-size: 38px; font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; }
.ring .in span { font-size: 12.5px; color: var(--muted); }
.cmp { display: grid; gap: 8px; }
.cmp-row { display: grid; grid-template-columns: 56px 1fr 46px 34px auto; gap: 8px; align-items: center; font-size: 13px; }
.cmp-row .d { font-family: var(--f-en); color: var(--muted); font-size: 12px; }
.cmp-row .v { font-family: var(--f-en); font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.bartrack { height: 8px; background: var(--bg); border-radius: 4px; overflow: hidden; }
.bartrack div { height: 100%; background: var(--song); border-radius: 4px; }
.playbtn { width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; font-size: 12px; }
.down { color: var(--good); font-weight: 700; font-size: 13px; }
.flash { background: var(--bg); border: 1px solid var(--line); border-radius: 18px; padding: 24px 16px; display: grid; gap: 12px; text-align: center; min-height: 220px; align-content: center; box-shadow: 0 6px 0 -3px var(--soft), 0 12px 0 -6px var(--line); cursor: pointer; }
.flash .lab { font-size: 11.5px; color: var(--muted); font-weight: 700; }
.flash .cue { font-size: 17px; font-weight: 700; line-height: 1.7; }
.flash .ans { font-size: 17px; color: var(--act); font-weight: 700; border-top: 1px dashed var(--line); padding-top: 12px; line-height: 1.7; }
.flash .linkbtn { justify-self: center; }
.prog { height: 6px; background: var(--soft); border-radius: 3px; overflow: hidden; }
.prog div { height: 100%; background: var(--ink); border-radius: 3px; }
.cardlist { display: grid; gap: 2px; max-height: 50vh; overflow: auto; }
.cardline { display: grid; gap: 2px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.cardline small { color: var(--muted); }

/* ふりかえり */
.split { display: flex; height: 12px; border-radius: 6px; overflow: hidden; gap: 2px; }
.split .act { background: var(--act); } .split .song { background: var(--song); } .split .dance { background: var(--dance); }
.legend { display: flex; justify-content: space-between; font-size: 13px; }
.legend b { font-family: var(--f-en); font-size: 18px; }
.act-t { color: var(--act); } .song-t { color: var(--song); } .dance-t { color: var(--dance); }
.rank { display: grid; gap: 9px; }
.rank-row { display: grid; gap: 4px; background: none; border: 0; padding: 0; text-align: left; width: 100%; }
.rank-row .top { display: flex; justify-content: space-between; gap: 6px; font-size: 13.5px; padding: 0; }
.rank-row .top b { font-family: var(--f-en); font-variant-numeric: tabular-nums; }
.track { height: 8px; background: var(--bg); border-radius: 4px; }
.track .fill { height: 100%; border-radius: 4px; }
.fill.act { background: var(--act); } .fill.song { background: var(--song); } .fill.dance { background: var(--dance); }
.spark svg { width: 100%; height: auto; display: block; }
.spark .axis { stroke: var(--line); stroke-width: 1; }
.spark .line { fill: none; stroke-width: 2.2; }
.spark .line.act, .spark .end.act { stroke: var(--act); fill: var(--act); } .spark .line.act { fill: none; }
.spark .line.song, .spark .end.song { stroke: var(--song); fill: var(--song); } .spark .line.song { fill: none; }
.spark .line.dance, .spark .end.dance { stroke: var(--dance); fill: var(--dance); } .spark .line.dance { fill: none; }
.spark .area.act { fill: var(--act-bg); } .spark .area.song { fill: var(--song-bg); } .spark .area.dance { fill: var(--dance-bg); }
.spark .tick { font-family: var(--f-en); font-size: 6.5px; fill: var(--muted); text-anchor: middle; }
.focus { display: grid; gap: 5px; border-left: 4px solid var(--line); padding-left: 11px; }
.focus.act { border-color: var(--act); } .focus.song { border-color: var(--song); } .focus.dance { border-color: var(--dance); }
.focus b { font-size: 15.5px; }
.menu { font-size: 14px; }
.why { font-size: 12px; color: var(--muted); }
.album-sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; }
.album-sum div { background: var(--bg); border-radius: 12px; padding: 8px 2px; display: grid; }
.album-sum b { font-family: var(--f-en); font-size: 22px; }
.album-sum span { font-size: 11px; color: var(--muted); }
.done { display: grid; grid-template-columns: 42px 1fr; gap: 8px; font-size: 14px; align-items: start; padding: 8px 0; border-bottom: 1px solid var(--line); }
.done:last-child { border-bottom: 0; }
.done .d { font-family: var(--f-en); color: var(--muted); font-size: 12px; padding-top: 2px; }
.msg { font-weight: 700; }
.cheer { font-size: 19px; font-weight: 800; line-height: 1.6; }

/* マイページ */
.ratio { display: flex; height: 28px; border-radius: 8px; overflow: hidden; font-size: 11.5px; font-weight: 700; }
.ratio div { display: grid; place-items: center; color: #fff; white-space: nowrap; overflow: hidden; }
.ratio .a { background: var(--ink); } .ratio .b { background: var(--muted); }
.omamori { font-size: 14px; border-bottom: 1px solid var(--line); padding-bottom: 7px; }
.omamori:last-child { border-bottom: 0; padding-bottom: 0; }
.omamori span { display: block; font-size: 12px; color: var(--muted); }
.fbbtn { border: 1.5px dashed var(--act); color: var(--act); background: var(--bg); border-radius: 14px; padding: 13px; text-align: center; font-weight: 700; font-size: 14px; }

/* 送る人ページ */
.youbar { background: var(--navy); color: #fff; text-align: center; font-size: 12px; font-weight: 700; padding: calc(env(safe-area-inset-top, 0px) + 8px) 12px 8px; letter-spacing: .06em; }
.brand-s { font-family: var(--f-brand); font-weight: 900; margin-left: 6px; letter-spacing: .04em; }
.sched { display: grid; grid-template-columns: 84px 1fr; gap: 10px; align-items: start; font-size: 14px; padding: 10px 0; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; width: 100%; }
.sched .d { font-family: var(--f-en); font-weight: 700; font-size: 14px; }
.sched .d span { display: block; font-family: var(--f-ja); font-weight: 400; color: var(--muted); font-size: 11.5px; }
.sched em { font-style: normal; font-size: 11.5px; font-weight: 700; color: var(--act); }
.sched em.ok { color: var(--good); }
.sched em.wait { color: var(--muted); }
.fb { display: grid; gap: 4px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.fb span { color: var(--muted); font-size: 11.5px; }
.fb.done p { color: var(--muted); text-decoration: line-through; }

/* 下のメニュー */
.nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: grid; grid-template-columns: repeat(5, 1fr); background: rgba(255,255,255,.96); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-top: 1px solid var(--line); padding: 6px 4px calc(env(safe-area-inset-bottom, 0px) + 6px); }
.nav a { display: grid; justify-items: center; gap: 1px; font-size: 10.5px; color: var(--muted); text-decoration: none; padding: 2px 0; }
.nav a.on { color: var(--ink); font-weight: 700; }
.nav svg { width: 23px; height: 23px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* 下から出る入力欄 */
.sheet-wrap { position: fixed; inset: 0; z-index: 40; background: rgba(29,35,49,0); display: flex; align-items: flex-end; justify-content: center; transition: background .2s; }
.sheet-wrap.open { background: rgba(29,35,49,.35); }
.sheet { width: 100%; max-width: 560px; max-height: 88vh; overflow: auto; background: var(--bg); border-radius: 20px 20px 0 0; padding: 10px 16px calc(env(safe-area-inset-bottom, 0px) + 18px); display: grid; gap: 12px; transform: translateY(100%); transition: transform .22s ease-out; }
.sheet-wrap.open .sheet { transform: none; }
.sheet h3 { font-size: 17px; }
.sheet-grip { width: 40px; height: 5px; border-radius: 3px; background: var(--line); justify-self: center; }
.ask-msg { font-size: 15px; white-space: pre-wrap; padding: 6px 2px; }
#toast { position: fixed; left: 50%; bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px) + 16px); transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 12px; font-size: 13.5px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 60; max-width: calc(100% - 32px); text-align: center; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
