:root { color-scheme: light; font: 16px/1.46 system-ui,sans-serif; background: #f4f2f9; color: #242139; --line: #d9d2e5; --ink: #4c3475; }
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
.shell { width: min(1120px,calc(100% - 40px)); margin-inline: auto; }
header,footer { background: #fff; }
header { border-bottom: 1px solid var(--line); }
.bar { min-height: 65px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; color: #2b2443; font-weight: 790; }
main { padding-block: 35px 44px; }
h1 { margin: 0; font-size: clamp(2.5rem,5.5vw,4rem); line-height: 1.04; letter-spacing: -.057em; }
h2 { font-size: 1.22rem; letter-spacing: -.02em; margin: 0 0 14px; }
.intro { color: #534c68; margin: 9px 0 24px; }
a { color: var(--ink); text-underline-offset: 3px; }
button,select,input { font: inherit; }
button,select,.file-button,.download { padding: .58rem .8rem; border: 1px solid #b9a9d1; border-radius: 6px; color: var(--ink); background: #fff; }
button,.file-button,.download { font-weight: 650; cursor: pointer; }
button:hover:not(:disabled),.file-button:hover,.download:hover { filter: brightness(.95); }
button:focus-visible,select:focus-visible,.file-button:focus-within,a:focus-visible { outline: 3px solid #7a5fa8; outline-offset: 2px; }
button:disabled,.file-button:has(input:disabled) { opacity: .53; cursor: default; }
.primary { background: #4f367e; color: #fff; border-color: #4f367e; }
.file-button { display: inline-block; position: relative; }
.file-button input { position: absolute; inset: 0; opacity: 0; width: 100%; cursor: pointer; }
.workspace { display: grid; grid-template-columns: minmax(0,1.34fr) minmax(0,1fr); gap: 14px; align-items: start; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 11px; padding: 18px; }
.actions,.settings { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.settings label { display: grid; gap: 5px; font-size: .88rem; font-weight: 650; }
.hint,.status { color: #534c68; font-size: .89rem; }
.status:empty { display: none; }
.empty { display: grid; place-items: center; margin: 12px 0 0; padding: 22px; min-height: 140px; background: #f3eff8; color: #534c68; border-radius: 8px; }
#list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
.clip { background: #f8f6fb; border: 1px solid #e0d8eb; border-radius: 8px; padding: 10px 13px; min-width: 0; }
.clip-head { display: flex; justify-content: space-between; gap: 12px; }
.clip-head strong { overflow-wrap: anywhere; }
.clip-head time { color: #534c68; flex-shrink: 0; font-variant-numeric: tabular-nums; }
.clip canvas { width: 100%; height: 40px; display: block; margin: 4px 0; }
.clip button { font-size: .83rem; padding: .35rem .5rem; }
.summary { display: flex; flex-wrap: wrap; gap: 14px; padding: 12px; margin: 14px 0; background: #f3eff8; border-radius: 8px; }
.summary div { flex: 1 0 110px; }
.summary dt { font-size: .8rem; color: #534c68; }
.summary dd { margin: 0; font-weight: 740; font-variant-numeric: tabular-nums; }
#player { width: 100%; margin: 0 0 10px; height: 45px; }
.download { text-decoration: none; }
footer { border-top: 1px solid var(--line); padding-block: 15px; }
footer a + a { margin-left: 14px; }
.policy { max-width: 770px; }
.policy section { margin-bottom: 12px; }
.policy h1 { font-size: 2.1rem; }
@media(max-width: 730px) { .workspace { grid-template-columns: 1fr; } }
@media(max-width: 420px) { .shell { width: calc(100% - 28px); } .panel { padding: 14px; } }
