.modelStage{position:relative;isolation:isolate;height:clamp(350px,42vw,530px);margin:15px 0 0;background:radial-gradient(ellipse at 45% 37%,#666459,#49473f 50%,#32322d 83%);overflow:hidden;border:1px solid #171815;border-radius:9px;box-shadow:inset 0 0 30px #12120e44,0 1px #ffffff25}
.modelStage canvas{display:block;width:100%;height:100%;touch-action:pan-y;cursor:grab}.modelStage canvas:active{cursor:grabbing}
.stageTools{position:absolute;inset:12px 13px auto;display:flex;align-items:center;justify-content:space-between;z-index:2;pointer-events:none;font-size:11px}.stageTools>div{pointer-events:auto;display:flex;gap:3px}.stageTools button,#expandPanel,.counterSet button{border:1px solid #646258;background:#272821;color:#e7e4d7;border-radius:3px;padding:5px 10px}
.ready{background:#292a23bb;border:1px solid #717064;padding:4px 9px;border-radius:3px;color:#f1ebd9}.dragHint{position:absolute;bottom:7px;right:12px;color:#dfdacc;pointer-events:none;font-size:10px;z-index:2}
.modelDesk,.counterSet{display:flex;align-items:center;gap:10px}.modelDesk{padding:14px 2px 0}.counterSet{font-size:12px}.counterSet button{font-size:16px;min-width:31px}.counterSet b{font-size:17px;min-width:18px;text-align:center}.deskPrice{font-size:12px;color:#bdb9ab;margin-left:14px}.deskPrice b{color:#eae5db}.deskMint{margin-left:auto;background:linear-gradient(#ffac69,#ee863b);border:1px solid #6c4029;border-radius:4px;box-shadow:inset 0 1px #ffcc9c,0 2px #673715;color:#21160d;font-weight:700;padding:8px 19px}#expandPanel{font-size:12px;padding:9px 11px}.deskFeedback{min-height:17px;margin:6px 2px 10px;font-size:11px;color:#c4c2b6}
.gauges{align-items:stretch}.gauges article{display:flex;flex-direction:column;justify-content:center}.gauges article:first-child{display:block}.gauges article:first-child>div{margin-bottom:4px}.gauges article:first-child progress{margin-top:6px}
.gauges.mintGauge { grid-template-columns: minmax(0, 1fr); }
#mintProgress { height: 7px; border-radius: 8px; overflow: hidden; background: #423c36; }
#mintProgress::-webkit-progress-bar { background: #423c36; border-radius: 8px; }
#mintProgress::-webkit-progress-value { background: #ff9956; border-radius: 8px; }
#mintProgress::-moz-progress-bar { background: #ff9956; border-radius: 8px; }
.issuanceStats { display: grid; gap: 10px; min-width: 0; }
.issuanceStats .fundGauge {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 12px 14px; border: 1px solid #554639; background: #2e2823;
}
.fundText { display: grid; gap: 3px; }
.fundText strong { font-size: 20px; font-variant-numeric: tabular-nums; color: #ffb576; }
.fundText span { font-size: 11px; color: #c4b9ae; }
.fundText b { font-size: 11px; color: #efae70; }
#fundFunnel{position:relative;width:80px;height:53px;flex:none;filter:drop-shadow(0 2px 2px #0007)}.glassCone,.liquid,.coneLip,.coneStem{position:absolute;display:block}.glassCone{inset:5px 2px 6px;clip-path:polygon(0 0,100% 0,53% 100%,47% 100%);background:linear-gradient(75deg,#ababa766,#f1ebd766 29%,#b2aca742 33%,#726f631c 54%,#efe7d57a 85%,#514f4477);border-top:1px solid #e2d7ba;overflow:hidden}.liquid{bottom:0;width:100%;height:var(--level,0%);background:linear-gradient(90deg,#d87927,#f9bc5b 42%,#ffa645 66%,#b76924);border-top:2px solid #ffda8d;transition:height .35s}.coneLip{left:2px;right:2px;top:1px;height:10px;border-radius:50%;border:1px solid #d0c6aa;background:#ddd4bd29}.coneStem{width:5px;height:7px;left:calc(50% - 2.5px);bottom:0;background:linear-gradient(90deg,#89704c,#dfad72,#8a785f);border-radius:0 0 2px 2px}
@media(max-width:700px){.modelStage{height:clamp(300px,82vw,395px)}.modelDesk{gap:8px;flex-wrap:wrap}.counterSet,.deskPrice{width:auto}.deskPrice{margin-left:auto}.deskMint{margin:0;flex:1}#expandPanel{flex:1}.stageTools{inset:7px 6px auto}.stageTools button{font-size:10px;padding:4px 6px}#fundFunnel{width:62px;height:46px}}
@media(max-width:700px){
  .modelDesk{display:grid;grid-template-columns:1fr 1fr}
  .deskPrice{justify-self:end}.deskMint,#expandPanel{min-height:36px;width:100%;white-space:nowrap}
}

/* In close-up, the interactive DOM occupies the projected rectangle of the model's LCD. */
.modelStage .machineBody{position:absolute;z-index:3;display:block;margin:0;padding:10px 14px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#625d55 #202020;background:linear-gradient(145deg,#242424,#161616);border:1px solid #46423c;border-radius:3px;visibility:hidden}
.modelStage.screenReady .machineBody{visibility:visible}
.machineBody .screen,.machineBody .bezel{min-height:0;padding:0;background:transparent;border:0;box-shadow:none}
.machineBody .keys{position:sticky;top:-10px;background:#222;z-index:1;padding:5px 0;margin:0 0 6px}
.machineBody .mode:not(#mint){max-height:none;overflow:visible}
.machineBody .keypad{border-top:1px solid #47433d;margin-top:8px}
#showroom[data-mode=screen] .modelDesk :is(.counterSet,.deskPrice,.deskMint),#showroom[data-mode=screen] .receiptStrip,#showroom[data-mode=screen] .deskFeedback,#showroom[data-mode=screen] .dragHint{display:none}
#showroom[data-mode=screen] .modelDesk{justify-content:flex-end;padding-bottom:12px}
.receiptStrip{display:flex;align-items:center;gap:10px;padding:9px 2px 0;font-size:11px;color:#d7cabb;flex-wrap:wrap}.receiptStrip b{color:#ffc299}
.receiptStrip #turn{padding:3px 10px;border:1px solid #5c5850;border-radius:3px;background:#2b2a27;color:#e8e2d5;cursor:pointer}
.receiptStrip #pressState{color:#edba85}
.atScreen canvas.wholePrinter{cursor:default}
.staticView{background:#282826 url('printer-still.jpg?v=restore3') center/contain no-repeat}.staticView .dragHint{display:none}
.staticView .machineBody{inset:34px 8% 12px;width:auto;height:auto;visibility:visible}
.fallbackPaper{position:absolute;z-index:2;inset:11% 6% 6%;display:grid;place-items:center;background:#282826;border-radius:6px}
.modelStage .fallbackPaper canvas{width:min(100%,640px);height:auto;touch-action:auto}
@media(max-width:700px){.modelStage.atScreen,#showroom[data-mode=screen] .modelStage{height:clamp(375px,92vw,440px)}.modelStage .machineBody{padding:7px 8px}.machineBody .keys{top:-7px}.receiptStrip{gap:4px 7px}.modelStage .machineBody .keys button{font-size:12px}}
@media(max-width:700px){
  .machineBody .leftUnit{display:flex;flex-direction:column}
  .machineBody .keys{order:0}
  .machineBody .keypad{order:1;margin:0 0 10px;padding:5px 0 10px;border:0;border-bottom:1px solid #47433d}
  .machineBody .bezel{order:2}
  .machineBody .notice{order:3}
}

/* Machine and touchscreen share a chassis; both stay in view. */
#showroom{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(345px,1fr);align-items:start;gap:clamp(14px,2vw,26px);padding:20px 0}
.printerViewport{min-width:0;position:sticky;top:12px}
.modelStage{margin:0;height:clamp(320px,37vw,470px)}
#onboardPanel{display:block;min-width:0;border:1px solid #514a40;border-radius:9px;padding:clamp(12px,1.5vw,22px);background:linear-gradient(150deg,#2b2927,#1c1b1a 60%);box-shadow:inset 0 1px #ffffff12,0 2px 2px #111}
#onboardPanel .keys{position:static;margin:0 0 18px;padding:0;background:none}
#onboardPanel .keys button{min-height:38px}
#onboardPanel .mode{overflow:visible;max-height:none}
#onboardPanel .lcdTitle{padding:15px 0}
#onboardPanel .quotes{margin:12px 0}
#onboardPanel .sum{border:0;padding:0;justify-content:end;font-size:12px;gap:7px}
#onboardPanel .sum strong{font-size:19px}
#onboardPanel .keypad{margin:0;padding:12px 0 0;border-top:1px solid #524a42;align-items:end;gap:10px}
#onboardPanel .mintAction{display:grid;gap:6px;text-align:right;flex:1;max-width:65%}
#onboardPanel .quantity button{height:38px;min-width:36px}
#onboardPanel .printKey{min-height:40px;line-height:1.3;padding:8px}
#onboardPanel .notice{margin-top:12px}
.receiptStrip{justify-content:flex-end;line-height:1.5}
.receiptStrip>div{margin-right:auto}
#returnScreen{border:1px solid #79604c;border-radius:3px;color:#ffd4a9;background:#362e27;padding:4px 10px}
#showroom[data-mode=ticket] .dragHint{display:none}
@media(max-width:800px){
 #showroom{display:flex;flex-direction:column;gap:10px;padding:12px 0;scroll-margin-top:8px}
 .printerViewport{position:static;width:100%}
 .modelStage{height:clamp(200px,54vw,295px)}
 #onboardPanel{width:100%;padding:12px}
 #onboardPanel .leftUnit{display:block}
 #onboardPanel .keys{margin-bottom:12px}
 #onboardPanel .lcdTitle{padding:8px 0}
 #onboardPanel .quotes{margin:7px 0}
 #onboardPanel .printKey{width:100%}
 .receiptStrip{gap:6px}
 .receiptStrip>div{flex-basis:100%}
}

.issuancePanel {
  margin-top: 20px;
  padding: clamp(14px, 2vw, 26px);
  border: 1px solid #514a40;
  border-radius: 9px;
  background: #211f1d;
}
.issuancePanel .sectionHead h2 { font-size: 20px; }
.issuancePanel .tierList { gap: 5px; margin: 16px 0; }
.issuancePanel .tierList button { padding: 8px 2px; }
.issuancePanel .analytics {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(215px, 1fr);
  align-items: start;
  gap: clamp(14px, 2vw, 28px);
}
.issuancePanel .chartPanel { min-width: 0; }
.issuancePanel .controls { margin-top: 0; }
.issuancePanel #outputChart { height: clamp(160px, 17vw, 230px); }
.issuancePanel aside { margin: 0; padding: 14px; background: #2b2824; border: 1px solid #494139; }
.issuancePanel aside strong { display: block; color: #ffb576; font-size: 26px; }
.issuancePanel aside small { margin: 0; }
.issuancePanel .schedule { margin-top: 18px; }
.issuancePanel .schedule h3 { font-size: 14px; margin-bottom: 5px; }
.issuancePanel th,.issuancePanel td { padding: 8px 3px; }
.issuancePanel tr[aria-current=step] { color: #ffc394; background: #322920; }
@media(max-width:700px) {
  .issuancePanel .analytics { grid-template-columns: minmax(0, 1fr); }
  .issuancePanel .tierList { gap: 3px; }
  .issuancePanel .sectionHead { gap: 3px; }
}
