:root { color-scheme:light; --ink:#152f32; --muted:#617477; --green:#146b58; --deep:#123e3a; --line:#dce5e5; --paper:#f3f6f7; --mint:#b6f2d9; font-family:system-ui,-apple-system,"Segoe UI","Microsoft YaHei",sans-serif; font-size:16px; }
* { box-sizing:border-box; } body { margin:0; background:var(--paper); color:var(--ink); } button,input,select { font:inherit; } button,a,label,summary { -webkit-tap-highlight-color:transparent; } button { cursor:pointer; } button:disabled { cursor:wait; opacity:.5; } [hidden] { display:none !important; }
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible,.file-button:focus-within { outline:3px solid #119c80; outline-offset:4px; }
.shell { max-width:760px; margin:auto; padding:0 24px calc(108px + env(safe-area-inset-bottom)); }
.topbar { display:flex; align-items:center; justify-content:space-between; padding:22px 0; border-bottom:1px solid var(--line); }
.brand { display:flex; gap:12px; align-items:center; border:0; padding:0; background:none; color:var(--ink); font-size:20px; font-weight:700; letter-spacing:.04em; }
.local-badge { display:flex; gap:7px; align-items:center; font-size:13px; color:var(--green); } .local-badge i { width:7px; height:7px; background:var(--green); border-radius:50%; }
.page-heading { padding:28px 0 22px; } .page-heading p { color:var(--muted); font-size:14px; line-height:1.7; margin:9px 0 0; } .page-heading .eyebrow { font-size:12px; letter-spacing:.16em; color:var(--green); font-weight:700; margin:0 0 6px; }
h1 { font-size:30px; font-weight:650; line-height:1.3; margin:0; } h1:focus { outline:none; } h2 { font-size:18px; margin:0; font-weight:650; } h3 { font-size:16px; }
.panel { border:1px solid var(--line); border-radius:20px; background:white; padding:26px; margin-bottom:18px; box-shadow:0 8px 22px #123e3a03; }
.section-head { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:22px; } .tag { border-radius:30px; background:#eef4f2; color:var(--green); font-size:13px; padding:5px 10px; white-space:nowrap; }
.settings { display:grid; grid-template-columns:1.2fr 1fr; gap:14px; } label { display:block; color:var(--muted); font-size:14px; } select,input { display:block; width:100%; border:1px solid var(--line); background:#f9fbfb; color:var(--ink); border-radius:10px; padding:12px 10px; margin-top:8px; min-height:46px; } .custom-label { margin-top:14px; }
.tuner { margin:23px 0 20px; border-radius:16px; padding:24px 22px 14px; color:white; background:var(--deep); text-align:center; }
.reference { color:#bed4cf; font-size:14px; margin:0 0 7px; } .pitch-note { font-size:88px; font-weight:600; letter-spacing:-.06em; line-height:1.15; min-height:105px; font-variant-numeric:tabular-nums; } .pitch-note span { display:block; font-size:13px; font-weight:400; color:#a7c6be; letter-spacing:.04em; margin:0 0 12px; }
.pitch-detail { display:flex; justify-content:center; gap:19px; align-items:center; margin:12px 0 27px; font-variant-numeric:tabular-nums; font-size:16px; color:#c2dcd4; } .pitch-detail b { color:var(--mint); font-weight:500; }
.gauge { position:relative; height:30px; margin:0 4px; } .gauge-zone { background:#b6f2d924; position:absolute; width:20%; height:100%; left:40%; border-left:1px solid #b6f2d957; border-right:1px solid #b6f2d957; } .gauge-lines { position:absolute; inset:9px 0; background:repeating-linear-gradient(to right,#9fbbb5 0,#9fbbb5 1px,transparent 1px,transparent 10%); } .needle { position:absolute; width:3px; height:38px; top:-4px; left:50%; background:var(--mint); border-radius:3px; transition:left 90ms linear; opacity:.35; } .needle.active { opacity:1; } .gauge-labels { display:flex; justify-content:space-between; margin-top:9px; color:#bed4cf; font-size:13px; } .pitch-hint { min-height:20px; font-size:15px; color:var(--mint); margin:22px 0 8px; }
.record-progress { height:3px; background:#eef2f1; overflow:hidden; border-radius:3px; } #record-fill { display:block; height:100%; background:var(--green); width:0; transition:width .1s; } .timer-row { display:flex; justify-content:space-between; gap:8px; color:var(--muted); font-size:13px; margin:10px 0 20px; font-variant-numeric:tabular-nums; }
.primary { border:0; color:white; background:var(--green); min-height:54px; width:100%; border-radius:12px; font-weight:600; display:flex; align-items:center; justify-content:center; gap:10px; } .primary:hover { background:#0e5949; } .primary.recording { background:#a74336; } .record-dot { width:12px; height:12px; border:2px solid currentColor; border-radius:50%; } .recording .record-dot { border-radius:3px; background:white; }
.text-button,.file-button { background:none; border:0; padding:10px 0; color:var(--green); font-size:14px; font-weight:500; cursor:pointer; min-height:44px; } .file-button { position:relative; overflow:hidden; } .file-button input { position:absolute; inset:0; opacity:0; cursor:pointer; margin:0; } .import-button { background:var(--green); color:white; border-radius:10px; text-align:center; padding:14px; font-size:16px; }
.privacy { text-align:center; font-size:13px; color:var(--muted); line-height:1.7; margin:14px 0 0; } .muted { font-size:14px; line-height:1.7; color:var(--muted); }
.metrics { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; } .metrics span { display:block; color:var(--muted); font-size:13px; margin-bottom:9px; } .metrics strong { font-size:28px; font-weight:600; letter-spacing:-.04em; } #summary-cents { color:var(--green); } #chart { display:block; width:100%; height:210px; margin-top:16px; } .report-message { font-size:15px; line-height:1.8; color:var(--muted); background:#f3f7f6; padding:14px; border-radius:9px; }
.export-actions,.settings-actions { display:flex; gap:10px; flex-wrap:wrap; } .small-button { min-height:44px; border:1px solid var(--line); border-radius:9px; background:white; color:var(--green); padding:9px 14px; font-size:14px; } .small-button:hover { background:#f0f7f4; }
.history .section-head { margin-bottom:16px; } .history-day { font-size:13px; font-weight:500; color:var(--muted); margin:24px 0 7px; } .history-row { display:flex; align-items:center; gap:10px; border-top:1px solid #edf1f0; padding:14px 0; } .history-open { border:0; background:none; padding:0; text-align:left; flex:1; min-width:0; color:var(--ink); font-size:16px; min-height:44px; } .history-open span { display:block; color:var(--muted); font-size:13px; margin-top:6px; line-height:1.6; } .history-delete { border:0; background:none; color:var(--muted); font-size:14px; min-height:44px; padding:8px; }
.current-report { display:flex; width:100%; align-items:center; justify-content:space-between; margin:0 0 18px; border:1px solid #c5e2d8; border-radius:12px; color:var(--green); background:#eaf6f0; padding:16px; text-align:left; font-size:15px; }
.back-button { margin-top:16px; } #view-report .page-heading { padding-top:8px; } .again-button { margin-top:20px; }
.notice,.activity { border:1px solid #c4dfd6; border-radius:12px; padding:16px 20px; color:var(--deep); font-size:14px; line-height:1.7; margin-top:18px; background:#eaf6f0; overflow-wrap:anywhere; } .notice.error { color:#8a362b; background:#fff2ec; border-color:#efd5cc; } .activity { position:sticky; top:12px; z-index:2; box-shadow:0 4px 15px #123e3a14; }
.help { margin:0; font-size:15px; color:var(--muted); border-bottom:1px solid var(--line); padding:13px 0; } .help:last-child { border-bottom:0; padding-bottom:0; } summary { cursor:pointer; padding:6px 0; color:var(--ink); min-height:40px; line-height:1.6; } .help p { line-height:1.9; } #defaults-status:empty { display:none; }
.bottom-nav { position:fixed; z-index:10; left:0; right:0; bottom:0; display:grid; grid-template-columns:repeat(3,1fr); width:100%; max-width:760px; margin:auto; padding:7px 12px calc(7px + env(safe-area-inset-bottom)); border:1px solid var(--line); border-bottom:0; border-radius:20px 20px 0 0; background:#fffffff5; backdrop-filter:blur(14px); box-shadow:0 -5px 22px #123e3a06; }
.bottom-nav button { border:0; border-radius:12px; background:none; color:var(--muted); display:flex; flex-direction:column; align-items:center; gap:5px; padding:8px; min-height:60px; font-size:14px; } .bottom-nav button[aria-current="page"] { color:var(--green); background:#edf6f1; font-weight:650; } .bottom-nav svg { width:23px; height:23px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; } .bottom-nav circle { fill:white; }
dialog { color:var(--ink); background:white; border:1px solid var(--line); border-radius:20px; padding:28px; width:min(460px,calc(100% - 32px)); max-height:85dvh; overflow-y:auto; box-shadow:0 24px 80px #001e3240; } dialog::backdrop { background:#092c326e; backdrop-filter:blur(3px); } dialog h2 { font-size:22px; line-height:1.4; margin:0 0 14px; } dialog p,dialog li { font-size:16px; line-height:1.8; overflow-wrap:anywhere; } dialog p { color:var(--muted); white-space:pre-line; } dialog ul { padding-left:22px; } dialog li { margin-bottom:9px; } dialog[data-kind="error"] h2 { color:#9b392e; } .dialog-actions { display:flex; justify-content:flex-end; gap:12px; margin-top:24px; } .dialog-actions .primary { width:auto; padding:12px 20px; min-height:48px; } .dialog-actions .small-button { min-width:80px; font-size:16px; }
@media(max-width:600px) { .shell { padding-left:16px; padding-right:16px; } .topbar { padding:16px 0; } .brand { font-size:18px; } .page-heading { padding:22px 0 18px; } h1 { font-size:27px; } .panel { padding:20px; border-radius:17px; } .tuner { padding:20px 17px 12px; } .pitch-note { font-size:76px; min-height:91px; } .metrics strong { font-size:25px; } }
@media(max-width:360px) { .shell { padding-left:12px; padding-right:12px; } .panel { padding:16px; } .timer-row { flex-wrap:wrap; } .metrics { gap:7px; } .metrics strong { font-size:23px; } }
@media(prefers-reduced-motion:reduce) { * { transition:none !important; } }

.action-status { padding:12px 14px; margin:12px 0 0; border:1px solid #bfddcf; border-radius:10px; background:#edf8f1; color:#175642; font-size:15px; line-height:1.7; overflow-wrap:anywhere; }
.action-status.error { border-color:#efc9bd; background:#fff2ed; color:#8a362b; }
.secondary-settings { margin-top:14px; }
.toast { position:fixed; z-index:30; left:16px; right:16px; bottom:calc(94px + env(safe-area-inset-bottom)); max-width:680px; max-height:35dvh; overflow:auto; margin:0 auto; display:flex; align-items:flex-start; gap:12px; padding:14px 14px 14px 18px; border-radius:14px; background:#123e3a; color:#fff; box-shadow:0 8px 30px #001e3233; }
.toast span { flex:1; font-size:15px; line-height:1.7; overflow-wrap:anywhere; }
.toast button { flex:none; border:0; background:transparent; color:inherit; width:40px; height:40px; font-size:24px; border-radius:8px; }
.toast.error { background:#82372d; }
