:root{--bg:#f4f5f7;--surface:#fff;--text:#1f2933;--muted:#616e7c;--border:#cbd2d9;--accent:#2563eb;--rec:#d92d20;--rec-bg:#fde8e7;--done:#0f766e;--done-bg:#e6f4f1;--play-bg:#e8effd;color:var(--text);background:var(--bg);-webkit-text-size-adjust:100%;font-family:system-ui,-apple-system,Hiragino Sans,Noto Sans JP,sans-serif}*{box-sizing:border-box}body{min-height:100dvh;margin:0}.app{max-width:720px;padding:16px 12px calc(24px + env(safe-area-inset-bottom));margin:0 auto}.title{text-align:center;letter-spacing:.04em;margin:4px 0 12px;font-size:1.5rem}.notice{border:1px solid var(--rec);background:var(--rec-bg);color:#8a1c13;border-radius:8px;margin:0 0 12px;padding:10px 12px;font-size:.9rem;line-height:1.5}.notice:before{content:"⚠ "}.board{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;display:grid}.slot{flex-direction:column;gap:6px;display:flex}button{font:inherit;color:inherit;border:2px solid var(--border);background:var(--surface);cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent;border-radius:10px}button:disabled{cursor:not-allowed;opacity:.45}button:focus-visible{outline:3px solid var(--accent);outline-offset:2px}.rec{flex-direction:column;justify-content:center;align-items:center;gap:4px;min-height:84px;padding:10px 4px;display:flex}.rec-label{font-size:1.05rem;font-weight:700}.rec-status{color:var(--muted);font-variant-numeric:tabular-nums;font-size:.8rem}.play{min-height:44px;padding:6px 4px;font-size:.95rem}.slot[data-state=recorded] .rec,.slot[data-state=playing] .rec{border-color:var(--done);background:var(--done-bg)}.slot[data-state=recorded] .rec-status,.slot[data-state=playing] .rec-status{color:var(--done)}.slot[data-state=acquiring] .rec,.slot[data-state=saving] .rec{border-style:dashed;border-color:var(--rec);opacity:1}.slot[data-state=recording] .rec{border-color:var(--rec);background:var(--rec);color:#fff;animation:1.2s ease-in-out infinite pulse}.slot[data-state=recording] .rec-status{color:#fff;font-size:.9rem;font-weight:700}.slot[data-state=playing] .play{border-color:var(--accent);background:var(--play-bg);font-weight:700}@keyframes pulse{50%{box-shadow:0 0 0 4px #d92d2040}}@media (prefers-reduced-motion:reduce){.slot[data-state=recording] .rec{animation:none}}.rec-date{color:var(--muted);font-variant-numeric:tabular-nums;font-size:.68rem;line-height:1.2}.rec-date:empty{display:none}.panel{border:1px solid var(--border);background:var(--surface);border-radius:10px;margin-top:16px;padding:12px 14px}.panel-row{justify-content:space-between;align-items:baseline;font-weight:700;display:flex}.panel-row output{font-variant-numeric:tabular-nums}.panel input[type=range]{width:100%;height:32px;accent-color:var(--accent);margin:10px 0 8px}.meter{background:#e4e7eb;border-radius:5px;height:10px;overflow:hidden}.meter-bar{background:var(--done);width:0;height:100%;transition:width 60ms linear}.meter-bar.clip{background:var(--rec)}.hint{color:var(--muted);margin:8px 0 0;font-size:.78rem;line-height:1.5}.reset{border-color:var(--rec);width:100%;min-height:48px;color:var(--rec);margin-top:16px;font-weight:700;display:block}.dialog{width:min(92vw,380px);color:var(--text);border:none;border-radius:14px;padding:20px;box-shadow:0 12px 40px #00000040}.dialog::backdrop{background:#0f172a80}.dialog-message{white-space:pre-line;margin:0 0 18px;line-height:1.6}.dialog-actions{gap:10px;display:flex}.dialog-actions button{flex:1;min-height:48px;font-weight:700}.dialog-ok{border-color:var(--rec);background:var(--rec);color:#fff}.footnote{text-align:center;color:var(--muted);margin:16px 0 0;font-size:.9rem}@media (width<=360px){.board{gap:6px}.rec{min-height:76px}.rec-label{font-size:.95rem}.rec-status{font-size:.72rem}}
