:root {
  color-scheme: light;
  --ink: #17211b;
  --muted: #667068;
  --paper: #f6f3eb;
  --panel: #fffdf8;
  --line: #ddd8ca;
  --green: #174b3b;
  --orange: #d46a3a;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: radial-gradient(circle at 10% 0%, #fff 0, transparent 35%), var(--paper); min-height: 100vh; }
main { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 52px 0 64px; }
header { display: flex; justify-content: space-between; align-items: end; gap: 28px; margin-bottom: 34px; }
.eyebrow { color: var(--orange); font-size: 12px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; margin: 0 0 8px; }
h1 { font-family: Georgia, serif; font-size: clamp(42px, 7vw, 76px); letter-spacing: -.055em; line-height: .95; margin: 0; font-weight: 500; }
h1 span { color: var(--green); font-style: italic; }
.lede { color: var(--muted); font-size: 17px; max-width: 700px; margin: 18px 0 0; }
.model-link { color: var(--green); text-decoration: none; border-bottom: 1px solid var(--green); padding-bottom: 3px; white-space: nowrap; font-weight: 700; }
.workspace { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr); gap: 18px; }
.panel { background: color-mix(in srgb, var(--panel) 94%, transparent); border: 1px solid var(--line); border-radius: 22px; padding: 24px; box-shadow: 0 18px 60px rgba(40, 44, 35, .08); }
.panel-heading { display: flex; justify-content: space-between; align-items: start; gap: 12px; margin-bottom: 20px; }
.panel-heading > div { display: flex; align-items: center; gap: 10px; }
.panel-heading span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--green); color: white; font-size: 11px; font-weight: 800; }
h2 { font-family: Georgia, serif; font-weight: 500; margin: 0; font-size: 25px; }
.panel-heading p { color: var(--muted); font-size: 12px; margin: 5px 0 0; text-align: right; }
.drop-zone { display: grid; place-items: center; min-height: 238px; border: 1.5px dashed #aaa797; border-radius: 16px; background: #f0eee6; cursor: pointer; overflow: hidden; position: relative; transition: .18s ease; }
.drop-zone:hover, .drop-zone.dragging { background: #ebe9df; border-color: var(--green); }
.drop-zone input { position: absolute; opacity: 0; pointer-events: none; }
.drop-zone img { max-width: 100%; max-height: 280px; object-fit: contain; display: none; }
#drop-copy { display: grid; gap: 4px; text-align: center; }
#drop-copy strong { font-size: 17px; }
#drop-copy small { color: var(--muted); }
.controls { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
label > span { display: block; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 7px; }
select { width: 100%; border: 1px solid var(--line); border-radius: 11px; background: white; color: var(--ink); padding: 12px; font: inherit; }
.route-row { display: flex; justify-content: space-between; align-items: center; min-height: 39px; gap: 10px; font-size: 12px; color: var(--muted); }
.status { display: inline-flex; align-items: center; gap: 7px; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #b3ab96; }
.status.validated::before { background: #2e8b65; }
.status.experimental::before { background: #d86542; }
button { width: 100%; border: 0; border-radius: 12px; padding: 14px; font: inherit; font-weight: 800; color: white; background: var(--green); cursor: pointer; transition: .18s ease; }
button:hover:not(:disabled) { transform: translateY(-1px); background: #0f3e30; }
button:disabled { opacity: .48; cursor: not-allowed; }
.privacy { color: var(--muted); font-size: 11px; line-height: 1.5; margin: 13px 2px 0; }
.result-panel { display: flex; flex-direction: column; min-height: 530px; }
.output { display: flex; align-items: center; justify-content: center; min-height: 230px; padding: 28px; border: 1px solid var(--line); border-radius: 16px; background: white; font-size: clamp(24px, 4vw, 46px); line-height: 1.5; text-align: center; overflow-wrap: anywhere; white-space: pre-wrap; }
.confidence { display: flex; justify-content: space-between; padding: 17px 3px; border-bottom: 1px solid var(--line); color: var(--muted); }
.confidence strong { color: var(--ink); }
.details { min-height: 48px; padding: 13px 3px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.notice { margin-top: auto; padding: 15px; border-radius: 13px; background: #f7e6db; color: #71391f; }
.notice strong { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.notice p { margin: 6px 0 0; font-size: 12px; line-height: 1.5; }
@media (max-width: 780px) { header { display: block; } .model-link { display: inline-block; margin-top: 20px; } .workspace { grid-template-columns: 1fr; } .controls { grid-template-columns: 1fr; } main { padding-top: 30px; } }
