/* Classic experience
   ------------------
   This is intentionally more than a palette. It restores the original
   Work Order Hub's flat shell, compact controls, dense tables, restrained
   status color, and full-page work-order reading rhythm. The source of truth
   was the rendered seed UI at ddb495b, not a new interpretation of it. */

html[data-experience="classic"] {
  background: #000;
  scrollbar-color: var(--border-3) var(--bg);
}

html[data-experience="classic"] *,
html[data-experience="classic"] *::before,
html[data-experience="classic"] *::after {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
}

html[data-experience="classic"] body,
html[data-experience="classic"] body.no-shell {
  background: var(--bg) !important;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
}

html[data-experience="classic"] body::before,
html[data-experience="classic"] body::after,
html[data-experience="classic"] #hardmanos-intro,
html[data-experience="classic"] .hardmanos-intro {
  display: none !important;
}

/* Original fixed shell --------------------------------------------------- */
html[data-experience="classic"] #sidebar {
  width: 232px;
  min-width: 232px;
  border-right: 1px solid var(--border) !important;
  background: var(--sidebar-bg) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

html[data-experience="classic"] #sidebar:not(.collapsed) ~ #topbar,
html[data-experience="classic"] body:not(.sidebar-rail) #topbar {
  margin-left: 232px;
}

html[data-experience="classic"] #sidebar:not(.collapsed) ~ #mainContent,
html[data-experience="classic"] body:not(.sidebar-rail) #mainContent {
  margin-left: 232px;
}

html[data-experience="classic"] #sidebar.collapsed {
  width: 64px;
  min-width: 64px;
}

html[data-experience="classic"] .sidebar-brand {
  min-height: 56px;
  padding: 0 18px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-1);
  color: var(--text);
  gap: 10px;
}

html[data-experience="classic"] .brand-mark {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 6px;
  background: #6d4aff;
  box-shadow: 0 3px 10px rgba(109,74,255,.28);
}

html[data-experience="classic"] .brand-mark img { display: none; }
html[data-experience="classic"] .brand-mark::after {
  content: "✓";
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

html[data-experience="classic"] .brand-text {
  font-size: 0;
  letter-spacing: 0;
}
html[data-experience="classic"] .brand-text::after {
  content: "WOHub";
  font-size: 14px;
  font-weight: 700;
}

html[data-experience="classic"] #sidebar .nav-item,
html[data-experience="classic"] #sidebar .nav-link,
html[data-experience="classic"] #sidebar .manage-submenu a,
html[data-experience="classic"] .sidebar-footer-btn {
  min-height: 34px;
  margin: 1px 8px;
  padding: 7px 10px;
  border: 0;
  border-radius: 5px;
  color: var(--sidebar-text) !important;
  font-size: 12px;
  font-weight: 450;
}

html[data-experience="classic"] #sidebar .flat-nav {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 1px;
  overflow-y: auto;
  padding: 10px 0;
}
html[data-experience="classic"] #sidebar .flat-nav .nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: auto;
  text-decoration: none;
}
html[data-experience="classic"] #sidebar .flat-nav .nav-item i {
  width: 16px;
  color: var(--sidebar-text);
  font-size: 15px;
  text-align: center;
}
html[data-experience="classic"] #sidebar .flat-nav .nav-item.active i { color: var(--sidebar-icon-active); }
html[data-experience="classic"] #sidebar .flat-nav .nav-item small { margin-left: auto; font: 600 9px/1 var(--eb-mono); }
html[data-experience="classic"] #sidebar .flat-nav__section {
  margin: 14px 18px 5px;
  color: var(--text-4);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
html[data-experience="classic"] .sidebar-scan-btn-wrap { display: none; }

html[data-experience="classic"] #sidebar .nav-item:hover,
html[data-experience="classic"] #sidebar .nav-link:hover,
html[data-experience="classic"] #sidebar .manage-submenu a:hover,
html[data-experience="classic"] .sidebar-footer-btn:hover {
  background: var(--sidebar-item-hover) !important;
  color: var(--text) !important;
  transform: none !important;
}

html[data-experience="classic"] #sidebar .nav-item.active,
html[data-experience="classic"] #sidebar .nav-link.active-nav,
html[data-experience="classic"] #sidebar .manage-submenu a.active-nav,
html[data-experience="classic"] .sidebar-footer-btn.active {
  border: 0 !important;
  background: var(--sidebar-item-active) !important;
  box-shadow: inset 2px 0 0 #8b7cf6;
  color: var(--sidebar-text-active) !important;
}

html[data-experience="classic"] .nav-section,
html[data-experience="classic"] .sidebar-section-hdr {
  margin: 12px 18px 4px;
  color: var(--text-4);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .08em;
}

html[data-experience="classic"] .sidebar-scan-btn-wrap { padding: 8px 14px; }
html[data-experience="classic"] .sidebar-scan-btn {
  min-height: 36px;
  border: 1px solid var(--border-2);
  border-radius: 6px;
  background: var(--bg-2);
  box-shadow: none;
  color: var(--text-2);
}

html[data-experience="classic"] .user-bar {
  border-top: 1px solid var(--border);
  background: var(--bg-1);
}
html[data-experience="classic"] .profile-trigger {
  min-height: 54px;
  border-radius: 0;
  background: transparent;
}

html[data-experience="classic"] #topbar {
  min-height: 56px;
  height: 56px;
  padding: 0 22px;
  border-bottom: 1px solid var(--border) !important;
  background: rgba(10,10,10,.98) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

html[data-experience="classic"] .topbar-title {
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}
html[data-experience="classic"] .topbar-sub { display: none; }
html[data-experience="classic"] .topbar-actions { gap: 3px; }
html[data-experience="classic"] .icon-btn {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--text-3);
}
html[data-experience="classic"] .icon-btn:hover { background: var(--bg-3); color: var(--text); }
html[data-experience="classic"] .role-pill,
html[data-experience="classic"] .tb-date {
  border-color: transparent !important;
  background: transparent !important;
  box-shadow: none !important;
}

html[data-experience="classic"] #mainContent {
  padding-top: 56px;
  background: var(--bg);
}
html[data-experience="classic"] #mainContent > [class~="px-4"] {
  padding: 24px !important;
}

/* Flat component language ------------------------------------------------ */
html[data-experience="classic"] .card,
html[data-experience="classic"] .glass-card,
html[data-experience="classic"] [class*="-card"],
html[data-experience="classic"] [class*="-panel"] {
  box-shadow: none;
  backdrop-filter: none;
}

html[data-experience="classic"] .card,
html[data-experience="classic"] .glass-card {
  border-color: var(--border);
  border-radius: 8px;
  background: var(--bg-1);
}

html[data-experience="classic"] .btn,
html[data-experience="classic"] button.btn,
html[data-experience="classic"] a.btn {
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 5px;
  box-shadow: none;
  font-size: 11px;
}
html[data-experience="classic"] .btn-primary {
  border-color: #3b82f6;
  background: #2563eb;
  color: #fff;
}

html[data-experience="classic"] .pill,
html[data-experience="classic"] [class*="badge"] {
  min-height: 0;
  padding: 2px 7px;
  border-radius: 999px;
  box-shadow: none;
  font-size: 9px;
  letter-spacing: .025em;
}

html[data-experience="classic"] input,
html[data-experience="classic"] select,
html[data-experience="classic"] textarea,
html[data-experience="classic"] .ds-input {
  border-color: var(--border-2);
  border-radius: 5px;
  background: var(--bg-1);
  box-shadow: none;
  color: var(--text);
}

html[data-experience="classic"] .modal,
html[data-experience="classic"] dialog,
html[data-experience="classic"] [role="dialog"] {
  border-color: var(--border-2);
  border-radius: 8px;
  background: var(--bg-1);
  box-shadow: 0 18px 60px rgba(0,0,0,.72);
}

html[data-experience="classic"] table.tbl,
html[data-experience="classic"] table.table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  background: var(--bg);
}
html[data-experience="classic"] table.tbl thead,
html[data-experience="classic"] table.table thead { background: var(--bg); }
html[data-experience="classic"] table.tbl th,
html[data-experience="classic"] table.table th {
  height: 34px;
  padding: 8px 13px;
  border-bottom: 1px solid var(--border);
  color: var(--text-3);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
}
html[data-experience="classic"] table.tbl td,
html[data-experience="classic"] table.table td {
  min-height: 50px;
  padding: 10px 13px;
  border-bottom: 1px solid var(--border);
  background: transparent;
  color: var(--text-2);
  font-size: 11px;
}
html[data-experience="classic"] table.tbl tr:hover td,
html[data-experience="classic"] table.table tr:hover td {
  background: var(--bg-2) !important;
}

/* Work-order queue: original table-first screen -------------------------- */
html[data-experience="classic"] .woq-control-deck {
  margin-bottom: 0;
  overflow: visible;
  border: 1px solid var(--border);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  background: var(--bg-1) !important;
  box-shadow: none;
}
html[data-experience="classic"] .woq-toolbar {
  gap: 8px;
  padding: 10px 12px;
}
html[data-experience="classic"] .woq-search .ds-input {
  min-height: 32px;
  border: 1px solid var(--border-2);
  background: var(--bg);
}
html[data-experience="classic"] .segmented,
html[data-experience="classic"] .woq-sort {
  padding: 2px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--bg);
}
html[data-experience="classic"] .segmented a,
html[data-experience="classic"] .woq-sort a {
  min-height: 26px;
  padding: 5px 8px;
  border-radius: 4px;
  color: var(--text-3);
  font-size: 10px;
}
html[data-experience="classic"] .segmented a.is-active,
html[data-experience="classic"] .segmented a.active,
html[data-experience="classic"] .woq-sort a.active {
  background: var(--bg-3);
  color: var(--text);
}
html[data-experience="classic"] .woq-tabs {
  min-height: 42px;
  padding: 0 12px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
html[data-experience="classic"] .woq-tab {
  padding: 12px 12px 10px;
  border-bottom-width: 2px;
  color: var(--text-3);
  font-size: 10px;
}
html[data-experience="classic"] .woq-tab.active {
  border-bottom-color: var(--text);
  color: var(--text);
}
html[data-experience="classic"] .woq-workspace,
html[data-experience="classic"] .woq-workspace.is-panel-open {
  display: block;
}
html[data-experience="classic"] #wo-action-panel { display: none !important; }
html[data-experience="classic"] .db-queue-table-wrap {
  border: 1px solid var(--border);
  border-radius: 0 0 8px 8px;
  background: var(--bg);
}
html[data-experience="classic"] .db-layout,
html[data-experience="classic"] .db-manager-layout,
html[data-experience="classic"] .db-role-layout {
  grid-template-columns: minmax(0, 1fr) !important;
}
html[data-experience="classic"] .db-layout-side,
html[data-experience="classic"] .db-manager-side,
html[data-experience="classic"] #dm-panel-shell:not(.wo-action-panel__sheet) {
  display: none !important;
}
html[data-experience="classic"] #wo-queue-pagebox > .pagination:first-child {
  border-right: 1px solid var(--border);
  border-left: 1px solid var(--border);
  background: var(--bg);
}
html[data-experience="classic"] .db-row-actions { opacity: 1; }
html[data-experience="classic"] .db-queue-table-wrap td:first-child .db-wo-context {
  display: none;
}
html[data-experience="classic"] .wo-dept-card {
  min-height: 18px;
  padding: 2px 6px;
  border-radius: 4px;
  background: transparent;
  font-size: 8.5px;
}
html[data-experience="classic"] .db-act {
  min-height: 24px;
  padding: 3px 7px;
  border-radius: 4px;
  font-size: 9px;
}
html[data-experience="classic"] table.tbl tr.row-overdue td,
html[data-experience="classic"] table.tbl tr.row-rush td {
  background: rgba(239,68,68,.075);
}
html[data-experience="classic"] table.tbl tr.row-hot td {
  background: rgba(249,115,22,.055);
}
html[data-experience="classic"] table.tbl tr.row-overdue .db-due-date,
html[data-experience="classic"] table.tbl tr.row-rush .db-due-date,
html[data-experience="classic"] table.tbl tr.row-hot .db-due-date {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

/* Full-page work-order view: familiar reading order with progressive tools */
html[data-experience="classic"] .wod-wrap {
  width: min(100%, 1480px);
  max-width: 1480px;
  gap: 20px;
  margin-inline: auto;
  padding: 8px 18px 48px;
}
html[data-experience="classic"] .wod-wrap > fieldset > .wod-header-card { order: 0; }
html[data-experience="classic"] .wod-wrap > fieldset > .wod-track-card { order: 1; }
html[data-experience="classic"] .wod-wrap > fieldset > .wod-classic-master-list,
html[data-experience="classic"] .wod-wrap > fieldset > .wod-classic-preparation { order: 2; }
html[data-experience="classic"] .wod-wrap > fieldset > .wod-classic-production-tools { order: 3; }
html[data-experience="classic"] .wod-wrap > fieldset > .wod-footer-grid { order: 4; }
html[data-experience="classic"] .wod-wrap > fieldset > .wod-classic-renders-slot { order: 5; }
html[data-experience="classic"] .wod-back {
  color: var(--text-3);
  font-size: 11px;
}
html[data-experience="classic"] .wod-header-card {
  padding: 28px 32px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg-1);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .16);
}
html[data-experience="classic"] .wod-header-card.is-rush { border-left: 3px solid var(--red); }
html[data-experience="classic"] .wod-header-card.is-hot { border-left: 3px solid var(--orange); }

/* Classic work-order production flow: the track is a full card section and
   the selected stage expands in-place beneath the rail. */
html[data-experience="classic"] .wod-track-card {
  z-index: 2;
  overflow: hidden;
  border-radius: 10px;
  background: var(--bg-1);
}
html[data-experience="classic"] .wod-section-body.wod-track-body {
  padding: 0;
}
html[data-experience="classic"] .wod-track-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px 18px;
  min-height: 0;
  padding: 16px 18px 18px;
  white-space: normal;
}
html[data-experience="classic"] .wod-track-lead {
  grid-column: 1;
  gap: 10px;
}
html[data-experience="classic"] .wod-track-title {
  font-size: 11px;
  color: var(--text-2);
}
html[data-experience="classic"] .wod-track-overall {
  padding: 3px 9px;
}
html[data-experience="classic"] .wod-track-rail {
  grid-column: 1 / -1;
  grid-row: 2;
  gap: 8px;
  width: 100%;
}
html[data-experience="classic"] .wod-track-rail::before {
  left: 24px;
  right: 24px;
}
html[data-experience="classic"] .wod-track-group-btn,
html[data-experience="classic"] .wod-track-rail.is-compact .wod-track-group-btn {
  min-height: 72px;
  padding: 12px 13px;
  grid-template-columns: 22px minmax(0, 1fr) auto 10px;
  grid-template-areas: "icon name count chevron" "progress progress progress progress";
  column-gap: 8px;
  row-gap: 10px;
  border-radius: 9px;
}
html[data-experience="classic"] .wod-track-group-icon,
html[data-experience="classic"] .wod-track-rail.is-compact .wod-track-group-icon {
  width: 22px;
  height: 22px;
  font-size: 11px;
}
html[data-experience="classic"] .wod-track-group-name,
html[data-experience="classic"] .wod-track-rail.is-compact .wod-track-group-name {
  font-size: 11px;
  letter-spacing: .035em;
}
html[data-experience="classic"] .wod-track-group-count,
html[data-experience="classic"] .wod-track-rail.is-compact .wod-track-group-count {
  font-size: 10px;
}
html[data-experience="classic"] .wod-track-segment {
  height: 5px;
}
html[data-experience="classic"] .wod-track-segment.is-awaiting {
  background: var(--bg-4);
  box-shadow: inset 0 0 0 1px var(--border-2);
  opacity: 1;
}
html[data-experience="classic"] .wod-track-hint {
  display: none;
}
html[data-experience="classic"] .wod-track-tools {
  grid-column: 2;
  grid-row: 1;
}
html[data-experience="classic"] .wod-dept-detail-panel {
  position: static;
  width: auto;
  max-height: none;
  overflow: visible;
  margin: 0;
  padding: 18px;
  border: 0;
  border-top: 1px solid var(--border);
  border-radius: 0;
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  box-shadow: none;
  animation: wod-classic-track-open .18s ease-out;
}
html[data-experience="classic"] .wod-dept-detail-panel::before {
  display: none;
}
html[data-experience="classic"] .wod-dept-detail-hdr {
  padding: 0 0 14px;
}
html[data-experience="classic"] .wod-dept-detail-close {
  display: none;
}
html[data-experience="classic"] .wod-dept-detail-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 10px;
  padding-top: 14px;
}
html[data-experience="classic"] .wod-dept-detail-row {
  display: flex;
  flex-direction: column;
  min-height: 150px;
  padding: 14px;
}
html[data-experience="classic"] .wod-dept-detail-row form:last-child,
html[data-experience="classic"] .wod-dept-detail-row > .wod-act:last-child {
  margin-top: auto;
}
@keyframes wod-classic-track-open {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Finished Goods visual summary. */
html[data-experience="classic"] .wod-classic-finished-goods {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
html[data-experience="classic"] .wod-fg-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}
html[data-experience="classic"] .wod-fg-heading h2 {
  margin: 0;
  color: var(--text);
  font-size: 15px;
  font-weight: 760;
  letter-spacing: .035em;
  text-transform: uppercase;
}
html[data-experience="classic"] .wod-fg-summary {
  display: grid;
  grid-template-columns: minmax(240px, .8fr) minmax(360px, 1.4fr);
  gap: 14px 24px;
}
html[data-experience="classic"] .wod-fg-hero {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-1);
}
html[data-experience="classic"] .wod-fg-ring {
  --wod-ring-color: var(--green);
  width: 84px;
  height: 84px;
  flex: 0 0 84px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--wod-ring-color) var(--wod-ring-value), var(--bg-4) 0);
  position: relative;
}
html[data-experience="classic"] .wod-fg-ring::before {
  content: '';
  position: absolute;
  inset: 7px;
  border-radius: inherit;
  background: var(--bg-1);
}
html[data-experience="classic"] .wod-fg-ring span {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}
html[data-experience="classic"] .wod-fg-ring strong {
  color: var(--text);
  font: 700 22px/1 var(--eb-mono);
}
html[data-experience="classic"] .wod-fg-ring small {
  margin-top: 4px;
  color: var(--text-3);
  font-size: 9px;
}
html[data-experience="classic"] .wod-fg-hero-copy {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
html[data-experience="classic"] .wod-fg-hero-copy > strong {
  color: var(--text);
  font-size: 14px;
}
html[data-experience="classic"] .wod-fg-hero-copy > span:last-child {
  color: var(--text-3);
  font-size: 11px;
}
html[data-experience="classic"] .wod-fg-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-1);
}
html[data-experience="classic"] .wod-fg-flow-step {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}
html[data-experience="classic"] .wod-fg-flow-icon {
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-2);
  border-radius: 50%;
  color: var(--text-3);
  font: 700 10px var(--eb-mono);
}
html[data-experience="classic"] .wod-fg-flow-step.is-complete .wod-fg-flow-icon {
  border-color: var(--green-border);
  background: var(--green-bg);
  color: var(--green-text);
}
html[data-experience="classic"] .wod-fg-flow-step > span:last-child {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
html[data-experience="classic"] .wod-fg-flow-step strong {
  color: var(--text);
  font: 700 17px var(--eb-mono);
}
html[data-experience="classic"] .wod-fg-flow-step small {
  color: var(--text-3);
  font-size: 9px;
  line-height: 1.25;
}
html[data-experience="classic"] .wod-fg-flow-arrow {
  color: var(--text-4);
}
html[data-experience="classic"] .wod-fg-meter-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
html[data-experience="classic"] .wod-fg-meter {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--bg-1);
}
html[data-experience="classic"] .wod-fg-meter > span {
  display: flex;
  justify-content: space-between;
  margin-bottom: 9px;
  color: var(--text-2);
  font-size: 10px;
}
html[data-experience="classic"] .wod-fg-meter b {
  color: var(--green-text);
  font-family: var(--eb-mono);
}
html[data-experience="classic"] .wod-fg-meter > div {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--bg-4);
}
html[data-experience="classic"] .wod-fg-meter i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
}
html[data-experience="classic"] .wod-fg-meter.is-bin i { background: var(--blue); }
html[data-experience="classic"] .wod-fg-meter.is-bin b { color: var(--blue-text); }
html[data-experience="classic"] .wod-fg-alert {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 25px 1fr;
  gap: 2px 10px;
  padding: 11px 13px;
  border: 1px solid var(--red-border);
  border-radius: 9px;
  background: var(--red-bg);
}
html[data-experience="classic"] .wod-fg-alert > span {
  grid-row: 1 / 3;
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--red);
  color: white;
  font-weight: 800;
}
html[data-experience="classic"] .wod-fg-alert strong { color: var(--red-text); font-size: 11px; }
html[data-experience="classic"] .wod-fg-alert small { color: var(--text-3); font-size: 9px; }
html[data-experience="classic"] .wod-fg-open {
  flex: 0 0 auto;
  color: var(--brand-text);
  font-size: 10px;
  font-weight: 700;
  text-decoration: none;
}
html[data-experience="classic"] .wod-fg-open:hover { text-decoration: underline; }
@media (max-width: 900px) {
  html[data-experience="classic"] .wod-track-rail {
    grid-template-columns: repeat(var(--wod-track-group-count, 1), minmax(150px, 1fr));
    overflow-x: auto;
  }
  html[data-experience="classic"] .wod-fg-summary { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  html[data-experience="classic"] .wod-track-line { grid-template-columns: 1fr; padding: 13px; }
  html[data-experience="classic"] .wod-track-tools { grid-column: 1; grid-row: 3; }
  html[data-experience="classic"] .wod-fg-flow { grid-template-columns: 1fr; }
  html[data-experience="classic"] .wod-fg-flow-arrow { transform: rotate(90deg); justify-self: center; }
  html[data-experience="classic"] .wod-fg-meter-grid { grid-template-columns: 1fr; }
}
html[data-experience="classic"] .wod-header-left {
  display: flex;
  flex: 1 1 100%;
  flex-direction: column;
}
html[data-experience="classic"] .wod-form-kicker {
  order: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 10px;
  color: var(--text-3);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .1em;
  text-transform: uppercase;
}
html[data-experience="classic"] .wod-header-title-row { order: 1; }
html[data-experience="classic"] .wod-header-pill-row { order: 2; }
html[data-experience="classic"] .wod-form-reference-grid { order: 3; }
html[data-experience="classic"] .wod-status-strip { order: 4; }
html[data-experience="classic"] .wod-header-workflow,
html[data-experience="classic"] .wod-manager-scope { order: 5; }
html[data-experience="classic"] .wod-drop-row { order: 6; }
html[data-experience="classic"] .wod-header-left h1 {
  color: var(--blue-2);
  font-size: 28px;
  letter-spacing: -.025em;
}
html[data-experience="classic"] .wod-header-job {
  color: var(--text);
  font-size: 16px;
  font-weight: 650;
  text-transform: uppercase;
}
html[data-experience="classic"] .wod-form-reference-grid {
  display: grid;
  grid-template-columns: minmax(150px, .35fr) minmax(280px, 1fr);
  gap: 10px;
  margin-top: 18px;
}
html[data-experience="classic"] .wod-form-reference {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--bg-2);
}
html[data-experience="classic"] .wod-form-reference > span {
  color: var(--text-4);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}
html[data-experience="classic"] .wod-form-reference .wod-header-mo,
html[data-experience="classic"] .wod-form-reference .wod-header-desc {
  margin: 0;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
}
html[data-experience="classic"] .wod-status-strip,
html[data-experience="classic"] .wod-drop,
html[data-experience="classic"] .wod-qr-panel,
html[data-experience="classic"] .wod-pdf-card,
html[data-experience="classic"] [class^="wod-"][class*="card"] {
  border-color: var(--border);
  border-radius: 8px;
  background: var(--bg-1);
  box-shadow: none;
}
html[data-experience="classic"] .wod-status-strip { padding: 9px 12px; }
html[data-experience="classic"] .wod-status-actions form:nth-of-type(n + 2),
html[data-experience="classic"] .wod-status-actions > .wod-status-sub { display: none; }
html[data-experience="classic"] .wod-drop { padding: 8px 10px; }
html[data-experience="classic"] .wod-next-btn,
html[data-experience="classic"] .wod-signbuilder-btn,
html[data-experience="classic"] .wod-print-signs-btn {
  min-height: 32px;
  border-radius: 5px;
  box-shadow: none;
}
html[data-experience="classic"] .wod-section-title,
html[data-experience="classic"] .wod-pdf-label,
html[data-experience="classic"] .wod-date-lbl {
  color: var(--text-3);
  font-size: 9px;
  letter-spacing: .08em;
}
html[data-experience="classic"] .wod-header-tools,
html[data-experience="classic"] .wod-classic-production-tools {
  display: block;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--bg);
}
html[data-experience="classic"] .wod-header-tools {
  flex: 1 1 100%;
  width: 100%;
}
html[data-experience="classic"] .wod-additional-summary {
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 13px;
  color: var(--text-2);
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  list-style: none;
  text-transform: uppercase;
}
html[data-experience="classic"] .wod-additional-summary::-webkit-details-marker { display: none; }
html[data-experience="classic"] .wod-additional-summary::after {
  content: "+";
  color: var(--text-3);
  font-family: var(--eb-mono);
  font-size: 15px;
  font-weight: 400;
}
html[data-experience="classic"] details[open] > .wod-additional-summary::after { content: "−"; }
html[data-experience="classic"] .wod-additional-hint {
  margin-left: auto;
  color: var(--text-4);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}
html[data-experience="classic"] .wod-header-tools-content {
  display: grid;
  grid-template-columns: 142px minmax(180px, 1fr);
  gap: 14px;
  padding: 12px;
  border-top: 1px solid var(--border);
}
html[data-experience="classic"] .wod-header-tools-content .wod-header-right {
  align-items: stretch;
  justify-content: flex-start;
  text-align: left;
}
html[data-experience="classic"] .wod-additional-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px;
  border-top: 1px solid var(--border);
}
html[data-experience="classic"] details:not([open]) > .wod-header-tools-content,
html[data-experience="classic"] details:not([open]) > .wod-additional-content {
  display: none;
}
html[data-experience="classic"] .wod-classic-production-tools:not([open]) {
  margin-top: 0;
}

/* Classic work-order density pass --------------------------------------- */
html[data-experience="classic"] .wod-back { display: none; }
html[data-experience="classic"] .wod-header-card { padding: 28px 32px; }
html[data-experience="classic"] .wod-header-title-row { padding-right: 96px; }
html[data-experience="classic"] .wod-header-pill-row {
  margin-top: 6px;
  gap: 5px;
}
html[data-experience="classic"] .wod-header-priority-form {
  display: inline-flex;
  margin: 0;
}
html[data-experience="classic"] .wod-header-priority {
  min-height: 22px;
  padding: 2px 22px 2px 8px;
  border: 1px solid var(--border-2);
  border-radius: 999px;
  outline: 0;
  background: var(--bg-2);
  color: var(--text-2);
  font: 650 9px var(--font-body, inherit);
  letter-spacing: .03em;
  text-transform: uppercase;
}
html[data-experience="classic"] .wod-header-priority:focus-visible {
  border-color: var(--blue);
  box-shadow: 0 0 0 2px rgba(56, 189, 248, .16);
}
html[data-experience="classic"] .wod-header-card .wod-status-strip {
  min-height: 64px;
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-2);
}
html[data-experience="classic"] .wod-status-facts { gap: 16px; }
html[data-experience="classic"] .wod-status-fact { gap: 2px; }
html[data-experience="classic"] .wod-status-actions { gap: 6px; }
html[data-experience="classic"] .wod-status-actions .btn,
html[data-experience="classic"] .wod-status-actions .wod-next-btn {
  min-height: 32px;
}
html[data-experience="classic"] .wod-drop-row { margin-top: 8px; }
html[data-experience="classic"] .wod-header-tools .wod-additional-summary,
html[data-experience="classic"] .wod-classic-production-tools .wod-additional-summary {
  min-height: 32px;
  padding-inline: 11px;
}

html[data-experience="classic"] .wod-bom-setup { margin-top: 0 !important; }
html[data-experience="classic"] .wod-bom-setup .bom-status {
  gap: 9px;
  padding: 12px 14px;
  border-radius: 10px;
}
html[data-experience="classic"] .wod-bom-setup .bom-status__header > div { gap: 0; }
html[data-experience="classic"] .wod-bom-setup .bom-workstream { padding: 8px 10px; }
html[data-experience="classic"] .wod-bom-setup .bom-workstream__copy small { font-size: 9px; }

/* Secondary work-order information is one quiet, predictable accordion.
   Finished Goods and the production track stay visually dominant above it. */
html[data-experience="classic"] .wod-classic-master-list {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-1);
}
html[data-experience="classic"] .wod-classic-master-list:empty { display: none; }
html[data-experience="classic"] .wod-classic-master-list > details {
  min-height: 42px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  background: var(--bg-1);
}
html[data-experience="classic"] .wod-classic-master-list > details:last-child {
  border-bottom: 0;
}
html[data-experience="classic"] .wod-classic-master-summary,
html[data-experience="classic"] .wod-classic-master-list > .wod-order-details > .wod-order-details-summary,
html[data-experience="classic"] .wod-classic-master-list > .wod-admin-details > .wod-admin-summary {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 14px;
  color: var(--text-2);
  cursor: pointer;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .075em;
  list-style: none;
  text-transform: uppercase;
}
html[data-experience="classic"] .wod-classic-master-summary::-webkit-details-marker { display: none; }
html[data-experience="classic"] .wod-classic-master-summary > span:last-child {
  margin-left: auto;
  color: var(--text-4);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}
html[data-experience="classic"] .wod-classic-master-list .wod-admin-summary-chevron {
  display: none;
}
html[data-experience="classic"] .wod-classic-master-summary::after,
html[data-experience="classic"] .wod-classic-master-list > .wod-order-details > .wod-order-details-summary::after,
html[data-experience="classic"] .wod-classic-master-list > .wod-admin-details > .wod-admin-summary::after {
  content: "+";
  color: var(--text-3);
  font: 400 16px/1 var(--eb-mono);
}
html[data-experience="classic"] .wod-classic-master-list > details[open] > summary::after { content: "−"; }
html[data-experience="classic"] .wod-classic-master-list > details[open] > summary {
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
html[data-experience="classic"] .wod-classic-master-content {
  padding: 14px;
  background: var(--bg-1);
}
html[data-experience="classic"] .wod-classic-master-content .wod-drop-row {
  margin: 0;
}
html[data-experience="classic"] .wod-classic-master-content .wod-bom-setup {
  margin: 0 !important;
}
html[data-experience="classic"] .wod-more-admin {
  grid-column: 1 / -1;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
html[data-experience="classic"] .wod-more-admin h3 {
  margin: 0 0 10px;
  color: var(--text-3);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}

html[data-experience="classic"] #discussion .wod-section-hdr {
  min-height: 38px;
  padding: 10px 14px;
}
html[data-experience="classic"] .wod-classic-notes {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--bg);
}
html[data-experience="classic"] .wod-classic-notes-summary {
  display: flex;
  min-height: 36px;
  align-items: center;
  gap: 12px;
  padding: 0 12px;
  color: var(--text-2);
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .05em;
  list-style: none;
  text-transform: uppercase;
}
html[data-experience="classic"] .wod-classic-notes-summary::-webkit-details-marker { display: none; }
html[data-experience="classic"] .wod-classic-notes-summary::after {
  content: "+";
  color: var(--text-3);
  font: 400 15px var(--eb-mono);
}
html[data-experience="classic"] .wod-classic-notes[open] > .wod-classic-notes-summary::after { content: "−"; }
html[data-experience="classic"] .wod-classic-notes-hint {
  margin-left: auto;
  color: var(--text-4);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}
html[data-experience="classic"] .wod-classic-notes-panel {
  border-top: 1px solid var(--border);
  background: var(--bg-1);
}
html[data-experience="classic"] #discussion .wod-collab-notes.is-empty { display: none; }
html[data-experience="classic"] .wod-composer-disclosure {
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
}
html[data-experience="classic"] .wod-composer-disclosure > summary {
  display: flex;
  min-height: 40px;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  color: var(--text-2);
  cursor: pointer;
  font-size: 11px;
  font-weight: 650;
  list-style: none;
}
html[data-experience="classic"] .wod-composer-disclosure > summary::-webkit-details-marker { display: none; }
html[data-experience="classic"] .wod-composer-plus {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border: 1px solid var(--border-2);
  border-radius: 50%;
  color: var(--blue-2);
  font: 500 15px/1 var(--eb-mono);
}
html[data-experience="classic"] .wod-composer-disclosure[open] .wod-composer-plus { transform: rotate(45deg); }
html[data-experience="classic"] .wod-composer-disclosure .wod-composer {
  padding: 10px 14px 12px;
  border-top: 1px solid var(--border);
  border-bottom: 0;
}
html[data-experience="classic"] .wod-composer-disclosure .wod-composer form {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) auto;
  gap: 8px 12px;
  align-items: center;
}
html[data-experience="classic"] .wod-composer-disclosure .wod-composer textarea {
  min-height: 38px;
  margin: 0;
  resize: vertical;
}
html[data-experience="classic"] .wod-composer-disclosure .wod-composer-row { display: contents; }
html[data-experience="classic"] .wod-composer-disclosure .wod-composer-left {
  grid-column: 1;
  gap: 7px;
}
html[data-experience="classic"] .wod-composer-disclosure .wod-composer-row > .btn {
  grid-column: 2;
  grid-row: 1 / span 2;
}
html[data-experience="classic"] #discussion.is-feed-empty .wod-feed-tabs,
html[data-experience="classic"] #discussion.is-feed-empty .wod-feed-container { display: none; }
html[data-experience="classic"] .wod-collaboration-empty {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text-4);
  font-size: 10px;
}
html[data-experience="classic"] .wod-collaboration-empty[hidden] { display: none; }

html[data-experience="classic"] .wod-classic-renders-slot:empty { display: none; }
html[data-experience="classic"] .wod-classic-renders-slot #sign-renders-section {
  margin: 0;
  border-radius: 8px;
}

html[data-experience="classic"] .wod-footer-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
}
html[data-experience="classic"] .wod-order-details,
html[data-experience="classic"] .wod-admin-details {
  min-height: 38px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--bg-1);
}
html[data-experience="classic"] .wod-order-details-summary,
html[data-experience="classic"] .wod-admin-summary {
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 13px;
  color: var(--text-3);
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  list-style: none;
  text-transform: uppercase;
}
html[data-experience="classic"] .wod-order-details-summary::-webkit-details-marker { display: none; }
html[data-experience="classic"] .wod-order-details-summary span:last-child {
  color: var(--text-4);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}
html[data-experience="classic"] .wod-order-details[open] .wod-order-details-summary,
html[data-experience="classic"] .wod-admin-details[open] .wod-admin-summary {
  border-bottom: 1px solid var(--border);
}
html[data-experience="classic"] .wod-order-details .wod-detail-list { padding: 12px 13px; }

/* Work-order record: wide screens use their room for readable form fields,
   never for an edge-to-edge line that is hard to scan. */
html[data-experience="classic"] .wod-header-left > .wod-form-reference-grid {
  order: 3;
}
html[data-experience="classic"] .wod-header-card.card {
  border-radius: 16px;
}
html[data-experience="classic"] .wod-classic-master-list .wod-order-details .wod-detail-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 16px;
}
html[data-experience="classic"] .wod-classic-master-list .wod-detail-row {
  display: flex;
  min-width: 0;
  min-height: 64px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 7px;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-2);
}
html[data-experience="classic"] .wod-classic-master-list .wod-detail-row.is-divider {
  padding-top: 11px;
  border-top: 1px solid var(--border);
}
html[data-experience="classic"] .wod-classic-master-list .wod-detail-dt {
  color: var(--text-4);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}
html[data-experience="classic"] .wod-classic-master-list .wod-detail-dd {
  max-width: 100%;
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  text-align: left;
  overflow-wrap: anywhere;
}

@media (max-width: 1100px) {
  html[data-experience="classic"] .wod-wrap { padding-inline: 12px; }
  html[data-experience="classic"] .wod-classic-master-list .wod-order-details .wod-detail-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  html[data-experience="classic"] .wod-wrap { padding: 0 0 32px; }
  html[data-experience="classic"] .wod-header-card { padding: 18px; border-radius: 11px; }
  html[data-experience="classic"] .wod-form-reference-grid { grid-template-columns: 1fr; }
  html[data-experience="classic"] .wod-classic-master-list .wod-order-details .wod-detail-list {
    grid-template-columns: 1fr;
  }
  html[data-experience="classic"] .wod-header-title-row { padding-right: 0; }
  html[data-experience="classic"] .wod-composer-disclosure .wod-composer form { display: block; }
  html[data-experience="classic"] .wod-composer-disclosure .wod-composer textarea { margin-bottom: 8px; }
  html[data-experience="classic"] .wod-composer-disclosure .wod-composer-row { display: flex; }
  html[data-experience="classic"] .wod-footer-grid { grid-template-columns: 1fr; }
}

/* Finished Goods: one search, recent jobs, then the existing scan page ----- */
:where(html[data-experience="classic"], html[data-experience="standard"]) .classic-fg {
  width: min(100%, 980px);
  margin: 0 auto;
}
:where(html[data-experience="classic"], html[data-experience="standard"]) .classic-fg__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  align-items: end;
  gap: 28px;
  padding: 22px 0 20px;
  border-bottom: 1px solid var(--border);
}
:where(html[data-experience="classic"], html[data-experience="standard"]) .classic-fg__eyebrow {
  margin: 0 0 5px;
  color: var(--blue-2);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
:where(html[data-experience="classic"], html[data-experience="standard"]) .classic-fg__header h1 {
  margin: 0;
  color: var(--text);
  font-size: 23px;
  font-weight: 650;
  letter-spacing: -.02em;
}
:where(html[data-experience="classic"], html[data-experience="standard"]) .classic-fg__header p:not(.classic-fg__eyebrow) {
  margin: 5px 0 0;
  color: var(--text-3);
  font-size: 11px;
}
:where(html[data-experience="classic"], html[data-experience="standard"]) .classic-fg__search {
  display: flex;
  min-height: 38px;
  align-items: center;
  gap: 9px;
  padding: 0 12px;
  border: 1px solid var(--border-2);
  border-radius: 6px;
  background: var(--bg);
  color: var(--text-3);
  cursor: pointer;
  font: inherit;
  text-align: left;
}
:where(html[data-experience="classic"], html[data-experience="standard"]) .classic-fg__search:focus-within {
  border-color: var(--blue);
}
:where(html[data-experience="classic"], html[data-experience="standard"]) .classic-fg__search span {
  flex: 1;
  color: var(--text-2);
  font-size: 12px;
}
:where(html[data-experience="classic"], html[data-experience="standard"]) .classic-fg__search kbd {
  padding: 3px 6px;
  border: 1px solid var(--border-2);
  border-radius: 4px;
  background: var(--bg-2);
  color: var(--text-3);
  font: 600 10px/1 var(--eb-mono);
}
:where(html[data-experience="classic"], html[data-experience="standard"]) .classic-fg__recent { padding-top: 18px; }
:where(html[data-experience="classic"], html[data-experience="standard"]) .classic-fg__section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 0 2px 9px;
}
:where(html[data-experience="classic"], html[data-experience="standard"]) .classic-fg__section-head h2 {
  margin: 0;
  color: var(--text);
  font-size: 12px;
  font-weight: 650;
}
:where(html[data-experience="classic"], html[data-experience="standard"]) .classic-fg__section-head span {
  color: var(--text-4);
  font-size: 10px;
}
:where(html[data-experience="classic"], html[data-experience="standard"]) .classic-fg__list {
  border: 1px solid var(--border);
  border-radius: 7px;
  overflow: hidden;
  background: var(--bg);
}
:where(html[data-experience="classic"], html[data-experience="standard"]) .classic-fg__row {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) minmax(260px, 1.25fr) auto;
  min-height: 76px;
  align-items: center;
  gap: 26px;
  padding: 12px 15px;
  border-bottom: 1px solid var(--border);
  color: var(--text-2);
  text-decoration: none;
}
:where(html[data-experience="classic"], html[data-experience="standard"]) .classic-fg__row[hidden],
:where(html[data-experience="classic"], html[data-experience="standard"]) .classic-fg__empty[hidden] { display: none; }
:where(html[data-experience="classic"], html[data-experience="standard"]) .classic-fg__row:last-child { border-bottom: 0; }
:where(html[data-experience="classic"], html[data-experience="standard"]) .classic-fg__row:hover { background: var(--bg-2); }
:where(html[data-experience="classic"], html[data-experience="standard"]) .classic-fg__identity,
:where(html[data-experience="classic"], html[data-experience="standard"]) .classic-fg__progress {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}
:where(html[data-experience="classic"], html[data-experience="standard"]) .classic-fg__identity strong {
  color: var(--blue-2);
  font-family: var(--eb-mono);
  font-size: 12px;
}
:where(html[data-experience="classic"], html[data-experience="standard"]) .classic-fg__identity span {
  overflow: hidden;
  color: var(--text);
  font-size: 11px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}
:where(html[data-experience="classic"], html[data-experience="standard"]) .classic-fg__identity small,
:where(html[data-experience="classic"], html[data-experience="standard"]) .classic-fg__progress small {
  color: var(--text-4);
  font-size: 9px;
}
:where(html[data-experience="classic"], html[data-experience="standard"]) .classic-fg__progress > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--text-3);
  font-size: 10px;
}
:where(html[data-experience="classic"], html[data-experience="standard"]) .classic-fg__progress > div strong {
  color: var(--text-2);
  font-family: var(--eb-mono);
  font-size: 10px;
}
:where(html[data-experience="classic"], html[data-experience="standard"]) .classic-fg__progress progress {
  width: 100%;
  height: 6px;
  overflow: hidden;
  border: 0;
  border-radius: 2px;
  background: var(--bg-3);
  accent-color: var(--green);
}
:where(html[data-experience="classic"], html[data-experience="standard"]) .classic-fg__progress progress::-webkit-progress-bar {
  background: var(--bg-3);
}
:where(html[data-experience="classic"], html[data-experience="standard"]) .classic-fg__progress progress::-webkit-progress-value {
  background: var(--green);
}
:where(html[data-experience="classic"], html[data-experience="standard"]) .classic-fg__progress progress::-moz-progress-bar {
  background: var(--green);
}
:where(html[data-experience="classic"], html[data-experience="standard"]) .classic-fg__progress .classic-fg__hold { color: var(--red); }
:where(html[data-experience="classic"], html[data-experience="standard"]) .classic-fg__open {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-2);
  font-size: 10px;
  font-weight: 650;
  white-space: nowrap;
}
:where(html[data-experience="classic"], html[data-experience="standard"]) .classic-fg__row:hover .classic-fg__open { color: var(--blue-2); }
:where(html[data-experience="classic"], html[data-experience="standard"]) .classic-fg__empty {
  padding: 26px 15px;
  color: var(--text-3);
  font-size: 11px;
  text-align: center;
}

/* Standalone sign-in and degraded screens ------------------------------- */
html[data-experience="classic"] .login-bg {
  background: var(--bg) !important;
}
html[data-experience="classic"] .login-bg::before,
html[data-experience="classic"] .login-bg::after { display: none; }
html[data-experience="classic"] .login-card {
  border: 1px solid var(--border-2);
  border-radius: 8px;
  background: var(--bg-1);
  box-shadow: none;
  backdrop-filter: none;
}
html[data-experience="classic"] .login-brand .brand-text {
  font-size: 0;
}
html[data-experience="classic"] .login-brand .brand-text::after {
  content: "WOHub";
  font-size: 18px;
  font-weight: 700;
}

@media (max-width: 1023.98px), (orientation: portrait) {
  html[data-experience="classic"] #topbar,
  html[data-experience="classic"] #mainContent,
  html[data-experience="classic"] body:not(.sidebar-rail) #topbar,
  html[data-experience="classic"] body:not(.sidebar-rail) #mainContent {
    margin-left: 0;
  }
  html[data-experience="classic"] #mainContent > [class~="px-4"] { padding: 14px !important; }
}

@media (max-width: 760px) {
  html[data-experience="classic"] .woq-control-deck { border-radius: 6px 6px 0 0; }
  html[data-experience="classic"] .woq-results { display: none; }
  html[data-experience="classic"] .db-queue-table-wrap table.tbl th:nth-child(3),
  html[data-experience="classic"] .db-queue-table-wrap table.tbl td:nth-child(3),
  html[data-experience="classic"] .db-queue-table-wrap table.tbl th:nth-child(5),
  html[data-experience="classic"] .db-queue-table-wrap table.tbl td:nth-child(5),
  html[data-experience="classic"] .db-queue-table-wrap table.tbl th:nth-child(7),
  html[data-experience="classic"] .db-queue-table-wrap table.tbl td:nth-child(7) { display: none; }
  html[data-experience="classic"] .wod-header-card { padding: 16px; }
  html[data-experience="classic"] .wod-header-tools-content {
    grid-template-columns: 1fr;
  }
  html[data-experience="classic"] .wod-header-tools-content .wod-qr-panel {
    width: auto;
  }
  html[data-experience="classic"] .wod-additional-hint { display: none; }
  :where(html[data-experience="classic"], html[data-experience="standard"]) .classic-fg__header {
    grid-template-columns: 1fr;
    gap: 14px;
    padding-top: 8px;
  }
  :where(html[data-experience="classic"], html[data-experience="standard"]) .classic-fg__row {
    grid-template-columns: 1fr auto;
    gap: 10px 14px;
  }
  :where(html[data-experience="classic"], html[data-experience="standard"]) .classic-fg__progress {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

/* Lobotomy shell: one clean rail, with profile and scanner tools represented
   in the top bar or their own pages instead of permanent sidebar chrome. */
#sidebar { overflow-x: hidden; }
#sidebar .flat-nav { overflow-x: hidden; }
#sidebar .flat-nav .nav-item span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sidebar-scan-btn-wrap,
#sidebar .user-bar { display: none !important; }
