/* Application shell and inherited theme tokens. Component rules live in styles/components/. */
:root{color-scheme:dark;--bg:#0b0e13;--panel:#11151d;--panel2:#171c25;--raised:#202631;--line:#2a303d;--dim:#8993a6;--text:#f5f8fc;--mint:#8cf0d2;--red:#ff657e;--blue:#82a9ff;--purple:#c1a1fa;--amber:#efbb75;--labelw:75px;--dock-pad:16px}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{margin:0;width:100%;height:100%;overflow:hidden;background:var(--bg);color:var(--text);font:14px/1.3 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
button,input{font:inherit}
button{cursor:pointer;touch-action:manipulation}
button:focus-visible,input:focus-visible{outline:2px solid var(--mint);outline-offset:2px}
button:disabled{opacity:.35;cursor:not-allowed}
.app{max-width:650px;min-width:280px;height:100vh;height:100dvh;margin:auto;display:flex;flex-direction:column;background:var(--bg);overflow:hidden;position:relative;box-shadow:0 0 80px #0007}
.main{min-height:0;flex:1;display:flex;flex-direction:column;overflow:hidden}
.page{min-height:0;flex:1;display:none;flex-direction:column}
.page.active{display:flex}
.dock{position:relative;flex:none;background:var(--savoy-dock-bg,#181e27);border-top:var(--savoy-dock-border,1px solid #333b46);padding:13px var(--dock-pad) calc(13px + env(safe-area-inset-bottom,0px));box-shadow:var(--savoy-dock-shadow,0 -17px 40px #0006);z-index:25}
.toast{position:absolute;left:50%;bottom:calc(220px + env(safe-area-inset-bottom,0px));transform:translateX(-50%) translateY(10px);background:#e1f9ed;color:#142923;font-size:11px;font-weight:750;padding:9px 13px;border-radius:9px;opacity:0;pointer-events:none;z-index:60;transition:opacity .15s,transform .15s;white-space:nowrap}
.toast.show{opacity:1;transform:translateX(-50%) translateY(0)}
.hidden{display:none!important}
.muted{opacity:.42}
@media (max-height:700px) {
.dock{padding-top:8px;padding-bottom:calc(8px + env(safe-area-inset-bottom,0px))}
}
.dock{padding:10px 12px calc(9px + env(safe-area-inset-bottom,0px))}
@media (max-height:700px) {
.dock{padding-top:6px}
}
.main{position:relative}
