@import url("/demo/assets/fonts.css");
:root {
  font-family: Inter, system-ui, sans-serif;
  color: #e5edf6;
  background: #090c12;
  font-synthesis: none;
  --muted: #9eacbd;
  --cyan: #74e8de;
  --line: rgba(153, 185, 213, 0.12);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-width: 340px;
}
button,
input,
select {
  font: inherit;
}
button,
a,
label,
select {
  -webkit-tap-highlight-color: transparent;
}
a {
  color: inherit;
  text-decoration: none;
}
.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 9% 25%, #12333845, transparent 48%),
    radial-gradient(ellipse at 96% 85%, #31244732, transparent 48%);
}
main {
  position: relative;
  max-width: 1920px;
  margin: auto;
  padding: 0 3.4vw;
}
header {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 3px;
  display: flex;
  align-items: center;
  gap: 13px;
}
.brand-icon {
  font-size: 30px;
  color: var(--cyan);
  line-height: 1;
}
.brand-light {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 2.3px;
  color: #8998aa;
}
.header-end {
  display: flex;
  gap: 11px;
  align-items: center;
  font-size: 12px;
  letter-spacing: 1.8px;
  color: #97a9ba;
}
.live-dot,
.status-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px #74e8de66;
}
.pill {
  font-size: 12px;
  border: 1px solid #a7b6c42e;
  border-radius: 20px;
  padding: 7px 10px;
  margin-left: 14px;
  color: #aebdcc;
}
.intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 31px 0 27px;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 2px;
  color: #a9bacb;
  font-weight: 600;
}
h1 {
  font-weight: 400;
  font-size: clamp(27px, 2.7vw, 45px);
  letter-spacing: -1.8px;
  margin: 8px 0 9px;
}
h1 em {
  font-style: normal;
  color: var(--cyan);
}
.intro p {
  margin: 0;
  font-size: 14px;
  color: #a4b3c5;
  letter-spacing: 0.2px;
}
.drop-compact {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 19px;
  border: 1px dashed #3b4a57;
  border-radius: 12px;
  color: #becbd5;
  font-size: 14px;
  transition: 0.2s;
}
.drop-compact:hover {
  background: #74e8de09;
  border-color: var(--cyan);
}
.drop-compact > span:first-child {
  font-size: 26px;
  color: var(--cyan);
}
.drop-compact small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 5px;
}
.workspace {
  display: grid;
  grid-template-columns: 1.38fr 1fr;
  gap: 16px;
  height: calc(100vh - 282px);
  min-height: 620px;
  max-height: 1100px;
}
.panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: linear-gradient(125deg, #15202a55, #10151e99 55%, #10141dcc);
  box-shadow: 0 18px 50px #00000018;
  animation: enter 0.8s both;
}
.panel-top {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  font-size: 12px;
  letter-spacing: 1.7px;
  z-index: 2;
}
.panel-top > div {
  display: flex;
  gap: 12px;
  align-items: center;
}
.index {
  color: #9cb3c7;
  font-size: 13px;
}
.tag {
  font-size: 12px;
  color: var(--cyan);
  letter-spacing: 1.3px;
}
.lilac {
  color: #bfabed;
}
.source-panel {
  display: flex;
  flex-direction: column;
}
.viewport {
  position: relative;
  min-height: 0;
  flex: 1;
  background: radial-gradient(ellipse at center, #2735442e, transparent 69%);
}
.viewport canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  outline: none;
}
.empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 25px;
  z-index: 1;
  pointer-events: none;
}
.empty h2 {
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.6px;
  margin: 24px 0 0;
}
.empty p {
  font-size: 14px;
  color: #8a9aab;
  margin: 12px 0;
}
.empty small {
  font-size: 12px;
  color: #9aaabe;
  letter-spacing: 0.4px;
}
.orb {
  width: 116px;
  height: 116px;
  border: 1px solid #6db0b42d;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow:
    0 0 85px #6abeb316,
    inset 0 0 36px #7fc0bb08;
  position: relative;
  animation: float 7s ease-in-out infinite;
}
.orb:after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px dashed #74e8de25;
  border-radius: 50%;
  animation: spin 40s linear infinite;
}
.orb span {
  font-size: 42px;
  font-weight: 200;
  color: #81b5b6;
}
.drop-link {
  font-size: 13px;
  pointer-events: auto;
  cursor: pointer;
  color: var(--cyan);
  margin: 9px 0 23px;
  padding: 10px 17px;
  border: 1px solid #74e8de33;
  border-radius: 24px;
}
.drop-link span {
  margin-left: 17px;
}
.source-title {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin: 0 24px;
  padding: 17px 0;
}
.source-title h2 {
  font-size: 20px;
  font-weight: 450;
  margin: 8px 0 0;
  max-width: 440px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.source-title select {
  background: #19232d;
  border: 1px solid #334552;
  border-radius: 7px;
  color: #aab8c7;
  font-size: 13px;
  padding: 7px;
  max-width: 155px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}
.metrics > div {
  padding-left: 20px;
  border-left: 1px solid var(--line);
}
.metrics > div:first-child {
  padding-left: 0;
  border: 0;
}
.metrics span {
  font-size: 12px;
  letter-spacing: 1.3px;
  color: #a5b7c8;
  display: block;
}
.metrics strong {
  font-size: 32px;
  font-weight: 350;
  letter-spacing: -1px;
  display: block;
  margin: 9px 0 4px;
}
.metrics small {
  color: #93a6b9;
  font-size: 12px;
}
.view-footer {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  gap: 15px;
}
.view-footer > span {
  font-size: 12px;
  letter-spacing: 1.2px;
  color: #96a7bc;
}
.legend {
  display: flex;
  gap: 13px;
  font-size: 12px;
  color: #90a0b4;
}
.legend label {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
}
.legend input {
  appearance: none;
  width: 0;
  height: 0;
  margin: 0;
}
.legend i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  display: inline-block;
}
.legend input:not(:checked) + i {
  background: #48505e;
}
.bend-dot {
  background: #ef4444;
}
.cut-dot {
  background: #22c55e;
}
.right-stack {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
  min-height: 0;
}
.flat-panel,
.variant-panel {
  display: flex;
  flex-direction: column;
}
.flat-panel {
  animation-delay: 0.12s;
}
.variant-panel {
  animation-delay: 0.22s;
}
.flat-canvas {
  position: relative;
  flex: 1;
  min-height: 0;
  margin: 0 16px;
  display: grid;
  place-items: center;
}
.flat-canvas img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: absolute;
  inset: 0;
}
.flat-footer {
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  color: #a5bbcd;
  font-size: 12px;
  letter-spacing: 1px;
}
.flat-footer label {
  font-size: 12px;
}
.flat-footer input {
  width: 64px;
  margin-left: 7px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #30404d;
  color: #cfdee6;
  font-size: 14px;
  padding: 2px;
}
.flat-footer select {
  margin-left: 7px;
  max-width: 132px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #30404d;
  color: #cfdee6;
  font-size: 12px;
  padding: 2px;
}
.export {
  font-size: 12px;
  color: var(--cyan);
  letter-spacing: 1px;
}
.compact p {
  font-size: 14px;
}
.compact small {
  font-size: 12px;
  max-width: 330px;
  line-height: 1.7;
}
.line-glyph {
  font-size: 42px;
  color: #608187;
  font-weight: 200;
}
.radius-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 22px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
}
.radius-value {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 5px;
}
.radius-value input {
  font-size: 26px;
  color: #d7cbf2;
  width: 85px;
  background: none;
  border: 0;
  outline: none;
  border-bottom: 1px solid #75658455;
  font-weight: 400;
}
.radius-value span {
  font-size: 12px;
  color: #8a7fa0;
}
.radius-value button {
  border: 1px solid #bca1ed44;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  background: #bca1ed12;
  color: #d2bcf2;
  margin-left: 10px;
  cursor: pointer;
}
.radius-value button:disabled {
  opacity: 0.3;
  cursor: default;
}
.constraint {
  font-size: 12px;
  color: #9bacbf;
  letter-spacing: 1.3px;
  text-align: right;
}
.constraint span {
  display: block;
  color: #afbbca;
  font-size: 12px;
  letter-spacing: 0;
  margin-top: 7px;
}
.constraint small {
  display: block;
  margin-top: 6px;
  letter-spacing: 0;
  font-size: 12px;
}
.variant-status {
  font-size: 12px;
  color: #b2c0d0;
  min-height: 45px;
  padding: 0 22px 12px;
  line-height: 1.5;
}
.statusbar {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 50px;
  font-size: 12px;
  color: #b2c2d1;
}
.footer-mark {
  margin-left: auto;
  font-size: 12px;
  letter-spacing: 2px;
  color: #8fa4b8;
}
.progress-track {
  height: 1px;
  background: #17232c;
}
.progress-track > div {
  height: 100%;
  width: 0;
  background: var(--cyan);
  transition: width 0.6s;
  box-shadow: 0 0 9px #74e8de88;
}
.error {
  color: #e6ad87 !important;
}
.status-dot.busy {
  animation: pulse 1s infinite;
}
.status-dot.error {
  background: #e6ad87;
}
#dropOverlay {
  position: fixed;
  inset: 12px;
  border: 1px solid #74e8de88;
  border-radius: 22px;
  z-index: 100;
  background: #0b171fee;
  backdrop-filter: blur(16px);
  display: none;
  place-items: center;
  color: var(--cyan);
  font-size: 38px;
  letter-spacing: -1px;
  pointer-events: none;
}
#dropOverlay small {
  display: block;
  text-align: center;
  font-size: 13px;
  letter-spacing: 4px;
  margin-top: 20px;
}
[hidden] {
  display: none !important;
}
@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes float {
  50% {
    transform: translateY(-8px);
  }
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes pulse {
  50% {
    opacity: 0.25;
  }
}
@media (min-width: 1600px) {
  .workspace {
    grid-template-columns: 1.35fr 1fr;
  }
  .panel-top {
    height: 56px;
  }
  .metrics {
    padding: 25px 0;
  }
  .metrics strong {
    font-size: 34px;
  }
}
@media (max-width: 950px) {
  main {
    padding: 0 18px;
  }
  .workspace {
    height: auto;
    min-height: 0;
    grid-template-columns: 1fr;
  }
  .source-panel {
    height: 620px;
  }
  .right-stack {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 390px;
  }
  .header-end > span:nth-child(2) {
    display: none;
  }
  .view-footer > span {
    display: none;
  }
}
@media (max-width: 620px) {
  header {
    height: 65px;
  }
  .brand-light {
    font-size: 12px;
    letter-spacing: 1px;
  }
  .brand {
    gap: 8px;
    font-size: 14px;
  }
  .header-end .pill {
    display: none;
  }
  .intro {
    padding: 26px 0;
  }
  .intro p {
    max-width: 230px;
    font-size: 13px;
    line-height: 1.7;
  }
  .drop-compact {
    padding: 10px;
  }
  .drop-compact small {
    display: none;
  }
  h1 {
    font-size: 29px;
  }
  .source-panel {
    height: 540px;
  }
  .right-stack {
    grid-template-columns: 1fr;
    grid-template-rows: 340px 390px;
  }
  .metrics {
    margin: 0 17px;
  }
  .metrics > div {
    padding-left: 12px;
  }
  .metrics strong {
    font-size: 28px;
  }
  .metrics span {
    font-size: 12px;
  }
  .footer-mark {
    display: none;
  }
  .source-title {
    margin: 0 17px;
  }
  .source-title h2 {
    max-width: 200px;
  }
  .panel-top {
    padding: 0 17px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
  }
}

.flat-canvas {
  overflow: hidden;
  touch-action: none;
  cursor: grab;
}
.flat-canvas:active {
  cursor: grabbing;
}
:focus-visible {
  outline: 1px solid var(--cyan);
  outline-offset: 4px;
}

.overlay-controls {
  position: absolute;
  top: 10px;
  right: 20px;
  z-index: 3;
  gap: 8px;
}
.overlay-controls label {
  padding: 8px 11px;
  border: 1px solid #52627855;
  border-radius: 20px;
  background: #0b121bdd;
  backdrop-filter: blur(8px);
  font-size: 13px;
  gap: 7px;
  color: #d2dce8;
  transition:
    opacity 0.2s,
    border-color 0.2s;
}
.overlay-controls label:hover {
  border-color: #9aaec799;
}
.overlay-controls label:has(input:not(:checked)) {
  opacity: 0.5;
}
.overlay-controls label:has(input:focus-visible) {
  outline: 1px solid #a7c4d9;
  outline-offset: 3px;
}
.overlay-controls i {
  width: 6px;
  height: 6px;
}

.statusbar {
  height: auto;
  min-height: 48px;
  line-height: 1.5;
  padding: 9px 0;
}
.statusbar #status {
  overflow-wrap: anywhere;
}
.phase-timings {
  color: #9daeb9;
  font-size: 12px;
  line-height: 1.5;
  padding-top: 6px;
}
.phase-timings:empty {
  display: none;
}
.variant-status {
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.metrics strong {
  font-size: clamp(24px, 2.1vw, 36px);
  font-variant-numeric: tabular-nums;
}
.constraint {
  max-width: 48%;
  line-height: 1.5;
}
.constraint small {
  line-height: 1.45;
}
.flat-footer {
  flex-shrink: 0;
  gap: 12px;
}
.panel-top {
  flex-shrink: 0;
  gap: 12px;
  flex-wrap: wrap;
  line-height: 1.4;
}
.view-footer {
  flex-shrink: 0;
}
.radius-controls {
  flex-shrink: 0;
}
.overlay-controls label {
  min-height: 36px;
}
.legend input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.footer-mark {
  white-space: nowrap;
}
@media (max-width: 1100px) {
  .view-footer > span {
    letter-spacing: 0.4px;
  }
  .footer-mark {
    display: none;
  }
}
@media (max-width: 620px) {
  .right-stack {
    grid-template-rows: 380px 450px;
  }
  .panel-top {
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .header-end {
    display: none;
  }
  .metrics span {
    letter-spacing: 0.4px;
  }
  .metrics {
    gap: 7px;
  }
  .metrics > div {
    padding-left: 7px;
  }
  .metrics strong {
    font-size: 24px;
  }
  .metrics small {
    font-size: 12px;
  }
  .constraint {
    max-width: 45%;
  }
  .overlay-controls {
    right: 12px;
  }
  .source-title {
    gap: 10px;
  }
  .source-title select {
    max-width: 140px;
  }
  .flat-footer > span {
    letter-spacing: 0;
  }
}
/* Published-geometry cost account: a third column on wide workstations. */
main {
  max-width: 2400px;
  padding-left: 2.4vw;
  padding-right: 2.4vw;
}
.workspace {
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr) minmax(320px, 0.73fr);
}
.cost-panel {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #3a5261 transparent;
  animation-delay: 0.3s;
}
.cost-panel .panel-top {
  position: sticky;
  top: 0;
  background: #101820f5;
  z-index: 4;
}
.cost-body {
  padding: 6px 22px 22px;
}
.cost-hero {
  padding: 12px 0 19px;
  border-bottom: 1px solid var(--line);
}
.cost-hero > div {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.cost-hero strong {
  font-size: clamp(32px, 2.6vw, 48px);
  font-weight: 400;
  color: var(--cyan);
  letter-spacing: -1.5px;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.cost-hero > div > span {
  font-size: 12px;
  color: #9cb0c2;
}
.cost-hero p {
  font-size: 12px;
  color: #a5b6c7;
  margin: 9px 0 0;
}
.cost-selectors {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 78px;
  gap: 12px;
  padding: 19px 0;
}
.cost-selectors label,
.cost-input-grid label {
  font-size: 12px;
  color: #a8bbca;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cost-selectors select,
.cost-selectors input,
.cost-input-grid input {
  width: 100%;
  min-width: 0;
  padding: 9px 10px;
  background: #15212c;
  border: 1px solid #344654;
  border-radius: 7px;
  color: #e0ebf5;
  font-size: 14px;
  outline: none;
}
.cost-selectors select:focus,
.cost-selectors input:focus,
.cost-input-grid input:focus {
  border-color: var(--cyan);
}
.cost-section {
  border-top: 1px solid var(--line);
  padding: 16px 0;
}
.cost-section h3 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  margin: 0 0 13px;
}
.cost-section h3 span {
  font-size: 12px;
  letter-spacing: 0.8px;
  color: #8ea4b8;
}
.cost-panel dl {
  margin: 0;
  display: grid;
  gap: 10px;
}
.cost-panel dl > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}
.cost-panel dt {
  font-size: 12px;
  color: #a7b9ca;
  line-height: 1.45;
}
.cost-panel dd {
  font-size: 13px;
  color: #e1edf7;
  margin: 0;
  text-align: right;
  font-variant-numeric: tabular-nums;
  line-height: 1.5;
}
.cost-total-row {
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.cost-total-row dt,
.cost-total-row dd {
  color: var(--cyan);
  font-weight: 500;
}
.cost-panel details {
  margin-top: 13px;
  border: 1px solid #34434f;
  border-radius: 8px;
  padding: 11px 12px;
}
.cost-panel summary {
  cursor: pointer;
  font-size: 12px;
  color: #c4d6e5;
  line-height: 1.5;
}
.cost-cutout-list {
  max-height: 220px;
  overflow-y: auto;
  margin-top: 12px;
  display: grid;
  gap: 10px;
  font-size: 12px;
  color: #94acbf;
}
.cost-cutout-list > div {
  display: flex;
  gap: 12px;
  justify-content: space-between;
}
.cost-cutout-list strong {
  font-size: 12px;
  font-weight: 400;
  color: #cddbe7;
  text-align: right;
}
.cost-note {
  font-size: 12px;
  line-height: 1.65;
  color: #9dafc0;
  margin: 12px 0 0;
  overflow-wrap: anywhere;
}
.cost-input-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 15px;
}
.cost-sources {
  display: grid;
  gap: 9px;
  margin-top: 13px;
}
.cost-sources a {
  font-size: 12px;
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cost-breakdown {
  padding-bottom: 5px;
}
.trace-placeholder {
  border: 1px dashed #61738066;
  background: linear-gradient(135deg, #20434317, #25243b22);
  border-radius: 12px;
  padding: 17px;
  margin-top: 20px;
}
.trace-placeholder > div {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.trace-icon {
  font-size: 23px;
  color: #8fb8bd;
}
.trace-placeholder strong {
  font-size: 15px;
  letter-spacing: 2px;
  font-weight: 500;
}
.trace-placeholder .pill {
  font-size: 12px;
  margin-left: auto;
  padding: 5px 7px;
}
.trace-placeholder p {
  font-size: 12px;
  color: #a4bacb;
  line-height: 1.5;
  margin: 12px 0;
}
.trace-placeholder small {
  display: block;
  font-size: 12px;
  line-height: 1.6;
  color: #9dafbe;
  margin-top: 14px;
}
@media (max-width: 1500px) {
  .workspace {
    height: auto;
    max-height: none;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    grid-template-rows: 760px auto;
  }
  .source-panel,
  .right-stack {
    height: 760px;
  }
  .cost-panel {
    grid-column: 1/-1;
  }
  .cost-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 28px;
  }
  .cost-body > #costStatus {
    grid-column: 1/-1;
  }
  .cost-hero strong {
    font-size: 44px;
  }
}
@media (max-width: 950px) {
  .workspace {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .source-panel {
    height: 620px;
  }
  .right-stack {
    height: auto;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 450px;
  }
  .cost-panel {
    grid-column: auto;
  }
  .cost-hero strong {
    font-size: 38px;
  }
}
@media (max-width: 620px) {
  main {
    padding: 0 15px;
  }
  .source-panel {
    height: 570px;
  }
  .right-stack {
    grid-template-columns: 1fr;
    grid-template-rows: 400px 450px;
  }
  .cost-body {
    display: block;
    padding: 5px 18px 22px;
  }
  .cost-panel .panel-top {
    position: static;
  }
  .cost-section h3 span {
    font-size: 12px;
  }
  .cost-hero strong {
    font-size: 42px;
  }
}

.variant-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr 40px;
  gap: 12px;
  padding: 18px 24px;
}
.variant-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
}
.variant-field > input {
  width: 100%;
  min-width: 0;
  background: #111d28;
  border: 1px solid #405261;
  border-radius: 6px;
  color: #e0edf5;
  padding: 8px;
  font: inherit;
  box-sizing: border-box;
}
.variant-field span > input {
  accent-color: #ac94ed;
}
.variant-anchor {
  grid-column: 1/-1;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.variant-anchor label {
  cursor: pointer;
  position: relative;
}
.variant-anchor input {
  position: absolute;
  opacity: 0;
  inset: 0;
  cursor: pointer;
}
.variant-anchor span {
  display: block;
  border: 1px solid #334350;
  border-radius: 20px;
  padding: 7px 10px;
  font-size: 12px;
  color: #a4b7c8;
}
.variant-anchor input:checked + span {
  color: #e1d6ff;
  border-color: #a38bdf;
  background: #302741;
}
.variant-anchor input:focus-visible + span {
  outline: 2px solid #b8a2e9;
  outline-offset: 2px;
}
.variant-inputs .cost-note,
.variant-step {
  grid-column: 1/-1;
  margin: 0;
}
.variant-step {
  font-size: 13px;
  color: #c6b2f6;
}
.variant-inputs > button {
  align-self: start;
  margin-top: 22px;
  width: 38px;
  height: 38px;
  border: 1px solid #685681;
  border-radius: 50%;
  background: #292335;
  color: #e2cfff;
  cursor: pointer;
}
.variant-inputs [hidden] {
  display: none !important;
}

/* Keep a usable derived viewport after adding explicit gauge constraints. */
.workspace {
  min-height: 840px;
}
.right-stack {
  grid-template-rows: 0.42fr 0.58fr;
}
.variant-inputs {
  padding: 12px 22px;
  gap: 8px;
}
.variant-field > input {
  font-size: 20px;
  padding: 6px 9px;
}
.variant-status {
  max-height: 54px;
  overflow: auto;
}
@media (max-width: 1500px) {
  .workspace {
    grid-template-rows: 840px auto;
  }
  .source-panel,
  .right-stack {
    height: 840px;
  }
}
@media (max-width: 950px) {
  .workspace {
    min-height: 0;
    grid-template-rows: auto;
  }
  .source-panel {
    height: 620px;
  }
  .right-stack {
    height: auto;
    grid-template-rows: 550px;
  }
}
@media (max-width: 620px) {
  .right-stack {
    grid-template-rows: 360px 550px;
  }
}

/* Processing stays beside the viewports, including when the page is scrolled. */
.processing-status {
  position: sticky;
  top: 10px;
  z-index: 20;
  margin: 0 0 18px;
  padding: 12px 18px 16px;
  border: 1px solid #365360;
  border-radius: 12px;
  background: #101c27f5;
  box-shadow: 0 8px 26px #0005;
  backdrop-filter: blur(12px);
}
.processing-status .statusbar {
  padding: 0 0 10px;
  min-height: 28px;
  font-size: 15px;
  line-height: 1.5;
  color: #d7eaf3;
}
.processing-status .status-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
}
.processing-status #status {
  flex: 1;
}
.process-elapsed {
  font-size: 14px;
  color: #9cbdca;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.processing-status .progress-track {
  height: 8px;
  border-radius: 8px;
  overflow: hidden;
  background: #213540;
}
.processing-status .progress-track > div {
  border-radius: 8px;
  background: linear-gradient(90deg, #4bdec4, #35b9ee);
  box-shadow: 0 0 16px #5ddad680;
}
.processing-status.is-busy {
  border-color: #568c99;
}
.processing-status.is-busy .progress-track > div {
  min-width: 4%;
  background-size: 200% 100%;
  animation: processing-shimmer 1.8s linear infinite;
}
.processing-status.is-error {
  border-color: #8f5c40;
}
.processing-status.is-error .progress-track > div {
  background: #da9368;
}
.demo-footer {
  display: flex;
  justify-content: flex-end;
  padding: 18px 0 24px;
}
@keyframes processing-shimmer {
  from {
    background-position: 100% 0;
  }
  to {
    background-position: -100% 0;
  }
}
@media (max-width: 620px) {
  .processing-status {
    top: 5px;
    padding: 10px 12px 13px;
  }
  .processing-status .statusbar {
    font-size: 14px;
  }
  .process-elapsed {
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .processing-status.is-busy .progress-track > div {
    animation: none;
  }
  .processing-status .progress-track > div {
    transition: none;
  }
}
