:root {
  color-scheme: light;
  --action-repair: #F2A43A;
  --action-repair-pressed: #DD8F20;
  --action-primary: #347A89;
  --action-primary-pressed: #286674;
  --action-danger: #A94A43;
  --action-danger-soft: #F8EEEE;
  --text-primary: #101A20;
  --text-secondary: #65727A;
  --text-tertiary: #87939A;
  --surface-page: #F4F6F5;
  --surface-card: #FFFFFF;
  --border-subtle: #E4E9EB;
  --warning: #A86116;
  --success: #286A57;

  --graphite: var(--text-primary);
  --industrial-cyan: var(--action-primary);
  --mineral-background: var(--surface-page);
  --warm-card: var(--surface-card);
  --repair-amber: var(--action-repair);
  --repair-amber-pressed: var(--action-repair-pressed);
  --error: var(--action-danger);
  --border: var(--border-subtle);
  --muted: var(--text-secondary);
  --bg: var(--surface-page);
  --panel: var(--surface-card);
  --text: var(--text-primary);
  --brand: var(--action-primary);
  --danger: var(--action-danger);
}

* { box-sizing: border-box; }
html { background: var(--mineral-background); }
body { min-width: 320px; margin: 0; background: var(--surface-page); color: var(--text-primary); font: 16px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--action-primary); }
button, input, select, textarea { font: inherit; }
button, input, select, textarea, .secondary-action { min-height: 44px; }
button { border: 0; border-radius: 10px; padding: 10px 16px; background: var(--action-primary); color: #fff; cursor: pointer; }
button:active { background: var(--action-primary-pressed); }
button.secondary, .secondary-action { border: 1px solid var(--border-subtle); background: var(--surface-card); color: var(--text-primary); }
button.secondary:active, .secondary-action:active { background: var(--surface-page); }
button.danger { background: var(--action-danger); }
button.danger:active { background: var(--action-danger); }
.action-repair { background: var(--action-repair); color: var(--text-primary); }
.action-repair:active { background: var(--action-repair-pressed); }
.action-primary { background: var(--action-primary); color: #fff; }
.action-primary:active { background: var(--action-primary-pressed); }
.action-danger { color: var(--action-danger); }
.action-cyan { color: var(--action-primary); }
.action-danger-soft { border-color: transparent; background: var(--action-danger-soft); color: var(--action-danger); }
button:disabled, button[aria-disabled="true"] { cursor: not-allowed; opacity: .55; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 5px var(--graphite); }
input, select, textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--border-subtle); border-radius: 10px; background: var(--surface-card); color: var(--text-primary); }
textarea { min-height: 110px; resize: vertical; }
form { display: grid; gap: 16px; }
label { display: grid; gap: 6px; font-weight: 650; }
header, main { width: min(1100px, calc(100% - 32px)); margin: 0 auto; }
header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; }
nav { display: flex; flex-wrap: wrap; gap: 12px; }
.panel { padding: 20px; border: 1px solid var(--border); border-radius: 16px; background: var(--warm-card); box-shadow: 0 3px 14px rgb(23 50 77 / 8%); }
.auth-shell { width: min(440px, calc(100% - 32px)); margin: 8vh auto; }
.auth-page { padding-bottom: max(32px, env(safe-area-inset-bottom)); }
.profile-page { padding-bottom: max(32px, env(safe-area-inset-bottom)); }
.profile-header, .profile-panel { width: min(768px, calc(100% - 32px)); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.message { min-height: 24px; color: var(--muted); }
.message.error { color: var(--error); }
.hidden { display: none !important; }
.badge { display: inline-block; border-radius: 999px; padding: 3px 10px; background: #E1EBEE; color: var(--graphite); font-size: 13px; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 10px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.load-more-wrap { display: flex; justify-content: center; margin-top: 16px; }

.mobile-page { padding-bottom: calc(132px + env(safe-area-inset-bottom)); }
.mobile-page.has-tab-bar { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
.mobile-shell { width: min(100%, 768px); margin: 0 auto; padding: 20px 16px 0; }
.mobile-header { display: block; width: auto; margin: 0; padding: 8px 0 24px; }
.mobile-header h1 { margin: 2px 0 6px; font-size: clamp(26px, 8vw, 34px); line-height: 1.2; }
.mobile-header__hint, .eyebrow { margin: 0; color: var(--muted); }
.eyebrow { color: var(--industrial-cyan); font-size: 14px; font-weight: 700; letter-spacing: .06em; }
.manufacturer-home .mobile-header { padding: 12px 0 0; }
.manufacturer-home { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
.manufacturer-home .eyebrow { display: flex; align-items: center; gap: 8px; color: var(--graphite); font-size: 12px; font-weight: 700; letter-spacing: .08em; }
.manufacturer-home .header-mark { display: grid; width: 22px; height: 22px; place-items: center; border: 1px solid var(--graphite); border-radius: 7px; background: var(--graphite); color: #fff; }
.manufacturer-home .header-mark svg { width: 14px; height: 14px; }
.manufacturer-home .header-mark path, .manufacturer-home .repair-hero__icon path, .manufacturer-home .repair-hero__arrow path, .manufacturer-home .section-title-icon path, .manufacturer-home .role-bottom-nav__icon path, .manufacturer-home .role-bottom-nav__icon circle, .manufacturer-flow .role-bottom-nav__icon path, .manufacturer-flow .role-bottom-nav__icon circle { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.manufacturer-home .mobile-header h1 { margin-top: 6px; font-size: clamp(28px, 7.2vw, 31px); letter-spacing: -.02em; }
.manufacturer-home .mobile-header__hint { max-width: 26ch; font-size: 14px; line-height: 1.65; }
.manufacturer-home .repair-hero { margin: 18px 0 24px; }
.manufacturer-home .repair-hero .bottom-primary-action { position: static; display: grid; justify-items: stretch; width: 100%; min-height: 76px; grid-template-columns: 36px minmax(0, 1fr) 20px; gap: 12px; padding: 14px; border: 0; border-radius: 16px; background: var(--repair-amber); box-shadow: 0 3px 10px rgb(140 91 20 / 11%); color: var(--graphite); letter-spacing: normal; text-align: left; }
.manufacturer-home .repair-hero .bottom-primary-action:active { background: var(--repair-amber-pressed); }
.manufacturer-home .repair-hero__icon { display: grid; width: 36px; height: 36px; place-items: center; border: 0; border-radius: 10px; background: rgb(255 255 255 / 24%); }
.manufacturer-home .repair-hero__icon svg { width: 21px; height: 21px; }
.manufacturer-home .repair-hero__copy { display: grid; gap: 3px; min-width: 0; }
.manufacturer-home .repair-hero__copy strong { font-size: 17px; font-weight: 700; line-height: 1.3; }
.manufacturer-home .repair-hero__copy span { color: rgb(16 26 32 / 72%); font-size: 13px; font-weight: 500; line-height: 1.4; }
.manufacturer-home .repair-hero__arrow { display: grid; place-items: center; color: rgb(16 26 32 / 72%); }
.manufacturer-home .repair-hero__arrow svg { width: 20px; height: 20px; }
.manufacturer-home .mobile-section { margin-top: 0; }
.manufacturer-home .OrderCard { gap: 6px; padding: 10px 14px; border: 1px solid var(--border); border-left: 1px solid var(--border); border-radius: 14px; background: #fff; box-shadow: none; }
.manufacturer-home .order-card__top h3 { font-size: 16px; font-weight: 600; }
.manufacturer-home .order-card__description { color: var(--graphite); font-size: 13px; }
.manufacturer-home .order-card__footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 0; }
.manufacturer-home .order-card__meta { font-size: 12px; }
.manufacturer-home .order-card__link { min-height: auto; padding: 0; color: var(--industrial-cyan); font-size: 13px; font-weight: 600; text-decoration: none; }
.manufacturer-home .status-chip { min-height: 24px; border-color: #D4E0E3; background: #F3F7F8; color: #527784; font-size: 11px; font-weight: 600; padding: 2px 7px; }
.manufacturer-home .status-chip[data-status="ACCEPTED"], .manufacturer-home .status-chip[data-status="CONTACTED"] { border-color: #D7CCE7; background: #F3F0F8; color: #745B91; }
.manufacturer-home .status-chip[data-status="READY_FOR_SERVICE"], .manufacturer-home .status-chip[data-status="SCHEDULED"], .manufacturer-home .status-chip[data-status="IN_SERVICE"], .manufacturer-home .status-chip[data-status="OBSERVING"] { border-color: #E8C78C; background: #FFF7E8; color: #A56A1D; }
.manufacturer-home .status-chip[data-status="CLOSED"] { border-color: #BEDACD; background: #EDF7F1; color: var(--success); }
.manufacturer-home .status-chip[data-status="CANCELLED"] { border-color: #D7DCDF; background: #F3F5F5; color: #687378; }
.manufacturer-home .empty-state { border-color: #DDE3E5; background: rgb(255 255 255 / 72%); }
.manufacturer-home .section-heading { margin-bottom: 12px; }
.manufacturer-home .section-heading h2 { display: inline-flex; align-items: center; gap: 7px; font-size: 16px; letter-spacing: .02em; }
.manufacturer-home .section-title-icon { display: grid; width: 22px; height: 22px; place-items: center; border: 1px solid var(--border); border-radius: 7px; color: var(--graphite); }
.manufacturer-home .section-title-icon svg { width: 14px; height: 14px; }
.manufacturer-home .section-heading a { border: 0; color: var(--industrial-cyan); font-size: 14px; font-weight: 600; text-decoration: none; }
.mobile-section { margin-bottom: 20px; }
.mobile-section--compact { padding-bottom: 8px; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.section-heading h2 { margin: 0; font-size: 18px; }
.order-card-list { display: grid; gap: 12px; }
.mobile-back-header { display: grid; grid-template-columns: minmax(68px, 1fr) auto minmax(68px, 1fr); align-items: center; width: auto; margin: 0; padding: 8px 0 20px; }
.mobile-back-header h1 { margin: 0; font-size: 20px; }
.mobile-back-header .secondary-action { justify-self: start; min-height: 40px; padding: 8px 10px; }
.mobile-page-header { display: grid; width: auto; min-height: 56px; margin: 0; place-items: center; padding: 4px 0 16px; }
.mobile-page-header h1 { margin: 0; font-size: 21px; font-weight: 700; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.filter-chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 8px; scrollbar-width: thin; }
.filter-chip { flex: 0 0 auto; min-height: 44px; padding: 8px 12px; border: 1px solid var(--border); background: var(--warm-card); color: var(--graphite); }
.filter-chip.is-active { border-color: var(--industrial-cyan); background: var(--industrial-cyan); color: #fff; }
.OrderCard { display: grid; gap: 8px; padding: 16px; border: 1px solid var(--border); border-left: 4px solid var(--industrial-cyan); border-radius: 14px; background: var(--warm-card); }
.order-card--warning { border-left-color: var(--warning); }
.order-card--success { border-left-color: var(--success); }
.order-card--danger { border-left-color: var(--error); }
.order-card__top { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.order-card__top h2, .order-card__top h3 { margin: 0; font-size: 17px; line-height: 1.35; }
.order-card__description, .order-card__meta { margin: 0; }
.order-card__description { color: var(--graphite); }
.order-card__meta { color: var(--muted); font-size: 14px; }
.order-card__link { justify-self: start; min-height: 40px; padding: 8px 12px; }
.status-chip { display: inline-flex; flex: 0 0 auto; align-items: center; min-height: 28px; border: 1px solid var(--border); border-radius: 8px; padding: 3px 8px; background: #E1EBEE; color: var(--graphite); font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.status-chip--warning { border-color: var(--warning); background: #FFF7EB; color: var(--warning); }
.status-chip--success { border-color: var(--success); background: #E9F4EF; color: var(--success); }
.status-chip--danger { border-color: var(--error); background: #FDF2F1; color: var(--error); }
.status-panel { display: grid; gap: 8px; margin-bottom: 20px; padding: 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--warm-card); }
.status-panel__heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.status-panel h2, .status-panel p { margin: 0; }
.status-panel h2 { font-size: 20px; }
.status-panel__note { color: var(--warning); }
.detail-list { display: grid; grid-template-columns: minmax(88px, .45fr) 1fr; gap: 8px 12px; margin: 0; }
.detail-list dt { color: var(--muted); }
.detail-list dd { min-width: 0; margin: 0; overflow-wrap: anywhere; }
.progress-timeline { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.progress-step { position: relative; display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 10px; min-height: 52px; padding: 0 0 12px; }
.progress-step:not(:last-child)::after { position: absolute; top: 16px; bottom: -1px; left: 7px; width: 1px; background: var(--border-subtle); content: ""; }
.progress-step__marker { position: relative; z-index: 1; width: 15px; height: 15px; margin-top: 2px; border: 2px solid var(--border-subtle); border-radius: 50%; background: var(--surface-page); }
.progress-step > div { display: grid; gap: 2px; min-width: 0; }
.progress-step strong { color: var(--text-primary); font-size: 14px; font-weight: 600; line-height: 1.35; }
.progress-step span, .progress-step time { color: var(--text-secondary); font-size: 12px; line-height: 1.45; }
.progress-step--complete .progress-step__marker { border-color: var(--action-primary); background: var(--action-primary); }
.progress-step--current .progress-step__marker, .progress-step--branch .progress-step__marker { border-color: var(--action-primary); background: var(--surface-card); box-shadow: inset 0 0 0 3px var(--surface-card); }
.progress-step--branch .progress-step__marker { background: var(--action-primary); }
.progress-step--terminal .progress-step__marker { border-color: var(--action-danger); background: var(--action-danger); }
.progress-step--current .progress-step__marker::after { position: absolute; inset: -5px; border: 1px solid color-mix(in srgb, var(--action-primary) 48%, transparent); border-radius: 50%; content: ""; animation: progress-marker-breathe 2.2s ease-out infinite; pointer-events: none; }
@keyframes progress-marker-breathe { 0%, 100% { opacity: .35; transform: scale(.9); } 55% { opacity: 0; transform: scale(1.45); } }
@media (prefers-reduced-motion: reduce) { .progress-step--current .progress-step__marker::after { animation: none; } }
.action-danger-soft { border-color: color-mix(in srgb, var(--action-danger) 22%, transparent); background: var(--action-danger-soft); color: var(--action-danger); }
.current-actions { display: grid; gap: 12px; }
.current-actions h2, .current-actions p { margin: 0; }
.confirm-sheet__fields { display: grid; gap: 12px; margin-top: 16px; }
.empty-state { padding: 24px 16px; border: 1px dashed var(--border); border-radius: 14px; background: rgb(251 252 252 / 75%); color: var(--muted); text-align: center; }
.bottom-primary-action { position: fixed; z-index: 5; right: 16px; bottom: calc(66px + env(safe-area-inset-bottom)); left: 16px; display: grid; min-height: 52px; place-items: center; border-radius: 14px; background: var(--industrial-cyan); box-shadow: 0 8px 20px rgb(23 107 135 / 28%); color: #fff; font-weight: 700; text-decoration: none; }
.role-bottom-nav { position: fixed; z-index: 6; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); border-top: 1px solid var(--border); background: var(--warm-card); box-shadow: 0 -2px 8px rgb(23 50 77 / 7%); }
.role-bottom-nav a, .text-button { position: relative; display: grid; min-height: 44px; place-items: center; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-size: 13px; letter-spacing: .02em; text-decoration: none; }
.manufacturer-home .role-bottom-nav { padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); box-shadow: none; }
.manufacturer-home .role-bottom-nav a { min-height: 48px; grid-template-rows: 18px auto; gap: 1px; font-size: 10px; font-weight: 500; }
.manufacturer-home .role-bottom-nav__icon { width: 17px; height: 17px; }
.role-bottom-nav .is-active { color: var(--industrial-cyan); font-weight: 700; }
.manufacturer-home .role-bottom-nav .is-active::after { display: none; }
.manufacturer-flow { padding-bottom: calc(92px + env(safe-area-inset-bottom)); }
.manufacturer-flow.has-tab-bar { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
.manufacturer-device-select .role-bottom-nav { display: none; }
.manufacturer-devices .role-bottom-nav { display: none; }
.manufacturer-device-form .role-bottom-nav { display: none; }
.manufacturer-report .role-bottom-nav { display: none; }
.manufacturer-order-detail .role-bottom-nav { display: none; }
.manufacturer-device-form { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
.manufacturer-report { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
.manufacturer-flow .mobile-back-header { min-height: 56px; padding: 4px 0 16px; }
.manufacturer-flow .mobile-back-header h1 { font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.manufacturer-flow .mobile-back-header a { color: var(--industrial-cyan); font-size: 13px; font-weight: 600; text-decoration: none; }
.manufacturer-flow .mobile-back-header .secondary-action { display: inline-flex; align-items: center; justify-content: flex-start; min-height: 36px; padding: 6px 0; border: 0; border-radius: 0; background: transparent; color: var(--industrial-cyan); }
.manufacturer-flow__section-heading { align-items: center; margin-bottom: 10px; }
.manufacturer-flow__section-heading h2 { font-size: 16px; letter-spacing: .01em; }
.manufacturer-flow__section-heading a { color: var(--industrial-cyan); font-size: 13px; font-weight: 600; text-decoration: none; }
.manufacturer-device-select .mobile-section { margin-bottom: 24px; }
.manufacturer-device-select #device-search { min-height: 42px; margin: 2px 0 12px; border-radius: 12px; background: rgb(255 255 255 / 76%); }
.manufacturer-device-select .order-card-list { gap: 0; }
.manufacturer-device-select #recent-devices > h2 { margin: 12px 0 2px; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .04em; }
.manufacturer-device-select .OrderCard { gap: 4px; padding: 12px 0; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; background: transparent; box-shadow: none; }
.manufacturer-device-select .OrderCard h3 { font-size: 16px; font-weight: 600; }
.manufacturer-device-select .OrderCard .order-card__meta { font-size: 12px; }
.manufacturer-device-select .OrderCard button { justify-self: end; min-height: 32px; padding: 4px 0; border: 0; border-radius: 0; background: transparent; color: var(--industrial-cyan); font-size: 13px; font-weight: 600; }
.manufacturer-device-select .device-row { display: flex; width: 100%; min-height: 52px; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border: 0; border-bottom: 1px solid var(--border-subtle); border-radius: 0; background: transparent; color: var(--text-primary); text-align: left; }
.manufacturer-device-select .device-row:active { background: transparent; color: var(--action-primary-pressed); }
.manufacturer-device-select .device-row__copy { display: grid; min-width: 0; gap: 2px; }
.manufacturer-device-select .device-row__copy strong { overflow: hidden; font-size: 16px; font-weight: 600; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.manufacturer-device-select .device-row__meta { overflow: hidden; color: var(--text-secondary); font-size: 12px; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
.manufacturer-device-select .device-row__chevron { flex: 0 0 auto; color: var(--text-tertiary); font-size: 22px; line-height: 1; }
.manufacturer-device-select .mobile-section:last-of-type { padding-top: 18px; border-top: 1px solid var(--border); }
.manufacturer-device-select .mobile-section:last-of-type h2 { margin: 0 0 4px; font-size: 16px; }
.manufacturer-device-select .mobile-section:last-of-type .mobile-header__hint { font-size: 13px; line-height: 1.5; }
.manufacturer-device-select .mobile-section:last-of-type label { margin-top: 12px; font-size: 13px; }
.manufacturer-device-select .mobile-section:last-of-type .actions { margin-top: 2px; }
.manufacturer-device-select .mobile-section:last-of-type .actions button { width: 100%; min-height: 48px; border-radius: 12px; background: var(--industrial-cyan); color: #fff; }
.manufacturer-device-select .temporary-device { padding-top: 16px; }
.manufacturer-device-select .temporary-device__toggle { display: flex; width: 100%; min-height: 44px; align-items: center; justify-content: space-between; padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--action-primary); font-size: 14px; font-weight: 600; text-align: left; }
.manufacturer-device-select .temporary-device__toggle:active { background: transparent; color: var(--action-primary-pressed); }
.manufacturer-device-select #temporary-device-fields { padding-top: 12px; }
.manufacturer-report #order-form { display: block; }
.manufacturer-report .manufacturer-flow__form-section { margin: 0; padding: 18px 0; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; background: transparent; box-shadow: none; }
.manufacturer-report .manufacturer-flow__form-section:first-child { padding-top: 2px; }
.manufacturer-report .manufacturer-flow__form-section h2 { margin: 0; font-size: 16px; letter-spacing: .01em; }
.manufacturer-report .manufacturer-flow__form-section .section-heading { margin-bottom: 8px; }
.manufacturer-report .manufacturer-flow__form-section .message { font-size: 13px; line-height: 1.55; }
.manufacturer-report .manufacturer-flow__form-section label { gap: 6px; margin-top: 14px; color: var(--text-primary); font-size: 13px; font-weight: 600; }
.manufacturer-report .summary-block { display: grid; gap: 3px; padding: 10px 0 0; color: var(--text-secondary); font-size: 13px; line-height: 1.5; }
.manufacturer-report .summary-block strong { color: var(--text-primary); font-size: 16px; font-weight: 600; }
.manufacturer-report .manufacturer-flow__form-section select, .manufacturer-report .manufacturer-flow__form-section textarea { border-color: var(--border-subtle); border-radius: 12px; background: var(--surface-card); }
.manufacturer-report .manufacturer-flow__form-section textarea { min-height: 92px; }
.manufacturer-report .manufacturer-flow__form-section p { margin: 10px 0 0; font-size: 13px; line-height: 1.55; }
.manufacturer-report .manufacturer-flow__form-section p:first-of-type { margin-top: 12px; }
.manufacturer-report #change-contact { justify-content: start; min-height: 36px; margin-top: 8px; padding: 5px 0; color: var(--action-primary); font-size: 13px; font-weight: 600; }
.manufacturer-report #submit-repair { border-radius: 12px; background: var(--action-repair); box-shadow: 0 4px 12px rgb(144 90 15 / 14%); color: var(--text-primary); }
.manufacturer-report #submit-repair:active { background: var(--action-repair-pressed); }
.manufacturer-order-detail #message { margin: 0 0 8px; font-size: 13px; }
.manufacturer-order-detail .status-panel { gap: 6px; margin: 0; padding: 2px 0 18px; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; background: transparent; box-shadow: none; }
.manufacturer-order-detail .status-panel__heading h2 { font-size: 20px; letter-spacing: -.01em; }
.manufacturer-order-detail .status-panel .status-chip { display: none; }
.manufacturer-order-detail .status-panel p { color: var(--muted); font-size: 13px; line-height: 1.55; }
.manufacturer-order-detail .status-panel .status-panel__note { color: var(--warning); }
.manufacturer-order-detail .manufacturer-flow__detail-section { margin: 0; padding: 18px 0; border-bottom: 1px solid var(--border); }
.manufacturer-order-detail .manufacturer-flow__detail-section h2 { margin: 0 0 12px; font-size: 16px; letter-spacing: .01em; }
.manufacturer-order-detail .detail-list { grid-template-columns: minmax(76px, .38fr) 1fr; gap: 10px 12px; font-size: 13px; }
.manufacturer-order-detail .detail-list dt { font-size: 12px; }
.manufacturer-order-detail .detail-list dd { line-height: 1.5; }
.manufacturer-order-detail .progress-timeline { gap: 0; }
.manufacturer-order-detail .progress-timeline li { gap: 2px; padding: 0 0 14px 14px; border-left-color: #DDE3E5; }
.manufacturer-order-detail .progress-timeline li:last-child { padding-bottom: 0; }
.manufacturer-order-detail .progress-timeline strong { font-size: 13px; font-weight: 600; }
.manufacturer-order-detail .progress-timeline span { font-size: 12px; }
.manufacturer-order-detail .current-actions { gap: 8px; }
.manufacturer-order-detail .current-actions > p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.manufacturer-order-detail .current-actions > .secondary { justify-self: start; min-height: 38px; padding: 7px 0; border: 0; border-radius: 0; background: transparent; color: var(--industrial-cyan); font-size: 13px; font-weight: 600; }
.manufacturer-order-detail .current-actions .actions { display: grid; gap: 8px; }
.manufacturer-order-detail .current-actions .actions button { width: 100%; min-height: 44px; border-radius: 12px; }
.manufacturer-order-detail .current-actions .actions .secondary { border-color: var(--border); background: #fff; color: var(--graphite); }
.manufacturer-flow .role-bottom-nav { padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); box-shadow: none; }
.manufacturer-flow .role-bottom-nav a { min-height: 48px; grid-template-rows: 18px auto; gap: 1px; font-size: 10px; font-weight: 500; }
.manufacturer-flow .role-bottom-nav__icon { width: 17px; height: 17px; }
.manufacturer-devices #add-device { display: grid; min-height: 48px; margin: 0 0 10px; border: 0; border-radius: 12px; background: var(--industrial-cyan); color: #fff; font-weight: 700; text-decoration: none; }
.manufacturer-devices #device-cards { gap: 0; }
.manufacturer-devices .OrderCard { gap: 4px; padding: 14px 0; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; background: transparent; box-shadow: none; }
.manufacturer-devices .OrderCard h2 { font-size: 16px; font-weight: 600; }
.manufacturer-devices .OrderCard .order-card__meta { font-size: 12px; }
.manufacturer-devices .OrderCard .actions { justify-content: flex-end; gap: 14px; margin-top: 2px; }
.manufacturer-devices .OrderCard .secondary-action, .manufacturer-devices .OrderCard .secondary { min-height: 32px; padding: 4px 0; border: 0; border-radius: 0; background: transparent; color: var(--industrial-cyan); font-size: 13px; font-weight: 600; text-decoration: none; }
.manufacturer-devices .OrderCard .secondary { color: var(--muted); }
.field-optional { color: var(--text-tertiary); font-size: 12px; font-weight: 500; }
.manufacturer-device-form .manufacturer-flow__device-form { gap: 18px; padding: 2px 0 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.manufacturer-device-form .manufacturer-flow__device-form label { display: grid; gap: 7px; padding: 0; border: 0; color: var(--text-primary); font-size: 14px; font-weight: 600; }
.manufacturer-device-form .manufacturer-flow__device-form input { min-height: 46px; border-color: var(--border-subtle); border-radius: 12px; background: var(--surface-card); }
.manufacturer-device-form .bottom-primary-action { background: var(--action-primary); }
.manufacturer-orders .manufacturer-orders__filters { margin: 0 0 10px; }
.manufacturer-orders .filter-chips { gap: 6px; padding: 0 0 6px; }
.manufacturer-orders .filter-chips { scrollbar-width: none; }
.manufacturer-orders .filter-chips::-webkit-scrollbar { display: none; }
.manufacturer-orders .filter-chip { min-height: 38px; padding: 7px 10px; border-color: transparent; border-radius: 10px; background: transparent; color: var(--muted); font-size: 13px; }
.manufacturer-orders .filter-chip.is-active { border-color: #D7E3E6; background: #EDF4F5; color: var(--industrial-cyan); }
.manufacturer-orders #profile-reminder { margin: 0 0 10px; padding: 10px 12px; border-left: 2px solid var(--warning); background: #FFF9EF; font-size: 13px; }
.manufacturer-orders .order-card-list { gap: 0; }
.manufacturer-orders .OrderCard { gap: 5px; padding: 13px 0; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; background: transparent; box-shadow: none; }
.manufacturer-orders .OrderCard .order-card__top h2 { font-size: 16px; font-weight: 600; }
.manufacturer-orders .OrderCard .order-card__meta { font-size: 12px; }
.manufacturer-orders .OrderCard .order-card__description { font-size: 13px; }
.manufacturer-orders .OrderCard .order-card__footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.manufacturer-orders .OrderCard .order-card__link { min-height: 32px; padding: 5px 0; color: var(--industrial-cyan); font-size: 13px; font-weight: 600; text-decoration: none; }
.manufacturer-orders .status-chip { min-height: 24px; border-color: #D4E0E3; background: #F3F7F8; color: #527784; font-size: 11px; font-weight: 600; padding: 2px 7px; }
.manufacturer-orders .status-chip[data-status="ACCEPTED"], .manufacturer-orders .status-chip[data-status="CONTACTED"] { border-color: #D7CCE7; background: #F3F0F8; color: #745B91; }
.manufacturer-orders .status-chip[data-status="READY_FOR_SERVICE"], .manufacturer-orders .status-chip[data-status="SCHEDULED"], .manufacturer-orders .status-chip[data-status="IN_SERVICE"], .manufacturer-orders .status-chip[data-status="OBSERVING"] { border-color: #E8C78C; background: #FFF7E8; color: #A56A1D; }
.manufacturer-orders .status-chip[data-status="CLOSED"] { border-color: #BEDACD; background: #EDF7F1; color: var(--success); }
.manufacturer-orders .status-chip[data-status="CANCELLED"] { border-color: #D7DCDF; background: #F3F5F5; color: #687378; }
.manufacturer-orders .load-more-wrap { margin-top: 18px; padding: 14px 0 0; border-top: 1px solid var(--border); }
.manufacturer-orders .load-more-wrap button { min-height: 44px; padding: 10px 16px; border: 0; border-radius: 0; background: transparent; color: var(--industrial-cyan); font-size: 13px; font-weight: 600; }
.manufacturer-orders .load-more-wrap button:disabled { color: var(--muted); opacity: .55; }
.technician-flow { padding-bottom: calc(92px + env(safe-area-inset-bottom)); }
.technician-flow.has-tab-bar { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
.technician-orders .role-bottom-nav { display: none; }
.technician-order-detail .role-bottom-nav { display: none; }
.technician-order-detail { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
.technician-flow .mobile-back-header { min-height: 56px; padding: 4px 0 16px; }
.technician-flow .mobile-back-header h1 { font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.technician-flow .mobile-back-header a { color: var(--industrial-cyan); font-size: 13px; font-weight: 600; text-decoration: none; }
.technician-flow .mobile-back-header .secondary-action { display: inline-flex; align-items: center; justify-content: flex-start; min-height: 36px; padding: 6px 0; border: 0; border-radius: 0; background: transparent; color: var(--industrial-cyan); }
.technician-flow .role-bottom-nav { padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); box-shadow: none; }
.technician-flow .role-bottom-nav a { min-height: 48px; grid-template-rows: 18px auto; gap: 1px; font-size: 10px; font-weight: 500; }
.technician-flow .role-bottom-nav__icon { width: 17px; height: 17px; }
.technician-flow .role-bottom-nav__icon path, .technician-flow .role-bottom-nav__icon circle { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.technician-home .mobile-header { padding: 12px 0 2px; }
.technician-home .eyebrow { color: var(--graphite); font-size: 12px; letter-spacing: .08em; }
.technician-home .mobile-header h1 { margin-top: 6px; font-size: clamp(28px, 7.2vw, 31px); letter-spacing: -.02em; }
.technician-home .mobile-header__hint { max-width: 26ch; font-size: 14px; line-height: 1.65; }
.technician-home .section-heading { margin-bottom: 10px; }
.technician-home .section-heading h2 { font-size: 16px; letter-spacing: .01em; }
.technician-home .section-heading a { color: var(--industrial-cyan); font-size: 13px; font-weight: 600; text-decoration: none; }
.technician-home .order-card-list { gap: 0; }
.technician-home .OrderCard { gap: 5px; padding: 13px 0; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; background: transparent; box-shadow: none; }
.technician-home .order-card__top h3 { font-size: 16px; font-weight: 600; }
.technician-home .order-card__meta { font-size: 12px; }
.technician-home .order-card__description { color: var(--graphite); font-size: 13px; }
.technician-home .order-card__footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.technician-home .order-card__link { min-height: 32px; padding: 5px 0; color: var(--industrial-cyan); font-size: 13px; font-weight: 600; text-decoration: none; }
.technician-home .status-chip { min-height: 24px; padding: 2px 7px; border-color: #D4E0E3; background: #F3F7F8; color: #527784; font-size: 11px; font-weight: 600; }
.technician-home .technician-home__hall { margin-top: 22px; }
.technician-home .technician-home__hall .secondary-action { display: flex; align-items: center; justify-content: space-between; min-height: 46px; padding: 0; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; color: var(--industrial-cyan); font-size: 14px; font-weight: 600; text-decoration: none; }
.technician-hall .technician-hall__tools { margin-bottom: 14px; }
.technician-hall .technician-hall__tools .actions { display: flex; flex-wrap: wrap; gap: 8px; }
.technician-hall .technician-hall__tools .secondary { min-height: 38px; padding: 6px 10px; border-color: transparent; border-radius: 10px; background: #EDF4F5; color: var(--industrial-cyan); font-size: 13px; font-weight: 600; }
.technician-hall .message { margin: 8px 0 0; font-size: 12px; }
.technician-hall .order-card-list { gap: 0; }
.technician-hall .OrderCard { gap: 5px; padding: 14px 0; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; background: transparent; box-shadow: none; }
.technician-hall .OrderCard .order-card__top h2 { font-size: 16px; font-weight: 600; }
.technician-hall .OrderCard .order-card__meta { font-size: 12px; }
.technician-hall .OrderCard .order-card__description { color: var(--graphite); font-size: 13px; }
.technician-hall .OrderCard .actions { gap: 10px; }
.technician-hall .OrderCard .secondary-action { min-height: 32px; padding: 5px 0; border: 0; border-radius: 0; color: var(--industrial-cyan); font-size: 13px; font-weight: 600; text-decoration: none; }
.technician-hall .OrderCard > button { width: 100%; min-height: 46px; margin-top: 5px; border-radius: 12px; background: var(--industrial-cyan); }
.technician-orders .technician-orders__filters { margin: 0 0 10px; }
.technician-orders .filter-chips { gap: 6px; padding: 0 0 6px; scrollbar-width: none; }
.technician-orders .filter-chips::-webkit-scrollbar { display: none; }
.technician-orders .filter-chip { min-height: 38px; padding: 7px 10px; border-color: transparent; border-radius: 10px; background: transparent; color: var(--muted); font-size: 13px; }
.technician-orders .filter-chip.is-active { border-color: #D7E3E6; background: #EDF4F5; color: var(--industrial-cyan); }
.technician-orders .order-card-list { gap: 0; }
.technician-orders .OrderCard { gap: 5px; padding: 13px 0; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; background: transparent; box-shadow: none; }
.technician-orders .OrderCard .order-card__top h2 { font-size: 16px; font-weight: 600; }
.technician-orders .OrderCard .order-card__meta { font-size: 12px; }
.technician-orders .OrderCard .order-card__description { color: var(--graphite); font-size: 13px; }
.technician-orders .OrderCard .actions { display: flex; align-items: center; justify-content:flex-end; gap: 14px; margin-top: 0; }
.technician-orders .OrderCard .secondary-action, .technician-orders .OrderCard .secondary { min-height: 32px; padding: 5px 0; border: 0; border-radius: 0; background: transparent; color: var(--industrial-cyan); font-size: 13px; font-weight: 600; text-decoration: none; }
.technician-orders .OrderCard .secondary { color: var(--muted); }
.technician-orders .status-chip { min-height: 24px; padding: 2px 7px; border-color: #D4E0E3; background: #F3F7F8; color: #527784; font-size: 11px; font-weight: 600; }
.technician-orders .load-more-wrap { margin-top: 18px; padding: 14px 0 0; border-top: 1px solid var(--border); }
.technician-orders .load-more-wrap button { min-height: 44px; padding: 10px 16px; border: 0; border-radius: 0; background: transparent; color: var(--industrial-cyan); font-size: 13px; font-weight: 600; }
.technician-orders .load-more-wrap button:disabled { color: var(--muted); opacity: .55; }
.technician-order-detail .status-panel { margin: 0 0 18px; padding: 0 0 16px; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; background: transparent; box-shadow: none; }
.technician-order-detail .status-panel__heading h2 { font-size: 18px; }
.technician-order-detail .status-panel p, .technician-order-detail .current-actions #action-copy { color: var(--muted); font-size: 13px; line-height: 1.6; }
.technician-order-detail .mobile-section { margin-bottom: 20px; padding: 0 0 18px; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; background: transparent; box-shadow: none; }
.technician-order-detail .mobile-section h2 { font-size: 16px; }
.technician-order-detail .detail-list { gap: 0; }
.technician-order-detail .detail-list dt, .technician-order-detail .detail-list dd { padding: 10px 0; border-bottom: 1px solid #E7ECEE; }
.technician-order-detail .detail-list dt { color: var(--muted); font-size: 12px; }
.technician-order-detail .detail-list dd { font-size: 14px; }
.technician-order-detail .current-actions .actions { display: grid; gap: 8px; }
.technician-order-detail .current-actions .actions button { width: 100%; min-height: 44px; border-radius: 12px; }
.technician-order-detail .current-actions .actions .secondary { border-color: var(--border); background: #fff; color: var(--graphite); }
.technician-order-detail .current-actions .actions .text-button { justify-content: flex-start; padding: 8px 0; border: 0; border-radius: 0; background: transparent; font-size: 13px; font-weight: 600; }
.technician-order-detail .current-actions .actions .action-cyan { color: var(--industrial-cyan); }
.technician-order-detail .current-actions .actions .action-danger { color: var(--action-danger); }
.technician-order-detail .progress-timeline { gap: 0; }
.technician-order-detail .progress-timeline li { padding: 11px 0; border-bottom: 1px solid #E7ECEE; }
.technician-order-detail .bottom-primary-action { box-shadow: none; }
.auth-flow { display: grid; min-height: 100dvh; place-items: start center; padding-bottom: max(32px, env(safe-area-inset-bottom)); }
.auth-flow .auth-shell { width: min(440px, calc(100% - 32px)); margin: max(52px, 12vh) auto; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.auth-flow .eyebrow { color: var(--industrial-cyan); font-size: 12px; letter-spacing: .08em; }
.auth-flow h1 { margin: 7px 0 8px; color: var(--graphite); font-size: 28px; letter-spacing: -.02em; }
.auth-flow__hint { max-width: 31ch; margin: 0 0 20px; color: var(--muted); font-size: 14px; line-height: 1.65; }
.auth-flow form { display: grid; gap: 0; }
.auth-flow form label { gap: 6px; padding: 13px 0; border-bottom: 1px solid var(--border); color: var(--graphite); font-size: 13px; font-weight: 600; }
.auth-flow form input { border-radius: 12px; background: rgb(255 255 255 / 76%); }
.auth-flow form button { width: 100%; min-height: 48px; margin-top: 20px; border-radius: 12px; background: var(--industrial-cyan); }
.auth-flow form .message { min-height: 20px; margin: 8px 0 0; font-size: 13px; }
.account-flow { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
.account-flow .profile-header, .account-flow .profile-panel { width: min(560px, calc(100% - 32px)); }
.account-flow .profile-header { flex-wrap: wrap; align-items: end; padding: 22px 0 14px; }
.account-flow .profile-header .eyebrow { color: var(--industrial-cyan); font-size: 12px; letter-spacing: .08em; }
.account-flow .profile-header h1 { margin: 6px 0 4px; font-size: 24px; letter-spacing: -.02em; }
.account-flow #profile-status { border-color: #D7E3E6; background: #EDF4F5; color: var(--industrial-cyan); font-size: 12px; font-weight: 600; }
.account-flow .profile-panel { padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.account-flow #profile-form { display: grid; gap: 0; }
.account-flow #profile-form .grid { grid-template-columns: 1fr; gap: 0; }
.account-flow #profile-form label { gap: 6px; padding: 13px 0; border-bottom: 1px solid var(--border); color: var(--graphite); font-size: 13px; font-weight: 600; }
.account-flow #profile-form input { border-radius: 12px; background: rgb(255 255 255 / 76%); }
.account-flow #profile-form section { display: grid; gap: 0; margin: 10px 0 0; padding: 0; border: 0; background: transparent; }
.account-flow #profile-form #locate { justify-self: start; min-height: 36px; margin-top: 10px; padding: 6px 0; border: 0; border-radius: 0; background: transparent; color: var(--industrial-cyan); font-size: 13px; font-weight: 600; }
.account-flow #factory-location-status { min-height: auto; margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.account-flow #advanced-location { margin-top: 12px; color: var(--muted); font-size: 13px; }
.account-flow #advanced-location summary { min-height: 36px; cursor: pointer; color: var(--industrial-cyan); font-weight: 600; }
.account-flow #advanced-location .grid { margin-top: 4px; }
.account-flow #profile-form .actions { margin-top: 22px; }
.account-flow #profile-form .actions button { width: 100%; min-height: 48px; border-radius: 12px; background: var(--industrial-cyan); }
.account-flow #profile-form .message { min-height: 20px; margin: 8px 0 0; font-size: 13px; }
.account-flow #logout { justify-self: start; min-height: 40px; margin-top: 16px; padding: 6px 0; border: 0; border-radius: 0; background: transparent; color: var(--action-danger); font-size: 13px; font-weight: 600; }
.account-flow #logout:active { background: transparent; color: var(--action-danger); }
.account-flow .role-bottom-nav { padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); box-shadow: none; }
.account-flow .role-bottom-nav a { min-height: 48px; grid-template-rows: 18px auto; gap: 1px; font-size: 10px; font-weight: 500; }
.account-flow .role-bottom-nav__icon { width: 17px; height: 17px; }
.account-flow .role-bottom-nav__icon path, .account-flow .role-bottom-nav__icon circle { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.secondary-action { display: grid; place-items: center; border-radius: 12px; padding: 10px 16px; text-decoration: none; }
.confirm-sheet { position: fixed; z-index: 20; inset: 0; display: grid; align-items: end; padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); background: rgb(23 50 77 / 42%); }
.confirm-sheet__panel { width: min(100%, 560px); margin: 0 auto; padding: 20px; border-radius: 18px; background: var(--warm-card); box-shadow: 0 14px 40px rgb(23 50 77 / 30%); }
.confirm-sheet__panel h2 { margin: 0 0 8px; font-size: 20px; }
.confirm-sheet__panel p { margin: 0; color: var(--muted); }
.confirm-sheet__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
.section-heading a, .manufacturer-flow .mobile-back-header a, .manufacturer-flow .mobile-back-header .secondary-action, .technician-flow .mobile-back-header .secondary-action, .manufacturer-home .order-card__link, .manufacturer-devices .OrderCard .secondary-action, .technician-home .order-card__link, .technician-hall .OrderCard .secondary-action, .manufacturer-orders .OrderCard .order-card__link, .technician-orders .OrderCard .secondary-action, .technician-orders .OrderCard .secondary, .technician-hall .technician-hall__tools .secondary, .manufacturer-report #change-contact, .manufacturer-orders .filter-chip, .technician-orders .filter-chip, .account-flow #profile-form #locate, .account-flow #advanced-location summary, .account-flow #logout { min-height: 44px; }
.section-heading a, .mobile-back-header a, .order-card__link { display: inline-flex; align-items: center; }
.section-heading a, .mobile-back-header .secondary-action, .manufacturer-devices .OrderCard .secondary-action { min-width: 44px; }
.manufacturer-device-form .bottom-primary-action, .manufacturer-report .bottom-primary-action, .technician-order-detail .bottom-primary-action { bottom: calc(16px + env(safe-area-inset-bottom)); }

@media (max-width: 767px) {
  header { align-items: flex-start; flex-direction: column; }
  .grid { grid-template-columns: 1fr; }
  .panel { padding: 16px; }
  .table-wrap { margin: 0 -16px; padding: 0 16px; }
  table { min-width: 620px; }
  .auth-shell { margin: 32px auto; }
  .profile-header { padding: 16px 0; }
  .profile-header nav { width: 100%; justify-content: space-between; }
}

@media (min-width: 768px) {
  .mobile-page { padding-bottom: 32px; }
  .account-flow { padding-bottom: 32px; }
  .mobile-shell { padding-top: 32px; }
  .bottom-primary-action { position: static; width: min(736px, calc(100% - 32px)); margin: 0 auto 24px; }
  .role-bottom-nav { position: static; width: min(736px, calc(100% - 32px)); margin: 0 auto; border: 0; background: transparent; box-shadow: none; }
  .account-flow .role-bottom-nav { width: min(560px, calc(100% - 32px)); }
  .manufacturer-flow .mobile-shell { width: min(560px, calc(100% - 48px)); }
  .manufacturer-flow .bottom-primary-action, .manufacturer-flow .role-bottom-nav { width: min(560px, calc(100% - 48px)); }
  .technician-flow .mobile-shell, .technician-flow .role-bottom-nav { width: min(560px, calc(100% - 48px)); }
}

@media (max-width: 767px) { .account-flow .profile-header { align-items: stretch; } }
