:root{color-scheme:dark;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;background:#101218;color:#eef0f5;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased}*{box-sizing:border-box}body{min-width:320px;min-height:100vh;margin:0;background:radial-gradient(ellipse at 68% 28%,rgba(52,70,105,.15),transparent 42%),#101218}button{font:inherit}.app{display:grid;grid-template-rows:72px minmax(0,1fr);min-height:100vh}.topbar{display:flex;align-items:center;justify-content:space-between;padding:0 34px;border-bottom:1px solid #252833;background:#11131adb}.brand{display:flex;align-items:center;gap:12px}.brand-mark{display:grid;width:34px;height:34px;place-items:center;border:1px solid #3b465b;border-radius:10px;color:#a7c4ff;background:linear-gradient(145deg,#293449,#191f2b)}.brand-name{font-size:15px;font-weight:650;letter-spacing:.01em}.brand-caption{margin-top:2px;color:#777e8d;font-size:11px}.topbar-note{color:#828999;font-size:12px}.workspace{display:grid;grid-template-columns:300px minmax(0,1fr);gap:20px;width:100%;max-width:1600px;min-height:0;margin:0 auto;padding:22px}.sidebar{display:flex;flex-direction:column;gap:20px;padding:9px 5px 9px 2px}.eyebrow{margin:0 0 8px;color:#8e98aa;font-size:10px;font-weight:700;letter-spacing:.12em;text-transform:uppercase}h1{margin:0;font-size:22px;font-weight:620;letter-spacing:-.035em}.intro{margin:8px 0 0;color:#9299a8;font-size:13px;line-height:1.55}.upload-card,.info-card{border:1px solid #2a2e3a;border-radius:12px;background:#171a22}.upload-card{padding:14px}.drop-zone{display:flex;min-height:174px;flex-direction:column;align-items:center;justify-content:center;padding:20px 12px;border:1px dashed #41495a;border-radius:9px;text-align:center;transition:border-color .18s ease,background .18s ease}.drop-zone.is-dragging{border-color:#9abaff;background:#658fde1a}.upload-icon{display:grid;width:40px;height:40px;margin-bottom:13px;place-items:center;border:1px solid #343c4c;border-radius:11px;color:#b6caff;background:#202735}.drop-title{margin:0;font-size:13px;font-weight:580}.drop-subtitle{margin:5px 0 14px;color:#858d9d;font-size:11px}.primary-button,.icon-button{display:inline-flex;align-items:center;justify-content:center;border:1px solid transparent;border-radius:7px;color:#f5f7fb;background:#526fa5;cursor:pointer;transition:background .16s ease,border-color .16s ease}.primary-button{min-height:35px;padding:0 13px;font-size:11px;font-weight:600}.primary-button:hover{background:#6484bd}.primary-button:disabled{cursor:wait;opacity:.6}button:focus-visible{outline:2px solid #a7c4ff;outline-offset:3px}.format-list{margin:12px 2px 0;color:#747d8d;font-size:10px;line-height:1.6}.info-card{padding:16px}.card-heading{margin:0 0 15px;font-size:12px;font-weight:620}.detail-row{display:flex;justify-content:space-between;gap:12px;padding:9px 0;border-top:1px solid #292d38;font-size:11px}.detail-label{color:#838b99}.detail-value{overflow:hidden;max-width:165px;color:#d7dbe4;text-align:right;text-overflow:ellipsis;white-space:nowrap}.status-line{display:flex;align-items:flex-start;gap:8px;margin:14px 0 0;color:#96a0b0;font-size:11px;line-height:1.5}.status-dot{width:7px;height:7px;flex:0 0 7px;margin-top:4px;border-radius:50%;background:#8290a7}.status-line.is-error{color:#ff9a9a}.status-line.is-error .status-dot{background:#ef7777}.reference-image-copy{margin:-5px 0 11px;color:#858d9d;font-size:10px;line-height:1.45}.reference-image-actions{display:flex;gap:7px}.reference-image-actions .primary-button{flex:1}.reference-clear-button{min-width:62px;border:1px solid #414755;border-radius:7px;color:#c1c8d4;background:#202530;font-size:11px;cursor:pointer}.reference-clear-button:hover:not(:disabled){border-color:#63708a;background:#2b3240}.reference-clear-button:disabled{cursor:not-allowed;opacity:.48}.reference-image-preview{display:grid;min-height:80px;max-height:220px;margin-top:10px;place-items:center;overflow:hidden;border:1px solid #343946;border-radius:7px;background:#fff}.reference-image-preview[hidden]{display:none}.reference-image-open-button{display:grid;width:100%;min-height:80px;max-height:220px;padding:0;place-items:center;border:0;background:transparent;cursor:zoom-in}.reference-image-open-button:focus-visible{outline:2px solid #8daeff;outline-offset:-2px}#reference-image-canvas{display:block;max-width:100%;max-height:220px;width:auto;height:auto}.reference-image-dialog{box-sizing:border-box;width:min(92vw,1120px);max-width:92vw;max-height:90vh;padding:18px;overflow:auto;border:1px solid #414755;border-radius:12px;color:#e8ebf1;background:#171b24}.reference-image-dialog::backdrop{background:#05080ed1;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}.reference-image-dialog-header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:12px}.reference-image-dialog-header h2{margin:0;font-size:15px}.reference-image-dialog-close{flex:0 0 auto;padding:7px 11px;border:1px solid #414755;border-radius:7px;color:#d3d8e2;background:#202530;cursor:pointer}.reference-image-dialog-close:hover{border-color:#63708a;background:#2b3240}.reference-image-large-wrap{display:grid;min-height:100px;max-height:calc(90vh - 105px);place-items:center;overflow:auto;background:#fff}#reference-image-large-canvas{display:block;max-width:100%;max-height:calc(90vh - 140px);width:auto;height:auto;cursor:crosshair}.reference-image-dialog-hint{margin:11px 0 0;color:#a3acbb;font-size:12px}.reference-image-status{margin:8px 0 0;color:#858d9d;font-size:10px;line-height:1.4;overflow-wrap:anywhere}.reference-image-status.is-error{color:#ff9a9a}@media(max-width:600px){#reference-image-large-canvas{width:min(120vw,520px);max-width:none;max-height:none}}.help-note{margin-top:auto;padding:14px 13px;border:1px solid #272b35;border-radius:9px;color:#858d9b;font-size:11px;line-height:1.55}.help-note strong{color:#c4cad5;font-weight:560}.stage{position:relative;min-width:0;min-height:560px;overflow:hidden;border:1px solid #2a2e3a;border-radius:13px;background:radial-gradient(ellipse at 50% 42%,rgba(42,52,71,.2),transparent 54%),#12151c}#viewer{position:absolute;top:0;right:0;bottom:0;left:0}#viewer canvas{display:block;width:100%;height:100%}.stage-top,.stage-bottom{position:absolute;z-index:1;display:flex;align-items:center;justify-content:space-between;pointer-events:none}.stage-top{top:17px;right:18px;left:18px}.stage-bottom{right:18px;bottom:17px;left:18px}.stage-label{padding:7px 10px;border:1px solid rgba(58,65,79,.75);border-radius:7px;color:#a9b0bf;background:#171a22d1;font-size:10px;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.stage-actions{display:flex;gap:7px;pointer-events:auto}.default-light-button{display:inline-flex;min-height:32px;align-items:center;gap:7px;padding:0 9px;border:1px solid #343946;border-radius:7px;color:#e4d7b4;background:#191c25e6;font-size:10px;cursor:pointer;transition:border-color .16s ease,background .16s ease}.default-light-button:hover{border-color:#687087;background:#252a35}.default-light-button[aria-pressed=false]{color:#9da5b3}.default-light-button:focus-visible{outline:2px solid #a7c4ff;outline-offset:3px}.transform-toolbar{position:absolute;z-index:2;top:61px;left:18px;display:flex;flex-wrap:wrap;align-items:center;gap:6px;max-width:calc(100% - 36px);pointer-events:auto}.tool-mode-group{display:flex;gap:3px;padding:4px;border:1px solid #343946;border-radius:9px;background:#191c25e6;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.tool-button{display:inline-flex;min-height:30px;align-items:center;justify-content:center;gap:6px;padding:0 9px;border:1px solid transparent;border-radius:6px;color:#aeb6c5;background:transparent;font-size:11px;cursor:pointer}.tool-button:hover:not(:disabled){color:#edf1fa;background:#303644}.tool-button.is-active{border-color:#536d9c;color:#e8efff;background:#344563}.tool-button:disabled{cursor:not-allowed;opacity:.48}.transform-toolbar .icon-button:disabled{cursor:not-allowed;opacity:.48}.lighting-panel{position:absolute;z-index:3;top:108px;right:18px;width:232px;padding:13px;border:1px solid #343946;border-radius:10px;color:#dfe3eb;background:#191c25f0;box-shadow:0 12px 32px #0000003d;font-size:11px;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);pointer-events:auto}.lighting-panel[hidden]{display:none}.paint-panel{max-height:calc(100% - 130px);overflow:auto}.performance-panel{right:auto;left:18px;width:250px;max-width:calc(100% - 36px);max-height:calc(100% - 130px);overflow:auto}.performance-metrics{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px 10px;margin:0}.performance-metrics dt{color:#9da6b6}.performance-metrics dd{margin:0;color:#e1e7f2;font-variant-numeric:tabular-nums;text-align:right}.performance-note{margin:10px 0 0;color:#818b9d;font-size:9px;line-height:1.4}#viewer.is-painting canvas{cursor:none}#viewer .brush-cursor{position:absolute;z-index:2;transform:translate(-50%,-50%);border:1px solid rgba(255,255,255,.95);border-radius:50%;box-shadow:0 0 0 1px #000c,inset 0 0 0 1px #00000059;pointer-events:none}#viewer .brush-cursor[hidden]{display:none}.lighting-heading{margin:0 0 4px;color:#eef0f5;font-size:12px;font-weight:620}.lighting-help{margin:0 0 11px;color:#8e98a9;font-size:10px;line-height:1.4}.light-select-label,.intensity-label,.color-label{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px;color:#9da6b6}.lighting-panel select,.light-position input{min-width:0;height:29px;border:1px solid #414755;border-radius:5px;color:#e2e6ef;background:#1d222d;font:inherit}.lighting-panel select{width:142px;padding:0 7px}.light-position{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:3px 0 12px}.light-position label{display:grid;gap:5px;color:#8e98a9;font-size:10px}.light-position input{width:100%;padding:0 5px}.intensity-label{margin-bottom:4px}#light-intensity{width:100%;height:14px;margin:0 0 10px;accent-color:#9cbaff}.color-label{margin-bottom:12px}#light-color{width:37px;height:25px;padding:2px;border:1px solid #414755;border-radius:5px;background:#1d222d;cursor:pointer}.remove-light-button{width:100%;min-height:29px;border:1px solid #49414a;border-radius:6px;color:#dcaeb2;background:#2b2329;font:inherit;cursor:pointer}.remove-light-button:hover{border-color:#87545c;background:#38282f}.paint-color-row,.paint-brush-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px;color:#9da6b6}#paint-color{width:38px;height:26px;padding:2px;border:1px solid #414755;border-radius:5px;background:#1d222d;cursor:pointer}.color-harmony{margin:-2px 0 11px;padding:8px;border:1px solid #343946;border-radius:7px;background:#14171fbf}.color-harmony-heading{margin:0 0 5px;color:#aeb6c5;font-size:10px;font-weight:600}.color-harmony-row{display:grid;grid-template-columns:76px minmax(0,1fr);align-items:center;gap:5px;min-height:25px}.color-harmony-label{color:#8e98a9;font-size:9px}.color-harmony-swatches{display:flex;flex-wrap:wrap;gap:5px}.color-harmony-swatch{width:20px;height:20px;padding:0;border:1px solid rgba(235,239,248,.42);border-radius:5px;box-shadow:inset 0 0 0 1px #00000026;cursor:pointer}.color-harmony-swatch:hover,.color-harmony-swatch[aria-pressed=true]{outline:2px solid #e8efff;outline-offset:1px}.color-harmony-swatch:focus-visible{outline:2px solid #a7c4ff;outline-offset:2px}.army-painter-matches{margin:0 0 11px;padding:8px;border:1px solid #343946;border-radius:7px;background:#14171fbf}.army-painter-heading{margin:0 0 5px;color:#aeb6c5;font-size:10px;font-weight:600}.army-painter-status{margin:0 0 5px;color:#8e98a9;font-size:9px}.army-painter-range-filter{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:7px;margin:0 0 6px;color:#aeb6c5;font-size:9px}.army-painter-range-filter select{min-width:0;width:100%;padding:5px 6px;border:1px solid #414755;border-radius:5px;color:#dfe3eb;background:#202530;font:inherit}.army-painter-list{display:grid;gap:4px}.army-painter-match{display:grid;grid-template-columns:19px minmax(0,1fr) auto;align-items:center;gap:6px;width:100%;min-height:34px;padding:4px 5px;border:1px solid #343946;border-radius:5px;color:#dfe3eb;background:#202530;text-align:left;cursor:pointer}.army-painter-match:hover,.army-painter-match[aria-expanded=true]{border-color:#687087;background:#2b3240}.army-painter-chip{width:18px;height:18px;border:1px solid rgba(235,239,248,.45);border-radius:4px}.army-painter-match-copy{display:grid;min-width:0;gap:2px}.army-painter-match-copy strong{overflow:hidden;font-size:9px;font-weight:600;text-overflow:ellipsis;white-space:nowrap}.army-painter-match-copy small,.army-painter-distance{color:#8e98a9;font-size:8px}.army-painter-details{margin-top:7px;padding:7px;border-radius:5px;background:#191d26}.army-painter-details[hidden]{display:none}.army-painter-details dl{display:grid;grid-template-columns:68px minmax(0,1fr);gap:4px 6px;margin:0;font-size:9px}.army-painter-details dt{color:#8e98a9}.army-painter-details dd{min-width:0;margin:0;color:#dfe3eb;overflow-wrap:anywhere}.paint-brush-heading{margin-bottom:3px}#brush-size,#brush-hardness,#paint-contrast,#paint-opacity,#edge-protection{width:100%;height:14px;margin:0 0 11px;accent-color:#9cbaff}.paint-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px}.paint-action-button,.finish-paint-button{min-height:30px;border:1px solid #414755;border-radius:6px;color:#c1c8d4;background:#202530;font:inherit;cursor:pointer}.paint-action-button:hover:not(:disabled),.finish-paint-button:hover{border-color:#63708a;background:#2b3240}.paint-action-button:disabled{cursor:not-allowed;opacity:.48}.finish-paint-button{width:100%;margin-top:8px;color:#dce7ff}.icon-button{width:32px;height:32px;border-color:#343946;color:#adb5c4;background:#191c25e0}.icon-button:hover{border-color:#59647a;color:#eef0f5;background:#252a35}.stage-hint{color:#737c8c;font-size:10px;text-shadow:0 1px 5px #101218}@media(max-width:760px){.app{grid-template-rows:62px minmax(0,1fr)}.topbar{padding:0 18px}.topbar-note{display:none}.workspace{grid-template-columns:1fr;gap:14px;padding:14px}.sidebar{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:0}.sidebar-intro,.help-note{display:none}.upload-card{grid-row:span 2;padding:10px}.drop-zone{min-height:170px}.info-card{padding:13px}.stage{min-height:48vh}}@media(max-width:430px){.sidebar{grid-template-columns:1fr}.upload-card{grid-row:auto}.drop-zone{min-height:150px}.stage{min-height:48vh}}
