:root{--bg: #f7f7f5;--surface: #ffffff;--text: #1d1d1f;--muted: #6b6b70;--border: #e2e2e0;--accent: #3a5bd9;--grid: #ececea;--grid-strong: #d0d0cc;--flat: #2f6fd6;--flat-soft: #a9c4f0;--in-tune: #b9b8b2;--sharp: #e0712c;--sharp-soft: #f3c19d;--good: #0ca30c;--unstable: #9a9aa0;--contour: #1d1d1f;--danger: #c2372b;--tabbar-h: 60px;--gutter: 16px;--radius: 14px;font-family:Inter,system-ui,-apple-system,Segoe UI,sans-serif;line-height:1.45;color:var(--text);background:var(--bg);color-scheme:light dark;-webkit-tap-highlight-color:transparent}@media (prefers-color-scheme: dark){:root:not([data-theme=light]){--bg: #141416;--surface: #1d1d21;--text: #ececf0;--muted: #9a9aa3;--border: #2e2e34;--accent: #7d97ff;--grid: #26262b;--grid-strong: #3a3a41;--flat: #5b93f0;--flat-soft: #2c4570;--in-tune: #5c5b57;--sharp: #d9722f;--sharp-soft: #6a4027;--good: #3fbf3f;--unstable: #77777f;--contour: #ececf0;--danger: #ff6b5e}}*{box-sizing:border-box}html{-webkit-text-size-adjust:100%}body{margin:0;background:var(--bg);min-width:320px;overscroll-behavior-y:none}a{color:var(--accent);text-decoration:none}h1{font-size:1.5rem;margin:0 0 .75rem}h2{font-size:1.25rem}button,.btn{font:inherit;font-weight:500;border:1px solid var(--border);background:var(--surface);color:var(--text);min-height:44px;padding:.5rem 1rem;border-radius:10px;cursor:pointer;touch-action:manipulation;display:inline-flex;align-items:center;justify-content:center;gap:.4rem}button:hover:not(:disabled){border-color:var(--accent)}button:disabled{opacity:.5;cursor:default}button.primary{background:var(--accent);color:#fff;border-color:var(--accent)}button.danger{color:var(--danger)}button.icon{min-width:44px;padding:.5rem}input,select{font:inherit;font-size:16px;color:var(--text);background:var(--surface);border:1px solid var(--border);border-radius:8px;min-height:44px;padding:.4rem .6rem}.muted{color:var(--muted)}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:1rem}.row{display:flex;gap:.6rem;align-items:center;flex-wrap:wrap}.stack{display:grid;gap:1rem}.flat{color:var(--flat)}.sharp{color:var(--sharp)}.in-tune{color:var(--good)}.unstable{color:var(--unstable)}.notice{background:color-mix(in srgb,var(--sharp) 12%,var(--surface));border:1px solid color-mix(in srgb,var(--sharp) 40%,transparent);border-radius:var(--radius);padding:.75rem 1rem;margin-bottom:1rem}.layout{max-width:1100px;margin:0 auto;padding:calc(env(safe-area-inset-top) + 12px) max(var(--gutter),env(safe-area-inset-right)) calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 24px) max(var(--gutter),env(safe-area-inset-left))}.topbar{display:flex;align-items:center;margin-bottom:.75rem}.brand{font-weight:700;color:var(--text);font-size:1.1rem}.tabbar{position:fixed;z-index:20;left:0;right:0;bottom:0;display:flex;justify-content:space-around;height:calc(var(--tabbar-h) + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom);background:color-mix(in srgb,var(--surface) 92%,transparent);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border-top:1px solid var(--border)}.tabbar a{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;color:var(--muted);font-size:.72rem;font-weight:500}.tabbar a svg{width:24px;height:24px}.tabbar a.active{color:var(--accent)}@media (min-width: 761px){.layout{padding-bottom:48px}.topbar{padding:.75rem 0;border-bottom:1px solid var(--border);margin-bottom:1.5rem}.tabbar{position:static;height:auto;padding:0;background:none;-webkit-backdrop-filter:none;backdrop-filter:none;border:0;margin-left:auto;gap:1.5rem;justify-content:flex-end}.tabbar a{flex:none;flex-direction:row;gap:6px;font-size:.95rem}.tabbar a svg{width:18px;height:18px}.topbar .tabbar{display:flex}}.segmented{display:flex;background:var(--grid);border-radius:10px;padding:3px;gap:3px}.segmented button{flex:1;min-height:38px;border:0;background:transparent;color:var(--muted)}.segmented button[aria-pressed=true]{background:var(--surface);color:var(--text);box-shadow:0 1px 3px #0000001f}.notes-table{width:100%;border-collapse:collapse;font-size:.95rem;font-variant-numeric:tabular-nums}.notes-table th,.notes-table td{text-align:left;padding:.6rem .5rem;border-bottom:1px solid var(--border)}.notes-table th{position:sticky;top:0;background:var(--surface);color:var(--muted);font-weight:500;font-size:.85rem}.notes-table tbody tr{cursor:pointer}.notes-table tr[aria-current=true]{background:var(--grid)}.notes-scroll{max-height:360px;overflow:auto}@media (max-width: 760px){.notes-scroll{max-height:none}}.meter{position:relative;height:64px;border-radius:12px;background:var(--grid);margin:.5rem 0 1.9rem}.meter-band{position:absolute;top:0;bottom:0;background:color-mix(in srgb,var(--good) 25%,transparent)}.meter-tick{position:absolute;bottom:-1.5rem;transform:translate(-50%);font-size:.75rem;color:var(--muted)}.meter-tick:first-of-type{transform:none}.meter-tick:last-of-type{transform:translate(-100%)}.meter-tick:before{content:"";position:absolute;left:50%;bottom:1.5rem;width:1px;height:64px;background:var(--grid-strong)}.meter-needle{position:absolute;top:-6px;bottom:-6px;width:6px;margin-left:-3px;border-radius:3px;background:currentColor;transition:left 60ms linear}.meter-tick:first-of-type:before,.meter-tick:last-of-type:before{display:none}.tuner{display:flex;flex-direction:column;min-height:calc(100dvh - var(--tabbar-h) - 120px)}.tuner-display{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:1rem 0}.tuner-note{font-size:clamp(5rem,28vw,9rem);font-weight:700;line-height:1;font-variant-numeric:tabular-nums;letter-spacing:-.02em}.tuner-cents{font-size:1.6rem;font-weight:600;min-height:2.2rem;margin-top:.25rem}.tuner-hz{min-height:1.4rem}.tuner-actions{display:grid;gap:.5rem;justify-items:center;margin-top:1rem;text-align:center}.tuner-start{width:100%;max-width:360px;min-height:56px;font-size:1.1rem;border-radius:28px}@media (min-width: 761px){.tuner{min-height:0}}.record{display:grid;gap:1rem}.record-stage{display:grid;justify-items:center;gap:.75rem;text-align:center;padding:1.5rem 0 1rem}.record-time{font-size:clamp(3rem,16vw,4.5rem);font-weight:700;font-variant-numeric:tabular-nums;line-height:1}.record-btn{width:88px;height:88px;border-radius:50%;padding:0;border:4px solid var(--border);background:var(--surface);margin-top:.5rem}.record-btn-inner{width:60px;height:60px;border-radius:50%;background:var(--danger);transition:all .15s}.record-btn.is-recording .record-btn-inner{width:32px;height:32px;border-radius:8px}.record-progress{width:min(100%,320px)}.record-import{display:flex;align-items:center;justify-content:space-between;gap:1rem;cursor:pointer;position:relative}.record-import input{position:absolute;top:0;right:0;bottom:0;left:0;opacity:0;cursor:pointer}.takes-list{list-style:none;margin:0;padding:0;display:grid;gap:.6rem}.take-item{display:grid;grid-template-columns:1fr auto;gap:.1rem 1rem;color:var(--text);padding:.85rem 1rem}.take-item-name{font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.take-item-meta{grid-column:1;font-size:.9rem}.take-item-chevron{grid-column:2;grid-row:1 / span 3;align-self:center;font-size:1.6rem;color:var(--muted)}.take-item:active{background:var(--grid)}.roll-toolbar{margin-bottom:.5rem;font-size:.85rem}.roll-toolbar button{min-width:44px;padding:.25rem .7rem}.roll-hint{flex:1;min-width:12rem}.roll-legend{gap:.75rem}.roll-swatch{display:inline-block;width:12px;height:12px;border-radius:3px}.roll-canvas-wrap{position:relative}.roll-canvas{width:100%;display:block;touch-action:none;cursor:grab;background:var(--surface);border:1px solid var(--border);border-radius:12px}.roll-overlay{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;pointer-events:none}.roll-tip{position:absolute;pointer-events:none;background:var(--surface);border:1px solid var(--border);border-radius:8px;padding:.35rem .6rem;font-size:.85rem;box-shadow:0 4px 14px #00000026;white-space:nowrap;z-index:2}@media (max-width: 760px){.roll-hint{display:none}.roll-legend{width:100%;order:5;font-size:.8rem;gap:.6rem}.roll{margin:0 calc(-1 * var(--gutter))}.roll-toolbar{padding:0 var(--gutter)}.roll-canvas{border-radius:0;border-left:0;border-right:0}}.inspector-head{display:flex;align-items:center;gap:.5rem}.inspector-title{flex:1;display:flex;justify-content:space-between;align-items:baseline;gap:.5rem;flex-wrap:wrap;min-width:0}.inspector-title h2{margin:0}.inspector-idx{font-size:.85rem;font-weight:400}.inspector-dev{font-size:1.4rem;font-weight:700}.inspector-verdict{margin:.25rem 0 .75rem}.inspector-stats{display:grid;grid-template-columns:repeat(2,auto 1fr);gap:.25rem .75rem;margin:.75rem 0;font-variant-numeric:tabular-nums}.inspector-stats dd{margin:0}.inspector-actions{display:grid;grid-template-columns:1fr 1fr;gap:.5rem}.sheet{position:fixed;z-index:25;left:0;right:0;bottom:calc(var(--tabbar-h) + env(safe-area-inset-bottom));max-height:62dvh;overflow:auto;background:var(--surface);border-top:1px solid var(--border);border-radius:18px 18px 0 0;padding:.25rem var(--gutter) 1rem;box-shadow:0 -10px 30px #0000002e;animation:sheet-in .18s ease-out}.sheet .inspector-dev{font-size:1.2rem}.sheet .inspector-verdict{margin-bottom:.5rem}.sheet-grip{width:40px;height:4px;border-radius:2px;background:var(--grid-strong);margin:6px auto 8px}@keyframes sheet-in{0%{transform:translateY(40px);opacity:0}}@media (max-width: 380px){.inspector-stats{grid-template-columns:auto 1fr}}.summary{display:grid;gap:1rem}.tiles{display:grid;gap:1rem;grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}.tile-value{font-size:1.8rem;font-weight:700;font-variant-numeric:tabular-nums}.tile-sub{font-size:.85rem}.charts{display:grid;gap:1rem;grid-template-columns:repeat(auto-fit,minmax(min(100%,420px),1fr))}.charts>.card{min-width:0}.chart{margin:0}.chart figcaption{margin-bottom:.5rem}.take-header{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.5rem .75rem;align-items:center}.take-title input{width:100%;font-size:1.3rem;font-weight:650;border:0;background:transparent;padding:0;min-height:0}.take-meta{font-size:.85rem}.take-actions{display:flex;gap:.5rem}.take-note{grid-column:1 / -1;margin:0}.menu{position:relative}.menu summary{list-style:none;font-weight:700}.menu summary::-webkit-details-marker{display:none}.menu-list{position:absolute;right:0;top:calc(100% + 6px);z-index:30;display:grid;gap:2px;padding:6px;min-width:250px;box-shadow:0 10px 30px #0003}.menu-list button{justify-content:flex-start;border:0;background:transparent}.menu-list button:hover:not(:disabled){background:var(--grid)}.linklike{min-height:0;padding:0;border:0;background:none;color:var(--accent)}.take{display:grid;gap:1rem}.take.has-sheet{padding-bottom:46dvh}.take-grid{display:grid;gap:1rem;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start}.card.flush{padding:.25rem 0}.settings{display:grid;gap:0;max-width:520px;padding:.25rem 1rem}.settings label{display:flex;justify-content:space-between;align-items:center;gap:1rem;min-height:56px;border-bottom:1px solid var(--border)}.settings label:last-of-type{border-bottom:0}.settings input,.settings select{width:9.5rem;max-width:50%}.settings-reset{margin-top:1rem}
