:root { --bg:#f7f7f3; --paper:#fff; --ink:#20302b; --muted:#52645d; --line:#dce5de; --accent:#245c4c; --soft:#e9f2ea; --warm:#f7f3e7; --danger:#8d3229; font-family:"Work Sans","Segoe UI",sans-serif; color:var(--ink); background:var(--bg); }
* { box-sizing:border-box; }
[hidden] { display:none !important; }
body { margin:0; }
button,input,textarea,select { font:inherit; }
button,a,label[for="audio-file"],summary { -webkit-tap-highlight-color:transparent; }
button { cursor:pointer; }
button:disabled { opacity:.62; cursor:wait; }
a { color:inherit; text-decoration:none; }
:focus-visible { outline:3px solid #b17738; outline-offset:3px; }
.shell { display:grid; grid-template-columns:236px 1fr; min-height:100vh; }
.sidebar { background:#f0f3ed; border-right:1px solid var(--line); padding:33px 19px 20px; display:flex; flex-direction:column; gap:29px; }
.brand { display:flex; align-items:center; gap:12px; font-size:1.52rem; font-weight:750; letter-spacing:-.05em; padding:0 10px; }
.mark { display:flex; gap:3px; justify-content:center; align-items:center; width:38px; height:38px; background:var(--accent); border-radius:12px; }
.mark i { width:2.5px; height:11px; background:#fafcf7; border-radius:3px; }
.mark i:nth-child(2),.mark i:nth-child(4) { height:17px; }.mark i:nth-child(3) { height:23px; }
.products { display:grid; gap:5px; padding:6px; border:1px solid var(--line); border-radius:12px; }
.products button { text-align:left; padding:9px 11px; display:flex; justify-content:space-between; align-items:center; gap:4px; }
.products small { font-size:.72rem; color:var(--muted); }
.products button,.modes button,.tabs button { border:0; color:var(--ink); background:transparent; border-radius:7px; }
.products button[aria-pressed="true"],.modes button[aria-pressed="true"],.tabs button[aria-pressed="true"] { background:var(--paper); box-shadow:0 1px 3px #12301e14; font-weight:650; }
nav { display:grid; gap:3px; }
nav a { padding:11px 13px; display:flex; align-items:center; gap:11px; border-radius:8px; color:var(--muted); }
nav a[aria-current="page"] { color:var(--accent); background:#ddece0; font-weight:650; }
nav a:hover,.products button:hover { background:var(--soft); }
nav a > span:first-child { font-size:1.2rem; width:20px; }
.count { margin-left:auto; font-size:.8rem; }
.sidebar-end { margin-top:auto; padding:10px; display:flex; align-items:center; gap:8px; color:var(--muted); font-size:.76rem; }
.indicator { width:7px; height:7px; background:#629977; border-radius:50%; }
main { min-width:0; max-width:1420px; width:100%; margin:0 auto; display:flex; flex-direction:column; padding:0 clamp(20px,4.6vw,68px); }
.masthead { min-height:76px; display:flex; align-items:center; justify-content:space-between; gap:12px; border-bottom:1px solid var(--line); color:var(--muted); font-size:.88rem; }
.balance { background:var(--paper); color:var(--accent); border:1px solid var(--line); border-radius:999px; padding:8px 13px; font-weight:650; }
.page { padding:34px 0 42px; }
.intro { margin-bottom:28px; }
.intro.compact { margin-top:16px; }
.eyebrow { color:var(--accent); font-size:.81rem; font-weight:700; letter-spacing:.06em; margin:0 0 9px; }
h1 { font-family:"Instrument Serif",Georgia,serif; font-weight:400; font-size:clamp(2.5rem,5vw,4.4rem); margin:0; letter-spacing:-.06em; line-height:.99; overflow-wrap:anywhere; }
h2 { margin:0; font-size:1.06rem; letter-spacing:-.018em; }
p { line-height:1.55; }
.subtitle { color:var(--muted); margin:.8rem 0 0; }
.work-grid,.account-grid { display:grid; grid-template-columns:minmax(0,1.7fr) minmax(245px,1fr); gap:17px; align-items:start; }
.panel { min-width:0; background:var(--paper); border:1px solid var(--line); border-radius:16px; padding:23px; }
.panel-head { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.pill { background:var(--soft); color:var(--accent); border-radius:30px; padding:5px 10px; font-size:.8rem; font-weight:650; }
.pill.live { background:#fbe9e5; color:#89352e; }
.timer { text-align:center; font-size:clamp(3.2rem,6.5vw,5.2rem); line-height:1.05; font-variant-numeric:tabular-nums; letter-spacing:-.075em; margin:32px 0 12px; }
.wave { display:flex; gap:5px; height:48px; align-items:center; justify-content:center; margin:0 auto 22px; max-width:100%; overflow:hidden; }
.wave i { display:block; width:3px; height:var(--height); background:#afc9bc; border-radius:4px; flex:0 0 3px; }
.wave.live i { background:#579881; transform:scaleY(var(--level,.12)); transition:transform .13s linear; }
.consent { font-size:.88rem; line-height:1.45; display:flex; align-items:flex-start; gap:9px; color:var(--muted); margin:12px 0 16px; }
.consent input { flex:0 0 auto; margin:.17em 0 0; width:16px; height:16px; accent-color:var(--accent); }
.capture-actions,.detail-actions { display:flex; flex-wrap:wrap; gap:8px; }
.primary,.secondary,.text-button,.quiet-danger,.link-button { display:inline-flex; align-items:center; justify-content:center; gap:8px; border-radius:8px; padding:10px 14px; font-weight:650; font-size:.88rem; min-height:42px; }
.primary { background:var(--accent); color:#fff; border:1px solid var(--accent); }
.primary:hover { background:#194638; }
.secondary { background:var(--paper); color:var(--ink); border:1px solid var(--line); }
.secondary:hover { background:var(--soft); }
.dot { display:block; width:9px; height:9px; background:#f8e9db; border-radius:50%; }
.text-button,.quiet-danger,.link-button { background:transparent; color:var(--accent); border:0; padding:7px 0; }
.text-button:hover,.link-button:hover { text-decoration:underline; }
.quiet-danger { color:var(--danger); padding:7px 10px; }
.file-line { display:flex; align-items:center; flex-wrap:wrap; gap:8px 14px; margin-top:8px; }
.file-line span { font-size:.77rem; color:var(--muted); }
.link-button { cursor:pointer; }
.workflow { background:#f4f6ed; }
.workflow ol { list-style:none; margin:19px 0 13px; padding:0; display:grid; gap:16px; }
.workflow li { display:flex; gap:10px; font-size:.9rem; }
.workflow li > span { font-size:.8rem; color:var(--accent); width:24px; height:24px; flex:0 0 24px; border:1px solid #c9d9cd; border-radius:50%; display:grid; place-items:center; }
.workflow p { color:var(--muted); font-size:.86rem; margin:.27rem 0 0; }
.workflow > p { margin-top:12px; }
.modes,.tabs { display:flex; flex-wrap:wrap; gap:5px; background:#f0f3ee; padding:5px; border-radius:9px; }
.modes { margin-top:16px; }
.modes button,.tabs button { padding:9px 12px; }
footer { margin-top:auto; display:flex; align-items:center; justify-content:space-between; border-top:1px solid var(--line); color:var(--muted); padding:11px 0; font-size:.85rem; }
.footer-links { display:flex; justify-content:flex-end; flex-wrap:wrap; gap:0 12px; }
.notice { border-radius:8px; background:var(--warm); color:#564524; font-size:.89rem; padding:10px 13px; }
.notice.error { color:var(--danger); background:#fbeee9; }
.records { padding:0; list-style:none; display:grid; gap:8px; margin:16px 0 0; }
.records button { display:flex; gap:12px; justify-content:space-between; text-align:left; width:100%; padding:13px 15px; border:1px solid var(--line); background:var(--paper); color:var(--ink); border-radius:10px; }
.records button:hover { border-color:var(--accent); }
.records small { color:var(--muted); display:block; margin-top:4px; }
.search-label,.account-panel label:not(.consent) { display:block; color:var(--muted); font-size:.84rem; margin-bottom:5px; }
input:not([type="checkbox"]):not([type="file"]), textarea { border:1px solid var(--line); border-radius:7px; background:#fff; color:var(--ink); padding:10px; width:100%; min-width:0; }
.account-panel form { display:grid; gap:8px; margin:17px 0 0; }
.account-panel form .primary { justify-self:start; margin-top:8px; }
.account-panel details { margin-top:20px; color:var(--muted); font-size:.87rem; }
.account-panel h2 { overflow-wrap:anywhere; }
.credit-value { font-size:2rem; color:var(--accent); margin-top:13px; letter-spacing:-.045em; }
.account-panel .detail-actions { margin-top:14px; }
.detail audio { width:100%; margin-bottom:15px; }
.detail .tabs { margin:13px 0 8px; }
.detail textarea { resize:vertical; min-height:180px; line-height:1.65; margin-bottom:8px; }
.sr-only { position:absolute; width:1px; height:1px; margin:-1px; clip:rect(0,0,0,0); white-space:nowrap; overflow:hidden; }
dialog { max-width: min(550px, calc(100% - 30px)); background:var(--paper); color:var(--ink); border:1px solid var(--line); border-radius:14px; padding:23px; }
dialog::backdrop { background:#162a22aa; }
@media (max-width:850px) { .shell { grid-template-columns:185px minmax(0,1fr); }.sidebar { padding:24px 11px 14px; }.products button { display:block; }.products small { display:block; }.work-grid,.account-grid { grid-template-columns:minmax(0,1fr); } }
@media (max-width:700px) { .shell { display:block; }.sidebar { padding:12px 15px; gap:9px; border:0; border-bottom:1px solid var(--line); }.brand { font-size:1.22rem; padding:0; }.mark { width:34px; height:34px; }.products { grid-template-columns:1fr 1fr; }.products button { display:flex; }.sidebar nav { grid-template-columns:repeat(3,1fr); }.sidebar nav a { justify-content:center; padding:8px 4px; font-size:.84rem; gap:4px; }.sidebar nav a > span:first-child { width:auto; }.sidebar-end { display:none; }.masthead { min-height:48px; }.page { padding:25px 0 32px; }.panel { padding:16px; } }
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { transition:none !important; } }
