/*
 * Plotter Sayroh — Workspace redesign
 * Faithful integration of the supplied Claude Design HTML.
 * The existing application remains the data and behaviour layer; this file is
 * the shared visual system for every real view and overlay.
 */

:root {
  --ws-canvas: #eceef2;
  --ws-surface: #ffffff;
  --ws-surface-muted: #f7f8fa;
  --ws-control: #f4f5f7;
  --ws-ink: #19191c;
  --ws-ink-soft: #41454e;
  --ws-muted: #7b8090;
  --ws-faint: #9aa0aa;
  --ws-rule: #e4e6ea;
  --ws-rule-soft: #eceef2;
  --ws-blue: #2f6fed;
  --ws-blue-strong: #1d4ed8;
  --ws-blue-soft: #eaf1ff;
  --ws-mint: #0f9d8f;
  --ws-mint-soft: #e2f6f1;
  --ws-violet: #7c5cf5;
  --ws-violet-soft: #efe8ff;
  --ws-amber: #c07f0a;
  --ws-amber-soft: #fdefd6;
  --ws-green: #0a7a35;
  --ws-green-soft: #d4f7de;
  --ws-red: #c02626;
  --ws-red-soft: #fddad6;
  --ws-success: var(--ws-green);
  --ws-danger: var(--ws-red);
  --ws-shadow-card: 0 1px 2px rgb(24 25 29 / 3%);
  --ws-shadow-menu: 0 12px 34px rgb(24 25 29 / 12%), 0 2px 7px rgb(24 25 29 / 5%);
  --ws-shadow-dialog: 0 28px 70px rgb(24 25 29 / 25%);
  --c-registration-cyan: var(--ws-blue);
  --c-registration-cyan-ink: var(--ws-blue-strong);
  --c-registration-magenta: var(--ws-violet);
  --c-registration-magenta-ink: #6544e6;
  --c-plotter-yellow: #f59e0b;
  --c-yellow-ink: var(--ws-amber);
  --c-carbon: var(--ws-ink);
  --c-carbon-soft: var(--ws-ink-soft);
  --c-ink-muted: var(--ws-muted);
  --c-film: var(--ws-canvas);
  --c-paper: var(--ws-surface);
  --c-cutting-mat: var(--ws-control);
  --c-rule: var(--ws-rule);
  --c-rule-strong: #d4d7dd;
  --c-success: var(--ws-green);
  --c-success-surface: var(--ws-green-soft);
  --c-warning: var(--ws-amber);
  --c-warning-surface: var(--ws-amber-soft);
  --c-danger: var(--ws-red);
  --c-danger-surface: var(--ws-red-soft);
  --c-info-surface: var(--ws-blue-soft);
  --c-magenta-surface: var(--ws-violet-soft);
  --chip-info-bg: #dbe8ff;
  --chip-info-ink: var(--ws-blue-strong);
  --chip-success-bg: var(--ws-green-soft);
  --chip-success-ink: var(--ws-green);
  --chip-danger-bg: var(--ws-red-soft);
  --chip-danger-ink: var(--ws-red);
  --chip-warning-bg: var(--ws-amber-soft);
  --chip-warning-ink: var(--ws-amber);
  --chip-neutral-bg: #f1f2f3;
  --chip-neutral-ink: #52565c;
  --rompoda-chart-revenue: var(--ws-blue);
  --rompoda-chart-revenue-strong: var(--ws-blue-strong);
  --rompoda-chart-revenue-light: #8ab0f7;
  --rompoda-chart-revenue-previous: #dbe6ff;
  --rompoda-chart-commission: var(--ws-mint);
  --rompoda-chart-commission-previous: #d8f0eb;
  --rompoda-chart-grid: var(--ws-rule-soft);
  --rompoda-chart-axis: var(--ws-muted);
  --page-gutter: 1.125rem;
  --content-max: none;
  --radius-hairline: 0.625rem;
  --radius-card: 0.875rem;
  --radius-dialog: 1.125rem;
  --shadow-card: var(--ws-shadow-card);
  --shadow-float: var(--ws-shadow-menu);
  --shadow-dialog: var(--ws-shadow-dialog);
  --focus-ring: 0 0 0 3px rgb(47 111 237 / 20%);
}

html,
body {
  min-height: 100%;
  background: var(--ws-canvas);
}

body {
  overflow: hidden;
  color: var(--ws-ink);
  font-family: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body::before,
.app-shell::before,
.app-shell::after,
.view-header::before,
.view-header::after,
.selection-deck::before,
.production-sheet::before,
.stats-tally::before {
  display: none !important;
}

::selection {
  background: #cfdcff;
  color: var(--ws-ink);
}

a {
  color: var(--ws-blue);
}

a:hover {
  color: var(--ws-blue-strong);
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a,
input,
select,
summary {
  transition: border-color 140ms ease, background-color 140ms ease, color 140ms ease, box-shadow 140ms ease;
}

.button,
.icon-button,
.operator-button,
.custom-select__trigger,
.field input,
.field select,
.period-control select,
.date-range-picker__trigger {
  box-shadow: none;
  transform: none;
}

.button:hover,
.icon-button:hover,
.custom-select__trigger:hover {
  box-shadow: none;
  transform: none;
}

.button {
  min-height: 2.375rem;
  border-radius: 0.625rem;
  font-size: 0.8125rem;
  font-weight: 620;
}

.button--key,
.button--magenta {
  border-color: var(--ws-blue);
  background: var(--ws-blue);
  color: #fff;
  box-shadow: 0 1px 2px rgb(47 111 237 / 28%);
}

.button--key:hover,
.button--magenta:hover {
  border-color: var(--ws-blue-strong);
  background: var(--ws-blue-strong);
}

.button--line,
.button--line-on-key {
  border-color: var(--ws-rule);
  background: #fff;
  color: var(--ws-ink-soft);
}

.button--line:hover,
.button--line-on-key:hover {
  border-color: #c8ccd4;
  background: var(--ws-surface-muted);
}

.icon-button {
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--ws-rule);
  border-radius: 0.5625rem;
  background: #fff;
  color: var(--ws-ink-soft);
}

.icon-button:hover {
  border-color: #c8ccd4;
  background: var(--ws-control);
  color: var(--ws-ink);
}

.icon-tile {
  display: grid;
  width: 1.875rem;
  height: 1.875rem;
  flex: 0 0 1.875rem;
  place-items: center;
  border-radius: 0.5625rem;
  background: var(--ws-blue-soft);
  color: var(--ws-blue);
}

.icon-tile .app-icon {
  width: 1.05rem;
  height: 1.05rem;
}

.icon-tile--blue { background: var(--ws-blue-soft); color: var(--ws-blue); }
.icon-tile--mint { background: var(--ws-mint-soft); color: var(--ws-mint); }
.icon-tile--violet { background: var(--ws-violet-soft); color: var(--ws-violet); }
.icon-tile--amber { background: var(--ws-amber-soft); color: var(--ws-amber); }
.icon-tile--danger { background: var(--ws-red-soft); color: var(--ws-red); }
.icon-tile--success { background: var(--ws-green-soft); color: var(--ws-green); }

/* Loading and authentication */
.loading-view {
  background: var(--ws-canvas);
}

.loading-sheet {
  border: 1px solid var(--ws-rule);
  border-radius: 1rem;
  background: #fff;
  box-shadow: var(--ws-shadow-menu);
}

.loading-sheet__spinner {
  border-color: var(--ws-rule);
  border-top-color: var(--ws-blue);
}

.login-view {
  display: grid;
  min-height: 100vh;
  place-items: center;
  overflow: auto;
  background: var(--ws-canvas);
  padding: clamp(1rem, 4vw, 3rem);
}

.login-layout {
  display: grid;
  width: min(68rem, 100%);
  min-height: 39rem;
  grid-template-columns: minmax(20rem, 0.85fr) minmax(28rem, 1.15fr);
  overflow: hidden;
  border: 1px solid var(--ws-rule);
  border-radius: 1.125rem;
  background: #fff;
  box-shadow: 0 24px 70px rgb(24 25 29 / 12%);
}

.login-sheet {
  display: flex;
  width: auto;
  max-width: none;
  flex-direction: column;
  justify-content: center;
  border: 0;
  border-radius: 0;
  padding: clamp(2rem, 5vw, 4.5rem);
  box-shadow: none;
}

.login-sheet > .eyebrow {
  display: none;
}

.login-sheet .brand-lockup--large {
  justify-content: flex-start;
  margin-bottom: 2.25rem;
}

.login-sheet h1 {
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
  letter-spacing: -0.035em;
}

.login-sheet__copy {
  margin: 0 0 1.25rem;
  color: var(--ws-muted);
  font-size: 0.875rem;
  line-height: 1.5;
}

.login-sheet .source-notice--compact {
  margin: 0 0 1.5rem;
}

.login-form {
  gap: 1rem;
}

.login-form .field label {
  color: var(--ws-ink-soft);
  font-size: 0.75rem;
  font-weight: 600;
}

.login-form input {
  height: 2.75rem;
  border-color: var(--ws-rule);
  border-radius: 0.625rem;
  background: #fff;
}

.login-form input:focus {
  border-color: var(--ws-blue);
  box-shadow: var(--focus-ring);
}

.login-form .button--wide {
  display: inline-flex;
  height: 2.875rem;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 0.75rem;
}

.login-preview {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  border-left: 1px solid var(--ws-rule-soft);
  background: #f7f9fc;
  padding: clamp(2rem, 5vw, 4rem);
}

.login-preview::before {
  position: absolute;
  inset: -25% auto auto 48%;
  width: 26rem;
  height: 26rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(47 111 237 / 9%), transparent 68%);
  content: "";
  pointer-events: none;
}

.login-preview__brand,
.login-preview__features li {
  display: flex;
  align-items: center;
}

.login-preview__brand {
  gap: 0.75rem;
  margin-bottom: auto;
}

.login-preview__mark {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border-radius: 0.6875rem;
  background: var(--ws-ink);
}

.login-preview__mark img {
  width: 1.45rem;
  height: 1.45rem;
  filter: invert(1);
}

.login-preview__brand strong,
.login-preview__brand small {
  display: block;
}

.login-preview__brand strong { font-size: 0.9375rem; }
.login-preview__brand small { margin-top: 0.12rem; color: var(--ws-muted); font-size: 0.75rem; }

.login-preview__copy {
  position: relative;
  margin: 3.5rem 0 2rem;
}

.login-preview__copy h2 {
  max-width: 18ch;
  margin: 0.4rem 0 0.75rem;
  font-size: clamp(1.75rem, 3vw, 2.2rem);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.login-preview__copy > p:last-child {
  max-width: 48ch;
  margin: 0;
  color: var(--ws-muted);
  font-size: 0.875rem;
  line-height: 1.55;
}

.login-preview__features {
  display: grid;
  gap: 0.625rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.login-preview__features li {
  gap: 0.75rem;
  border: 1px solid var(--ws-rule);
  border-radius: 0.75rem;
  background: rgb(255 255 255 / 82%);
  padding: 0.75rem;
}

.login-preview__features strong,
.login-preview__features small { display: block; }
.login-preview__features strong { font-size: 0.8125rem; }
.login-preview__features small { margin-top: 0.15rem; color: var(--ws-muted); font-size: 0.71875rem; }

.login-preview__foot {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: auto 0 0;
  color: var(--ws-muted);
  font-size: 0.75rem;
}

.login-preview__foot span {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--ws-green);
}

/* Main application shell */
.app-shell {
  display: grid;
  width: 100%;
  height: 100vh;
  min-height: 0;
  grid-template-columns: 16.375rem minmax(0, 1fr);
  gap: 0.625rem;
  overflow: hidden;
  background: var(--ws-canvas);
  padding: 0.625rem;
  transition: grid-template-columns 180ms ease;
}

.app-shell.is-sidebar-collapsed {
  grid-template-columns: 4.75rem minmax(0, 1fr);
}

.workspace-sidebar {
  position: relative;
  inset: auto;
  z-index: 20;
  width: auto;
  height: calc(100vh - 1.25rem);
  border: 1px solid var(--ws-rule);
  border-radius: 1rem;
  background: #fff;
  box-shadow: none;
}

.workspace-sidebar__inner {
  display: flex;
  width: 100%;
  height: 100%;
  min-height: 0;
  flex-direction: column;
  gap: 0.875rem;
  padding: 0.75rem;
}

.workspace-sidebar__toggle {
  position: absolute;
  z-index: 2;
  top: 1.2rem;
  right: -0.6875rem;
  display: grid;
  width: 1.5rem;
  height: 1.5rem;
  place-items: center;
  border: 1px solid var(--ws-rule);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 12px rgb(24 25 29 / 12%);
  color: var(--ws-muted);
  cursor: pointer;
}

.workspace-sidebar__toggle:hover {
  border-color: #b8caf6;
  background: var(--ws-blue-soft);
  color: var(--ws-blue-strong);
}

.workspace-sidebar__toggle:focus-visible { outline: none; box-shadow: var(--focus-ring), 0 4px 12px rgb(24 25 29 / 12%); }
.workspace-sidebar__toggle .app-icon { width: 0.875rem; height: 0.875rem; transform: rotate(90deg); transition: transform 180ms ease; }
.app-shell.is-sidebar-collapsed .workspace-sidebar__toggle .app-icon { transform: rotate(-90deg); }

.app-shell.is-sidebar-collapsed .workspace-sidebar__inner {
  gap: 0.625rem;
  padding-inline: 0.5rem;
}

.app-shell.is-sidebar-collapsed .workspace-switcher {
  justify-content: center;
  border-color: transparent;
  padding-inline: 0;
}

.app-shell.is-sidebar-collapsed .workspace-switcher .brand-lockup__identity,
.app-shell.is-sidebar-collapsed .workspace-search--sidebar,
.app-shell.is-sidebar-collapsed .workspace-quick-filters,
.app-shell.is-sidebar-collapsed .workspace-sidebar .source-notice,
.app-shell.is-sidebar-collapsed .workspace-profile__copy,
.app-shell.is-sidebar-collapsed .workspace-profile > .app-icon,
.app-shell.is-sidebar-collapsed .primary-nav__count { display: none; }

.app-shell.is-sidebar-collapsed .primary-nav__link {
  justify-content: center;
  gap: 0;
  padding-inline: 0;
  font-size: 0;
}

.app-shell.is-sidebar-collapsed .workspace-profile {
  margin-top: auto;
  grid-template-columns: 1fr;
  justify-items: center;
  border-color: transparent;
  padding-inline: 0;
}

.app-shell.is-sidebar-collapsed .selection-deck {
  left: calc(4.75rem + 2.25rem);
}

.workspace-switcher {
  display: flex;
  width: 100%;
  min-width: 0;
  align-items: center;
  gap: 0.625rem;
  border: 1px solid var(--ws-rule);
  border-radius: 0.75rem;
  background: #fff;
  padding: 0.5rem;
  color: var(--ws-ink);
}

.workspace-switcher:hover {
  border-color: #c8ccd4;
  background: var(--ws-surface-muted);
  color: var(--ws-ink);
}

.workspace-switcher .brand-lockup__symbol {
  width: 2.375rem;
  height: 2.375rem;
  flex: 0 0 2.375rem;
  border-radius: 0.5625rem;
  background: var(--ws-ink);
  padding: 0;
  filter: none;
}

.workspace-switcher .brand-lockup__identity {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.08rem;
}

.workspace-switcher .brand-lockup__wordmark {
  width: 5.5rem;
  height: auto;
}

.workspace-switcher .brand-lockup__product {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.workspace-switcher__meta {
  display: block;
  overflow: hidden;
  max-width: 100%;
  color: var(--ws-muted);
  font-size: 0.6875rem;
  font-weight: 450;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-search {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--ws-rule-soft);
  border-radius: 0.625rem;
  background: var(--ws-control);
  color: var(--ws-faint);
  padding: 0 0.625rem;
}

.workspace-search:focus-within {
  border-color: #b8caf6;
  background: #fff;
  box-shadow: var(--focus-ring);
}

.workspace-search .app-icon {
  width: 1rem;
  height: 1rem;
  flex: 0 0 1rem;
}

.workspace-search input {
  width: 100%;
  min-width: 0;
  height: 2.25rem;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ws-ink);
  font-size: 0.8125rem;
}

.workspace-search input:focus,
.workspace-search input:focus-visible {
  outline: none;
  box-shadow: none;
}

.workspace-search input::placeholder { color: var(--ws-faint); }

.workspace-search kbd {
  border: 1px solid var(--ws-rule);
  border-radius: 0.3125rem;
  background: #fff;
  padding: 0.08rem 0.32rem;
  color: var(--ws-faint);
  font-family: var(--font-data);
  font-size: 0.625rem;
}

.primary-nav {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 0.125rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
}

.primary-nav__link {
  display: flex;
  width: 100%;
  min-height: 2.25rem;
  align-items: center;
  justify-content: flex-start;
  gap: 0.625rem;
  border: 0;
  border-radius: 0.625rem;
  background: transparent;
  padding: 0.5rem 0.625rem;
  color: var(--ws-ink-soft);
  font-size: 0.84375rem;
  font-weight: 520;
}

.primary-nav__link .app-icon {
  width: 1.125rem;
  height: 1.125rem;
  color: var(--ws-muted);
}

.primary-nav__link:hover {
  background: var(--ws-control);
  color: var(--ws-ink);
}

.primary-nav__link.is-active,
.primary-nav__link[aria-current="page"] {
  background: var(--ws-blue-soft);
  color: var(--ws-blue-strong);
  font-weight: 620;
}

.primary-nav__link.is-active .app-icon,
.primary-nav__link[aria-current="page"] .app-icon { color: var(--ws-blue); }

.primary-nav__count {
  margin-left: auto;
  border-radius: 0.375rem;
  background: #fff;
  padding: 0.12rem 0.4rem;
  color: var(--ws-blue-strong);
  font-family: var(--font-data);
  font-size: 0.65625rem;
  font-weight: 650;
}

.workspace-quick-filters {
  display: grid;
  width: 100%;
  gap: 0.125rem;
  justify-items: stretch;
}

.workspace-quick-filters > p {
  margin: 0.5rem 0.625rem 0.25rem;
  color: var(--ws-faint);
  font-size: 0.65625rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.workspace-quick-filters button {
  display: grid;
  width: 100%;
  min-height: 2rem;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.625rem;
  border: 0;
  border-radius: 0.5625rem;
  background: transparent;
  padding: 0.4rem 0.625rem;
  color: var(--ws-ink-soft);
  font-size: 0.78125rem;
  text-align: left;
  cursor: pointer;
}

.workspace-quick-filters button > strong:last-child { justify-self: end; }

.workspace-quick-filters button:hover { background: var(--ws-control); }
.workspace-quick-filters button strong { color: var(--ws-muted); font-family: var(--font-data); font-size: 0.6875rem; }
.workspace-quick-filters button.is-active { background: #f5f8ff; color: var(--ws-blue-strong); font-weight: 650; }
.workspace-context__label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace-context__button:not(:has(.status-dot, .workspace-context__badge)) .workspace-context__label { grid-column: 1 / 3; }
.workspace-context__button:not(:has(.status-dot, .workspace-context__badge, strong)) .workspace-context__label { grid-column: 1 / -1; }
.workspace-context__button small { color: var(--ws-faint); font-family: var(--font-data); font-size: 0.625rem; white-space: nowrap; }
.workspace-context__empty { margin: 0.25rem 0.625rem 0; color: var(--ws-muted); font-size: 0.71875rem; line-height: 1.45; }
.workspace-context__badge {
  display: grid;
  min-width: 1.75rem;
  height: 1.25rem;
  place-items: center;
  border-radius: 0.375rem;
  padding: 0 0.3rem;
  background: var(--ws-blue-soft);
  color: var(--ws-blue-strong);
  font-family: var(--font-data);
  font-size: 0.5625rem;
  font-weight: 750;
}
.workspace-context__badge--violet { background: var(--ws-violet-soft); color: #6544e6; }
.workspace-context__badge--success,
.workspace-context__badge--mint { background: var(--ws-green-soft); color: var(--ws-green); }
.workspace-context__badge--amber { background: var(--ws-amber-soft); color: var(--ws-amber); }
.workspace-context__badge--ink { min-width: 1.25rem; width: 1.25rem; padding: 0; border-radius: 50%; background: var(--ws-ink); color: #fff; }
.file-type-badge--csv,
.process-queue-file__type--csv { background: #dbeafe; color: #1d4ed8; }
.file-type-badge--pdf,
.process-queue-file__type--pdf { background: #f3d8ff; color: #a21caf; }
.file-type-badge--xls,
.process-queue-file__type--xls { background: #d7f5df; color: #167a3e; }
.file-type-badge--file,
.process-queue-file__type--file { background: #eef0f3; color: #59606c; }
.workspace-quick-filters button:has(.workspace-context__badge) { grid-template-columns: auto minmax(0, 1fr) auto; gap: 0.5rem; }

.status-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--ws-faint);
}

.status-dot--local { background: #16a34a; }
.status-dot--amber { background: #f59e0b; }
.status-dot--danger { background: #ef4444; }
.status-dot--success { background: #16a34a; }

.workspace-sidebar .source-notice {
  display: block;
  margin-top: auto;
  border: 1px solid #dbe6ff;
  border-radius: 0.75rem;
  background: #f5f8ff;
  padding: 0.75rem;
}

.workspace-sidebar .source-notice__icon { display: none; }
.workspace-sidebar .source-notice p { display: block; margin: 0; color: var(--ws-muted); font-size: 0.6875rem; line-height: 1.45; }
.workspace-sidebar .source-notice p strong { display: block; margin-bottom: 0.25rem; color: var(--ws-blue-strong); font-size: 0.71875rem; }
.workspace-sidebar .source-notice p span[aria-hidden="true"] { display: none; }
.workspace-sidebar .source-notice__action { margin-top: 0.45rem; color: var(--ws-blue-strong); font-size: 0.6875rem; font-weight: 650; }

.workspace-profile {
  display: grid;
  width: 100%;
  min-width: 0;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.625rem;
  border: 1px solid var(--ws-rule);
  border-radius: 0.75rem;
  background: #fff;
  padding: 0.5rem;
  color: var(--ws-ink);
  text-align: left;
  cursor: pointer;
}

.workspace-profile:hover { border-color: #c8ccd4; background: var(--ws-surface-muted); }
.workspace-profile__avatar { display: grid; width: 2rem; height: 2rem; place-items: center; border-radius: 50%; background: var(--ws-ink); color: #fff; font-size: 0.6875rem; font-weight: 650; }
.workspace-profile__copy { min-width: 0; line-height: 1.25; }
.workspace-profile__copy strong,
.workspace-profile__copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace-profile__copy strong { font-size: 0.78125rem; }
.workspace-profile__copy small { margin-top: 0.12rem; color: var(--ws-muted); font-size: 0.6875rem; }
.workspace-profile > .app-icon { width: 1rem; height: 1rem; color: var(--ws-faint); }

.workspace-surface {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--ws-rule);
  border-radius: 1rem;
  background: #fff;
}

.workspace-toolbar {
  display: flex;
  min-height: 3.8125rem;
  flex: 0 0 3.8125rem;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid var(--ws-rule-soft);
  background: #fff;
  padding: 0.75rem 1.125rem;
}

.workspace-breadcrumb {
  display: flex;
  min-width: max-content;
  align-items: center;
  gap: 0.45rem;
  color: var(--ws-muted);
  font-size: 0.8125rem;
}

.workspace-breadcrumb > span:nth-child(2) { color: #c8ccd4; }
.workspace-breadcrumb strong { color: var(--ws-ink); font-weight: 620; }

.workspace-search--global {
  width: min(22rem, 34vw);
  margin-left: auto;
}

.operator-tools {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.source-chip {
  height: 2.25rem;
  border: 1px solid #bfead6;
  border-radius: 999px;
  background: #ddf8ec;
  padding: 0 0.75rem;
  color: #08714a;
  font-size: 0.75rem;
  font-weight: 650;
}

.source-chip .app-icon { width: 0.9rem; height: 0.9rem; }

.operator-button {
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 50%;
  background: var(--ws-ink);
  box-shadow: none;
  color: #fff;
  font-size: 0.6875rem;
}

.app-main {
  width: 100%;
  min-width: 0;
  min-height: 0;
  flex: 1;
  overflow: auto;
  scroll-behavior: smooth;
  background: #fff;
  padding: 1.25rem 1.125rem 7.5rem;
}

.app-main:focus { outline: none; }

.app-view {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.app-shell.is-bootstrap-error #production-view .workspace-view-actions,
.app-shell.is-bootstrap-error #queue-filters,
.app-shell.is-bootstrap-error .queue-command,
.app-shell.is-bootstrap-error #queue-empty button { display: none; }

.app-footer {
  display: flex;
  min-height: 2.625rem;
  flex: 0 0 auto;
  align-items: center;
  border-top: 1px solid var(--ws-rule-soft);
  background: #fff;
  padding: 0.5rem 1.125rem;
  color: var(--ws-muted);
  font-size: 0.6875rem;
}

.app-footer__brand { opacity: 0.6; }

/* View headings and metrics */
.view-header,
.export-view-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1.25rem;
  margin: 0 0 1rem;
  border: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
}

.view-header__copy {
  min-width: 17.5rem;
}

.workspace-view-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.workspace-view-actions .button {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.workspace-view-actions .app-icon {
  width: 1rem;
  height: 1rem;
}

.export-view-actions .button[data-selected-count]:not([data-selected-count="0"])::after {
  display: grid;
  min-width: 1.25rem;
  height: 1.25rem;
  place-items: center;
  border-radius: 999px;
  background: rgb(255 255 255 / 20%);
  content: attr(data-selected-count);
  font-family: var(--font-data);
  font-size: 0.625rem;
}

.view-header .eyebrow,
.export-view-header .eyebrow {
  display: none;
}

.view-header h1,
.export-view-header h1 {
  margin: 0 0 0.25rem;
  font-size: 1.625rem;
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.view-header__copy > p:last-child {
  max-width: 64ch;
  margin: 0;
  color: #6b707c;
  font-size: 0.84375rem;
  line-height: 1.5;
}

.tally-ruler {
  display: grid;
  width: 100%;
  flex: 1 0 100%;
  grid-template-columns: repeat(4, minmax(10rem, 1fr));
  gap: 0.75rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
}

.tally-ruler__item,
.stats-tally > div {
  position: relative;
  display: grid;
  min-height: 7.75rem;
  align-content: start;
  border: 1px solid var(--ws-rule);
  border-radius: 0.875rem;
  background: #fff;
  padding: 0.875rem;
  box-shadow: var(--ws-shadow-card);
}

.tally-ruler__item + .tally-ruler__item { border-left: 1px solid var(--ws-rule); }

.tally-ruler__label,
.metric-card__label {
  display: flex;
  align-items: center;
  gap: 0.5625rem;
  margin-bottom: 0.75rem;
}

.tally-ruler dt,
.stats-tally dt {
  color: var(--ws-muted);
  font-size: 0.6875rem;
  font-weight: 650;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.tally-ruler dd,
.stats-tally dd {
  margin: 0;
  color: var(--ws-ink);
  font-family: var(--font-data);
  font-size: clamp(1.55rem, 2.5vw, 1.875rem);
  font-weight: 650;
  letter-spacing: -0.045em;
  line-height: 1;
}

.tally-ruler small,
.stats-tally small {
  margin-top: auto;
  border-top: 1px solid #f1f2f5;
  padding-top: 0.65rem;
  color: var(--ws-muted);
  font-size: 0.71875rem;
}

.stats-tally {
  display: grid;
  grid-template-columns: repeat(4, minmax(10rem, 1fr));
  gap: 0.75rem;
  margin: 0 0 1rem;
  border: 0;
  background: transparent;
}

.stats-tally > div + div { border-left: 1px solid var(--ws-rule); }

/* Filters and queue controls */
.filter-bench {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  margin: 0 0 0.875rem;
  border: 0;
  border-bottom: 1px solid var(--ws-rule-soft);
  border-radius: 0;
  background: transparent;
  padding: 0 0 0.75rem;
  box-shadow: none;
}

#queue-filters > .field--search,
.filter-bench--history > .field--search,
.filter-bench--activity > .field--search,
.export-results__search-row > .field--search {
  display: none;
}

.filter-bench .field {
  min-width: 8.5rem;
  flex: 0 1 auto;
}

.filter-bench .field > label,
.filter-bench .field__label {
  margin-bottom: 0.3rem;
  color: var(--ws-muted);
  font-size: 0.6875rem;
  font-weight: 600;
}

.field input,
.field select,
.custom-select__trigger,
.period-control select {
  min-height: 2.25rem;
  border: 1px solid var(--ws-rule);
  border-radius: 0.5625rem;
  background: #fff;
  color: var(--ws-ink-soft);
  font-size: 0.78125rem;
}

.field input:hover,
.field select:hover,
.custom-select__trigger:hover,
.period-control select:hover {
  border-color: #c8ccd4;
}

.field input:focus,
.field select:focus,
.custom-select__trigger:focus-visible,
.period-control select:focus {
  border-color: var(--ws-blue);
  box-shadow: var(--focus-ring);
}

.filter-bench__more {
  width: 100%;
  flex-basis: 100%;
  border: 1px solid var(--ws-rule);
  border-radius: 0.75rem;
  background: var(--ws-surface-muted);
  padding: 0.75rem;
}

.custom-select__menu,
.status-popover,
.order-sort-popover,
.operator-popover {
  border: 1px solid var(--ws-rule);
  border-radius: 0.8125rem;
  background: #fff;
  box-shadow: var(--ws-shadow-menu);
  padding: 0.4rem;
}

.custom-select__option,
.status-popover__option,
.operator-popover button {
  border-radius: 0.5625rem;
}

.custom-select__option:hover,
.custom-select__option:focus-visible,
.custom-select__option[aria-selected="true"],
.status-popover__option:hover,
.operator-popover button:hover {
  background: var(--ws-control);
  color: var(--ws-ink);
}

.queue-command {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 0.875rem;
  border: 0;
  background: transparent;
  padding: 0;
}

.queue-command__result {
  margin-left: auto;
  color: var(--ws-muted);
  font-size: 0.75rem;
}

.queue-command .field--inline label { color: var(--ws-muted); font-size: 0.71875rem; }

.check-control input {
  border-color: #bfc3cb;
  border-radius: 0.25rem;
}

.check-control input:checked {
  border-color: var(--ws-blue);
  background: var(--ws-blue);
}

.production-stack {
  display: grid;
  gap: 0.75rem;
}

.production-sheet {
  overflow: hidden;
  border: 1px solid var(--ws-rule);
  border-radius: 0.875rem;
  background: #fff;
  box-shadow: var(--ws-shadow-card);
}

.production-sheet__header,
.production-sheet--collapsed .production-sheet__header {
  min-height: 4.5rem;
  border: 0;
  border-bottom: 1px solid var(--ws-rule-soft);
  background: #fff;
  padding: 0.75rem 0.875rem;
}

.production-sheet__header:hover { background: #fbfcfd; }

.production-sheet__identity h2 {
  font-size: 0.9375rem;
  letter-spacing: -0.015em;
}

.production-sheet__identity > p:first-child { color: var(--ws-muted); font-family: var(--font-data); font-size: 0.65625rem; }
.production-sheet__identity > p:last-child { color: var(--ws-muted); font-size: 0.71875rem; }

.product-thumbnail {
  border: 1px solid var(--ws-rule);
  border-radius: 0.625rem;
  background: var(--ws-surface-muted);
}

.sheet-progress__labels { color: var(--ws-muted); font-size: 0.6875rem; }
.sheet-progress__track { height: 0.25rem; background: var(--ws-rule-soft); }
.sheet-progress__track span { background: var(--ws-blue); }

.table-scroll {
  scrollbar-color: #c8ccd4 transparent;
}

.work-table {
  min-width: 72rem;
  border-collapse: collapse;
}

.work-table th,
.work-table td {
  border-color: var(--ws-rule-soft);
  padding: 0.65rem 0.75rem;
}

.work-table th {
  background: var(--ws-surface-muted);
  color: var(--ws-muted);
  font-size: 0.6875rem;
  font-weight: 620;
  text-transform: none;
}

.work-table tbody tr { background: #fff; }
.work-table tbody tr:hover td { background: #fbfcfd; }
.work-table tbody tr:has(input[type="checkbox"]:checked) td { background: #f5f8ff; }
.work-table tbody tr:has(input[type="checkbox"]:checked) td:first-child { box-shadow: inset 2px 0 var(--ws-blue); }

.work-table td,
.work-table td > small { font-size: 0.75rem; }
.work-table td > small { color: var(--ws-muted); }
.work-table__order .mono { font-size: 0.78125rem; }
.data-field-label { color: var(--ws-blue-strong); }
.copy-field-value { color: var(--ws-ink); }
.copy-field-value:hover { background: var(--ws-control); color: var(--ws-ink); }

.order-state-tag,
.workflow-status__trigger,
.csv-state,
.export-work-card__exported-tag {
  min-height: 1.625rem;
  border-radius: 999px;
  padding: 0.24rem 0.55rem;
  font-size: 0.71875rem;
  font-weight: 600;
}

.workflow-status__trigger--pending { background: #f1f2f3; color: #52565c; }
.workflow-status__trigger--processed { background: var(--ws-green-soft); color: var(--ws-green); }
.order-state-tag--success { background: var(--ws-green-soft); color: var(--ws-green); }
.order-state-tag--warning { background: var(--ws-amber-soft); color: var(--ws-amber); }
.order-state-tag--danger { background: var(--ws-red-soft); color: var(--ws-red); }
.order-state-tag--info { background: var(--ws-blue-soft); color: var(--ws-blue-strong); }
.order-state-tag--neutral { background: #f1f2f3; color: #52565c; }
.order-state-tag__dot { display: none; }

.queue-pagination {
  border-color: var(--ws-rule);
  border-radius: 0.75rem;
  background: #fff;
}

.selection-deck {
  right: 1.75rem;
  bottom: 1.75rem;
  left: calc(16.375rem + 2.25rem);
  width: auto;
  max-width: none;
  border: 1px solid #30323a;
  border-radius: 0.8125rem;
  background: var(--ws-ink);
  padding: 0.7rem 0.875rem;
  box-shadow: 0 16px 40px rgb(24 25 29 / 24%);
}

.selection-deck__summary p:first-child { color: #fff; font-size: 0.8125rem; }
.selection-deck__summary p:last-child { color: #a8adb8; font-size: 0.71875rem; }
.selection-deck .button--magenta { border-color: var(--ws-blue); background: var(--ws-blue); }
.selection-deck .button--line-on-key { border-color: #3c3e46; background: transparent; color: #fff; }

/* Export workspace */
.export-workbench {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 17.5rem;
  gap: 0.875rem;
}

.export-results,
.export-filter-card {
  border: 1px solid var(--ws-rule);
  border-radius: 0.875rem;
  background: #fff;
  box-shadow: var(--ws-shadow-card);
}

.export-results { overflow: hidden; padding: 0; }
.export-results__header { border-bottom: 1px solid var(--ws-rule-soft); background: #fff; padding: 0.875rem; }
.export-results__header h2,
.export-filter-card h2 { font-size: 0.9375rem; letter-spacing: -0.015em; }
.export-results__search-row { margin: 0; border-bottom: 1px solid var(--ws-rule-soft); padding: 0.625rem 0.875rem; }
.export-results__date-help { margin: 0; font-size: 0.71875rem; }
.export-results__table { overflow-x: auto; outline: none; }
.export-results__table:focus-visible { box-shadow: inset 0 0 0 2px var(--ws-blue); }
.export-results__columns {
  display: grid;
  grid-template-columns: 1.2rem 3.25rem minmax(8rem, 1.3fr) minmax(8rem, 1fr) minmax(7rem, 0.9fr) minmax(7rem, 1fr) auto minmax(8rem, 1fr);
  gap: 0.75rem;
  border-bottom: 1px solid var(--ws-rule-soft);
  background: #fafbfc;
  padding: 0.55rem 0.875rem;
  color: var(--ws-faint);
  font-size: 0.625rem;
  font-weight: 650;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.export-results__list { gap: 0; padding: 0; }
.export-results__columns,
.export-work-card { min-width: 59rem; }

.export-work-card {
  grid-template-columns: 1.2rem 3.25rem minmax(8rem, 1.3fr) minmax(8rem, 1fr) minmax(7rem, 0.9fr) minmax(7rem, 1fr) auto minmax(8rem, 1fr);
  grid-template-areas: "select image identity personalization order club measure processed";
  min-height: 5rem;
  gap: 0.35rem 0.75rem;
  border: 0;
  border-bottom: 1px solid var(--ws-rule-soft);
  border-radius: 0;
  background: #fff;
  box-shadow: none;
  padding: 0.6rem 0.875rem;
}

.export-work-card:last-child { border-bottom: 0; }
.export-work-card:hover { border-color: var(--ws-rule-soft); background: #fbfcfd; box-shadow: none; transform: none; }
.export-work-card.is-selected { background: #f5f8ff; box-shadow: inset 2px 0 var(--ws-blue); }
.export-work-card__image {
  display: grid;
  width: 3.25rem;
  height: 4rem;
  border: 1px solid var(--ws-rule);
  border-radius: 0.65rem;
  background: #f4f5f6;
}
.export-work-card__image img { object-fit: cover; }
.export-work-card__fallback { font-size: 0.875rem; }
.export-work-card__identity h2 { font-size: 0.8125rem; }
.export-work-card__field strong { font-size: 0.75rem; }
.export-work-card__identity > p:last-child,
.export-work-card__note,
.export-work-card__person { font-size: 0.6875rem; line-height: 1.3; }
.export-work-card__processed { min-height: 1.25rem; gap: 0.35rem; }
.export-work-card__processed-state {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 0.3rem;
  border-radius: 999px;
  background: var(--ws-green-soft);
  padding: 0.22rem 0.5rem;
  color: var(--ws-green);
  font-size: 0.6875rem;
  font-weight: 650;
}
.export-work-card__processed-state .app-icon { width: 0.75rem; height: 0.75rem; }
.export-work-card__exported-tag--unexported { background: var(--ws-amber-soft); color: var(--ws-amber); }
.export-work-card__exported-tag--exported { background: var(--ws-blue-soft); color: var(--ws-blue-strong); }

.export-filters { gap: 0.75rem; }
.export-filter-card { padding: 0.875rem; }
.export-filter-card__header { border: 0; padding: 0; }
.export-facet__option { border-radius: 0.5625rem; }
.export-facet__option:hover { background: var(--ws-control); }
.export-facet__option:has(input:checked) { background: var(--ws-blue-soft); color: var(--ws-blue-strong); }
.export-facet__option--product { gap: 0.625rem; padding: 0.35rem 0.4rem; }
.export-facet__thumbnail {
  border-color: var(--ws-rule);
  border-radius: 0.5rem;
  background: #fff;
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}
.export-facet__thumbnail:hover,
.export-facet__thumbnail:focus-visible {
  border-color: #aebce8;
  box-shadow: 0 4px 12px rgb(37 99 235 / 14%);
  transform: translateY(-1px);
}
.export-facet__product-meta { color: var(--ws-muted); }
.export-facet-preview {
  position: fixed;
  border: 1px solid var(--ws-rule-strong);
  border-radius: 0.875rem;
  background: #fff;
  box-shadow: 0 18px 46px rgb(17 21 27 / 20%);
}
.export-facet-preview > img { background: linear-gradient(145deg, #fff, var(--ws-control)); }
.export-facet-preview__caption { border-top: 1px solid var(--ws-rule); }
.date-range-picker__trigger { border-color: var(--ws-rule); border-radius: 0.625rem; background: #fff; }
.date-range-picker__panel { border: 1px solid var(--ws-rule); border-radius: 0.875rem; background: #fff; box-shadow: var(--ws-shadow-menu); }
.date-range-picker__day.is-in-range { background: var(--ws-blue-soft); color: var(--ws-blue-strong); }
.date-range-picker__day.is-range-start,
.date-range-picker__day.is-range-end { background: var(--ws-blue); color: #fff; }
.export-selection-bar { border: 1px solid #30323a; border-radius: 0.75rem; background: var(--ws-ink); box-shadow: var(--ws-shadow-menu); }

/* History and activity */
.filter-bench--history,
.filter-bench--activity {
  display: flex;
  flex-wrap: wrap;
}

.ledger,
.activity-ledger {
  display: grid;
  gap: 0.625rem;
}

.history-day,
.ledger-entry {
  border-color: var(--ws-rule);
  border-radius: 0.875rem;
  background: #fff;
  box-shadow: var(--ws-shadow-card);
}

.ledger-entry { overflow: hidden; }
.ledger-entry__summary { border: 0; background: #fff; padding: 0.75rem 0.875rem; }
.ledger-entry__summary:hover { background: #fbfcfd; }
.ledger-entry[open] > summary { border-bottom: 1px solid #e6ecfb; background: #f5f8ff; }
.ledger-entry__type { border-radius: 0.5rem; background: var(--ws-blue-soft); color: var(--ws-blue-strong); }
.ledger-entry__type--document { background: var(--ws-amber-soft); color: var(--ws-amber); }
.ledger-entry__tag { border-radius: 999px; background: var(--ws-blue-soft); color: var(--ws-blue-strong); }
.ledger-entry__tag--quiet { background: #f1f2f3; color: #52565c; }
.ledger-entry__tag--error { background: var(--ws-red-soft); color: var(--ws-red); }
.ledger-entry__body { border: 0; background: #fff; padding: 0.875rem; }
.history-snapshot-table { border: 1px solid var(--ws-rule-soft); border-radius: 0.75rem; }

.activity-entry {
  border: 1px solid var(--ws-rule);
  padding: 0.75rem 0.875rem;
}

.activity-ledger {
  gap: 0;
  padding: 0.25rem 0 0;
}

.activity-ledger::before {
  top: 1.55rem;
  bottom: 1.55rem;
  left: 1.36rem;
  width: 1px;
  background: var(--ws-rule);
}

.activity-entry {
  grid-template-columns: 2rem minmax(0, 1fr) auto;
  align-items: start;
  gap: 0.8125rem;
  border: 0;
  border-bottom: 1px solid var(--ws-rule-soft);
  border-radius: 0;
  background: transparent;
  padding: 0.8125rem 0.25rem;
  box-shadow: none;
}

.activity-ledger > .activity-entry:last-child { border-bottom: 0; }
.activity-entry:hover { background: transparent; }

.activity-entry__mark {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border: 0;
  border-radius: 0.625rem;
  background: var(--ws-blue-soft);
  box-shadow: none;
}

.activity-entry__mark::after {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--ws-blue);
  content: '';
}

.activity-entry--exports .activity-entry__mark { background: var(--ws-blue-soft); box-shadow: none; }
.activity-entry--exports .activity-entry__mark::after { background: var(--ws-blue); }
.activity-entry--workflow .activity-entry__mark { background: var(--ws-green-soft); box-shadow: none; }
.activity-entry--workflow .activity-entry__mark::after { background: var(--ws-green); }
.activity-entry--users .activity-entry__mark { background: var(--ws-violet-soft); box-shadow: none; }
.activity-entry--users .activity-entry__mark::after { background: var(--ws-violet); }
.activity-entry--other .activity-entry__mark { background: var(--ws-control); box-shadow: none; }
.activity-entry--other .activity-entry__mark::after { background: var(--ws-muted); }

.activity-entry__body { display: grid; min-width: 0; gap: 0.2rem; }
.activity-entry__body h2 { font-size: 0.84375rem; font-weight: 600; line-height: 1.45; letter-spacing: -0.005em; }
.activity-entry__body p { margin: 0; color: var(--ws-muted); font-size: 0.71875rem; line-height: 1.45; }

.activity-entry__time {
  color: var(--ws-faint);
  font-family: var(--font-data);
  font-size: 0.71875rem;
  white-space: nowrap;
}

/* Statistics */
#stats-view .view-header {
  margin-bottom: 1rem;
  border: 0;
  background: transparent;
  padding: 0;
}

#stats-view .period-control {
  min-width: 11.25rem;
  margin-left: auto;
  border: 1px solid var(--ws-rule);
  border-radius: 0.75rem;
  background: #fff;
  padding: 0.65rem;
  box-shadow: var(--ws-shadow-card);
}

#stats-view .stats-tally {
  margin: 0 0 0.75rem;
  gap: 0.75rem;
}

#stats-view .stats-tally > div {
  min-height: 7rem;
  border-color: var(--ws-rule);
  border-radius: 0.875rem;
  padding: 0.875rem;
  box-shadow: var(--ws-shadow-card);
}

#stats-view .stats-tally > div::before {
  width: 0.2rem;
  background: var(--ws-blue);
}

#stats-view .stats-tally > div:nth-child(2)::before { background: var(--ws-mint); }
#stats-view .stats-tally > div:nth-child(3)::before { background: var(--ws-violet); }
#stats-view .stats-tally > div:nth-child(4)::before { background: var(--ws-amber); }

#stats-view .stats-tally dd {
  font-size: clamp(1.55rem, 2.5vw, 1.875rem);
  font-weight: 650;
}

.stats-visual-grid,
.analysis-grid {
  gap: 0.75rem;
}

#stats-view .stats-chart-card,
#stats-view .analysis-sheet {
  border: 1px solid var(--ws-rule);
  border-radius: 0.875rem;
  background: #fff;
  box-shadow: var(--ws-shadow-card);
}

#stats-view .stats-chart-card__header,
#stats-view .analysis-sheet__header {
  border-bottom-color: var(--ws-rule-soft);
}

.stats-chart-card__header h2,
.analysis-sheet__header h2 { font-size: 1rem; letter-spacing: -0.02em; }
.stats-chart-card__description { color: var(--ws-muted); font-size: 0.75rem; }
.analysis-sheet__unit { border-radius: 999px; background: var(--ws-control); color: var(--ws-muted); }
.rompoda-chart { font-family: "DM Sans", sans-serif; }
.chart-data { border-top-color: var(--ws-rule-soft); }
.rank-list li { border-bottom-color: var(--ws-rule-soft); }
.rank-list__bar { background: var(--ws-rule-soft); }
.rank-list__bar span { background: var(--ws-blue); }
.character-ruler__bar { background: var(--ws-blue); }
.field-quality { gap: 0.75rem; padding: 0.875rem; }

.field-quality__copy {
  border: 1px solid #f7cfca;
  border-radius: 0.75rem;
  background: #fef4f3;
  padding: 0.75rem;
}

.field-quality__copy strong { color: var(--ws-red); font-size: 0.84375rem; }
.field-quality__copy p { margin: 0.25rem 0 0; color: #6b707c; font-size: 0.75rem; line-height: 1.45; }

.field-quality dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(6.5rem, 1fr));
  gap: 0.5rem;
  border: 0;
  border-block: 0;
}

.field-quality dl > div,
.field-quality dl > div:last-child {
  border: 1px solid var(--ws-rule-soft);
  border-radius: 0.6875rem;
  padding: 0.625rem 0.75rem;
}

.field-quality dt { color: var(--ws-muted); font-size: 0.71875rem; font-weight: 500; letter-spacing: 0; text-transform: none; }
.field-quality dd { margin-top: 0.2rem; color: var(--ws-ink); font-family: var(--font-data); font-size: 1.125rem; font-weight: 650; letter-spacing: -0.03em; }

/* Empty, error and notifications */
.empty-sheet,
.view-data-state,
.inline-error {
  border: 1px dashed #d4d7dd;
  border-radius: 0.875rem;
  background: #fff;
  box-shadow: none;
}

.empty-sheet__registration {
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 0.8125rem;
  background: var(--ws-control);
}

.floating-activity-column {
  position: fixed;
  z-index: var(--z-toast);
  right: 1.375rem;
  bottom: 1.375rem;
  display: flex;
  width: min(22rem, calc(100vw - 2rem));
  max-height: calc(100vh - 2.75rem);
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}

.floating-activity-column .toast-region {
  position: static;
  width: 100%;
  pointer-events: auto;
}

.floating-activity-column .process-center {
  position: static;
  width: 100%;
  pointer-events: auto;
}

.toast {
  min-height: 3.25rem;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.625rem;
  border: 1px solid var(--ws-rule);
  border-radius: 1rem;
  background: #fff;
  padding: 0.65rem 0.75rem;
  box-shadow: 0 16px 38px rgb(24 25 29 / 16%), 0 2px 7px rgb(24 25 29 / 5%);
  color: var(--ws-ink);
}

.toast--error,
.toast--warning {
  border-color: #efc9c5;
  background: #fff;
  color: var(--ws-ink-soft);
}

.toast__mark { display: grid; width: 1.75rem; height: 1.75rem; place-items: center; border: 0; border-radius: 0.5rem; background: var(--ws-green-soft); }
.toast__mark::after { color: var(--ws-green); content: '✓'; font-size: 0.75rem; font-weight: 750; }
.toast--info .toast__mark { background: var(--ws-blue-soft); }
.toast--warning .toast__mark { background: var(--ws-amber-soft); }
.toast--error .toast__mark { background: var(--ws-red-soft); }
.toast--info .toast__mark::after { color: var(--ws-blue-strong); content: 'i'; }
.toast--warning .toast__mark::after { color: var(--ws-amber); content: '!'; }
.toast--error .toast__mark::after { color: var(--ws-red); content: '×'; }
.toast p { margin: 0; font-size: 0.78125rem; font-weight: 580; line-height: 1.35; }
.toast .icon-button { width: 1.75rem; height: 1.75rem; min-height: 0; border: 0; background: transparent; }
.toast__action { color: var(--ws-blue-strong); }

/* Dialogs, popovers and drawers */
dialog {
  color: var(--ws-ink);
}

dialog::backdrop {
  background: rgb(24 25 29 / 42%);
  backdrop-filter: blur(2px);
}

.export-dialog,
.confirm-dialog,
.users-dialog {
  overflow: hidden;
  border: 0;
  border-radius: 1.125rem;
  background: #fff;
  box-shadow: var(--ws-shadow-dialog);
}

.export-dialog__header,
.users-dialog__header {
  border-bottom: 1px solid var(--ws-rule-soft);
  background: #fff;
  padding: 1.125rem 1.25rem;
}

.export-dialog__header h2,
.confirm-dialog h2,
.users-dialog__header h2 {
  font-size: 1.25rem;
  letter-spacing: -0.025em;
}

.export-dialog__scroll,
.users-dialog__body { background: #fff; }
.export-dialog__footer,
.confirm-dialog__actions { border-top: 1px solid var(--ws-rule-soft); background: #fbfcfd; }
.export-choice { border: 1px solid var(--ws-rule); border-radius: 0.75rem; background: #fff; }
.export-choice:hover { border-color: #c8ccd4; background: #fbfcfd; }
.export-choice:has(> .export-choice__selector > input:checked) { border-color: #b8caf6; background: #f5f8ff; }
.export-choice__code { border-radius: 0.5625rem; background: var(--ws-blue-soft); color: var(--ws-blue-strong); }
.export-process-choice__option { border-color: var(--ws-rule); border-radius: 0.75rem; }
.export-process-choice__option--primary { border-color: #b8caf6; background: #f5f8ff; color: var(--ws-blue-strong); }
.users-dialog__body { background: #fff; }
.users-list { gap: 0.5rem; }

.user-row {
  grid-template-columns: 2rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.6875rem;
  border: 1px solid var(--ws-rule);
  border-radius: 0.75rem;
  background: #fff;
  padding: 0.6875rem 0.75rem;
  box-shadow: none;
}

.user-row:hover { border-color: #c8ccd4; background: #fbfcfd; }
.user-row.is-selected,
.user-row[aria-pressed="true"] { border-color: #b8caf6; background: #f5f8ff; box-shadow: none; }

.user-row__avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--ws-ink);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 650;
}

.user-row__avatar--blue { background: #dbeafe; color: #1d4ed8; }
.user-row__avatar--mint { background: var(--ws-mint-soft); color: #087b70; }
.user-row__avatar--violet { background: var(--ws-violet-soft); color: #6544e6; }
.user-row__avatar--amber { background: var(--ws-amber-soft); color: var(--ws-amber); }
.user-row__avatar--red { background: var(--ws-red-soft); color: var(--ws-red); }

.user-row__identity strong { font-size: 0.84375rem; font-weight: 600; }
.user-row__identity small,
.user-row__meta small { color: var(--ws-muted); font-size: 0.71875rem; }
.user-row__meta { gap: 0.28rem; justify-items: end; }

.status-pill {
  min-height: 1.5rem;
  border-radius: 999px;
  padding: 0.22rem 0.55rem;
  font-size: 0.71875rem;
  font-weight: 600;
}

.status-pill--active { background: var(--ws-green-soft); color: var(--ws-green); }
.status-pill--inactive { background: #f1f2f3; color: #52565c; }

.user-editor {
  gap: 0.6875rem;
  border-left: 1px solid var(--ws-rule-soft);
  background: #fff;
  padding: 1rem 1.125rem;
}

.user-editor .field input,
.user-editor .field select { min-height: 2.375rem; }

.process-center {
  width: min(22rem, calc(100vw - 2rem));
  overflow: hidden;
  border: 1px solid var(--ws-rule);
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 20px 50px rgb(24 25 29 / 20%);
}

.process-center__header {
  display: grid;
  grid-template-columns: 1.875rem minmax(0, 1fr) 1.75rem;
  align-items: center;
  min-height: 3.5rem;
  gap: 0.625rem;
  border-bottom: 1px solid var(--ws-rule-soft);
  background: #fff;
  color: var(--ws-ink);
  padding: 0.65rem 0.875rem;
}
.process-center__signal {
  display: grid;
  width: 1.875rem;
  height: 1.875rem;
  place-items: center;
  border-radius: 0.5625rem;
  background: var(--ws-blue-soft);
  color: var(--ws-blue);
}
.process-center__signal .app-icon { width: 1rem; height: 1rem; }
.process-center__signal.is-active .app-icon { animation: plotter-spin 2.4s linear infinite; }

.process-center__summary {
  display: block;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 0;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.process-center__summary-copy { display: grid; min-width: 0; gap: 0.12rem; line-height: 1.25; }
.process-center__title,
.process-center__count { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.process-center__title { font-size: 0.84375rem; font-weight: 680; }
.process-center__count { color: var(--ws-muted); font-size: 0.71875rem; font-weight: 520; }
.process-center__toggle {
  display: grid;
  width: 1.75rem;
  height: 1.75rem;
  place-items: center;
  border: 1px solid var(--ws-rule);
  border-radius: 0.5rem;
  background: #fff;
  color: var(--ws-muted);
  cursor: pointer;
}
.process-center__toggle:hover { background: var(--ws-surface-muted); color: var(--ws-ink); }
.process-center__toggle .app-icon { width: 1rem; height: 1rem; }
.process-task {
  grid-template-columns: 1.625rem minmax(0, 1fr) auto auto;
  min-height: 4.05rem;
  gap: 0.625rem;
  border-color: var(--ws-rule-soft);
  background: #fff;
  padding: 0.75rem 0.875rem 0.9rem;
}
.process-task:hover { background: #fbfcfd; }
.process-task__visual { display: grid; width: 1.625rem; height: 1.625rem; place-items: center; border-radius: 0.5rem; background: var(--ws-blue-soft); color: var(--ws-blue); }
.process-task__visual .app-icon { width: 0.9375rem; height: 0.9375rem; }
.process-task[data-kind="workflow"] .process-task__visual:not(.process-task__visual--completed):not(.process-task__visual--failed) { background: var(--ws-amber-soft); color: var(--ws-amber); }
.process-task__visual--completed { background: var(--ws-green-soft); color: var(--ws-green); }
.process-task__visual--failed { background: var(--ws-red-soft); color: var(--ws-red); }
.process-task__copy { display: grid; align-items: center; gap: 0.1rem; }
.process-task__copy strong { max-width: none; font-size: 0.8125rem; }
.process-task__status { font-size: 0.71875rem; }
.process-task__percent { color: var(--ws-blue); font-family: var(--font-data); font-size: 0.8125rem; }
.process-task[data-kind="workflow"] .process-task__percent { color: var(--ws-amber); }
.process-task__progress { right: 0.875rem; bottom: 0.55rem; left: 3.125rem; height: 0.4375rem; border-radius: 999px; background: var(--ws-rule-soft); }
.process-task__progress span { border-radius: 999px; }
.process-task[data-kind="workflow"] .process-task__progress span { background: #f59e0b; }
.process-task__download { border: 0; background: transparent; padding: 0; color: var(--ws-blue-strong); font: inherit; font-size: 0.75rem; font-weight: 650; cursor: pointer; }
.process-task__progress span,
.process-queue-entry__progress span { background: var(--ws-blue); }

.process-queue-backdrop { background: rgb(24 25 29 / 42%); backdrop-filter: blur(3px); }
.process-queue-drawer { width: min(25.625rem, 96vw); border-left: 1px solid var(--ws-rule); background: #fff; box-shadow: -20px 0 60px rgb(24 25 29 / 22%); }
.process-queue-drawer__header { border-bottom-color: var(--ws-rule-soft); background: #fff; padding: 1.125rem 1.125rem 0.875rem; }
.process-queue-drawer__header .eyebrow { display: block; margin-bottom: 0.2rem; color: var(--ws-faint); letter-spacing: 0.08em; }
.process-queue-drawer__header h2 { font-size: 1.1875rem; letter-spacing: -0.025em; }
.process-queue-drawer__intro { border-bottom: 0; background: #fff; padding: 0.875rem 1.125rem 0.35rem; color: var(--ws-muted); }
.process-queue-drawer__list { height: calc(100% - 8.5rem); padding: 0.65rem 1.125rem 1.125rem; }
.process-queue-entry { margin-bottom: 0.625rem; border-color: var(--ws-rule); border-radius: 0.8125rem; padding: 0.8125rem; box-shadow: none; }
.process-queue-entry--running,
.process-queue-entry--queued,
.process-queue-entry--recovering { border-color: #dbe6ff; background: #f5f8ff; }
.process-queue-entry--failed { border-color: #f7cfca; background: #fef4f3; }
.process-queue-entry__header { gap: 0.625rem; padding: 0; }
.process-queue-entry__visual { display: grid; width: 1.75rem; height: 1.75rem; flex: 0 0 1.75rem; place-items: center; border-radius: 0.5625rem; background: var(--ws-blue-soft); color: var(--ws-blue); }
.process-queue-entry__visual .app-icon { width: 0.9375rem; height: 0.9375rem; }
.process-queue-entry__visual--workflow:not(.process-queue-entry__visual--completed) { background: var(--ws-amber-soft); color: var(--ws-amber); }
.process-queue-entry__visual--completed { background: var(--ws-green-soft); color: var(--ws-green); }
.process-queue-entry__visual--failed { background: var(--ws-red-soft); color: var(--ws-red); }
.process-queue-entry__copy { gap: 0.12rem; line-height: 1.3; }
.process-queue-entry__copy strong { font-size: 0.8125rem; }
.process-queue-entry__copy small { font-size: 0.71875rem; }
.process-queue-entry__meta { display: grid; justify-items: end; gap: 0.15rem; }
.process-queue-entry__meta time { color: var(--ws-faint); font-size: 0.625rem; }
.process-queue-entry__percent { color: var(--ws-blue); font-family: var(--font-data); font-size: 0.8125rem; }
.process-queue-entry[data-kind="workflow"] .process-queue-entry__percent { color: var(--ws-amber); }
.process-queue-entry__progress { height: 0.4375rem; margin-top: 0.625rem; overflow: hidden; border-radius: 999px; background: var(--ws-rule-soft); }
.process-queue-entry__progress span { border-radius: 999px; }
.process-queue-entry[data-kind="workflow"] .process-queue-entry__progress span { background: #f59e0b; }
.process-queue-planned { display: grid; gap: 0.375rem; margin: 0.625rem 0 0; padding: 0.625rem 0 0; border-top: 1px solid rgb(47 111 237 / 12%); list-style: none; }
.process-queue-planned li { display: flex; align-items: center; gap: 0.45rem; color: var(--ws-ink-soft); font-size: 0.75rem; }
.process-queue-planned .app-icon { width: 0.75rem; height: 0.75rem; color: var(--ws-blue); }
.process-queue-files { margin-top: 0.625rem; border-top-color: var(--ws-rule-soft); }
.process-queue-file { min-height: 2.4rem; padding: 0.4rem 0; }
.process-queue-file__name { min-width: 0; max-width: 10.5rem; }
.process-queue-file__download { display: inline-flex; align-items: center; gap: 0.25rem; color: var(--ws-blue-strong); white-space: nowrap; }
.process-queue-file__download .app-icon { width: 0.875rem; height: 0.875rem; }
.process-queue-drawer__more {
  display: flex;
  width: 100%;
  min-height: 2.5rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ws-rule);
  border-radius: 0.6875rem;
  background: #fff;
  color: var(--ws-blue-strong);
  font-size: 0.75rem;
  font-weight: 650;
  cursor: pointer;
}
.process-queue-drawer__more:hover { border-color: #b8caf6; background: #f5f8ff; }

.workspace-toolbar__refresh.is-loading .app-icon { animation: plotter-spin 0.75s linear infinite; }

.order-announcement {
  top: 5.25rem;
  right: 1.5rem;
  left: auto;
  width: min(26rem, calc(100vw - 3rem));
  min-height: 4.75rem;
  grid-template-columns: 2.5rem minmax(0, 1fr) auto;
  gap: 0.75rem;
  overflow: hidden;
  border: 1px solid var(--ws-rule);
  border-radius: 0.875rem;
  background: #fff;
  padding: 0.75rem 0.75rem 0.75rem 0.875rem;
  box-shadow: 0 18px 48px rgb(24 25 29 / 16%), 0 2px 8px rgb(24 25 29 / 6%);
  animation: order-announcement-in 220ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.order-announcement::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 0.1875rem;
  background: var(--ws-blue);
  content: '';
}

.order-announcement__signal {
  position: relative;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.6875rem;
  background: var(--ws-blue-soft);
  color: var(--ws-blue-strong);
}

.order-announcement__signal::after {
  position: absolute;
  top: -0.2rem;
  right: -0.2rem;
  width: 0.58rem;
  height: 0.58rem;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--ws-blue);
  box-shadow: 0 0 0 0.2rem rgb(47 111 237 / 12%);
  content: '';
}

.order-announcement__copy {
  display: grid;
  min-width: 0;
  gap: 0.2rem;
}

.order-announcement__eyebrow {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--ws-muted);
  font-size: 0.625rem;
  font-weight: 680;
  letter-spacing: 0.075em;
  line-height: 1;
  text-transform: uppercase;
}

.order-announcement__eyebrow i {
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: var(--ws-success);
}

.order-announcement p { gap: 0.15rem; }
.order-announcement p strong { color: var(--ws-ink); font-size: 0.8125rem; font-weight: 690; }
.order-announcement p > span { color: var(--ws-muted); font-size: 0.6875rem; }

.order-announcement__action {
  min-height: 2.35rem;
  gap: 0.4rem;
  border: 1px solid var(--ws-blue);
  border-radius: 0.625rem;
  background: var(--ws-blue);
  padding: 0 0.75rem;
  color: #fff;
  font-size: 0.71875rem;
  font-weight: 650;
  white-space: nowrap;
}

.order-announcement__action:hover {
  border-color: var(--ws-blue-strong);
  background: var(--ws-blue-strong);
}

@keyframes order-announcement-in {
  from { opacity: 0; transform: translateY(-0.45rem) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Responsive */
@media (max-width: 72rem) {
  .app-shell { grid-template-columns: 14.5rem minmax(0, 1fr); }
  .selection-deck { left: calc(14.5rem + 2.25rem); }
  .source-chip { display: none; }
  .tally-ruler,
  .stats-tally { grid-template-columns: repeat(2, minmax(10rem, 1fr)); }
  .export-workbench { grid-template-columns: minmax(0, 1fr) 15.5rem; }
}

@media (max-width: 58rem) {
  body { overflow: auto; }
  .app-shell {
    display: block;
    height: auto;
    min-height: 100vh;
    overflow: visible;
    padding: 0;
  }
  .workspace-sidebar {
    position: sticky;
    top: 0;
    z-index: 50;
    width: 100%;
    height: auto;
    border: 0;
    border-bottom: 1px solid var(--ws-rule);
    border-radius: 0;
  }
  .workspace-sidebar__inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
  }
  .workspace-sidebar__toggle { display: none; }
  .workspace-switcher { width: auto; border: 0; padding: 0; }
  .workspace-switcher .brand-lockup__identity,
  .workspace-search--sidebar,
  .workspace-quick-filters,
  .workspace-sidebar .source-notice,
  .workspace-profile { display: none; }
  .primary-nav {
    display: flex;
    min-width: 0;
    flex-direction: row;
    justify-content: center;
    overflow-x: auto;
  }
  .primary-nav__link {
    width: auto;
    min-width: max-content;
    padding: 0.5rem 0.625rem;
  }
  .primary-nav__count { display: none; }
  .app-shell.is-sidebar-collapsed .primary-nav__link {
    width: auto;
    min-width: max-content;
    justify-content: flex-start;
    gap: 0.625rem;
    padding-inline: 0.625rem;
    font-size: 0.84375rem;
  }
  .workspace-surface { min-height: calc(100vh - 3.5rem); border: 0; border-radius: 0; }
  .workspace-toolbar { position: static; top: auto; z-index: 40; }
  .workspace-breadcrumb { display: none; }
  .workspace-search--global { width: auto; flex: 1; margin-left: 0; }
  .app-main { overflow: visible; }
  .selection-deck { right: 1rem; bottom: 1rem; left: 1rem; }
  .export-workbench { grid-template-columns: 1fr; }
  .export-filters { grid-row: 1; }
  .login-layout { grid-template-columns: 1fr; }
  .login-preview { display: none; }
  .order-announcement { top: 8.75rem; right: 1rem; width: min(26rem, calc(100vw - 2rem)); }
}

@media (max-width: 42rem) {
  .workspace-sidebar__inner { grid-template-columns: minmax(0, 1fr); }
  .workspace-switcher { display: none; }
  .primary-nav { justify-content: flex-start; }
  .primary-nav__link { min-width: 2.5rem; justify-content: center; font-size: 0; }
  .app-shell.is-sidebar-collapsed .primary-nav__link { min-width: 2.5rem; justify-content: center; gap: 0; font-size: 0; }
  .primary-nav__link .app-icon { width: 1.2rem; height: 1.2rem; }
  .workspace-toolbar { padding: 0.5rem 0.75rem; }
  .operator-tools { gap: 0.35rem; }
  .operator-tools__users,
  .workspace-toolbar__refresh { display: none; }
  .app-main { padding: 1rem 0.75rem 7rem; }
  .view-header h1,
  .export-view-header h1 { font-size: 1.4rem; }
  .tally-ruler,
  .stats-tally { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }
  .tally-ruler__item,
  .stats-tally > div { min-height: 6.8rem; padding: 0.7rem; }
  .tally-ruler__label,
  .metric-card__label { margin-bottom: 0.55rem; }
  .tally-ruler dd,
  .stats-tally dd { font-size: 1.45rem; }
  .filter-bench { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filter-bench .field { min-width: 0; }
  .filter-bench__more { grid-column: 1 / -1; }
  .queue-command { flex-wrap: wrap; }
  .queue-command__result { width: 100%; margin-left: 0; }
  .queue-command .field--inline { flex: 1; }
  .selection-deck { align-items: flex-start; gap: 0.6rem; }
  .selection-deck__actions { flex-wrap: wrap; justify-content: flex-end; }
  .floating-activity-column { right: 0.75rem; bottom: 0.75rem; left: 0.75rem; width: auto; }
  .process-center { width: auto; }
  .login-view { padding: 0; }
  .login-layout { min-height: 100vh; border: 0; border-radius: 0; }
  .login-sheet { padding: 2rem 1.25rem; }
  .order-announcement {
    right: 0.75rem;
    left: 0.75rem;
    width: auto;
    grid-template-columns: 2.25rem minmax(0, 1fr);
  }
  .order-announcement__signal { width: 2.25rem; height: 2.25rem; }
  .order-announcement__action { grid-column: 1 / -1; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Production filters stay inside the workspace at every available width. */
#queue-filters {
  container-type: inline-size;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr));
  gap: 0.875rem 0.75rem;
  padding: 1rem;
  border: 1px solid var(--ws-rule);
  border-radius: 0.875rem;
  background: var(--ws-surface);
  min-width: 0;
}
#queue-filters .field { min-width: 0; grid-column: auto; }
#queue-filters > .field--more { align-self: end; }
#queue-filters .field--more .button { width: 100%; }
#queue-filters .field > label,
#queue-filters .field__label { margin-bottom: 0.45rem; }
#queue-filters #more-filters {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: auto;
  min-width: 0;
  gap: 0.875rem 0.75rem;
  padding: 1rem 0 0;
  border: 0;
  border-top: 1px solid var(--ws-rule);
  border-radius: 0;
  background: transparent;
}
#queue-filters #more-filters[hidden] { display: none; }
#more-filters > .text-action { justify-self: start; align-self: end; min-height: 2.5rem; }
[data-action="toggle-more-filters"][aria-expanded="true"] {
  color: var(--ws-blue-strong);
  border-color: var(--ws-blue);
  background: var(--ws-blue-soft);
}
#more-filters-button::after {
  content: '';
  width: 0.4rem;
  height: 0.4rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  margin-left: auto;
}
#more-filters-button[aria-expanded="true"]::after { transform: rotate(225deg) translate(-2px, -1px); }
[data-action="toggle-more-filters"].has-active-filters { color: var(--ws-blue-strong); }
#queue-filters .custom-select__menu { z-index: 210; }
#queue-filters .custom-select__option-label { overflow-wrap: anywhere; }
.queue-date-picker { min-width: 0; }
.queue-date-picker .date-range-picker__trigger {
  width: 100%;
  min-width: 0;
  min-height: 2.5rem;
  padding: 0.55rem 0.75rem;
  gap: 0.5rem;
  border: 1px solid var(--ws-rule);
  border-radius: 0.5625rem;
  background: var(--ws-surface);
  box-shadow: none;
}
.queue-date-picker .date-range-picker__trigger-copy small { display: none; }
.queue-date-picker .date-range-picker__trigger-copy strong {
  font-family: inherit;
  font-size: 0.78125rem;
  font-weight: 500;
  white-space: normal;
  color: var(--ws-ink-soft);
}
.queue-date-picker .date-range-picker__glyph {
  width: 1rem;
  height: 1rem;
  min-width: 1rem;
  background: transparent;
  color: var(--ws-muted);
  font-size: 1rem;
}
.queue-date-picker .date-range-picker__trigger-copy { font-family: inherit; }
@container (max-width: 640px) {
  #queue-filters #more-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container (max-width: 420px) {
  #queue-filters #more-filters { grid-template-columns: minmax(0, 1fr); }
}
.queue-date-picker .date-range-picker__panel { z-index: 220; box-shadow: var(--ws-shadow-menu); }
.queue-date-picker__clear { margin: 0 1rem 0.875rem; }
.product-filter-preview {
  position: fixed;
  z-index: 240;
  width: min(180px, calc(100vw - 24px));
  padding: 0.625rem;
  border: 1px solid var(--ws-rule);
  border-radius: 0.875rem;
  background: var(--ws-surface);
  box-shadow: var(--ws-shadow-menu);
  pointer-events: none;
}
.product-filter-preview img { display: block; width: 100%; height: 170px; object-fit: contain; }
.product-filter-preview > span {
  display: block;
  margin-top: 0.5rem;
  color: var(--ws-muted);
  font-size: 0.6875rem;
  text-align: center;
  overflow-wrap: anywhere;
}
