:root {
  --bg: #f6f7f9;
  --paper: #ffffff;
  --paper-soft: #fafbfc;
  --text: #111827;
  --muted: #667085;
  --line: #e3e8ef;
  --line-strong: #cfd8e3;
  --brand: #25385f;
  --brand-soft: #eef3ff;
  --blue: #2f63d6;
  --rescue-menu-blue: #121e36;
  --sage: #e6f2ea;
  --sage-text: #245b3f;
  --raspberry: #faedf2;
  --raspberry-text: #96314f;
  --slate-blue: #eef2f6;
  --slate-blue-text: #425466;
  --lavender: #eff1ff;
  --lavender-text: #4652a3;
  --apricot: #fff3df;
  --apricot-text: #8a520f;
  --green: #315f48;
  --green-soft: #eaf3ee;
  --amber: #8a520f;
  --amber-soft: #fff3df;
  --red: #8a2f46;
  --red-soft: #f8ecef;
  --shadow: 0 18px 42px rgba(17, 24, 39, 0.07);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  line-height: 1.45;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.demo-banner {
  padding: 8px 16px;
  color: #6f4c05;
  background: #fff8e6;
  border-bottom: 1px solid #f0dcad;
  font-size: 13px;
  font-weight: 650;
  text-align: center;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #fff;
  background: var(--brand);
  border-radius: 11px;
  font-weight: 850;
  letter-spacing: -0.04em;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 760;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.btn:hover:not(:disabled) {
  transform: translateY(-1px);
}

.btn:disabled {
  opacity: 0.58;
  cursor: default;
}

.btn-primary {
  color: #fff;
  background: var(--brand);
  box-shadow: 0 10px 20px rgba(37, 56, 95, 0.14);
}

.btn-secondary {
  color: var(--brand);
  background: var(--paper);
  border-color: var(--line);
}

.btn-secondary:hover {
  border-color: var(--line-strong);
}

.btn-danger {
  color: #5f4754;
  background: #f3ecef;
  border-color: #d9c8d0;
}

.btn-danger:hover:not(:disabled),
.btn-danger:focus-visible:not(:disabled) {
  color: #49343f;
  background: #eadde3;
  border-color: #c9b1bc;
  outline: none;
}

.login-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at top left, rgba(47, 99, 214, 0.08), transparent 30%),
    linear-gradient(180deg, #fbfcfe, #eef2f6);
}

.login-wrap {
  width: min(100%, 430px);
}

.login-card {
  padding: 34px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.brand-block {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 30px;
}

.brand-block h1 {
  margin: 0 0 3px;
  font-size: 32px;
  letter-spacing: -0.04em;
}

.brand-block p,
.page-title p,
.site-hero p,
.block-heading p,
.site-card-title p,
.device-head p,
.device-type {
  margin: 0;
  color: var(--muted);
}

.login-form {
  display: grid;
  gap: 16px;
}

.login-form[hidden],
.login-links[hidden] {
  display: none;
}

.login-form label {
  display: grid;
  gap: 8px;
  color: #344054;
  font-size: 14px;
  font-weight: 720;
}

.login-form input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: none;
}

.login-form input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(47, 99, 214, 0.1);
}

.login-links {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
}

.login-links button,
.login-links a {
  padding: 0;
  color: var(--brand);
  background: transparent;
  border: 0;
  font-weight: 720;
}

.demo-hint {
  margin: 26px 0 0;
  padding: 12px 14px;
  color: var(--muted);
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  font-size: 14px;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 74px;
  padding: 0 clamp(18px, 4vw, 48px);
  background: rgba(246, 247, 249, 0.88);
  border-bottom: 1px solid rgba(227, 232, 239, 0.85);
  backdrop-filter: blur(14px);
}

/* Authenticated application sidebar */
.has-app-sidebar {
  --app-sidebar-width: 286px;
  padding-left: var(--app-sidebar-width);
  transition: padding-left 200ms ease;
}

.has-app-sidebar > .app-header { justify-content: flex-end; }
.has-app-sidebar > .app-header > .brand { display: none; }

.app-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  display: flex;
  width: var(--app-sidebar-width);
  flex-direction: column;
  padding: 18px 14px 16px;
  color: #fff;
  background: var(--rescue-menu-blue);
  box-shadow: 10px 0 30px rgba(21, 37, 70, 0.12);
  transition: width 200ms ease, transform 200ms ease;
}

.app-sidebar-brand { display: flex; min-height: 66px; align-items: center; gap: 14px; padding: 0 10px 18px; }
.app-sidebar-brand-copy { display: grid; min-width: 118px; overflow: visible; line-height: 1.05; white-space: nowrap; }
.app-sidebar-brand strong { font-size: 21px; font-weight: 800; letter-spacing: -.04em; white-space: nowrap; }
.app-sidebar-brand strong span { color: #16b9ff; }
.app-sidebar-brand small { margin-top: 5px; color: rgba(255,255,255,.72); font-size: 13px; font-weight: 650; }
.app-sidebar-logo-tile { display: grid; width: 46px; height: 46px; flex: 0 0 46px; place-items: center; background: linear-gradient(145deg, #18baff, #008fdf); border-radius: 9px; box-shadow: 0 7px 18px rgba(0,157,232,.2); }
.app-sidebar-logo { display: block; width: 29px; height: 34px; }
.app-sidebar-toggle { display: grid; width: 26px; height: 32px; margin-left: auto; padding: 0; flex: 0 0 26px; place-items: center; color: rgba(255,255,255,.82); background: transparent; border: 0; }
.app-sidebar-toggle:hover { color: #fff; }
.app-sidebar-toggle:focus-visible, .app-sidebar-link:focus-visible { outline: 3px solid rgba(255,255,255,.55); outline-offset: 2px; }
.app-sidebar-toggle svg, .app-sidebar-link svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.app-sidebar-nav { display: grid; gap: 7px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.13); }
.app-sidebar-link { position: relative; display: flex; min-height: 51px; align-items: center; gap: 15px; padding: 0 17px; color: rgba(255,255,255,.76); border-radius: 10px; font-size: 15px; font-weight: 720; transition: color 150ms ease, background 150ms ease, box-shadow 150ms ease; }
.app-sidebar-link[hidden] { display: none; }
.app-sidebar-link svg { flex: 0 0 21px; }
.app-sidebar-link > span:not(.app-sidebar-external) { overflow: hidden; white-space: nowrap; }
.app-sidebar-link:hover { color: #fff; background: rgba(255,255,255,.09); }
.app-sidebar-link.is-active { color: #fff; background: linear-gradient(135deg, #164f7d, #165b8f); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 8px 20px rgba(7,25,45,.16); }
.app-sidebar-secondary { margin-top: auto; padding-top: 14px; }
.app-sidebar-external { margin-left: auto; font-size: 13px; opacity: .7; }
.app-sidebar-administration-toggle { width: 100%; border: 0; background: transparent; font-family: inherit; text-align: left; cursor: pointer; }
.app-sidebar-administration-toggle:focus-visible { outline: 3px solid rgba(255,255,255,.55); outline-offset: 2px; }
.app-sidebar-administration-toggle .app-sidebar-submenu-chevron { width: 16px; height: 16px; flex: 0 0 16px; margin-left: auto; transition: transform 150ms ease; }
.app-sidebar-administration-toggle[aria-expanded="true"] .app-sidebar-submenu-chevron { transform: rotate(180deg); }
.app-sidebar-submenu { display: grid; gap: 4px; margin-top: 7px; padding-left: 20px; }
.app-sidebar-submenu[hidden] { display: none; }
.app-sidebar-administration[hidden], .has-app-sidebar > main[hidden] { display: none; }
.app-sidebar-submenu .app-sidebar-link { min-height: 43px; font-size: 14px; }
.app-sidebar-collapsed .app-sidebar-submenu,
.app-sidebar-collapsed .app-sidebar-submenu-chevron { display: none; }

.app-sidebar-collapsed { --app-sidebar-width: 76px; }
.app-sidebar-collapsed .app-sidebar { width: 76px; }
.app-sidebar-collapsed .app-sidebar-brand-copy,
.app-sidebar-collapsed .app-sidebar-link > span { display: none; }
.app-sidebar-collapsed .app-sidebar-brand { min-height: 88px; flex-direction: column; justify-content: center; gap: 8px; padding: 0 5px 12px; }
.app-sidebar-collapsed .app-sidebar-logo-tile { display: grid; }
.app-sidebar-collapsed .app-sidebar-toggle { width: 26px; height: 28px; margin: 0; transform: none; }
.app-sidebar-collapsed .app-sidebar-link { justify-content: center; padding-inline: 0; }

@media (max-width: 860px) {
  .has-app-sidebar { padding-left: 0; }
  .app-sidebar { width: 286px; transform: translateX(-100%); }
  .app-sidebar-brand { justify-content: initial; }
  .app-sidebar-brand-copy, .app-sidebar-logo-tile, .app-sidebar-nav { visibility: hidden; opacity: 0; transition: opacity 150ms ease; }
  .app-sidebar-toggle { position: absolute; top: 10px; left: calc(100% + 12px); visibility: visible; width: 44px; height: 44px; margin: 0; color: var(--rescue-menu-blue); background: #fff; border: 1px solid rgba(22, 79, 125, .16); border-radius: 10px; box-shadow: 0 5px 16px rgba(17, 43, 72, .14); transform: none; }
  .app-sidebar-toggle:hover, .app-sidebar-toggle:active, .app-sidebar-toggle:focus { color: var(--rescue-menu-blue); }
  .app-sidebar-open .app-sidebar { transform: translateX(0); box-shadow: 18px 0 45px rgba(17,24,39,.28); }
  .app-sidebar-open .app-sidebar-brand { justify-content: initial; }
  .app-sidebar-open .app-sidebar-brand-copy, .app-sidebar-open .app-sidebar-logo-tile, .app-sidebar-open .app-sidebar-nav { visibility: visible; opacity: 1; }
  .app-sidebar-open .app-sidebar-toggle { position: static; width: 26px; height: 32px; margin-left: auto; color: rgba(255,255,255,.82); background: transparent; border: 0; border-radius: 0; box-shadow: none; }
  .has-app-sidebar .app-header { padding-left: 74px; }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand strong {
  font-size: 20px;
  letter-spacing: -0.03em;
}

.user-area {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.app-shop-label-short {
  display: none;
}

.avatar {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: #fff;
  background: var(--brand);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 850;
}

.logout {
  min-height: 34px;
  padding: 0 12px;
  color: var(--muted);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 760;
}

.user-account-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  border-radius: 999px;
}

.user-account-link:hover {
  color: var(--brand);
}

.user-account-link:focus-visible {
  outline: 3px solid rgba(47, 99, 214, 0.28);
  outline-offset: 3px;
}

.page {
  width: min(1280px, calc(100% - 36px));
  margin: 0 auto;
  padding: 34px 0 64px;
}

.page-title {
  margin-bottom: 22px;
}

.dashboard-title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.dashboard-title-row .page-title {
  margin-bottom: 0;
}

.page-title h1,
.site-hero h1 {
  margin: 0 0 6px;
  font-size: clamp(34px, 5vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.sites-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.site-card,
.simple-block,
.site-hero,
.status-card,
.device-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 26px rgba(17, 24, 39, 0.045);
}

.site-card {
  display: grid;
  gap: 12px;
  min-height: 132px;
  padding: 14px;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.site-card:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  box-shadow: 0 14px 32px rgba(17, 24, 39, 0.08);
}

.box-card {
  cursor: default;
}

.site-summary-card {
  position: relative;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
}

.site-summary-card::after {
  position: absolute;
  top: 16px;
  right: 16px;
  color: var(--muted);
  content: "→";
  font-size: 16px;
  font-weight: 750;
  line-height: 1;
  transition: transform 150ms ease, color 150ms ease;
}

.site-summary-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: 0 16px 34px rgba(17, 24, 39, 0.1);
}

.site-summary-card:hover::after,
.site-summary-card:focus-visible::after {
  color: var(--text);
  transform: translateX(2px);
}

.site-summary-card:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(17, 24, 39, 0.1);
}

.site-summary-id {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.rescuelan-card-park {
  width: fit-content;
  margin: 7px 0 0;
  padding: 3px 8px;
  color: var(--slate-blue-text);
  background: var(--slate-blue);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 720;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.rescuelans-toolbar {
  display: grid;
  grid-template-columns: minmax(190px, .55fr) minmax(240px, 1fr) auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 10px;
  padding: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.rescuelans-filter { display: grid; gap: 6px; color: var(--muted); font-size: 12px; font-weight: 760; }
.rescuelans-filter select,
.rescuelans-search input { width: 100%; min-height: 42px; padding: 0 12px; color: var(--text); background: #fff; border: 1px solid var(--line-strong); border-radius: 10px; outline: none; }
.rescuelans-filter select:focus,
.rescuelans-search input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47,99,214,.1); }
.rescuelans-view-switch { display: inline-flex; padding: 3px; background: var(--paper-soft); border: 1px solid var(--line); border-radius: 11px; }
.rescuelans-view-switch button { min-height: 34px; padding: 0 12px; color: var(--muted); background: transparent; border: 0; border-radius: 8px; font-size: 13px; font-weight: 760; }
.rescuelans-view-switch button[aria-pressed="true"] { color: var(--brand); background: #fff; box-shadow: 0 2px 7px rgba(17,24,39,.08); }
.rescuelans-result-count { min-height: 20px; margin: 0 0 12px; color: var(--muted); font-size: 13px; font-weight: 700; }
.rescuelans-grid.is-list { grid-template-columns: 1fr; }
.rescuelans-grid.is-list .site-summary-card { grid-template-columns: minmax(260px, 1fr) minmax(210px, .65fr); align-items: center; min-height: 0; padding: 16px 20px; }
.rescuelans-grid.is-list .site-card-title { min-height: 0; }
.rescuelans-grid.is-list .site-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }

@media (max-width: 760px) {
  .rescuelans-toolbar { grid-template-columns: 1fr; align-items: stretch; }
  .rescuelans-view-switch { width: 100%; }
  .rescuelans-view-switch button { flex: 1; }
  .rescuelans-grid.is-list .site-summary-card { grid-template-columns: 1fr; }
}

.site-summary-card .site-card-title {
  padding-right: 28px;
}

.site-summary-status {
  width: fit-content;
  min-height: 24px;
  gap: 5px;
  padding: 0 8px;
  font-size: 12px;
  font-weight: 760;
}

.site-summary-statuses {
  display: flex;
  width: fit-content;
  max-width: 100%;
  align-items: stretch;
  gap: 7px;
  margin-top: 10px;
  white-space: nowrap;
}

.site-summary-status-item {
  display: grid;
  grid-template-rows: 10px 24px;
  gap: 4px;
  align-items: center;
  justify-items: start;
}

.site-summary-status-label {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
}

.site-summary-status-separator {
  align-self: flex-end;
  width: 1px;
  height: 16px;
  flex: 0 0 auto;
  margin: 0 1px 4px;
  overflow: hidden;
  color: transparent;
  background: var(--line);
  border-radius: 999px;
  font-size: 0;
}

.site-summary-status::before {
  width: 6px;
  height: 6px;
  background: currentColor;
  border-radius: 50%;
  content: "";
}

.site-summary-status.provisioning::before {
  animation: connection-status-pulse 1.56s ease-in-out infinite;
}

@keyframes connection-status-pulse {
  0%, 100% { opacity: 0.25; }
  50% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .site-summary-status.provisioning::before { animation: none; }
}

.box-overview-statuses {
  gap: 6px;
}

.box-overview-statuses .site-summary-status-item {
  grid-template-rows: 10px 32px;
}

.wakeup-progress {
  width: calc(100% + 3px);
  height: 3px;
  margin-top: -3px;
  overflow: hidden;
  background: var(--line);
  border-radius: 999px;
}

.wakeup-progress[hidden] { display: none; }

.wakeup-progress > span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--green);
  border-radius: inherit;
}

.box-overview-statuses .site-summary-status-separator {
  margin-bottom: 8px;
  visibility: hidden;
}

.site-summary-action-item {
  margin-left: 14px;
}

.site-status-action {
  min-height: 32px;
  padding: 0 16px;
  color: var(--green);
  background: var(--paper);
  border: 1px solid var(--green);
  border-radius: 10px;
  box-shadow: none;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  transition: color 150ms ease, background-color 150ms ease, border-color 150ms ease;
}

.site-status-action:hover:not(:disabled) {
  color: var(--sage-text);
  background: var(--green-soft);
  border-color: var(--sage-text);
  transform: none;
}

.site-status-action:active:not(:disabled) {
  background: var(--sage);
  transform: none;
}

.site-status-action:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.site-status-action:disabled {
  color: var(--muted);
  background: var(--paper-soft);
  border-color: var(--line-strong);
  box-shadow: none;
  opacity: 0.55;
  cursor: not-allowed;
}

.inventory-launch-button {
  min-height: 36px;
  padding-inline: 18px;
}

.inventory-launch-control {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.inventory-update-status {
  min-width: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
}

.inventory-update-status.success {
  color: var(--green);
}

.inventory-update-status.error {
  color: var(--raspberry-text);
}

.site-summary-card .site-facts {
  grid-template-columns: 1fr;
}

.box-detail-content[hidden],
.box-inventory-empty[hidden],
.box-devices-table-wrap[hidden] {
  display: none;
}

.box-detail-content .simple-block {
  margin-bottom: 18px;
}

.box-devices-table th:last-child,
.box-devices-table td:last-child {
  width: 1%;
  white-space: nowrap;
}

.box-inventory-empty {
  padding: 20px;
  color: var(--muted);
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  font-weight: 760;
  text-align: center;
}

.box-devices-toolbar {
  justify-content: space-between;
}

.box-devices-toolbar[hidden],
#box-device-filters[hidden] {
  display: none;
}

.box-device-addresses {
  display: grid;
  gap: 4px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.box-modal-body {
  grid-template-columns: 1fr;
}

.box-modal-body > p {
  grid-column: 1 / -1;
  margin: 0;
  line-height: 1.6;
}

.connection-action-log {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.ssh-modal {
  --ssh-modal-gutter: clamp(30px, 3vw, 40px);
  padding: var(--ssh-modal-gutter);
}

.properties-dialog.ssh-dialog {
  display: flex;
  flex-direction: column;
  width: min(1240px, calc(100vw - var(--ssh-modal-gutter) - var(--ssh-modal-gutter)));
  height: min(840px, calc(100vh - var(--ssh-modal-gutter) - var(--ssh-modal-gutter)));
  height: min(840px, calc(100dvh - var(--ssh-modal-gutter) - var(--ssh-modal-gutter)));
  max-height: calc(100vh - var(--ssh-modal-gutter) - var(--ssh-modal-gutter));
  max-height: calc(100dvh - var(--ssh-modal-gutter) - var(--ssh-modal-gutter));
}

.ssh-header {
  flex: 0 0 auto;
}

.ssh-session {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #10151f;
}

.ssh-session-state {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px;
  color: #e8edf7;
  text-align: center;
  background: #10151f;
}

.ssh-session-state[hidden] {
  display: none;
}

.ssh-session-state p {
  max-width: 560px;
  margin: 0;
  font-size: 16px;
  font-weight: 760;
  line-height: 1.5;
}

.ssh-session-loader {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top-color: #6fa0ff;
  border-radius: 50%;
  animation: ssh-loader-spin 0.8s linear infinite;
}

.ssh-session[data-state="error"] .ssh-session-loader,
.ssh-session[data-state="closed"] .ssh-session-loader,
.ssh-session[data-state="connected"] .ssh-session-loader {
  display: none;
}

.ssh-session[data-state="error"] .ssh-session-state {
  color: #ffd8d8;
}

.ssh-terminal-host {
  width: 100%;
  height: 100%;
  padding: 10px;
  visibility: hidden;
}

.ssh-session[data-state="shell"] .ssh-terminal-host {
  visibility: visible;
}

.ssh-terminal-host .xterm,
.ssh-terminal-host .xterm-screen,
.ssh-terminal-host .xterm-viewport {
  height: 100%;
}

.ssh-terminal-host .xterm-viewport {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.ssh-terminal-host .xterm-viewport::-webkit-scrollbar {
  width: 0;
  height: 0;
}

@keyframes ssh-loader-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 680px) {
  .ssh-terminal-host {
    padding: 8px;
  }
}

.box-inventory-heading .block-heading {
  margin-bottom: 16px;
}

.box-inventory-heading > .btn {
  flex: 0 0 auto;
  margin-right: 6px;
}

.box-devices-table .table-actions,
.box-device-card .device-actions {
  flex-wrap: nowrap;
}

.box-device-card .device-actions > button {
  min-width: 0;
  flex: 1 1 0;
}

.site-hero.box-overview-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, 0.95fr);
  gap: 28px;
  align-items: stretch;
}

.box-overview-main {
  align-content: start;
  padding-right: 28px;
}

.box-last-connection {
  margin-top: 3px !important;
  font-size: 13px;
  font-weight: 700;
}

.box-last-connection strong {
  color: var(--text);
  font-weight: 800;
}

.box-information-link {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 1;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 10px;
  font-size: 19px;
  font-weight: 800;
  line-height: 1;
  transition: color 170ms ease, background-color 170ms ease, transform 170ms ease;
}

.box-information-link:hover,
.box-information-link:focus-visible {
  color: var(--brand);
  background: var(--brand-soft);
  transform: translateX(2px);
}

.box-information-link:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.box-name-link {
  border-radius: 7px;
  transition: color 160ms ease;
}

.box-name-link:hover {
  color: var(--blue);
}

.box-name-link:focus-visible {
  outline: 3px solid rgba(47, 99, 214, 0.22);
  outline-offset: 4px;
}

.box-connectivity {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 32px 36px 0 24px;
  border-left: 1px solid var(--line);
}

.box-connectivity h2 {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.box-connectivity-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.box-connectivity-item {
  min-width: 0;
  padding: 11px;
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: 13px;
}

.box-connectivity-item > span {
  display: block;
  min-height: 30px;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.box-connectivity-item > strong {
  display: block;
  overflow: hidden;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.box-connectivity-progress {
  height: 7px;
  margin-top: 9px;
  overflow: hidden;
  background: var(--line);
  border-radius: 999px;
}

.box-connectivity-progress > span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--sage-text);
  border-radius: inherit;
  transition: width 180ms ease;
}

.box-connectivity-progress.is-ok > span {
  background: var(--sage-text);
}

.box-connectivity-progress.is-warning > span {
  background: var(--apricot-text);
}

.box-connectivity-progress.is-critical > span {
  background: var(--raspberry-text);
}

.site-card-title,
.site-hero,
.device-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.site-card-title {
  display: grid;
  justify-content: start;
  gap: 4px;
  min-height: 88px;
}

.site-card-title h2,
.block-heading h2,
.device-head h3 {
  margin: 0 0 4px;
  letter-spacing: -0.03em;
}

.site-card-title h2 {
  font-size: 18px;
}

.status-badge,
.status-pill,
.device-state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.site-hero-main {
  display: grid;
  justify-items: start;
  gap: 8px;
}

.connectivity-summary {
  display: grid;
  justify-items: start;
  gap: 6px;
  min-width: 170px;
  padding-left: 18px;
  color: var(--muted);
  border-left: 1px solid var(--line);
}

.connectivity-summary[hidden] {
  display: none;
}

.connectivity-summary h2 {
  margin: 0 0 2px;
  color: var(--text);
  font-size: 15px;
  font-weight: 820;
  letter-spacing: 0;
}

.connectivity-summary-line {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 5px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
}

.connectivity-summary-line strong {
  color: var(--sage-text);
  font-size: 14px;
  font-weight: 850;
  letter-spacing: 0;
}

.connectivity-summary-line.warning strong {
  color: var(--apricot-text);
}

.connectivity-summary-line.critical strong {
  color: var(--raspberry-text);
}

.connectivity-summary-line[hidden] {
  display: none;
}

.primary-status {
  width: fit-content;
  font-size: 13px;
}

.secondary-status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 24px;
  padding: 0 8px;
  color: var(--slate-blue-text);
  background: var(--slate-blue);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 760;
  white-space: nowrap;
}

.secondary-status.backup-active {
  color: var(--lavender-text);
  background: var(--lavender);
  border-color: #d8dcfb;
}

.secondary-status.backup-available {
  color: var(--slate-blue-text);
  background: var(--slate-blue);
  border-color: #dce4ec;
}

.secondary-status.no-backup {
  color: var(--apricot-text);
  background: var(--apricot);
  border-color: #ead9bd;
}

.primary-status.online {
  color: var(--sage-text);
  background: var(--sage);
  border-color: #cfe4d6;
}

.primary-status.offline {
  color: var(--raspberry-text);
  background: var(--raspberry);
  border-color: #efd2dc;
}

.primary-status.provisioning {
  color: var(--lavender-text);
  background: var(--lavender);
  border-color: #d8dcfb;
}

.primary-status.emergency {
  color: var(--apricot-text);
  background: var(--apricot);
  border-color: #ead9bd;
}

.primary-status.unknown {
  color: var(--slate-blue-text);
  background: var(--slate-blue);
  border-color: var(--line);
}

.primary-status.available {
  color: var(--slate-blue-text);
  background: var(--slate-blue);
  border-color: #dce4ec;
}

.online,
.status-badge.active,
.status-pill.active,
.device-state.online {
  color: var(--sage-text);
  background: var(--sage);
}

.rescue {
  color: var(--slate-blue-text);
  background: var(--slate-blue);
}

.waking {
  color: var(--lavender-text);
  background: var(--lavender);
}

.offline,
.device-state.offline {
  color: var(--raspberry-text);
  background: var(--raspberry);
}

.device-state.stale {
  color: var(--slate-blue-text);
  background: var(--slate-blue);
}

.site-facts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}

.box-card .site-facts {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.box-card .site-facts > :first-child {
  grid-column: 1 / -1;
}

.site-facts div,
.status-card {
  padding: 9px 10px;
  background: var(--paper-soft);
  box-shadow: none;
}

.site-facts span,
.status-card span {
  display: block;
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
}

.site-facts strong,
.status-card strong {
  font-size: 15px;
}

.card-actions,
.actions,
.device-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.box-card-actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 2px;
  border-top: 1px solid var(--line);
}

.box-unpair-button {
  padding: 6px 0 0;
  color: var(--muted);
  background: transparent;
  border: 0;
  font-size: 12px;
  font-weight: 760;
}

.box-unpair-button:hover {
  color: var(--raspberry-text);
}

.dashboard-state {
  display: grid;
  min-height: 210px;
  place-items: center;
  align-content: center;
  gap: 14px;
  padding: 32px;
  color: var(--muted);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 26px rgba(17, 24, 39, 0.045);
  text-align: center;
}

.dashboard-state[hidden] {
  display: none;
}

.dashboard-state h2,
.dashboard-state p {
  margin: 0;
}

.dashboard-state h2,
.dashboard-state strong {
  color: var(--text);
}

.dashboard-state p {
  max-width: 580px;
}

.dashboard-loading {
  min-height: 130px;
  font-weight: 760;
}

.dashboard-loading,
.account-loading,
.account-requests-loading {
  visibility: hidden;
  animation: rescue-loading-reveal 0s linear 250ms forwards;
}

@keyframes rescue-loading-reveal {
  to { visibility: visible; }
}

.dashboard-error {
  color: var(--raspberry-text);
  background: var(--raspberry);
  border-color: #edcbd7;
}

.back-link {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--brand);
  font-weight: 760;
}

.back-link-arrow::before {
  margin-right: 8px;
  content: "\2190";
}

.site-page {
  max-width: 1120px;
}

.site-hero {
  align-items: center;
  padding: 24px;
  margin-bottom: 20px;
}

.simple-block {
  padding: 22px;
  margin-top: 18px;
}

.access-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 28px;
  margin-bottom: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 14px 34px rgba(17, 24, 39, 0.06);
}

.access-card h2 {
  margin: 0 0 5px;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.06;
  letter-spacing: -0.045em;
}

.access-card p {
  margin: 0;
  color: var(--muted);
}

.access-label {
  margin-bottom: 10px !important;
  color: var(--muted) !important;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.access-button {
  min-width: 210px;
  min-height: 48px;
}

.backup-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin-top: 14px;
  padding: 0 11px;
  color: var(--lavender-text);
  background: var(--lavender);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
}

.backup-badge[hidden] {
  display: none;
}

.access-online,
.access-active {
  border-color: #d7e7dd;
  background: linear-gradient(180deg, #ffffff, #f4fbf8);
}

.access-rescue {
  border-color: #ead9bd;
  background: linear-gradient(180deg, #ffffff, #fff9ee);
}

.access-waking {
  border-color: #d8dcfb;
  background: linear-gradient(180deg, #ffffff, #f7f8ff);
}

.access-offline {
  border-color: #efd4dc;
  background: linear-gradient(180deg, #ffffff, #fff7f9);
}

.backup-progress {
  padding: 22px;
  margin-top: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 26px rgba(17, 24, 39, 0.045);
}

.backup-progress[hidden] {
  display: none;
}

.backup-steps {
  display: grid;
  gap: 10px;
}

.backup-step {
  display: grid;
  grid-template-columns: 14px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: 13px;
}

.backup-step span {
  width: 10px;
  height: 10px;
  background: #cbd5e1;
  border-radius: 50%;
}

.backup-step strong {
  font-size: 14px;
}

.backup-step small {
  color: var(--muted);
  font-weight: 700;
}

.backup-step.current {
  border-color: #d8dcfb;
  background: var(--lavender);
}

.backup-step.current span {
  background: var(--lavender-text);
}

.backup-step.done span {
  background: var(--sage-text);
}

.block-heading {
  margin-bottom: 16px;
}

.accordion-section {
  padding-top: 18px;
}

.accordion-title {
  display: flex;
  width: 100%;
  align-items: center;
  padding: 0;
  color: var(--text);
  background: transparent;
  border: 0;
  font-size: 24px;
  font-weight: 850;
  letter-spacing: -0.03em;
  text-align: left;
}

.accordion-title:hover {
  color: var(--brand);
}

.accordion-description {
  margin: 6px 0 0;
  color: var(--muted);
}

.accordion-description + .accordion-description {
  margin-top: 6px;
}

.accordion-panel {
  display: grid;
  grid-template-rows: 0fr;
  margin-top: 0;
  opacity: 0;
  transition: grid-template-rows 220ms ease, margin-top 220ms ease, opacity 180ms ease;
}

.accordion-panel.open {
  grid-template-rows: 1fr;
  margin-top: 16px;
  opacity: 1;
}

.accordion-content {
  min-height: 0;
  overflow: hidden;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.actions .reboot-link {
  min-height: 38px;
  padding: 0 4px;
  color: #5f4754;
  background: transparent;
  border: 0;
  font-weight: 700;
}

#device-config-message {
  margin-top: -8px;
}

.quiet-note {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.device-card {
  padding: 18px;
}

.device-head {
  margin-bottom: 12px;
}

.device-head h3 {
  font-size: 18px;
}

.device-type {
  margin-bottom: 16px;
}

.device-actions button,
.table-actions button {
  min-height: 34px;
  padding: 0 11px;
  color: var(--brand);
  background: var(--brand-soft);
  border: 0;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 800;
}

.devices-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.open-devices-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  color: var(--brand);
  background: var(--brand-soft);
  border: 1px solid #d7e1f8;
  border-radius: 12px;
  font-weight: 800;
}

.open-devices-button:disabled,
.device-filters button:disabled,
.show-all-devices:disabled,
.device-actions button:disabled,
.table-actions button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.open-devices-button.secondary {
  color: var(--text);
  background: var(--paper);
  border-color: var(--line);
}

.devices-panel {
  margin-top: 16px;
}

.devices-panel[hidden],
.scan-history-panel[hidden],
.scan-alert[hidden],
.technical-panel[hidden] {
  display: none;
}

.event-timeline {
  display: grid;
  gap: 10px;
}

.event-item {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 12px;
  align-items: start;
  padding: 11px 12px;
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: 13px;
}

.event-item span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.event-item strong {
  font-size: 14px;
}

.event-warning {
  border-color: #ead9bd;
  background: #fff9ee;
}

.scan-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.scan-summary-card {
  padding: 14px;
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.scan-summary-card span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

.scan-summary-card strong {
  font-size: 16px;
}

.scan-alert {
  margin: 12px 0 14px;
  padding: 12px 14px;
  color: var(--apricot-text);
  background: var(--apricot);
  border: 1px solid #ead9bd;
  border-radius: 13px;
  font-weight: 760;
}

.scan-alert > strong {
  display: block;
}

.missing-devices-list {
  display: grid;
  gap: 8px;
  margin: 10px 0 0;
  padding-left: 18px;
}

.missing-devices-list li {
  padding-left: 2px;
}

.missing-devices-list span,
.missing-devices-list small {
  display: block;
}

.missing-devices-list small {
  margin-top: 2px;
  color: #9a6a22;
  font-size: 12px;
  font-weight: 700;
}

.inventory-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.inventory-help {
  margin-top: 8px !important;
  font-size: 13px;
}

.inventory-locked-note {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

.inventory-locked-note[hidden] {
  display: none;
}

.scan-history-panel {
  margin-top: 16px;
}

.scan-history-list {
  display: grid;
  gap: 10px;
}

.scan-history-item {
  display: grid;
  grid-template-columns: 1.2fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: 13px;
}

.scan-history-item strong {
  font-size: 14px;
}

.scan-history-item span,
.scan-history-item small {
  color: var(--muted);
  font-weight: 760;
}

.technical-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.technical-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.technical-card {
  padding: 14px;
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.technical-card span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

.technical-card strong {
  font-size: 15px;
}

.technical-action-card {
  display: grid;
  gap: 10px;
  align-content: space-between;
}

.technical-action-card .btn {
  min-height: 36px;
  width: fit-content;
}

/* Fiche d'informations techniques de la RescueLAN. */
.lan-information-content[hidden],
.information-name-row[hidden],
.information-name-form[hidden] {
  display: none;
}

.lan-information-content {
  display: grid;
  gap: 18px;
}

.app-copyright-footer {
  padding: 4px 20px 28px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.app-copyright-footer p {
  margin: 0;
}

.app-copyright-footer a {
  color: inherit;
}

.information-identity-card,
.information-section {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 26px rgba(17, 24, 39, 0.045);
}

.information-identity-card {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 28px;
  padding: 28px;
}

.information-eyebrow,
.information-section-kicker {
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.information-identity-heading {
  align-items: center;
}

.information-identity-main {
  min-width: 0;
}

.information-heading-statuses {
  display: grid;
  justify-items: end;
  gap: 9px;
}

.information-heading-statuses .box-last-connection {
  margin: 0;
  text-align: right;
}

.information-service-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #dbe5fb;
}

.information-service-facts > div {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.information-service-facts span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
}

.information-service-facts strong {
  overflow-wrap: anywhere;
  font-size: 15px;
}

.information-name-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 5px;
}

.information-name-row h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.information-edit-name {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  padding: 0;
  color: var(--brand);
  background: var(--brand-soft);
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 18px;
  line-height: 1;
}

.information-edit-name:hover,
.information-edit-name:focus-visible {
  color: var(--blue);
  border-color: rgba(47, 99, 214, 0.28);
  outline: none;
}

.information-box-reference {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.information-box-reference strong {
  margin-left: 5px;
  color: var(--text);
  font-family: Consolas, "SFMono-Regular", monospace;
}

.information-name-form {
  display: grid;
  gap: 7px;
  margin-top: 10px;
}

.information-name-form > label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.information-name-form > div {
  display: flex;
  gap: 8px;
}

.information-name-form input {
  min-width: 0;
  min-height: 42px;
  flex: 1 1 240px;
  padding: 0 12px;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  outline: none;
}

.information-name-form input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(47, 99, 214, 0.13);
}

.information-name-form p {
  min-height: 20px;
  margin: 0;
  color: var(--raspberry-text);
  font-size: 12px;
  font-weight: 700;
}

.information-live-statuses {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.information-live-statuses > div {
  display: grid;
  align-content: start;
  gap: 7px;
  min-width: 0;
  padding: 13px;
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: 13px;
}

.information-live-statuses > div:last-child {
  grid-column: 1 / -1;
}

.information-live-statuses span,
.information-facts dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
}

.information-live-statuses strong:not(.status-badge) {
  overflow-wrap: anywhere;
  font-size: 14px;
}

.information-section {
  padding: 24px;
}

.information-danger-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-color: #edcbd7;
}

.information-danger-section h2 {
  margin: 0 0 6px;
  font-size: 20px;
}

.information-danger-section p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}


.information-danger-section .btn {
  flex: 0 0 auto;
}

.information-unpair-dialog {
  max-width: 620px;
}

.information-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.information-section-heading h2 {
  margin: 3px 0 0;
  font-size: 23px;
  letter-spacing: -0.035em;
}

.information-section-note {
  color: var(--muted);
  font-size: 13px;
  font-weight: 680;
  text-align: right;
}

.information-connectivity-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: 18px;
  padding-top: 18px;
}

.information-network-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding-top: 18px;
}

.information-network-card {
  display: grid;
  justify-items: start;
  gap: 8px;
  min-width: 0;
  padding: 16px;
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: 15px;
}

.information-network-card > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
}

.information-network-card > strong:not(.status-badge) {
  font-size: 20px;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.information-network-card > small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 680;
}

.information-internet-source.mobile {
  color: var(--blue);
}

.information-internet-source.lan {
  color: var(--sage-text);
}

.information-data-card {
  padding: 18px;
  background: var(--brand-soft);
  border: 1px solid #dbe5fb;
  border-radius: 15px;
}

.information-data-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
}

.information-data-head span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 780;
}

.information-data-head strong {
  color: var(--brand);
  font-size: 30px;
  line-height: 1;
  letter-spacing: -0.04em;
}

.information-data-progress {
  height: 10px;
  margin-top: 20px;
  overflow: hidden;
  background: rgba(37, 56, 95, 0.12);
  border-radius: 999px;
}

.information-data-progress > span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--blue);
  border-radius: inherit;
  transition: width 250ms ease;
}

.information-data-progress.is-ok > span { background: var(--green); }
.information-data-progress.is-warning > span { background: var(--amber); }
.information-data-progress.is-critical > span { background: var(--red); }

.information-data-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.information-facts {
  display: grid;
  gap: 10px;
  margin: 0;
}

.information-connectivity-facts,
.information-system-facts {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.information-system-facts {
  padding-top: 18px;
}

.information-facts > div {
  min-width: 0;
  padding: 13px 14px;
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: 13px;
}

.information-facts dt {
  margin-bottom: 5px;
}

.information-facts dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 14px;
  font-weight: 820;
}

.information-footnote {
  margin: 0 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.devices-count {
  color: var(--text);
  font-size: 15px;
  font-weight: 800;
}

.devices-count strong,
.devices-count span {
  display: block;
}

.devices-count span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.device-search {
  display: grid;
  gap: 6px;
  width: min(100%, 320px);
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.device-search input {
  min-height: 38px;
  padding: 0 12px;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
  outline: none;
}

.device-search input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(47, 99, 214, 0.09);
}

.device-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.device-filters button {
  min-height: 32px;
  padding: 0 11px;
  color: var(--muted);
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 760;
}

.device-filters button.active,
.device-filters button:hover {
  color: var(--brand);
  background: var(--brand-soft);
  border-color: #d7e1f8;
}

.devices-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.devices-table {
  width: 100%;
  min-width: 700px;
  border-collapse: collapse;
  font-size: 14px;
}

.devices-table th {
  padding: 11px 12px;
  color: var(--muted);
  background: var(--paper-soft);
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  font-weight: 800;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.devices-table td {
  padding: 11px 12px;
  border-bottom: 1px solid #edf1f6;
  vertical-align: middle;
}

.devices-table tbody tr:hover {
  background: #fbfcfe;
}

.devices-table tbody tr:last-child td {
  border-bottom: 0;
}

.new-device-badge {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 7px;
  color: #116329;
  background: #e6f5ea;
  border: 1px solid #c9e8d1;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.new-device-badge[hidden] {
  display: none;
}

.device-name-form {
  width: min(260px, 100%);
}

.device-name-input {
  width: 100%;
  min-height: 32px;
  padding: 0 9px;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  outline: none;
}

.device-name-input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(47, 99, 214, 0.09);
}

.services-cell {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.service-tag,
.service-empty {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 760;
}

.service-tag {
  color: var(--slate-blue-text);
  background: var(--slate-blue);
}

.service-empty {
  color: var(--muted);
  background: var(--paper-soft);
}

.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.table-actions button {
  min-height: 28px;
  padding: 0 8px;
  border-radius: 8px;
  font-size: 12px;
}

.table-actions .edit-device-button,
.device-actions .edit-device-button {
  display: inline-grid;
  width: 30px;
  min-width: 30px;
  min-height: 28px;
  flex: 0 0 30px;
  padding: 0;
  place-items: center;
  color: var(--muted);
  background: var(--paper-soft);
  border: 1px solid var(--line);
  font-size: 0;
}

.edit-device-button::before {
  content: "\270e";
  font-size: 13px;
  line-height: 1;
}

.edit-device-button:hover {
  color: var(--brand);
  border-color: var(--line-strong);
}

.table-actions button:disabled,
.device-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.delete-device-button {
  color: #5f4754;
  background: #f3ecef;
  border-color: #d9c8d0;
}

.delete-device-button:hover {
  color: #49343f;
  background: #eadde3;
  border-color: #c9b1bc;
}

.device-state-controls {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  white-space: nowrap;
}

.device-delete-icon {
  display: inline-grid;
  width: 28px;
  min-height: 28px;
  padding: 0;
  place-items: center;
  color: #667085;
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
}

.device-delete-icon svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}


.device-delete-icon:hover {
  color: #344054;
  background: #f2f4f7;
  border-color: #d0d5dd;
}

.device-delete-icon[hidden] {
  display: none;
}

.device-delete-icon:disabled {
  cursor: wait;
  opacity: 0.5;
}

.device-delete-dialog {
  max-width: 520px;
}

.properties-body .device-delete-all-option {
  display: flex;
  grid-column: 1 / -1;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  cursor: pointer;
}

.properties-body .device-delete-all-option input {
  order: 2;
  width: 18px;
  height: 18px;
  margin: 0 0 0 auto;
  accent-color: #667085;
  flex: 0 0 auto;
}

.devices-grid {
  display: none;
}

.device-compact-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.show-all-devices {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  margin-top: 14px;
  padding: 0 14px;
  color: var(--brand);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 11px;
  font-weight: 760;
}

.show-all-devices[hidden] {
  display: none;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 70;
  display: none;
  max-width: 360px;
  padding: 12px 15px;
  color: #fff;
  background: var(--brand);
  border-radius: 13px;
  box-shadow: var(--shadow);
  font-weight: 760;
}

.toast.show {
  display: block;
}

.properties-modal,
.diagnostic-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(17, 24, 39, 0.58);
  backdrop-filter: blur(8px);
}

.properties-modal[hidden],
.diagnostic-modal[hidden],
.diagnostic-details[hidden] {
  display: none;
}

.properties-dialog,
.diagnostic-dialog {
  width: min(620px, 100%);
  max-height: calc(100vh - 40px);
  overflow: hidden;
  color: var(--text);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 28px 80px rgba(17, 24, 39, 0.24);
}
#device-config-form {
  display: flex;
  flex-direction: column;
  height: min(680px, calc(100vh - 40px));
  height: min(680px, calc(100dvh - 40px));
}

#device-config-form .properties-header,
#device-config-form .properties-actions {
  flex: 0 0 auto;
}

#device-config-form .properties-body {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-color: rgba(107, 114, 128, 0.55) transparent;
  scrollbar-width: thin;
}

#device-config-form .properties-body::-webkit-scrollbar {
  width: 8px;
}

#device-config-form .properties-body::-webkit-scrollbar-track {
  background: transparent;
}

#device-config-form .properties-body::-webkit-scrollbar-thumb {
  background: rgba(107, 114, 128, 0.42);
  border: 2px solid transparent;
  border-radius: 999px;
  background-clip: padding-box;
}

#device-config-form .properties-body::-webkit-scrollbar-thumb:hover {
  background: rgba(107, 114, 128, 0.62);
  background-clip: padding-box;
}

.properties-header,
.diagnostic-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px;
  background: var(--paper-soft);
  border-bottom: 1px solid var(--line);
}

.properties-header p,
.diagnostic-header p {
  margin: 0 0 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.properties-header h2,
.diagnostic-header h2 {
  margin: 0;
  color: var(--text);
  font-size: 22px;
  letter-spacing: -0.03em;
}

.diagnostic-state {
  display: inline-flex;
  margin-top: 5px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.diagnostic-modal.success .diagnostic-state {
  color: var(--sage-text);
}

.diagnostic-modal.failure .diagnostic-state {
  color: var(--raspberry-text);
}

.diagnostic-icon {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  font-size: 20px;
  font-weight: 900;
}

.diagnostic-modal.success .diagnostic-icon {
  color: var(--sage-text);
  background: var(--sage);
}

.diagnostic-modal.failure .diagnostic-icon {
  color: var(--raspberry-text);
  background: var(--raspberry);
}

.properties-close,
.diagnostic-close {
  min-height: 32px;
  padding: 0 10px;
  color: var(--muted);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.properties-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  max-height: min(62vh, 560px);
  overflow: auto;
  padding: 18px 20px;
}

.properties-body label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

.properties-body .properties-checkbox {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  cursor: pointer;
}

.properties-body .properties-checkbox input {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin: 0;
  padding: 0;
  accent-color: var(--blue);
}

.properties-wide {
  grid-column: 1 / -1;
}
.properties-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 2px 0 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
}

.properties-section legend {
  padding: 0 6px;
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
}

.properties-protocol-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.properties-protocol-fields[hidden] {
  display: none;
}

.properties-body input,
.properties-body select,
.properties-body textarea {
  width: 100%;
  padding: 10px 11px;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
  outline: none;
  resize: vertical;
}

.properties-body input:disabled {
  color: var(--muted);
  background: var(--paper-soft);
  cursor: not-allowed;
  opacity: 0.78;
}
.properties-body input:focus,
.properties-body select:focus,
.properties-body textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(47, 99, 214, 0.09);
}

.properties-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 20px 20px;
  border-top: 1px solid var(--line);
}

.diagnostic-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 18px 20px 12px;
}

.diagnostic-summary article {
  padding: 12px;
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: 13px;
}

.diagnostic-summary span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.diagnostic-summary strong {
  font-size: 15px;
}

.diagnostic-details-toggle {
  min-height: 36px;
  margin: 0 20px 12px;
  padding: 0 12px;
  color: var(--brand);
  background: var(--brand-soft);
  border: 1px solid #d7e1f8;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 800;
}

.diagnostic-details {
  margin: 0 20px 14px;
}

.diagnostic-details pre {
  max-height: min(34vh, 280px);
  margin: 0;
  padding: 14px;
  overflow: auto;
  color: #d1d5db;
  background: #111827;
  border-radius: 13px;
  font-family: "Cascadia Mono", Consolas, "Courier New", monospace;
  font-size: 13px;
  line-height: 1.6;
  white-space: pre-wrap;
}

.diagnostic-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 20px 20px;
  border-top: 1px solid var(--line);
}

.modal-open {
  overflow: hidden;
}

.dashboard-modal-body {
  grid-template-columns: 1fr;
}

.dashboard-modal-message {
  grid-column: 1 / -1;
  padding: 11px 13px;
  color: var(--raspberry-text);
  background: var(--raspberry);
  border: 1px solid #edcbd7;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 720;
}

.dashboard-modal-message[hidden] {
  display: none;
}

.dashboard-confirmation {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.dashboard-danger-button {
  color: #5f4754;
  background: #f3ecef;
  border-color: #d9c8d0;
}

.account-loading {
  margin: 0;
  padding: 24px;
  color: var(--muted);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
}

.account-loading[hidden],
.account-grid[hidden] {
  display: none;
}

.account-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 18px;
  align-items: start;
}

.account-tabs-shell {
  display: grid;
  gap: 18px;
  max-width: 980px;
}

.account-tabs-shell[hidden],
.account-tab-panel[hidden],
.account-address-fieldset[hidden] {
  display: none;
}

.account-tabs {
  display: flex;
  gap: 5px;
  padding: 5px;
  overflow-x: auto;
  background: #eef1f6;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.account-tabs button {
  min-height: 42px;
  padding: 0 16px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 10px;
  font: inherit;
  font-size: 14px;
  font-weight: 760;
  white-space: nowrap;
  cursor: pointer;
}

.account-tabs button[aria-selected="true"] {
  color: var(--brand);
  background: var(--paper);
  box-shadow: 0 2px 8px rgba(17, 24, 39, 0.08);
}

.account-tabs button:focus-visible {
  outline: 3px solid rgba(47, 99, 214, 0.28);
  outline-offset: 1px;
}

.account-card {
  padding: clamp(22px, 3vw, 30px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 26px rgba(17, 24, 39, 0.045);
}

.account-card-heading {
  margin-bottom: 24px;
}

.account-card-heading h2 {
  margin: 0 0 6px;
  font-size: 23px;
  letter-spacing: -0.03em;
}

.account-card-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.account-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.account-form label {
  display: grid;
  gap: 8px;
  color: #344054;
  font-size: 14px;
  font-weight: 750;
}

.account-form input,
.account-form select {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  color: var(--text);
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  font: inherit;
  outline: none;
}

.account-form input:focus,
.account-form select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(47, 99, 214, 0.1);
}

.account-form-wide,
.account-form-actions {
  grid-column: 1 / -1;
}

.account-address-fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.account-address-fieldset + .account-address-fieldset {
  margin-top: 28px;
}

.account-address-fieldset legend {
  margin-bottom: 18px;
  padding: 0;
  color: var(--text);
  font-size: 17px;
  font-weight: 800;
}

.account-checkbox {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  margin: 26px 0;
  color: #465269;
  font-size: 14px;
  line-height: 1.5;
  cursor: pointer;
}

.account-checkbox input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--brand);
}

.account-address-actions {
  margin-top: 26px;
}

.account-form-actions {
  display: flex;
  justify-content: flex-start;
  padding-top: 4px;
}

.account-details {
  display: grid;
  gap: 0;
  margin: 0;
}

.account-details > div {
  display: grid;
  grid-template-columns: minmax(120px, 0.85fr) minmax(0, 1.15fr);
  gap: 18px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.account-details > div:first-child {
  padding-top: 0;
}

.account-details > div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.account-details dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 720;
}

.account-details dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  font-weight: 760;
}

.account-verification-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 820;
}

.account-verification-badge.verified {
  color: var(--sage-text);
  background: var(--sage);
}

.account-verification-badge.unverified {
  color: var(--amber);
  background: var(--amber-soft);
}

.account-requests-loading,
.account-requests-empty {
  margin: 0;
  padding: 24px 0;
  color: var(--muted);
  text-align: center;
}

.account-requests-table-wrap {
  overflow-x: auto;
}

.account-requests-table-wrap[hidden],
.account-requests-empty[hidden] {
  display: none;
}

.account-requests-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
}

.account-requests-table th,
.account-requests-table td {
  padding: 15px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.account-requests-table th {
  padding-top: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.account-requests-table tbody tr:last-child td {
  border-bottom: 0;
}

.account-request-reference {
  color: var(--text);
  font-weight: 800;
}

.account-request-status {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  white-space: nowrap;
}

.account-request-status::before {
  width: 10px;
  height: 10px;
  background: #98a2b3;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(17, 24, 39, 0.3);
  content: "";
}

.account-request-status.pending::before { background: #ff7a1a; }
.account-request-status.processed::before { background: #28c840; }
.account-request-status.cancelled::before { background: #ef233c; }

.account-request-action {
  display: flex;
  gap: 4px;
  align-items: center;
  justify-content: flex-end;
  width: 270px;
  text-align: right !important;
}

.account-request-view,
.account-request-delete,
.account-requests-pagination button,
.quote-request-dialog-close {
  color: var(--brand);
  background: transparent;
  border: 0;
  font: inherit;
  cursor: pointer;
}

.account-request-view {
  min-height: 38px;
  padding: 0 11px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 780;
  white-space: nowrap;
}

.account-request-view:hover,
.account-request-view:focus-visible {
  background: #eef3ff;
  outline: none;
}

.account-request-delete {
  min-height: 38px;
  padding: 0 11px;
  color: var(--brand);
  border-radius: 9px;
  font-size: 13px;
  font-weight: 780;
  white-space: nowrap;
}

.account-request-delete:hover,
.account-request-delete:focus-visible {
  background: #eef3ff;
  outline: none;
}

.account-request-delete:disabled {
  cursor: wait;
  opacity: 0.45;
}

.account-request-duplicate:disabled {
  cursor: wait;
  opacity: 0.45;
}

.account-requests-pagination {
  display: flex;
  gap: 4px;
  align-items: center;
  justify-content: center;
  margin-top: 24px;
}

.account-requests-pagination[hidden] { display: none; }

.account-requests-pagination button {
  min-width: 36px;
  height: 36px;
  border-radius: 9px;
  font-weight: 750;
}

.account-requests-pagination button:hover:not(:disabled),
.account-requests-pagination button:focus-visible,
.account-requests-pagination button[aria-current="page"] {
  color: #fff;
  background: var(--brand);
  outline: none;
}

.account-requests-pagination button:disabled {
  color: #a7afbd;
  cursor: default;
}

.account-requests-pagination > span {
  padding-inline: 4px;
  color: var(--muted);
}

.quote-request-dialog {
  width: min(760px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  padding: 0;
  overflow: auto;
  color: var(--text);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(17, 24, 39, 0.22);
}

.quote-request-dialog::backdrop {
  background: rgba(17, 24, 39, 0.48);
  backdrop-filter: blur(2px);
}

.quote-request-dialog-header {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 24px 28px 20px;
  border-bottom: 1px solid var(--line);
}

.quote-request-dialog-kicker {
  margin: 0 0 4px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.quote-request-dialog-header h2 {
  margin: 0;
  font-size: 24px;
}

.quote-request-dialog-close {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  color: var(--muted);
  border-radius: 10px;
  font-size: 26px;
  line-height: 1;
}

.quote-request-dialog-close:hover,
.quote-request-dialog-close:focus-visible {
  color: var(--text);
  background: #eef1f6;
  outline: none;
}

.quote-request-dialog > .app-message,
.quote-request-dialog > .account-requests-loading {
  margin: 24px 28px;
}

.quote-request-detail {
  display: grid;
  gap: 26px;
  padding: 24px 28px 30px;
}

.quote-request-detail[hidden] { display: none; }

.quote-request-detail section h3 {
  margin: 0 0 12px;
  font-size: 16px;
}

.quote-request-detail-list {
  display: grid;
  gap: 0;
  margin: 0;
}

.quote-request-detail-list > div {
  display: grid;
  grid-template-columns: minmax(140px, 0.8fr) minmax(0, 1.2fr);
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.quote-request-detail-list dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.quote-request-detail-list dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-weight: 650;
}

.quote-request-products-wrap {
  overflow-x: auto;
}

.quote-request-products {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
}

.quote-request-products th,
.quote-request-products td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.quote-request-products th {
  background: #f7f9fc;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.quote-request-products td small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.quote-request-products .quote-request-product-quantity {
  text-align: center;
}

.quote-request-products .quote-request-product-price {
  text-align: right;
  white-space: nowrap;
}

@media (max-width: 680px) {
  .account-requests-table th,
  .account-requests-table td {
    padding-inline: 9px;
  }

  .quote-request-dialog {
    width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
    border-radius: 14px;
  }

  .quote-request-dialog-header,
  .quote-request-detail {
    padding-inline: 18px;
  }

  .quote-request-detail-list > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

@media (max-width: 1100px) {
  .sites-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .account-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .information-identity-card,
  .information-connectivity-layout {
    grid-template-columns: 1fr;
  }

  .sites-grid,
  .status-grid,
  .scan-summary,
  .technical-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-hero,
  .access-card,
  .technical-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .connectivity-summary {
    width: 100%;
    min-width: 0;
    padding-left: 0;
    border-left: 0;
  }

  .access-button {
    width: 100%;
  }

  .devices-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .device-search {
    width: 100%;
  }

  .devices-table-wrap {
    display: none;
  }

  .devices-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .device-card {
    padding: 14px;
  }

  .device-head h3 {
    font-size: 16px;
  }

  .device-actions button,
  .table-actions button {
    font-size: 0;
  }

  .device-actions button::after,
  .table-actions button::after {
    content: attr(data-short-label);
    font-size: 12px;
  }

  .backup-step {
    grid-template-columns: 14px 1fr;
  }

  .backup-step small {
    grid-column: 2;
  }

  .scan-history-item,
  .event-item {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .properties-dialog,
  .diagnostic-dialog {
    max-height: calc(100vh - 32px);
  }

  .diagnostic-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .information-danger-section {
    align-items: stretch;
    flex-direction: column;
  }


.information-danger-section .btn {
    width: 100%;
  }
  .information-identity-card,
  .information-section {
    padding: 18px;
  }

  .information-section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .information-section-note {
    text-align: left;
  }

  .information-connectivity-facts,
  .information-system-facts,
  .information-network-summary {
    grid-template-columns: 1fr;
  }

  .information-identity-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .information-heading-statuses {
    width: 100%;
    justify-items: start;
  }

  .information-heading-statuses .box-last-connection {
    text-align: left;
  }

  .information-name-form > div {
    align-items: stretch;
    flex-direction: column;
  }

  .information-name-form input,
  .information-name-form .btn {
    width: 100%;
  }

  .inventory-launch-button {
    width: auto;
    flex: 1 1 auto;
  }

  .inventory-launch-control {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .box-overview-statuses {
    width: calc(100% + 28px);
    gap: 4px;
  }

  .site-summary-action-item {
    margin-left: 2px;
  }

  .box-overview-statuses .site-summary-status {
    padding-inline: 6px;
    font-size: 11px;
  }

  .box-overview-statuses .site-status-action {
    padding-inline: 10px;
    font-size: 11px;
  }

  .box-overview-statuses .site-summary-status-separator {
    margin-inline: 0;
  }

  .box-connectivity-grid {
    grid-template-columns: 1fr;
  }

  .box-connectivity-item > span {
    min-height: 0;
  }

  .app-header {
    min-height: 66px;
  }

  .brand strong,
  .user-area > span:not(.avatar) {
    display: none;
  }

  .app-shop-link {
    min-height: 36px;
    padding-inline: 11px;
    font-size: 13px;
  }

  .app-shop-label-full {
    display: none;
  }

  .app-shop-label-short {
    display: inline;
  }

  .user-account-name {
    display: none;
  }

  .page {
    width: min(100% - 28px, 1120px);
    padding-top: 24px;
  }

  .dashboard-title-row {
    align-items: stretch;
    flex-direction: column;
  }

  .box-inventory-heading > .btn {
    width: 100%;
    margin-right: 0;
  }

  .site-hero.box-overview-card {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .box-connectivity {
    width: 100%;
    padding: 20px 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .dashboard-title-row > .btn {
    width: 100%;
  }

  .login-card,
  .site-card,
  .simple-block,
  .site-hero,
  .access-card {
    padding: 18px;
  }

  .accordion-title {
    font-size: 21px;
  }

  .login-links,
  .site-card-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-facts,
  .box-card .site-facts {
    grid-template-columns: 1fr;
  }

  .sites-grid,
  .status-grid,
  .scan-summary,
  .technical-grid,
  .account-form {
    grid-template-columns: 1fr;
  }

  .account-card {
    padding: 20px 18px;
  }

  .account-form-wide,
  .account-form-actions {
    grid-column: auto;
  }

  .account-form-actions .btn {
    width: 100%;
  }

  .account-tabs {
    margin-inline: -4px;
  }

  .account-tabs button {
    padding-inline: 13px;
  }

  .account-details > div {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .dashboard-state {
    min-height: 190px;
    padding: 24px 18px;
  }

  .properties-modal,
  .diagnostic-modal {
    padding: 12px;
  }

  .properties-header,
  .properties-actions,
  .diagnostic-header,
  .diagnostic-actions {
    padding-inline: 14px;
  }

  .properties-header,
  .diagnostic-header {
    align-items: flex-start;
  }

  .properties-actions,
  .diagnostic-actions {
    align-items: stretch;
    flex-direction: column;
  }



  .properties-body {
    grid-template-columns: 1fr;
    padding-inline: 14px;
  }

  .properties-section,
  .properties-protocol-fields {
    grid-template-columns: 1fr;
  }

  .diagnostic-summary {
    grid-template-columns: 1fr;
    padding-inline: 14px;
  }

  .diagnostic-details,
  .diagnostic-details-toggle {
    margin-inline: 14px;
  }

  .diagnostic-details pre {
    font-size: 12px;
  }
}

@media (max-width: 360px) {
  .box-overview-statuses {
    gap: 3px;
  }

  .box-overview-statuses .site-summary-status,
  .box-overview-statuses .site-status-action {
    padding-inline: 5px;
    font-size: 10px;
  }
}

/* Landing page — uses the same product tokens and component language as the app. */
html { scroll-behavior: smooth; }
.landing-page { background: var(--paper); }
.landing-page h1, .landing-page h2, .landing-page h3, .landing-page p { margin-top: 0; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 100; padding: 10px 14px; color: #fff; background: var(--brand); border-radius: 10px; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.landing-container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.landing-header { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; min-height: 74px; padding: 0 max(20px, calc((100% - 1180px) / 2)); background: rgba(255,255,255,.94); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.landing-nav { display: flex; align-items: center; gap: 20px; color: #344054; font-size: 14px; font-weight: 720; }
.landing-nav > a:not(.btn):hover, .footer-links a:hover { color: var(--blue); }
.landing-nav .btn { min-height: 38px; padding-inline: 13px; }
.language-switcher { display: flex; align-items: center; gap: 5px; color: var(--line-strong); }
.language-select { min-height: 36px; padding: 6px 10px; color: var(--brand); background: #fff; border: 1px solid var(--line); border-radius: 7px; font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; }
.language-select:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.mobile-menu-button { display: none; width: 42px; height: 42px; color: var(--brand); background: var(--paper); border: 1px solid var(--line); border-radius: 11px; font-size: 22px; }
.landing-hero { overflow: hidden; padding: clamp(72px, 10vw, 124px) 0; background: radial-gradient(circle at 80% 20%, rgba(47,99,214,.1), transparent 28%), linear-gradient(180deg,#fbfcfe,#f4f6fa); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(300px,.75fr); gap: clamp(48px,8vw,100px); align-items: center; }
.eyebrow { margin-bottom: 12px; color: var(--blue); font-size: 13px; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.landing-hero h1 { max-width: 800px; margin-bottom: 22px; font-size: clamp(42px,6vw,70px); line-height: 1.02; letter-spacing: -.055em; }
.hero-lead { max-width: 720px; margin-bottom: 28px; color: var(--muted); font-size: clamp(18px,2vw,21px); line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-large { min-height: 50px; padding-inline: 20px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 22px; }
.hero-proof span { padding: 8px 11px; color: var(--sage-text); background: var(--sage); border: 1px solid #cadecf; border-radius: 999px; font-size: 13px; font-weight: 800; }
.microcopy { margin: 16px 0 0; color: var(--muted); font-size: 13px; }
.hero-product-visual { margin: 0; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }
.hero-product-visual img { display: block; width: 100%; height: auto; }
.landing-section { padding: clamp(70px,9vw,108px) 0; }.section-soft { background: var(--bg); border-block: 1px solid var(--line); }
.section-heading { max-width: 740px; margin-bottom: 36px; }.section-heading.centered { margin-inline: auto; text-align: center; }
.section-heading h2, .distributor-box h2, .final-cta h2 { margin-bottom: 14px; font-size: clamp(32px,4vw,48px); line-height: 1.08; letter-spacing: -.045em; }
.section-heading > p:last-child, .distributor-box p, .final-cta p { color: var(--muted); font-size: 17px; line-height: 1.65; }
.incident-strip { margin-bottom: 24px; padding: 18px 22px; color: #6f4c05; background: #fff8e6; border: 1px solid #f0dcad; border-radius: 14px; font-weight: 700; }
.comparison-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.comparison-card, .landing-card, .pricing-card, .distributor-box { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 26px rgba(17,24,39,.045); }
.comparison-card { padding: 28px; }.comparison-card h3 { font-size: 23px; }.comparison-card ul, .feature-list, .pricing-card ul { display: grid; gap: 13px; margin: 0; padding: 0; list-style: none; }
.comparison-card li, .feature-list li, .pricing-card li { position: relative; padding-left: 28px; }.comparison-card li::before, .feature-list li::before, .pricing-card li::before { position: absolute; left: 0; content: "✓"; color: var(--green); font-weight: 900; }
.comparison-card.with { background: var(--green-soft); border-color: #cadecf; }.comparison-card.without li::before { content: "—"; color: var(--raspberry-text); }
.steps-grid, .benefits-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; }.landing-card { padding: 24px; }.landing-card h3 { margin-bottom: 8px; font-size: 19px; }.landing-card p { margin: 0; color: var(--muted); }
.dashboard-preview { overflow: hidden; width: 100%; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.dashboard-preview img { display: block; width: 100%; height: auto; object-fit: contain; }
.contact-page { min-height: 100vh; background: var(--bg); }
.contact-main { padding: clamp(56px,8vw,96px) 0; }
.contact-layout { display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); gap: clamp(40px,7vw,88px); align-items: start; }
.contact-copy h1 { margin: 0 0 18px; font-size: clamp(40px,5vw,60px); line-height: 1.05; letter-spacing: -.05em; }
.contact-copy > p:not(.eyebrow) { color: var(--muted); font-size: 18px; line-height: 1.65; }
.contact-email { display: inline-block; margin-top: 14px; color: var(--blue); font-weight: 800; }
.contact-form { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; padding: clamp(24px,4vw,38px); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.contact-form label { display: grid; gap: 8px; color: #344054; font-size: 14px; font-weight: 750; }
.contact-form .full-field { grid-column: 1 / -1; }
.contact-form input, .contact-form textarea { width: 100%; padding: 12px 14px; color: var(--text); background: var(--paper); border: 1px solid var(--line-strong); border-radius: 11px; font: inherit; outline: none; }
.contact-form input { min-height: 46px; }.contact-form textarea { min-height: 150px; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(47,99,214,.1); }
.contact-form .btn { grid-column: 1 / -1; justify-self: start; }
.contact-note { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 13px; }
.contact-status { grid-column: 1 / -1; min-height: 22px; margin: 0; font-size: 14px; font-weight: 700; }.contact-status.success { color: var(--green); }.contact-status.error { color: var(--raspberry-text); }
.legal-main { padding: clamp(52px,7vw,88px) 0; background: var(--bg); }
.legal-hero { max-width: 850px; margin-bottom: 42px; }.legal-hero h1 { margin: 0 0 18px; font-size: clamp(40px,5vw,60px); line-height: 1.05; letter-spacing: -.05em; }.legal-hero p { color: var(--muted); font-size: 17px; line-height: 1.65; }
.legal-notice { margin: 24px 0 0; padding: 18px 20px; color: #6f4c05; background: #fff8e6; border: 1px solid #f0dcad; border-radius: 14px; font-size: 14px; line-height: 1.6; }
.legal-document { display: grid; gap: 18px; max-width: 960px; }
.legal-article { padding: clamp(24px,4vw,36px); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 24px rgba(17,24,39,.035); }.legal-article h2 { margin: 0 0 16px; font-size: 23px; line-height: 1.25; }.legal-article p { margin: 0 0 12px; color: #465269; line-height: 1.72; }.legal-article p:last-child { margin-bottom: 0; }.legal-article .legal-item { position: relative; padding-left: 22px; }.legal-article .legal-item::before { position: absolute; left: 3px; content: "•"; color: var(--blue); font-weight: 900; }.legal-article.jurisdiction { border-width: 2px; border-color: var(--brand); }
.step-number { display: grid; width: 34px; height: 34px; place-items: center; margin-bottom: 28px; color: #fff; background: var(--brand); border-radius: 10px; font-weight: 850; }
.two-column { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: clamp(50px,8vw,100px); }.feature-list { grid-template-columns: repeat(2,minmax(0,1fr)); }.use-grid { display: flex; flex-wrap: wrap; gap: 9px; }.use-grid span { padding: 10px 13px; color: var(--slate-blue-text); background: var(--paper); border: 1px solid var(--line); border-radius: 999px; font-size: 14px; font-weight: 700; }
.pricing-card { display: grid; grid-template-columns: .8fr 1.2fr 1fr; gap: 40px; align-items: center; max-width: 960px; margin-inline: auto; padding: clamp(28px,5vw,48px); }.pricing-name { color: var(--brand); font-size: 20px; font-weight: 850; }.price { display: flex; align-items: baseline; gap: 8px; margin: 8px 0; }.price strong { font-size: clamp(40px,5vw,58px); letter-spacing: -.05em; }.price span, .pricing-card p { color: var(--muted); }.pricing-card > div:first-child p { font-size: 12px; }.full { width: 100%; }.pricing-volume { margin: 14px 0 0; font-size: 12px; line-height: 1.5; text-align: center; }
.distributor-box { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: clamp(28px,5vw,48px); }.distributor-box > div { max-width: 700px; }.distributor-box p { margin-bottom: 0; }
.narrow { max-width: 900px; }.faq-list { border-top: 1px solid var(--line); }.faq-list details { border-bottom: 1px solid var(--line); }.faq-list summary { padding: 22px 4px; color: var(--text); font-size: 17px; font-weight: 780; cursor: pointer; }.faq-list details p { margin: -5px 0 22px; padding-right: 30px; color: var(--muted); line-height: 1.65; }
.final-cta { padding: clamp(64px,8vw,94px) 0; color: #fff; background: var(--brand); text-align: center; }.final-cta .landing-container { max-width: 800px; }.final-cta p { color: rgba(255,255,255,.74); }.final-cta .btn-primary { color: var(--brand); background: #fff; }
.landing-footer { padding: 48px 0; background: #f3f5f8; border-top: 1px solid var(--line); }.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr .8fr; gap: 50px; }.footer-grid p { max-width: 340px; margin: 14px 0 0; color: var(--muted); font-size: 13px; }.footer-links { display: grid; gap: 10px; align-content: start; color: var(--muted); font-size: 14px; }.footer-languages { justify-content: flex-start; }
.register-page { display: flex; min-height: 100vh; flex-direction: column; }
.register-main { flex: 1; padding: clamp(42px,6vw,76px) 0 clamp(64px,8vw,96px); background: radial-gradient(circle at 12% 8%,rgba(47,99,214,.09),transparent 25%),linear-gradient(180deg,#fbfcfe,var(--bg)); }
.register-layout { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(380px,.8fr); gap: clamp(48px,8vw,96px); align-items: start; max-width: 1080px; margin-inline: auto; }
.register-copy { padding-top: clamp(8px,3vw,28px); }
.register-copy h1 { max-width: 650px; margin: 0 0 22px; font-size: clamp(40px,5vw,58px); line-height: 1.04; letter-spacing: -.05em; }
.register-intro { max-width: 680px; margin: 0; color: var(--muted); font-size: 18px; line-height: 1.7; }
.register-benefits { margin-top: 36px; padding: 24px 26px; background: rgba(255,255,255,.72); border: 1px solid var(--line); border-radius: var(--radius); }
.register-benefits h2 { margin: 0 0 18px; font-size: 18px; }
.register-benefits ul { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.register-benefits li { position: relative; padding-left: 27px; color: #465269; }
.register-benefits li::before { position: absolute; left: 0; color: var(--green); font-weight: 900; content: "✓"; }
.register-card { padding: clamp(26px,4vw,38px); background: var(--paper); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }
.register-card > h2 { margin: 0 0 7px; font-size: 25px; letter-spacing: -.025em; }
.register-form-intro { margin: 0 0 26px; color: var(--muted); font-size: 14px; }
.app-message { margin: 0 0 22px; padding: 13px 15px; border: 1px solid; border-radius: 12px; font-size: 14px; font-weight: 700; line-height: 1.5; }
.app-message[hidden] { display: none; }
.app-message--success { color: var(--sage-text); background: var(--sage); border-color: #cadecf; }
.app-message--error { color: var(--raspberry-text); background: var(--raspberry); border-color: #edcbd7; }
.app-message--info { color: var(--slate-blue-text); background: var(--slate-blue); border-color: var(--line-strong); }
.register-form { display: grid; }
.register-form[hidden] { display: none; }
.register-form > label:not(.register-consent) { margin-bottom: 8px; color: #344054; font-size: 14px; font-weight: 750; }
.register-label-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; margin-bottom: 8px; }
.register-label-row label { color: #344054; font-size: 14px; font-weight: 750; }
.register-label-row span { color: var(--muted); font-size: 12px; }
.register-form > input { width: 100%; min-height: 48px; margin-bottom: 18px; padding: 0 14px; color: var(--text); background: var(--paper); border: 1px solid var(--line-strong); border-radius: 11px; outline: none; }
.landing-page .register-form > input:focus { border-color: var(--blue); outline: none; box-shadow: 0 3px 10px rgba(47,99,214,.12); }
.register-form > input[aria-invalid="true"] { border-color: var(--raspberry-text); }
.register-error { min-height: 20px; margin: -10px 0 14px; color: var(--raspberry-text); font-size: 13px; font-weight: 700; }
.register-consent { display: grid; grid-template-columns: 19px 1fr; gap: 11px; align-items: start; margin-bottom: 22px; color: #465269; font-size: 13px; line-height: 1.55; cursor: pointer; }
.register-marketing-consent { margin-top: -10px; }
.register-consent input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--brand); }
.register-consent a, .register-login a { color: var(--blue); font-weight: 750; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.register-note { margin: 13px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; text-align: center; }
.register-login { margin: 24px 0 0; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; text-align: center; }
.welcome-shell { max-width: 980px; }
.welcome-intro { max-width: 760px; margin: 0 auto clamp(34px,5vw,52px); text-align: center; }
.welcome-intro h1 { margin: 0 0 20px; font-size: clamp(40px,5vw,58px); line-height: 1.04; letter-spacing: -.05em; }
.welcome-intro > p:last-child { max-width: 720px; margin: 0 auto; color: var(--muted); font-size: 18px; line-height: 1.7; }
.welcome-choices { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: clamp(20px,3vw,28px); }
.welcome-card { display: flex; min-width: 0; flex-direction: column; }
.welcome-card > p { margin: 10px 0 28px; color: var(--muted); line-height: 1.65; }
.welcome-card .btn { align-self: flex-start; margin-top: auto; }
.quote-confirmation-main { display: grid; min-width: 0; min-height: calc(100vh - 74px); align-items: center; }
.quote-confirmation-page .welcome-shell { width: calc(100% - 40px); min-width: 0; }
.quote-confirmation-intro { width: 100%; min-width: 0; margin-bottom: 0; }
.quote-confirmation-intro h1 { overflow-wrap: break-word; }
.quote-confirmation-text { max-width: 720px; margin: 0 auto; color: var(--muted); font-size: 18px; line-height: 1.7; }
.quote-confirmation-reference { display: inline-block; margin: 24px auto 0; padding: 10px 14px; color: var(--brand); background: var(--paper-soft); border-radius: 10px; font-weight: 800; text-decoration: none; }
.quote-confirmation-reference:hover,
.quote-confirmation-reference:focus-visible { text-decoration: underline; }
.quote-confirmation-reference[hidden] { display: none; }
.quote-confirmation-intro .btn { margin-top: 32px; }
.shop-heading { max-width: 760px; margin-bottom: clamp(34px,5vw,52px); }
.shop-heading h1 { margin: 0 0 18px; font-size: clamp(40px,5vw,58px); line-height: 1.04; letter-spacing: -.05em; }
.shop-heading > p:last-child { margin: 0; color: var(--muted); font-size: 18px; line-height: 1.7; }
.quote-checkout, #quote-request-form, .quote-step { min-width: 0; }
.quote-checkout { max-width: 1040px; overflow-x: clip; }
.shop-heading h1, .shop-heading > p:last-child { overflow-wrap: anywhere; }
.quote-timeline { margin-bottom: clamp(24px,4vw,42px); }
.quote-timeline ol { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); margin: 0; padding: 0; list-style: none; }
.quote-timeline li { position: relative; min-width: 0; }
.quote-timeline li:not(:last-child)::after { position: absolute; z-index: 0; top: 18px; right: -50%; left: 50%; height: 2px; background: var(--line-strong); content: ""; }
.quote-timeline li.completed:not(:last-child)::after { background: var(--brand); }
.quote-timeline button { position: relative; z-index: 1; display: grid; justify-items: center; width: 100%; gap: 9px; padding: 0 6px; color: var(--muted); background: transparent; border: 0; font: inherit; cursor: pointer; }
.quote-timeline button > span { display: grid; width: 36px; height: 36px; place-items: center; background: var(--paper); border: 2px solid var(--line-strong); border-radius: 50%; font-size: 13px; font-weight: 800; }
.quote-timeline button strong { overflow: hidden; max-width: 100%; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.quote-timeline li.active button { color: var(--brand); }
.quote-timeline li.active button > span { color: #fff; background: var(--brand); border-color: var(--brand); box-shadow: 0 0 0 5px rgba(47,99,214,.1); }
.quote-timeline li.completed button { color: var(--text); }
.quote-timeline li.completed button > span { color: #fff; background: var(--brand); border-color: var(--brand); }
.quote-timeline button:disabled { cursor: not-allowed; opacity: .72; }
.quote-step { width: 100%; max-width: none; }
.quote-step[hidden] { display: none; }
.quote-step-kicker { margin: 0 0 7px; color: var(--brand); font-size: 12px; font-weight: 820; letter-spacing: .08em; text-transform: uppercase; }
.quote-product-list { display: grid; gap: 16px; }
.quote-product-row { display: grid; grid-template-columns: minmax(0,1fr) minmax(190px,.34fr); gap: 24px; align-items: center; padding: 22px; background: var(--paper-soft); border: 1px solid var(--line); border-radius: 14px; }
.quote-product-copy > span { color: var(--brand); font-size: 11px; font-weight: 820; letter-spacing: .08em; text-transform: uppercase; }
.quote-product-copy h3 { margin: 5px 0 7px; font-size: 21px; }
.quote-product-copy p { margin: 0 0 11px; color: var(--muted); line-height: 1.55; }
.quote-product-copy strong { font-size: 15px; }
.quote-product-quantity > label { display: block; margin-bottom: 8px; color: #344054; font-size: 13px; font-weight: 750; }
.quote-comment { margin-top: 24px; }
.quote-actions { display: flex; justify-content: space-between; gap: 14px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.quote-actions-end { justify-content: flex-end; }
.quote-step-message { max-width: none; margin: 0 0 18px; text-align: left; }
.shop-field-help, [data-field-error] { min-height: 17px; color: var(--muted); font-size: 12px; font-weight: 500; line-height: 1.4; }
[data-field-error]:not(:empty) { color: var(--raspberry-text); }
.shop-form-grid [aria-invalid="true"] { border-color: var(--raspberry-text); }
.same-address-note { margin: 10px 0 0 29px; color: var(--muted); font-size: 13px; }
.same-address-note[hidden] { display: none; }
.quote-review { display: grid; gap: 0; border-top: 1px solid var(--line); }
.quote-review > section { padding: 22px 0; border-bottom: 1px solid var(--line); }
.quote-review > section > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 12px; }
.quote-review h3 { margin: 0; font-size: 17px; }
.quote-review button { padding: 3px 0; color: var(--blue); background: transparent; border: 0; font: inherit; font-size: 13px; font-weight: 760; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.quote-review p { margin: 0; color: var(--muted); line-height: 1.65; }
.quote-review-line { display: flex; justify-content: space-between; gap: 20px; padding: 5px 0; color: var(--muted); }
.quote-review-line span:last-child { color: var(--text); font-weight: 700; text-align: right; }
.quote-confirm-checkbox { margin-top: 26px; }
.quote-submit-note { margin: 20px 0 0; padding: 15px 17px; color: #344054; background: var(--paper-soft); border-radius: 11px; line-height: 1.55; }
.shop-quote-details { margin-bottom: clamp(24px,4vw,44px); }
.shop-form-heading { margin-bottom: 30px; }
.shop-form-heading h2 { margin: 0 0 8px; font-size: 28px; letter-spacing: -.03em; }
.shop-form-heading p { margin: 0; color: var(--muted); line-height: 1.65; }
.shop-form-section { margin: 0; padding: 0; border: 0; }
.shop-form-section + .shop-form-section { margin-top: 30px; padding-top: 28px; border-top: 1px solid var(--line); }
.shop-form-section[hidden] { display: none; }
.shop-form-section legend { margin-bottom: 18px; padding: 0; color: var(--text); font-size: 18px; font-weight: 800; }
.shop-form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.shop-form-grid label, .shop-form-field { display: grid; gap: 8px; color: #344054; font-size: 14px; font-weight: 750; }
.shop-form-wide { grid-column: 1 / -1; }
.shop-form-grid input, .shop-form-grid select, .shop-form-field textarea { width: 100%; min-height: 48px; padding: 11px 13px; color: var(--text); background: var(--paper); border: 1px solid var(--line-strong); border-radius: 11px; outline: none; font: inherit; }
.shop-form-field textarea { min-height: 104px; resize: vertical; }
.shop-form-grid input:focus, .shop-form-grid select:focus, .shop-form-field textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(47,99,214,.1); }
.shop-address-checkbox { display: flex; align-items: flex-start; gap: 11px; margin: 28px 0 0; color: #344054; font-size: 14px; font-weight: 700; line-height: 1.5; }
.shop-address-checkbox input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--brand); }
.shop-address-checkbox + .shop-form-section { margin-top: 26px; }
.shop-layout { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(340px,.75fr); gap: clamp(24px,4vw,44px); align-items: start; }
.shop-card { max-width: none; min-width: 0; }
.shop-product-visual { margin: 0 0 30px; overflow: hidden; background: var(--paper-soft); border: 1px solid var(--line); border-radius: var(--radius); }
.shop-product-visual img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.shop-product-copy h2 { margin: 0 0 6px; font-size: 30px; letter-spacing: -.03em; }
.shop-product-subtitle { margin: 0 0 20px; color: var(--brand); font-weight: 760; }
.shop-product-copy > p:not(.shop-product-subtitle) { margin-bottom: 26px; color: var(--muted); line-height: 1.7; }
.shop-product-copy .feature-list { margin-top: 0; color: #465269; }
.shop-order { position: sticky; top: 98px; }
.shop-price-block { padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.shop-price-block p { margin: 0 0 5px; color: var(--muted); font-size: 13px; font-weight: 750; }
.shop-price-block strong { color: var(--brand); font-size: 31px; letter-spacing: -.035em; }
.shop-connectivity-note { margin: 18px 0 24px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.shop-quantity { margin-bottom: 26px; }
.shop-quantity > label { display: block; margin-bottom: 9px; color: #344054; font-size: 14px; font-weight: 750; }
.shop-quantity-control { display: grid; grid-template-columns: 48px minmax(64px,1fr) 48px; gap: 8px; }
.shop-quantity-control button, .shop-quantity-control input { min-height: 48px; color: var(--text); background: var(--paper); border: 1px solid var(--line-strong); border-radius: 11px; font: inherit; font-weight: 800; text-align: center; }
.shop-quantity-control button:hover:not(:disabled) { border-color: var(--blue); }
.shop-quantity-control button:disabled { opacity: .45; cursor: default; }
.shop-quantity-control input { width: 100%; padding: 0 8px; outline: none; }
.shop-quantity-control input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(47,99,214,.1); }
.shop-quantity-control input[aria-invalid="true"] { border-color: var(--raspberry-text); }
.shop-quantity-help { margin: 8px 0 0; color: var(--muted); font-size: 12px; }
.shop-summary { margin-bottom: 22px; padding: 20px; background: var(--paper-soft); border: 1px solid var(--line); border-radius: 14px; }
.shop-summary h2 { margin: 0 0 14px; font-size: 18px; }
.shop-summary dl { display: grid; gap: 11px; margin: 0; }
.shop-summary dl > div { display: flex; justify-content: space-between; gap: 18px; color: var(--muted); font-size: 14px; }
.shop-summary dt, .shop-summary dd { margin: 0; }
.shop-summary dd { color: var(--text); font-weight: 760; white-space: nowrap; }
.shop-summary .shop-summary-total { margin-top: 3px; padding-top: 14px; color: var(--text); border-top: 1px solid var(--line-strong); font-size: 17px; font-weight: 820; }
.shop-summary-total dd { color: var(--brand); }
.shop-payment-note { margin: 11px 0 18px; color: var(--muted); font-size: 12px; text-align: center; }
.shop-request-message { margin: -4px 0 18px; padding: 11px 13px; color: var(--raspberry-text); background: var(--raspberry); border-radius: 10px; font-size: 13px; line-height: 1.5; text-align: center; }
.shop-request-message[hidden] { display: none; }
.shop-back-link { display: block; color: var(--blue); font-size: 14px; font-weight: 750; text-align: center; text-decoration: underline; text-underline-offset: 3px; }
.landing-page a:focus-visible, .landing-page button:focus-visible, .landing-page input:focus-visible, .landing-page select:focus-visible, .landing-page textarea:focus-visible, .faq-list summary:focus-visible { outline: 3px solid rgba(47,99,214,.35); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
@media (max-width: 980px) {
  .mobile-menu-button { display: grid; place-items: center; }.landing-nav { position: absolute; top: 65px; right: 16px; left: 16px; display: none; align-items: stretch; padding: 18px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }.landing-nav[data-mobile-open="true"] { display: grid; }.landing-nav .language-switcher { justify-content: center; }.landing-nav .btn { width: 100%; }
  .hero-grid { grid-template-columns: 1fr; }
  .steps-grid, .benefits-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }.pricing-card { grid-template-columns: 1fr 1.2fr; }.pricing-card > div:last-child { grid-column: 1 / -1; }.footer-grid { grid-template-columns: 1fr 1fr; }
  .register-layout { grid-template-columns: 1fr; max-width: 700px; }.register-copy { padding-top: 0; }.register-card { max-width: 620px; width: 100%; margin-inline: auto; }.welcome-choices { grid-template-columns: 1fr; max-width: 700px; margin-inline: auto; }.welcome-card { max-width: none; }.shop-layout { grid-template-columns: 1fr; max-width: 760px; margin-inline: auto; }.shop-card { max-width: none; }.shop-order { position: static; }
}
@media (max-width: 680px) {
  .landing-container { width: min(100% - 28px,1180px); }.landing-hero { padding-block: 64px; }.landing-hero h1 { font-size: 42px; }.hero-actions { align-items: stretch; flex-direction: column; }.hero-actions .btn { width: 100%; }
  .comparison-grid, .steps-grid, .benefits-grid, .two-column, .pricing-card, .footer-grid { grid-template-columns: 1fr; }.feature-list { grid-template-columns: 1fr; }.pricing-card > div:last-child { grid-column: auto; }.distributor-box { align-items: stretch; flex-direction: column; }.distributor-box .btn { width: 100%; }.landing-card { padding: 20px; }
  .contact-layout, .contact-form { grid-template-columns: 1fr; }.contact-form .full-field, .contact-form .btn, .contact-note, .contact-status { grid-column: auto; }.contact-form .btn { width: 100%; }
  .register-main { padding-top: 30px; }.register-copy h1, .welcome-intro h1, .shop-heading h1 { font-size: 39px; }.register-intro, .welcome-intro > p:last-child, .shop-heading > p:last-child { font-size: 16px; }.register-benefits { padding: 21px; }.register-card { padding: 24px 20px; border-radius: 18px; }.welcome-card .btn { width: 100%; }.shop-form-grid { grid-template-columns: 1fr; }.shop-form-wide { grid-column: auto; }.quote-timeline button { gap: 6px; padding-inline: 2px; }.quote-timeline button > span { width: 30px; height: 30px; }.quote-timeline li:not(:last-child)::after { top: 14px; }.quote-timeline button strong { font-size: 10px; }.quote-product-row { grid-template-columns: 1fr; padding: 18px; }.quote-product-quantity { max-width: 230px; }.quote-actions { align-items: stretch; flex-direction: column-reverse; }.quote-actions .btn { width: 100%; }.quote-actions-end { flex-direction: column; }.quote-review-line { align-items: flex-start; flex-direction: column; gap: 2px; }.quote-review-line span:last-child { text-align: left; }.shop-product-visual { margin-bottom: 24px; }.shop-product-copy .feature-list { grid-template-columns: 1fr; }.shop-summary { padding: 18px 16px; }
  .quote-confirmation-page .welcome-shell { width: calc(100% - 32px); }.quote-confirmation-intro h1 { font-size: 34px; }.quote-confirmation-text { font-size: 16px; }
}

.remote-rules { display: grid; gap: 10px; }
.remote-rule-row { display: grid; grid-template-columns: .8fr 1fr 1fr auto; gap: 10px; align-items: end; }
.remote-rule-row.is-locked { grid-template-columns: .8fr 1fr 1fr; }
.remote-rule-add[hidden], .remote-rule-remove[hidden] { display: none; }
.remote-rule-remove { min-height: 40px; }
.remote-rule-add { justify-self: start; }
.remote-profile-note { margin: 0; color: var(--muted); }
.remote-profile-note code { font: inherit; }
@media (max-width: 620px) { .remote-rule-row { grid-template-columns: 1fr; } }
.account-administration-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.account-administration-heading .btn { flex: 0 0 auto; }
.account-users-table { min-width: 920px; }
.account-user-email { overflow-wrap: anywhere; }
.account-user-role { min-height: 38px; padding: 0 10px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--ink); font: inherit; }
.account-user-role:focus { outline: 3px solid rgba(35, 94, 159, .16); border-color: var(--primary); }
.account-user-role:disabled { cursor: wait; opacity: .65; }
.account-user-dialog { max-width: 620px; }
.account-user-form { padding: 24px 28px 28px; }
.account-user-dialog > .app-message { margin: 24px 28px 0; }
.account-user-form .account-form-actions { gap: 10px; }
@media (max-width: 620px) {
  .account-administration-heading { align-items: stretch; flex-direction: column; }
  .account-administration-heading .btn { width: 100%; }
  .account-user-form { padding: 20px; }
}

.account-rescuelans-table { min-width: 920px; }
.account-rescuelan-link { color: var(--primary); font-weight: 700; text-decoration: none; }
.account-rescuelan-link:hover, .account-rescuelan-link:focus-visible { text-decoration: underline; }
.account-rescuelan-row { cursor: pointer; }
.account-rescuelan-row:hover td, .account-rescuelan-row:focus-visible td { background: rgba(35, 94, 159, .06); }
.account-rescuelan-row:focus-visible { outline: 3px solid rgba(35, 94, 159, .16); outline-offset: -3px; }

.account-groups-list { display: grid; gap: 12px; }
.account-group-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.account-group-row strong { color: var(--ink); font-size: 1rem; }
@media (max-width: 620px) { .account-group-row { align-items: stretch; flex-direction: column; } .account-group-row .btn { width: 100%; } }

.account-group-actions, .account-rescuelan-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.account-rescuelan-actions { min-width: 160px; flex-wrap: nowrap; }
.account-group-actions .btn-small, .account-rescuelan-actions .btn-small { min-height: 36px; padding: 7px 12px; }

.dashboard-groups { display: grid; gap: 30px; }
.dashboard-group-section { display: grid; gap: 14px; }
.dashboard-group-section > h2 { margin: 0; color: var(--ink); font-size: 1.35rem; }
.dashboard-group-empty { grid-column: 1 / -1; margin: 0; padding: 20px; color: var(--muted); border: 1px dashed var(--line); border-radius: 12px; background: #fff; }
.account-users-table { min-width: 920px; }
.account-unpair-warning { grid-column: 1 / -1; display: grid; gap: 12px; color: var(--ink); }
.account-unpair-warning p { margin: 0; line-height: 1.55; }
#open-pair-modal[hidden], #empty-add-box[hidden] { display: none !important; }
#open-pair-modal, #empty-add-box { background: #25385f; }

/* Dashboard overview */
.dashboard-page { max-width: 1280px; }
.dashboard-overview { display: grid; gap: 16px; }
.dashboard-overview[hidden] { display: none; }
.dashboard-park-state,
.dashboard-indicator,
.dashboard-panel { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 4px 14px rgba(17,24,39,.025); }
.dashboard-park-state { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 32px; min-height: 132px; padding: 24px 28px; background: linear-gradient(110deg, #fff 0%, #f8fafc 100%); }
.dashboard-park-copy h2 { margin: 0 0 12px; font-size: 16px; }
.dashboard-park-summary { display: flex; align-items: center; gap: 13px; margin: 0; font-size: 17px; }
.dashboard-status-dot { width: 14px; height: 14px; flex: 0 0 14px; background: #12a66a; border-radius: 50%; box-shadow: 0 0 0 5px rgba(18,166,106,.08); }
.dashboard-park-state[data-state="warning"] .dashboard-status-dot { background: #e58a16; box-shadow: 0 0 0 5px rgba(229,138,22,.09); }
.dashboard-park-state[data-state="critical"] .dashboard-status-dot { background: #d94154; box-shadow: 0 0 0 5px rgba(217,65,84,.08); }
.dashboard-park-detail { margin: 8px 0 0 27px; color: var(--muted); font-size: 13px; }
.dashboard-sync { display: grid; min-width: 210px; gap: 5px; padding: 7px 10px 7px 28px; border-left: 1px solid var(--line); }
.dashboard-sync[hidden] { display: none; }
.dashboard-sync span { color: var(--muted); font-size: 12px; }
.dashboard-sync strong { font-size: 14px; font-weight: 700; }
.dashboard-indicators { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.dashboard-indicator { display: flex; min-height: 108px; align-items: center; gap: 20px; padding: 18px 22px; }
.dashboard-indicator > div { min-width: 0; flex: 1; }
.dashboard-indicator-icon { display: grid; width: 58px; height: 58px; flex: 0 0 58px; place-items: center; color: var(--brand); background: #f1f4f8; border-radius: 50%; }
.dashboard-indicator-icon.is-blue { color: #1473e6; background: #f0f6fd; }
.dashboard-indicator-icon svg,
.dashboard-empty-icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dashboard-indicator-value { display: block; font-size: 27px; line-height: 1; letter-spacing: -.03em; }
.dashboard-indicator h2 { margin: 5px 0 1px; font-size: 15px; }
.dashboard-indicator p { margin: 0; color: var(--muted); font-size: 13px; }
.dashboard-indicator-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 32px; }
.dashboard-indicator-link { color: var(--blue); font-size: 12px; font-weight: 750; white-space: nowrap; }
.dashboard-lower-grid { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(340px,.85fr); gap: 12px; align-items: stretch; }
.dashboard-panel { min-width: 0; min-height: 350px; overflow: hidden; }
.dashboard-panel-header { display: flex; min-height: 58px; align-items: center; justify-content: space-between; gap: 16px; padding: 0 20px; border-bottom: 1px solid var(--line); }
.dashboard-panel-header h2 { margin: 0; font-size: 16px; }
.dashboard-panel-header a { color: var(--blue); font-size: 12px; font-weight: 750; }
.dashboard-panel-header a::after { margin-left: 7px; content: "→"; }
.dashboard-activities-list { display: grid; }
.dashboard-activity { display: grid; grid-template-columns: 68px minmax(0,1fr) auto; align-items: center; gap: 12px; min-height: 62px; padding: 10px 20px; border-bottom: 1px solid var(--line); }
.dashboard-activity:last-child { border-bottom: 0; }
.dashboard-activity-type { color: var(--brand); font-size: 12px; font-weight: 800; }
.dashboard-activity-details { display: flex; min-width: 0; align-items: center; gap: 8px; overflow: hidden; font-size: 12px; }
.dashboard-activity-box { overflow: hidden; color: var(--text); font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-activity-host { overflow: hidden; color: var(--muted); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-activity-host::before { margin-right: 8px; color: var(--line-strong); content: "·"; }
.dashboard-activity-date { color: var(--muted); font-size: 11px; white-space: nowrap; }
.dashboard-sessions-content { min-width: 0; }
.dashboard-sessions-table-wrap { width: 100%; overflow-x: auto; }
.dashboard-sessions-table { width: 100%; border-collapse: collapse; font-size: 12px; white-space: nowrap; }
.dashboard-sessions-table th { padding: 10px 14px; color: var(--muted); background: #f7f9fc; font-size: 10px; font-weight: 800; text-align: left; text-transform: uppercase; letter-spacing: .035em; }
.dashboard-sessions-table td { padding: 11px 14px; color: var(--text); border-top: 1px solid var(--line); }
.dashboard-sessions-table td:first-child { font-weight: 750; }
.dashboard-panel-empty { display: grid; min-height: 290px; align-content: center; justify-items: center; gap: 8px; padding: 34px; color: var(--muted); text-align: center; }
.dashboard-panel-empty strong { color: var(--text); font-size: 16px; }
.dashboard-panel-empty p { max-width: 450px; margin: 0; font-size: 13px; line-height: 1.55; }
.dashboard-empty-icon { display: grid; width: 58px; height: 58px; margin-bottom: 8px; place-items: center; color: #718096; background: #f3f6f9; border-radius: 50%; }

@media (max-width: 960px) {
  .dashboard-lower-grid { grid-template-columns: 1fr; }
  .dashboard-panel { min-height: 310px; }
  .dashboard-panel-empty { min-height: 250px; }
}
@media (max-width: 620px) {
  .dashboard-park-state { grid-template-columns: 1fr; gap: 18px; padding: 20px; }
  .dashboard-park-detail { margin-left: 27px; }
  .dashboard-sync { min-width: 0; padding: 16px 0 0; border-top: 1px solid var(--line); border-left: 0; }
  .dashboard-indicators { grid-template-columns: 1fr; }
  .dashboard-indicator { padding: 17px 18px; }
  .dashboard-panel-header { padding-inline: 16px; }
  .dashboard-activity { grid-template-columns: 60px minmax(0,1fr); gap: 5px 10px; padding-inline: 16px; }
  .dashboard-activity-date { grid-column: 2; }
}

/* Dashboard 2026 */
.dashboard-page { max-width: 1440px; padding-top: 26px; }
.dashboard-title-row { align-items: center; margin-bottom: 18px; }
.dashboard-title-row .page-title h1 { font-size: clamp(30px, 3vw, 42px); line-height: 1; letter-spacing: -.045em; }
.dashboard-title-row .page-title p { margin-top: 6px; font-size: 14px; }
.dashboard-sync-row { display: flex; align-items: center; gap: 18px; }
.dashboard-sync { display: grid; min-width: 0; gap: 2px; padding: 0; border: 0; text-align: right; }
.dashboard-sync span { font-size: 16px; font-weight: 760; text-transform: capitalize; }
.dashboard-sync strong { font-size: 13px; }
.dashboard-overview { gap: 20px; }
.dashboard-indicators { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
.dashboard-indicator { min-height: 112px; gap: 16px; padding: 16px 18px; border-radius: 7px; box-shadow: none; }
.dashboard-indicator-icon { width: 52px; height: 52px; flex-basis: 52px; color: #003b83; background: #eaf2fa; }
.dashboard-indicator-icon svg { width: 27px; height: 27px; stroke-width: 1.9; }
.dashboard-indicator-icon.is-online { background: #e5f7ee; }
.dashboard-indicator-icon.is-warning { background: #fff3d8; }
.dashboard-indicator-icon i { display: block; width: 17px; height: 17px; background: #00a86b; border-radius: 50%; }
.dashboard-indicator-icon.is-warning i { background: #f5a400; }
.dashboard-indicator-icon.is-warning.is-clear { background: #e5f7ee; }
.dashboard-indicator-icon.is-warning.is-clear i { background: #00a86b; }
.dashboard-indicator-value { display: inline; font-size: 28px; }
.dashboard-indicator h2 { margin: 2px 0 0; color: var(--ink); font-size: 13px; line-height: 1.15; }
.dashboard-indicator p { margin-top: 3px; color: #536b9e; font-size: 12px; }
.dashboard-status-grid { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,.9fr); gap: 10px; }
.dashboard-status-grid .dashboard-panel { min-height: 0; border-radius: 7px; box-shadow: none; }
.dashboard-panel-header { min-height: 45px; padding: 0 16px; }
.dashboard-panel-header h2 { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.dashboard-panel-header h2 > svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dashboard-panel-header h2 > span { display: inline-grid; min-width: 24px; height: 24px; padding: 0 7px; place-items: center; color: var(--ink); background: #e8eef7; border-radius: 999px; font-size: 11px; }
.dashboard-panel-header h2 > i,
.dashboard-attention-row > i { display: inline-grid; width: 24px; height: 24px; flex: 0 0 24px; place-items: center; color: #172039; background: #ffbd22; border-radius: 50%; font-style: normal; font-weight: 900; }
.dashboard-panel-header h2 > i.is-clear { color: #fff; background: #00a86b; }
.dashboard-box-table { overflow-x: auto; }
#dashboard-connected-list { display: block; min-height: 48px; }
.dashboard-box-table-head,
.dashboard-box-row { display: grid; width: 100%; grid-template-columns: minmax(190px,1.15fr) minmax(130px,.75fr) minmax(90px,.6fr); align-items: center; column-gap: 10px; }
.dashboard-box-table-head { min-height: 28px; padding: 0 16px 0 48px; color: #52668f; background: #f5f8fb; font-size: 10px; }
.dashboard-box-row { min-height: 48px; padding: 5px 14px; color: #172039; border-top: 1px solid var(--line); text-decoration: none; font-size: 12px; }
.dashboard-box-row:hover,
.dashboard-attention-row:hover { background: #f8fafc; }
.dashboard-box-identity { display: flex; min-width: 0; align-items: center; gap: 16px; }
.dashboard-box-identity > i { width: 11px; height: 11px; flex: 0 0 11px; background: #00aa72; border-radius: 50%; }
.dashboard-box-identity > span,
.dashboard-attention-row > span { display: grid; min-width: 0; }
.dashboard-box-identity strong,
.dashboard-attention-row strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-box-identity small,
.dashboard-attention-row small { margin-top: 2px; color: #536b9e; font-size: 11px; }
.dashboard-connected-empty { min-height: 62px; margin: 0; display: grid; place-items: center; color: var(--muted); font-size: 13px; }
.dashboard-row-arrow { justify-self: end; font-size: 22px; line-height: 1; }
.dashboard-attention-list { display: grid; gap: 9px; padding: 10px; }
.dashboard-attention-clear { display: flex; min-height: 62px; align-items: center; justify-content: center; gap: 7px; margin: 0; color: var(--text); font-size: 13px; font-weight: 400; text-align: center; }
.dashboard-attention-clear > span { color: #008c5d; font-size: 17px; font-weight: 750; }
.dashboard-attention-row { display: grid; grid-template-columns: 24px minmax(150px,.85fr) minmax(170px,1.15fr) 18px; min-height: 52px; align-items: center; gap: 14px; padding: 7px 10px; color: #172039; background: #f4f7fb; border-radius: 7px; text-decoration: none; font-size: 12px; }
.dashboard-attention-row > span:nth-of-type(2) > strong { color: #53618b; font-weight: 650; }
.dashboard-log { min-height: 310px; border-radius: 7px; box-shadow: none; }
.dashboard-log-header { display: flex; min-height: 52px; align-items: center; justify-content: space-between; gap: 20px; padding: 0 18px; }
.dashboard-log-header h2 { display: flex; align-items: center; gap: 13px; margin: 0; font-size: 16px; }
.dashboard-log-header h2 svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dashboard-log-header > a { font-size: 15px; font-weight: 800; }
.dashboard-log-header b { margin-left: 16px; font-size: 24px; font-weight: 400; }
.dashboard-log-tabs { display: flex; min-height: 35px; align-items: end; gap: 18px; padding: 0 15px; border-bottom: 1px solid var(--line); }
.dashboard-log-tabs button { min-width: 56px; padding: 0 5px 9px; color: #354f80; background: transparent; border: 0; border-bottom: 2px solid transparent; font-size: 11px; cursor: default; }
.dashboard-log-tabs button.is-active { color: #066bf0; border-bottom-color: #066bf0; }
.dashboard-log-table-wrap { overflow-x: auto; }
.dashboard-log-table { width: 100%; border-collapse: collapse; white-space: nowrap; }
.dashboard-log-table th { height: 27px; padding: 0 16px; color: #52668f; background: #f5f8fb; font-size: 10px; font-weight: 600; text-align: left; }
.dashboard-log-table th:nth-child(1) { width: 15%; }
.dashboard-log-table th:nth-child(2) { width: 10%; }
.dashboard-log-table th:nth-child(3) { width: 18%; }
.dashboard-log-table th:nth-child(4) { width: 16%; }
.dashboard-log-table th:nth-child(5) { width: 17%; }
.dashboard-log-table th:nth-child(6) { width: 14%; }
.dashboard-log-table td { height: 34px; padding: 5px 16px; color: #263956; border-top: 1px solid var(--line); font-size: 11px; }
.dashboard-log-table td:nth-child(3) { color: var(--ink); font-weight: 700; }
.dashboard-log-type { color: #1e477f !important; font-weight: 750; }
.dashboard-log-empty { height: 150px !important; color: var(--muted) !important; text-align: center; }

@media (max-width: 1050px) {
  .dashboard-indicators { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .dashboard-status-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .dashboard-title-row { align-items: flex-start; }
  .dashboard-sync-row { width: 100%; justify-content: space-between; }
  .dashboard-sync { border: 0; text-align: left; }
  .dashboard-indicators { grid-template-columns: 1fr; }
  .dashboard-box-table-head, .dashboard-box-row { min-width: 520px; }
  .dashboard-attention-row { grid-template-columns: 24px minmax(0,1fr) 18px; }
  .dashboard-attention-row > span:nth-of-type(2) { grid-column: 2; }
  .dashboard-attention-row .dashboard-row-arrow { grid-column: 3; grid-row: 1 / span 2; }
  .dashboard-log-header > a { font-size: 12px; }
}

.password-criteria { display: grid; gap: 6px; margin: -2px 0 8px; padding: 0; list-style: none; color: var(--muted); font-size: .86rem; }
.password-criteria li { display: flex; align-items: center; gap: 8px; }
.password-criteria li::before { content: "○"; color: #8d6670; font-weight: 800; }
.password-criteria li.is-met { color: #236b45; }
.password-criteria li.is-met::before { content: "✓"; color: #236b45; }
.password-criteria li.is-missing { color: #765761; }
