:root {
  --bg: #efe8dc;
  --ink: #1c1917;
  --muted: #6f6860;
  --line: #e4dcd0;
  --card: #fffcf8;
  --accent: #0f766e;
  --accent-hover: #0d9488;
  --accent-soft: #ecfdf8;
  --danger: #b42318;
  --shadow: 0 1px 1px rgba(28, 25, 23, 0.04), 0 12px 32px rgba(28, 25, 23, 0.07);
  --radius: 16px;
  --ease: 160ms ease;
}
html, body {
  background-color: var(--bg);
  background-image:
    radial-gradient(980px 420px at 88% -10%, rgba(15, 118, 110, 0.13), transparent 58%),
    radial-gradient(720px 380px at -6% 108%, rgba(196, 122, 62, 0.1), transparent 54%),
    linear-gradient(180deg, #f5efe6 0%, #efe8dc 42%, #ebe3d6 100%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: Vazirmatn, Tahoma, sans-serif;
  font-size: 15px;
  line-height: 1.65;
}
.app-nav {
  background: linear-gradient(180deg, #241f1b 0%, #151311 100%);
  min-height: 64px;
  border-bottom: 0;
  box-shadow:
    inset 0 -3px 0 #0f766e,
    0 10px 28px rgba(20, 18, 16, 0.22);
}
.navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff !important;
}
.brand-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  object-fit: cover;
  box-shadow: 0 0 0 2px rgba(45, 212, 191, 0.18);
}
.brand-icon-lg {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(15, 118, 110, 0.22);
}
.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}
.brand-kicker {
  font-size: 10px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.62);
  white-space: nowrap;
}
.brand-name {
  font-size: 16px;
  font-weight: 800;
}
@media (max-width: 1399.98px) {
  .brand-kicker { display: none; }
}
.app-nav .nav-link {
  color: rgba(255, 255, 255, 0.62) !important;
  font-weight: 600;
  font-size: 13px;
  padding: 7px 10px !important;
  border-radius: 10px;
  white-space: nowrap;
  transition: background var(--ease), color var(--ease);
}
.app-nav .nav-link:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.08);
}
.app-nav .nav-link.active {
  color: #fff !important;
  background: linear-gradient(180deg, rgba(20, 149, 140, 0.55) 0%, rgba(15, 118, 110, 0.42) 100%);
  box-shadow: inset 0 0 0 1px rgba(94, 234, 212, 0.28);
}
.app-nav .nav-link {
  padding: 7px 8px !important;
}
.app-nav .nav-count {
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.46);
}
.app-nav .nav-link:hover .nav-count,
.app-nav .nav-link.active .nav-count {
  color: rgba(255, 255, 255, 0.74);
}
.app-nav-logout .btn {
  border-radius: 999px;
  border-color: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.82);
  padding-inline: 14px;
}
.app-nav-logout .btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}
@media (min-width: 992px) {
  .app-nav .navbar-collapse {
    display: flex !important;
    flex-grow: 1;
    flex-wrap: nowrap;
    align-items: center;
    min-width: 0;
  }
  .app-nav-links {
    flex: 1 1 auto;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 0;
    min-width: 0;
  }
  .app-nav-logout {
    flex-shrink: 0;
    margin-inline-start: 8px;
  }
}
.app-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 20px 56px;
}
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.page-crumb {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 4px;
}
.page-crumb a { color: var(--muted); text-decoration: none; }
.page-crumb a:hover { color: var(--accent); }
.page-title {
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0;
  line-height: 1.3;
  color: #1a1714;
}
.page-title::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-inline-end: 8px;
  border-radius: 3px;
  background: linear-gradient(145deg, #2dd4bf, var(--accent));
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.14);
  vertical-align: 1px;
}
.page-kicker { font-size: 14px; margin-top: 4px; }
.page-kicker a { color: var(--accent); font-weight: 600; text-decoration: none; }
.page-kicker a:hover { text-decoration: underline; }
.page-actions { display: flex; gap: 8px; flex-shrink: 0; }
.page-head-search {
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.page-head-search-form {
  flex: 1;
  display: flex;
  justify-content: center;
  min-width: 0;
}
.page-head-search-form .search-row {
  width: min(100%, 720px);
  margin: 0;
}
.page-head-search .omni-search {
  width: min(100%, 560px);
  margin: 0;
}
.page-head-search-form .search-row .omni-search {
  width: auto;
  flex: 1 1 200px;
  max-width: none;
}
@media (max-width: 767px) {
  .page-head-search-form {
    order: 3;
    flex-basis: 100%;
  }
}
.form-sticky {
  position: sticky;
  top: 12px;
  z-index: 40;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  padding: 12px 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(28, 25, 23, 0.08);
}
.form-sticky-copy {
  min-width: 0;
}
.form-sticky-copy span {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.form-sticky-copy b {
  display: block;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.form-sticky-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.card-quiet {
  background: var(--card);
  border: 1px solid rgba(228, 220, 208, 0.95);
  border-radius: var(--radius);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  overflow: hidden;
}
.card-quiet:has(table):not(:has(.table-fit)) {
  overflow-x: auto;
}
.card-body-pad { padding: 20px 22px; }
.table { font-size: 14px; margin: 0; }
.table thead th {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  background: linear-gradient(180deg, #fbf7f0 0%, #f6f0e6 100%);
  border-bottom: 1px solid var(--line);
  padding: 13px 16px;
  white-space: nowrap;
}
.table thead th.is-sort {
  cursor: pointer;
  user-select: none;
}
.table thead th.is-sort:hover { color: var(--ink); }
.table thead th[aria-sort="ascending"]::after,
.table thead th[aria-sort="descending"]::after {
  content: " ▲";
  font-size: 9px;
  color: var(--accent);
  margin-inline-start: 4px;
}
.table thead th[aria-sort="descending"]::after { content: " ▼"; }
.table tbody td {
  padding: 13px 16px;
  vertical-align: middle;
  border-color: var(--line);
}
.table tbody tr {
  transition: background var(--ease);
}
.table tbody tr:nth-child(even) { background: rgba(251, 247, 240, 0.62); }
.table-hover tbody tr:hover,
.table tbody tr:hover { background: #efe8dc; }
.table .btn-sm {
  border-radius: 999px;
  padding-inline: 12px;
}
.table .col-rownum {
  width: 1%;
  white-space: nowrap;
  text-align: center;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.table-fit {
  table-layout: fixed;
  width: 100%;
}
.table-fit thead th {
  white-space: normal;
  padding: 10px 8px;
  line-height: 1.3;
}
.table-fit tbody td {
  padding: 10px 8px;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.table-fit .col-rownum {
  overflow-wrap: normal;
  word-break: normal;
}
.table-fit .col-actions {
  width: 5.75rem;
  white-space: normal;
}
.table-fit .col-actions .btn {
  display: block;
  width: 100%;
  margin-bottom: 4px;
}
.table-fit .col-actions .btn:last-child {
  margin-bottom: 0;
}
.table-servers thead th {
  white-space: nowrap;
  padding: 12px 10px;
  text-align: right;
  vertical-align: middle;
}
.table-servers tbody td {
  padding: 12px 10px;
  overflow-wrap: normal;
  word-break: normal;
}
.table-servers col.col-w-row { width: 3.25rem; }
.table-servers col.col-w-title { width: 20%; }
.table-servers col.col-w-type { width: 8%; }
.table-servers col.col-w-ip { width: 11%; }
.table-servers col.col-w-vendor { width: 11%; }
.table-servers col.col-w-panel { width: 22%; }
.table-servers col.col-w-date { width: 11%; }
.table-servers col.col-w-actions { width: 8.5rem; }
.table-servers .col-rownum {
  text-align: center;
}
.table-servers .col-title {
  font-weight: 600;
}
.table-servers .col-ip,
.table-servers .col-date {
  white-space: nowrap;
}
.table-servers .col-panel {
  max-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.table-servers .col-actions {
  width: auto;
  white-space: nowrap;
  text-align: left;
}
.table-servers .col-actions .btn {
  display: inline-block;
  width: auto;
  margin-bottom: 0;
}
.table a { color: var(--accent); text-decoration: none; font-weight: 600; }
.table a:hover { text-decoration: underline; }
.badge-status {
  font-weight: 600;
  font-size: 12px;
  border: 1px solid var(--line);
  background: #fff !important;
  color: var(--ink) !important;
  border-radius: 999px;
  padding: 4px 10px;
}
.badge-status.is-on {
  color: #0f766e !important;
  border-color: #99f6e4;
  background: #f0fdfa !important;
}
.badge-status.is-off {
  color: var(--danger) !important;
  border-color: #fecaca;
  background: #fef2f2 !important;
}
.stat {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  padding: 16px 18px 16px 18px;
  display: block;
  color: inherit;
  text-decoration: none;
  overflow: hidden;
  transition: border-color var(--ease), box-shadow var(--ease), transform var(--ease);
}
.stat::before {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: 4px;
  background: var(--line);
}
a.stat:hover {
  border-color: #99f6e4;
  box-shadow: 0 12px 26px rgba(15, 118, 110, 0.1);
  transform: translateY(-1px);
}
.stat.is-warn {
  border-color: #fcd9b6;
  background: linear-gradient(180deg, #fffbeb 0%, #fff 100%);
}
.stat.is-warn::before { background: linear-gradient(180deg, #fbbf24, #d97706); }
.stat.is-warn.is-active {
  border-color: #f59e0b;
  background: linear-gradient(180deg, #fff7ed 0%, #fffbeb 100%);
}
.stat.is-active { border-color: #99f6e4; background: var(--accent-soft); }
.stat.is-active::before { background: linear-gradient(180deg, #2dd4bf, var(--accent)); }
.stat b {
  display: block;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.stat span { color: var(--muted); font-size: 12px; font-weight: 600; }
.sites-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.sites-stats .stat-due {
  display: block;
}
@media (min-width: 768px) {
  .sites-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.section-head {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  letter-spacing: 0.02em;
  position: relative;
}
.section-head::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  bottom: -1px;
  width: 42px;
  height: 2px;
  border-radius: 99px;
  background: var(--accent);
}
.alert { border-radius: 12px; }
.row.g-0 > [class*="col-"] {
  border-bottom: 1px solid var(--line);
}
@media (min-width: 768px) {
  .row.g-0 > .col-md-6:nth-child(odd of .col-md-6) {
    border-inline-end: 1px solid var(--line);
  }
}
.fact-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 4px;
}
.fact-value {
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  margin: 0;
  word-break: break-word;
}
.fact-value.is-empty { color: #a8a29e; font-weight: 500; }
.fact-value a, .value-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}
.fact-value a:hover, .value-link:hover { text-decoration: underline; }
.is-ltr { direction: ltr; unicode-bidi: isolate; }
.fact-value.is-ltr { text-align: right; }
.secret-box {
  font-family: ui-monospace, Tahoma, sans-serif;
  background: #1c1917;
  color: #f5f5f4;
  border-radius: 8px;
  padding: 8px 12px;
  word-break: break-all;
}
.secret-input {
  position: relative;
}
.secret-input .form-control {
  padding-right: 2.75rem;
}
.secret-toggle {
  position: absolute;
  top: 50%;
  right: 2px;
  left: auto;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  color: #44403c;
  display: grid;
  place-items: center;
  border-radius: 8px;
  padding: 0;
}
.secret-toggle:hover,
.secret-toggle:focus-visible {
  color: var(--ink);
}
.secret-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.filter-bar { gap: 8px; }
.filter-group { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.filter-label {
  color: var(--muted);
  font-weight: 600;
  min-width: 88px;
  font-size: 12px;
}
.filter-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}
.filter-check:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.filter-check input { width: 16px; height: 16px; accent-color: var(--accent); }
.btn {
  border-radius: 10px;
  font-weight: 600;
  transition: background var(--ease), border-color var(--ease), color var(--ease), box-shadow var(--ease);
}
.btn-accent {
  background: linear-gradient(180deg, #1aa89d 0%, var(--accent) 100%);
  color: #fff;
  border: 0;
  box-shadow: 0 6px 16px rgba(15, 118, 110, 0.26);
}
.btn-accent:hover {
  background: linear-gradient(180deg, #14b8a6 0%, var(--accent-hover) 100%);
  color: #fff;
}
.btn-outline-dark {
  border-color: #d6d3d1;
  color: var(--ink);
  background: #fff;
}
.btn-outline-dark:hover { background: #1c1917; border-color: #1c1917; color: #fff; }
.btn-outline-danger { border-color: #fecaca; color: var(--danger); background: #fff; }
.btn-outline-danger:hover { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-outline-dark {
  border-color: #d6d3d1;
  color: var(--ink);
  background: #fff;
}
.btn-outline-dark:hover { background: #1c1917; border-color: #1c1917; color: #fff; }
.btn-outline-danger { border-color: #fecaca; color: var(--danger); background: #fff; }
.btn-outline-danger:hover { background: var(--danger); border-color: var(--danger); color: #fff; }
.form-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 6px;
}
.form-control, .form-select {
  border-radius: 10px;
  min-height: 42px;
  border-color: var(--line);
  background: #fff;
  box-shadow: inset 0 1px 2px rgba(28, 25, 23, 0.03);
}
.form-control:focus, .form-select:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.14);
  border-color: var(--accent);
}
.lookup-edit {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  width: 100%;
}
.lookup-edit .lookup-fields,
.lookup-edit > form {
  display: contents;
}
.lookup-edit input[type="hidden"] {
  display: none;
}
.lookup-edit .lookup-name {
  flex: 1 1 14rem;
  min-width: 8rem;
  width: auto;
}
.lookup-edit .lookup-type {
  flex: 0 1 11rem;
  width: 11rem;
  min-width: 8rem;
}
.lookup-edit .btn {
  flex: 0 0 auto;
  white-space: nowrap;
}
.lookup-add {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 8px;
}
.lookup-add .lookup-name {
  width: min(22rem, 100%);
}
.lookup-add .lookup-type {
  width: 11rem;
}
@media (max-width: 575.98px) {
  .table tbody td {
    padding: 10px 8px;
  }
  .lookup-edit,
  .lookup-add {
    width: 100%;
  }
  .lookup-edit .lookup-name,
  .lookup-edit .lookup-type,
  .lookup-add .lookup-name,
  .lookup-add .lookup-type {
    flex: 1 1 calc(50% - 8px);
    width: auto;
    min-width: 0;
  }
  .lookup-add > div {
    flex: 1 1 calc(50% - 8px);
    min-width: 0;
  }
  .lookup-add .btn {
    flex: 1 1 100%;
  }
  .lookup-edit .btn {
    min-height: 40px;
    padding: 6px 12px;
  }
}
.ocr-drop {
  border: 1.5px dashed #5eead4;
  border-radius: 14px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.7), transparent 46%),
    var(--accent-soft);
  padding: 28px 16px;
  text-align: center;
}
.ocr-drop.is-over { border-color: var(--accent); background: #d1fae5; }
.ocr-drop-label { cursor: pointer; font-weight: 600; color: var(--accent); margin: 0; }
.ocr-filled { border-color: var(--accent) !important; background: #f0fdfa; }
.empty-state {
  color: var(--muted);
  font-size: 14px;
  padding: 36px 8px;
  text-align: center;
}
.empty-state::before {
  content: "";
  display: block;
  width: 42px;
  height: 42px;
  margin: 0 auto 12px;
  border: 2px dashed #d6cfc4;
  border-radius: 12px;
  background: radial-gradient(circle at 30% 30%, #fff, #f6f0e6);
}
.related-list { list-style: none; padding: 0; margin: 0; }
.related-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
}
.related-list li:last-child { border-bottom: 0; }
.nav-pills {
  gap: 6px;
}
.nav-pills .nav-link {
  color: var(--muted);
  font-weight: 600;
  font-size: 13px;
  border-radius: 999px;
  padding: 7px 14px;
  background: #fff;
  border: 1px solid var(--line);
}
.nav-pills .nav-link:hover { color: var(--ink); border-color: #d6cfc4; }
.nav-pills .nav-link.active {
  background: linear-gradient(180deg, #14b8a6 0%, var(--accent) 100%);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 6px 14px rgba(15, 118, 110, 0.22);
}
.login-wrap { max-width: 420px; margin: 0 auto; }
body.is-login .app-main {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 32px 20px;
}
.login-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 22px;
  color: var(--ink);
}
.login-name {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.03em;
  line-height: 1.35;
  max-width: 14rem;
}
.login-card {
  position: relative;
}
.login-card::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 4px;
  background: linear-gradient(90deg, #2dd4bf, var(--accent));
}
.fill-meter { min-width: 72px; }
.fill-meter b {
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.fill-bar {
  display: block;
  height: 6px;
  margin-top: 6px;
  border-radius: 99px;
  background: var(--line);
  overflow: hidden;
}
.fill-bar > i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0f766e, #2dd4bf);
}
.fill-meter.is-mid .fill-bar > i { background: linear-gradient(90deg, #d97706, #fbbf24); }
.fill-meter.is-low .fill-bar > i { background: linear-gradient(90deg, #b42318, #f87171); }
.omni-search {
  position: relative;
  max-width: 720px;
}
.search-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.search-row .omni-search {
  flex: 1 1 240px;
  max-width: none;
  min-width: 0;
}
.search-row .form-select {
  width: auto;
  min-width: 148px;
  max-width: 220px;
  height: 52px;
  border-radius: 12px;
}
.search-row .btn {
  height: 52px;
  padding-inline: 18px;
}
.search-row.is-wide .form-select {
  min-width: 128px;
  max-width: 168px;
  flex: 0 1 160px;
}
.search-row.is-wide .omni-search {
  flex: 1 1 220px;
}
.omni-search-icon {
  position: absolute;
  inset-inline-start: 18px;
  top: 50%;
  width: 20px;
  height: 20px;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}
.omni-search-input {
  width: 100%;
  height: 52px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding-inline-start: 48px;
  padding-inline-end: 20px;
  font-size: 16px;
  background: #fff;
  box-shadow: var(--shadow);
}
.omni-search-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.18), var(--shadow);
}
.omni-search-input::-webkit-search-cancel-button { -webkit-appearance: none; }
.import-head { font-weight: 700; }
.import-flag {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f5f5f4;
  color: var(--muted);
}
.import-flag.is-new { background: #ecfdf5; color: var(--accent); }
.import-flag.is-fill { background: #fff7ed; color: #c2410c; }
.import-flag.is-keep { background: #f5f5f4; color: var(--muted); }
.import-diff td { vertical-align: top; }
.import-diff .is-empty { color: var(--muted); }
.import-diff tr.will-fill td:last-child { font-weight: 600; color: var(--accent); }
.import-result {
  list-style: none;
  padding: 0;
  margin: 0;
}
.import-result li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.import-result li:last-child { border-bottom: 0; }
.import-result a { font-weight: 600; color: var(--accent); text-decoration: none; }
.about-page {
  max-width: 520px;
  margin: 0 auto;
}
.about-card {
  text-align: center;
}
.about-name {
  font-weight: 700;
  font-size: 17px;
  color: var(--ink);
}
.about-version {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
}
.about-version-label {
  font-size: 13px;
  font-weight: 600;
}
.about-version-value {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 767.98px) {
  .app-main {
    padding: 16px 12px 40px;
  }
  .page-head,
  .page-head-search {
    flex-wrap: wrap;
    align-items: stretch;
    gap: 12px;
  }
  .page-head > .page-title,
  .page-head-search > .page-title,
  .page-head > div:first-child {
    flex: 1 1 100%;
    min-width: 0;
  }
  .page-head .page-kicker {
    margin-top: 2px;
    font-size: 13px;
  }
  .page-actions {
    flex: 1 1 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
  .page-actions .btn {
    flex: 1 1 calc(50% - 4px);
    min-width: 7.5rem;
  }
  .page-head-search-form {
    flex: 1 1 100%;
    order: 3;
  }
  .page-head-search .omni-search,
  .page-head-search-form .search-row {
    width: 100%;
    max-width: none;
  }
  .search-row,
  .search-row.is-wide {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    align-items: stretch;
    width: 100%;
  }
  .search-row .omni-search,
  .search-row .btn,
  .search-row > .form-select {
    grid-column: 1 / -1;
  }
  .search-row > *,
  .search-row.is-wide > * {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    flex: none !important;
  }
  .search-row .form-select {
    width: 100% !important;
    height: 48px;
    border-radius: 12px;
    box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.7);
    font-weight: 600;
    font-size: 13px;
    padding-inline: 12px;
  }
  .search-row .omni-search-input {
    height: 48px;
    border-radius: 12px;
    font-size: 15px;
  }
  .search-row .btn {
    width: 100%;
    height: 48px;
    border-radius: 12px;
    font-weight: 700;
  }
  .search-row .btn-outline-secondary {
    order: 1;
  }
  .sites-stats .stat {
    padding: 12px 14px;
  }
  .sites-stats .stat b {
    font-size: 1.25rem;
  }
  .sites-stats .stat:not(.stat-due) span {
    font-size: 11px;
  }
  .card-quiet > table,
  .card-quiet table.table {
    width: max-content;
    min-width: 100%;
    table-layout: auto !important;
  }
  .table-fit {
    table-layout: auto !important;
    width: max-content !important;
    min-width: 100%;
  }
  .table thead th {
    white-space: nowrap;
    padding: 10px 12px;
    font-size: 11px;
    vertical-align: middle;
  }
  .table tbody td {
    padding: 10px 12px;
    font-size: 13px;
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: normal;
    vertical-align: middle;
  }
  .table tbody td.col-title,
  .table tbody td:nth-child(2),
  .table tbody td:has(.fill-meter) {
    white-space: normal;
    min-width: 7.5rem;
    max-width: 11rem;
  }
  .table-sites tbody td.col-business {
    white-space: normal;
    min-width: 6.5rem;
    font-weight: 600;
  }
  .table-sites tbody td.col-domain {
    white-space: nowrap;
    max-width: 9rem;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .table-sites .badge-status {
    white-space: normal;
    line-height: 1.35;
  }
  .table-gateways tbody td.col-site {
    white-space: normal;
    min-width: 6.5rem;
    font-weight: 600;
  }
  .table-gateways .badge-status {
    white-space: normal;
    line-height: 1.35;
  }
  .table .col-actions {
    width: auto;
    white-space: nowrap;
  }
  .table .col-actions .btn {
    display: inline-block;
    width: auto;
    margin-bottom: 0;
    padding-inline: 10px;
  }
  .card-quiet:has(table),
  .card-table-scroll:has(table) {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .table-servers col.col-w-title { width: 9rem; }
  .table-servers col.col-w-panel { width: 8rem; }
  .table-servers .col-panel {
    max-width: 8rem;
  }
  .table .col-rownum {
    position: sticky;
    inset-inline-end: 0;
    z-index: 1;
    background: #fff;
    box-shadow: -6px 0 10px rgba(28, 25, 23, 0.06);
  }
  .table thead th.col-rownum {
    z-index: 2;
    background: #f6f0e6;
  }
  .table tbody tr:nth-child(even) .col-rownum {
    background: #fbf7f0;
  }
  .table-hover tbody tr:hover .col-rownum,
  .table tbody tr:hover .col-rownum {
    background: #efe8dc;
  }
  .fill-meter {
    min-width: 6.5rem;
  }
  .fill-meter b {
    display: block;
    margin-bottom: 4px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
