:root {
  color-scheme: light;
  font: 16px/1.45 system-ui, sans-serif;
  color: #172c32;
  background: #f4f5f0;
  --accent: #14464c;
  --line: #dbe1db;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
main { width: min(100% - 36px, 560px); margin: 0 auto 56px; }
header, .row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
header { min-height: 76px; border-bottom: 1px solid var(--line); }
.brand { font-size: .83rem; font-weight: 800; letter-spacing: .15em; }
h1, h2, p { margin: 0; }
h1 { font: 500 clamp(2.8rem, 10vw, 4.3rem)/1.07 Georgia, serif; letter-spacing: -.055em; margin: 28px 0 24px; }
h2 { font-size: 1.06rem; }
.panel { margin: 0 0 14px; padding: 20px; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.capture, form { display: grid; gap: 12px; }
form { margin-top: 16px; }
button, input { min-height: 46px; font: inherit; }
button { border: 1px solid var(--line); border-radius: 12px; padding: 9px 15px; font-weight: 650; color: var(--accent); background: #fff; cursor: pointer; }
button.primary { min-height: 54px; background: var(--accent); color: #fff; border-color: var(--accent); }
button.quiet { background: transparent; border-color: transparent; }
button[aria-pressed="true"] { background: #deeee9; border-color: var(--accent); }
button:disabled { opacity: .55; cursor: default; }
button:focus-visible, input:focus-visible { outline: 3px solid #679cad; outline-offset: 2px; }
input { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; }
label input { display: block; margin-top: 6px; }
#preview { display: block; width: 100%; max-height: 330px; object-fit: contain; background: #edf0eb; border-radius: 13px; }
.feedback { display: flex; flex-wrap: wrap; gap: 7px; }
.muted, #progress, .runs small { color: #506368; }
.error { margin-bottom: 14px; padding: 12px; background: #fae8e5; color: #812c25; border-radius: 12px; }
ul { margin: 12px 0; padding-left: 22px; }
.runs { list-style: none; padding: 0; margin-bottom: 0; }
.runs li { padding: 10px 0; border-top: 1px solid var(--line); }
.runs small { display: block; margin-top: 2px; }
.runs .run-title { min-height: 44px; padding: 0; border: 0; text-align: left; }
#history-empty { margin-top: 10px; }
