/* Source builder theme parity. Loaded after the legacy fix layers so the
   background and glass surfaces have one deterministic appearance. */
html,
body {
  background-color: #101b3b !important;
}

/* V11.1.34 - final desktop source parity.  This is intentionally the last
   cascade block: older compatibility overrides in this file set mono chrome
   fonts and disable the transparent grid backdrop. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/static/Dx4kXJAl.woff2?__ui=ui-11.1.182") format("woff2");
}

:root { --builder-desktop-gutter: 60px; }

@media (min-width: 821px) {
  html,
  body {
    background: #121b3d !important;
    color: rgba(226, 232, 240, .92) !important;
  }

  body::before {
    content: "" !important;
    display: block !important;
    position: fixed !important;
    inset: -18% !important;
    z-index: 0 !important;
    pointer-events: none !important;
    background-image:
      linear-gradient(rgba(130, 167, 241, .16) 1px, transparent 1px),
      linear-gradient(90deg, rgba(130, 167, 241, .16) 1px, transparent 1px),
      radial-gradient(ellipse at 14% 74%, rgba(38, 102, 224, .28), transparent 44%),
      radial-gradient(ellipse at 76% 38%, rgba(91, 77, 196, .22), transparent 42%) !important;
    background-size: 20px 20px, 20px 20px, 145% 145%, 145% 145% !important;
    background-position: 0 0, 0 0, 0 0, 0 0 !important;
    filter: none !important;
    opacity: .34 !important;
    animation: none !important;
  }

  body::after {
    content: none !important;
    display: none !important;
  }

  .builder-effect-canvas {
    opacity: .86 !important;
    mix-blend-mode: screen !important;
  }

  .topbar {
    min-height: 60px !important;
    height: 60px !important;
    padding: 0 16px !important;
    background: rgba(11, 15, 28, .54) !important;
    border-bottom-color: rgba(255, 255, 255, .14) !important;
    box-shadow: 0 10px 30px rgba(2, 6, 23, .12) !important;
    backdrop-filter: blur(20px) saturate(135%) !important;
  }

  .topbar,
  .topbar .topbar-title,
  .topbar .desktop-nav,
  .topbar .desktop-nav .nav-tab,
  .topbar .account-trigger,
  .topbar .account-name,
  .topbar .account-email {
    font-family: "Inter", "SF Pro Text", "Segoe UI", system-ui, sans-serif !important;
  }

  .topbar-title {
    font-size: 24px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
  }

  .desktop-nav {
    height: 60px !important;
    align-items: center !important;
    gap: 0 !important;
  }

  .desktop-nav .nav-tab {
    min-height: 44px !important;
    padding: 8px !important;
    border: 0 !important;
    border-radius: 10px !important;
    background: transparent !important;
    color: rgba(226, 232, 240, .76) !important;
    font-size: 13.44px !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
    letter-spacing: 0 !important;
  }

  .desktop-nav .nav-tab:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, .067) !important;
  }

  .desktop-nav .nav-tab.active {
    color: #fff !important;
    background: rgba(59, 130, 246, .11) !important;
    box-shadow: inset 0 -2px 0 var(--primary-color, #3b82f6) !important;
  }

  main.workspace,
  main.workspace:not(:has(#panel-machine.active)),
  main.workspace:has(#panel-machine.active) {
    width: min(1600px, 100%) !important;
    max-width: 1600px !important;
    margin-inline: auto !important;
    padding-inline: var(--builder-desktop-gutter) !important;
  }
}

body {
  background:
    radial-gradient(ellipse at 20% 18%, rgba(37, 99, 235, .42), transparent 40%),
    radial-gradient(ellipse at 78% 70%, rgba(79, 70, 229, .31), transparent 46%),
    radial-gradient(ellipse at 48% 45%, rgba(37, 105, 214, .18), transparent 58%),
    #101b3b !important;
}

body::before {
  background:
    linear-gradient(rgba(160, 196, 255, .22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(160, 196, 255, .22) 1px, transparent 1px),
    radial-gradient(ellipse at 22% 28%, rgba(59, 130, 246, .34), transparent 42%),
    radial-gradient(ellipse at 76% 42%, rgba(99, 102, 241, .27), transparent 44%),
    radial-gradient(ellipse at 48% 82%, rgba(47, 112, 220, .18), transparent 48%) !important;
  background-size: 20px 20px, 20px 20px, 112% 112%, 112% 112% !important;
  background-position: 0 0, 0 0, center, center !important;
  filter: none !important;
  opacity: .72 !important;
  animation: builder-mesh 12s ease-in-out infinite alternate !important;
}

body::after {
  right: -18% !important;
  bottom: -32% !important;
  width: 68vw !important;
  height: 68vw !important;
  background:
    radial-gradient(circle at 22% 24%, rgba(59, 130, 246, .24), transparent 58%),
    radial-gradient(circle at 78% 68%, rgba(99, 102, 241, .19), transparent 66%) !important;
  filter: blur(30px) !important;
  opacity: .56 !important;
  animation: builder-ambient-pulse 9s ease-in-out infinite alternate !important;
}

html[data-theme="grid"] .app-shell::before,
html[data-theme="grid"] .app-shell::after {
  pointer-events: none !important;
}

/* The source grid keeps a few soft cells breathing behind the content.  The
   canvas supplies the moving signals; this second layer prevents the effect
   from disappearing under translucent cards during a quiet frame. */
html[data-theme="grid"] .app-shell::after {
  content: "" !important;
  position: fixed !important;
  inset: 0 !important;
  z-index: 0 !important;
  background:
    linear-gradient(rgba(95, 151, 255, .32), rgba(95, 151, 255, .32)) 13% 25% / 20px 20px no-repeat,
    linear-gradient(rgba(95, 151, 255, .24), rgba(95, 151, 255, .24)) 70% 33% / 20px 20px no-repeat,
    linear-gradient(rgba(107, 165, 255, .31), rgba(107, 165, 255, .31)) 38% 61% / 20px 20px no-repeat,
    linear-gradient(rgba(95, 151, 255, .25), rgba(95, 151, 255, .25)) 82% 78% / 20px 20px no-repeat,
    linear-gradient(rgba(107, 165, 255, .21), rgba(107, 165, 255, .21)) 7% 84% / 20px 20px no-repeat !important;
  opacity: .58 !important;
  animation: builder-grid-sparks 2.8s ease-in-out infinite alternate !important;
}

.builder-effect-canvas {
  opacity: 1 !important;
  mix-blend-mode: screen !important;
}

/* The source builder uses a readable glass layer. Keep the navy base visible
   through cards instead of stacking opaque legacy panels over the grid. */
.topbar {
  background: rgba(14, 25, 55, .58) !important;
  border-bottom-color: rgba(172, 201, 241, .16) !important;
  box-shadow: 0 10px 30px rgba(2, 6, 23, .14) !important;
}

.notice {
  background: linear-gradient(90deg, rgba(245, 158, 11, .08), rgba(251, 191, 36, .16)) !important;
  border-bottom-color: rgba(245, 190, 90, .22) !important;
  color: #e5edf9 !important;
}

footer {
  background: rgba(14, 25, 55, .64) !important;
  border-top-color: rgba(172, 201, 241, .14) !important;
  color: #9badc7 !important;
}

.card,
.selector-strip,
.project-empty-prompt,
.table-card,
.recent-card,
.machine-card {
  background: linear-gradient(145deg, rgba(34, 62, 122, .52), rgba(15, 31, 70, .37)) !important;
  border-color: rgba(169, 196, 236, .24) !important;
  box-shadow: 0 18px 55px rgba(2, 6, 23, .16), inset 0 1px rgba(255, 255, 255, .06) !important;
  backdrop-filter: blur(18px) saturate(125%) !important;
}

.selector-block,
.license-target-field,
.lock-mode-picker,
.build-balance-list,
.machine-choice,
.picker-trigger,
.dna-input-wrap,
.bulk-fields,
.summary-box {
  background-color: rgba(22, 43, 88, .26) !important;
  border-color: rgba(169, 196, 236, .22) !important;
}

.selector-strip {
  background: linear-gradient(145deg, rgba(34, 62, 122, .46), rgba(15, 31, 70, .31)) !important;
  border-color: rgba(169, 196, 236, .24) !important;
}

.selector-strip .selector-block,
.selector-strip .license-target-field,
.selector-strip .lock-mode-picker,
.selector-strip .build-balance-list {
  background-color: rgba(22, 43, 88, .23) !important;
}

.topbar .nav-tab,
.topbar .topbar-title,
.topbar .account-trigger,
.topbar .account-email {
  color: rgba(235, 243, 255, .88) !important;
}

.table-card th,
.table-card td,
.section-title p,
.card-head p,
.field-hint {
  color: rgba(211, 224, 245, .86) !important;
}

/* Source navbar typography: the upstream header uses a gradient wordmark and
   compact Inter tabs, rather than the legacy small white title. */
@media (min-width: 821px) {
  .topbar-title {
    display: inline-flex !important;
    align-items: center !important;
    flex: 0 0 auto !important;
    min-width: 182px !important;
    color: transparent !important;
    background: linear-gradient(90deg, var(--primary-color, #3b82f6), var(--secondary-color, #6366f1)) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    font-family: var(--font-sans, Inter, "Segoe UI", system-ui, sans-serif) !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
  }

  .desktop-nav {
    top: 0 !important;
    height: 60px !important;
    gap: 4px !important;
  }

  .desktop-nav .nav-tab {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 44px !important;
    padding: 8px 12px !important;
    border-radius: 10px !important;
    font-family: var(--font-sans, Inter, "Segoe UI", system-ui, sans-serif) !important;
    font-size: .92rem !important;
    font-weight: 500 !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
  }

  .desktop-nav .nav-tab .ui-icon {
    flex: 0 0 auto !important;
    width: 16px !important;
    height: 16px !important;
    stroke-width: 1.8 !important;
  }
}

@media (min-width: 1101px) and (max-width: 1399px) {
  .desktop-nav {
    gap: 0 !important;
  }

  .desktop-nav .nav-tab {
    padding-right: 8px !important;
    padding-left: 8px !important;
    font-size: .84rem !important;
  }
}

/* V11.1.11 - source desktop container geometry. */
@media (min-width: 821px) {
  main.workspace,
  main.workspace:not(:has(#panel-machine.active)),
  main.workspace:has(#panel-machine.active) {
    width: 100% !important;
    max-width: 1600px !important;
    margin-inline: auto !important;
    padding: 16px !important;
    box-sizing: border-box !important;
  }
}

@media (min-width: 1101px) {
  body {
    background:
      radial-gradient(ellipse at 20% 18%, rgba(37, 99, 235, .37), transparent 40%),
      radial-gradient(ellipse at 78% 70%, rgba(79, 70, 229, .27), transparent 46%),
      radial-gradient(ellipse at 48% 45%, rgba(37, 105, 214, .16), transparent 58%),
      #101b3b !important;
  }
}

/* V11.1.9 - final source navbar cascade.  Keep this block last because the
   legacy parity sheets contain older desktop overrides for the same nodes. */
@media (min-width: 821px) {
  .topbar-title {
    min-width: 182px !important;
    color: transparent !important;
    -webkit-text-fill-color: transparent !important;
    background: linear-gradient(to right, var(--primary-color, #3b82f6), var(--secondary-color, #6366f1)) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    font-family: Inter, "SF Pro Text", "Segoe UI", system-ui, sans-serif !important;
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
  }

  .desktop-nav .nav-tab {
    min-height: 44px !important;
    padding: 8px 12px !important;
    border-radius: 10px !important;
    color: rgba(226, 232, 240, .76) !important;
    background: transparent !important;
    font-family: Inter, "SF Pro Text", "Segoe UI", system-ui, sans-serif !important;
    font-size: .92rem !important;
    font-weight: 500 !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
  }

  .desktop-nav .nav-tab.active {
    color: #fff !important;
    background: rgba(59, 130, 246, .11) !important;
    box-shadow: inset 0 -2px 0 var(--primary-color, #3b82f6) !important;
  }

  .desktop-nav .nav-tab .ui-icon {
    width: 16px !important;
    height: 16px !important;
    flex: 0 0 16px !important;
    stroke-width: 1.8 !important;
  }
}

@media (min-width: 1101px) and (max-width: 1399px) {
  .desktop-nav .nav-tab {
    padding-inline: 8px !important;
    font-size: .84rem !important;
  }
}

/* V11.1.14 - final ten-column Actions widths.  This block intentionally
   follows every older desktop/table rule in this file. */
@media (min-width: 821px) {
  #panel-completed table,
  #panel-queued table,
  #panel-processing table {
    min-width: 0 !important;
    table-layout: fixed !important;
  }

  #panel-completed th:nth-child(1), #panel-completed td:nth-child(1),
  #panel-queued th:nth-child(1), #panel-queued td:nth-child(1),
  #panel-processing th:nth-child(1), #panel-processing td:nth-child(1) { width: 8% !important; }
  #panel-completed th:nth-child(2), #panel-completed td:nth-child(2),
  #panel-queued th:nth-child(2), #panel-queued td:nth-child(2),
  #panel-processing th:nth-child(2), #panel-processing td:nth-child(2) { width: 12% !important; }
  #panel-completed th:nth-child(3), #panel-completed td:nth-child(3),
  #panel-queued th:nth-child(3), #panel-queued td:nth-child(3),
  #panel-processing th:nth-child(3), #panel-processing td:nth-child(3) { width: 9% !important; }
  #panel-completed th:nth-child(4), #panel-completed td:nth-child(4),
  #panel-queued th:nth-child(4), #panel-queued td:nth-child(4),
  #panel-processing th:nth-child(4), #panel-processing td:nth-child(4) { width: 9% !important; }
  #panel-completed th:nth-child(5), #panel-completed td:nth-child(5),
  #panel-queued th:nth-child(5), #panel-queued td:nth-child(5),
  #panel-processing th:nth-child(5), #panel-processing td:nth-child(5) { width: 6% !important; }
  #panel-completed th:nth-child(6), #panel-completed td:nth-child(6),
  #panel-queued th:nth-child(6), #panel-queued td:nth-child(6),
  #panel-processing th:nth-child(6), #panel-processing td:nth-child(6) { width: 18% !important; }
  #panel-completed th:nth-child(7), #panel-completed td:nth-child(7),
  #panel-queued th:nth-child(7), #panel-queued td:nth-child(7),
  #panel-processing th:nth-child(7), #panel-processing td:nth-child(7) { width: 12% !important; }
  #panel-completed th:nth-child(8), #panel-completed td:nth-child(8),
  #panel-queued th:nth-child(8), #panel-queued td:nth-child(8),
  #panel-processing th:nth-child(8), #panel-processing td:nth-child(8) { width: 5% !important; }
  #panel-completed th:nth-child(9), #panel-completed td:nth-child(9),
  #panel-queued th:nth-child(9), #panel-queued td:nth-child(9),
  #panel-processing th:nth-child(9), #panel-processing td:nth-child(9) { width: 9% !important; }
  #panel-completed th:nth-child(10), #panel-completed td:nth-child(10),
  #panel-queued th:nth-child(10), #panel-queued td:nth-child(10),
  #panel-processing th:nth-child(10), #panel-processing td:nth-child(10) {
    width: 12% !important;
    min-width: 112px !important;
  }

  #panel-completed td:nth-child(10) .job-actions,
  #panel-queued td:nth-child(10) .job-actions,
  #panel-processing td:nth-child(10) .job-actions {
    gap: 4px !important;
  }
}

/* V11.1.13 - the binary download lives in Actions.  The legacy table rules
   target an 11-column layout, so keep the current ten-column table explicit
   and reserve enough room for all icon actions. */
@media (min-width: 821px) {
  #panel-completed table,
  #panel-queued table,
  #panel-processing table {
    min-width: 0 !important;
    table-layout: fixed !important;
  }

  #panel-completed th:nth-child(1), #panel-completed td:nth-child(1),
  #panel-queued th:nth-child(1), #panel-queued td:nth-child(1),
  #panel-processing th:nth-child(1), #panel-processing td:nth-child(1) { width: 8% !important; }
  #panel-completed th:nth-child(2), #panel-completed td:nth-child(2),
  #panel-queued th:nth-child(2), #panel-queued td:nth-child(2),
  #panel-processing th:nth-child(2), #panel-processing td:nth-child(2) { width: 12% !important; }
  #panel-completed th:nth-child(3), #panel-completed td:nth-child(3),
  #panel-queued th:nth-child(3), #panel-queued td:nth-child(3),
  #panel-processing th:nth-child(3), #panel-processing td:nth-child(3) { width: 10% !important; }
  #panel-completed th:nth-child(4), #panel-completed td:nth-child(4),
  #panel-queued th:nth-child(4), #panel-queued td:nth-child(4),
  #panel-processing th:nth-child(4), #panel-processing td:nth-child(4) { width: 9% !important; }
  #panel-completed th:nth-child(5), #panel-completed td:nth-child(5),
  #panel-queued th:nth-child(5), #panel-queued td:nth-child(5),
  #panel-processing th:nth-child(5), #panel-processing td:nth-child(5) { width: 7% !important; }
  #panel-completed th:nth-child(6), #panel-completed td:nth-child(6),
  #panel-queued th:nth-child(6), #panel-queued td:nth-child(6),
  #panel-processing th:nth-child(6), #panel-processing td:nth-child(6) { width: 17% !important; }
  #panel-completed th:nth-child(7), #panel-completed td:nth-child(7),
  #panel-queued th:nth-child(7), #panel-queued td:nth-child(7),
  #panel-processing th:nth-child(7), #panel-processing td:nth-child(7) { width: 12% !important; }
  #panel-completed th:nth-child(8), #panel-completed td:nth-child(8),
  #panel-queued th:nth-child(8), #panel-queued td:nth-child(8),
  #panel-processing th:nth-child(8), #panel-processing td:nth-child(8) { width: 6% !important; }
  #panel-completed th:nth-child(9), #panel-completed td:nth-child(9),
  #panel-queued th:nth-child(9), #panel-queued td:nth-child(9),
  #panel-processing th:nth-child(9), #panel-processing td:nth-child(9) { width: 9% !important; }
  #panel-completed th:nth-child(10), #panel-completed td:nth-child(10),
  #panel-queued th:nth-child(10), #panel-queued td:nth-child(10),
  #panel-processing th:nth-child(10), #panel-processing td:nth-child(10) {
    width: 10% !important;
    min-width: 112px !important;
  }
}

/* V11.1.13 - the dashboard keeps BIN and log/delete controls in one Actions
   cell. Override the retired eleven-column widths after every legacy rule. */
@media (min-width: 821px) {
  #panel-completed table,
  #panel-queued table,
  #panel-processing table {
    min-width: 0 !important;
  }

  #panel-completed th:nth-child(1), #panel-completed td:nth-child(1),
  #panel-queued th:nth-child(1), #panel-queued td:nth-child(1),
  #panel-processing th:nth-child(1), #panel-processing td:nth-child(1) { width: 8% !important; }
  #panel-completed th:nth-child(2), #panel-completed td:nth-child(2),
  #panel-queued th:nth-child(2), #panel-queued td:nth-child(2),
  #panel-processing th:nth-child(2), #panel-processing td:nth-child(2) { width: 12% !important; }
  #panel-completed th:nth-child(3), #panel-completed td:nth-child(3),
  #panel-queued th:nth-child(3), #panel-queued td:nth-child(3),
  #panel-processing th:nth-child(3), #panel-processing td:nth-child(3) { width: 9% !important; }
  #panel-completed th:nth-child(4), #panel-completed td:nth-child(4),
  #panel-queued th:nth-child(4), #panel-queued td:nth-child(4),
  #panel-processing th:nth-child(4), #panel-processing td:nth-child(4) { width: 9% !important; }
  #panel-completed th:nth-child(5), #panel-completed td:nth-child(5),
  #panel-queued th:nth-child(5), #panel-queued td:nth-child(5),
  #panel-processing th:nth-child(5), #panel-processing td:nth-child(5) { width: 6% !important; }
  #panel-completed th:nth-child(6), #panel-completed td:nth-child(6),
  #panel-queued th:nth-child(6), #panel-queued td:nth-child(6),
  #panel-processing th:nth-child(6), #panel-processing td:nth-child(6) { width: 18% !important; }
  #panel-completed th:nth-child(7), #panel-completed td:nth-child(7),
  #panel-queued th:nth-child(7), #panel-queued td:nth-child(7),
  #panel-processing th:nth-child(7), #panel-processing td:nth-child(7) { width: 12% !important; }
  #panel-completed th:nth-child(8), #panel-completed td:nth-child(8),
  #panel-queued th:nth-child(8), #panel-queued td:nth-child(8),
  #panel-processing th:nth-child(8), #panel-processing td:nth-child(8) { width: 5% !important; }
  #panel-completed th:nth-child(9), #panel-completed td:nth-child(9),
  #panel-queued th:nth-child(9), #panel-queued td:nth-child(9),
  #panel-processing th:nth-child(9), #panel-processing td:nth-child(9) { width: 9% !important; }
  #panel-completed th:nth-child(10), #panel-completed td:nth-child(10),
  #panel-queued th:nth-child(10), #panel-queued td:nth-child(10),
  #panel-processing th:nth-child(10), #panel-processing td:nth-child(10) {
    width: 12% !important;
    min-width: 112px !important;
  }

  #panel-completed td:nth-child(10) .job-actions,
  #panel-queued td:nth-child(10) .job-actions,
  #panel-processing td:nth-child(10) .job-actions {
    gap: 4px !important;
  }
}

/* V11.1.12 - final desktop parity pass.
   The legacy layers above predate the source glass layout and intentionally
   remain for older routes. Keep this block last so the authenticated desktop
   dashboard has one deterministic cascade. */
@media (min-width: 821px) {
  html,
  body {
    background-color: #080c14 !important;
  }

  body {
    background: #080c14 !important;
    font-family: var(--font-sans, Inter, "Segoe UI", system-ui, sans-serif) !important;
    font-weight: 400 !important;
  }

  .app-shell,
  .workspace,
  .workspace button,
  .workspace input,
  .workspace select,
  .workspace textarea,
  .workspace table {
    font-family: var(--font-sans, Inter, "Segoe UI", system-ui, sans-serif) !important;
  }

  /* The animated canvas owns the grid and meteor signals. Fixed pseudo
     layers were stacking several opaque blue fields over it. */
  body::before,
  body::after,
  html[data-theme="grid"] .app-shell::before,
  html[data-theme="grid"] .app-shell::after {
    content: none !important;
    display: none !important;
    background: none !important;
    animation: none !important;
    opacity: 0 !important;
  }

  .builder-effect-canvas {
    opacity: .58 !important;
    mix-blend-mode: screen !important;
  }

  .app-shell {
    background: transparent !important;
    padding-top: 60px !important;
  }

  .topbar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1000 !important;
    min-height: 60px !important;
    height: 60px !important;
    padding: 0 16px !important;
    gap: 16px !important;
    background: rgba(11, 15, 28, .88) !important;
    border-bottom: 1px solid rgba(255, 255, 255, .08) !important;
    box-shadow: 0 10px 30px rgba(2, 6, 23, .18) !important;
    backdrop-filter: blur(20px) saturate(135%) !important;
  }

  .topbar-title {
    flex: 0 0 auto !important;
    min-width: 182px !important;
    margin: 0 !important;
    color: transparent !important;
    -webkit-text-fill-color: transparent !important;
    background: linear-gradient(to right, var(--primary-color, #3b82f6), var(--secondary-color, #6366f1)) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    font-family: var(--font-sans, Inter, "Segoe UI", system-ui, sans-serif) !important;
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
    white-space: nowrap !important;
  }

  .desktop-nav {
    position: absolute !important;
    top: 0 !important;
    left: 50% !important;
    height: 60px !important;
    margin: 0 !important;
    gap: 4px !important;
    align-items: center !important;
    justify-content: center !important;
    transform: translateX(-50%) !important;
  }

  .desktop-nav .nav-tab {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 44px !important;
    padding: 8px 12px !important;
    border: 1px solid transparent !important;
    border-radius: 10px !important;
    color: rgba(226, 232, 240, .76) !important;
    background: transparent !important;
    font-family: var(--font-sans, Inter, "Segoe UI", system-ui, sans-serif) !important;
    font-size: .92rem !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
  }

  .desktop-nav .nav-tab:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, .06) !important;
  }

  .desktop-nav .nav-tab.active {
    color: #fff !important;
    background: rgba(var(--primary-rgb, 59, 130, 246), .11) !important;
    box-shadow: inset 0 -2px 0 var(--primary-color, #3b82f6) !important;
  }

  .desktop-nav .nav-tab .ui-icon {
    width: 16px !important;
    height: 16px !important;
    flex: 0 0 16px !important;
    stroke-width: 1.8 !important;
  }

  .topbar-spacer {
    display: none !important;
  }

  .topbar > .account-trigger {
    margin-left: auto !important;
  }

  .notice {
    min-height: 40px !important;
    padding: 10px 16px !important;
    background: rgba(11, 15, 28, .36) !important;
    border-bottom: 1px solid rgba(255, 255, 255, .07) !important;
    color: rgba(226, 232, 240, .82) !important;
    backdrop-filter: blur(14px) saturate(120%) !important;
  }

  main.workspace,
  main.workspace:not(:has(#panel-machine.active)),
  main.workspace:has(#panel-machine.active) {
    width: min(1600px, calc(100% - 120px)) !important;
    max-width: 1600px !important;
    margin: 0 auto !important;
    padding: 16px !important;
    box-sizing: border-box !important;
  }

  .card,
  .selector-strip,
  .project-empty-prompt,
  .table-card,
  .recent-card,
  .machine-card {
    background: rgba(15, 23, 42, .34) !important;
    border-color: rgba(255, 255, 255, .12) !important;
    box-shadow: 0 18px 55px rgba(2, 6, 23, .2), inset 0 1px rgba(255, 255, 255, .06) !important;
    backdrop-filter: blur(18px) saturate(125%) !important;
  }

  .selector-strip,
  .selector-strip .selector-block,
  .selector-strip .license-target-field,
  .selector-strip .lock-mode-picker,
  .selector-strip .build-balance-list {
    background-color: rgba(15, 23, 42, .24) !important;
  }

  /* Source-style translucent selected order controls. */
  .project-native .build-order-card .order-tab,
  .build-order-card .order-tab {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    min-height: 44px !important;
    padding: 8px 12px !important;
    border: 1px solid rgba(255, 255, 255, .10) !important;
    border-radius: 6px !important;
    background: rgba(255, 255, 255, .03) !important;
    color: rgba(226, 232, 240, .78) !important;
    font-family: var(--font-sans, Inter, "Segoe UI", system-ui, sans-serif) !important;
    font-size: .92rem !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
    box-shadow: none !important;
  }

  .project-native .build-order-card .order-tab.active,
  .build-order-card .order-tab.active {
    color: #fff !important;
    background: linear-gradient(to right, rgba(var(--primary-rgb, 59, 130, 246), .20), rgba(var(--secondary-rgb, 99, 102, 241), .20)) !important;
    border-color: var(--primary-color, #3b82f6) !important;
    box-shadow: 0 0 0 1px var(--primary-color, #3b82f6), 0 4px 12px rgba(var(--primary-rgb, 59, 130, 246), .22) !important;
  }

  .build-order-card .order-tab .ui-icon {
    width: 16px !important;
    height: 16px !important;
    flex: 0 0 16px !important;
    stroke-width: 1.8 !important;
  }

  /* Completed/queued/processing tables follow the source dense desktop
     rhythm instead of the older oversized fixed-width cells. */
  #panel-completed .table-card,
  #panel-queued .table-card,
  #panel-processing .table-card {
    overflow: hidden !important;
  }

  #panel-completed .table-scroll,
  #panel-queued .table-scroll,
  #panel-processing .table-scroll {
    overflow-x: auto !important;
  }

  #panel-completed table,
  #panel-queued table,
  #panel-processing table {
    width: 100% !important;
    min-width: 0 !important;
    table-layout: fixed !important;
    border-collapse: collapse !important;
    font-family: var(--font-mono, "JetBrains Mono", Consolas, monospace) !important;
    font-size: clamp(.75rem, .52rem + .28vw, .9rem) !important;
    border-spacing: 0 !important;
    background: rgba(var(--surface-rgb, 15, 23, 42), .34) !important;
    border-radius: 10px !important;
  }

  #panel-completed th:nth-child(1), #panel-completed td:nth-child(1),
  #panel-queued th:nth-child(1), #panel-queued td:nth-child(1),
  #panel-processing th:nth-child(1), #panel-processing td:nth-child(1) { width: 9% !important; }
  #panel-completed th:nth-child(2), #panel-completed td:nth-child(2),
  #panel-queued th:nth-child(2), #panel-queued td:nth-child(2),
  #panel-processing th:nth-child(2), #panel-processing td:nth-child(2) { width: 14% !important; }
  #panel-completed th:nth-child(3), #panel-completed td:nth-child(3),
  #panel-queued th:nth-child(3), #panel-queued td:nth-child(3),
  #panel-processing th:nth-child(3), #panel-processing td:nth-child(3) { width: 10% !important; }
  #panel-completed th:nth-child(4), #panel-completed td:nth-child(4),
  #panel-queued th:nth-child(4), #panel-queued td:nth-child(4),
  #panel-processing th:nth-child(4), #panel-processing td:nth-child(4) { width: 10% !important; }
  #panel-completed th:nth-child(5), #panel-completed td:nth-child(5),
  #panel-queued th:nth-child(5), #panel-queued td:nth-child(5),
  #panel-processing th:nth-child(5), #panel-processing td:nth-child(5) { width: 7% !important; }
  #panel-completed th:nth-child(6), #panel-completed td:nth-child(6),
  #panel-queued th:nth-child(6), #panel-queued td:nth-child(6),
  #panel-processing th:nth-child(6), #panel-processing td:nth-child(6) { width: 18% !important; }
  #panel-completed th:nth-child(7), #panel-completed td:nth-child(7),
  #panel-queued th:nth-child(7), #panel-queued td:nth-child(7),
  #panel-processing th:nth-child(7), #panel-processing td:nth-child(7) { width: 13% !important; }
  #panel-completed th:nth-child(8), #panel-completed td:nth-child(8),
  #panel-queued th:nth-child(8), #panel-queued td:nth-child(8),
  #panel-processing th:nth-child(8), #panel-processing td:nth-child(8) { width: 6% !important; }
  #panel-completed th:nth-child(9), #panel-completed td:nth-child(9),
  #panel-queued th:nth-child(9), #panel-queued td:nth-child(9),
  #panel-processing th:nth-child(9), #panel-processing td:nth-child(9) { width: 7% !important; }
  #panel-completed th:nth-child(10), #panel-completed td:nth-child(10),
  #panel-queued th:nth-child(10), #panel-queued td:nth-child(10),
  #panel-processing th:nth-child(10), #panel-processing td:nth-child(10) { width: 6% !important; }
  #panel-completed th:nth-child(11), #panel-completed td:nth-child(11),
  #panel-queued th:nth-child(11), #panel-queued td:nth-child(11),
  #panel-processing th:nth-child(11), #panel-processing td:nth-child(11) { width: 11% !important; min-width: 112px !important; }

  #panel-completed th,
  #panel-completed td,
  #panel-queued th,
  #panel-queued td,
  #panel-processing th,
  #panel-processing td {
    padding: 8px clamp(4px, .34vw, 7px) !important;
    vertical-align: middle !important;
    border-bottom: 1px solid rgba(255, 255, 255, .08) !important;
    white-space: nowrap !important;
    text-align: center !important;
  }

  #panel-completed th,
  #panel-queued th,
  #panel-processing th {
    color: rgba(148, 163, 184, .92) !important;
    font-size: .70rem !important;
    font-weight: 600 !important;
    letter-spacing: .04em !important;
  }

  #panel-completed td,
  #panel-queued td,
  #panel-processing td {
    color: rgba(226, 232, 240, .86) !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  #panel-completed td:first-child,
  #panel-queued td:first-child,
  #panel-processing td:first-child,
  #panel-completed td:nth-child(6),
  #panel-queued td:nth-child(6),
  #panel-processing td:nth-child(6) {
    white-space: normal !important;
  }

  #panel-completed td:first-child code,
  #panel-queued td:first-child code,
  #panel-processing td:first-child code,
  #panel-completed .dna-cell code,
  #panel-queued .dna-cell code,
  #panel-processing .dna-cell code {
    white-space: nowrap !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
    display: inline-block !important;
  }

  #panel-completed .time-stack,
  #panel-queued .time-stack,
  #panel-processing .time-stack {
    gap: 1px !important;
    line-height: 1.18 !important;
    font-size: .78rem !important;
  }

  #panel-completed .progress-line,
  #panel-queued .progress-line,
  #panel-processing .progress-line {
    gap: 7px !important;
    margin-top: 3px !important;
    font-size: .78rem !important;
  }

  #panel-completed .job-actions,
  #panel-queued .job-actions,
  #panel-processing .job-actions {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    width: max-content !important;
    max-width: none !important;
    flex-wrap: nowrap !important;
  }

  /* Archived/source action controls are icon-only, neutral and translucent. */
  #panel-completed .job-action-icon,
  #panel-queued .job-action-icon,
  #panel-processing .job-action-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 32px !important;
    min-width: 32px !important;
    max-width: 32px !important;
    height: 32px !important;
    min-height: 32px !important;
    padding: 6px !important;
    border: 1px solid rgba(255, 255, 255, .10) !important;
    border-radius: 6px !important;
    background: rgba(255, 255, 255, .03) !important;
    color: #e0e0e0 !important;
    line-height: 1 !important;
    text-decoration: none !important;
  }

  #panel-completed .job-action-icon:hover,
  #panel-queued .job-action-icon:hover,
  #panel-processing .job-action-icon:hover {
    border-color: var(--primary-color, #3b82f6) !important;
    background: rgba(var(--primary-rgb, 59, 130, 246), .15) !important;
    color: #fff !important;
  }

  #panel-completed .job-action-icon.delete-job,
  #panel-queued .job-action-icon.delete-job,
  #panel-processing .job-action-icon.delete-job {
    border-color: rgba(255, 255, 255, .10) !important;
    background: transparent !important;
    color: #e0e0e0 !important;
  }

  #panel-completed .job-action-icon .ui-icon,
  #panel-queued .job-action-icon .ui-icon,
  #panel-processing .job-action-icon .ui-icon {
    width: 15px !important;
    height: 15px !important;
    flex: 0 0 15px !important;
  }

  #panel-completed .note-cell,
  #panel-queued .note-cell,
  #panel-processing .note-cell {
    min-width: 128px !important;
    max-width: 220px !important;
    color: rgba(203, 213, 225, .82) !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }
}

@media (min-width: 821px) and (max-width: 1100px) {
  .desktop-nav {
    position: static !important;
    height: auto !important;
    transform: none !important;
    flex: 1 1 auto !important;
    justify-content: center !important;
  }
}

@media (min-width: 1101px) and (max-width: 1399px) {
  .desktop-nav .nav-tab {
    padding-inline: 8px !important;
    font-size: .84rem !important;
  }
}

/* V11.1.15 - last cascade for the ten-column dashboard table. */
@media (min-width: 821px) {
  #panel-completed table,
  #panel-queued table,
  #panel-processing table {
    min-width: 0 !important;
    table-layout: fixed !important;
  }
  #panel-completed th:nth-child(1), #panel-completed td:nth-child(1),
  #panel-queued th:nth-child(1), #panel-queued td:nth-child(1),
  #panel-processing th:nth-child(1), #panel-processing td:nth-child(1) { width: 8% !important; }
  #panel-completed th:nth-child(2), #panel-completed td:nth-child(2),
  #panel-queued th:nth-child(2), #panel-queued td:nth-child(2),
  #panel-processing th:nth-child(2), #panel-processing td:nth-child(2) { width: 12% !important; }
  #panel-completed th:nth-child(3), #panel-completed td:nth-child(3),
  #panel-queued th:nth-child(3), #panel-queued td:nth-child(3),
  #panel-processing th:nth-child(3), #panel-processing td:nth-child(3) { width: 9% !important; }
  #panel-completed th:nth-child(4), #panel-completed td:nth-child(4),
  #panel-queued th:nth-child(4), #panel-queued td:nth-child(4),
  #panel-processing th:nth-child(4), #panel-processing td:nth-child(4) { width: 9% !important; }
  #panel-completed th:nth-child(5), #panel-completed td:nth-child(5),
  #panel-queued th:nth-child(5), #panel-queued td:nth-child(5),
  #panel-processing th:nth-child(5), #panel-processing td:nth-child(5) { width: 6% !important; }
  #panel-completed th:nth-child(6), #panel-completed td:nth-child(6),
  #panel-queued th:nth-child(6), #panel-queued td:nth-child(6),
  #panel-processing th:nth-child(6), #panel-processing td:nth-child(6) { width: 18% !important; }
  #panel-completed th:nth-child(7), #panel-completed td:nth-child(7),
  #panel-queued th:nth-child(7), #panel-queued td:nth-child(7),
  #panel-processing th:nth-child(7), #panel-processing td:nth-child(7) { width: 12% !important; }
  #panel-completed th:nth-child(8), #panel-completed td:nth-child(8),
  #panel-queued th:nth-child(8), #panel-queued td:nth-child(8),
  #panel-processing th:nth-child(8), #panel-processing td:nth-child(8) { width: 5% !important; }
  #panel-completed th:nth-child(9), #panel-completed td:nth-child(9),
  #panel-queued th:nth-child(9), #panel-queued td:nth-child(9),
  #panel-processing th:nth-child(9), #panel-processing td:nth-child(9) { width: 9% !important; }
  #panel-completed th:nth-child(10), #panel-completed td:nth-child(10),
  #panel-queued th:nth-child(10), #panel-queued td:nth-child(10),
  #panel-processing th:nth-child(10), #panel-processing td:nth-child(10) {
    width: 12% !important;
    min-width: 112px !important;
  }
  #panel-completed td:nth-child(10) .job-actions,
  #panel-queued td:nth-child(10) .job-actions,
  #panel-processing td:nth-child(10) .job-actions { gap: 4px !important; }
}

/* V11.1.16 - use the captain_* selector typography as the desktop UI
   baseline.  The legacy cascade left those labels in JetBrains Mono while
   the surrounding page stayed on Inter, which made the header look heavier
   even at the same nominal font size. */
:root {
  --builder-ui-font: "JetBrains Mono", "Cascadia Code", Consolas, monospace;
}

html,
body,
body button,
body input,
body textarea,
body select,
body option {
  font-family: var(--builder-ui-font) !important;
}

/* Some legacy rules set Inter directly on the notice, footer, order tabs,
   and headings.  Keep every visible app-shell text node on the same baseline
   while leaving SVG icon geometry untouched. */
.app-shell,
.app-shell *:not(svg):not(path) {
  font-family: var(--builder-ui-font) !important;
}

body {
  font-weight: 400 !important;
}

.topbar,
.topbar .topbar-title,
.topbar .desktop-nav,
.topbar .desktop-nav .nav-tab,
.topbar .account-trigger,
.topbar .account-email,
.topbar .ui-icon {
  font-family: var(--builder-ui-font) !important;
}

.desktop-nav .nav-tab {
  font-weight: 400 !important;
}

.workspace,
.workspace button,
.workspace input,
.workspace select,
.workspace textarea,
.workspace table,
.workspace p,
.workspace label,
.workspace dt,
.workspace dd,
.workspace th,
.workspace td,
.workspace .inline-device,
.workspace .inline-device * {
  font-family: var(--builder-ui-font) !important;
}

.workspace .inline-device,
.workspace .inline-device label,
.workspace .inline-device input,
.workspace .inline-device span,
.project-native .inline-device,
.project-native .inline-device label {
  font-weight: 400 !important;
}

@media (min-width: 821px) {
  main.workspace,
  main.workspace:not(:has(#panel-machine.active)),
  main.workspace:has(#panel-machine.active) {
    /* Match the source .container: full available width up to 1600px.
       The 16px inner padding supplies the source desktop gutter; do not
       subtract another fixed 120px or the canvas becomes visibly narrow. */
    width: min(1600px, 100%) !important;
    max-width: 1600px !important;
    margin-inline: auto !important;
    padding-inline: 16px !important;
  }
}

/* V11.1.20 - final desktop header alignment.  The selector headings use
   JetBrains Mono at a strong weight; the desktop navigation should have the
   same readable baseline instead of the legacy 400-weight override.  Keep
   the local Cloud Builder wordmark while retaining the source-style centered
   navigation and right-aligned account control. */
@media (min-width: 821px) {
  /* One step larger than the CAP-matched baseline while preserving the
     compact desktop header geometry. */
  .desktop-nav .nav-tab {
    font-size: 14px !important;
  }

  .topbar {
    background: rgba(25, 42, 82, .72) !important;
    padding-inline: max(16px, calc((100% - 1600px) / 2)) !important;
  }

  .topbar-title {
    position: relative !important;
    z-index: 1 !important;
    min-width: 182px !important;
    margin: 0 !important;
    align-self: center !important;
    font-family: var(--builder-ui-font) !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
    white-space: nowrap !important;
  }

  .desktop-nav {
    position: absolute !important;
    top: 0 !important;
    left: 50% !important;
    height: 60px !important;
    margin: 0 !important;
    transform: translateX(-50%) !important;
  }

  .desktop-nav .nav-tab {
    min-height: 44px !important;
    padding: 8px 10px !important;
    font-family: var(--builder-ui-font) !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
    color: rgba(235, 243, 255, .96) !important;
  }

  .desktop-nav .nav-tab:hover,
  .desktop-nav .nav-tab.active {
    color: #fff !important;
  }

  .topbar > .account-trigger:not(.admin-avatar) {
    margin-left: auto !important;
    margin-right: 6px !important;
    width: auto !important;
    min-width: 0 !important;
    height: 42px !important;
    min-height: 42px !important;
    padding: 2px 10px 2px 0 !important;
    gap: 8px !important;
    border-radius: 24px !important;
    font-family: var(--builder-ui-font) !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 1 !important;
  }

  .topbar > .account-trigger:not(.admin-avatar) .account-avatar-image {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
    flex: 0 0 42px !important;
    margin: -2px 0 !important;
    border-radius: 50% !important;
    clip-path: circle(50% at 50% 50%) !important;
  }

  .topbar > .account-trigger:not(.admin-avatar) .account-name {
    max-width: 160px !important;
    font-family: var(--builder-ui-font) !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 1 !important;
  }
}

/* V11.1.21 - lift the desktop grid readability without hiding its animated
   cells behind an opaque panel. */
body {
  background:
    radial-gradient(ellipse at 20% 18%, rgba(59, 130, 246, .48), transparent 40%),
    radial-gradient(ellipse at 78% 70%, rgba(99, 102, 241, .36), transparent 46%),
    radial-gradient(ellipse at 48% 45%, rgba(64, 130, 235, .23), transparent 58%),
    #152752 !important;
}

body::before {
  background:
    linear-gradient(rgba(173, 204, 255, .29) 1px, transparent 1px),
    linear-gradient(90deg, rgba(173, 204, 255, .29) 1px, transparent 1px),
    radial-gradient(ellipse at 22% 28%, rgba(70, 143, 255, .39), transparent 42%),
    radial-gradient(ellipse at 76% 42%, rgba(120, 125, 255, .32), transparent 44%),
    radial-gradient(ellipse at 48% 82%, rgba(64, 142, 238, .24), transparent 48%) !important;
  opacity: .82 !important;
}

body::after {
  opacity: .64 !important;
}

/* V11.1.22 - final desktop parity correction.
   Keep the animated grid/canvas visible through a neutral glass layer.  The
   previous readability pass reintroduced opaque blue pseudo-layers and a
   monospace font across the whole app; the source uses Inter for chrome and
   mono only for the data table.  The ten-column table also needs a real
   action column wide enough for download/log/delete without overflow. */
@media (min-width: 821px) {
  html,
  body {
    background: #080c14 !important;
    color: rgba(226, 232, 240, .90) !important;
    font-family: Inter, "SF Pro Text", "Segoe UI", system-ui, sans-serif !important;
  }

  body::before,
  body::after,
  html[data-theme="grid"] .app-shell::before,
  html[data-theme="grid"] .app-shell::after {
    content: none !important;
    display: none !important;
    background: none !important;
    animation: none !important;
    opacity: 0 !important;
  }

  .builder-effect-canvas {
    opacity: .58 !important;
    mix-blend-mode: screen !important;
  }

  .app-shell,
  .app-shell button,
  .app-shell input,
  .app-shell select,
  .app-shell textarea,
  .app-shell label,
  .app-shell p,
  .app-shell h1,
  .app-shell h2,
  .app-shell h3,
  .app-shell dt,
  .app-shell dd {
    font-family: Inter, "SF Pro Text", "Segoe UI", system-ui, sans-serif !important;
  }

  .topbar {
    background: rgba(11, 15, 28, .34) !important;
    border-bottom-color: rgba(255, 255, 255, .10) !important;
    box-shadow: 0 10px 30px rgba(2, 6, 23, .12) !important;
    backdrop-filter: blur(20px) saturate(135%) !important;
  }

  .topbar-title {
    font-family: Inter, "SF Pro Text", "Segoe UI", system-ui, sans-serif !important;
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    line-height: 1 !important;
  }

  .desktop-nav .nav-tab {
    font-family: Inter, "SF Pro Text", "Segoe UI", system-ui, sans-serif !important;
    font-size: .92rem !important;
    font-weight: 400 !important;
  }

  .workspace table {
    min-width: 980px !important;
    width: 100% !important;
    table-layout: fixed !important;
    font-family: var(--font-mono, "JetBrains Mono", Consolas, monospace) !important;
  }

  /* Percentages sum to 100%; note and actions each retain enough room for
     source-style wrapping and the three 32px icon controls. */
  #panel-completed th:nth-child(1), #panel-completed td:nth-child(1),
  #panel-queued th:nth-child(1), #panel-queued td:nth-child(1),
  #panel-processing th:nth-child(1), #panel-processing td:nth-child(1) { width: 8% !important; }
  #panel-completed th:nth-child(2), #panel-completed td:nth-child(2),
  #panel-queued th:nth-child(2), #panel-queued td:nth-child(2),
  #panel-processing th:nth-child(2), #panel-processing td:nth-child(2) { width: 11% !important; }
  #panel-completed th:nth-child(3), #panel-completed td:nth-child(3),
  #panel-queued th:nth-child(3), #panel-queued td:nth-child(3),
  #panel-processing th:nth-child(3), #panel-processing td:nth-child(3) { width: 9% !important; }
  #panel-completed th:nth-child(4), #panel-completed td:nth-child(4),
  #panel-queued th:nth-child(4), #panel-queued td:nth-child(4),
  #panel-processing th:nth-child(4), #panel-processing td:nth-child(4) { width: 9% !important; }
  #panel-completed th:nth-child(5), #panel-completed td:nth-child(5),
  #panel-queued th:nth-child(5), #panel-queued td:nth-child(5),
  #panel-processing th:nth-child(5), #panel-processing td:nth-child(5) { width: 6% !important; }
  #panel-completed th:nth-child(6), #panel-completed td:nth-child(6),
  #panel-queued th:nth-child(6), #panel-queued td:nth-child(6),
  #panel-processing th:nth-child(6), #panel-processing td:nth-child(6) { width: 17% !important; }
  #panel-completed th:nth-child(7), #panel-completed td:nth-child(7),
  #panel-queued th:nth-child(7), #panel-queued td:nth-child(7),
  #panel-processing th:nth-child(7), #panel-processing td:nth-child(7) { width: 11% !important; }
  #panel-completed th:nth-child(8), #panel-completed td:nth-child(8),
  #panel-queued th:nth-child(8), #panel-queued td:nth-child(8),
  #panel-processing th:nth-child(8), #panel-processing td:nth-child(8) { width: 5% !important; }
  #panel-completed th:nth-child(9), #panel-completed td:nth-child(9),
  #panel-queued th:nth-child(9), #panel-queued td:nth-child(9),
  #panel-processing th:nth-child(9), #panel-processing td:nth-child(9) {
    width: 12% !important;
    min-width: 128px !important;
  }
  #panel-completed th:nth-child(10), #panel-completed td:nth-child(10),
  #panel-queued th:nth-child(10), #panel-queued td:nth-child(10),
  #panel-processing th:nth-child(10), #panel-processing td:nth-child(10) {
    width: 12% !important;
    min-width: 112px !important;
  }

  #panel-completed .job-actions,
  #panel-queued .job-actions,
  #panel-processing .job-actions {
    width: 100% !important;
    max-width: none !important;
    justify-content: center !important;
    gap: 4px !important;
  }
}

/* V11.1.23 - final source parity for build-mode controls and selector glass.
   Keep this after the global desktop readability block so legacy grid rules
   cannot turn SINGLE/BULK back into two opaque blue cards. */
.project-native .build-order-card > .order-tabs,
.build-order-card > .order-tabs {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 4px !important;
  min-width: 0 !important;
  min-height: 60px !important;
  margin: 0 !important;
  padding: 8px 24px !important;
  border-bottom: 1px solid rgba(255, 255, 255, .08) !important;
  background: transparent !important;
}

.project-native .build-order-card .order-tab,
.build-order-card .order-tab {
  position: relative !important;
  display: inline-flex !important;
  flex: 0 0 auto !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  width: auto !important;
  min-width: 0 !important;
  min-height: 44px !important;
  margin: 0 !important;
  padding: 8px 12px !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: transparent !important;
  color: rgba(226, 232, 240, .76) !important;
  font-family: var(--builder-ui-font, "JetBrains Mono", Consolas, monospace) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  box-shadow: none !important;
  transition: color .18s ease, background-color .18s ease, box-shadow .18s ease !important;
}

.project-native .build-order-card .order-tab:hover:not(.active),
.build-order-card .order-tab:hover:not(.active) {
  color: #fff !important;
  background: rgba(255, 255, 255, .067) !important;
}

.project-native .build-order-card .order-tab.active,
.build-order-card .order-tab.active {
  color: #fff !important;
  background: rgba(59, 130, 246, .11) !important;
  box-shadow: inset 0 -2px 0 var(--primary-color, #3b82f6) !important;
}

/* V11.1.30 - terminal cascade.  Keep this block at the true end of the
   stylesheet so no legacy parity block can collapse the order controls again. */
@media (min-width: 821px) {
  .project-native .build-order-card > .order-tabs,
  .build-order-card > .order-tabs {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    align-items: stretch !important;
    margin: 0 0 12px !important;
    padding: 12px 16px 0 !important;
    border: 0 !important;
    background: transparent !important;
  }

  .project-native .build-order-card .order-tab,
  .build-order-card .order-tab {
    display: flex !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 44px !important;
    box-sizing: border-box !important;
    flex: 1 1 0% !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 9.6px 12.8px !important;
    border: 1px solid var(--primary-color, #3b82f6) !important;
    border-radius: 4px !important;
    background: transparent !important;
    color: var(--primary-color, #3b82f6) !important;
    font-family: var(--builder-ui-font, "JetBrains Mono", Consolas, monospace) !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
  }

  .project-native .build-order-card .order-tab.active,
  .build-order-card .order-tab.active {
    color: #fff !important;
    background: var(--primary-color, #3b82f6) !important;
    border-color: var(--primary-color, #3b82f6) !important;
    box-shadow: none !important;
  }

  main.workspace { padding-bottom: 224px !important; }
  #panel-completed,
  #panel-queued,
  #panel-processing { padding-bottom: 176px !important; }
  #panel-completed .table-scroll,
  #panel-queued .table-scroll,
  #panel-processing .table-scroll {
    padding-bottom: 224px !important;
    scroll-padding-bottom: 224px !important;
  }
}

@media (max-width: 820px) {
  .project-native .build-order-card > .order-tabs,
  .build-order-card > .order-tabs {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .project-native .build-order-card .order-tab,
  .build-order-card .order-tab {
    width: 100% !important;
    min-width: 0 !important;
    white-space: nowrap !important;
  }
  main.workspace { padding-bottom: 176px !important; }
  #panel-completed .table-scroll,
  #panel-queued .table-scroll,
  #panel-processing .table-scroll {
    padding-bottom: 176px !important;
    scroll-padding-bottom: 176px !important;
  }
}

/* V11.1.33 - desktop source typography, three-grid gutter, and readable
   glass background.  The upstream builder ships Inter as a local webfont;
   keep the same face here instead of falling back to Segoe UI or forcing the
   data-oriented JetBrains Mono onto the navigation chrome. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/static/Dx4kXJAl.woff2?__ui=ui-11.1.182") format("woff2");
}

:root {
  --builder-desktop-gutter: 60px;
}

@media (min-width: 821px) {
  html,
  body {
    background: #121b3d !important;
    color: rgba(226, 232, 240, .92) !important;
  }

  /* Restore the source grid as one transparent backdrop layer.  The animated
     canvas remains responsible for the occasional pulse/meteor streaks. */
  body::before {
    content: "" !important;
    display: block !important;
    position: fixed !important;
    inset: -18% !important;
    z-index: 0 !important;
    pointer-events: none !important;
    background-image:
      linear-gradient(rgba(130, 167, 241, .16) 1px, transparent 1px),
      linear-gradient(90deg, rgba(130, 167, 241, .16) 1px, transparent 1px),
      radial-gradient(ellipse at 14% 74%, rgba(38, 102, 224, .28), transparent 44%),
      radial-gradient(ellipse at 76% 38%, rgba(91, 77, 196, .22), transparent 42%) !important;
    background-size: 20px 20px, 20px 20px, 145% 145%, 145% 145% !important;
    background-position: 0 0, 0 0, 0 0, 0 0 !important;
    filter: none !important;
    opacity: .34 !important;
    animation: none !important;
  }

  body::after {
    content: none !important;
    display: none !important;
  }

  .builder-effect-canvas {
    opacity: .86 !important;
    mix-blend-mode: screen !important;
  }

  .topbar {
    min-height: 60px !important;
    height: 60px !important;
    padding: 0 16px !important;
    background: rgba(11, 15, 28, .54) !important;
    border-bottom-color: rgba(255, 255, 255, .14) !important;
    box-shadow: 0 10px 30px rgba(2, 6, 23, .12) !important;
    backdrop-filter: blur(20px) saturate(135%) !important;
  }

  .topbar,
  .topbar .topbar-title,
  .topbar .desktop-nav,
  .topbar .desktop-nav .nav-tab,
  .topbar .account-trigger,
  .topbar .account-name,
  .topbar .account-email {
    font-family: "Inter", "SF Pro Text", "Segoe UI", system-ui, sans-serif !important;
  }

  .topbar-title {
    font-size: 24px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
  }

  .desktop-nav {
    height: 60px !important;
    align-items: center !important;
    gap: 0 !important;
  }

  .desktop-nav .nav-tab {
    min-height: 44px !important;
    padding: 8px 8px !important;
    border: 0 !important;
    border-radius: 10px !important;
    background: transparent !important;
    color: rgba(226, 232, 240, .76) !important;
    font-size: 13.44px !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
    letter-spacing: 0 !important;
  }

  .desktop-nav .nav-tab:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, .067) !important;
  }

  .desktop-nav .nav-tab.active {
    color: #fff !important;
    background: rgba(59, 130, 246, .11) !important;
    box-shadow: inset 0 -2px 0 var(--primary-color, #3b82f6) !important;
  }

  /* Three 20px grid cells on either side of the desktop content. */
  main.workspace,
  main.workspace:not(:has(#panel-machine.active)),
  main.workspace:has(#panel-machine.active) {
    width: min(1600px, 100%) !important;
    max-width: 1600px !important;
    margin-inline: auto !important;
    padding-inline: var(--builder-desktop-gutter) !important;
  }
}

/* V11.1.33 - terminal override after every legacy parity block. */
:root {
  --builder-footer-clearance: 88px;
}

.app-shell {
  padding-bottom: var(--builder-footer-clearance) !important;
}

@media (min-width: 821px) {
  .project-native .build-order-card > .order-tabs,
  .build-order-card > .order-tabs {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    align-items: stretch !important;
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    gap: 8px !important;
    margin: 0 0 12px !important;
    padding: 12px 16px 0 !important;
    border: 0 !important;
    background: transparent !important;
  }

  .project-native .build-order-card .order-tab,
  .build-order-card .order-tab {
    display: flex !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 44px !important;
    box-sizing: border-box !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 9.6px 12.8px !important;
    border: 1px solid var(--primary-color, #3b82f6) !important;
    border-radius: 4px !important;
    background: transparent !important;
    color: var(--primary-color, #3b82f6) !important;
    font-family: var(--builder-ui-font, "JetBrains Mono", Consolas, monospace) !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
  }

  .project-native .build-order-card .order-tab.active,
  .build-order-card .order-tab.active {
    color: #fff !important;
    background: var(--primary-color, #3b82f6) !important;
    border-color: var(--primary-color, #3b82f6) !important;
    box-shadow: none !important;
  }

  main.workspace,
  #panel-completed,
  #panel-queued,
  #panel-processing {
    padding-bottom: var(--builder-footer-clearance) !important;
  }

  #panel-completed .table-scroll,
  #panel-queued .table-scroll,
  #panel-processing .table-scroll {
    padding-bottom: var(--builder-footer-clearance) !important;
    scroll-padding-bottom: var(--builder-footer-clearance) !important;
  }

  #panel-completed .table-card,
  #panel-queued .table-card,
  #panel-processing .table-card {
    margin-bottom: var(--builder-footer-clearance) !important;
  }
}

@media (max-width: 820px) {
  .project-native .build-order-card > .order-tabs,
  .build-order-card > .order-tabs {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .project-native .build-order-card .order-tab,
  .build-order-card .order-tab {
    width: 100% !important;
    min-width: 0 !important;
    white-space: nowrap !important;
  }

  main.workspace,
  #panel-completed,
  #panel-queued,
  #panel-processing,
  #panel-completed .table-scroll,
  #panel-queued .table-scroll,
  #panel-processing .table-scroll {
    padding-bottom: var(--builder-footer-clearance) !important;
    scroll-padding-bottom: var(--builder-footer-clearance) !important;
  }
}

/* V11.1.36 - desktop brightness and transparent glass pass.
   Keep the animated canvas/grid visible while lifting the navy base and
   lowering opaque surface alpha to match the source desktop treatment. */
@media (min-width: 821px) {
  html,
  body {
    background-color: #172844 !important;
    background: #172844 !important;
  }

  body::before {
    opacity: .42 !important;
    background-image:
      linear-gradient(rgba(145, 181, 247, .19) 1px, transparent 1px),
      linear-gradient(90deg, rgba(145, 181, 247, .19) 1px, transparent 1px),
      radial-gradient(ellipse at 14% 74%, rgba(47, 116, 236, .30), transparent 44%),
      radial-gradient(ellipse at 76% 38%, rgba(101, 92, 205, .24), transparent 42%) !important;
  }

  .builder-effect-canvas {
    opacity: .86 !important;
    mix-blend-mode: screen !important;
  }

  .topbar {
    background: rgba(39, 61, 96, .48) !important;
    border-bottom-color: rgba(210, 226, 255, .18) !important;
    box-shadow: 0 10px 30px rgba(2, 6, 23, .10) !important;
    backdrop-filter: blur(20px) saturate(140%) !important;
  }

  .selector-strip,
  .project-empty-prompt,
  .card,
  .table-card,
  .recent-card,
  .machine-card {
    background: linear-gradient(145deg, rgba(33, 61, 112, .46), rgba(20, 39, 79, .28)) !important;
    border-color: rgba(184, 210, 249, .22) !important;
    box-shadow: 0 18px 55px rgba(2, 6, 23, .12), inset 0 1px rgba(255, 255, 255, .07) !important;
    backdrop-filter: blur(18px) saturate(130%) !important;
  }

  .selector-strip .machine-choice,
  .selector-strip .picker-trigger,
  .selector-strip .selector-block,
  .selector-strip .license-target-field,
  .selector-strip .lock-mode-picker,
  .selector-strip .build-balance-list {
    background-color: rgba(28, 52, 96, .30) !important;
    border-color: rgba(184, 210, 249, .18) !important;
  }

  footer {
    background: rgba(25, 44, 79, .58) !important;
    border-top-color: rgba(210, 226, 255, .16) !important;
  }
}

/* V11.1.35 - definitive EOF desktop parity override. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/static/Dx4kXJAl.woff2?__ui=ui-11.1.182") format("woff2");
}

:root { --builder-desktop-gutter: 60px; }

@media (min-width: 821px) {
  html,
  body {
    background: #121b3d !important;
    color: rgba(226, 232, 240, .92) !important;
  }

  body::before {
    content: "" !important;
    display: block !important;
    position: fixed !important;
    inset: -18% !important;
    z-index: 0 !important;
    pointer-events: none !important;
    background-image:
      linear-gradient(rgba(130, 167, 241, .16) 1px, transparent 1px),
      linear-gradient(90deg, rgba(130, 167, 241, .16) 1px, transparent 1px),
      radial-gradient(ellipse at 14% 74%, rgba(38, 102, 224, .28), transparent 44%),
      radial-gradient(ellipse at 76% 38%, rgba(91, 77, 196, .22), transparent 42%) !important;
    background-size: 20px 20px, 20px 20px, 145% 145%, 145% 145% !important;
    background-position: 0 0, 0 0, 0 0, 0 0 !important;
    filter: none !important;
    opacity: .34 !important;
    animation: none !important;
  }

  body::after {
    content: none !important;
    display: none !important;
  }

  .builder-effect-canvas {
    opacity: .86 !important;
    mix-blend-mode: screen !important;
  }

  .topbar {
    min-height: 60px !important;
    height: 60px !important;
    padding: 0 16px !important;
    background: rgba(11, 15, 28, .54) !important;
    border-bottom-color: rgba(255, 255, 255, .14) !important;
    box-shadow: 0 10px 30px rgba(2, 6, 23, .12) !important;
    backdrop-filter: blur(20px) saturate(135%) !important;
  }

  .topbar,
  .topbar .topbar-title,
  .topbar .desktop-nav,
  .topbar .desktop-nav .nav-tab,
  .topbar .account-trigger,
  .topbar .account-name,
  .topbar .account-email {
    font-family: "Inter", "SF Pro Text", "Segoe UI", system-ui, sans-serif !important;
  }

  .topbar-title {
    font-size: 24px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
  }

  .desktop-nav {
    height: 60px !important;
    align-items: center !important;
    gap: 0 !important;
  }

  .desktop-nav .nav-tab {
    min-height: 44px !important;
    padding: 8px !important;
    border: 0 !important;
    border-radius: 10px !important;
    background: transparent !important;
    color: rgba(226, 232, 240, .76) !important;
    font-size: 13.44px !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
    letter-spacing: 0 !important;
  }

  .desktop-nav .nav-tab:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, .067) !important;
  }

  .desktop-nav .nav-tab.active {
    color: #fff !important;
    background: rgba(59, 130, 246, .11) !important;
    box-shadow: inset 0 -2px 0 var(--primary-color, #3b82f6) !important;
  }

  main.workspace,
  main.workspace:not(:has(#panel-machine.active)),
  main.workspace:has(#panel-machine.active) {
    width: min(1600px, 100%) !important;
    max-width: 1600px !important;
    margin-inline: auto !important;
    padding-inline: var(--builder-desktop-gutter) !important;
  }
}

/* V11.1.32 - stable desktop order controls and footer-safe table tail.
   Keep this as the final cascade.  The dashboard footer is fixed, while the
   document and table remain normal-flow content; an explicit tail spacer is
   therefore required so the last Completed row can always scroll above it. */
:root {
  --builder-footer-clearance: 88px;
}

.app-shell {
  padding-bottom: var(--builder-footer-clearance) !important;
}

@media (min-width: 821px) {
  .project-native .build-order-card > .order-tabs,
  .build-order-card > .order-tabs {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    align-items: stretch !important;
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    gap: 8px !important;
    margin: 0 0 12px !important;
    padding: 12px 16px 0 !important;
    border: 0 !important;
    background: transparent !important;
  }

  .project-native .build-order-card .order-tab,
  .build-order-card .order-tab {
    display: flex !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 44px !important;
    box-sizing: border-box !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 9.6px 12.8px !important;
    border: 1px solid var(--primary-color, #3b82f6) !important;
    border-radius: 4px !important;
    background: transparent !important;
    color: var(--primary-color, #3b82f6) !important;
    font-family: var(--builder-ui-font, "JetBrains Mono", Consolas, monospace) !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
  }

  .project-native .build-order-card .order-tab.active,
  .build-order-card .order-tab.active {
    color: #fff !important;
    background: var(--primary-color, #3b82f6) !important;
    border-color: var(--primary-color, #3b82f6) !important;
    box-shadow: none !important;
  }

  main.workspace {
    padding-bottom: var(--builder-footer-clearance) !important;
  }

  #panel-completed,
  #panel-queued,
  #panel-processing {
    padding-bottom: var(--builder-footer-clearance) !important;
  }

  #panel-completed .table-scroll,
  #panel-queued .table-scroll,
  #panel-processing .table-scroll {
    padding-bottom: var(--builder-footer-clearance) !important;
    scroll-padding-bottom: var(--builder-footer-clearance) !important;
  }

  #panel-completed .table-card,
  #panel-queued .table-card,
  #panel-processing .table-card {
    margin-bottom: var(--builder-footer-clearance) !important;
  }
}

@media (max-width: 820px) {
  .project-native .build-order-card > .order-tabs,
  .build-order-card > .order-tabs {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .project-native .build-order-card .order-tab,
  .build-order-card .order-tab {
    width: 100% !important;
    min-width: 0 !important;
    white-space: nowrap !important;
  }

  main.workspace,
  #panel-completed,
  #panel-queued,
  #panel-processing,
  #panel-completed .table-scroll,
  #panel-queued .table-scroll,
  #panel-processing .table-scroll {
    padding-bottom: var(--builder-footer-clearance) !important;
    scroll-padding-bottom: var(--builder-footer-clearance) !important;
  }
}

/* V11.1.29 - final desktop order controls and footer clearance.  This is
   intentionally the last cascade: older parity layers are kept for rollback,
   but the live desktop surface must remain a two-column, equal-width control
   row and the fixed footer must never cover the last table actions. */
@media (min-width: 821px) {
  .project-native .build-order-card > .order-tabs,
  .build-order-card > .order-tabs {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    align-items: stretch !important;
    justify-content: initial !important;
    gap: 8px !important;
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    margin: 0 0 12px !important;
    padding: 12px 16px 0 !important;
    border-bottom: 0 !important;
    background: transparent !important;
  }

  .project-native .build-order-card .order-tab,
  .build-order-card .order-tab {
    display: flex !important;
    flex: 1 1 0% !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 44px !important;
    box-sizing: border-box !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 9.6px 12.8px !important;
    border: 1px solid var(--primary-color, #3b82f6) !important;
    border-radius: 4px !important;
    background: transparent !important;
    color: var(--primary-color, #3b82f6) !important;
    font-family: var(--builder-ui-font, "JetBrains Mono", Consolas, monospace) !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
  }

  .project-native .build-order-card .order-tab.active,
  .build-order-card .order-tab.active {
    color: #fff !important;
    background: var(--primary-color, #3b82f6) !important;
    border-color: var(--primary-color, #3b82f6) !important;
    box-shadow: none !important;
  }

  main.workspace {
    padding-bottom: 224px !important;
  }

  #panel-completed,
  #panel-queued,
  #panel-processing {
    padding-bottom: 176px !important;
  }

  #panel-completed .table-scroll,
  #panel-queued .table-scroll,
  #panel-processing .table-scroll {
    padding-bottom: 224px !important;
    scroll-padding-bottom: 224px !important;
  }
}

@media (max-width: 820px) {
  .project-native .build-order-card > .order-tabs,
  .build-order-card > .order-tabs {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .project-native .build-order-card .order-tab,
  .build-order-card .order-tab {
    width: 100% !important;
    min-width: 0 !important;
    white-space: nowrap !important;
  }

  main.workspace {
    padding-bottom: 176px !important;
  }

  #panel-completed .table-scroll,
  #panel-queued .table-scroll,
  #panel-processing .table-scroll {
    padding-bottom: 176px !important;
    scroll-padding-bottom: 176px !important;
  }
}

/* V11.1.28 - desktop source parity for order controls and fixed-footer
   clearance.  Keep both controls in one equal-width row; the selected
   control is the only solid blue surface. */
@media (min-width: 821px) {
  html,
  body {
    background: #17263e !important;
  }

  .topbar {
    background: rgba(36, 54, 82, .44) !important;
    border-bottom-color: rgba(255, 255, 255, .15) !important;
    backdrop-filter: blur(20px) saturate(145%) !important;
  }

  .desktop-nav .nav-tab {
    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 1.1 !important;
  }

  .project-native .build-order-card > .order-tabs,
  .build-order-card > .order-tabs {
    display: flex !important;
    align-items: stretch !important;
    justify-content: initial !important;
    gap: .5rem !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0 0 .75rem !important;
    padding: .75rem 1.5rem 0 !important;
    border: 0 !important;
    background: transparent !important;
  }

  .project-native .build-order-card .order-tab,
  .build-order-card .order-tab {
    position: relative !important;
    display: flex !important;
    flex: 1 1 0% !important;
    align-items: center !important;
    justify-content: center !important;
    gap: .4rem !important;
    width: auto !important;
    min-width: 0 !important;
    min-height: 44px !important;
    margin: 0 !important;
    padding: .6rem .8rem !important;
    border: 1px solid var(--primary-color, #3b82f6) !important;
    border-radius: 4px !important;
    background: transparent !important;
    color: var(--primary-color, #3b82f6) !important;
    font-family: var(--builder-ui-font, "JetBrains Mono", Consolas, monospace) !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    letter-spacing: 0 !important;
    white-space: nowrap !important;
    box-shadow: none !important;
  }

  .project-native .build-order-card .order-tab:hover:not(.active),
  .build-order-card .order-tab:hover:not(.active) {
    color: #fff !important;
    background: rgba(59, 130, 246, .15) !important;
  }

  .project-native .build-order-card .order-tab.active,
  .build-order-card .order-tab.active {
    color: #fff !important;
    background: var(--primary-color, #3b82f6) !important;
    border-color: var(--primary-color, #3b82f6) !important;
    box-shadow: none !important;
  }

  main.workspace {
    padding-bottom: 190px !important;
  }

  #panel-completed,
  #panel-queued,
  #panel-processing {
    padding-bottom: 130px !important;
  }

  #panel-completed .table-scroll,
  #panel-queued .table-scroll,
  #panel-processing .table-scroll {
    padding-bottom: 170px !important;
    scroll-padding-bottom: 170px !important;
  }
}

@media (max-width: 820px) {
  .project-native .build-order-card > .order-tabs,
  .build-order-card > .order-tabs {
    display: flex !important;
    gap: .5rem !important;
    padding: .75rem 1rem 0 !important;
    margin-bottom: .75rem !important;
  }

  .project-native .build-order-card .order-tab,
  .build-order-card .order-tab {
    flex: 1 1 0% !important;
    min-width: 0 !important;
    font-size: 14px !important;
    white-space: nowrap !important;
  }

  main.workspace {
    padding-bottom: 145px !important;
  }

  #panel-completed .table-scroll,
  #panel-queued .table-scroll,
  #panel-processing .table-scroll {
    padding-bottom: 110px !important;
    scroll-padding-bottom: 110px !important;
  }
}

.project-native .build-order-card .order-tab .ui-icon,
.build-order-card .order-tab .ui-icon {
  width: 16px !important;
  height: 16px !important;
  flex: 0 0 16px !important;
  stroke-width: 1.8 !important;
}

@media (min-width: 821px) {
  .selector-strip {
    background: linear-gradient(145deg, rgba(15, 23, 42, .62), rgba(15, 23, 42, .38)) !important;
    border-color: rgba(255, 255, 255, .10) !important;
    backdrop-filter: blur(16px) saturate(125%) !important;
  }

  .selector-strip .selector-block,
  .selector-strip .license-target-field,
  .selector-strip .lock-mode-picker,
  .selector-strip .build-balance-list {
    background: transparent !important;
  }

  .selector-strip .machine-choice,
  .selector-strip .picker-trigger {
    background: rgba(15, 23, 42, .50) !important;
    border-color: rgba(255, 255, 255, .08) !important;
    backdrop-filter: blur(12px) !important;
  }
}

/* V11.1.24-final - chrome typography and action-column containment. */
@media (min-width: 821px) {
  .topbar,
  .topbar-title,
  .topbar .desktop-nav,
  .topbar .desktop-nav .nav-tab,
  .topbar .account-trigger,
  .topbar .account-name,
  .topbar .account-email,
  .notice,
  .workspace button,
  .workspace input,
  .workspace select,
  .workspace textarea,
  .workspace label,
  .workspace h1,
  .workspace h2,
  .workspace h3,
  .project-native .build-order-card .order-tab,
  .build-order-card .order-tab {
    font-family: Inter, "SF Pro Text", "Segoe UI", system-ui, sans-serif !important;
  }

  #panel-completed .job-actions,
  #panel-queued .job-actions,
  #panel-processing .job-actions {
    min-width: 104px !important;
    overflow: visible !important;
  }

  #panel-completed .job-action-icon,
  #panel-queued .job-action-icon,
  #panel-processing .job-action-icon {
    flex: 0 0 32px !important;
  }
}

/* V11.1.25 - final desktop chrome readability pass.
   Keep the source site's glass/grid treatment while making the navigation
   one step larger and easier to scan.  The effect canvas remains visible so
   the grid and meteor animation continue to render behind the shell. */
@media (min-width: 821px) {
  html,
  body {
    background: #101827 !important;
  }

  .topbar {
    background: rgba(30, 43, 67, .48) !important;
    border-bottom-color: rgba(255, 255, 255, .13) !important;
    box-shadow: 0 10px 30px rgba(2, 6, 23, .10) !important;
    backdrop-filter: blur(20px) saturate(135%) !important;
  }

  .desktop-nav .nav-tab {
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
  }

  .topbar-title {
    font-size: 24px !important;
    font-weight: 700 !important;
  }

  .builder-effect-canvas {
    display: block !important;
    visibility: visible !important;
    opacity: .68 !important;
    mix-blend-mode: screen !important;
  }
}

/* V11.1.25 - source build-mode parity. The source uses equal-width
   JetBrains Mono controls, a blue outline on the inactive tab, and a solid
   primary fill only for the active tab. */
.project-native .build-order-card > .order-tabs,
.build-order-card > .order-tabs {
  display: flex !important;
  align-items: stretch !important;
  justify-content: initial !important;
  gap: 8px !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 16px !important;
  border-bottom: 1px solid rgba(255, 255, 255, .10) !important;
  background: transparent !important;
}

.project-native .build-order-card .order-tab,
.build-order-card .order-tab {
  position: relative !important;
  display: flex !important;
  flex: 1 1 0% !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  width: auto !important;
  min-width: 0 !important;
  min-height: 44px !important;
  margin: 0 !important;
  padding: 9.6px 12.8px !important;
  border: 1px solid var(--primary-color, #3b82f6) !important;
  border-radius: 4px !important;
  background: transparent !important;
  color: var(--primary-color, #3b82f6) !important;
  font-family: var(--builder-ui-font, "JetBrains Mono", Consolas, monospace) !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  letter-spacing: 0 !important;
  box-shadow: none !important;
  transition: background-color .2s ease, color .2s ease !important;
}

.project-native .build-order-card .order-tab:hover:not(.active),
.build-order-card .order-tab:hover:not(.active) {
  color: #fff !important;
  background: rgba(var(--primary-rgb, 59, 130, 246), .15) !important;
}

.project-native .build-order-card .order-tab.active,
.build-order-card .order-tab.active {
  color: #fff !important;
  background: var(--primary-color, #3b82f6) !important;
  border-color: var(--primary-color, #3b82f6) !important;
  box-shadow: none !important;
}

.project-native .build-order-card .order-tab .ui-icon,
.build-order-card .order-tab .ui-icon {
  width: 16px !important;
  height: 16px !important;
  flex: 0 1 auto !important;
  stroke-width: 1.8 !important;
}

/* V11.1.26 - final requested header/background pass.  This block is kept at
   EOF so it wins over the older parity layers while leaving the build tabs
   and canvas animation rules above intact. */
@media (min-width: 821px) {
  html,
  body {
    background: #111b2b !important;
  }

  .topbar {
    background: rgba(34, 49, 76, .50) !important;
    border-bottom-color: rgba(255, 255, 255, .14) !important;
    backdrop-filter: blur(20px) saturate(140%) !important;
  }

  .desktop-nav .nav-tab {
    font-family: var(--builder-ui-font, "JetBrains Mono", Consolas, monospace) !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    color: rgba(239, 246, 255, .98) !important;
  }

  .desktop-nav .nav-tab:hover,
  .desktop-nav .nav-tab.active {
    color: #fff !important;
  }

  .topbar-title {
    font-family: var(--builder-ui-font, "JetBrains Mono", Consolas, monospace) !important;
    font-size: 24px !important;
    font-weight: 700 !important;
  }

  .builder-effect-canvas {
    display: block !important;
    visibility: visible !important;
    opacity: .72 !important;
    mix-blend-mode: screen !important;
  }
}

/* V11.1.27 - restore source-style order tabs after the temporary build-tab
   experiment.  The source uses transparent tabs; only the selected tab gets
   the light blue wash and bottom rule. */
.project-native .build-order-card > .order-tabs,
.build-order-card > .order-tabs {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 4px !important;
  min-width: 0 !important;
  min-height: 44px !important;
  margin: 0 !important;
  padding: 8px 12px !important;
  border-bottom: 1px solid rgba(255, 255, 255, .08) !important;
  background: transparent !important;
}

.project-native .build-order-card .order-tab,
.build-order-card .order-tab {
  display: inline-flex !important;
  flex: 0 0 auto !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  width: auto !important;
  min-width: 0 !important;
  min-height: 44px !important;
  margin: 0 !important;
  padding: 8px 12px !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: transparent !important;
  color: rgba(226, 232, 240, .76) !important;
  font-family: var(--builder-ui-font, "JetBrains Mono", Consolas, monospace) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 1 !important;
  box-shadow: none !important;
}

.project-native .build-order-card .order-tab:hover:not(.active),
.build-order-card .order-tab:hover:not(.active) {
  color: #fff !important;
  background: rgba(255, 255, 255, .067) !important;
}

.project-native .build-order-card .order-tab.active,
.build-order-card .order-tab.active {
  color: #fff !important;
  background: rgba(59, 130, 246, .11) !important;
  box-shadow: inset 0 -2px 0 var(--primary-color, #3b82f6) !important;
}

/* V11.1.31 - final EOF override for desktop order controls and fixed-footer
   clearance. */
:root {
  --builder-footer-clearance: 88px;
}

.app-shell {
  padding-bottom: var(--builder-footer-clearance) !important;
}

/* Match the high-specificity canvas selectors used by the desktop width
   rules, otherwise their `padding: 16px !important` shorthand wins. */
main.workspace:not(:has(#panel-machine.active)),
main.workspace:has(#panel-machine.active) {
  padding-bottom: var(--builder-footer-clearance) !important;
}

@media (min-width: 821px) {
  .project-native .build-order-card > .order-tabs,
  .build-order-card > .order-tabs {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    align-items: stretch !important;
    margin: 0 0 12px !important;
    padding: 12px 16px 0 !important;
    border: 0 !important;
    background: transparent !important;
  }
  .project-native .build-order-card .order-tab,
  .build-order-card .order-tab {
    display: flex !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 44px !important;
    box-sizing: border-box !important;
    flex: 1 1 0% !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 9.6px 12.8px !important;
    border: 1px solid var(--primary-color, #3b82f6) !important;
    border-radius: 4px !important;
    background: transparent !important;
    color: var(--primary-color, #3b82f6) !important;
    font-family: var(--builder-ui-font, "JetBrains Mono", Consolas, monospace) !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
  }
  .project-native .build-order-card .order-tab.active,
  .build-order-card .order-tab.active {
    color: #fff !important;
    background: var(--primary-color, #3b82f6) !important;
    border-color: var(--primary-color, #3b82f6) !important;
    box-shadow: none !important;
  }
  main.workspace { padding-bottom: var(--builder-footer-clearance) !important; }
  #panel-completed,
  #panel-queued,
  #panel-processing { padding-bottom: var(--builder-footer-clearance) !important; }
  #panel-completed .table-scroll,
  #panel-queued .table-scroll,
  #panel-processing .table-scroll {
    padding-bottom: var(--builder-footer-clearance) !important;
    scroll-padding-bottom: var(--builder-footer-clearance) !important;
  }
  #panel-completed .table-card,
  #panel-queued .table-card,
  #panel-processing .table-card {
    margin-bottom: var(--builder-footer-clearance) !important;
  }
}
@media (max-width: 820px) {
  .project-native .build-order-card > .order-tabs,
  .build-order-card > .order-tabs {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .project-native .build-order-card .order-tab,
  .build-order-card .order-tab {
    width: 100% !important;
    min-width: 0 !important;
    white-space: nowrap !important;
  }
  main.workspace { padding-bottom: var(--builder-footer-clearance) !important; }
  #panel-completed .table-scroll,
  #panel-queued .table-scroll,
  #panel-processing .table-scroll {
    padding-bottom: var(--builder-footer-clearance) !important;
    scroll-padding-bottom: var(--builder-footer-clearance) !important;
  }
}
