:root { color-scheme: dark; font-family: Arial, sans-serif; background: #09090b; color: #fafafa; }
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
nav { display: flex; justify-content: space-between; padding: 28px 8%; align-items: center; gap: 24px; }
.logo { font-size: 22px; font-weight: bold; white-space: nowrap; }
.links { display: flex; flex-wrap: wrap; gap: 16px 24px; }
.links a { color: #a1a1aa; }
.links a[aria-current], a:hover { color: #fafafa; }
main { max-width: 1400px; margin: 54px auto 80px; padding: 0 24px; }
header { margin-bottom: 32px; }
.eyebrow { font-size: 12px; letter-spacing: 2px; }
h1 { font-size: clamp(28px, 4vw, 42px); letter-spacing: -1px; margin: 12px 0; }
h2 { font-size: 18px; margin: 0 0 20px; }
p { color: #a1a1aa; line-height: 1.7; }
.workspace { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 4fr); gap: 24px; align-items: start; }
.panel { border: 1px solid #27272a; border-radius: 12px; padding: 24px; background: #111113; min-width: 0; }
.tabs { display: flex; gap: 8px; border-bottom: 1px solid #27272a; margin-bottom: 24px; padding-bottom: 16px; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; border: 1px solid #52525b; background: transparent; color: #fafafa; border-radius: 8px; padding: 12px 18px; }
button:hover:not(:disabled) { border-color: #fafafa; }
button:disabled { opacity: .45; cursor: not-allowed; }
button[aria-selected="true"], .primary { background: #fafafa; color: #09090b; border-color: #fafafa; }
:focus-visible { outline: 2px solid #a5b4fc; outline-offset: 4px; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
label { display: flex; flex-direction: column; gap: 9px; font-size: 14px; margin-bottom: 20px; min-width: 0; }
textarea, select, input:not([type="checkbox"]) { width: 100%; background: #09090b; color: #fafafa; border: 1px solid #3f3f46; padding: 12px; border-radius: 7px; min-width: 0; }
textarea { resize: vertical; line-height: 1.5; }
.row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 16px; }
.checkbox { flex-direction: row; align-items: center; }
.checkbox input { width: 17px; height: 17px; accent-color: #fafafa; }
details { border-top: 1px solid #27272a; padding-top: 18px; }
summary { cursor: pointer; margin-bottom: 20px; font-size: 14px; }
.hint { font-size: 13px; margin-top: 0; }
.actions { display: flex; gap: 12px; margin-top: 8px; }
.actions .primary { flex: 1; }
.reference-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.reference-grid label { font-size: 12px; }
.reference-grid input { font-size: 11px; padding: 8px; }
.reference-preview { width: 100%; height: 180px; object-fit: contain; background: #09090b; border-radius: 6px; }
.remove { padding: 6px; font-size: 12px; }
.results { min-height: 620px; }
#status { font-size: 14px; overflow-wrap: anywhere; }
#status.error { color: #fca5a5; }
progress { width: 100%; height: 7px; accent-color: #a5b4fc; margin-bottom: 20px; }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.gallery figure { margin: 0; min-width: 0; }
.gallery img { width: 100%; display: block; border-radius: 8px; background: #09090b; }
.gallery figcaption { margin: 12px 0 20px; }
.gallery a.download { font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.empty { grid-column: 1 / -1; text-align: center; padding: 140px 12px; font-size: 14px; }
footer { text-align: center; color: #71717a; padding: 40px 20px; }
[hidden] { display: none !important; }
@media (max-width: 900px) { .workspace { grid-template-columns: 1fr; } .results { min-height: 360px; } .empty { padding: 70px 12px; } }
@media (max-width: 600px) { nav { align-items: flex-start; flex-direction: column; padding: 24px; } main { margin-top: 30px; padding: 0 16px; } .panel { padding: 18px; } .row { grid-template-columns: 1fr; gap: 0; } .reference-grid { grid-template-columns: 1fr; } .reference-preview { height: 150px; } .gallery { grid-template-columns: 1fr; } }
