/* Hallmark v2 | Midnight | Workbench | App screen | Live media with a score and threshold */
/* Critique: keep the score beside the preview and leave space for the user's footage. */
/* waive 28b: video preview uses the first frame of the selected file. */
:root {
  --ground: #0e1622;
  --panel: #172333;
  --stage: #101b29;
  --edge: #35465c;
  --text: #eff5ff;
  --secondary: #a9bcd2;
  --accent: #8dcaff;
  --font: system-ui, "PingFang SC", sans-serif;
}
* { box-sizing: border-box; }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--ground); color: var(--text); font: 1rem/1.55 var(--font); }
main { max-width: 1080px; margin: auto; padding: clamp(24px, 6vw, 80px) 24px; }
header { margin-bottom: 32px; }
h1 { font-size: clamp(2.5rem, 6vw, 4.75rem); font-weight: 600; line-height: 1.1; margin: 0; text-wrap: balance; overflow-wrap: break-word; min-width: 0; }
p { margin: 0.65rem 0; color: var(--secondary); }
.workspace { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 320px); gap: 16px; }
.workspace section { border: 1px solid var(--edge); padding: 20px; background: var(--panel); color: var(--text); min-width: 0; }
.stage { display: grid; place-items: center; background: var(--stage); aspect-ratio: 16 / 10; margin-bottom: 16px; }
.stage img, .stage video { width: 100%; max-height: 420px; object-fit: contain; }
label { display: block; margin-bottom: 8px; }
input { max-width: 100%; color: var(--text); font: inherit; accent-color: var(--accent); }
input::file-selector-button { background: var(--accent); color: var(--ground); border: 0; padding: 8px 12px; margin-right: 12px; font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
#verdict { color: var(--accent); font-size: 2.5rem; font-weight: 650; margin: 0 0 20px; }
output { float: right; }
meter, input[type="range"] { width: 100%; margin: 0 0 16px; }
.note { border-top: 1px solid var(--edge); padding-top: 12px; font-size: 0.9rem; }
@media (max-width: 700px) { .workspace { grid-template-columns: minmax(0, 1fr); } }
input:disabled { background: var(--stage); color: var(--secondary); cursor: default; }
input::file-selector-button:active { outline: 2px solid var(--text); }
