*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{margin:0;background:#000;color:#F2F2F2;font-family:'Nunito',system-ui,-apple-system,sans-serif}
body{min-height:100vh;-webkit-user-select:none;user-select:none}
button{font:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer;text-align:left}
svg{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round}
#app{padding:18px 18px calc(24px + env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:14px;max-width:520px;margin:0 auto}
.top{display:flex;align-items:center;justify-content:space-between}
h1{margin:0;font-size:30px;font-weight:800;letter-spacing:-.3px}
.muted{font-size:14px;color:#A1A1A8}
.missed{display:flex;align-items:center;gap:8px;align-self:flex-start;padding:9px 14px;border-radius:999px;background:#2A1C06;color:#FFC46B;font-size:13px;font-weight:700;min-height:36px}
.player{display:flex;flex-direction:column;gap:12px;padding:12px 14px 14px;border-radius:22px;background:#0F1A14;border:1px solid #16301F}
.player .row{display:flex;align-items:center;gap:12px}
.player .art{width:44px;height:44px;border-radius:14px;background:#153A25;color:#5FD39A;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.player .txt{flex-grow:1;min-width:0;display:flex;flex-direction:column;gap:1px}
.player .t1{font-size:15px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.player .t2{font-size:13px;color:#A1A1A8;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.round{width:44px;height:44px;border-radius:22px;display:flex;align-items:center;justify-content:center;flex-shrink:0;color:#5FD39A}
.round.fill{background:#153A25}
.vol{display:flex;align-items:center;gap:10px;color:#5FD39A}
.vol input{flex-grow:1;accent-color:#5FD39A}
.vol span{font-size:13px;font-weight:700;min-width:42px;text-align:right}
.player.idle{background:#0E0E10;border-color:#1A1A1E}
.player .start{min-height:44px;padding:0 16px;border-radius:22px;background:#153A25;color:#5FD39A;font-weight:700;font-size:14px;flex-shrink:0}
.chips{display:flex;gap:8px;flex-wrap:wrap}
.chips:empty{display:none}
.chip{display:flex;align-items:center;gap:10px;padding:8px 14px 8px 8px;border-radius:999px;background:#141416;min-height:46px}
.chip.plain{padding:8px 14px;gap:8px;font-size:13px;color:#C9C9CF}
.ring{width:30px;height:30px;border-radius:15px;position:relative;flex-shrink:0}
.ring::after{content:"";position:absolute;inset:4px;border-radius:50%;background:#141416}
.chip .n{font-size:13px;font-weight:700}
.chip .left{font-size:12px;color:#FFC46B;font-variant-numeric:tabular-nums}
.chip .left.paused{color:#8E8E96}
.tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.tile-wrap{position:relative}
.tile{width:100%;min-height:104px;border-radius:22px;padding:14px;display:flex;flex-direction:column;justify-content:space-between;gap:10px;background:#0E0E10;border:1px solid #1A1A1E;transition:background .15s,border-color .15s}
.tile .ic{width:40px;height:40px;border-radius:13px;display:flex;align-items:center;justify-content:center;background:#18181B;color:#A1A1A8}
.tile .nm{font-size:15px;font-weight:700}
.tile .st{font-size:13px;color:#8E8E96;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tile.na .ic{color:#55555C}.tile.na .st{color:#6E6E76}
.tile.busy{opacity:.75}
.more{position:absolute;top:8px;right:8px;width:40px;height:40px;border-radius:20px;display:flex;align-items:center;justify-content:center;color:#A1A1A8}
.scenes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.scene{min-height:64px;border-radius:20px;background:#141416;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;text-align:center;font-size:13px;font-weight:700;color:#DADADF;padding:8px 4px}
.scene:active,.tile:active,.round:active{transform:scale(.97)}
.addhome{align-self:center;min-height:40px;padding:0 16px;border-radius:20px;background:#141416;color:#A1A1A8;font-size:13px;font-weight:700}
.toast{position:fixed;left:18px;right:18px;bottom:calc(24px + env(safe-area-inset-bottom));padding:14px 16px;border-radius:18px;background:#1C1C20;color:#F2F2F2;font-size:14px;font-weight:600;max-width:484px;margin:0 auto;z-index:20}
.sheet-wrap{position:fixed;inset:0;background:rgba(0,0,0,.6);display:flex;flex-direction:column;justify-content:flex-end;z-index:10}
.sheet{background:#121214;border-radius:28px 28px 0 0;padding:20px 20px calc(28px + env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:18px;max-width:520px;width:100%;margin:0 auto}
.sheet .hd{display:flex;align-items:center;justify-content:space-between}
.sheet h2{margin:0;font-size:22px;font-weight:800}
.close{width:44px;height:44px;border-radius:22px;background:#1E1E22;display:flex;align-items:center;justify-content:center;color:#C9C9CF}
.lbl{display:flex;justify-content:space-between;font-size:15px;font-weight:700}
.lbl b{color:#FFC46B;font-weight:700}
.sheet input[type=range]{width:100%;accent-color:#FFB547}
.presets{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.preset{min-height:44px;border-radius:14px;text-align:center;font-size:14px;font-weight:700;background:#1E1E22;color:#C9C9CF}
.colors{display:flex;gap:12px;flex-wrap:wrap}
.color{width:44px;height:44px;border-radius:22px}
.wide{min-height:52px;border-radius:18px;background:#1E1E22;text-align:center;font-size:16px;font-weight:700;color:#F2F2F2}
.mlist{display:flex;flex-direction:column;gap:8px}
.mitem{padding:12px 14px;border-radius:16px;background:#1A1A1E;font-size:14px;display:flex;justify-content:space-between;gap:12px}
.mitem span:last-child{color:#A1A1A8;flex-shrink:0}
.locked{padding:40px 8px;text-align:center;color:#A1A1A8;font-size:16px;line-height:1.5}
