/* Existing Real3DMaker dark/blue identity, extended for task-focused screens. */
.app-body {
  --app-surface: #0e1522;
  --app-soft: #131d2d;
  --app-line: #2c384a;
  --app-muted: #b0bdcf;
  color-scheme: dark;
}
.app-body [hidden] {
  display: none !important;
}
.app-body ::selection {
  background: #3167d6;
  color: #fff;
}
.app-body input {
  caret-color: #88b2ff;
}
.app-body :focus-visible {
  outline: 3px solid #83b2ff;
  outline-offset: 4px;
}
.app-body .site-header {
  position: relative;
  min-height: 80px;
  background: #080c14;
  backdrop-filter: none;
  padding: 0 max(28px, calc((100vw - 1320px) / 2));
}
.app-body nav {
  display: flex;
  gap: 26px;
}
.app-body nav a {
  padding: 12px 0;
  font-size: 14px;
  white-space: nowrap;
}
.app-body nav a[aria-current="page"] {
  color: #a8c8ff;
  box-shadow: 0 2px 0 #6c9bff;
}
.preview-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 36px;
  padding: 8px 20px;
  color: #b7c9e6;
  background: #101b30;
  font-size: 12px;
  line-height: 1.6;
}
.preview-banner span:last-child {
  color: #a7b8d0;
}
.preview-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #8eb7ff;
}
.app-main {
  width: min(1320px, 100% - 64px);
  margin: 0 auto;
  padding: 56px 0 88px;
  min-height: 65vh;
}
.app-main h1 {
  font-size: 36px;
  line-height: 1.35;
  letter-spacing: -0.025em;
  margin-bottom: 12px;
  font-weight: 700;
  text-wrap: balance;
}
.app-main h2,
.app-dialog h2 {
  font-size: 21px;
  line-height: 1.5;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}
.app-main h3 {
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 12px;
}
.app-main p {
  color: var(--app-muted);
  line-height: 1.75;
  max-width: 72ch;
}
.page-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
}
.page-intro p {
  margin: 0;
  font-size: 15px;
}
.text-link,
.text-button {
  color: #a6c6ff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 5px;
}
.text-link:hover,
.text-button:hover {
  color: #fff;
}
.text-button {
  border: 0;
  background: none;
  padding: 10px;
  cursor: pointer;
}
.app-body .button {
  border-radius: 8px;
  min-height: 48px;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  line-height: 1.5;
  text-align: center;
  transition:
    background 0.18s ease-out,
    border-color 0.18s ease-out;
}
.app-body .button:hover {
  transform: none;
}
.app-body .button.primary {
  background: #326ce5;
  border-color: transparent;
}
.app-body .button.primary:hover {
  background: #356cdb;
}
.app-body .button.secondary {
  background: #172235;
  border-color: #34435b;
}
.app-body button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
.app-body .button:disabled {
  background: #253149;
  color: #b0bed4;
}
.flow-steps {
  list-style: none;
  padding: 0;
  display: flex;
  margin: 0 0 32px;
  color: #93a2ba;
  gap: 0;
  border-bottom: 1px solid var(--app-line);
}
.flow-steps li {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  padding: 0 16px 18px 0;
  font-size: 14px;
}
.flow-steps li span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid #3d4a60;
  border-radius: 50%;
  font-size: 12px;
  flex-shrink: 0;
}
.flow-steps li.current {
  color: #e6efff;
  box-shadow: 0 2px 0 #689fff;
}
.flow-steps li.current span {
  background: #3169de;
  color: #fff;
  border-color: transparent;
}
.flow-steps li.done {
  color: #b8d0fa;
}
.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(340px, 1fr);
  gap: 36px;
  align-items: start;
}
.workspace-model,
.workspace-options {
  min-width: 0;
}
.section-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}
.section-top h2,
.section-top h3 {
  margin: 0;
}
.muted {
  color: var(--app-muted);
  font-size: 12px;
  line-height: 1.6;
}
.workspace .file-drop {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px;
  gap: 12px;
  border: 1px dashed #566985;
  background: #111c2e;
  border-radius: 12px;
  position: relative;
  cursor: pointer;
}
.workspace .file-drop:hover,
.workspace .file-drop.is-dragover {
  border-color: #91b8ff;
  background: #17253c;
}
.workspace .file-drop input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.workspace .file-drop:focus-within {
  outline: 3px solid #83b2ff;
  outline-offset: 4px;
}
.workspace .file-title {
  font-size: 16px;
  font-weight: 650;
  color: #f1f5fb;
}
.workspace .file-copy {
  font-size: 12px;
  max-width: 40ch;
  color: #b1c0d6;
}
.workspace .file-button {
  background: none;
  color: #a9c8ff;
  min-height: 0;
  padding: 0;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.app-body .preview-actions {
  margin: 14px 0 22px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  font-size: 12px;
  color: #b0bed1;
}
.preview-actions button {
  padding: 8px 12px;
  font-family: inherit;
  background: #19263b;
  border: 1px solid #34445d;
  border-radius: 6px;
  color: #d9e6ff;
  cursor: pointer;
}
.app-body .model-preview {
  background: #111a29;
  color: #eef3fc;
  border: 1px solid var(--app-line);
  padding: 18px;
  border-radius: 12px;
  margin-top: 20px;
}
.model-preview .result-label {
  color: #a7b9d4;
  font-size: 12px;
}
.app-body .model-preview-head strong {
  color: #f1f5ff;
  font-size: 14px;
}
.app-body .model-preview-note,
.app-body .simulation-hint {
  color: #b1bfd2;
  font-size: 12px;
  margin: 8px 0;
}
.app-body .model-stage {
  height: 360px;
  min-height: 280px;
  background: #202c3e;
  border-radius: 8px;
  overflow: hidden;
}
.app-body .model-placeholder {
  color: #c2cfe3;
}
.app-body .model-placeholder p {
  color: #aabbd1;
}
.app-body .viewport-topbar span {
  background: #152035;
  color: #cbd9f0;
}
.app-body .simulation-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}
.app-body .simulation-details div {
  background: none;
  border: 0;
  border-bottom: 1px solid var(--app-line);
  padding: 8px 0;
}
.app-body .simulation-details span {
  color: #aabbd2;
}
.app-body .simulation-details strong {
  color: #e7eefc;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.app-body .slicer-status {
  background: #141f31;
  border: 0;
  color: #c2d2eb;
  padding: 12px;
}
.app-body .slicer-status p {
  color: #b7c7df;
  font-size: 12px;
}
.app-body .slicer-status strong {
  color: #dbe7fc;
  font-size: 12px;
}
.workspace-options .option-section {
  padding: 24px;
  background: var(--app-surface);
  border: 1px solid var(--app-line);
  border-radius: 12px;
}
.app-body fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.app-body fieldset[inert] {
  opacity: 0.45;
}
.app-main
  label:not(.check):not(.file-drop):not(.payment-options label):not(
    .segmented label
  ),
.app-main .filter-label {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 13px;
  color: #c5d1e4;
  margin-bottom: 18px;
}
.app-main
  input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not(
    [type="color"]
  ),
.app-main select {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  border: 1px solid #3a4960;
  border-radius: 6px;
  padding: 10px 12px;
  background: #0b1220;
  color: #edf3fc;
  font-size: 14px;
  font-family: inherit;
}
.app-main input::placeholder {
  color: #94a4bd;
  opacity: 1;
}
.app-main input[type="color"] {
  min-height: 44px;
  width: 100%;
  background: #111a29;
  border: 1px solid #3a4960;
}
.app-main input[type="checkbox"],
.app-main input[type="radio"] {
  accent-color: #7ca7ff;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  cursor: pointer;
  margin: 1px 0 0;
}
.app-main .check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  line-height: 1.7;
  cursor: pointer;
}
.option-check {
  padding: 20px 0;
  border-top: 1px solid var(--app-line);
  margin-top: 16px;
}
.option-check strong {
  font-size: 14px;
  font-weight: 600;
}
.option-check small {
  display: block;
  font-size: 12px;
  color: #a8b9d2;
  margin-top: 4px;
}
.app-main .field-help {
  font-size: 12px;
  line-height: 1.75;
  color: #a7b7ce;
  margin-top: 8px;
}
.app-main label + .field-help {
  margin-top: -8px;
}
.palette-heading {
  margin-top: 10px;
}
.color-palette {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.color-choice {
  display: flex;
  gap: 9px;
  align-items: center;
  text-align: left;
  background: #121d2e;
  border: 1px solid #33435d;
  color: #e3ebf8;
  padding: 10px;
  min-height: 64px;
  border-radius: 7px;
  font-family: inherit;
  font-size: 12px;
  cursor: pointer;
}
.color-choice.selected {
  border-color: #89b1ff;
  background: #1a2d50;
}
.color-choice:disabled {
  opacity: 0.6;
  background: #111826;
}
.color-choice small {
  display: block;
  color: #b5c6df;
  margin-top: 4px;
  font-size: 11px;
}
.color-choice.selected small {
  color: #c0d7ff;
}
.swatch {
  display: inline-block;
  width: 23px;
  height: 23px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--swatch);
  border: 1px solid #a1afc3;
}
.part-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(130px, 1.2fr);
  align-items: center;
  gap: 12px !important;
  margin-bottom: 10px !important;
}
.part-row span {
  overflow-wrap: anywhere;
}
.app-main #partSection {
  padding: 18px 0 10px;
  border-top: 1px solid var(--app-line);
  margin-top: 20px;
}
.login-gate {
  display: flex;
  flex-direction: column;
  text-align: left;
  padding: 18px;
  gap: 8px;
  background: #162641;
  color: #eff4ff;
  font-family: inherit;
  border: 1px solid #42618d;
  border-radius: 8px;
  cursor: pointer;
  margin-bottom: 20px;
  width: 100%;
}
.login-gate strong {
  font-size: 14px;
}
.login-gate span {
  font-size: 12px;
  color: #bed0eb;
}
.app-body .app-summary {
  margin-top: 24px;
  padding: 24px;
  border: 1px solid var(--app-line);
  box-shadow: none;
  background: #101b2b;
  border-radius: 12px;
  position: static;
}
.app-body .app-summary h2 {
  color: #edf4ff;
  font-size: 18px;
}
.app-body .result-breakdown {
  font-size: 13px;
  margin: 0;
}
.app-body .result-breakdown div {
  align-items: start;
  gap: 16px;
  border-bottom: 1px solid var(--app-line);
  padding: 12px 0;
}
.app-body .result-breakdown span {
  color: #abbdd7;
  white-space: nowrap;
}
.app-body .result-breakdown strong {
  color: #e5eefc;
  font-weight: 500;
  text-align: right;
  overflow-wrap: anywhere;
  min-width: 0;
}
.price-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 24px 0 12px;
}
.price-total > span {
  font-size: 13px;
  color: #b3c5df;
}
.app-body .price-total > strong {
  font-size: 27px;
  color: #f4f7fd;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.app-body #estimateNote {
  font-size: 12px;
  line-height: 1.75;
  color: #afc0d8;
}
.app-body .file-check {
  background: #17243a;
  border: 0;
  color: #b9cbe4;
  font-size: 12px;
  padding: 12px;
  margin-bottom: 16px;
}
.app-body .file-status {
  border: 1px solid var(--app-line);
  background: #101b2b;
  color: #edf3ff;
  border-radius: 8px;
  padding: 12px;
  margin-top: 12px;
}
.file-status strong {
  overflow-wrap: anywhere;
}
.file-status span {
  color: #a8bad4;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.inline-error {
  padding: 12px;
  color: #ffc0b5 !important;
  background: #3a1f25;
  border-radius: 6px;
  font-size: 13px;
}
.app-dialog {
  background: #152035;
  color: #f1f5ff;
  border: 1px solid #4d6282;
  border-radius: 12px;
  padding: 28px;
  max-width: min(460px, calc(100% - 40px));
  box-shadow: 0 20px 60px #0008;
}
.app-dialog::backdrop {
  background: #020611c9;
}
.app-dialog p {
  color: #bdcbe0;
  line-height: 1.8;
  font-size: 14px;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
}
.app-toast {
  position: fixed;
  z-index: 100;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #dbe9ff;
  color: #13213a;
  max-width: calc(100% - 32px);
  width: max-content;
  padding: 14px 22px;
  border-radius: 8px;
  box-shadow: 0 8px 24px #0005;
  font-size: 13px;
  line-height: 1.6;
}
.auth-main {
  padding-top: 70px;
}
.auth-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: start;
  max-width: 1020px;
  margin: 56px auto;
}
.auth-layout h1 {
  font-size: 36px;
  margin-bottom: 24px;
}
.auth-panel {
  padding: 32px;
  background: #111b2d;
  border: 1px solid var(--app-line);
  border-radius: 12px;
}
.auth-panel p {
  font-size: 14px;
  margin-bottom: 24px;
}
.auth-panel hr {
  border: 0;
  border-top: 1px solid var(--app-line);
  margin: 28px 0;
}
.plain-list {
  padding-left: 18px;
  line-height: 2.3;
  font-size: 14px;
  color: #b7c8e2;
}
.checkout-layout,
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 1fr);
  gap: 36px;
  align-items: start;
}
.checkout-layout > .app-summary,
.detail-layout > .app-summary {
  position: sticky;
  top: 24px;
  margin-top: 0;
}
.form-section {
  border-bottom: 1px solid var(--app-line);
  padding: 0 0 28px;
  margin-bottom: 32px;
}
.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.form-section .field-row {
  margin-bottom: 0;
}
.segmented,
.payment-options {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}
.segmented label,
.payment-options label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px;
  border: 1px solid #3c4c66;
  border-radius: 8px;
  flex: 1;
  font-size: 14px;
  cursor: pointer;
}
.segmented label:has(input:checked),
.payment-options label:has(input:checked) {
  border-color: #8eb5ff;
  background: #182c4d;
}
.info-strip {
  padding: 18px;
  background: #142238;
  color: #bed0e9;
  border-radius: 8px;
  line-height: 1.8;
  font-size: 13px;
  margin-bottom: 24px;
}
.info-strip p {
  margin: 8px 0 0;
  font-size: 13px;
}
.empty-panel {
  padding: 56px 28px;
  border: 1px dashed #3c4e69;
  border-radius: 12px;
  text-align: center;
  margin: 24px 0;
}
.empty-panel p {
  margin-left: auto;
  margin-right: auto;
}
.empty-panel h1 {
  font-size: 28px;
}
.empty-inline {
  padding: 18px;
  background: #131f31;
  color: #aebfd7;
  line-height: 1.7;
  font-size: 13px;
  border-radius: 6px;
}
.list-toolbar {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  margin: 16px 0;
}
.list-toolbar h2 {
  margin: 0;
}
.app-main .list-toolbar label {
  display: flex;
  flex-direction: row;
  align-items: center;
  margin: 0;
  white-space: nowrap;
}
.filter-label select {
  min-width: 130px;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.6;
  padding: 4px 10px;
  border-radius: 20px;
  background: #202d42;
  color: #bcccdf;
}
.status-pill.active {
  background: #1d3763;
  color: #c1d9ff;
}
.order-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 8px;
  border-top: 1px solid var(--app-line);
  transition: background 0.18s;
}
.order-row:last-child {
  border-bottom: 1px solid var(--app-line);
}
.order-row:hover {
  background: #101a2a;
}
.order-row h3 {
  margin: 12px 0 6px;
  overflow-wrap: anywhere;
}
.order-row p {
  font-size: 13px;
  margin: 0;
}
.order-row-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  font-size: 13px;
  min-width: 130px;
}
.order-row-meta strong {
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}
.order-row-meta > span:not(.text-link) {
  color: #a7b7cf;
}
.sample-actions {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  margin-top: 32px;
  padding-top: 8px;
}
.sample-actions p {
  font-size: 13px;
  margin: 0;
}
.completion-note {
  background: #132b25;
  padding: 20px;
  margin: 28px 0;
  border-radius: 8px;
  color: #bce9ce;
}
.completion-note p {
  margin: 6px 0 0;
  font-size: 13px;
  color: #b8d6c5;
}
.order-timeline {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: space-between;
  margin: 30px 0 16px;
  gap: 10px;
}
.order-timeline li {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
  color: #9babbe;
  position: relative;
  padding-top: 16px;
  border-top: 2px solid #34425a;
}
.order-timeline .reached {
  border-color: #80aaff;
  color: #d5e4ff;
}
.order-timeline small {
  color: #9fc0ff;
  font-size: 11px;
}
.camera-placeholder {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #101827;
  border: 1px dashed #3d506f;
  border-radius: 8px;
  text-align: center;
  padding: 24px;
  color: #b9cbe5;
}
.camera-placeholder p {
  font-size: 13px;
  margin: 0;
}
.camera-placeholder span {
  color: #9cacc4;
  font-size: 12px;
}
.admin-tabs {
  display: flex;
  gap: 26px;
  border-bottom: 1px solid var(--app-line);
  margin: 32px 0;
}
.admin-tabs button {
  color: #aebed5;
  padding: 14px 0;
  font-size: 15px;
  font-family: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}
.admin-tabs button[aria-selected="true"] {
  color: #dce9ff;
  box-shadow: 0 2px 0 #83afff;
}
.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--app-line);
  border-radius: 8px;
}
.app-main table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  white-space: nowrap;
}
.app-main th,
.app-main td {
  padding: 18px;
  border-bottom: 1px solid var(--app-line);
  text-align: left;
}
.app-main tr:last-child td {
  border: 0;
}
.app-main th {
  background: #121e30;
  color: #b8c9e2;
  font-size: 12px;
  font-weight: 500;
}
.table-color {
  display: flex;
  align-items: center;
  gap: 12px;
}
.table-color small {
  display: block;
  color: #a5b7cf;
  margin-top: 6px;
}
.app-main table input {
  display: inline-block;
  max-width: 100px;
  font-variant-numeric: tabular-nums;
}
.app-main table select {
  width: 130px;
}
.spool-form {
  margin-top: 32px;
}
.spool-form .field-row {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.printer-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.printer-row {
  border: 1px solid var(--app-line);
  border-radius: 12px;
  padding: 24px;
}
.printer-row p {
  font-size: 13px;
  margin: 12px 0 24px;
}
.admin-order {
  margin-top: 24px;
}
.home-page .eyebrow {
  display: none;
}
.home-page .hero {
  min-height: 75vh;
  padding-top: 90px;
}
.home-page .hero h1 {
  max-width: 14ch;
  font-size: clamp(40px, 5vw, 70px);
  line-height: 1.15;
}
@media (min-width: 1100px) {
  .workspace-model {
    position: sticky;
    top: 24px;
  }
}
@media (max-width: 1000px) {
  .app-main {
    width: calc(100% - 48px);
  }
  .workspace {
    grid-template-columns: minmax(0, 1.15fr) minmax(310px, 1fr);
    gap: 24px;
  }
  .workspace-options .option-section,
  .app-body .app-summary {
    padding: 20px;
  }
  .auth-layout {
    gap: 36px;
  }
  .spool-form .field-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .printer-list {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 760px) {
  .app-body .site-header {
    padding: 14px 20px;
    gap: 18px;
    flex-wrap: wrap;
    min-height: 70px;
  }
  .app-body .brand-logo {
    width: 82px;
  }
  .app-body nav {
    display: flex;
    gap: 18px;
    margin-left: auto;
  }
  .app-body nav a {
    font-size: 12px;
  }
  .app-body nav a[href="policies.html"] {
    display: none;
  }
  .app-main {
    width: calc(100% - 36px);
    padding-top: 32px;
    padding-bottom: 56px;
  }
  .page-intro {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
  }
  .app-main h1,
  .auth-layout h1 {
    font-size: 28px;
  }
  .flow-steps {
    gap: 14px;
    margin-bottom: 24px;
  }
  .flow-steps li {
    gap: 7px;
    font-size: 12px;
    padding-bottom: 16px;
    padding-right: 0;
  }
  .flow-steps li span {
    width: 22px;
    height: 22px;
    font-size: 11px;
  }
  .workspace,
  .checkout-layout,
  .detail-layout,
  .auth-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
  .workspace-model {
    position: static;
  }
  .section-top {
    flex-wrap: wrap;
  }
  .workspace .file-drop {
    min-height: 175px;
  }
  .app-body .preview-actions {
    align-items: flex-start;
    flex-direction: column;
  }
  .app-body .model-stage {
    height: 320px;
    min-height: 260px;
  }
  .app-body .app-summary {
    position: static;
  }
  .checkout-layout > .app-summary {
    grid-row: 1;
  }
  .auth-layout {
    margin: 32px auto;
  }
  .auth-panel {
    padding: 24px;
  }
  .sample-actions {
    flex-direction: column;
    align-items: flex-start;
  }
  .order-row {
    gap: 16px;
  }
  .order-row-meta {
    min-width: 100px;
  }
  .order-row-meta strong {
    font-size: 16px;
  }
  .order-row p {
    font-size: 12px;
  }
  .admin-tabs {
    gap: 22px;
  }
  .admin-tabs button {
    font-size: 13px;
  }
  .spool-form .field-row,
  .field-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .app-main footer {
    padding-left: 20px;
    padding-right: 20px;
  }
  .order-timeline {
    gap: 6px;
  }
  .order-timeline li {
    font-size: 12px;
  }
  .preview-banner {
    gap: 4px 8px;
    font-size: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .app-body * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
.queue-list {
  padding: 0;
  list-style: none;
  margin: 24px 0;
}
.queue-list li {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 0;
  border-top: 1px solid var(--app-line);
  font-size: 12px;
}
.queue-list li > span {
  margin-right: auto;
  min-width: 0;
  overflow-wrap: anywhere;
}
.queue-list .text-button {
  font-size: 11px;
  white-space: nowrap;
  padding: 5px;
}
.printer-row form {
  margin: 20px 0;
}
#printersPanel > .form-section {
  margin-top: 36px;
}

.app-body .viewport-stats {
  border: 1px solid #52617a;
  border-radius: 6px;
}
.app-body .simulation-details {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 600px) {
  .app-body .simulation-details {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.mobile-table-hint {
  display: none;
}
@media (max-width: 760px) {
  .mobile-table-hint {
    display: block;
  }
}

.app-body .slicer-status > span {
  color: #edc58c;
}
.app-main .option-check {
  background: none;
  border: 0;
  border-top: 1px solid var(--app-line);
  border-radius: 0;
  padding: 20px 0;
}

/* Payment surfaces extend the existing task UI. Provider iframe stays unstyled. */
.payment-section .section-top h2 {
  margin-bottom: 0;
}
.app-main .payment-intro {
  font-size: 14px;
  margin-bottom: 24px;
}
.payment-placeholder {
  border: 1px dashed #50617c;
  border-radius: 10px;
  background: #111d30;
  padding: 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  color: #c6d9f5;
}
.payment-placeholder strong {
  color: #ecf3ff;
  font-size: 16px;
}
.app-main .payment-placeholder p {
  margin: 0;
  font-size: 13px;
}
.payment-placeholder small {
  color: #b0c0d9;
  line-height: 1.8;
  font-size: 12px;
}
.payment-provider-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 0;
}
.payment-provider-labels span {
  color: #d5e3fb;
  border: 1px solid #435573;
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 13px;
}
.toss-widget-area {
  border-radius: 10px;
  background: #fff;
  color-scheme: light;
  overflow: hidden;
}
#previewOrderButton {
  margin-top: 8px;
}
.payment-result-panel {
  margin: 40px auto;
  padding: 40px;
  max-width: 820px;
  background: #101b2b;
  border: 1px solid var(--app-line);
  border-radius: 12px;
}
.payment-result-panel h1 {
  margin-top: 0;
}
.payment-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 32px 0 24px;
}
@media (max-width: 760px) {
  .payment-placeholder,
  .payment-result-panel {
    padding: 24px;
  }
  .payment-result-panel {
    margin-top: 28px;
  }
  .payment-result-actions {
    flex-direction: column;
  }
}

.app-main .production-confirm {
  padding: 14px;
}
.app-main .production-confirm + .field-help {
  margin-top: 12px;
}

.orientation-panel { padding:24px 0 8px; margin-top:16px; border-top:1px solid var(--app-line); }
.orientation-panel .segmented { margin:20px 0; }
.app-main .orientation-confirm { padding:14px; }
.app-main .orientation-panel>.field-help:last-child { margin-top:14px; }
.orientation-panel fieldset:disabled { opacity:.55; }

.viewport-axis.is-live { width: 96px; height: 96px; pointer-events: none; }
.viewport-axis.is-live::before, .viewport-axis.is-live::after { display: none; }
.viewport-axis.is-live svg { display: block; }

/* STL assembly editor: viewport beside the file list and transform panel on wide screens. */
.model-editor {
  display: grid;
  gap: 16px;
}
@media (min-width: 1100px) {
  .workspace-model:has(.assembly-panel:not([hidden])) {
    position: static;
  }
}
@media (min-width: 1200px) {
  .workspace:has(.assembly-panel:not([hidden])) {
    grid-template-columns: minmax(0, 1.9fr) minmax(320px, 1fr);
  }
  .model-editor:has(.assembly-panel:not([hidden])) {
    grid-template-columns: minmax(0, 1fr) 288px;
    align-items: start;
  }
  .app-body .model-editor:has(.assembly-panel:not([hidden])) .model-stage {
    height: 560px;
  }
}
#assemblyPanel {
  display: grid;
  gap: 14px;
  min-width: 0;
}
#assemblyPanel[hidden] {
  display: none;
}
#assemblyPanel.is-dragover {
  outline: 2px dashed #8eb5ff;
  outline-offset: 4px;
}
#assemblyPanel > section {
  border: 1px solid var(--app-line);
  border-radius: 8px;
  padding: 14px;
  background: #101b2b;
  min-width: 0;
}
#assemblyPanel .section-top {
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 6px 12px;
}
#assemblyPanel h3 {
  font-size: 14px;
}
#assemblyPanel .field-help {
  font-size: 12px;
  line-height: 1.6;
  margin: 10px 0 0;
}
.assembly-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  max-height: 320px;
  overflow: auto;
}
.assembly-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 8px;
  align-items: center;
  padding: 6px 8px 8px 10px;
  border: 1px solid var(--app-line);
  border-radius: 8px;
  background: var(--app-surface);
}
.assembly-item.is-selected {
  border-color: #8eb5ff;
  background: #182c4d;
}
.assembly-item.is-error {
  border-color: #a4505b;
}
.assembly-select {
  min-width: 0;
  display: grid;
  gap: 2px;
  padding: 4px 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.assembly-select strong {
  font-size: 13px;
  overflow-wrap: anywhere;
}
.assembly-select small {
  font-size: 12px;
  color: #a8bad4;
  overflow-wrap: anywhere;
}
.assembly-item.is-error .assembly-select small {
  color: #ffc0b5;
}
.assembly-actions {
  display: flex;
}
.assembly-actions .text-button {
  padding: 6px;
  font-size: 12px;
}
.assembly-color {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}
#assemblyPanel select.assembly-color {
  min-height: 38px;
  padding: 6px 10px;
  font-size: 13px;
}
.assembly-color .swatch {
  width: 16px;
  height: 16px;
}
#assemblyPanel .add-part {
  position: relative;
  display: inline-flex;
  margin: 12px 0 0;
  color: #a6c6ff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 5px;
  cursor: pointer;
}
#assemblyPanel .add-part[hidden] {
  display: none;
}
#assemblyPanel .add-part input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
#assemblyPanel .add-part:focus-within {
  outline: 3px solid #83b2ff;
  outline-offset: 4px;
}
#transformPanel fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
#transformPanel fieldset:disabled {
  opacity: 0.55;
}
#transformPanel .segmented {
  gap: 8px;
  margin: 0 0 12px;
}
#transformPanel .segmented label {
  padding: 8px 10px;
  font-size: 13px;
}
#transformPanel .xyz-title {
  margin: 8px 0 6px;
  font-size: 12px;
  color: #a8bad4;
}
.xyz-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
#transformPanel .xyz-grid label {
  flex-direction: row;
  align-items: center;
  gap: 4px;
  margin: 0;
  font-size: 12px;
  font-weight: 700;
}
#transformPanel output {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 6px 8px;
  border: 1px solid #2a3a54;
  border-radius: 6px;
  background: #0b1220;
  color: #dfe9fa;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  user-select: none;
  flex: 1;
  min-width: 0;
}
#transformPanel input[type="number"] {
  min-height: 38px;
  padding: 6px 8px;
  font-size: 13px;
}
.rotation-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}
#transformPanel .rotation-head .segmented {
  margin: 0;
}
.rotate-rows {
  display: grid;
  gap: 6px;
  margin: 8px 0 12px;
}
.rotate-row {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  gap: 6px;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
}
#transformPanel #fitView {
  margin-top: 6px;
  padding-left: 0;
}
#transformPanel .inline-error {
  margin: 8px 0 0;
}
.workspace-model > .inline-error {
  margin-top: 12px;
}
.admin-assembly {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  display: grid;
  gap: 4px;
  font-size: 12px;
  color: var(--app-muted);
}
.admin-assembly li {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 8px;
}
.admin-assembly strong {
  color: #eef3fc;
  overflow-wrap: anywhere;
}

/* Still of the assembled model shown above the production confirmation. */
.order-snapshot figure {
  margin: 0;
  display: grid;
  gap: 10px;
  justify-items: start;
}
.order-snapshot img {
  display: block;
  width: min(100%, 420px);
  height: auto;
  aspect-ratio: auto;
  border: 1px solid var(--line, rgba(148, 163, 184, 0.28));
  border-radius: 10px;
  background: #0b1220;
  object-fit: contain;
}

/* Z-up / Y-up switch in the viewport's top-left corner. */
.viewport-topbar .axis-switch {
  display: inline-flex;
  pointer-events: auto;
  padding: 3px;
  gap: 3px;
  background: rgba(21, 32, 53, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
}
.viewport-topbar .axis-switch label {
  position: relative;
  min-width: 52px;
  padding: 6px 12px;
  border-radius: 7px;
  color: #cbd9f0;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  cursor: pointer;
}
.viewport-topbar .axis-switch input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: inherit;
}
.viewport-topbar .axis-switch label:has(input:checked) {
  background: #3b82f6;
  color: #fff;
}
.viewport-topbar .axis-switch label:has(input:focus-visible) {
  outline: 2px solid #8eb5ff;
  outline-offset: 1px;
}
.viewport-topbar .axis-switch label:has(input:disabled) {
  opacity: 0.55;
  cursor: not-allowed;
}
.model-stage .viewport-topbar {
  align-items: flex-start;
}

/* Header menu button: only on phone widths, where the link row is hidden. */
.nav-toggle {
  display: none;
}
@media (max-width: 900px) {
  .site-header .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-left: auto;
    padding: 0;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--white);
    cursor: pointer;
  }
  .nav-toggle span,
  .nav-toggle span::before,
  .nav-toggle span::after {
    display: block;
    width: 18px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform 0.18s ease, opacity 0.18s ease;
  }
  .nav-toggle span {
    position: relative;
  }
  .nav-toggle span::before,
  .nav-toggle span::after {
    content: "";
    position: absolute;
    left: 0;
  }
  .nav-toggle span::before {
    top: -6px;
  }
  .nav-toggle span::after {
    top: 6px;
  }
  .is-nav-open .nav-toggle span {
    background: transparent;
  }
  .is-nav-open .nav-toggle span::before {
    transform: translateY(6px) rotate(45deg);
  }
  .is-nav-open .nav-toggle span::after {
    transform: translateY(-6px) rotate(-45deg);
  }
  .nav-toggle:focus-visible,
  .site-header nav a:focus-visible {
    outline: 2px solid #8eb5ff;
    outline-offset: 2px;
  }
  .site-header nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 4px 20px 12px;
    background: #080c14;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
  }
  .site-header.is-nav-open nav {
    display: flex;
  }
  .site-header nav a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0 4px;
    border-bottom: 1px solid var(--line);
    color: #dbe5f5;
    font-size: 16px;
  }
  .site-header nav a:last-child {
    border-bottom: 0;
  }
  .app-body .site-header nav a,
  .app-body .site-header nav a[href="policies.html"] {
    display: flex;
    font-size: 16px;
  }
}

/* Skip link: first tab stop on every page. */
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: 8px;
  background: #f6f9ff;
  color: #05070d;
  font-weight: 800;
  transform: translateY(-160%);
}
.skip-link:focus {
  transform: none;
  outline: 3px solid #83b2ff;
  outline-offset: 2px;
}
main:focus {
  outline: none;
}

/* Hover and focus feedback: every link and button visibly answers the pointer. */
.brand,
.app-body nav a,
footer a,
.text-button {
  transition: color 0.16s ease, opacity 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}
.brand:hover {
  opacity: 0.8;
}
.app-body nav a:hover {
  color: #fff;
  box-shadow: 0 2px 0 #6c9bff;
}
.app-body nav a {
  min-width: 24px;
}
footer a {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  transition: color 0.16s ease, text-decoration-color 0.16s ease;
}
footer a:hover {
  color: #fff;
  text-decoration-color: currentColor;
}
.app-body .button:hover {
  filter: brightness(1.12);
  box-shadow: 0 6px 18px rgba(36, 107, 254, 0.28);
}
.app-body .button.secondary:hover {
  border-color: #6c9bff;
  background: #1d2c45;
  box-shadow: none;
}
.app-body .button:active {
  filter: brightness(0.95);
}
.app-body .button:disabled:hover {
  filter: none;
  box-shadow: none;
}
.app-body input:focus-visible,
.app-body select:focus-visible,
.app-body textarea:focus-visible {
  outline: 3px solid #83b2ff;
  outline-offset: 2px;
  box-shadow: 0 0 0 5px rgba(131, 178, 255, 0.22);
}
.app-body .button:focus-visible,
.app-body .brand:focus-visible {
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  .skip-link,
  .brand,
  .app-body nav a,
  footer a,
  .app-body .button {
    transition: none;
  }
}

/* 404 page */
.not-found {
  display: grid;
  place-items: center;
  min-height: 60vh;
  padding: 72px 24px;
  text-align: center;
}
.not-found .eyebrow {
  color: #8eb5ff;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.not-found h1 {
  margin: 12px 0;
  font-size: clamp(30px, 6vw, 48px);
}
.not-found p {
  margin: 0 auto 28px;
  max-width: 34ch;
  color: #b7c9e6;
  word-break: keep-all;
  text-wrap: balance;
}
