/* ==========================================================
   アプリの骨格（デザインの .phone の中身を、実際の画面に広げる）
   ========================================================== */

/* ai-bo 運営ダッシュボードの青に合わせる（デザインでは仮置きだった） */
.app{--aibo:#2f66d0; --link:#2554b4}
.app.dark{--aibo:#6EA2FF; --link:#8DB4FF}

/* デザインの部品は display を指定しているので、hidden を必ず優先させる */
[hidden]{display:none!important}

html,body{margin:0; background:var(--bg)}
body.app{min-height:100vh}

/* スマホ縦を基準にし、PC では幅 480px で中央寄せ */
.shell{max-width:480px; min-height:100vh; margin:0 auto; background:var(--bg); display:flex; flex-direction:column; box-shadow:0 0 0 1px var(--border)}
.shell.wide{max-width:none; box-shadow:none}
.hdr{position:sticky; top:0; z-index:4}
.tabbar{position:sticky; bottom:0; z-index:4; padding-bottom:calc(6px + env(safe-area-inset-bottom))}
.tabbar[hidden]{display:none}
.main{flex:1}
.utabs.bleed{margin:-16px -16px 0; background:var(--surface); padding:0 8px}

/* 画面の上に重ねるもの（シート・メニュー） */
#overlay:empty{display:none}
#overlay .scrim{position:fixed; z-index:20}
#overlay .sheet{max-width:480px; width:100%; margin:0 auto; max-height:90vh; overflow-y:auto}
#overlay .menu-pop{position:fixed; max-width:464px; margin:0 auto; z-index:21}
#overlay .menu-backdrop{position:fixed; inset:0; z-index:20}

.acting:not(.switchable){cursor:default}
.center{text-align:center}
.stack{display:flex; flex-direction:column; gap:12px}
.mt{margin-top:8px}
