:root{
  --bg:#0f0f12;
  --panel:#111111;
  --panel2:#1b1b1b;
  --stroke:#30303a;
  --stroke-soft:#24242a;
  --line:var(--stroke-soft);
  --badge:var(--panel2);
  --bar:#1b1b1b;
  --ink:#e8e8ec;
  --muted:#b6b6c0;
  --accent:#6aa3ff;
  --danger:#ff7c7c;
  --shadow:0 8px 28px rgba(0,0,0,.4);
}
*{box-sizing:border-box}
html,body{height:100%}
body{margin:0;background:var(--bg);color:var(--ink);font:14px/1.25 system-ui,-apple-system,Segoe UI,Inter,Roboto,Arial,sans-serif;overflow:hidden}
button,input,select{font:inherit}
button:focus-visible,input:focus-visible,select:focus-visible,.stage:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.app{height:100vh;display:grid;grid-template-rows:auto auto 1fr;min-height:0}
header{padding:10px 12px 0;background:transparent;border:0}
.bar{display:flex;gap:12px;align-items:center;padding:5px 12px;border:1px solid var(--line);border-radius:12px;background:var(--bar);min-height:48px}
.brand{display:flex;align-items:center;gap:10px;min-width:0}
.brandLogo{width:30px;height:30px;flex:0 0 30px;display:block}
.brandName{font-weight:700;letter-spacing:.10em;text-transform:uppercase;font-size:12px;white-space:nowrap}
.brandTag{display:inline-flex;align-items:center;justify-content:center;padding:2px 6px;border:1px solid rgb(112,158,240);border-radius:6px;background:rgba(106,163,255,.10);color:#709ef0;font-size:10px;font-weight:800;line-height:1.2;letter-spacing:.12em;text-transform:uppercase;white-space:nowrap}
.header-chips{display:flex;gap:8px;align-items:center;margin-left:12px;flex-wrap:wrap;min-width:0}
.header-actions{margin-left:auto;display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.btn{display:inline-flex;align-items:center;justify-content:center;background:var(--panel2);color:var(--ink);border:2px solid #525252;padding:8px 10px;border-radius:12px;cursor:pointer;white-space:nowrap;user-select:none}
.btn:hover{border-color:#70707a}
.btn:disabled{opacity:.42;cursor:not-allowed}
.btn.primary{border-color:var(--accent)}
#applyPresetBtn{
  border-color:#6aa3ff;
  background:#111824;
  color:#ffffff;
  font-size:13px;
  font-weight:800;
  box-shadow:0 0 0 1px rgba(106,163,255,0.18),0 0 18px rgba(106,163,255,0.10);
}
.btn.compactBtn{padding:6px 9px;border-radius:10px}
.linkViewsBtn{gap:6px;border-width:1px;color:#b9bbc5}.linkViewsBtn.active{border-color:var(--accent);color:#dce8ff;background:rgba(106,163,255,.08);box-shadow:inset 0 0 0 1px rgba(106,163,255,.08)}.linkViewsIcon{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex:0 0 auto}
.uploadBtn{position:relative}
.input,.numberInput{background:#0f0f12;border:1px solid var(--stroke-soft);color:var(--ink);padding:8px 10px;border-radius:12px;min-width:0}
input[type="number"]{text-align:left}
.numberInput{width:64px;text-align:left;font-variant-numeric:tabular-nums}
.numberInput.compact{width:62px;padding:6px 8px;border-radius:10px}
.smallSelect{min-width:112px}
.chip{padding:3px 6px;border:1px solid var(--stroke-soft);border-radius:999px;background:var(--badge);font-size:11px;color:#bfc3ce;display:inline-flex;align-items:center;white-space:nowrap;max-width:360px;overflow:hidden;text-overflow:ellipsis}
.state{opacity:.78}
.main{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:12px;padding:12px;min-height:0}
.canvasWrap{height:100%;background:var(--panel);border:1px solid var(--stroke);border-radius:16px;padding:14px;display:flex;flex-direction:column;gap:12px;min-height:0;min-width:0}
.toolbar{display:flex;gap:8px;flex-wrap:wrap;align-items:center;border-bottom:1px dashed var(--stroke-soft);padding-bottom:10px}
.previewModeControl{display:flex;align-items:center;gap:7px;padding:3px 4px 3px 8px;border:1px solid var(--stroke-soft);border-radius:11px;background:var(--panel2);white-space:nowrap}
.toolbarLabel{font-size:11px;color:#c4c5cc}
.toolbarControl{display:flex;align-items:center;gap:7px;padding:4px 8px;border:1px solid var(--stroke-soft);border-radius:11px;background:var(--panel2);font-size:11px;color:#c4c5cc;white-space:nowrap}
.toolbarControl input[type="range"]{width:130px}
.unit{font-size:11px;color:var(--muted);margin-left:-3px}
.segmented{display:flex;border:1px solid var(--stroke-soft);background:#151519;padding:3px;border-radius:10px}
.segment{border:0;background:transparent;color:#aeb1ba;padding:6px 9px;border-radius:8px;cursor:pointer;font-size:11px}
.segment.active{background:#0f0f12;color:var(--ink);box-shadow:inset 0 0 0 1px var(--accent)}
.localChip{color:#c8cfdd}
.stage{flex:1;min-height:220px;background:#0d0d11;border:1px solid var(--stroke);border-radius:14px;position:relative;overflow:hidden;overscroll-behavior:contain}
.previewGrid{position:absolute;inset:0;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:1px;background:var(--stroke);min-width:0;min-height:0}
.previewPanel{display:grid;grid-template-rows:auto minmax(0,1fr);min-width:0;min-height:0;background:#101014}
.previewPanelLabel{height:28px;display:flex;align-items:center;padding:0 10px;background:#17171c;color:#b9bbc5;border-bottom:1px solid var(--stroke);font-size:10px;font-weight:750;letter-spacing:.08em;text-transform:uppercase}
.previewViewport{position:relative;overflow:auto;display:grid;place-items:center;min-width:0;min-height:0;overscroll-behavior:contain;cursor:grab;user-select:none;-webkit-user-select:none}
.previewViewport.isPanning{cursor:grabbing}
.previewViewport.isPanning *{cursor:grabbing!important}
.canvasMover{display:inline-block;line-height:0;transform-origin:center center;margin:auto;padding:28px}
#originalCanvas,#inksmithCanvas{display:block;max-width:none;max-height:none;background:transparent;box-shadow:0 10px 34px rgba(0,0,0,.34)}
.stage.mode-original .previewGrid,.stage.mode-inksmith .previewGrid{grid-template-columns:minmax(0,1fr)}
.stage.mode-original .inksmithPanel{display:none}
.stage.mode-inksmith .originalPanel{display:none}
.stage.bg-checker .previewViewport{background-color:#f7f7f7;background-image:linear-gradient(45deg,#e8e8e8 25%,transparent 25%),linear-gradient(-45deg,#e8e8e8 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#e8e8e8 75%),linear-gradient(-45deg,transparent 75%,#e8e8e8 75%);background-size:20px 20px;background-position:0 0,0 10px,10px -10px,-10px 0}
.stage.bg-white .previewViewport{background:#fff}
.stage.bg-black .previewViewport{background:#000}
.stage.bg-gray .previewViewport{background:#777}
.hint{position:absolute;left:0;right:0;bottom:8px;text-align:center;color:#858893;font-size:12px;pointer-events:none;z-index:4;text-shadow:0 1px 4px rgba(0,0,0,.6)}
.dropOverlay{position:absolute;inset:12px;display:none;place-items:center;border:2px dashed var(--accent);border-radius:12px;background:rgba(15,15,18,.82);color:#dce8ff;font-weight:700;letter-spacing:.02em;z-index:5;pointer-events:none}
.stage.dragging .dropOverlay{display:grid}
.note{background:#15151a;border:1px solid var(--stroke-soft);padding:8px 10px;border-radius:10px;color:#d5d5da}
.note.error{border-color:#7d4040;color:#ffd0d0}
.sidebar{width:330px;max-width:330px;background:var(--panel);border:1px solid var(--stroke);border-radius:16px;display:flex;flex-direction:column;min-height:0;overflow:auto}
.panel{padding:12px}
.effect{border:1px solid var(--stroke-soft);border-radius:14px;padding:11px;margin-bottom:12px;background:var(--panel2)}
.effect h4{margin:0;font-size:12px;opacity:.9;text-transform:uppercase;letter-spacing:.04em}
.introCard .eyebrow{font-size:10px;letter-spacing:.13em;color:#80aefc;font-weight:800;margin-bottom:7px}
.introCard h2{font-size:16px;line-height:1.2;margin:0 0 7px}
.introCard p{font-size:12px;color:#b4b5bd;margin:0;line-height:1.45}
.sectionHead{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px}
.switchRow{display:flex;align-items:center;gap:6px;font-size:11px;color:#c5c6ce}
.switchLine{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.controlBlock{padding:9px 0;border-top:1px dashed var(--stroke-soft)}
.controlBlock:first-of-type{border-top:0}
.controlTitle{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin-bottom:3px}
.controlTitle label{font-size:12px;font-weight:650}.controlHint{font-size:10px;color:#8f919b}
.sliderRow{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:7px;align-items:center}
.seedRow{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}.seedInput{width:100%}
.exportMeta{display:flex;gap:6px;flex-wrap:wrap;margin:10px 0}
.exportBtn{width:100%}
.exportStatus{font-size:11px;color:#9ea0aa;line-height:1.35;margin-top:8px;min-height:30px}
.progressTrack{height:5px;background:#101014;border-radius:999px;overflow:hidden;margin-top:8px;border:1px solid #292932}
.progressBar{height:100%;width:0%;background:var(--accent);transition:width .12s linear}
.actionsCard{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.privacyNote{font-size:11px;color:#8e919a;line-height:1.45;padding:2px 6px 10px}
.copyright{margin-top:4px;padding-top:10px;border-top:1px solid #24242a;font-size:11px;color:#777985;text-align:center}
input[type="range"]{-webkit-appearance:none;appearance:none;background:transparent;height:28px;margin:0;cursor:pointer;min-width:0}
input[type="range"]::-webkit-slider-runnable-track{height:6px;background:var(--stroke-soft);border-radius:999px}
input[type="range"]::-moz-range-track{height:6px;background:var(--stroke-soft);border-radius:999px}
input[type="range"]::-webkit-slider-thumb{-webkit-appearance:none;width:18px;height:18px;border-radius:50%;background:var(--accent);border:2px solid var(--badge);margin-top:-6px}
input[type="range"]::-moz-range-thumb{width:18px;height:18px;border-radius:50%;background:var(--accent);border:2px solid var(--badge)}
input[type="range"]:hover::-webkit-slider-thumb{box-shadow:0 0 0 3px rgba(106,163,255,.15)}
input[type="range"]:hover::-moz-range-thumb{box-shadow:0 0 0 3px rgba(106,163,255,.15)}
@media (max-width:1100px){.header-chips{display:none}}
@media (max-width:980px){body{overflow:auto}.app{height:auto;min-height:100vh}.main{grid-template-columns:1fr}.canvasWrap{min-height:68vh}.sidebar{width:100%;max-width:none;overflow:visible}.stage{min-height:54vh}}
@media (max-width:760px){
  .previewModeControl{width:100%;justify-content:space-between}.previewModeControl .segmented{flex:1}.previewModeControl .segment{flex:1}
  .stage.mode-compare{min-height:560px}
  .stage.mode-compare .previewGrid{grid-template-columns:1fr;grid-template-rows:minmax(260px,1fr) minmax(260px,1fr)}
}
@media (max-width:700px){header{padding:8px 8px 0}.bar{align-items:flex-start;flex-wrap:wrap}.header-actions{width:100%;margin-left:0}.header-actions .btn{flex:1}.main{padding:8px;gap:8px}.canvasWrap{padding:10px}.toolbarControl{width:100%}.toolbarControl input[type="range"]{flex:1;width:auto}.actionsCard{grid-template-columns:1fr}.brandTag{display:none}.segment{padding-left:6px;padding-right:6px}}
.sectionHead.sectionOnly{margin-bottom:2px}

/* Workflow and export polish inherited from 01C */
.historyButtons{display:flex;gap:6px}
.miniBtn{padding:5px 8px;border-radius:9px;font-size:11px;border-width:1px}
.presetApplyRow{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center}
.presetApplyRow .input{width:100%}
.presetName{width:100%;margin:2px 0 8px}
.presetFileButtons{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.presetFileButtons .btn{width:100%}
.loadPresetBtn{position:relative}
.exportFormatBlock{padding:11px 0;border-top:1px dashed var(--stroke-soft)}
.exportFormatBlock:first-of-type{border-top:0}
.exportFormatHead{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:7px;font-size:12px}
.exportHelp{font-size:10px;line-height:1.4;color:#8f919b;margin:-1px 0 9px}
.exportFormatBlock .controlTitle{margin-top:2px}
.exportFormatBlock .exportBtn{margin-top:9px}
.uploadBtn.disabled{opacity:.42;cursor:not-allowed;pointer-events:none}
.workflowCard .controlBlock:first-of-type{border-top:1px dashed var(--stroke-soft)}

@media (max-width:700px){
  .presetFileButtons{grid-template-columns:1fr 1fr}
  .exportFormatHead{align-items:flex-start}
}
@media (max-width:420px){
  .presetApplyRow,.presetFileButtons{grid-template-columns:1fr}
  .historyButtons{width:100%}
  .historyButtons .btn{flex:1}
  .workflowCard .sectionHead{flex-wrap:wrap}
  .exportFormatHead{flex-wrap:wrap}
}
@media (max-width:700px){
  .btn{min-height:40px}
  .segment{min-height:36px}
  input[type="range"]{height:34px}
  input[type="range"]::-webkit-slider-thumb{width:20px;height:20px;margin-top:-7px}
  input[type="range"]::-moz-range-thumb{width:20px;height:20px}
}

/* 01D reproduction-module polish */
.moduleHelp{font-size:10px;line-height:1.45;color:#9698a2;margin:-2px 0 7px;padding-bottom:4px}
.screeningCard .screenTypeBlock{border-top:1px dashed var(--stroke-soft)}
.screeningCard .input{width:100%}
.screenConditional[hidden]{display:none!important}

/* Focused exploration window inherited from 01E.1 */
.exploreLaunchBlock{padding:10px 0 2px;border-top:1px dashed var(--stroke-soft)}
.exploreLaunchBtn{width:100%}.exploreLaunchHelp{margin:7px 2px 0;padding:0}
.microBtn{padding:4px 6px;border-radius:8px;border-width:1px;font-size:9px;min-height:0}
.emptyState{font-size:10px;line-height:1.45;color:#8f919b;border:1px dashed var(--stroke-soft);border-radius:9px;padding:10px}
.compactSelect{padding:4px 6px;border-radius:8px;font-size:10px}
.trayEyebrow{font-size:9px;letter-spacing:.13em;color:#80aefc;font-weight:800}

.exploreOverlay[hidden]{display:none!important}
.exploreOverlay{position:fixed;inset:0;z-index:1000;display:grid;place-items:center;padding:24px;background:rgba(5,5,8,.76);backdrop-filter:blur(3px)}
.exploreWindow{width:min(980px,96vw);max-height:min(88vh,920px);display:grid;grid-template-rows:auto minmax(0,1fr);overflow:hidden;border:1px solid #41414c;border-radius:18px;background:#111116;box-shadow:0 26px 90px rgba(0,0,0,.68)}
.exploreHeader{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:16px 18px!important;background:#17171c!important;border:0!important;border-bottom:1px solid var(--stroke)!important}
.exploreHeader h2{margin:3px 0 4px;font-size:17px;letter-spacing:.01em}.exploreHeader p{margin:0;color:#a9abb4;font-size:11px;line-height:1.45;max-width:650px}
.exploreBody{min-height:0;overflow:auto;padding:14px;overscroll-behavior:contain}
.exploreSection{padding:0 0 16px;margin:0 0 16px;border-bottom:1px dashed var(--stroke)}
.exploreSection:last-child{padding-bottom:0;margin-bottom:0;border-bottom:0}
.exploreSectionHead{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:10px}
.exploreSectionHead h3{margin:0 0 3px;font-size:12px;text-transform:uppercase;letter-spacing:.05em}.exploreSectionHead span{display:block;font-size:10px;line-height:1.4;color:#8f919b}
.exploreHeadActions{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}

.presetBrowserGrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:9px}
.presetCard{min-width:0;padding:7px;border:1px solid var(--stroke-soft);border-radius:11px;background:#0f0f13;cursor:pointer;transition:border-color .12s ease,transform .12s ease}
.presetCard:hover{border-color:#555561;transform:translateY(-1px)}.presetCard.active{border-color:var(--accent);box-shadow:inset 0 0 0 1px rgba(106,163,255,.18)}
.presetCard:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.presetThumbWrap{position:relative;height:104px;border:1px solid #2b2b33;border-radius:8px;overflow:hidden;background:#fff}
.presetThumb{width:100%;height:100%;display:block;object-fit:contain}.presetThumbPlaceholder{height:100%;display:grid;place-items:center;background:linear-gradient(135deg,#ececec,#fff);color:#777;font-size:10px}
.presetCardTitle{margin:7px 2px 2px;font-size:11px;font-weight:750;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.presetCardDesc{margin:0 2px 2px;color:#8f919b;font-size:9px;line-height:1.35;min-height:24px}
.exploreSelect{position:absolute;top:6px;right:6px;display:grid;place-items:center;width:25px;height:25px;border:1px solid #50505c;border-radius:7px;background:rgba(15,15,18,.88);cursor:pointer;z-index:2}.exploreSelect input{margin:0}.exploreSelect:has(input:disabled){opacity:.55;cursor:not-allowed}

.snapshotList{display:grid;grid-template-columns:repeat(auto-fill,minmax(290px,1fr));gap:8px;min-width:0}
.snapshotCard{display:grid;grid-template-columns:92px minmax(0,1fr);gap:9px;padding:8px;border:1px solid var(--stroke-soft);border-radius:11px;background:#0f0f13;min-width:0}.snapshotCard.stale{opacity:.66}
.snapshotThumbWrap{position:relative;width:92px;height:68px;border-radius:7px;background:#fff;overflow:hidden;border:1px solid #2b2b33}.snapshotThumb{width:100%;height:100%;object-fit:contain;display:block}
.snapshotBody{min-width:0}.snapshotTitle{font-size:11px;font-weight:750;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.snapshotMeta{font-size:9px;color:#8f919b;margin:2px 0 6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.snapshotActions{display:flex;gap:4px;flex-wrap:wrap}

.advancedExportSection{padding-bottom:4px}.advancedExportBar{display:flex;align-items:center;gap:7px;flex-wrap:wrap;padding:9px;border:1px solid var(--stroke-soft);border-radius:11px;background:#0f0f13}
.selectionButtons{display:flex;gap:4px}.exploreFormat{margin-left:auto;display:flex;align-items:center;gap:6px;font-size:9px;color:#9b9da6}.exploreStatus{font-size:9px;line-height:1.4;color:#8f919b;min-height:15px;padding:7px 2px 0}

@media (max-width:700px){
  .exploreOverlay{padding:0;place-items:stretch}
  .exploreWindow{width:100vw;max-height:none;height:100dvh;border-radius:0;border-left:0;border-right:0}
  .exploreHeader{padding:13px 12px!important;gap:10px}.exploreHeader p{display:none}
  .exploreBody{padding:10px}
  .presetBrowserGrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.presetThumbWrap{height:118px}
  .snapshotExploreHead{flex-direction:column}.exploreHeadActions{width:100%;justify-content:flex-start}.exploreHeadActions .btn{flex:1}
  .snapshotList{grid-template-columns:1fr}
  .advancedExportBar{align-items:stretch}.advancedExportBar>.btn{flex:1}.exploreFormat{order:-1;width:100%;margin-left:0;justify-content:space-between}.exploreFormat .input{min-width:90px}
  .selectionButtons{width:100%}.selectionButtons .btn{flex:1}
}
@media (max-width:430px){
  .presetBrowserGrid{grid-template-columns:1fr}.presetThumbWrap{height:150px}
  .snapshotCard{grid-template-columns:78px minmax(0,1fr)}.snapshotThumbWrap{width:78px;height:60px}
  .advancedExportBar{display:grid;grid-template-columns:1fr 1fr}.advancedExportBar .controlHint,.advancedExportBar .selectionButtons,.advancedExportBar .exploreFormat{grid-column:1/-1}
}

/* 01G/01G.4 color-plate reproduction */
.effectSummary{display:flex;align-items:center;justify-content:space-between;gap:10px;cursor:pointer;list-style:none;font-size:12px;font-weight:750;text-transform:uppercase;letter-spacing:.04em;color:rgba(232,232,236,.9)}
.effectSummary::-webkit-details-marker{display:none}.effectSummary::after{content:'▾';font-size:12px;color:#8f919b;transition:transform .12s ease}.colorPlateCard:not([open]) .effectSummary::after{transform:rotate(-90deg)}
.summaryHint{margin-left:auto;font-size:9px;font-weight:500;text-transform:none;letter-spacing:0;color:#8f919b}.colorPlateCard[open] .effectSummary{padding-bottom:9px;border-bottom:1px dashed var(--stroke-soft);margin-bottom:9px}
.colorPlateIntro{margin-top:0}.colorPlateEnableHead{margin:0;padding:8px 0 2px}.colorPlateConditional[hidden]{display:none!important}.colorPlateCard .input{width:100%}
.platePositionDetails,.advancedPlateDetails{margin-top:10px;border-top:1px dashed var(--stroke-soft);padding-top:9px}
.platePositionDetails>summary,.advancedPlateDetails>summary{display:flex;align-items:center;gap:8px;cursor:pointer;color:#c9cbd3;font-size:11px;font-weight:700;list-style:none}.platePositionDetails>summary::-webkit-details-marker,.advancedPlateDetails>summary::-webkit-details-marker{display:none}.platePositionDetails>summary::before,.advancedPlateDetails>summary::before{content:'▾';font-size:10px;color:#858893}.platePositionDetails:not([open])>summary::before,.advancedPlateDetails:not([open])>summary::before{transform:rotate(-90deg)}.platePositionDetails[open]>summary,.advancedPlateDetails[open]>summary{margin-bottom:8px}
.platePositionToolbar{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:7px 0 4px}.platePositionToolbar .btn{white-space:nowrap}
.plateHeader{display:none}.plateRow{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px 8px;align-items:center;padding:10px 0;border-bottom:1px dashed var(--stroke-soft)}.plateRow:last-child{border-bottom:0}.plateName{display:grid;grid-template-columns:auto auto 1fr;align-items:center;gap:5px;font-size:9px;color:#9da0aa;min-width:0}.plateName strong{font-size:12px;color:#e8e8ec}.platePositionRow .plateName{grid-column:1;grid-row:1}.platePositionRow .plateResetBtn{grid-column:2;grid-row:1;width:auto;min-width:54px;padding-left:7px;padding-right:7px}.plateMini{display:grid;grid-template-columns:14px minmax(0,1fr) 48px;gap:6px;align-items:center;min-width:0}.platePositionRow .plateMini{grid-column:1/-1}.plateAxisLabel{font-size:9px;font-weight:750;color:#858893;text-align:center}.plateMini input[type="range"]{width:100%;min-width:0}.plateNumber{width:48px;padding:5px 4px;border-radius:8px;font-size:10px;text-align:left}
.plateStrengthHeader,.plateStrengthRow{display:grid;grid-template-columns:100px minmax(0,1fr);gap:8px;align-items:center}.plateStrengthHeader{font-size:9px;color:#858893;padding:4px 0 5px;border-bottom:1px solid var(--stroke-soft)}.plateStrengthRow{padding:8px 0;border-bottom:1px dashed var(--stroke-soft);font-size:9px;color:#9da0aa}.plateStrengthRow:last-child{border-bottom:0}.plateStrengthRow strong{font-size:11px;color:#e8e8ec;margin-right:3px}.plateStrengthRow .plateMini{grid-template-columns:minmax(0,1fr) 48px}.plateStrengthRow .plateAxisLabel{display:none}
@media (max-width:420px){.platePositionToolbar{align-items:stretch;flex-direction:column}.platePositionToolbar .btn{width:100%}.plateRow{gap:6px 8px}.plateMini{grid-template-columns:16px minmax(0,1fr) 54px}.plateNumber{width:54px}.plateStrengthHeader{display:none}.plateStrengthRow{grid-template-columns:1fr;gap:5px}.plateStrengthRow .plateMini{grid-template-columns:minmax(0,1fr) 54px}}


/* === 01G.9 COMPACT ECOSYSTEM SWATCH BAR =============================== */
.ecoPaletteBar{display:flex;align-items:center;width:auto;max-width:calc(100vw - 24px);min-width:0;margin:8px 12px 0;padding:7px 10px;border:1px solid var(--line);border-radius:14px;background:var(--bar);overflow:hidden}
.paletteControls{display:flex;align-items:center;gap:9px;flex-wrap:nowrap;width:100%;max-width:100%;min-width:0}
.paletteGroup{display:flex;align-items:center;gap:7px;flex-wrap:nowrap}
.colorRole{flex:0 0 auto}.colorRole strong{font-size:11px;color:var(--muted);font-weight:650;white-space:nowrap}
.paletteTargetSelect{min-width:118px!important;border-color:var(--accent)}
#swatchInfo{flex:0 1 auto;max-width:210px}
.paletteInstruction{font-size:10px;color:#8f919b;line-height:1.2;flex:0 1 245px;min-width:72px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.paletteImportBtn{font-size:11px;padding:6px 9px;margin-left:0;flex:0 0 auto}
.paletteScroller{display:block;flex:1 1 240px;width:auto;max-width:none;min-width:90px;overflow-x:auto;overflow-y:hidden;white-space:nowrap;padding:1px 2px 4px;scrollbar-width:thin}
.paletteScroller::-webkit-scrollbar{height:5px}.paletteScroller::-webkit-scrollbar-thumb{background:#30303a;border-radius:999px}.paletteScroller::-webkit-scrollbar-track{background:#111116;border-radius:999px}
#paletteSwatches.paletteGroup{display:flex;align-items:center;gap:7px;flex-wrap:nowrap;width:max-content;max-width:none;min-width:0;padding:4px}
.swatchBtn{width:27px;height:27px;min-width:27px;flex:0 0 auto;border-radius:8px;border:1px solid rgba(255,255,255,.2);background:var(--swatch,#fff);box-shadow:inset 0 0 0 1px rgba(0,0,0,.28);cursor:pointer;padding:0}
.swatchBtn[draggable="true"]{cursor:grab}.swatchBtn.draggingColor{opacity:.56;cursor:grabbing}.swatchBtn.activeTarget{outline:2px solid var(--accent);outline-offset:2px}

/* === 01G.9 POSTERIZE ENGINE + PALETTE CONTROLS ======================= */
.posterizeCard{overflow:visible}.posterizeCard>.sectionHead{margin-bottom:7px}.posterizeCard>.posterizeIntro{margin-top:0}.posterizeCard>.posterizeConditional{margin-bottom:0}
.posterMappingBlock .input{width:100%;font-size:11px}.posterMappingHelp{margin-top:7px;margin-bottom:0;padding:0;color:#92949e;line-height:1.35}
.posterPaletteLabel{font-size:12px;font-weight:650}
.posterColorTabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-top:7px}
.posterColorTab{display:grid;grid-template-columns:26px minmax(0,1fr);grid-template-rows:auto auto;column-gap:7px;align-items:center;text-align:left;min-width:0;padding:6px 7px;border:1px solid #3a3a44;border-radius:10px;background:#151519;color:var(--ink);cursor:pointer}
.posterColorTab:hover{border-color:#5b5b67}.posterColorTab.active{border-color:var(--accent);box-shadow:inset 0 0 0 1px rgba(106,163,255,.18)}.posterColorTab.dragOver{border-color:#dce8ff;background:rgba(106,163,255,.12)}
.posterColorTabSwatch{grid-row:1 / span 2;width:26px;height:26px;border-radius:7px;border:1px solid rgba(255,255,255,.25);background:var(--poster-tab-color,#fff);box-shadow:inset 0 0 0 1px rgba(0,0,0,.24);opacity:var(--poster-tab-opacity,1)}
.posterColorTabLabel{font-size:10px;font-weight:750;line-height:1.05}.posterColorTabHex{font-size:9px;color:#999ba5;font-variant-numeric:tabular-nums;line-height:1.05;overflow:hidden;text-overflow:ellipsis}
.posterColorEditor{display:grid;grid-template-columns:auto 34px minmax(0,1fr) auto;gap:7px;align-items:center;margin-top:9px}.posterColorEditor label{font-size:10px;color:#9da0aa}.posterColorPicker{width:34px;height:30px;padding:2px;border:1px solid var(--stroke);border-radius:8px;background:#101014;cursor:pointer}.posterHexInput{padding:6px 8px;border-radius:9px;font-size:11px;text-transform:lowercase}.posterColorEditor .miniBtn{padding:6px 8px}

.inkColorTab{display:grid;grid-template-columns:26px minmax(0,1fr);column-gap:7px;align-items:center;text-align:left;width:100%;min-width:0;padding:6px 7px;border:1px solid #3a3a44;border-radius:10px;background:#151519;color:var(--ink);cursor:pointer}
.inkColorTab:hover{border-color:#5b5b67}.inkColorTab.active{border-color:var(--accent);box-shadow:inset 0 0 0 1px rgba(106,163,255,.18)}.inkColorTab.dragOver{border-color:#dce8ff;background:rgba(106,163,255,.12)}
.inkColorSwatch{width:26px;height:26px;border-radius:7px;border:1px solid rgba(255,255,255,.25);background:var(--ink-color-chip,#111111);box-shadow:inset 0 0 0 1px rgba(0,0,0,.24)}
.inkColorMeta{display:grid;grid-template-rows:auto auto;line-height:1.05}
.inkColorLabel{font-size:10px;font-weight:750}.inkColorHex{font-size:9px;color:#999ba5;font-variant-numeric:tabular-nums;line-height:1.05;overflow:hidden;text-overflow:ellipsis}
.inkColorEditor{grid-template-columns:auto 34px minmax(0,1fr)}

@media (max-width:1180px){.paletteInstruction{display:none}#swatchInfo{max-width:160px}}
@media (max-width:980px){.ecoPaletteBar{max-width:calc(100vw - 16px);margin:8px 8px 0}.paletteControls{gap:7px}#swatchInfo{display:none}.paletteScroller{min-width:70px}.paletteImportBtn{font-size:10px;padding:6px 7px}}
@media (max-width:700px){.ecoPaletteBar{padding:6px 8px}.colorRole strong{display:none}.paletteTargetSelect{min-width:105px!important;max-width:126px}.paletteImportBtn{font-size:0;width:36px;height:36px;padding:0}.paletteImportBtn::before{content:'JSON';font-size:8px}.posterColorEditor{grid-template-columns:auto 34px minmax(0,1fr)}.posterColorEditor .miniBtn{grid-column:1 / -1}.posterColorTabs{grid-template-columns:1fr}}
