:root {
  --ink: #1b2c39;
  --muted: #687986;
  --paper: #f3f5f6;
  --white: #fff;
  --line: #dce3e6;
  --navy: #18394c;
  --navy-dark: #112d3d;
  --teal: #36747a;
  --teal-soft: #e6f0ef;
  --gold: #c79642;
  --red: #bd493b;
  --shadow: 0 14px 36px rgba(24, 44, 57, .07);
}
* { box-sizing: border-box; }
html { min-height: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
.topbar {
  height: 76px;
  padding: 0 max(28px, calc((100vw - 1180px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; gap: 11px; align-items: center; }
.brand-mark { width: 40px; height: 40px; display: grid; place-items: center; }
.brand-mark svg { width: 38px; fill: none; stroke: var(--teal); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.brand strong { display: block; font-size: 16px; line-height: 1.15; letter-spacing: .12em; }
.brand small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .15em; }
.topbar-right { display: flex; align-items: center; gap: 18px; }
.topbar-right form { margin: 0; }
.portal-label { color: var(--muted); font-size: 13px; }
.user-chip { padding-left: 18px; border-left: 1px solid var(--line); font-size: 13px; color: var(--ink); }
main { min-height: calc(100vh - 138px); }
.wrap { width: min(1180px, calc(100% - 56px)); margin: 0 auto; }
.narrow { width: min(640px, calc(100% - 40px)); margin: 0 auto; }
.eyebrow { margin: 0 0 12px; color: var(--teal); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 18px; font-size: clamp(36px, 5vw, 58px); font-weight: 600; line-height: 1.08; letter-spacing: -.045em; }
h2 { margin-bottom: 10px; font-size: clamp(24px, 3vw, 32px); line-height: 1.2; letter-spacing: -.03em; font-weight: 600; }
h3 { margin-bottom: 8px; font-size: 18px; line-height: 1.3; }
.muted { color: var(--muted); }
.lead { color: #536672; font-size: 18px; line-height: 1.65; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 13px;
  min-height: 46px; padding: 0 20px; border: 1px solid transparent; border-radius: 3px;
  font-weight: 600; font-size: 14px; cursor: pointer; transition: background .16s ease, border-color .16s ease;
}
.button-primary { color: #fff; background: var(--navy); }
.button-primary:hover { background: var(--navy-dark); }
.button-quiet { color: var(--navy); background: transparent; border-color: var(--line); }
.button-quiet:hover { background: #f6f8f8; border-color: #bdcbd0; }
.button-small { min-height: 36px; padding: 0 12px; font-size: 12px; }
.button-wide { width: 100%; margin-top: 8px; }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--teal); font-weight: 650; }
.text-link:hover { color: var(--navy); }
.back-link { display: inline-block; margin-top: 25px; color: var(--muted); font-size: 13px; }
.back-link:hover { color: var(--ink); }
.live-dot { display: inline-block; width: 8px; height: 8px; margin-right: 7px; border-radius: 50%; background: #4a9a79; vertical-align: 1px; box-shadow: 0 0 0 3px rgba(74,154,121,.12); }
.hero { min-height: 470px; padding-top: 66px; padding-bottom: 55px; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 54px; }
.hero-copy h1 { max-width: 600px; }
.hero-copy h1 em { color: var(--teal); font-style: normal; }
.hero-copy .lead { max-width: 520px; margin-bottom: 28px; }
.hero-graphic { height: 320px; position: relative; overflow: hidden; background: #e7ecee; border: 1px solid #d5dfe2; }
.graphic-grid {
  position: absolute; inset: 0; opacity: .46;
  background-image: linear-gradient(rgba(40,76,92,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(40,76,92,.07) 1px, transparent 1px);
  background-size: 28px 28px;
}
.signal-ring { position: absolute; top: 50%; left: 50%; border: 1px solid rgba(54,116,122,.35); border-radius: 50%; transform: translate(-50%,-50%); }
.ring-one { width: 205px; height: 205px; }
.ring-two { width: 278px; height: 278px; border-color: rgba(54,116,122,.2); }
.signal-center { position: absolute; width: 112px; height: 112px; top: 50%; left: 50%; transform: translate(-50%,-50%); border-radius: 50%; background: var(--navy); color: white; display: flex; align-items: center; justify-content: center; flex-direction: column; box-shadow: 0 0 0 10px rgba(54,116,122,.08); }
.signal-mark { font-size: 25px; font-weight: 700; letter-spacing: .15em; margin-left: .15em; }
.signal-center small { margin-top: 4px; font-size: 8px; letter-spacing: .18em; color: #c6d6d9; }
.graphic-label { position: absolute; color: #607983; font-size: 9px; font-weight: 700; letter-spacing: .18em; }
.label-top { top: 26px; left: 28px; }
.label-bottom { right: 25px; bottom: 23px; }
.portal-section { padding-top: 34px; padding-bottom: 75px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 23px; }
.section-heading .eyebrow { margin-bottom: 7px; }
.section-heading h2 { margin-bottom: 0; }
.section-heading > p { max-width: 360px; margin-bottom: 3px; color: var(--muted); font-size: 14px; }
.portal-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.portal-card { min-height: 236px; position: relative; padding: 23px 20px 20px; background: var(--white); border: 1px solid var(--line); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.portal-card:hover { transform: translateY(-3px); border-color: #b6c8cd; box-shadow: var(--shadow); }
.card-index { position: absolute; top: 23px; right: 20px; color: #a4b0b6; font-size: 11px; letter-spacing: .1em; }
.card-icon { width: 38px; height: 38px; margin-bottom: 23px; display: grid; place-items: center; color: var(--teal); background: var(--teal-soft); font-size: 21px; }
.portal-card h3 { margin-bottom: 7px; }
.portal-card p { min-height: 45px; margin-bottom: 16px; color: var(--muted); font-size: 13px; }
.card-link { display: flex; justify-content: space-between; align-items: center; padding-top: 12px; border-top: 1px solid #edf0f1; color: var(--navy); font-size: 12px; font-weight: 650; }
.card-link b { color: var(--teal); font-size: 17px; }
.info-band { display: grid; grid-template-columns: 1.1fr 1fr auto; align-items: center; gap: 35px; margin-bottom: 76px; padding: 33px 36px; background: #e8edef; border-left: 3px solid var(--gold); }
.info-band h2 { margin-bottom: 0; font-size: 25px; }
.info-band > p { margin-bottom: 0; color: #536672; font-size: 14px; line-height: 1.65; }
.site-footer { display: flex; justify-content: space-between; gap: 20px; padding: 20px max(28px, calc((100vw - 1180px) / 2)); color: #82919a; background: #eef1f2; font-size: 11px; }
.login-layout { min-height: 610px; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 8%; }
.login-aside h1 { font-size: clamp(42px, 5vw, 58px); }
.login-aside > p:not(.eyebrow) { max-width: 390px; color: var(--muted); font-size: 17px; }
.aside-rule { width: 48px; height: 2px; margin: 28px 0 17px; background: var(--gold); }
.aside-note { color: #819099; font-size: 12px; }
.login-card, .panel { padding: 34px; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); }
.login-card { max-width: 480px; width: 100%; justify-self: end; }
.login-card h2 { font-size: 27px; }
.login-card > .muted { margin-bottom: 26px; font-size: 14px; }
.stack-form { display: flex; flex-direction: column; gap: 10px; }
.stack-form label { margin-top: 4px; color: #3a4b57; font-size: 12px; font-weight: 650; }
.stack-form input, .stack-form select, .vehicle-picker select {
  width: 100%; min-height: 46px; padding: 10px 12px; color: var(--ink); background: #fff;
  border: 1px solid #cfd9dd; border-radius: 2px; outline: none;
}
.stack-form input:focus, .stack-form select:focus, .vehicle-picker select:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(54,116,122,.12); }
.admin-login-name { display:flex; align-items:stretch; }
.admin-login-name input { flex:1; min-width:0; width:auto; border-radius:2px 0 0 2px; }
.admin-login-domain { display:flex; align-items:center; padding:0 12px; color:#52646f; background:#f2f5f6; border:1px solid #cfd9dd; border-left:0; border-radius:0 2px 2px 0; font-size:12px; }
.notice { padding: 12px 14px; border: 1px solid; font-size: 13px; }
.notice-error { color: #81372e; background: #fbefed; border-color: #efd0cb; }
.notice-info { color: #275b65; background: #edf5f5; border-color: #c9e0e0; }
.notice-neutral { color: #596a74; background: #f3f6f7; border-color: #dfe6e8; }
.page-head { display: flex; align-items: end; justify-content: space-between; gap: 28px; padding-top: 55px; padding-bottom: 30px; }
.page-head h1 { margin-bottom: 8px; font-size: 42px; }
.page-head .muted { margin-bottom: 0; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; }
.stat-card { min-height: 146px; padding: 20px 22px; background: var(--white); border: 1px solid var(--line); }
.stat-highlight { border-top: 3px solid var(--gold); }
.stat-label, .stat-foot { display: block; color: var(--muted); font-size: 12px; }
.stat-card strong { display: block; margin: 9px 0 4px; color: var(--navy); font-size: 34px; line-height: 1; font-weight: 600; }
.stat-foot { margin-top: 12px; font-size: 11px; }
.content-section { padding-top: 46px; padding-bottom: 30px; }
.subtle-tag { padding: 5px 9px; color: #647680; background: #edf1f2; font-size: 11px; }
.incident-list { border-top: 1px solid var(--line); background: var(--white); }
.incident-row { min-height: 76px; display: grid; grid-template-columns: 15px 210px 1fr 70px; align-items: center; gap: 15px; padding: 15px 20px; border: 1px solid var(--line); border-top: 0; }
.incident-indicator { width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.incident-main strong, .incident-main span { display: block; }
.incident-main span { color: var(--muted); font-size: 12px; }
.incident-address { color: #536672; font-size: 13px; }
.incident-state { color: #9c3e34; font-size: 11px; font-weight: 700; text-align: right; text-transform: uppercase; letter-spacing: .08em; }
.empty-state { min-height: 230px; padding: 40px 20px; display: flex; align-items: center; justify-content: center; flex-direction: column; background: var(--white); border: 1px solid var(--line); text-align: center; }
.empty-state h3 { margin: 13px 0 4px; }
.empty-state p { margin-bottom: 0; color: var(--muted); font-size: 13px; }
.empty-symbol { color: var(--teal); font-size: 26px; }
.empty-state.compact { min-height: 170px; border: 0; box-shadow: none; }
.quick-links { display: grid; grid-template-columns: repeat(3, 1fr); margin: 20px auto 50px; border: 1px solid var(--line); background: white; }
.quick-links a { display: flex; justify-content: space-between; padding: 16px 18px; border-right: 1px solid var(--line); color: var(--navy); font-size: 13px; }
.quick-links a:last-child { border: 0; }
.quick-links b { color: var(--teal); }
.devices-layout { display: grid; grid-template-columns: minmax(290px, .75fr) 1.25fr; gap: 18px; padding-bottom: 70px; align-items: start; }
.panel h2 { font-size: 23px; }
.panel .eyebrow { margin-bottom: 7px; }
.form-help { margin: 2px 0 7px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.optional { color: #82919a; font-weight: 400; }
.device-list-panel { min-height: 300px; padding: 28px; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding-bottom: 15px; border-bottom: 1px solid var(--line); }
.panel-heading h2 { margin: 0; }
.device-row { display: grid; grid-template-columns: 9px minmax(130px,1fr) auto auto; align-items: center; gap: 14px; padding: 17px 0; border-bottom: 1px solid #edf0f1; }
.device-state { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.state-on { background: #4a9a79; }
.state-off { background: #9aa5aa; }
.device-info strong, .device-info span { display: block; }
.device-info strong { font-size: 13px; }
.device-info span { color: var(--muted); font-size: 11px; overflow-wrap: anywhere; }
.status-pill { padding: 4px 8px; background: #f4f1e8; color: #8b6a2d; font-size: 10px; white-space: nowrap; }
.pill-on { color: #2d7458; background: #e9f4ed; }
.pill-off { color: #68757b; background: #edf0f1; }
.text-button { padding: 4px 0; color: #9b4137; background: transparent; border: 0; font-size: 11px; cursor: pointer; }
.success-page { padding-top: 75px; padding-bottom: 90px; }
.success-page h1 { font-size: 44px; }
.success-mark { width: 44px; height: 44px; margin: 25px 0 20px; display: grid; place-items: center; color: white; background: #43856e; border-radius: 50%; font-size: 22px; }
.key-panel { margin: 30px 0; padding: 20px; background: #fff; border: 1px solid var(--line); }
.key-panel span, .key-panel small { display: block; color: var(--muted); font-size: 12px; }
.key-panel code { display: block; margin: 10px 0; padding: 13px; color: var(--navy); background: #f2f5f6; font-size: 16px; overflow-wrap: anywhere; user-select: all; }
.activation-layout { min-height: 600px; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 9%; }
.activation-copy h1 { font-size: 47px; }
.activation-copy > p:not(.eyebrow) { max-width: 420px; color: var(--muted); font-size: 16px; }
.activation-card { justify-self: end; }
.monitor-board { min-height: calc(100vh - 138px); display: flex; flex-direction: column; color: #f4f7f8; background: #102b3a; }
.monitor-top { min-height: 72px; display: flex; justify-content: space-between; align-items: center; padding: 0 4vw; border-bottom: 1px solid rgba(255,255,255,.12); }
.monitor-brand { display: flex; align-items: center; gap: 12px; }
.monitor-mark { width: 39px; height: 39px; display: grid; place-items: center; color: white; border: 1px solid rgba(255,255,255,.42); font-weight: 700; letter-spacing: .08em; }
.monitor-brand strong, .monitor-brand small { display: block; }
.monitor-brand strong { font-size: 14px; }
.monitor-brand small { color: #9eb1ba; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.monitor-status { display: flex; align-items: center; color: #b8c6cc; font-size: 12px; }
.monitor-status time { margin-left: 24px; color: white; font-variant-numeric: tabular-nums; font-size: 16px; }
.monitor-empty { flex: 1; min-height: 480px; padding: 40px 20px; display: flex; align-items: center; justify-content: center; flex-direction: column; text-align: center; }
.monitor-empty .empty-symbol { color: #6fb69a; font-size: 34px; }
.monitor-empty h1 { margin-bottom: 9px; font-size: clamp(36px, 5vw, 60px); }
.monitor-empty p:last-child { max-width: 600px; margin-bottom: 0; color: #aab9c0; font-size: 16px; }
.monitor-error .error-mark { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid #d98b71; border-radius: 50%; color: #e7a18a; font-size: 21px; }
.monitor-incident { width: min(1320px, 92%); margin: 0 auto; padding: 43px 0 32px; }
.monitor-incident-head { display: flex; justify-content: space-between; align-items: start; gap: 20px; border-bottom: 1px solid rgba(255,255,255,.17); padding-bottom: 27px; }
.monitor-incident-head .eyebrow { color: #94b5bd; }
.monitor-incident-head h1 { margin-bottom: 0; font-size: clamp(38px, 5.2vw, 65px); }
.alarm-badge { margin-top: 7px; padding: 8px 11px; color: #ffd7cc; background: rgba(189,73,59,.22); border: 1px solid rgba(226,127,107,.35); font-size: 10px; font-weight: 700; letter-spacing: .12em; white-space: nowrap; }
.alarm-badge i { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: #e97861; }
.monitor-details { display: grid; grid-template-columns: 1.4fr .6fr; gap: 30px; padding: 30px 0; }
.monitor-address h2 { margin: 8px 0 3px; font-size: clamp(27px, 3.4vw, 43px); }
.monitor-address > p { color: #b4c3c9; font-size: 19px; }
.detail-label { display: block; color: #8ea8b1; font-size: 10px; font-weight: 700; letter-spacing: .15em; }
.detail-label-spaced { margin-top: 24px; }
.monitor-address #incident-object, .monitor-notes p { color: #e1e9ec; font-size: 18px; white-space: pre-line; }
.monitor-side { padding: 19px 22px; background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.1); }
.monitor-side > div + div { margin-top: 22px; }
.monitor-side strong { display: block; margin-top: 7px; font-size: 18px; }
.monitor-side ul { margin: 7px 0 0; padding-left: 0; list-style: none; }
.monitor-side li { display: flex; justify-content: space-between; gap: 15px; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.monitor-side li strong { margin: 0; font-size: 13px; }
.monitor-side li span { color: #a9bac1; font-size: 11px; text-align: right; }
.monitor-notes { padding-top: 19px; border-top: 1px solid rgba(255,255,255,.17); }
.monitor-notes p { margin: 8px 0 0; font-size: 15px; }
.monitor-footer { display: flex; justify-content: space-between; margin-top: auto; padding: 13px 4vw; color: #8ea4ac; border-top: 1px solid rgba(255,255,255,.12); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
.mobile-incident { padding: 22px; background: white; border: 1px solid var(--line); }
.mobile-incident + .mobile-incident { border-top: 0; }
.mobile-incident-head { display: flex; align-items: center; gap: 11px; }
.mobile-incident-head strong { flex: 1; font-size: 17px; }
.mobile-incident > p, .mobile-incident > span { margin: 5px 0 0 20px; color: var(--muted); font-size: 13px; }
.mobile-incident h3 { margin: 15px 0 0 20px; font-size: 21px; }
.mobile-incident .mobile-object { color: var(--ink); }
.car-layout { display: grid; grid-template-columns: minmax(240px,.7fr) 1.3fr; gap: 18px; align-items: start; padding-bottom: 70px; }
.vehicle-picker { display: grid; gap: 12px; }
.vehicle-picker label { font-weight: 650; font-size: 12px; }
.vehicle-card h2 { font-size: 33px; }
.vehicle-status { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.status-label { color: var(--muted); font-size: 12px; }
.vehicle-status strong { color: var(--navy); text-align: right; }
.vehicle-card .notice { margin-top: 17px; }
.message-page { padding-top: 100px; padding-bottom: 100px; }
.message-page h1 { font-size: 42px; }
@media (max-width: 900px) {
  .hero { gap: 25px; grid-template-columns: 1fr 1fr; }
  .hero-graphic { height: 270px; }
  .portal-grid { grid-template-columns: repeat(2, 1fr); }
  .info-band { grid-template-columns: 1fr 1fr; }
  .info-band .text-link { grid-column: 2; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .devices-layout { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .topbar { height: 64px; padding: 0 18px; }
  .portal-label, .user-chip { display: none; }
  .topbar-right { gap: 7px; }
  .wrap { width: calc(100% - 36px); }
  .hero { padding-top: 44px; display: flex; flex-direction: column; align-items: stretch; gap: 34px; }
  .hero-copy h1 { font-size: 42px; }
  .hero-copy .lead { font-size: 16px; }
  .hero-graphic { height: 225px; }
  .portal-section { padding-top: 12px; padding-bottom: 45px; }
  .section-heading { align-items: start; flex-direction: column; gap: 12px; }
  .portal-grid { grid-template-columns: 1fr; }
  .portal-card { min-height: 195px; }
  .portal-card p { min-height: 0; }
  .info-band { grid-template-columns: 1fr; gap: 18px; margin-bottom: 45px; padding: 24px 21px; }
  .info-band .text-link { grid-column: auto; }
  .site-footer { padding: 18px; flex-direction: column; gap: 5px; }
  .login-layout, .activation-layout { min-height: auto; padding-top: 48px; padding-bottom: 48px; display: flex; flex-direction: column; align-items: stretch; gap: 28px; }
  .login-aside h1, .activation-copy h1 { font-size: 42px; }
  .login-card { max-width: none; justify-self: stretch; padding: 25px 22px; }
  .page-head { padding-top: 38px; align-items: start; flex-direction: column; }
  .page-head h1 { font-size: 36px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .stat-card { min-height: 125px; padding: 15px; }
  .stat-card strong { font-size: 29px; }
  .incident-row { grid-template-columns: 10px 1fr auto; gap: 9px; padding: 14px; }
  .incident-address { grid-column: 2 / 4; font-size: 12px; }
  .incident-state { grid-column: 3; grid-row: 1; }
  .quick-links { grid-template-columns: 1fr; }
  .quick-links a { border-right: 0; border-bottom: 1px solid var(--line); }
  .devices-layout, .car-layout { grid-template-columns: 1fr; }
  .panel { padding: 24px 20px; }
  .device-list-panel { padding: 21px 17px; }
  .device-row { grid-template-columns: 8px 1fr auto; gap: 9px; }
  .device-row form { grid-column: 2 / 4; }
  .activation-layout { min-height: 0; }
  .monitor-board { min-height: calc(100vh - 116px); }
  .monitor-top { padding: 0 17px; }
  .monitor-status time { margin-left: 11px; }
  .monitor-incident { width: calc(100% - 34px); padding-top: 30px; }
  .monitor-incident-head { flex-direction: column; }
  .monitor-details { grid-template-columns: 1fr; gap: 20px; padding: 22px 0; }
  .monitor-address h2 { font-size: 33px; }
  .monitor-address > p { font-size: 16px; }
  .monitor-notes p { font-size: 14px; }
  .monitor-footer { padding: 13px 17px; font-size: 8px; }
}

.status-update { margin-top: 20px; }
.status-buttons { display: grid; grid-template-columns: repeat(auto-fit,minmax(54px,1fr)); gap: 9px; margin-top: 10px; }
.status-buttons button { min-height: 54px; border: 1px solid var(--line); border-radius: 12px; background: #f7f9f8; color: var(--navy); font: inherit; font-weight: 750; cursor: pointer; }
.status-buttons button:hover, .status-buttons button:focus-visible { background: var(--navy); border-color: var(--navy); color: #fff; outline: 2px solid rgba(14,116,124,.25); outline-offset: 2px; }

.dispatch-form { padding: 26px; display: grid; gap: 22px; }
.dispatch-fields { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; }
.dispatch-fields label { display: grid; gap: 7px; color: #3a4b57; font-size: 12px; font-weight: 650; }
.dispatch-fields input, .dispatch-fields textarea { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #cfd9dd; border-radius: 2px; color: var(--ink); font: inherit; background: #fff; }
.dispatch-fields textarea { resize: vertical; }
.dispatch-fields .field-wide { grid-column: 1 / -1; }
.dispatch-assignment { display: grid; grid-template-columns: minmax(220px,.7fr) 1.3fr; gap: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.dispatch-assignment h3 { margin: 0 0 8px; }
.vehicle-check-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.vehicle-choice { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.vehicle-choice input { accent-color: var(--teal); }
.vehicle-choice span,.vehicle-choice strong,.vehicle-choice small { display: block; }
.vehicle-choice small,.incident-address small { color: var(--muted); font-size: 11px; margin-top: 3px; }
.checkbox-line { display: flex; align-items: center; gap: 10px; color: var(--ink); font-size: 13px; }
.checkbox-line input { accent-color: var(--teal); }
@media (max-width: 900px) { .dispatch-fields { grid-template-columns: repeat(2,minmax(0,1fr)); } .dispatch-assignment { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .dispatch-fields,.vehicle-check-list { grid-template-columns: 1fr; } .dispatch-form { padding: 18px; } }

.admin-nav-wrap { background:var(--white); border-bottom:1px solid var(--line); }
.admin-nav { display:flex; align-items:center; gap:8px; min-height:48px; overflow-x:auto; }
.admin-nav a { display:inline-flex; align-items:center; min-height:48px; padding:0 15px; color:var(--muted); font-size:13px; font-weight:600; white-space:nowrap; border-bottom:2px solid transparent; }
.admin-nav a:hover,.admin-nav a.active { color:var(--navy); border-bottom-color:var(--teal); }
.admin-page-head { padding-top:42px; padding-bottom:0; }
.incident-table-heading { align-items:flex-end; gap:20px; }
.incident-actions { display:flex; flex-wrap:wrap; gap:10px; }
.button-secondary { color:var(--navy); background:#e9eff1; border:1px solid #d5e0e4; }
.button-secondary:hover { background:#dce7ea; }
.table-scroll { overflow-x:auto; padding:0; }
.data-table { width:100%; min-width:850px; border-collapse:collapse; text-align:left; }
.tenants-table { min-width:1040px; }
.data-table th { padding:14px 16px; color:var(--muted); font-size:10px; font-weight:700; letter-spacing:.11em; text-transform:uppercase; background:#f7f9fa; border-bottom:1px solid var(--line); }
.data-table td { padding:14px 16px; vertical-align:middle; border-bottom:1px solid #e8edef; font-size:13px; }
.data-table tbody tr:last-child td { border-bottom:0; }
.data-table tbody tr:hover { background:#fbfcfc; }
.data-table td small,.data-table td .table-primary { display:block; }
.data-table td small { margin-top:3px; color:var(--muted); font-size:11px; }
.table-primary { color:var(--navy); font-weight:700; }
.table-actions-head { text-align:right; }
.table-actions { display:flex; justify-content:flex-end; gap:7px; white-space:nowrap; }
.table-actions form { margin:0; }
.catalog-form { padding:26px; }
.form-actions { display:flex; justify-content:flex-end; flex-wrap:wrap; gap:9px; margin-top:8px; }
.catalog-form .form-actions { margin-top:12px; }
.optional { color:var(--muted); font-size:12px; font-weight:400; }
@media (max-width:760px) {
  .admin-page-head { padding-top:30px; }
  .incident-table-heading { align-items:flex-start; flex-direction:column; }
  .incident-actions { width:100%; }
  .incident-actions .button { flex:1; }
  .admin-nav { width:calc(100% - 24px); }
  .admin-nav a { padding:0 11px; }
}
@media (max-width:520px) {
  .incident-actions { flex-direction:column; }
  .incident-actions .button { width:100%; }
  .catalog-form { padding:19px; }
}

.tenant-section { padding-top:12px; border-top:1px solid var(--line); }
.tenant-section h2 { margin-bottom:6px; font-size:21px; }
.tenant-reference { display:grid; grid-template-columns:1fr 1.4fr; gap:5px 14px; padding:14px; color:var(--muted); background:#f6f8f8; border:1px solid var(--line); font-size:12px; }
.tenant-reference code,.tenant-reference strong { color:var(--navy); }
.tenant-reference-fields { display:grid; grid-template-columns:1fr 1.4fr; gap:14px; }
.tenant-reference-fields label { display:grid; gap:7px; color:#3a4b57; font-size:12px; font-weight:650; }
.tenant-reference-fields select { width:100%; min-height:46px; padding:10px 12px; color:var(--ink); background:#fff; border:1px solid #cfd9dd; border-radius:2px; }
.data-source-note { margin-top:13px; color:var(--muted); font-size:11px; }
@media (max-width:560px) { .tenant-reference-fields { grid-template-columns:1fr; } }
