/* こえメモ — 白とヴァイオレット、声の波形 */
:root {
  --bg: #ffffff;
  --grouped: #f5f3fa;
  --card: #ffffff;
  --label: #17151f;
  --label-2: #5b566b;
  --label-3: #6e6880;
  --sep: rgba(60, 50, 100, .13);
  --violet: #6236e8;
  --violet-d: #4b23c4;
  --violet-2: #8b6cff;
  --tint: #efe9ff;
  --tint-2: #f7f4ff;
  --rec: #e5484d;
  --danger: #c62a2f;
  --f: "IBM Plex Sans JP", "Hiragino Sans", "Yu Gothic", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SF Mono", monospace;
  --r-cell: 14px;
  --r-sheet: 30px;
  --ios: cubic-bezier(.32, .72, 0, 1);
  --spring: cubic-bezier(.34, 1.4, .64, 1);
  --tab-h: 64px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--f); color: var(--label); background: #ece8f7; line-break: strict; -webkit-font-smoothing: antialiased; overflow: hidden; }
img { display: block; max-width: 100%; height: auto; -webkit-user-drag: none; user-select: none; }
button, input { font: inherit; color: inherit; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-feature-settings: "palt"; }
.num { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.nw { white-space: nowrap; }

.app { position: relative; max-width: 430px; height: 100vh; height: 100dvh; margin: 0 auto; background: var(--bg); overflow: hidden; isolation: isolate; }
@media (min-width: 600px) {
  body { background: radial-gradient(1200px 600px at 20% 10%, #f3eeff 0, transparent 60%), radial-gradient(900px 700px at 90% 90%, #e6defd 0, transparent 60%), #ece8f7; }
  .app { box-shadow: 0 30px 80px rgba(70, 40, 160, .16), 0 0 0 1px rgba(98, 54, 232, .08); }
}
.stage { position: absolute; inset: 0; }
.scr { position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--bg); transition: transform .42s var(--ios), opacity .42s var(--ios), filter .42s; will-change: transform; }
.scr__body { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; padding: 0 16px calc(var(--tab-h) + 40px + env(safe-area-inset-bottom)); }
.scr.is-enter.anim-push { transform: translateX(100%); box-shadow: -20px 0 40px rgba(0, 0, 0, .08); }
.scr.is-leave.anim-push { transform: translateX(-28%); filter: brightness(.94); }
.scr.is-enter.anim-pop { transform: translateX(-28%); }
.scr.is-leave.anim-pop { transform: translateX(100%); z-index: 3; }
.scr.is-enter.anim-fade { opacity: 0; }
.scr.is-leave.anim-fade { opacity: 0; }
.boot-fallback { padding: 120px 24px; text-align: center; font-size: 15px; line-height: 1.7; }
.boot-fallback__title { font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.noscript { padding: 24px; }

/* ---------- ナビバー（大きなタイトルが縮む） ---------- */
.nav { position: relative; z-index: 5; flex: none; padding-top: env(safe-area-inset-top); background: transparent; transition: background .25s, box-shadow .25s; }
.nav__in { height: 48px; display: grid; grid-template-columns: minmax(64px, 1fr) auto minmax(64px, 1fr); align-items: center; padding: 0 8px; }
.nav__title { grid-column: 2; max-width: 210px; font-size: 16px; font-weight: 600; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0; transition: opacity .2s; }
.nav.is-scrolled { background: rgba(255, 255, 255, .86); -webkit-backdrop-filter: saturate(1.8) blur(20px); backdrop-filter: saturate(1.8) blur(20px); box-shadow: 0 .5px 0 var(--sep); }
.nav.is-scrolled .nav__title { opacity: 1; }
.nav--sub .nav__title { opacity: 0; }
.nav--sub.is-scrolled .nav__title { opacity: 1; }
.nav__sp { width: 44px; }
.nav__back { justify-self: start; display: inline-flex; align-items: center; gap: 0; min-height: 44px; padding: 0 8px 0 0; border: 0; background: none; color: var(--violet); font-size: 17px; cursor: pointer; }
.nav__back svg { width: 26px; height: 26px; }
.nav__back:active { opacity: .5; }
.nav__btn { justify-self: end; grid-column: 3; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 0 10px; border: 0; border-radius: 22px; background: none; color: var(--violet); font-size: 16px; font-weight: 600; text-decoration: none; cursor: pointer; }
.nav__btn svg { width: 24px; height: 24px; }
.nav__btn:active { background: var(--tint); }
.ltitle { font-size: 33px; line-height: 1.2; font-weight: 700; letter-spacing: .01em; padding: 2px 4px 6px; transform-origin: left center; }
.lsub { padding: 0 4px 12px; font-size: 14px; color: var(--label-2); }

/* ---------- タブバー（ガラス・機能層） ---------- */
.tabbar {
  position: absolute; z-index: 20; left: 50%; bottom: calc(10px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  display: flex; gap: 2px; padding: 5px; height: var(--tab-h); width: min(300px, calc(100% - 40px));
  background: rgba(255, 255, 255, .78); -webkit-backdrop-filter: saturate(1.8) blur(22px); backdrop-filter: saturate(1.8) blur(22px);
  border-radius: 32px; box-shadow: 0 8px 30px rgba(50, 30, 120, .16), inset 0 0 0 .5px rgba(255, 255, 255, .9), 0 0 0 .5px rgba(60, 50, 100, .12);
}
.tab { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; border-radius: 27px; color: var(--label-2); text-decoration: none; font-size: 11px; font-weight: 600; transition: background .25s, color .25s, transform .2s var(--spring); }
.tab svg { width: 26px; height: 26px; }
.tab.is-on { background: var(--tint); color: var(--violet-d); }
.tab:active { transform: scale(.92); }

/* ---------- ボタン ---------- */
.btn { display: flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 20px; border: 0; border-radius: 25px; font-size: 16px; font-weight: 600; text-decoration: none; cursor: pointer; transition: transform .15s, background .2s; }
.btn:active { transform: scale(.97); }
.btn--fill { background: var(--violet); color: #fff; }
.btn--fill:active { background: var(--violet-d); }
.btn--tint { background: var(--tint); color: var(--violet-d); }
.btn--text { background: none; color: var(--violet-d); }
.btn--danger { background: var(--danger); color: #fff; }

/* ---------- 録音 ---------- */
.scr--record .scr__body { padding-bottom: 12px; }
.hero { position: relative; margin: 4px 0 0; border-radius: 22px; overflow: hidden; background: var(--tint-2); }
.hero img { width: 100%; height: 150px; object-fit: cover; }
.hero figcaption { padding: 4px 18px 18px; background: var(--tint-2); }
.hero__h { font-size: 21px; font-weight: 700; line-height: 1.45; word-break: keep-all; }
.hero__p { margin-top: 6px; font-size: 14px; line-height: 1.7; color: var(--label-2); }
.feats { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 2px; }
.feats li { display: flex; gap: 14px; align-items: flex-start; padding: 10px 4px; }
.feats svg { flex: none; width: 30px; height: 30px; padding: 6px; border-radius: 10px; background: var(--tint); color: var(--violet); }
.feats li > span { display: flex; flex-direction: column; gap: 2px; }
.feats b { font-size: 15px; font-weight: 600; }
.feats b + span { font-size: 14px; line-height: 1.6; color: var(--label-2); }
.env-note { margin: 10px 4px 0; font-size: 13px; line-height: 1.6; color: var(--label-3); }
.rec-live { padding: 4px 4px 8px; }
.live__badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 16px; background: #fff0f0; font-size: 13px; font-weight: 600; color: #a3262b; }
.live__badge:has(.dot--sample) { background: var(--tint); color: var(--violet-d); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--rec); animation: blink 1.2s infinite; }
.dot--sample { background: var(--violet); }
@keyframes blink { 50% { opacity: .25; } }
.live__text { margin-top: 14px; min-height: 120px; font-size: 21px; line-height: 1.75; font-weight: 500; letter-spacing: .01em; }
.live__ph { color: var(--label-3); font-size: 17px; }
.live__interim { color: #7d63d9; }
.live__caret { display: inline-block; width: 2px; height: 1.1em; margin-left: 2px; vertical-align: -3px; background: var(--violet); animation: blink 1s infinite; }
.live__kw { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 18px; }
.live__kwl { width: 100%; font-size: 12px; font-weight: 600; color: var(--label-2); letter-spacing: .04em; }
.kwc { display: inline-flex; align-items: baseline; gap: 4px; padding: 6px 12px; border-radius: 16px; background: var(--tint); color: var(--violet-d); font-size: 14px; font-weight: 600; animation: pop .35s var(--spring); }
.kwc b { font-size: 12px; font-weight: 500; }
@keyframes pop { from { transform: scale(.7); opacity: 0; } }
.deck { flex: none; margin: 0 12px calc(var(--tab-h) + 22px + env(safe-area-inset-bottom)); padding: 12px 16px 14px; border-radius: 28px; background: var(--grouped); }
.deck__time { text-align: center; font-size: 30px; font-weight: 500; letter-spacing: .02em; color: var(--label); }
.deck__wave { display: block; width: 100%; height: 56px; margin: 6px 0 8px; }
.deck__ctrl { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; }
.deck__side { justify-self: start; min-height: 44px; padding: 0 14px; border: 0; border-radius: 22px; background: #fff; font-size: 15px; font-weight: 600; color: var(--label); cursor: pointer; }
.deck__side--tint { justify-self: end; grid-column: 3; background: var(--tint); color: var(--violet-d); }
.deck__side:active { transform: scale(.95); }
.recbtn { grid-column: 2; position: relative; width: 74px; height: 74px; border-radius: 50%; border: 4px solid #fff; background: #fff; box-shadow: 0 0 0 2px #cfc6ee, 0 6px 18px rgba(98, 54, 232, .25); cursor: pointer; display: grid; place-items: center; transition: transform .2s var(--spring); }
.recbtn__core { width: 56px; height: 56px; border-radius: 28px; background: var(--rec); transition: width .3s var(--spring), height .3s var(--spring), border-radius .3s var(--spring); }
.recbtn.is-live .recbtn__core { width: 28px; height: 28px; border-radius: 8px; }
.recbtn:active { transform: scale(.92); }
.scr--record.is-live .ltitle { color: var(--label); }

/* ---------- メモ一覧 ---------- */
.scr--memos, .scr--settings, .scr--about { background: var(--grouped); }
.scr--memos .nav.is-scrolled, .scr--settings .nav.is-scrolled, .scr--about .nav.is-scrolled { background: rgba(245, 243, 250, .86); }
.search { padding: 0 0 10px; }
.search__f { display: flex; align-items: center; gap: 6px; height: 40px; padding: 0 6px 0 10px; border-radius: 12px; background: rgba(118, 108, 150, .13); }
.search__f > svg { width: 18px; height: 18px; color: var(--label-2); flex: none; }
.search__f input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; outline: none; font-size: 16px; }
.search__f input::placeholder { color: var(--label-3); }
.search__f input::-webkit-search-cancel-button { display: none; }
.search__x { width: 32px; height: 32px; border: 0; border-radius: 50%; background: none; color: var(--label-2); display: grid; place-items: center; cursor: pointer; }
.search__x svg { width: 18px; height: 18px; }
.chips { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 12px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border: 0; border-radius: 18px; background: #fff; box-shadow: 0 0 0 1px var(--sep); font-size: 14px; font-weight: 600; color: var(--label); cursor: pointer; transition: background .2s, color .2s, transform .15s; }
.chip i { width: 8px; height: 8px; border-radius: 50%; background: hsl(var(--h) 62% 52%); }
.chip .num { font-size: 12px; color: var(--label-2); font-weight: 500; }
.chip.is-on { background: var(--violet); color: #fff; box-shadow: none; }
.chip.is-on .num { color: #fff; }
.chip.is-on i { background: #fff; }
.chip:active { transform: scale(.95); }
.mgroup { padding: 14px 4px 8px; font-size: 14px; font-weight: 600; color: var(--label-2); }
.mcard { background: var(--card); border-radius: var(--r-cell); overflow: hidden; }
.cellw { position: relative; overflow: hidden; }
.cellw + .cellw::before { content: ""; position: absolute; z-index: 2; top: 0; left: 16px; right: 0; height: .5px; background: var(--sep); }
.cell__del { position: absolute; top: 0; right: 0; bottom: 0; width: 88px; border: 0; background: var(--danger); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 13px; font-weight: 600; cursor: pointer; }
.cell__del svg { width: 22px; height: 22px; }
.cell { position: relative; z-index: 1; display: flex; gap: 10px; align-items: center; padding: 12px 10px 12px 16px; background: var(--card); text-decoration: none; color: inherit; transition: transform .35s var(--ios), background .15s; touch-action: pan-y; user-select: none; -webkit-user-drag: none; }
.cell:active { background: #f3f0fb; }
.cell__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.cell__t { font-size: 16px; font-weight: 600; line-height: 1.45; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cell__s { font-size: 14px; line-height: 1.6; color: var(--label-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cell__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 2px; font-size: 12px; color: var(--label-2); }
.cell__side { flex: none; display: flex; align-items: center; gap: 4px; }
.spark { display: block; width: 56px; height: 28px; fill: #b9a8f5; }
.cell__chev { width: 16px; height: 16px; color: #b3adc4; }
mark { background: #e6dcff; color: inherit; border-radius: 3px; padding: 0 1px; }
.tagc { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 10px; background: hsl(var(--h) 70% 95%); color: hsl(var(--h) 55% 30%); font-size: 12px; font-weight: 600; line-height: 1.5; }
.tagc::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: hsl(var(--h) 62% 52%); }
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 16px 20px 24px; gap: 8px; }
.empty img { width: 210px; height: 210px; object-fit: cover; border-radius: 50%; }
.empty__ic { width: 44px; height: 44px; color: #b3a5e6; margin-top: 30px; }
.empty__h { font-size: 18px; font-weight: 700; line-height: 1.5; }
.empty__p { font-size: 14px; line-height: 1.7; color: var(--label-2); max-width: 280px; }
.empty .btn { margin-top: 10px; min-width: 180px; }

/* ---------- メモ詳細 ---------- */
.scr--memo .scr__body { padding-bottom: 40px; }
.dtitle { padding: 4px 4px 4px; font-size: 26px; font-weight: 700; line-height: 1.4; }
.dmeta { display: flex; flex-wrap: wrap; gap: 4px 12px; padding: 0 4px 14px; font-size: 14px; color: var(--label-2); }
.player { display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 12px; padding: 12px 14px 12px 12px; border-radius: 22px; background: var(--tint-2); }
.player__btn { width: 52px; height: 52px; border: 0; border-radius: 50%; background: var(--violet); color: #fff; display: grid; place-items: center; cursor: pointer; transition: transform .2s var(--spring); }
.player__btn svg { width: 24px; height: 24px; }
.player__btn:active { transform: scale(.9); }
.player__btn:disabled { background: #d8d1ef; color: #4e4864; cursor: default; }
.player__wave { position: relative; height: 44px; }
.player__wave .spark { width: 100%; height: 44px; fill: #cbbdf7; }
.player__prog { position: absolute; inset: 0 auto 0 0; width: 0; overflow: hidden; }
.player__prog .spark { width: calc(100cqw); fill: var(--violet); }
.player__wave { container-type: inline-size; }
.player__t { font-size: 14px; color: var(--label-2); }
.acts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 12px 0 6px; }
.act { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 62px; border: 0; border-radius: 16px; background: var(--grouped); color: var(--violet-d); font-size: 13px; font-weight: 600; cursor: pointer; transition: transform .15s, background .2s; }
.act svg { width: 22px; height: 22px; }
.act:active { transform: scale(.94); background: var(--tint); }
.act--danger { color: var(--danger); }
.blk { margin-top: 20px; }
.blk__h { display: flex; align-items: center; gap: 8px; padding: 0 4px 10px; font-size: 18px; font-weight: 700; }
.blk__h svg { width: 20px; height: 20px; color: var(--violet); }
.blk__auto { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--label-2); }
.blk__p { font-size: 14px; color: var(--label-2); }
.sum { list-style: none; counter-reset: s; margin: 0; padding: 4px 0; border-radius: 18px; background: linear-gradient(180deg, #f6f2ff, #fbf9ff); }
.sum li { counter-increment: s; position: relative; padding: 10px 16px 10px 52px; font-size: 16px; line-height: 1.75; }
.sum li::before { content: counter(s); position: absolute; left: 14px; top: 12px; width: 26px; height: 26px; border-radius: 50%; background: var(--violet); color: #fff; font: 500 13px/26px var(--f-mono); text-align: center; }
.sum li + li { border-top: .5px solid rgba(98, 54, 232, .14); }
.kws { display: grid; gap: 6px; }
.kw { display: grid; grid-template-columns: minmax(0, 1.1fr) 1fr 34px; align-items: center; gap: 12px; min-height: 44px; padding: 0 14px; border: 0; border-radius: 12px; background: var(--grouped); cursor: pointer; text-align: left; transition: background .2s; }
.kw__w { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kw__bar { height: 6px; border-radius: 3px; background: #e3dcf7; overflow: hidden; }
.kw__bar i { display: block; height: 100%; border-radius: 3px; background: var(--violet-2); }
.kw__c { font-size: 14px; text-align: right; color: var(--label-2); }
.kw[aria-pressed="true"] { background: var(--violet); }
.kw[aria-pressed="true"] .kw__w, .kw[aria-pressed="true"] .kw__c { color: #fff; }
.kw[aria-pressed="true"] .kw__bar { background: rgba(255, 255, 255, .3); }
.kw[aria-pressed="true"] .kw__bar i { background: #fff; }
.dtags { display: flex; flex-wrap: wrap; gap: 8px; }
.dtags .tagc { font-size: 14px; padding: 6px 12px; border-radius: 16px; }
.tagadd { display: inline-flex; align-items: center; gap: 4px; min-height: 34px; padding: 0 12px; border: 1px dashed #b9abea; border-radius: 17px; background: #fff; color: var(--violet-d); font-size: 14px; font-weight: 600; cursor: pointer; }
.tagadd svg { width: 16px; height: 16px; }
.full { padding: 16px; border-radius: 18px; background: var(--grouped); font-size: 16px; line-height: 1.95; }
.full mark { background: none; border-bottom: 2px solid #cdbdfa; border-radius: 0; padding: 0; transition: background .2s; }
.full mark.is-hot { background: #e6dcff; border-bottom-color: var(--violet); }
.dnote { margin-top: 16px; padding: 0 4px; font-size: 13px; line-height: 1.7; color: var(--label-2); }

/* ---------- 設定 ---------- */
.ghead { padding: 18px 16px 6px; font-size: 13px; font-weight: 600; color: var(--label-2); letter-spacing: .04em; }
.group { background: var(--card); border-radius: var(--r-cell); overflow: hidden; }
.group--gap { margin-top: 22px; }
.grow { position: relative; width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 50px; padding: 10px 16px; border: 0; background: var(--card); text-align: left; font-size: 16px; color: var(--label); text-decoration: none; cursor: default; }
.grow + .grow::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; height: .5px; background: var(--sep); }
.grow__t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.grow__sub { font-size: 13px; line-height: 1.5; color: var(--label-2); }
.grow__v { flex: none; font-size: 15px; color: var(--label-2); }
.grow--sw { cursor: pointer; }
.grow--link { cursor: pointer; }
.grow--link svg { width: 18px; height: 18px; color: #a8a1bd; flex: none; }
.grow--link:active { background: #f1eef9; }
.grow--danger { color: var(--danger); }
.gfoot { padding: 8px 16px 0; font-size: 13px; line-height: 1.65; color: var(--label-2); }
.gver { padding: 20px 0 0; text-align: center; font-size: 13px; color: var(--label-2); }
.sw { appearance: none; -webkit-appearance: none; position: relative; flex: none; width: 51px; height: 31px; margin: 0; border-radius: 16px; background: #e3e0ea; cursor: pointer; transition: background .25s; }
.sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .2); transition: transform .3s var(--spring); }
.sw:checked { background: var(--violet); }
.sw:checked::after { transform: translateX(20px); }
.sw:focus-visible, .seg__b:focus-visible, .btn:focus-visible { outline: 2px solid var(--violet-2); outline-offset: 2px; }
.seg { display: inline-grid; grid-auto-flow: column; padding: 2px; border-radius: 10px; background: rgba(118, 108, 150, .13); }
.seg__b { min-width: 58px; min-height: 36px; border: 0; border-radius: 8px; background: none; font-size: 14px; font-weight: 600; cursor: pointer; }
.seg__b[aria-checked="true"] { background: #fff; box-shadow: 0 2px 6px rgba(40, 20, 90, .14); }
.about__id { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 0 20px; }
.about__id img { width: 92px; height: 92px; border-radius: 22px; box-shadow: 0 8px 24px rgba(98, 54, 232, .2); margin-bottom: 8px; }
.about__n { font-size: 20px; font-weight: 700; }
.about__v { font-size: 13px; color: var(--label-2); }
.about__p { padding: 14px 16px; font-size: 15px; line-height: 1.75; }
.about__cta { margin-top: 24px; }

/* ---------- シート ---------- */
.scrim { position: absolute; inset: 0; z-index: 30; background: rgba(20, 10, 50, .3); opacity: 0; transition: opacity .3s; }
.scrim.is-open { opacity: 1; }
.sheet {
  position: absolute; left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom)); z-index: 31; max-height: 88%; overflow-y: auto; overscroll-behavior: contain;
  padding: 6px 20px 18px; border-radius: var(--r-sheet); background: rgba(255, 255, 255, .97); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  box-shadow: 0 20px 60px rgba(40, 20, 100, .25); transform: translateY(115%); transition: transform .45s var(--ios);
}
.sheet.is-open { transform: none; }
.sheet__grip { width: 38px; height: 5px; margin: 4px auto 12px; border-radius: 3px; background: #d6d0e6; }
.sheet__btns { display: grid; gap: 8px; margin-top: 18px; }
.perm { display: flex; flex-direction: column; }
.perm__img { width: 120px; height: 120px; margin: 0 auto 6px; border-radius: 50%; object-fit: cover; }
.perm__h { font-size: 20px; font-weight: 700; text-align: center; line-height: 1.45; word-break: keep-all; }
.perm__p { margin-top: 10px; font-size: 15px; line-height: 1.75; color: var(--label-2); }
.perm__list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 12px; }
.perm__list li { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.7; }
.perm__list svg { flex: none; width: 22px; height: 22px; margin-top: 2px; color: var(--violet); }
.samples__h { font-size: 20px; font-weight: 700; }
.samples__p { margin-top: 6px; font-size: 14px; line-height: 1.7; color: var(--label-2); }
.samples__list { display: grid; gap: 8px; margin-top: 14px; }
.smp { display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 12px; padding: 8px 14px 8px 8px; border: 0; border-radius: 18px; background: var(--grouped); text-align: left; cursor: pointer; transition: transform .15s, background .2s; }
.smp img { width: 56px; height: 56px; border-radius: 14px; object-fit: cover; background: #fff; }
.smp__t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.smp__t b { font-size: 15px; font-weight: 600; }
.smp__t span { font-size: 13px; color: var(--label-2); }
.smp__d { font-size: 13px; color: var(--violet-d); }
.smp:active { transform: scale(.98); background: var(--tint); }
.swrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; margin-top: 10px; font-size: 15px; cursor: pointer; }
.tagsheet__h { font-size: 20px; font-weight: 700; line-height: 1.45; }
.tagsheet__p { margin-top: 6px; font-size: 14px; line-height: 1.7; color: var(--label-2); }
.tagsheet__list { margin-top: 12px; border-radius: 16px; background: var(--grouped); overflow: hidden; }
.tgrow { position: relative; width: 100%; display: flex; align-items: center; gap: 12px; min-height: 50px; padding: 0 16px; border: 0; background: none; font-size: 16px; text-align: left; cursor: pointer; }
.tgrow + .tgrow::before { content: ""; position: absolute; top: 0; left: 36px; right: 0; height: .5px; background: var(--sep); }
.tgrow i { width: 10px; height: 10px; border-radius: 50%; background: hsl(var(--h) 62% 52%); }
.tgrow__n { flex: 1; }
.tgrow__s { padding: 2px 8px; border-radius: 8px; background: var(--tint); color: var(--violet-d); font-size: 12px; font-weight: 600; }
.tgrow__ck { width: 22px; height: 22px; color: var(--violet); opacity: 0; transform: scale(.6); transition: opacity .2s, transform .25s var(--spring); }
.tgrow[aria-pressed="true"] .tgrow__ck { opacity: 1; transform: none; }
.tgrow:active { background: #ece7f9; }
.field { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; }
.field__l { font-size: 13px; font-weight: 600; color: var(--label-2); }
.field input { height: 48px; padding: 0 14px; border: 1.5px solid #d8d1ef; border-radius: 12px; background: #fff; font-size: 17px; outline: none; }
.field input:focus { border-color: var(--violet); }
.field__err { margin-top: 6px; font-size: 13px; color: var(--danger); }

/* ---------- トースト ---------- */
.toast { position: absolute; z-index: 60; left: 50%; bottom: calc(var(--tab-h) + 24px + env(safe-area-inset-bottom)); transform: translate(-50%, 16px); opacity: 0; pointer-events: none;
  display: flex; align-items: center; gap: 12px; width: max-content; max-width: calc(100% - 32px); padding: 12px 16px; border-radius: 18px; background: #24202e; color: #fff; font-size: 14px; line-height: 1.5; box-shadow: 0 10px 30px rgba(20, 10, 50, .3); transition: opacity .25s, transform .35s var(--spring); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast__btn { flex: none; min-height: 32px; padding: 0 10px; border: 0; border-radius: 10px; background: #3a3450; color: #d9ccff; font-size: 14px; font-weight: 600; cursor: pointer; }

/* ---------- スプラッシュ・オンボーディング ---------- */
.splash { position: absolute; inset: 0; z-index: 50; display: grid; place-content: center; justify-items: center; gap: 16px; background: #fff; transition: opacity .28s; }
.splash img { width: 104px; height: 104px; border-radius: 24px; box-shadow: 0 12px 30px rgba(98, 54, 232, .22); }
.splash__name { font-size: 22px; font-weight: 700; letter-spacing: .06em; }
.splash.is-out { opacity: 0; }
.onboard { position: absolute; inset: 0; z-index: 40; display: flex; flex-direction: column; background: #fff; transition: opacity .26s; }
.onboard.is-out { opacity: 0; }
.onboard__art { flex: 1; min-height: 0; overflow: hidden; }
.onboard__art img { width: 100%; height: 100%; object-fit: cover; object-position: center 80%; }
.onboard__body { padding: 8px 28px calc(24px + env(safe-area-inset-bottom)); background: #fff; }
.onboard__step { font: 500 13px/1 var(--f-mono); color: var(--violet-d); }
.onboard__title { margin-top: 10px; font-size: 27px; font-weight: 700; line-height: 1.35; word-break: keep-all; }
.onboard__text { margin-top: 10px; font-size: 15px; line-height: 1.8; color: var(--label-2); }
.onboard__btns { display: grid; gap: 4px; margin-top: 20px; }

@media (max-height: 700px) {
  .hero img { height: 110px; }
  .deck__wave { height: 40px; }
  .deck__time { font-size: 24px; }
  .recbtn { width: 64px; height: 64px; }
  .recbtn__core { width: 46px; height: 46px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
