:root {
  --ink: #12202d;
  --muted: #647383;
  --line: #dce4eb;
  --surface: #ffffff;
  --soft: #f3f6f8;
  --navy: #0a1c2c;
  --blue: #006be6;
  --blue-dark: #0054b5;
  --cyan: #00a9d8;
  --green: #078456;
  --red: #c33535;
  --amber: #d88912;
  --shadow: 0 18px 50px rgba(18, 32, 45, .09);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--soft);
}

* { box-sizing: border-box; }
.customer-setup-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 24px 0; }
.customer-setup-steps button { display: flex; align-items: center; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--soft); color: var(--muted); font-weight: 700; text-align: left; }
.customer-setup-steps button[aria-pressed="true"] { color: var(--blue-dark); border-color: var(--blue); background: #edf5ff; }
.customer-setup-steps button:disabled { opacity: .5; cursor: wait; }
.customer-optional-tools { display: flex; justify-content: flex-end; margin: -14px 0 22px; }
.customer-optional-tab { display: flex; align-items: center; gap: 12px; min-width: 220px; padding: 11px 14px; color: var(--blue-dark); background: #f7fbff; border: 1px solid #b8d8f6; border-radius: 9px; text-align: left; }
.customer-optional-tab::before { content: "◫"; display: grid; place-items: center; width: 30px; height: 30px; color: white; background: var(--blue); border-radius: 7px; font-weight: 900; }
.customer-optional-tab span, .customer-optional-tab small { display: block; }
.customer-optional-tab small { margin-top: 2px; color: var(--muted); font-size: 10px; font-weight: 700; }
.customer-optional-tab[aria-pressed="true"] { color: white; background: var(--blue); border-color: var(--blue); }
.customer-optional-tab[aria-pressed="true"]::before { color: var(--blue); background: white; }
.customer-optional-tab[aria-pressed="true"] small { color: #d9ebff; }
.customer-settings-fields { border: 0; padding: 0; margin: 0; min-width: 0; }
.customer-camera-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.customer-feature-grid { display: grid; gap: 14px; }
.customer-setting-card { padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.customer-setting-title { display: block; font-size: 15px; font-weight: 750; line-height: 1.45; color: var(--ink); }
.customer-camera-select { display: block; width: 100%; min-width: 0; margin-top: 12px; padding: 12px 8px; border: 1px solid #aab9c7; border-radius: 7px; background: white; color: var(--ink); font-size: 14px; }
.customer-setting-help { margin: 10px 0 0; font-size: 14px; }
.customer-setting-toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.customer-setting-toggle { appearance: none; flex: 0 0 46px; width: 46px; height: 26px; padding: 0; margin: 0; border: 1px solid #8293a3; border-radius: 99px; background: #b0bdc8; cursor: pointer; position: relative; }
.customer-setting-toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: white; }
.customer-setting-toggle:checked { background: var(--blue); border-color: var(--blue); }
.customer-setting-toggle:checked::after { left: 23px; }
.customer-setting-toggle:indeterminate { opacity: .35; }
.customer-setting-toggle:disabled, .customer-camera-select:disabled { cursor: not-allowed; opacity: .55; }
.customer-setting-toggle:focus-visible, .customer-camera-select:focus-visible, .customer-setup-steps button:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
.customer-setting-warning { padding: 10px 12px; background: #fff6e4; border-left: 3px solid var(--amber); color: #76510d; font-size: 14px; border-radius: 4px; }
.customer-setting-details { margin-top: 12px; font-size: 14px; }
.customer-setting-details summary { color: var(--blue-dark); cursor: pointer; width: fit-content; }
.customer-setting-details p { margin-bottom: 0; }
.customer-settings-status { font-size: 14px; font-weight: 600; min-height: 22px; }
.customer-settings-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 14px 0; }
.customer-settings-footnote { font-size: 12px; margin-top: 24px; }
.image-adjustment-panel { max-width: 980px; }
.image-adjustment-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.image-adjustment-heading h2 { margin-bottom: 5px; }
.image-adjustment-badge { flex: 0 0 auto; padding: 5px 9px; color: #08633f; background: #dff5e9; border-radius: 99px; font-size: 10px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.image-adjustment-state { margin: 16px 0; padding: 12px 14px; color: #365166; background: #eef5fb; border-radius: 8px; font-size: 13px; font-weight: 750; }
.image-adjustment-state.success { color: #08633f; background: #e8f8ef; }
.image-adjustment-state.error { color: var(--red); background: #fff0f0; }
.image-adjustment-fields { min-width: 0; margin: 0; padding: 0; border: 0; }
.image-adjustment-fields:disabled { opacity: .58; }
.image-adjustment-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.image-control-card { padding: 17px; background: var(--soft); border: 1px solid var(--line); border-radius: 11px; }
.image-control-card h3 { margin: 0 0 5px; font-size: 15px; }
.image-control-card p { min-height: 42px; margin: 0 0 14px; font-size: 12px; }
.image-direction-pad { display: grid; grid-template-columns: repeat(3, 44px); grid-template-rows: repeat(3, 42px); justify-content: center; gap: 6px; }
.image-direction-pad button:first-child { grid-column: 2; grid-row: 1; }
.image-direction-pad button:nth-child(2) { grid-column: 1; grid-row: 2; }
.image-direction-pad button:nth-child(3) { grid-column: 3; grid-row: 2; }
.image-direction-pad button:last-child { grid-column: 2; grid-row: 3; }
.image-direction-pad button, .image-step-rows button, .image-choice-row button { color: var(--ink); background: white; border: 1px solid #afbfcc; border-radius: 7px; font-weight: 800; }
.image-direction-pad button:hover, .image-step-rows button:hover, .image-choice-row button:hover { color: var(--blue-dark); border-color: var(--blue); background: #edf5ff; }
.image-direction-pad button { font-size: 20px; }
.image-step-rows { display: grid; gap: 10px; }
.image-step-rows > div { display: grid; grid-template-columns: 54px 1fr 1fr; gap: 6px; align-items: center; }
.image-step-rows span { color: var(--muted); font-size: 11px; font-weight: 800; }
.image-step-rows button, .image-choice-row button { min-height: 38px; padding: 7px; font-size: 11px; }
.image-choice-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.image-value-state { margin-top: 10px; color: var(--muted); font-size: 12px; font-weight: 750; }
.image-value-state.available { color: var(--green); }
.image-choice-row button[aria-pressed="true"] { color: #fff; border-color: var(--blue); background: var(--blue); }
.image-adjustment-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
#continue-video-settings { margin-top: 18px; }
@media (max-width: 620px) {
  .customer-camera-grid { grid-template-columns: 1fr; }
  .customer-setup-steps button { flex-direction: column; gap: 5px; text-align: center; padding: 10px 6px; font-size: 12px; }
  .customer-setting-card { padding: 16px; }
  .customer-optional-tools { justify-content: stretch; }
  .customer-optional-tab { width: 100%; }
  .image-adjustment-grid { grid-template-columns: 1fr; }
}
body { margin: 0; min-height: 100vh; background: linear-gradient(180deg, #f8fafb 0, #f1f5f7 100%); }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

.site-header { height: 74px; padding: 0 36px; display: flex; align-items: center; justify-content: space-between; background: rgba(255,255,255,.92); border-bottom: 1px solid var(--line); backdrop-filter: blur(16px); }
.dark-header { background: var(--navy); color: #fff; border: 0; }
.brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; letter-spacing: .08em; }
.brand-logo { display: block; width: 36px; height: 36px; object-fit: cover; border-radius: 8px; }
.brand strong, .brand small { display: block; }
.brand small { margin-top: 2px; color: var(--muted); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.dark-header .brand small { color: #a9bbca; }
.header-actions { display: flex; align-items: center; gap: 16px; }
.support-phone { display: flex; flex-direction: column; align-items: flex-end; color: var(--red); text-decoration: none; line-height: 1.15; }
.support-phone span { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.support-phone strong { font-size: 15px; letter-spacing: .02em; }

.connection-pill { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--surface); padding: 8px 12px; border-radius: 99px; color: var(--muted); font-size: 13px; }
.connection-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: #aab4bd; }
.connection-pill.connected .dot { background: #14b878; box-shadow: 0 0 0 4px rgba(20,184,120,.13); }

.customer-shell { max-width: 1040px; margin: 0 auto; padding: 76px 28px; }
.hero { max-width: 650px; margin: 6vh auto; text-align: center; }
.eyebrow { color: var(--blue); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
h1 { margin: 10px 0 14px; font-size: clamp(32px, 5vw, 52px); line-height: 1.08; letter-spacing: -.035em; }
h2 { margin: 5px 0 15px; font-size: 20px; }
p { color: var(--muted); line-height: 1.55; }
.hero > p { font-size: 18px; max-width: 560px; margin: 0 auto 28px; }
.supporting { margin-top: 14px !important; font-size: 13px !important; }

.button { border: 0; border-radius: 9px; padding: 10px 16px; font-weight: 750; transition: transform .15s ease, background .15s ease, opacity .15s ease; }
.button:hover { transform: translateY(-1px); }
.button:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.button-primary { color: #fff; background: var(--blue); }
.button-primary:hover { background: var(--blue-dark); }
.button-secondary { color: var(--ink); background: #e8eef3; }
.button-warning { color: #fff; background: var(--amber); }
.button-danger { color: #fff; background: var(--red); }
.button-success { color: #fff; background: var(--green); }
.button-quiet { color: var(--muted); background: transparent; }
.button-dark { color: #fff; background: rgba(255,255,255,.12); }
.button-large { padding: 14px 23px; font-size: 16px; }

.alert { padding: 12px 14px; margin-top: 18px; border-radius: 8px; text-align: left; }
.alert-error { color: #8f2626; background: #fff0f0; border: 1px solid #f2c4c4; }
.alert-info { color: #164f7d; background: #eef7ff; border: 1px solid #bddcf5; }
.alert-success { color: #08633f; background: #edfbf5; border: 1px solid #b9e6d2; }
.section-heading, .workspace-header, .console-toolbar, .card-heading, .sidebar-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.section-heading h1, .workspace-header h1 { font-size: 38px; }
.device-card { padding: 14px 18px; min-width: 260px; border: 1px solid var(--line); background: #fff; border-radius: 10px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.device-card strong { color: var(--ink); }
.mode-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 32px; }
.mode-card { min-height: 250px; padding: 32px; text-align: left; border: 1px solid var(--line); border-radius: 15px; background: #fff; box-shadow: var(--shadow); }
.mode-card:hover { border-color: #9fc7ef; transform: translateY(-3px); }
.mode-card strong, .mode-card span { display: block; }
.mode-card strong { margin: 28px 0 10px; font-size: 24px; }
.mode-card span:last-child { color: var(--muted); line-height: 1.5; }
.mode-icon { display: grid !important; place-items: center; width: 48px; height: 48px; color: var(--blue); background: #e8f3ff; border-radius: 12px; font-size: 24px; }
.mode-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.mode-card-accent { color: #fff; background: linear-gradient(135deg, #09243d, #084f77); border: 0; }
.mode-card-accent span:last-child { color: #c2d9e7; }
.mode-card-accent .mode-icon { color: #fff; background: rgba(255,255,255,.13); }

.workspace { padding: 30px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.notice { padding: 12px 16px; margin: 15px 0 25px; color: #73500f; background: #fff8e8; border: 1px solid #eed8a8; border-radius: 8px; }
.update-customer { max-width: 860px; margin: auto; }
.update-device-card { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 18px 0 24px; padding: 16px 18px; color: var(--muted); background: var(--soft); border-radius: 10px; }
.update-device-card span { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.update-device-card strong { color: var(--ink); text-align: right; }
.installed-software-card { padding: 22px; margin-bottom: 18px; border: 1px solid #bfd7ce; border-radius: 12px; background: #f3faf7; overflow-wrap: anywhere; }
.installed-software-card > strong { display: block; margin-top: 9px; font-size: 23px; color: var(--ink); }
.installed-software-card p { margin: 8px 0 0; }
.installed-software-meta { font-size: 13px; color: var(--muted); }
.installed-software-compatibility { margin-top: 15px; padding-top: 13px; border-top: 1px solid #d4e5de; font-size: 13px; }
.installed-software-compatibility ul { margin: 7px 0 0; padding-left: 19px; max-height: 180px; overflow-y: auto; }
.installed-software-compatibility li { padding: 3px 0; }
.installed-software-card button { margin-top: 12px; }
.update-form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.update-form-grid label, .update-software-field { display: grid; gap: 8px; color: var(--muted); font-size: 12px; font-weight: 800; }
.update-software-field { margin-top: 18px; }
.update-warning { margin: 20px 0; padding: 13px 15px; color: #73500f; background: #fff8e8; border: 1px solid #eed8a8; border-radius: 8px; line-height: 1.45; }
.update-fields { border: 0; margin: 0; padding: 0; min-width: 0; }
.software-list-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 24px 0 12px; }
.software-list-heading h2 { margin: 0; font-size: 17px; }
.software-list-heading span { font-size: 13px; color: var(--muted); }
.software-filter-field { display: block; margin-bottom: 14px; font-size: 13px; font-weight: 600; }
.software-filter-field input { display: block; width: 100%; margin-top: 6px; padding: 11px; border: 1px solid var(--line); border-radius: 8px; }
.software-options { display: grid; gap: 10px; }
.software-choice { display: flex; gap: 13px; align-items: flex-start; padding: 16px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; background: #fff; }
.software-choice[hidden] { display: none; }
.software-choice:hover { border-color: #6f9cd1; }
.software-choice.selected { border-color: #1c6dd0; background: #edf6ff; box-shadow: 0 0 0 1px #1c6dd0; }
.software-choice:focus-within { outline: 2px solid #1c6dd0; outline-offset: 3px; }
.software-choice input { flex: 0 0 auto; width: 18px; height: 18px; margin: 2px 0 0; accent-color: #1c6dd0; }
.software-choice > span { min-width: 0; overflow-wrap: anywhere; }
.software-choice strong { display: block; font-size: 15px; line-height: 1.4; }
.software-choice-version { display: block; margin-top: 5px; color: var(--muted); font-size: 13px; }
.update-fields:disabled .software-choice { cursor: wait; opacity: .7; }
.update-status-card { margin-top: 22px; padding: 22px; background: var(--soft); border-radius: 12px; }
.update-status-card > strong { display: block; font-size: 19px; }
.update-status-card > p { margin: 6px 0 17px; }
.update-progress-track { height: 12px; overflow: hidden; background: #dce5ec; border-radius: 99px; }
.update-progress-track span { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--blue), var(--cyan)); border-radius: inherit; transition: width .2s ease; }
.update-progress-value { margin-top: 7px; color: var(--blue); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; font-weight: 850; text-align: right; }
.control-section { padding: 22px 0; border-top: 1px solid var(--line); }
.button-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.diagnostic-button { min-height: 62px; padding: 12px; color: var(--ink); background: var(--soft); border: 1px solid var(--line); border-radius: 9px; font-weight: 700; }
.diagnostic-button:hover { color: var(--blue); border-color: var(--blue); background: #eef7ff; }
.diagnostic-button[aria-pressed="true"] { color: #fff; border-color: var(--blue); background: var(--blue); box-shadow: 0 0 0 2px rgba(0, 111, 190, .16); }
.diagnostic-button[aria-pressed="true"]:hover { color: #fff; background: #005c9e; }
.diagnostic-button.warning-action { color: #9a4d12; }

.remote-customer { max-width: 760px; margin: auto; }
.remote-status-card { display: flex; align-items: center; gap: 20px; padding: 22px; margin: 18px 0; background: var(--soft); border-radius: 12px; }
.remote-status-card strong { display: block; font-size: 18px; }
.remote-status-card p { margin: 5px 0 0; }
.usb-recovery-card { display: flex; align-items: flex-start; gap: 22px; margin: 20px 0; padding: 26px; border: 2px solid #d97706; border-radius: 14px; background: #fff8eb; box-shadow: var(--shadow); }
.usb-recovery-icon { display: grid; place-items: center; flex: 0 0 64px; width: 64px; height: 64px; border-radius: 50%; color: #fff; background: #d97706; font-size: 16px; font-weight: 900; letter-spacing: .08em; }
.usb-recovery-copy { flex: 1; }
.usb-recovery-copy h2 { margin: 3px 0 12px; font-size: clamp(24px, 4vw, 32px); }
.usb-recovery-copy ol { margin: 0 0 20px; padding-left: 24px; color: var(--muted); font-size: 17px; line-height: 1.55; }
.usb-recovery-copy li + li { margin-top: 7px; }
.usb-recovery-result { margin: 12px 0 0; color: var(--muted); font-size: 14px; }
.status-orbit { position: relative; flex: 0 0 auto; width: 42px; height: 42px; border: 2px solid #b8c3cc; border-radius: 50%; }
.status-orbit span { position: absolute; inset: 11px; border-radius: 50%; background: #aab4bd; }
.status-orbit.active { border-color: var(--blue); animation: pulse 1.5s infinite; }
.status-orbit.active span { background: var(--blue); }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(0,107,230,.08); } }
.instruction-overlay { margin: 28px 0; padding: 28px; color: #fff; background: linear-gradient(135deg, #0b5f86, #087daa); border-radius: 14px; box-shadow: var(--shadow); }
.instruction-overlay .eyebrow { color: #aeeaff; }
.instruction-overlay p { margin: 15px 0 24px; color: #fff; font-size: clamp(24px, 4vw, 36px); font-weight: 800; line-height: 1.2; }
@media (max-width: 620px) {
  .usb-recovery-card { display: block; padding: 22px; }
  .usb-recovery-icon { margin-bottom: 16px; }
  .usb-recovery-card .button { width: 100%; }
}
.chat-card, .tool-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.chat-card { margin-top: 28px; padding: 22px; }
.camera-invite-card { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 24px; margin: 28px 0; padding: 26px; border: 2px solid #66aee2; border-radius: 14px; background: linear-gradient(135deg, #f8fcff, #e8f5ff); box-shadow: var(--shadow); }
.camera-invite-card h2 { margin: 5px 0 12px; font-size: 25px; }
.camera-invite-card ol { margin: 0 0 15px; padding-left: 22px; color: #364e63; line-height: 1.65; }
.camera-invite-card p { color: #536a7d; font-weight: 700; }
.camera-qr-wrap { display: grid; place-items: center; padding: 12px; background: #fff; border: 1px solid #c9dce9; border-radius: 12px; }
.camera-qr-wrap img { display: block; width: 100%; max-width: 270px; aspect-ratio: 1; }
.message-list { min-height: 160px; max-height: 320px; overflow-y: auto; padding: 10px 2px; }
.message { max-width: 86%; margin: 8px 0; padding: 10px 12px; background: var(--soft); border-radius: 10px 10px 10px 2px; font-size: 14px; line-height: 1.4; }
.message.mine { margin-left: auto; color: #fff; background: var(--blue); border-radius: 10px 10px 2px 10px; }
.message small { display: block; margin-top: 4px; opacity: .65; font-size: 10px; }
.message-form { display: flex; gap: 8px; }
input, textarea, select { width: 100%; color: var(--ink); background: #fff; border: 1px solid #cbd6df; border-radius: 8px; padding: 11px 12px; outline: none; }
input:focus, textarea:focus, select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,107,230,.11); }
textarea { resize: vertical; }
footer { padding: 28px; color: #85919b; text-align: center; font-size: 12px; }

.technician-page { background: #e9eef2; }
.technician-page main { min-height: calc(100vh - 74px); }
.login-card { width: min(430px, calc(100% - 32px)); margin: 10vh auto; padding: 34px; background: #fff; border-radius: 15px; box-shadow: var(--shadow); }
.login-card h1 { font-size: 36px; }
.login-card label { display: block; margin: 16px 0; color: var(--muted); font-size: 13px; font-weight: 700; }
.login-card input { margin-top: 7px; }
.login-card .settings-check { display: flex; align-items: center; gap: 8px; }
.login-card .settings-check input { margin: 0; }
.login-card .button { width: 100%; margin-top: 8px; }
.console { display: grid; grid-template-columns: 300px minmax(0, 1fr); min-height: calc(100vh - 74px); }
.request-sidebar { padding: 22px 16px; background: #f7f9fa; border-right: 1px solid var(--line); }
.sidebar-heading { padding: 0 8px 14px; }
.sidebar-heading h2 { margin: 4px 0; }
.count-badge { display: inline-grid; place-items: center; min-width: 27px; height: 27px; padding: 0 8px; color: var(--blue); background: #e5f1ff; border-radius: 99px; font-size: 12px; font-weight: 800; }
.request-list { display: grid; gap: 8px; }
.request-item { width: 100%; padding: 14px; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 9px; }
.request-item:hover, .request-item.selected { border-color: var(--blue); box-shadow: 0 4px 14px rgba(0,107,230,.1); }
.request-item strong, .request-item span { display: block; }
.request-item span { margin-top: 5px; color: var(--muted); font-size: 11px; }
.request-item .request-status { color: var(--green); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.empty-state { padding: 30px 12px; color: #89949e; text-align: center; font-size: 13px; }
.empty-state.compact { padding: 22px; }
.session-empty { display: grid; align-content: center; justify-items: center; padding: 30px; text-align: center; }
.session-empty h1 { font-size: 32px; }
.session-empty p { max-width: 460px; }
.empty-illustration { display: grid; place-items: center; width: 68px; height: 68px; color: var(--blue); background: #dcecff; border-radius: 18px; font-size: 38px; }
.session-console { min-width: 0; }
.device-alert { margin: 12px 26px 0; }
.console-toolbar { padding: 22px 26px; background: #fff; border-bottom: 1px solid var(--line); }
.console-toolbar h1 { margin: 4px 0; font-size: 28px; }
.bootloader-session .console-toolbar { background: #fff7d6; border-bottom-color: #e6b800; }
.bootloader-session #session-device-label { color: #8a5a00; font-weight: 900; letter-spacing: .1em; }
.session-meta { color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; }
.toolbar-actions { display: flex; align-items: center; gap: 12px; }
.session-tabs { display: flex; gap: 4px; padding: 12px 16px 0; background: #f3f6f8; border-bottom: 1px solid var(--line); }
.session-tab { padding: 11px 18px; color: #5b6c7a; background: transparent; border: 0; border-bottom: 3px solid transparent; font-size: 13px; font-weight: 850; cursor: pointer; }
.session-tab:hover { color: var(--ink); background: #e9eef2; }
.session-tab.active { color: var(--blue); background: #fff; border-bottom-color: var(--blue); }
.session-tab:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
.console-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 16px; padding: 16px; }
.diagnostic-column, .communication-column { display: grid; align-content: start; gap: 16px; min-width: 0; }
.software-panel { display: grid; align-content: start; gap: 16px; padding: 16px; }
.software-panel.hidden { display: none; }
.software-list-state { margin: 14px 0; padding: 13px 14px; color: var(--muted); background: var(--soft); border-radius: 8px; font-size: 12px; font-weight: 750; }
.software-list-state.error { color: var(--red); background: #fff0f0; }
.technician-software-filter { min-width: 0; margin: 16px 0 0; padding: 14px; border: 1px solid var(--line); border-radius: 10px; }
.technician-software-filter legend { padding: 0 6px; color: var(--ink); font-size: 12px; font-weight: 850; }
.technician-software-filter select { width: 100%; }
.software-list { display: grid; gap: 9px; }
.software-option { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.software-option.current { border-color: #75b99a; background: #f2fbf6; }
.software-option-copy { min-width: 0; }
.software-option-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; font-weight: 850; }
.software-option-description { margin-top: 4px; color: var(--muted); font-size: 12px; }
.software-option-meta { margin-top: 7px; color: #596c7c; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; }
.software-current-badge { padding: 3px 7px; color: #08633f; background: #dff5e9; border-radius: 99px; font-size: 9px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.software-install { min-width: 92px; }
.tool-card { padding: 17px; }
.action-strip { display: flex; flex-wrap: wrap; gap: 8px; }
.settings-actions { display: flex; gap: 8px; }
.settings-help { margin: 7px 0 8px; font-size: 13px; }
.remote-control-card .card-heading { align-items: center; }
.remote-control-state { max-width: 260px; color: var(--muted); font-size: 11px; font-weight: 750; line-height: 1.35; text-align: right; }
.remote-control-state.error { color: var(--red); }
.remote-control-state.success { color: var(--green); }
.remote-control-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; margin-top: 14px; }
.remote-control-grid .diagnostic-button { min-height: 50px; }
.remote-power-button { grid-row: span 2; }
.settings-form { display: grid; gap: 14px; margin-top: 16px; }
.settings-form fieldset { min-width: 0; margin: 0; padding: 14px; border: 1px solid var(--line); border-radius: 9px; }
.settings-form legend { padding: 0 7px; color: #4d6071; font-size: 11px; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.settings-input-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.settings-input { display: grid; gap: 9px; padding: 11px; background: var(--soft); border-radius: 8px; }
.settings-input > label:not(.settings-check) { color: var(--muted); font-size: 11px; font-weight: 750; }
.settings-input select { margin-top: 5px; padding: 8px 9px; font-size: 12px; }
.settings-option-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.settings-check { display: flex; align-items: center; gap: 8px; color: var(--ink); font-size: 12px; font-weight: 750; }
.settings-check input { flex: 0 0 auto; width: 17px; height: 17px; margin: 0; padding: 0; accent-color: var(--blue); }
.settings-check:has(input:disabled) { color: var(--muted); }
.card-heading h2 { margin-bottom: 4px; }
.table-scroll { max-height: 310px; overflow: auto; border: 1px solid var(--line); border-radius: 8px; }
.inventory-scroll { max-height: 270px; }
table { width: 100%; border-collapse: collapse; font-size: 12px; }
th { position: sticky; top: 0; z-index: 1; padding: 9px 10px; color: #6e7c88; background: #f4f7f9; text-align: left; text-transform: uppercase; letter-spacing: .07em; font-size: 9px; }
td { padding: 9px 10px; border-top: 1px solid #e6ebef; white-space: nowrap; }
td.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.inventory-heading-status, .watch-actions { display: flex; align-items: center; gap: 8px; }
.inventory-heading-status { flex-wrap: wrap; justify-content: flex-end; }
.inventory-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 7px; }
.inventory-actions .button { padding: 7px 11px; font-size: 11px; }
.cross-lookup-button { padding: 6px 10px; border: 1px solid #d3a737; border-radius: 7px; color: #725000; background: #fff8db; font-size: 11px; font-weight: 850; cursor: pointer; }
.cross-lookup-button:hover:not(:disabled) { background: #ffefad; }
.cross-lookup-button[aria-pressed="true"] { color: #513700; border-color: #c28d00; background: #ffe27a; box-shadow: 0 0 0 2px rgba(194, 141, 0, .15); }
.cross-lookup-button:disabled { cursor: not-allowed; opacity: .5; }
.scan-timer { padding: 5px 9px; color: #08633f; background: #e7f8f0; border-radius: 99px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; font-weight: 800; }
.scan-timer.complete { color: var(--muted); background: var(--soft); }
.watch-button, .watch-remove { padding: 5px 8px; border: 0; border-radius: 5px; font-size: 10px; font-weight: 800; }
.watch-button { color: var(--blue); background: #e9f3ff; }
.watching-state { color: var(--green); font-size: 10px; font-weight: 850; text-transform: uppercase; letter-spacing: .05em; }
.watch-remove { color: var(--red); background: #fff0f0; }
.known-id-row { background: #edf7ff; }
.known-id-row td:first-child { box-shadow: inset 4px 0 #2584cc; }
.known-catalog-state { margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.35; }
.known-catalog-state.matched { color: #075b9a; font-weight: 800; }
.known-id-row:hover { background: #e5f3ff; }
.cross-id-row { background: #fff8d9; }
.cross-id-row td:first-child { box-shadow: inset 4px 0 #d5a000; }
.cross-id-row:hover { background: #fff1b9; }
.known-id-badge { display: grid; gap: 1px; margin-top: 7px; padding: 6px 9px; border: 1px solid #6da9d9; border-radius: 7px; color: #064e83; background: #dcefff; text-align: left; cursor: pointer; }
.known-id-badge:hover, .known-id-badge:focus-visible { border-color: #1877bd; background: #cfe9fc; outline: 2px solid rgba(24, 119, 189, .2); outline-offset: 1px; }
.known-id-badge-label { font-size: 9px; font-weight: 850; letter-spacing: .08em; line-height: 1.15; text-transform: uppercase; }
.known-id-badge-name { font-size: 12px; font-weight: 850; line-height: 1.3; }
.known-id-card { padding: 22px; border: 1px solid #6da9d9; background: linear-gradient(135deg, #f7fbff, #edf7ff); }
.known-id-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.known-id-heading h2 { margin: 6px 0 12px; font-size: 24px; }
.known-id-code { color: #075b9a; font-size: 14px; font-weight: 850; }
.known-id-card p { margin: 5px 0 18px; color: #3e5265; font-size: 15px; line-height: 1.6; }
.known-format-label { color: #314b62; font-size: 11px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.known-id-card .known-id-format { margin: 7px 0 0; padding: 12px 14px; border-radius: 7px; color: #102f49; background: rgba(255, 255, 255, .72); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; font-weight: 650; line-height: 1.65; }
.cross-id-badge { color: #674600; border-color: #d5a000; background: #fff0a8; }
.cross-id-badge:hover, .cross-id-badge:focus-visible { border-color: #ad7f00; background: #ffe47a; outline-color: rgba(173, 127, 0, .22); }
.known-id-card.cross-reference-card { border-color: #d5a000; background: linear-gradient(135deg, #fffdf4, #fff5c9); }
.known-id-card.cross-reference-card .known-id-code { color: #745100; }
.known-id-card.cross-reference-card .known-id-format { color: #4b3906; white-space: pre-line; }
.frame-table td:nth-child(5) { width: 100%; }
.byte { display: inline-block; padding: 2px 3px; margin-right: 2px; border-radius: 3px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.byte.changed { color: #8a4c00; background: #fff0c9; }
.drop-counter { color: var(--muted); font-size: 11px; }
.frame-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; }
.frame-tools .button { padding: 7px 11px; font-size: 11px; }
.frame-table.scrolling td { padding-top: 5px; padding-bottom: 5px; }
.frame-separator td { padding: 12px 14px; white-space: normal; background: #eaf4ff; border-top: 2px solid #79b4eb; border-bottom: 1px solid #bcd8ef; }
.frame-separator.done td { background: #eaf9f1; border-top-color: #62bb8f; border-bottom-color: #b8dfcc; }
.frame-separator.cancelled td { background: #fff5e8; border-top-color: #dda24d; border-bottom-color: #efd4ad; }
.frame-separator strong, .frame-separator time, .frame-separator span { display: block; }
.frame-separator strong { font-size: 12px; }
.frame-separator time { margin: 3px 0; color: var(--muted); font-size: 10px; }
.frame-separator span { font-weight: 700; }
.instruction-tool textarea { margin-bottom: 9px; }
.instruction-tool .button { width: 100%; }
.instruction-state { margin-top: 12px; padding: 10px; color: #42566a; background: var(--soft); border-radius: 7px; font-size: 12px; }
.chat-tool .message-list { height: 330px; }
.camera-tech-state { margin: 12px 0; padding: 10px 12px; color: #42566a; background: var(--soft); border-radius: 7px; font-size: 12px; font-weight: 750; line-height: 1.4; }
.camera-tech-state.success { color: #08633f; background: #e7f8f0; }
.camera-tech-state.error { color: #9b2525; background: #fff0f0; }
.tech-camera-preview, .camera-preview-wrap { position: relative; overflow: hidden; border-radius: 10px; background: #081019; }
.tech-camera-preview { margin: 12px 0; aspect-ratio: 16 / 9; }
.tech-camera-preview video, .camera-preview-wrap video { display: block; width: 100%; height: 100%; object-fit: contain; }
.camera-live-badge { position: absolute; top: 10px; left: 10px; padding: 5px 8px; color: #fff; background: rgba(8, 16, 25, .78); border-radius: 99px; font-size: 10px; font-weight: 850; letter-spacing: .04em; }
.camera-tech-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.camera-tech-actions .button { padding: 8px 10px; font-size: 11px; }

.firmware-card { border-left: 4px solid #63788b; }
.modal-backdrop { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 20px; background: rgba(5, 18, 30, .7); }
.modal-backdrop.hidden { display: none; }
.firmware-modal-card { width: min(620px, 100%); max-height: calc(100vh - 40px); overflow: auto; padding: 26px; background: #fff; border-radius: 14px; box-shadow: 0 24px 70px rgba(0, 0, 0, .35); }
.modal-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.modal-heading h2 { margin: 5px 0 0; font-size: 26px; }
.modal-close { width: 36px; height: 36px; padding: 0; color: var(--muted); background: var(--soft); border: 0; border-radius: 50%; font-size: 25px; line-height: 1; }
.firmware-file-label { display: block; margin-bottom: 7px; color: var(--ink); font-size: 13px; font-weight: 800; }
.firmware-file-details { margin: 10px 0 18px; padding: 11px 13px; color: var(--muted); background: var(--soft); border-radius: 8px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.firmware-file-details.error { color: var(--red); background: #fff0f0; }
.firmware-warning { margin: 16px 0; padding: 14px; color: #704711; background: #fff6df; border: 1px solid #edd39b; border-radius: 8px; line-height: 1.45; }
.firmware-confirm { display: flex; align-items: flex-start; gap: 9px; font-size: 13px; font-weight: 750; line-height: 1.4; }
.firmware-confirm input { flex: 0 0 auto; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--blue); }
.modal-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 24px; }
.firmware-progress-view { text-align: center; }
.firmware-progress-title { margin: 8px 0 18px; font-size: 20px; font-weight: 850; }
.firmware-progress-view progress { width: 100%; height: 20px; accent-color: var(--blue); }
.firmware-progress-value { margin-top: 8px; color: var(--blue); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 18px; font-weight: 850; }
.firmware-progress-view p { min-height: 42px; color: var(--muted); line-height: 1.5; }

.camera-page { min-height: 100vh; background: #eaf0f4; }
.camera-header { padding-right: max(22px, env(safe-area-inset-right)); padding-left: max(22px, env(safe-area-inset-left)); }
.camera-phone { color: #fff; }
.camera-phone span { color: #b8c6d1; }
.camera-shell { display: grid; min-height: calc(100vh - 74px); padding: 28px 16px max(28px, env(safe-area-inset-bottom)); place-items: center; }
.camera-card { width: min(100%, 640px); padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.camera-card h1 { margin: 7px 0 8px; font-size: clamp(27px, 7vw, 38px); line-height: 1.12; }
.camera-card > p { color: var(--muted); line-height: 1.55; }
.camera-status { display: flex; align-items: center; gap: 8px; margin: 18px 0; padding: 11px 13px; color: #536675; background: var(--soft); border-radius: 9px; font-size: 13px; font-weight: 800; }
.camera-status .dot { width: 9px; height: 9px; background: #91a0ac; border-radius: 50%; }
.camera-status.connected { color: #08633f; background: #e7f8f0; }
.camera-status.connected .dot { background: #21a66a; }
.camera-status.error { color: #9b2525; background: #fff0f0; }
.camera-status.error .dot { background: #d64040; }
.camera-preview-wrap { width: 100%; max-height: 68vh; margin: 18px 0; aspect-ratio: 3 / 4; }
.camera-preview-wrap video { object-fit: cover; }
.camera-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 18px; }
.camera-actions .button-large { flex: 1 1 220px; }
.camera-privacy { margin: 20px 0 0; padding-top: 17px; border-top: 1px solid var(--line); font-size: 12px; }

@media (max-width: 1050px) {
  .console-grid { grid-template-columns: 1fr; }
  .communication-column { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .image-adjustment-grid { grid-template-columns: 1fr; }
  .site-header { padding: 0 16px; }
  .customer-shell { padding: 45px 16px; }
  .customer-page .workspace { padding: 22px; }
  .mode-grid, .button-grid { grid-template-columns: 1fr 1fr; }
  .update-form-grid { grid-template-columns: 1fr; }
  .section-heading, .workspace-header, .console-toolbar { align-items: flex-start; flex-direction: column; }
  .device-card { width: 100%; }
  .console { grid-template-columns: 1fr; }
  .request-sidebar { border-right: 0; border-bottom: 1px solid var(--line); }
  .communication-column { grid-template-columns: 1fr; }
  .settings-input-grid, .settings-option-grid { grid-template-columns: 1fr; }
  .settings-card .card-heading { align-items: flex-start; flex-direction: column; }
  .software-option { grid-template-columns: 1fr; }
  .software-install { width: 100%; }
  .inventory-heading-status { width: 100%; justify-content: flex-start; }
  .inventory-actions { justify-content: flex-start; }
  .frame-card .card-heading { align-items: flex-start; flex-direction: column; }
  .frame-tools { justify-content: flex-start; }
  .toolbar-actions { width: 100%; justify-content: space-between; }
  .customer-page .brand-logo { width: 36px; height: 36px; }
  .customer-header-actions { flex-direction: column; align-items: flex-end; gap: 5px; }
  .customer-header-actions .connection-pill { padding: 6px 9px; font-size: 11px; }
  .support-phone { flex-direction: row; gap: 6px; align-items: baseline; }
  .support-phone strong { font-size: 13px; }
  .camera-invite-card { grid-template-columns: 1fr; }
  .camera-qr-wrap { grid-row: 1; }
  .camera-card { padding: 22px; }
  .camera-header .brand-logo { width: 120px; height: 31px; }
  .camera-phone span { display: none; }
}
@media (max-width: 520px) {
  .mode-grid { grid-template-columns: 1fr; }
  .update-device-card { align-items: flex-start; flex-direction: column; }
  .update-device-card strong { text-align: left; }
}
