:root { color-scheme: dark; font: 12px "Segoe UI", system-ui, sans-serif; color: #c6d3d9; background: #10181c; }
* { box-sizing: border-box; }
body { margin: 0; }
header { height: 58px; display: flex; align-items: center; gap: 16px; padding: 0 20px; background: #18242b; border-bottom: 1px solid #34444d; }
.brand { letter-spacing: 2px; color: #a1f4d8; font-size: 16px; font-weight: 700; margin-right: auto; }
.brand span { letter-spacing: 0; color: #c6d3d9; font-size: 13px; font-weight: 400; margin-left: 14px; }
#account-name { color: #a1f4d8; }
a { color: #a1f4d8; cursor: pointer; }
button, input, select { font: inherit; }
button { background: #24323a; color: #d6e1e5; border: 1px solid #34444d; border-radius: 4px; padding: 8px 11px; cursor: pointer; }
button:hover { background: #354952; border-color: #65838d; }
button.active, button.primary, button[aria-pressed="true"] { background: #22483f; border-color: #4eab92; color: #a1f4d8; }
button:disabled { opacity: .4; cursor: default; }
:focus-visible { outline: 2px solid #65ecd0; outline-offset: 2px; }
input, select { background: #131f25; border: 1px solid #34454d; color: #d9e5eb; border-radius: 4px; padding: 8px; min-width: 0; width: 100%; }
input[type="checkbox"] { accent-color: #6de0bf; width: auto; }
label { display: flex; flex-direction: column; gap: 7px; margin-bottom: 14px; line-height: 1.4; }
main { display: grid; grid-template-columns: minmax(360px, 420px) minmax(340px, 1fr) minmax(280px, 330px); height: calc(100vh - 88px); gap: 1px; background: #34444d; }
.panel { background: #18242b; padding: 18px; overflow: auto; }
h1 { font-size: 16px; font-weight: 600; margin: 0; }
h2 { font-size: 12px; letter-spacing: .5px; margin: 20px 0 12px; color: #dce7eb; }
p { line-height: 1.6; }
.muted { color: #91a5ae; line-height: 1.6; }
.section-heading { display: flex; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.section-heading h2 { margin: 10px 0; }
.tag { padding: 4px 7px; background: #26373d; color: #a2b9c2; border: 1px solid #3a4d55; border-radius: 3px; font-size: 10px; white-space: nowrap; }
#preview { position: relative; width: 100%; height: 420px; border: 1px solid #34444d; background: radial-gradient(ellipse at 50% 65%, #29433f, #121e24 75%); border-radius: 5px; overflow: hidden; margin-bottom: 12px; }
#preview canvas { display: block; }
.preview-annotations, .preview-annotations svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.part-link { fill: none; stroke: #8bb5b3; stroke-width: 1; opacity: .6; }
.part-link.active { stroke: #a1f4d8; opacity: 1; stroke-width: 1.5; }
.part-highlight { fill: #a1f4d817; stroke: #a1f4d8; stroke-width: 1; stroke-linejoin: round; }
.part-label { position: absolute; left: 0; top: 0; padding: 4px 6px; min-height: 33px; text-align: left; pointer-events: auto; background: #15252cee; font-size: 10px; }
.part-label strong, .part-label span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.part-label strong { font-weight: 600; }
.part-label span { font-size: 9px; color: #a6b9c0; margin-top: 2px; }
.part-label.hovered { border-color: #a1f4d8; background: #25493f; }
.labels-hidden .part-label, .labels-hidden .part-link { display: none; }
.danger { color: #ffc2ba; border-color: #98574f; background: #462b2c; }
.danger:hover { background: #633639; border-color: #e08a7c; }
dialog { max-width: 420px; width: calc(100% - 32px); padding: 24px; background: #18242b; color: #d9e5eb; border: 1px solid #50646d; border-radius: 8px; box-shadow: 0 20px 80px #0008; }
dialog::backdrop { background: #071116bb; }
dialog .row { justify-content: flex-end; margin-top: 20px; }
.row { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.row label { flex: 1; }
.animation-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin-bottom: 12px; }
.slot-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.tabs { display: flex; border-bottom: 1px solid #34444d; margin-bottom: 14px; }
.tabs button { border-radius: 4px 4px 0 0; min-width: 110px; }
.pickers { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 6px; margin: 12px 0 22px; }
.pickers button { min-height: 44px; white-space: normal; }
.pickers button small { display: block; color: #91a5ae; font-size: 10px; margin-top: 3px; }
.asset-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; align-content: start; }
.asset-card { min-height: 148px; display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 8px; white-space: normal; overflow-wrap: anywhere; }
.asset-card img { width: 94px; height: 94px; object-fit: contain; background: repeating-conic-gradient(#182329 0% 25%, #25343a 0% 50%) 50% / 16px 16px; border-radius: 3px; }
.asset-card small { color: #91a5ae; font-size: 10px; }
.details { border: 1px solid #3a4d55; padding: 14px; margin-top: 20px; border-radius: 4px; }
.file-drop { padding: 14px; border: 1px dashed #50646d; border-radius: 4px; margin: 18px 0; }
.file-drop input { padding: 5px; font-size: 11px; }
#upload-image { display: block; max-width: 100%; max-height: 150px; object-fit: contain; margin: 12px auto; background: repeating-conic-gradient(#182329 0% 25%, #25343a 0% 50%) 50% / 16px 16px; }
.properties { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.properties label.checkbox { grid-column: span 2; flex-direction: row; align-items: center; }
.gate { position: fixed; inset: 58px 0 30px; z-index: 5; background: #10181cf5; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 24px; text-align: center; }
.gate p { max-width: 430px; }
.error { color: #ffaca4; }
footer { height: 30px; background: #10181c; border-top: 1px solid #34444d; padding: 6px 18px; }
[hidden] { display: none !important; }
@media (max-width: 1100px) { main { grid-template-columns: 310px minmax(320px, 1fr); height: auto; min-height: calc(100vh - 88px); } .upload-panel { grid-column: span 2; } .panel { overflow: visible; } .upload-panel form { max-width: 600px; } }
@media (max-width: 680px) { main { display: flex; flex-direction: column; } header { padding: 10px; gap: 8px; height: auto; min-height: 58px; flex-wrap: wrap; } .brand { width: 100%; } #preview { max-width: 360px; } .panel { border-bottom: 1px solid #34444d; } footer { height: auto; min-height: 30px; } }
