:root {
  --navy-950: #0b1f33;
  --navy-900: #112b46;
  --navy-800: #173b5d;
  --navy-700: #235579;
  --sky-500: #12bfe6;
  --sky-100: #e7f6fc;
  --mint-500: #28a879;
  --mint-100: #e5f7f0;
  --amber-500: #f0aa24;
  --amber-100: #fff4d8;
  --red-500: #c94d56;
  --red-100: #fdebed;
  --ink: #142235;
  --muted: #647386;
  --line: #e2e9f0;
  --canvas: #f5f8fb;
  --surface: #ffffff;
  --shadow: 0 24px 70px rgba(11, 31, 51, .14);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 0%, rgba(32, 164, 217, .12), transparent 32rem),
    linear-gradient(135deg, #f8fbfd, var(--canvas));
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }

.public-shell {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr;
}
body[data-page="register"] .public-shell {
  padding-top: 52px;
}
.public-return-link {
  position: fixed;
  top: 16px;
  left: clamp(18px, 4vw, 56px);
  z-index: 9500;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 9px 13px;
  border: 1px solid rgba(17, 43, 70, .1);
  border-radius: 12px;
  color: var(--navy-800);
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 10px 26px rgba(11, 31, 51, .1);
  font-size: 13px;
  font-weight: 950;
  text-decoration: none;
}
.public-return-link:hover {
  color: var(--sky-500);
  border-color: rgba(32, 164, 217, .28);
}
.public-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px clamp(18px, 4vw, 56px);
}
.public-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.public-brand img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  padding: 0;
  border: 1px solid rgba(17, 43, 70, .12);
  border-radius: 14px;
  background: #061321;
}
.public-brand strong,
.public-brand small { display: block; }
.public-brand strong { color: var(--navy-950); }
.public-brand small { color: var(--muted); font-size: 12px; }
.public-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}
.public-nav a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 13px;
  border-radius: 12px;
  color: var(--navy-800);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}
.public-nav a:hover { background: #fff; }

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 950;
  text-decoration: none;
}
.button.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  box-shadow: 0 14px 30px rgba(17, 43, 70, .18);
}
.button.secondary {
  color: var(--navy-900);
  border-color: var(--line);
  background: #fff;
}
.button.google {
  width: 100%;
  color: var(--navy-900);
  border-color: var(--line);
  background: #fff;
}
.button:disabled,
.button.disabled {
  cursor: not-allowed;
  opacity: .55;
  box-shadow: none;
}

.register-layout {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(360px, .9fr) minmax(320px, 1fr);
  gap: clamp(20px, 4vw, 42px);
  align-items: center;
  padding: 20px 0 54px;
}
.auth-panel,
.preview-panel,
.single-panel,
.choice-card,
.confirm-panel {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, .94);
  box-shadow: var(--shadow);
}
.auth-panel,
.single-panel,
.confirm-panel { padding: clamp(22px, 4vw, 34px); }
.auth-panel h1,
.single-panel h1 {
  margin: 0 0 12px;
  color: var(--navy-950);
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1;
  letter-spacing: 0;
}
.lead {
  margin: 0 0 22px;
  color: #46566a;
  font-size: 17px;
  line-height: 1.6;
}
.separator {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.separator::before,
.separator::after {
  content: "";
  height: 1px;
  background: var(--line);
}
.form-grid {
  display: grid;
  gap: 13px;
}
.form-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.field {
  display: grid;
  gap: 6px;
}
.field span,
.checkbox-field strong {
  color: var(--navy-900);
  font-size: 12px;
  font-weight: 950;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  border: 1px solid #dbe4ed;
  border-radius: 11px;
  color: var(--ink);
  background: #fff;
  outline: none;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--sky-500);
  box-shadow: 0 0 0 3px rgba(32, 164, 217, .1);
}
.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.checkbox-field input { margin-top: 3px; }
.checkbox-field small,
.help-text {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
.checkbox-field a,
.legal-panel a {
  color: var(--navy-800);
  font-weight: 950;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
.checkbox-field a:hover,
.legal-panel a:hover {
  color: var(--sky-500);
}
.notice {
  margin: 14px 0 0;
  padding: 12px;
  border: 1px solid rgba(32, 164, 217, .22);
  border-radius: 12px;
  color: var(--navy-900);
  background: #eef8fc;
  font-size: 13px;
  line-height: 1.45;
}
.notice.error {
  border-color: rgba(201, 77, 86, .28);
  color: #8f2730;
  background: var(--red-100);
}
.notice.success {
  border-color: rgba(40, 168, 121, .22);
  color: #176849;
  background: var(--mint-100);
}
.notice a { overflow-wrap: anywhere; font-weight: 900; }

.loading-status {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 12px;
  margin-top: 2px;
  padding: 12px;
  border: 1px solid rgba(32, 164, 217, .26);
  border-radius: 12px;
  color: var(--navy-900);
  background: #eef8fc;
}
.loading-status strong,
.loading-status span {
  display: block;
  min-width: 0;
}
.loading-status strong {
  margin-bottom: 3px;
  font-size: 13px;
  font-weight: 950;
}
.loading-status span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}
.loading-status > span {
  color: var(--navy-800);
  font-weight: 950;
}
.loading-status i {
  grid-column: 1 / -1;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #dbeaf1;
}
.loading-status b {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--sky-500), var(--mint-500));
  transition: width .22s ease;
}

.preview-panel {
  overflow: hidden;
  padding: 20px;
}
.preview-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.preview-top strong { color: var(--navy-950); }
.preview-top span { color: var(--muted); font-size: 12px; font-weight: 900; }
.preview-devices {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 14px;
  align-items: end;
}
.mini-browser,
.mini-phone {
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 16px 36px rgba(11, 31, 51, .12);
}
.mini-browser {
  overflow: hidden;
  border-radius: 18px;
}
.mini-browser-bar {
  height: 34px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
  background: #f7fafc;
}
.mini-browser-bar span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #d7e0e9;
}
.mini-browser-body {
  display: grid;
  gap: 10px;
  min-height: 310px;
  padding: 14px;
  background: #f4f7fa;
}
.mini-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.mini-stat,
.mini-row,
.mini-phone-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.mini-stat {
  padding: 10px;
}
.mini-stat small,
.mini-row small,
.mini-phone-card small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}
.mini-stat strong {
  display: block;
  margin-top: 5px;
  color: var(--navy-950);
  font-size: 20px;
}
.mini-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 11px;
  color: #314357;
  font-size: 12px;
  font-weight: 850;
}
.mini-phone {
  min-height: 350px;
  padding: 10px;
  border-radius: 28px;
}
.mini-phone::before {
  content: "";
  display: block;
  width: 54px;
  height: 6px;
  margin: 0 auto 11px;
  border-radius: 999px;
  background: #dbe3eb;
}
.mini-phone-screen {
  display: grid;
  gap: 9px;
  min-height: 310px;
  padding: 12px;
  border-radius: 20px;
  background: #f4f7fa;
}
.mini-phone-card {
  padding: 11px;
}
.mini-phone-card strong {
  display: block;
  color: var(--navy-950);
  font-size: 12px;
}
.highlight-list {
  display: grid;
  gap: 9px;
  margin-top: 16px;
}
.highlight-list button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--navy-900);
  background: #fff;
  text-align: left;
  font-weight: 900;
}
.highlight-list button.active {
  color: #fff;
  border-color: var(--navy-900);
  background: var(--navy-900);
}

.preview-stack {
  display: grid;
  gap: 12px;
}
.ruteo-preview-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f4f7fa;
  box-shadow: 0 16px 36px rgba(11, 31, 51, .1);
}
.ruteo-preview-title {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.ruteo-preview-title span {
  color: var(--sky-500);
  font-size: 9px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.ruteo-preview-title strong {
  min-width: 0;
  color: var(--navy-950);
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ruteo-preview-title b,
.live-pill {
  margin-left: auto;
  padding: 5px 7px;
  border-radius: 999px;
  color: #187d59;
  background: var(--mint-100);
  font-size: 9px;
  font-weight: 950;
  white-space: nowrap;
}
.ruteo-admin-preview {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  min-height: 300px;
}
.ruteo-mini-sidebar {
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 12px 8px;
  color: #b8c8d6;
  background:
    radial-gradient(circle at 20% 3%, rgba(32, 164, 217, .26), transparent 36%),
    linear-gradient(180deg, var(--navy-950), #102b44 72%, #133653);
}
.ruteo-mini-brand {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  margin-bottom: 8px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 11px;
  color: #fff;
  background: rgba(255, 255, 255, .08);
  font-size: 11px;
  font-weight: 950;
}
.ruteo-mini-sidebar span {
  padding: 7px 8px;
  border-radius: 8px;
  font-size: 9px;
  font-weight: 850;
}
.ruteo-mini-sidebar span.active {
  color: #fff;
  background: rgba(32, 164, 217, .2);
  box-shadow: inset 3px 0 #5dc8ee;
}
.ruteo-mini-main {
  min-width: 0;
  padding: 10px;
  background: var(--canvas);
}
.ruteo-mini-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: -10px -10px 10px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .93);
}
.ruteo-mini-topbar small,
.panel-label {
  display: block;
  color: var(--sky-500);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.ruteo-mini-topbar strong {
  display: block;
  margin-top: 3px;
  color: var(--navy-950);
  font-size: 14px;
}
.avatar-mini {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--navy-700), var(--sky-500));
  font-size: 9px;
  font-weight: 950;
}
.ruteo-mini-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}
.preview-panel .stat-card,
.preview-panel .panel {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(21, 48, 72, .045);
}
.preview-panel .stat-card {
  min-width: 0;
  padding: 8px;
}
.preview-panel .stat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}
.preview-panel .stat-icon {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 7px;
  color: var(--navy-700);
  background: var(--sky-100);
  font-size: 10px;
  font-weight: 950;
}
.preview-panel .stat-value {
  display: block;
  margin-bottom: 3px;
  color: var(--navy-950);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0;
}
.preview-panel .stat-foot {
  display: block;
  color: var(--muted);
  font-size: 9px;
}
.preview-panel .stat-foot strong { color: var(--mint-500); }
.ruteo-mini-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(160px, .75fr);
  gap: 10px;
  align-items: start;
}
.preview-panel .panel {
  min-width: 0;
  padding: 10px;
}
.preview-panel .panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 9px;
}
.preview-panel h2 {
  margin: 2px 0 0;
  color: var(--navy-950);
  font-size: 13px;
}
.preview-panel .table-wrap {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.preview-panel table {
  width: 100%;
  border-collapse: collapse;
  font-size: 10px;
}
.preview-panel th {
  padding: 7px 8px;
  color: #768493;
  background: #f5f7f9;
  text-align: left;
  font-size: 8px;
  font-weight: 950;
  letter-spacing: .055em;
  text-transform: uppercase;
  white-space: nowrap;
}
.preview-panel td {
  padding: 7px 8px;
  border-top: 1px solid var(--line);
  vertical-align: middle;
  white-space: nowrap;
}
.preview-panel td strong,
.preview-panel td span {
  min-width: 0;
}
.subtext {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
  white-space: nowrap;
}
.route-chip {
  display: inline-flex;
  padding: 4px 7px;
  border-radius: 6px;
  color: var(--navy-800);
  background: #eaf0f5;
  font-size: 9px;
  font-weight: 950;
  white-space: nowrap;
}
.shift-state,
.despatch-status,
.inbox-status {
  display: inline-flex;
  width: fit-content;
  padding: 4px 7px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 950;
  white-space: nowrap;
}
.shift-state.active,
.despatch-status.status-loaded,
.despatch-status.status-delivered,
.despatch-status.status-picked_up,
.inbox-status.status-imported {
  color: #187d59;
  background: var(--mint-100);
}
.despatch-status,
.inbox-status {
  color: var(--muted);
  background: #edf1f4;
}
.despatch-status.status-exception,
.inbox-status.status-unmatched,
.inbox-status.status-failed {
  color: #a73c45;
  background: var(--red-100);
}
.inbox-status.status-manual_review,
.inbox-status.status-partially_matched {
  color: #8b5b08;
  background: var(--amber-100);
}
.ruteo-alert-list {
  display: grid;
  gap: 7px;
}
.ruteo-alert-list .notice {
  margin: 0;
  padding: 9px;
  font-size: 10px;
}
.ruteo-alert-list .notice strong,
.ruteo-alert-list .notice span {
  display: block;
}
.ruteo-alert-list .notice span {
  margin-top: 3px;
}
.danger-notice {
  border-color: rgba(201, 77, 86, .28);
  color: #8f2730;
  background: var(--red-100);
}
.success-notice {
  border-color: rgba(40, 168, 121, .22);
  color: #176849;
  background: var(--mint-100);
}
.ruteo-import-preview {
  display: grid;
  gap: 10px;
  padding: 12px;
  background: var(--canvas);
}
.ruteo-import-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.filter-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--muted);
  background: #fff;
  font-size: 10px;
  font-weight: 900;
}
.filter-button.active {
  color: var(--navy-900);
  background: var(--sky-100);
  border-color: #c5e9f6;
}
.filter-button span {
  min-width: 18px;
  padding: 2px 5px;
  border-radius: 999px;
  background: rgba(15, 23, 42, .08);
  text-align: center;
}
.ruteo-driver-preview {
  display: grid;
  grid-template-columns: 165px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  background: #f4f7fa;
}
.ruteo-phone-device {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(11, 31, 51, .12);
}
.ruteo-phone-device::before {
  content: "";
  display: block;
  width: 52px;
  height: 6px;
  margin: 0 auto 10px;
  border-radius: 999px;
  background: #dbe3eb;
}
.ruteo-phone-screen {
  display: grid;
  gap: 8px;
  min-height: 292px;
  padding: 11px;
  border-radius: 20px;
  background: linear-gradient(180deg, #fff, #f7fafc);
}
.driver-app-head {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.driver-app-head small,
.driver-app-head strong {
  display: block;
}
.driver-app-head small {
  color: var(--sky-500);
  font-size: 9px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.driver-app-head strong {
  margin-top: 4px;
  color: var(--navy-950);
  font-size: 13px;
}
.driver-primary-action {
  min-height: 42px;
  border: 0;
  border-radius: 11px;
  color: #fff;
  background: var(--navy-800);
  font-size: 11px;
  font-weight: 950;
}
.driver-checklist,
.driver-stop-card {
  display: grid;
  gap: 5px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.driver-checklist span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
}
.driver-checklist span::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 5px;
  border-radius: 50%;
  background: currentColor;
}
.driver-checklist .done {
  color: #187d59;
}
.driver-checklist .warn {
  color: #8b5b08;
}
.preview-panel .message-thread-item {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 8px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.preview-panel .message-thread-item.unread {
  box-shadow: inset 3px 0 0 var(--sky-500);
}
.preview-panel .message-thread-avatar {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, var(--navy-700), var(--sky-500));
  font-size: 9px;
  font-weight: 950;
}
.preview-panel .message-thread-main {
  min-width: 0;
}
.preview-panel .message-thread-main strong,
.preview-panel .message-thread-main span,
.preview-panel .message-thread-main small {
  display: block;
}
.preview-panel .message-thread-main strong {
  color: var(--navy-900);
  font-size: 10px;
}
.preview-panel .message-thread-main span {
  margin-top: 3px;
  color: var(--ink);
  font-size: 9px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.preview-panel .message-thread-main small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 8px;
}
.preview-panel .message-thread-meta b {
  display: inline-flex;
  min-width: 18px;
  justify-content: center;
  padding: 2px 5px;
  border-radius: 999px;
  color: #fff;
  background: var(--sky-500);
  font-size: 9px;
}
.driver-stop-card strong,
.driver-stop-card small {
  display: block;
}
.driver-stop-card strong {
  color: var(--navy-900);
  font-size: 11px;
}
.driver-stop-card small {
  color: var(--muted);
  font-size: 9px;
}
.ruteo-driver-side {
  display: grid;
  gap: 8px;
}
.preview-panel .activity-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
}
.preview-panel .activity-box.is-active {
  border-color: #bfe8d8;
  background: var(--mint-100);
}
.preview-panel .activity-box strong,
.preview-panel .activity-box span {
  display: block;
}
.preview-panel .activity-box strong {
  margin-bottom: 4px;
  color: var(--navy-900);
  font-size: 11px;
}
.preview-panel .activity-box span {
  color: var(--muted);
  font-size: 9px;
}
.preview-panel .activity-box b {
  color: var(--navy-800);
  font-size: 13px;
  white-space: nowrap;
}

.single-layout {
  width: min(780px, calc(100% - 36px));
  margin: 0 auto;
  padding: 30px 0 58px;
}
.single-layout.legal-layout {
  width: min(920px, calc(100% - 36px));
}
.legal-panel {
  display: grid;
  gap: 18px;
}
.legal-panel h1 {
  margin-bottom: -6px;
}
.legal-panel .eyebrow {
  margin: 0 0 -8px;
  color: var(--sky-500);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.legal-sections {
  display: grid;
  gap: 12px;
}
.legal-sections section {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.legal-sections h2 {
  margin: 0 0 7px;
  color: var(--navy-950);
  font-size: 18px;
}
.legal-sections p {
  margin: 0;
  color: #46566a;
  line-height: 1.65;
}
.referral-options,
.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.referral-options {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.option-button {
  min-height: 58px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--navy-900);
  background: #fff;
  font-weight: 950;
}
.option-button.active,
.option-button:hover {
  border-color: var(--navy-900);
  background: var(--sky-100);
}
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.choice-card {
  display: grid;
  align-content: space-between;
  gap: 18px;
  min-height: 230px;
  padding: 24px;
  box-shadow: 0 14px 34px rgba(17, 43, 70, .08);
}
.choice-card h2 {
  margin: 0 0 8px;
  color: var(--navy-950);
  font-size: 26px;
}
.choice-card p {
  margin: 0;
  color: #4f5f72;
  line-height: 1.6;
}
.choice-help {
  margin-top: 18px;
  text-align: center;
}
.choice-help a {
  color: var(--navy-800);
  font-weight: 950;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
.choice-help a:hover { color: var(--sky-500); }
.company-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}
.result-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}
.company-result {
  width: 100%;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--ink);
  background: #fff;
  text-align: left;
}
.company-result:hover {
  border-color: var(--sky-500);
  box-shadow: 0 10px 24px rgba(32, 164, 217, .1);
}
.company-result-main,
.company-result-meta {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.company-result-main {
  flex: 1 1 190px;
}
.company-result-meta {
  flex: 2 1 320px;
}
.company-result-main strong,
.company-result-main small,
.company-result-meta small {
  display: block;
}
.company-result-main strong {
  color: var(--navy-950);
}
.company-result-main small,
.company-result-meta small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}
.company-result-meta b {
  margin-right: 6px;
  color: var(--navy-800);
  font-size: 10px;
  text-transform: uppercase;
}
.company-result > b {
  align-self: center;
  color: var(--sky-500);
  white-space: nowrap;
}
.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}
.detail-item {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.detail-item small,
.choice-card small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}
.detail-item strong {
  display: block;
  margin-top: 5px;
  color: var(--navy-950);
}
.preset-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.preset-row button {
  min-width: 54px;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--navy-900);
  background: #fff;
  font-weight: 950;
}
.preset-row button.active {
  color: #fff;
  border-color: var(--navy-900);
  background: var(--navy-900);
}

@media (max-width: 900px) {
  .register-layout,
  .preview-devices,
  .choice-grid { grid-template-columns: 1fr; }
  .register-layout { align-items: start; }
  .mini-phone { width: min(320px, 100%); justify-self: center; }
  .ruteo-mini-columns,
  .ruteo-driver-preview { grid-template-columns: 1fr; }
  .ruteo-phone-device { width: min(300px, 100%); justify-self: center; }
}

@media (max-width: 640px) {
  .public-header { align-items: flex-start; }
  .public-brand small { display: none; }
  .public-nav { flex-wrap: wrap; justify-content: flex-end; }
  .auth-panel,
  .single-panel,
  .confirm-panel,
  .preview-panel { border-radius: 16px; padding: 20px; }
  .form-grid.two,
  .mini-stat-grid,
  .ruteo-mini-stats,
  .referral-options,
  .detail-grid,
  .company-search-row { grid-template-columns: 1fr; }
  .company-result {
    align-items: flex-start;
    flex-direction: column;
  }
  .company-result > b { align-self: flex-start; }
  .ruteo-admin-preview { grid-template-columns: 1fr; }
  .ruteo-mini-sidebar {
    grid-template-columns: auto repeat(4, minmax(0, 1fr));
    align-items: center;
  }
  .ruteo-mini-brand { margin: 0; }
  .ruteo-mini-sidebar span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .auth-panel h1,
  .single-panel h1 { font-size: 34px; }
}
