.st-root{
  color-scheme: light;
  --station-action-primary: #087f79;
  --station-action-hover: #07645f;
  --station-status-success: #146c43;
  --station-status-success-bg: #eaf6f0;
  --station-status-warning: #78500b;
  --station-status-warning-bg: #fff6e3;
  --station-status-danger: #8d1b25;
  --station-status-danger-bg: #fae8e9;
  --station-text-primary: #20242d;
  --station-text-secondary: #69717d;
  --station-surface: #fff;
  --station-surface-subtle: #f7f8f9;
  --station-border: #e5e8eb;
  --station-header: #252933;
  --station-canvas: #f5f6f7;
  --station-font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --station-font-xs: .75rem;
  --station-font-sm: .875rem;
  --station-font-body: 1rem;
  --station-font-title: 1.125rem;
  --station-font-display: clamp(1.6rem, 5vw, 2rem);
  --station-weight-regular: 400;
  --station-weight-medium: 500;
  --station-weight-semibold: 600;
  --station-weight-bold: 700;
  font-family: var(--station-font-family);
  color: var(--station-text-primary);
  background: var(--station-canvas);
}

.st-root, .st-root *{ box-sizing: border-box; }
.st-root{ min-width: 320px; min-height: 100vh; margin: 0; background: var(--station-canvas); }
.st-root button, .st-root input, .st-root select{ font: inherit; }
.st-root button{ cursor: pointer; }
.st-root button:disabled{ cursor: not-allowed; opacity: .55; }
.st-root .st-shell{ min-height: 100vh; }
.st-root .st-topbar{ min-height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 max(20px, calc((100vw - 1120px) / 2)); color: #fff; background: var(--station-header); }
.st-root .st-brand{ font-size: 1.08rem; font-weight: var(--station-weight-semibold); letter-spacing: -.025em; }
.st-root .st-topbar__section{ font-size: var(--station-font-xs); font-weight: var(--station-weight-semibold); letter-spacing: .08em; }
.st-root .st-topbar__identity{ max-width: 38vw; overflow: hidden; color: #dce0e7; font-size: var(--station-font-sm); text-overflow: ellipsis; white-space: nowrap; }
.st-root .st-main{ width: min(100% - 36px, 930px); margin: 0 auto; padding: 22px 0 36px; }
.st-root .st-main--wide{ width: min(100% - 40px, 1180px); }
.st-root .st-page-heading{ display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.st-root .st-page-heading h1{ margin: 0; font-size: var(--station-font-display); font-weight: var(--station-weight-semibold); line-height: 1.18; letter-spacing: -.025em; }
.st-root .st-page-heading p{ margin: 7px 0 0; color: var(--station-text-secondary); font-size: var(--station-font-sm); line-height: 1.45; }
.st-root .st-eyebrow{ margin: 0 0 7px; color: var(--station-text-secondary); font-size: var(--station-font-xs); font-weight: var(--station-weight-semibold); letter-spacing: .075em; text-transform: uppercase; }
.st-root .st-card{ min-width: 0; padding: 20px; border: 1px solid var(--station-border); border-radius: 15px; background: var(--station-surface); box-shadow: 0 2px 12px rgb(28 35 45 / 3%); }
.st-root .st-card h2, .st-root .st-card h3{ margin: 0; line-height: 1.2; }
.st-root .st-card h2{ font-size: var(--station-font-title); font-weight: var(--station-weight-semibold); }
.st-root .st-card h3{ font-size: 1.08rem; font-weight: var(--station-weight-semibold); }
.st-root .st-copy{ margin: 7px 0 0; color: var(--station-text-secondary); font-size: var(--station-font-sm); line-height: 1.48; }
.st-root .st-home-grid{ display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(260px, .75fr); gap: 16px; align-items: start; }
.st-root .st-home-primary{ display: grid; gap: 12px; }
.st-root .st-arrived-queue{ margin-top: 16px; }
.st-root .st-arrived-queue__list{ display: grid; gap: 8px; margin-top: 14px; }
.st-root .st-arrived-queue__row{ min-width: 0; display: grid; grid-template-columns: minmax(0,1fr) auto auto; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--station-border); border-radius: 10px; }
.st-root .st-arrived-queue__row > div{ min-width: 0; display: grid; gap: 3px; }
.st-root .st-arrived-queue__row strong{ overflow-wrap: anywhere; }
.st-root .st-arrived-queue__row div span{ color: var(--station-text-secondary); font-size: var(--station-font-xs); }
.st-root .st-scan-card{ padding: 22px; border-color: var(--station-border); background: var(--station-surface); }
.st-root .st-scan-mark{ width: 34px; height: 34px; display: grid; place-items: center; margin-bottom: 13px; border: 1px solid #b9d9d5; border-radius: 9px; color: var(--station-action-primary); font-size: 1.2rem; font-weight: var(--station-weight-semibold); }
.st-root .st-scan-card h2{ font-size: 1.22rem; }
.st-root .st-scan-card p{ max-width: 44ch; }
.st-root .st-button{ min-height: 50px; display: inline-flex; justify-content: center; align-items: center; gap: 8px; padding: 0 18px; border: 0; border-radius: 9px; color: #fff; background: var(--station-action-primary); font-size: var(--station-font-sm); font-weight: var(--station-weight-semibold); line-height: 1.25; text-align: center; text-decoration: none; transition: background-color .15s ease, transform .15s ease; }
.st-root .st-button:hover{ background: var(--station-action-hover); }
.st-root .st-button:active{ transform: translateY(1px); }
.st-root .st-button--full{ width: 100%; }
.st-root [data-action="camera-scan"][hidden]{ display: none; }
.st-root .st-button--large{ min-height: 58px; font-size: var(--station-font-body); }
.st-root .st-button--secondary{ border: 1px solid var(--station-border); color: var(--station-text-primary); background: var(--station-surface); }
.st-root .st-button--secondary:hover{ background: var(--station-surface-subtle); }
.st-root .st-button--danger{ background: var(--station-status-danger); }
.st-root .st-button--danger:hover{ background: #871923; }
.st-root .st-button--light{ color: var(--station-action-hover); background: #e7f4f2; }
.st-root .st-button--light:hover{ background: #d8eeeb; }
.st-root .st-link-button{ min-height: 44px; padding: 4px 0; border: 0; color: var(--station-action-hover); background: transparent; font-size: var(--station-font-sm); font-weight: var(--station-weight-medium); text-decoration: underline; text-underline-offset: 3px; }
.st-root .st-actions{ display: flex; flex-wrap: wrap; gap: 10px; }
.st-root .st-card-list{ display: grid; gap: 12px; }
.st-root .st-task-card{ display: grid; gap: 12px; padding: 18px; }
.st-root .st-task-card__head{ display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.st-root .st-task-card__head p{ margin: 5px 0 0; color: var(--station-text-secondary); font-size: var(--station-font-sm); line-height: 1.45; }
.st-root .st-status{ flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 4px 10px; border: 1px solid var(--station-border); border-radius: 999px; color: var(--station-text-secondary); background: var(--station-surface-subtle); font-size: var(--station-font-xs); font-weight: var(--station-weight-medium); letter-spacing: 0; }
.st-root .st-status--ok{ border-color: #bcdcc9; color: var(--station-status-success); background: var(--station-status-success-bg); }
.st-root .st-status--due{ border-color: #f0d39d; color: var(--station-status-warning); background: var(--station-status-warning-bg); }
.st-root .st-status--error{ border-color: #e7b5ba; color: var(--station-status-danger); background: var(--station-status-danger-bg); }
.st-root .st-pickup-completion{ display: grid; justify-items: start; gap: 5px; margin-top: 8px; }
.st-root .st-pickup-completion__detail{ margin: 0; color: var(--station-text-secondary); font-size: var(--station-font-sm); line-height: 1.4; }
.st-root .st-pickup-completion__badge svg{ width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.st-root .st-context-grid{ display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.st-root .st-fact{ min-width: 0; display: grid; gap: 5px; padding: 13px 14px; border: 1px solid var(--station-border); border-radius: 10px; background: var(--station-surface-subtle); }
.st-root .st-fact span{ color: var(--station-text-secondary); font-size: var(--station-font-xs); font-weight: var(--station-weight-semibold); letter-spacing: .035em; text-transform: uppercase; }
.st-root .st-fact strong{ min-width: 0; overflow-wrap: anywhere; font-size: var(--station-font-sm); font-weight: var(--station-weight-medium); line-height: 1.4; }
.st-root .st-tracks{ display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.st-root .st-release-summary h2{ margin: 0; font-size: 1.08rem; font-weight: var(--station-weight-semibold); }
.st-root .st-release-summary__checks{ display: grid; gap: 9px; color: var(--station-text-primary); font-size: var(--station-font-sm); font-weight: var(--station-weight-regular); line-height: 1.45; }
.st-root .st-release-summary__checks .st-checkmark{ color: var(--station-status-success); font-weight: var(--station-weight-semibold); }
.st-root .st-release-summary__checks .st-release-check--attention{ color: var(--station-status-warning); }
.st-root .st-appointment-context{ display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; padding: 15px 18px; }
.st-root .st-appointment-context > form{ flex: 1 0 100%; }
.st-root .st-appointment-context__info{ min-width: 0; display: grid; gap: 3px; }
.st-root .st-appointment-context__info .st-eyebrow{ margin: 0; }
.st-root .st-appointment-context__info strong{ font-size: var(--station-font-sm); font-weight: var(--station-weight-medium); font-variant-numeric: tabular-nums; }
.st-root .st-appointment-context__info > span:last-child{ color: var(--station-text-secondary); font-size: var(--station-font-xs); }
.st-root .st-checkin-button{ width: 205px; flex: 0 0 auto; }
.st-root .st-progress-card{ padding: 14px; }
.st-root .st-progress-card .st-tracks{ gap: 10px; }
.st-root .st-release-summary .st-button{ max-width: 280px; }
.st-root .st-track{ min-width: 0; display: grid; align-content: start; gap: 10px; padding: 16px; border: 1px solid var(--station-border); border-radius: 12px; background: var(--station-surface); }
.st-root .st-track--payment{ border-top: 3px solid var(--station-status-warning); }
.st-root .st-track--payment.st-track--paid{ border-top-color: var(--station-status-success); }
.st-root .st-track--physical{ border-top: 3px solid var(--station-border); }
.st-root .st-track--physical.st-track--actionable{ border-top-color: var(--station-action-primary); }
.st-root .st-track--physical.st-track--complete{ border-top-color: var(--station-status-success); }
.st-root .st-track__label{ color: var(--station-text-secondary); font-size: var(--station-font-xs); font-weight: var(--station-weight-semibold); letter-spacing: .075em; text-transform: uppercase; }
.st-root .st-track__value{ font-size: clamp(1.2rem, 4vw, 1.5rem); font-weight: var(--station-weight-semibold); letter-spacing: -.015em; line-height: 1.2; }
.st-root .st-track__value--due{ color: var(--station-status-warning); font-weight: var(--station-weight-bold); }
.st-root .st-track__note{ min-height: 1.25em; color: var(--station-text-secondary); font-size: var(--station-font-xs); line-height: 1.45; }
.st-root .st-section{ display: grid; gap: 12px; margin-top: 15px; }
.st-root .st-section-heading{ display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.st-root .st-section-heading h2{ margin: 0; font-size: 1rem; }
.st-root .st-section-heading span{ color: var(--station-text-secondary); font-size: var(--station-font-xs); font-weight: var(--station-weight-regular); }
.st-root .st-appointment{ padding: 14px; border-radius: 11px; background: var(--station-surface-subtle); }
.st-root .st-appointment strong{ display: block; font-size: 1rem; }
.st-root .st-appointment span{ display: block; margin-top: 4px; color: var(--station-text-secondary); font-size: var(--station-font-sm); }
.st-root .st-pick-location{ display: grid; gap: 7px; padding: 22px; border: 1px solid #d8e7e5; border-radius: 15px; background: #e9f4f3; }
.st-root .st-pick-location > strong{ overflow-wrap: anywhere; font-size: clamp(1.9rem, 9vw, 3rem); font-weight: var(--station-weight-bold); letter-spacing: -.035em; line-height: 1.08; }
.st-root .st-pick-bin{ min-width: 0; display: grid; gap: 3px; margin-top: 9px; padding-top: 12px; border-top: 1px solid #c8ddda; }
.st-root .st-pick-bin strong{ overflow-wrap: anywhere; font-size: clamp(1.4rem, 6vw, 2rem); font-weight: var(--station-weight-bold); line-height: 1.15; }
.st-root .st-bmi{ display: grid; gap: 6px; padding: 17px; border: 1px solid var(--station-border); border-radius: 12px; background: var(--station-surface); }
.st-root .st-bmi strong{ overflow-wrap: anywhere; font-size: clamp(1.35rem, 7vw, 2.3rem); font-variant-numeric: tabular-nums; font-weight: var(--station-weight-bold); letter-spacing: .01em; line-height: 1.12; }
.st-root .st-item-card{ display: grid; gap: 14px; }
.st-root .st-item-top{ display: grid; gap: 6px; }
.st-root .st-item-title{ font-size: 1.12rem; line-height: 1.32; }
.st-root .st-scan-form{ display: grid; gap: 11px; }
.st-root .st-label{ display: grid; gap: 7px; color: var(--station-text-primary); font-size: var(--station-font-sm); font-weight: var(--station-weight-medium); }
.st-root .st-input, .st-root .st-select{ width: 100%; min-width: 0; min-height: 52px; padding: 0 14px; border: 1px solid #cfd5dc; border-radius: 9px; outline: none; color: var(--station-text-primary); background: var(--station-surface); font-size: var(--station-font-body); }
.st-root .st-input:focus, .st-root .st-select:focus{ border-color: #168f88; box-shadow: 0 0 0 3px rgb(8 127 121 / 13%); }
.st-root .st-input--scan{ min-height: 61px; font-size: 1.17rem; letter-spacing: .035em; }
.st-root .st-camera-preview:not([hidden]){ display: block; width: 100%; max-height: 38vh; border-radius: 10px; background: #101820; object-fit: cover; }
.st-root .st-help{ margin: 0; color: var(--station-text-secondary); font-size: var(--station-font-sm); line-height: 1.45; }
.st-root .st-inline-error, .st-root .st-inline-success{ padding: 12px 14px; border-radius: 9px; font-size: var(--station-font-sm); font-weight: var(--station-weight-medium); line-height: 1.45; }
.st-root .st-inline-error{ border: 1px solid #ecc6c9; color: var(--station-status-danger); background: #fff0f1; }
.st-root .st-inline-success{ border: 1px solid #beded4; color: var(--station-status-success); background: var(--station-status-success-bg); }
.st-root .st-result{ display: grid; gap: 9px; padding: 19px; border: 1px solid #c8dfd1; border-radius: 15px; background: var(--station-status-success-bg); }
.st-root .st-result h1{ margin: 0; color: var(--station-status-success); font-size: clamp(1.45rem, 6vw, 2rem); font-weight: var(--station-weight-bold); line-height: 1.15; }
.st-root .st-result--wrong{ border-color: #e6b3b8; background: var(--station-status-danger-bg); }
.st-root .st-result--wrong h1{ color: var(--station-status-danger); }
.st-root .st-gates{ display: grid; gap: 8px; }
.st-root .st-gate{ display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--station-border); border-radius: 9px; background: var(--station-surface); font-size: var(--station-font-sm); }
.st-root .st-gate strong{ text-align: right; }
.st-root .st-gate--pass strong{ color: var(--station-status-success); }
.st-root .st-gate--blocked strong{ color: var(--station-status-danger); }
.st-root .st-item-list{ display: grid; gap: 9px; }
.st-root .st-item-row{ display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 12px; align-items: center; padding: 13px 14px; border: 1px solid var(--station-border); border-radius: 10px; background: var(--station-surface); }
.st-root .st-item-row__copy{ min-width: 0; display: grid; gap: 4px; }
.st-root .st-item-row__copy strong{ overflow-wrap: anywhere; font-size: var(--station-font-sm); font-weight: var(--station-weight-semibold); line-height: 1.4; }
.st-root .st-item-row__copy span{ color: var(--station-text-secondary); font-size: var(--station-font-xs); line-height: 1.4; }
.st-root .st-item-row .st-status{ font-size: .65rem; }
.st-root .st-pay-form{ display: grid; gap: 12px; padding-top: 12px; border-top: 1px solid var(--station-border); }
.st-root .st-amount{ padding: 13px 14px; border-radius: 9px; color: var(--station-status-warning); background: var(--station-status-warning-bg); font-size: 1.2rem; font-weight: var(--station-weight-bold); font-variant-numeric: tabular-nums; }
.st-root .st-completion{ display: grid; gap: 12px; text-align: center; }
.st-root .st-completion h1{ margin: 0; color: var(--station-status-success); font-size: clamp(1.65rem, 6vw, 2.1rem); font-weight: var(--station-weight-bold); letter-spacing: -.025em; }
.st-root .st-projection{ display: grid; gap: 12px; }
.st-root .st-loading{ min-height: 45vh; display: grid; place-items: center; color: var(--station-text-secondary); font-size: var(--station-font-sm); }
.st-root .st-setup-card h1{ margin: 0; font-size: 1.4rem; font-weight: var(--station-weight-semibold); }
.st-root .st-setup-card p:not(.st-eyebrow){ color: var(--station-text-secondary); line-height: 1.55; }
.st-root .st-footer{ margin-top: 18px; color: #7b8490; font-size: .75rem; line-height: 1.45; text-align: center; }
.st-root [hidden]{ display: none !important; }

@media (min-width: 761px) {
  body[data-session-view="account"][data-has-backend="true"] .admin-shell.is-fulfillment-station { grid-template-rows: minmax(0, 1fr); }
  body[data-session-view="account"][data-has-backend="true"] .admin-shell.is-fulfillment-station .admin-sidebar { grid-row: 1; }
  body[data-session-view="account"][data-has-backend="true"] .admin-shell.is-fulfillment-station .admin-panels { grid-row: 1; height: 100vh; }
}

body[data-session-view="account"][data-has-backend="true"] .admin-shell.is-fulfillment-station .st-root,
body[data-session-view="account"][data-has-backend="true"] .admin-shell.is-fulfillment-station .st-root .st-shell { min-height: 0; }

@media (max-width: 760px) {
  body[data-session-view="account"][data-has-backend="true"] .admin-shell.is-fulfillment-station { padding-top: 0 !important; }
  .st-root .st-topbar{ min-height: 54px; padding: 0 16px; }
  .st-root .st-brand{ font-size: 1.04rem; }
  .st-root .st-topbar__section{ font-size: .68rem; }
  .st-root .st-topbar__identity{ max-width: 43vw; font-size: .75rem; }
  .st-root .st-main, .st-root .st-main--wide{ width: min(100% - 28px, 520px); padding: 16px 0 28px; }
  .st-root .st-page-heading{ margin-bottom: 14px; }
  .st-root .st-station-customer, .st-root .st-station-customer__main, .st-root .st-station-customer__side{ display: grid; grid-template-columns: minmax(0,1fr); gap: 10px; min-width: 0; }
  .st-root .st-appointment-context{ align-items: stretch; flex-direction: column; flex-wrap: nowrap; gap: 10px; padding: 12px 14px; }
  .st-root .st-appointment-context > form{ flex: none; width: 100%; }
  .st-root .st-checkin-button{ width: 100%; }
  .st-root .st-progress-card{ padding: 10px; }
  .st-root .st-progress-card .st-tracks{ gap: 8px; }
  .st-root .st-release-summary .st-button{ max-width: none; }
  .st-root .st-home-grid{ grid-template-columns: minmax(0,1fr); }
  .st-root .st-home-primary{ gap: 10px; }
  .st-root .st-arrived-queue__row{ grid-template-columns: minmax(0,1fr) auto; }
  .st-root .st-arrived-queue__row .st-button{ grid-column: 1 / -1; width: 100%; }
  .st-root .st-card{ padding: 16px; border-radius: 13px; }
  .st-root .st-scan-card{ padding: 18px; }
  .st-root .st-context-grid{ gap: 8px; }
  .st-root .st-fact{ padding: 10px; }
  .st-root .st-fact span{ font-size: .66rem; }
  .st-root .st-fact strong{ font-size: .9rem; }
  .st-root .st-tracks{ gap: 8px; }
  .st-root .st-track{ gap: 8px; padding: 12px; }
  .st-root .st-track__label{ font-size: .63rem; }
  .st-root .st-track__note{ min-height: 0; font-size: .76rem; }
  .st-root .st-button{ min-height: 52px; padding: 0 14px; }
  .st-root .st-button--large{ min-height: 60px; }
  .st-root .st-actions{ display: grid; grid-template-columns: minmax(0,1fr); }
  .st-root .st-actions > .st-button, .st-root .st-actions > .st-link-button{ width: 100%; }
  .st-root .st-pick-location{ padding: 18px; }
  .st-root .st-bmi{ padding: 15px; }
  .st-root .st-item-row{ grid-template-columns: minmax(0,1fr); }
  .st-root .st-item-row .st-status{ justify-self: start; }
  .st-root .st-page-heading__actions{ width: 100%; }
}

@media (min-width: 761px) {
  .st-root .st-station-customer{ display: grid; grid-template-columns: minmax(0,1.28fr) minmax(320px,.72fr); gap: 18px; align-items: start; }
  .st-root .st-station-customer__main{ display: grid; gap: 14px; min-width: 0; }
  .st-root .st-station-customer__side{ display: grid; gap: 14px; min-width: 0; }
  .st-root .st-station-customer--single{ grid-template-columns: minmax(0,720px); }
  .st-root .st-pay-form{ grid-template-columns: 1fr 1fr; align-items: end; }
  .st-root .st-pay-form .st-amount, .st-root .st-pay-form .st-pay-method, .st-root .st-pay-form .st-button{ grid-column: 1 / -1; }
  .st-root .st-release-ready{ display: grid; grid-template-columns: minmax(0,1.2fr) minmax(300px,.8fr); gap: 16px; align-items: start; }
}
