:root { color-scheme: dark; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #dedfe3; background: #191b20; font-size: 13px; --muted: #969aa7; --line: #373a43; --accent: #c2e7a1; }
* { box-sizing: border-box; }
body { margin: 0; height: 100vh; display: flex; flex-direction: column; min-width: 780px; }
button, input { font: inherit; }
button { cursor: pointer; color: #d7dae2; background: #30333c; border: 1px solid #424650; border-radius: 5px; padding: 8px 11px; white-space: nowrap; }
button:hover:not(:disabled) { background: #3c414b; border-color: #677361; }
button:disabled { opacity: .35; cursor: default; }
button:focus-visible, input:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.primary { background: var(--accent); color: #223119; border-color: var(--accent); font-weight: 650; }
.primary:hover:not(:disabled) { background: #d5f4bb; }
.topbar { min-height: 72px; padding: 15px 22px; display: flex; align-items: center; gap: 24px; border-bottom: 1px solid var(--line); background: #24262d; }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-icon { display: grid; place-items: center; background: #36432f; border: 1px solid #7f9f69; border-radius: 9px; color: var(--accent); font: 700 25px Georgia, serif; width: 38px; height: 38px; }
h1 { margin: 0 0 4px; font-size: 16px; font-weight: 650; letter-spacing: .04em; }
.brand div > span { font-size: 9px; color: #a0a592; letter-spacing: .13em; }
.document-state { color: var(--muted); font-size: 12px; }
.top-actions { display: flex; gap: 8px; margin-left: auto; }
kbd { font: inherit; font-size: 10px; color: var(--muted); margin-left: 6px; }
.top-actions .primary span { margin-left: 16px; }
.workflow { height: 43px; flex-shrink: 0; display: flex; align-items: center; gap: 22px; padding: 0 22px; font-size: 11px; background: #202229; border-bottom: 1px solid var(--line); }
.workflow b { color: #9daf8e; margin-right: 8px; font-weight: 500; }
.workflow i { color: #5c606b; font-style: normal; }
.workflow small { margin-left: auto; color: var(--muted); font-size: 11px; }
main { display: grid; grid-template-columns: 215px minmax(320px, 1fr) 264px; flex: 1; min-height: 0; }
aside { background: #262930; min-height: 0; overflow: auto; }
.assets-panel { padding: 18px 14px; border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin-bottom: 18px; }
h2 { font-size: 12px; font-weight: 650; margin: 0; }
.badge { font-size: 10px; color: #b0b7bc; background: #383d46; padding: 3px 6px; border-radius: 4px; }
.import-button { width: 100%; border: 1px dashed #59644f; background: #30372d; color: #c4d9b4; padding: 10px; }
.muted { color: var(--muted); font-size: 11px; line-height: 1.6; margin: 9px 0 17px; }
#card-list { display: flex; flex-direction: column; gap: 5px; overflow: auto; flex: 1; min-height: 80px; }
.card-item { display: flex; align-items: center; gap: 10px; padding: 8px; border: 1px solid transparent; background: transparent; text-align: left; width: 100%; }
.card-item[aria-current="true"] { background: #3a4434; border-color: #778e64; }
.card-item canvas { width: 55px; height: 37px; object-fit: contain; border-radius: 3px; flex-shrink: 0; background: #202329; }
.card-item div { overflow: hidden; }
.card-item strong, .card-item small { display: block; overflow: hidden; text-overflow: ellipsis; }
.card-item strong { font-size: 12px; font-weight: 500; }
.card-item small { font-size: 10px; color: var(--muted); margin-top: 5px; }
.asset-actions { display: flex; gap: 7px; padding-top: 14px; }
.asset-actions button:first-child { flex: 1; }
.text-button { background: none; border: 0; color: #c1d5b2; padding: 6px 0; font-size: 11px; }
#load-current { margin-top: 8px; }
.handoff-note { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 14px; }
.handoff-note span { color: #b0b7a9; font-size: 11px; }
.handoff-note p { margin: 9px 0 0; color: #969c9f; font-size: 11px; line-height: 1.8; }
.workspace { min-height: 0; min-width: 0; display: flex; flex-direction: column; }
.toolbar { display: flex; align-items: center; padding: 8px 12px; gap: 10px; background: #2a2d35; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.tool-group { display: flex; gap: 3px; }
.tool-group button { border-color: transparent; background: transparent; padding: 7px 9px; }
.tool-group button[aria-pressed="true"] { color: var(--accent); background: #3a4534; border-color: #667957; }
.history { border-left: 1px solid #434751; padding-left: 9px; }
.history button { font-size: 18px; padding: 1px 8px; }
.zoom-tools { display: flex; align-items: center; gap: 5px; margin-left: auto; }
.zoom-tools button { background: none; border-color: transparent; padding: 6px; font-size: 11px; }
.zoom-tools output { min-width: 40px; text-align: center; font-variant-numeric: tabular-nums; font-size: 11px; color: #b7bdc7; }
.canvas-caption { height: 32px; display: flex; align-items: center; justify-content: space-between; padding: 0 18px; font-size: 10px; color: #9c9fac; }
#viewport { flex: 1; min-height: 160px; position: relative; overflow: hidden; background: #1b1d23; }
#stage { display: block; width: 100%; height: 100%; touch-action: none; outline-offset: -2px; }
#empty-state { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; }
[hidden] { display: none !important; }
#empty-state .empty-icon { width: 70px; height: 70px; border: 1px solid #4a5143; background: #2b3229; border-radius: 17px; color: #b2c69f; display: grid; place-items: center; font-size: 34px; margin-bottom: 24px; }
#empty-state h2 { font-size: 20px; font-weight: 500; }
#empty-state p { font-size: 12px; color: var(--muted); margin: 14px 0 24px; }
#empty-state button { pointer-events: auto; padding: 10px 26px; }
#empty-state small { margin-top: 20px; color: #777f8a; font-size: 11px; }
#drop-hint { position: absolute; inset: 14px; border: 2px dashed var(--accent); background: #283322e8; display: grid; place-items: center; color: var(--accent); font-size: 19px; pointer-events: none; }
.canvas-help { padding: 11px; text-align: center; color: #9298a1; font-size: 10px; }
.filmstrip { height: 150px; flex-shrink: 0; border-top: 1px solid var(--line); padding: 13px 17px; background: #22252b; }
.filmstrip-heading { display: flex; justify-content: space-between; font-size: 11px; margin-bottom: 12px; }
.filmstrip-heading small { color: var(--muted); font-size: 10px; }
#preview-list { display: flex; gap: 16px; overflow-x: auto; padding: 3px; }
.preview-item { border: 1px solid transparent; background: transparent; padding: 4px; border-radius: 4px; }
.preview-item[aria-current="true"] { border-color: #8ca577; background: #32382e; }
.preview-item canvas { display: block; width: 106px; height: 73px; }
.preview-item span { display: block; text-align: center; font-size: 9px; color: #a5acb1; margin-top: 5px; max-width: 106px; overflow: hidden; text-overflow: ellipsis; }
.properties { border-left: 1px solid var(--line); padding: 18px 17px; }
fieldset { padding: 0; margin: 0; border: 0; min-width: 0; }
label { display: block; font-size: 11px; color: #aeb3bf; margin-bottom: 12px; }
input[type="text"], input[type="number"] { display: block; width: 100%; background: #1e2027; border: 1px solid #3c414c; border-radius: 4px; color: #e2e5eb; margin-top: 7px; padding: 7px 9px; font-size: 12px; min-width: 0; }
input:disabled { opacity: .4; }
.address { font: 9px ui-monospace, monospace; margin-top: -3px; color: #8eaa78; overflow-wrap: anywhere; }
.section-heading { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); margin: 18px 0 14px; padding-top: 15px; min-height: 29px; }
h3 { font-size: 11px; margin: 0; font-weight: 600; }
.section-heading > span { font-size: 10px; color: var(--muted); }
.section-heading .text-button { padding: 0; font-size: 10px; }
.source-info { font-size: 10px; line-height: 1.65; color: #8e959f; overflow-wrap: anywhere; margin: -3px 0 12px; }
#replace-source { margin: 0 0 13px; }
.fields-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.fields-grid label { margin-bottom: 9px; }
.button-pair { display: flex; gap: 8px; margin-top: 3px; }
.button-pair button { flex: 1; font-size: 11px; padding: 7px; }
.scale-field { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.scale-field > div { display: flex; gap: 5px; align-items: center; width: 95px; }
.scale-field input { margin-top: 0; }
.toggle { display: flex; align-items: center; gap: 7px; font-size: 10px; }
.toggle input { accent-color: #b7d69c; margin: 0; }
.toggle span { margin-left: auto; color: #747d89; font-size: 9px; }
.wide-button { width: 100%; margin-top: 8px; font-size: 11px; }
.delivery-info { margin-top: 20px; color: #a0a7b1; font-size: 10px; line-height: 1.8; }
summary { cursor: pointer; }
footer { height: 32px; flex-shrink: 0; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 8px; padding: 0 16px; background: #252830; font-size: 10px; color: #a0a8b2; }
.status-dot { width: 5px; height: 5px; border-radius: 100%; background: #a8c58e; flex-shrink: 0; }
#status { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#status.error { color: #ffb29d; }
#selection-info { margin-left: auto; white-space: nowrap; font-size: 9px; }
body.busy main { pointer-events: none; opacity: .7; }
@media (max-width: 1150px) { main { grid-template-columns: 180px minmax(320px, 1fr) 238px; } .document-state, .top-actions kbd { display: none; } .toolbar kbd { display: none; } .topbar { padding: 12px 16px; } .workflow { gap: 12px; } }
@media (max-width: 920px) { main { grid-template-columns: 150px minmax(320px, 1fr) 225px; } .assets-panel { padding: 15px 9px; } .properties { padding: 15px 12px; } .workflow small, .handoff-note, #selection-info { display: none; } .card-item { gap: 6px; padding: 5px; } .card-item canvas { width: 36px; height: 26px; } .toolbar { gap: 5px; padding: 6px; } .history { padding-left: 3px; } .top-actions { gap: 5px; } }
