body{min-height:100vh;display:flex;flex-direction:column;-webkit-user-select:none;user-select:none;overscroll-behavior:none;
padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left)}
.top{position:sticky;top:0;z-index:5;background:var(--bg);padding:10px 14px;border-bottom:1px solid var(--border)}
.top-row{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:12px}
.brand{font-weight:600;font-size:17px;display:flex;flex-direction:column;line-height:1.2}
.net{font-size:13px;color:var(--bad);font-weight:600}
.clock{font-size:30px;font-weight:700;font-variant-numeric:tabular-nums}
.top-btns{display:flex;justify-content:flex-end;gap:8px}
.icon-btn{width:48px;height:48px;border-radius:12px;border:1px solid var(--border);background:var(--surface);display:flex;align-items:center;justify-content:center;padding:0}
.icon-btn svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.menus{display:flex;gap:8px;margin-top:10px}
.menus button{flex:1;min-height:48px;border-radius:12px;border:1px solid var(--border);background:var(--surface);font-weight:600;font-size:17px}
.menus button[aria-pressed=true]{background:var(--primary);border-color:var(--primary);color:var(--on-primary)}
.menus small{display:block;font-size:12px;font-weight:500;line-height:1.1;opacity:.85}
.quick{display:flex;gap:8px;margin-top:10px}
.quick:empty{display:none}
.bar{display:flex;width:100%;margin-top:10px;border-radius:12px;align-items:center;justify-content:center;gap:16px;border:0;padding:12px 16px;min-height:52px;font-weight:600;font-size:17px;background:var(--highlight);color:var(--text)}
.bar-sound{background:var(--soon-bg);border:2px solid var(--soon-line)}
.bar-expired{background:var(--exp-bg);color:var(--exp-text)}
.board{flex:1;display:grid;gap:8px;padding:10px 14px 20px;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));align-content:start}
:root[data-size=small] .board{grid-template-columns:repeat(auto-fill,minmax(170px,1fr))}
:root[data-size=large] .board{grid-template-columns:repeat(auto-fill,minmax(320px,1fr))}
.tile{position:relative;display:flex;align-items:center;gap:12px;min-height:72px;padding:8px 12px;border-radius:12px;border:1px solid var(--border);background:var(--surface);box-shadow:var(--shadow);text-align:left;overflow:hidden;min-width:0}
.tile img{width:46px;height:46px;object-fit:contain;flex:none;pointer-events:none;border-radius:6px}
.tile-body{flex:1;min-width:0;position:relative}
.tile .name{display:block;font-weight:500;font-size:16px;line-height:1.2;overflow-wrap:anywhere}
.tile .left{display:block;font-weight:700;font-size:26px;line-height:1.15;font-variant-numeric:tabular-nums}
.pan{position:absolute;left:40px;bottom:6px;width:24px;height:24px;border-radius:50%;background:var(--primary);color:var(--on-primary);font-weight:700;font-size:14px;display:flex;align-items:center;justify-content:center;border:2px solid var(--surface)}
.fill{position:absolute;left:0;bottom:0;height:4px;width:100%;background:var(--accent);transform-origin:left;pointer-events:none}
.tile[data-state=idle]{border-style:dashed;box-shadow:none}
.tile[data-state=idle] .left{color:var(--muted);font-size:18px;font-weight:600}
.tile[data-state=idle] .fill,.tile[data-state=expired] .fill{display:none}
.tile[data-state=soon]{background:var(--soon-bg);border-color:var(--soon-line)}
.tile[data-state=soon] .fill{background:var(--soon-line)}
.tile[data-state=expired]{background:var(--exp-bg);border-color:var(--exp-bg);color:var(--exp-text)}
.tile[data-state=expired] .left{font-size:22px}
.tile:active{opacity:.75}
:root[data-size=large] .tile{min-height:96px}
:root[data-size=large] .tile img{width:64px;height:64px}
:root[data-size=large] .tile .name{font-size:20px}
:root[data-size=large] .tile .left{font-size:34px}
:root[data-size=large] .pan{left:56px;width:28px;height:28px;font-size:16px}
:root[data-size=small] .tile{min-height:60px;gap:8px;padding:6px 8px}
:root[data-size=small] .tile img{width:36px;height:36px}
:root[data-size=small] .tile .name{font-size:14px}
:root[data-size=small] .tile .left{font-size:21px}
:root[data-size=small] .pan{left:28px;bottom:4px;width:20px;height:20px;font-size:12px}
.quick .tile{flex:1;min-height:58px;padding:6px 10px}
.quick .tile img{width:36px;height:36px}
.quick .tile .name{font-size:14px}
.quick .tile .left{font-size:19px}
.quick .pan{left:30px}
@media (prefers-reduced-motion:no-preference){.tile[data-state=expired]{animation:pulse 1s steps(2,jump-none) infinite}}
@keyframes pulse{0%{filter:none}100%{filter:brightness(1.35)}}
.empty{text-align:center;color:var(--muted);padding:40px 24px;font-size:18px}
.undo{position:fixed;left:50%;bottom:calc(18px + env(safe-area-inset-bottom));transform:translateX(-50%);display:flex;align-items:center;gap:14px;background:var(--primary);color:var(--on-primary);padding:8px 8px 8px 18px;border-radius:14px;font-weight:600;box-shadow:0 8px 30px rgba(0,0,0,.25);z-index:10;max-width:94%}
.undo .btn{background:var(--on-primary);color:var(--primary);border:0}
.set{border-top:1px solid var(--border);padding:16px 0}
.set h3{font-size:17px;margin-bottom:10px}
.choices{display:flex;gap:8px;flex-wrap:wrap}
.choice{flex:1;min-width:100px;min-height:52px;padding:10px 14px;border-radius:12px;border:1px solid var(--border);background:var(--bg);font-weight:600;text-align:left}
.choice small{display:block;font-weight:400;color:var(--muted);font-size:14px}
.choice[aria-pressed=true]{border:2px solid var(--primary);background:var(--highlight)}
.choice[aria-pressed=true] small{color:var(--text)}
.facts{display:grid;grid-template-columns:auto 1fr;gap:4px 16px;margin:0;font-size:15px}
.facts dt{color:var(--muted)}.facts dd{margin:0}
.links{display:flex;gap:20px;flex-wrap:wrap;margin-top:14px}
.links a{min-height:44px;display:inline-flex;align-items:center}
.logo{height:72px;display:block;margin:0 auto 12px}
:root[data-theme=dark] .logo.light,:root[data-theme=light] .logo.dark{display:none}
.sheet .choices.col{flex-direction:column}
@media (max-width:560px){.board,:root[data-size=small] .board,:root[data-size=large] .board{grid-template-columns:1fr 1fr;padding:8px}.tile img{width:34px;height:34px}.pan{left:28px}.tile .left{font-size:20px}.quick{flex-wrap:wrap}.quick .tile{flex:1 1 40%}.clock{font-size:22px}}
