:root { color-scheme: light; font-family: Inter, "Noto Sans TC", system-ui, sans-serif; background: #f5f6f2; color: #161917; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
.app { width: min(100% - 32px, 980px); margin: 0 auto; padding: 72px 0; }
header { margin-bottom: 40px; }
.eyebrow { margin: 0 0 8px; color: #667267; font-size: .73rem; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(2.2rem, 5vw, 4.5rem); letter-spacing: -.07em; line-height: .95; }
.subtitle { margin: 14px 0 0; color: #59605a; }
.controls { display: grid; grid-template-columns: 1fr 1.3fr; gap: 9px 18px; align-items: center; padding: 20px; border: 1px solid #dbe0d9; border-radius: 16px; background: #fff; }
label { font-size: .9rem; font-weight: 650; }
select, button { border: 1px solid #cad2c9; border-radius: 9px; background: #fff; color: inherit; font: inherit; padding: 11px 12px; }
select { width: 100%; }
.hint { grid-column: 2; margin: -3px 0 5px; color: #697169; font-size: .78rem; }
.upload { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 54px; padding: 12px 14px; border: 1px dashed #aab4aa; border-radius: 10px; cursor: pointer; }
.upload:hover { background: #f6faf4; border-color: #728b70; }
.upload strong { max-width: 60%; overflow: hidden; color: #4b6449; font-size: .8rem; text-overflow: ellipsis; white-space: nowrap; }
.upload input { position: absolute; inline-size: 1px; block-size: 1px; opacity: 0; }
.workspace { display: grid; grid-template-columns: 1.5fr 1fr; gap: 20px; margin-top: 20px; }
.photo-panel, .result-panel { min-height: 320px; border-radius: 16px; background: #fff; }
.photo-panel { display: grid; place-items: center; overflow: hidden; border: 1px solid #dbe0d9; }
.photo-panel img { display: block; width: 100%; height: 100%; max-height: 520px; object-fit: contain; background: #eef1ed; }
#emptyPreview { color: #7d857d; font-size: .9rem; }
.result-panel { display: flex; flex-direction: column; padding: 28px; background: #1e2a20; color: #f6faf4; }
.result-panel .eyebrow { color: #b7c9b5; }
.plate { margin: 20px 0 12px; font-family: ui-monospace, monospace; font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 800; letter-spacing: .06em; overflow-wrap: anywhere; }
.status { margin: 0; color: #c8d3c6; font-size: .88rem; line-height: 1.55; }
button { margin-top: auto; border: 0; background: #c5e18d; cursor: pointer; font-weight: 750; }
button:disabled, select:disabled { cursor: not-allowed; opacity: .55; }
button:not(:disabled):hover { background: #d9f3a6; }
@media (max-width: 650px) { .app { padding: 40px 0; } .controls, .workspace { grid-template-columns: 1fr; } .hint { grid-column: 1; } .photo-panel, .result-panel { min-height: 250px; } }
