:root {
  --bg: #ecf1f6;
  --sidebar: #243243;
  --sidebar-soft: #304156;
  --card: #ffffff;
  --card-soft: #f5f8fb;
  --line: #d7e0ea;
  --line-strong: #c7d2df;
  --text: #1d2a38;
  --muted: #6d7d8e;
  --blue: #35516f;
  --blue-soft: #e8eff7;
  --orange: #f28c28;
  --orange-deep: #d86c15;
  --success: #256f54;
  --success-soft: #e7f4ee;
  --shadow: 0 8px 24px rgba(32, 50, 69, 0.08);
}

* { box-sizing: border-box; }

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Segoe UI", "Noto Sans", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #eaf0f6 0%, #f5f8fc 100%);
  scrollbar-width: thin;
  scrollbar-color: rgba(53, 81, 111, 0.62) rgba(214, 224, 234, 0.58);
}

* {
  scrollbar-width: thin;
  scrollbar-color: rgba(53, 81, 111, 0.6) rgba(214, 224, 234, 0.56);
}

*::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

*::-webkit-scrollbar-track {
  background:
    linear-gradient(180deg, rgba(235, 241, 247, 0.96) 0%, rgba(223, 232, 240, 0.92) 100%);
  border-radius: 999px;
  border: 1px solid rgba(199, 210, 223, 0.6);
}

*::-webkit-scrollbar-thumb {
  background:
    linear-gradient(180deg, rgba(255, 206, 146, 0.95) 0%, rgba(242, 140, 40, 0.92) 42%, rgba(203, 93, 16, 0.94) 100%);
  border-radius: 999px;
  border: 2px solid rgba(236, 241, 246, 0.92);
  box-shadow:
    inset 0 1px 0 rgba(255, 244, 225, 0.7),
    0 2px 8px rgba(53, 81, 111, 0.14);
}

*::-webkit-scrollbar-thumb:hover {
  background:
    linear-gradient(180deg, rgba(255, 218, 166, 0.98) 0%, rgba(246, 152, 57, 0.96) 42%, rgba(216, 108, 21, 0.98) 100%);
}

*::-webkit-scrollbar-corner {
  background: transparent;
}

button,
input,
select {
  font: inherit;
}

.layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  background: linear-gradient(180deg, var(--sidebar) 0%, var(--sidebar-soft) 100%);
  color: #eff4fa;
  padding: 12px;
  display: grid;
  gap: 10px;
  align-content: start;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar,
.multi-select__options {
  scrollbar-color: rgba(255, 194, 117, 0.88) rgba(255, 255, 255, 0.08);
}

.sidebar::-webkit-scrollbar-track,
.multi-select__options::-webkit-scrollbar-track {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.03) 100%);
  border-color: rgba(255, 255, 255, 0.08);
}

.sidebar::-webkit-scrollbar-thumb,
.multi-select__options::-webkit-scrollbar-thumb {
  border-color: rgba(39, 54, 72, 0.95);
  box-shadow:
    inset 0 1px 0 rgba(255, 243, 221, 0.62),
    0 3px 10px rgba(10, 18, 28, 0.26);
}

.brand {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 10px;
  align-items: center;
}

.brand-mark {
  width: 45px;
  height: 45px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  /* background: linear-gradient(135deg, var(--orange), #ffb15b); */
  color: #fff;
  font-weight: 700;
  font-size: 20px;
}

.brand-logo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 12px;
}

.side-nav,
.stack-actions,
.filter-grid,
.workspace-main,
.workspace-side,
.info-list {
  display: grid;
  gap: 8px;
}

.nav-item {
  position: relative;
  text-align: left;
  overflow: hidden;
  border: 0;
  background: transparent;
  color: #dce6f0;
  padding: 9px 10px 9px 18px;
  border-radius: 12px;
  cursor: pointer;
  transition:
    background-color 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.nav-item::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 6px;
  bottom: 6px;
  width: 5px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffe3bb 0%, #ffc46c 34%, #ee8b23 70%, #c85d10 100%);
  box-shadow:
    0 0 16px rgba(242, 140, 40, 0.32),
    0 0 0 1px rgba(255, 232, 194, 0.28);
  opacity: 0;
  transform: scaleY(0.4);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.nav-item::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.01)) border-box;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, border-color 0.18s ease;
}

.nav-item:hover,
.nav-item-active {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.nav-item:hover {
  transform: translateX(1px);
}

.nav-item:hover::after {
  opacity: 1;
  border-color: rgba(255, 255, 255, 0.07);
}

.nav-item-active {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.1) 56%, rgba(255, 255, 255, 0.06) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 0 0 1px rgba(255, 255, 255, 0.1),
    0 10px 22px rgba(10, 18, 28, 0.16);
}

.nav-item-active::before {
  opacity: 1;
  transform: scaleY(1);
}

.nav-item-active::after {
  opacity: 1;
  border-color: rgba(255, 255, 255, 0.1);
}

.side-panel,
.topbar,
.card,
.summary-grid article {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.side-panel {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
  color: #eff4fa;
  padding: 12px;
}

.action-panel {
  padding: 10px 12px;
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.btn-quick {
  padding: 7px 10px;
  min-height: 36px;
  border-radius: 10px;
  font-size: 12.5px;
  line-height: 1.2;
}

.btn-quiet {
  grid-column: 1 / -1;
  background: rgba(255, 255, 255, 0.06);
  color: #d7e5f2;
  border-color: rgba(255, 255, 255, 0.1);
}

.btn-quiet:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.16);
}

.action-panel__hint {
  margin-top: 6px;
}

.sidebar .filter-grid {
  gap: 10px;
}

.sidebar .field {
  display: grid;
  gap: 5px;
  align-content: start;
}

.sidebar .field > span {
  display: inline-flex;
  align-items: center;
  min-height: 16px;
  padding-left: 2px;
  letter-spacing: 0.02em;
}

.sidebar .panel-title-row {
  margin-bottom: 8px;
}

.main {
  padding: 10px;
  display: grid;
  gap: 10px;
  align-content: start;
}

.topbar,
.card {
  padding: 12px;
}

.topbar {
  position: static;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 82px;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 { font-size: 22px; }
h2 { font-size: 16px; }
h3 { font-size: 17px; }

.topbar h2 {
  font-size: 18px;
  line-height: 1.18;
  max-width: 700px;
}

.topbar-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.top-badge {
  min-width: 128px;
  padding: 8px 10px;
  border-radius: 12px;
  background: var(--blue-soft);
  border: 1px solid #d3deea;
}

.accent-badge {
  background: #fff4e6;
  border-color: #ffd3a5;
}

.top-badge-label,
.field span,
.report-field span,
.detail-label {
  font-size: 11px;
  color: var(--muted);
}

.side-panel .field span {
  color: #d7e5f2;
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.field-hint {
  display: block;
  margin-top: 3px;
  padding-left: 2px;
  font-size: 10.5px;
  line-height: 1.35;
  color: #c9d7e5;
  opacity: 0.88;
}

.multi-select {
  position: relative;
}

.single-select {
  position: relative;
}

.filter-native-select {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.multi-select__toggle {
  width: 100%;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 13px;
  border: 1px solid rgba(248, 220, 177, 0.16);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.06) 100%);
  color: #eff4fa;
  font-size: 13.5px;
  line-height: 1.2;
  box-shadow:
    inset 0 1px 0 rgba(255, 250, 242, 0.08),
    inset 0 0 0 1px rgba(255, 255, 255, 0.02),
    0 10px 24px rgba(13, 20, 30, 0.14);
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.multi-select__toggle:hover {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.08) 100%);
  border-color: rgba(255, 220, 170, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 250, 242, 0.1),
    inset 0 0 0 1px rgba(255, 255, 255, 0.03),
    0 14px 26px rgba(13, 20, 30, 0.18);
  transform: translateY(-1px);
}

.multi-select__toggle span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
}

.multi-select[data-open="true"] .multi-select__toggle {
  border-color: rgba(255, 202, 132, 0.34);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.19) 0%, rgba(255, 255, 255, 0.08) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 248, 236, 0.12),
    inset 0 0 0 1px rgba(255, 220, 170, 0.06),
    0 0 0 1px rgba(242, 140, 40, 0.16),
    0 16px 34px rgba(11, 18, 28, 0.24);
}

.multi-select__chevron {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-right: 2px solid rgba(255, 236, 210, 0.94);
  border-bottom: 2px solid rgba(255, 236, 210, 0.94);
  transform: rotate(45deg) translateY(-1px);
  transition: transform 0.16s ease, opacity 0.16s ease;
  opacity: 0.92;
}

.multi-select[data-open="true"] .multi-select__chevron {
  transform: rotate(-135deg) translateY(-1px);
}

.multi-select__menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 30;
  padding: 9px;
  border-radius: 16px;
  border: 1px solid rgba(252, 217, 165, 0.2);
  background:
    radial-gradient(circle at top right, rgba(242, 140, 40, 0.16), transparent 24%),
    linear-gradient(180deg, rgba(47, 61, 80, 0.985) 0%, rgba(34, 46, 62, 0.985) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 249, 239, 0.05),
    0 22px 42px rgba(9, 16, 25, 0.42);
  backdrop-filter: blur(10px);
}

.single-select .multi-select__menu {
  padding: 6px;
}

.multi-select__actions {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
}

.btn-compact {
  flex: 1 1 0;
  padding: 6px 10px;
  border-radius: 9px;
  font-size: 12px;
  text-align: center;
}

.multi-select__actions .btn-secondary {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  color: #eff4fa;
  border-color: rgba(255, 229, 196, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.multi-select__actions .btn-secondary:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.08) 100%);
  border-color: rgba(255, 223, 179, 0.24);
}

.multi-select__options {
  display: grid;
  gap: 4px;
  max-height: 240px;
  overflow: auto;
  padding-right: 2px;
}

.multi-select__option {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  padding: 8px 9px;
  border-radius: 10px;
  color: #eff4fa;
  cursor: pointer;
  border: 1px solid transparent;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    transform 0.15s ease;
}

.multi-select__option:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 230, 198, 0.08);
  transform: translateX(1px);
}

.multi-select__option:has(input:checked) {
  background:
    linear-gradient(90deg, rgba(242, 140, 40, 0.16) 0%, rgba(255, 255, 255, 0.06) 100%);
  border-color: rgba(255, 204, 142, 0.18);
  box-shadow: inset 3px 0 0 rgba(242, 140, 40, 0.72);
}

.multi-select__option input {
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
  padding: 0;
  accent-color: var(--orange);
  border-radius: 4px;
}

.multi-select__option span {
  min-width: 0;
  line-height: 1.35;
  color: inherit;
}

.multi-select__empty {
  padding: 10px 8px;
  border-radius: 10px;
  color: #d3deea;
  text-align: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(255, 225, 184, 0.12);
}

.single-select__options {
  display: grid;
  gap: 4px;
}

.single-select__option {
  width: 100%;
  display: flex;
  align-items: center;
  padding: 10px 11px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: #eff4fa;
  text-align: left;
  cursor: pointer;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    transform 0.15s ease;
}

.single-select__option:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 230, 198, 0.08);
  transform: translateX(1px);
}

.single-select__option.is-selected {
  background:
    linear-gradient(90deg, rgba(242, 140, 40, 0.16) 0%, rgba(255, 255, 255, 0.06) 100%);
  border-color: rgba(255, 204, 142, 0.18);
  box-shadow: inset 3px 0 0 rgba(242, 140, 40, 0.72);
}

.section-pane {
  display: none;
  gap: 10px;
  align-content: start;
}

.section-pane-active {
  display: grid;
}

.summary-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 1fr);
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid #d9e3ee;
  border-radius: 16px;
  background:
    radial-gradient(circle at top right, rgba(242, 140, 40, 0.16), transparent 28%),
    linear-gradient(135deg, #ffffff 0%, #f3f7fb 62%, #eef4fa 100%);
  box-shadow: var(--shadow);
}

.summary-hero__main {
  display: grid;
  gap: 6px;
  align-content: start;
}

.summary-hero__main h3 {
  font-size: 24px;
  line-height: 1.15;
  color: #203446;
  max-width: 720px;
}

.summary-hero__main .section-note {
  max-width: 720px;
  margin-bottom: 0;
  font-size: 14px;
}

.summary-hero__chips {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-content: start;
}

.summary-chip {
  display: grid;
  gap: 6px;
  padding: 12px 13px;
  border-radius: 14px;
  border: 1px solid rgba(83, 110, 136, 0.14);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(4px);
}

.summary-chip strong {
  font-size: 15px;
  line-height: 1.25;
  color: #1f3447;
}

.summary-chip__label,
.summary-chip__meta {
  font-size: 12px;
  color: var(--muted);
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.summary-grid-server {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.summary-grid article {
  padding: 12px;
}

.summary-stat-card {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 249, 253, 0.98));
}

.summary-stat-card::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  border-radius: 14px 0 0 14px;
  background: var(--blue);
}

.summary-stat-card-total::after { background: #35516f; }
.summary-stat-card-posts::after { background: #557da5; }
.summary-stat-card-people::after { background: #d88a2a; }
.summary-stat-card-vehicles::after { background: #3b6b8f; }
.summary-stat-card-tmc::after { background: #2f7a57; }

.summary-stat-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.summary-stat-title {
  margin-top: 4px;
  font-size: 14px;
  font-weight: 600;
  color: #213346;
}

.summary-stat-chip {
  max-width: 55%;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(53, 81, 111, 0.08);
  color: #45627f;
  font-size: 11px;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.summary-stat-progress {
  height: 7px;
  margin-top: 10px;
  border-radius: 999px;
  background: #e9f0f7;
  overflow: hidden;
}

.summary-stat-progress__fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), #89a8c8);
}

.summary-stat-card-people .summary-stat-progress__fill {
  background: linear-gradient(90deg, #d88a2a, #f1bc72);
}

.summary-stat-card-vehicles .summary-stat-progress__fill {
  background: linear-gradient(90deg, #3b6b8f, #7ea5c2);
}

.summary-stat-card-tmc .summary-stat-progress__fill {
  background: linear-gradient(90deg, #2f7a57, #7ec29d);
}

.metric-value {
  margin-top: 6px;
  font-size: 28px;
  font-weight: 700;
  color: var(--blue);
}

.metric-sub,
.section-note,
.pager-info,
.muted {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 5px;
}

.inline-feedback {
  margin-top: -2px;
  margin-bottom: 4px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #f8fbff;
  color: #395066;
  font-size: 13px;
  line-height: 1.4;
}

.inline-feedback.is-busy {
  background: #eef4fb;
  border-color: #c7d8eb;
  color: #2e4a68;
}

.inline-feedback.is-success {
  background: #edf8f2;
  border-color: #cde8d8;
  color: #2d6348;
}

.inline-feedback.is-error {
  background: #fdeeee;
  border-color: #f0caca;
  color: #924444;
}

.detail-stack {
  display: grid;
  gap: 10px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.05fr;
  gap: 10px;
}

.workspace,
.assets-grid,
.reports-grid,
.import-grid {
  display: grid;
  gap: 10px;
}

.workspace {
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: start;
}

.workspace-side {
  position: sticky;
  top: 92px;
  align-self: start;
}

.assets-grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
}

.reports-grid-full {
  grid-template-columns: 1fr;
}

.import-grid {
  grid-template-columns: 1fr 1fr;
}

.sticky-card {
  position: static;
}

.panel-title-row,
.table-toolbar,
.search-row,
.reports-toolbar,
.action-row,
.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.panel-title-row,
.table-toolbar {
  margin-bottom: 10px;    
  margin-top: 10px;
}

.search-row {
  align-items: stretch;
}

.search-row input,
.reports-toolbar .report-field {
  flex: 1;
}

.reports-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 8px;
}

.reports-toolbar__filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  min-height: 66px;
}

.reports-toolbar__actions {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}

.reports-toolbar-no-filters {
  grid-template-columns: 1fr;
}

.reports-toolbar-no-filters .reports-toolbar__filters {
  display: none;
}

.reports-toolbar-no-filters .reports-toolbar__actions {
  justify-content: flex-end;
}

.import-runs-toolbar {
  display: grid;
  grid-template-columns: minmax(180px, 220px) minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 8px;
}

.import-runs-toolbar__status {
  min-width: 0;
}

.import-runs-toolbar__search {
  min-width: 0;
}

.import-runs-toolbar__actions {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}

.report-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.asset-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.asset-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  background: #f5f8fb;
  color: #314355;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.asset-tab:hover {
  background: #eef4f9;
  border-color: var(--line-strong);
}

.asset-tab-active {
  background: linear-gradient(180deg, #fff6ea 0%, #fde6c8 100%);
  border-color: #efc28a;
  color: #8f4e10;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.asset-pane {
  display: none;
}

.asset-pane-active {
  display: block;
}

.report-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  background: #f5f8fb;
  color: #314355;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.report-tab:hover {
  background: #eef4f9;
  border-color: var(--line-strong);
}

.report-tab-active {
  background: linear-gradient(180deg, #fff6ea 0%, #fde6c8 100%);
  border-color: #efc28a;
  color: #8f4e10;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.report-tab__count {
  min-width: 26px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(36, 50, 67, 0.08);
  color: inherit;
  font-size: 12px;
  line-height: 1.2;
  text-align: center;
}

.report-tab-active .report-tab__count {
  background: rgba(143, 78, 16, 0.14);
}

.report-pane {
  display: none;
}

.report-pane-active {
  display: block;
}

.server-tabs {
  margin-bottom: 12px;
}

.server-tab-active {
  background: linear-gradient(180deg, #fff6ea 0%, #fde6c8 100%);
  border-color: #efc28a;
  color: #8f4e10;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.server-pane {
  display: none;
}

.server-pane-active {
  display: block;
}

.server-overview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 10px;
}

.server-overview-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid #d9e3ec;
  background: linear-gradient(180deg, #ffffff 0%, #f5f9fd 100%);
  box-shadow: 0 10px 24px rgba(22, 38, 56, 0.07);
}

.server-overview-card::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  border-radius: 16px 0 0 16px;
  background: var(--ring-color, #5a7897);
}

.server-overview-card__ring {
  --progress: 0;
  --ring-color: #5a7897;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at center, #ffffff 53%, transparent 54%),
    conic-gradient(var(--ring-color) calc(var(--progress) * 1%), #e7eef5 0);
}

.server-overview-card__ring-inner {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbfe 100%);
  border: 1px solid #d9e3ec;
  font-size: 15px;
  font-weight: 700;
  color: #23384a;
}

.server-overview-card__content {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.server-overview-card__content span {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b7d90;
}

.server-overview-card__content strong {
  font-size: 13px;
  line-height: 1.35;
  color: #243243;
  font-weight: 600;
}

.server-overview-card--good,
.server-overview-card--good .server-overview-card__ring { --ring-color: #4d7c64; }

.server-overview-card--warn,
.server-overview-card--warn .server-overview-card__ring { --ring-color: #d49a42; }

.server-overview-card--danger,
.server-overview-card--danger .server-overview-card__ring { --ring-color: #b45a5a; }

.server-resource-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.server-health-card {
  position: relative;
  overflow: hidden;
  padding: 12px 14px 12px 16px;
  border: 1px solid #dbe5ee !important;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f6f9fc 100%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 8px 18px rgba(22, 38, 56, 0.05);
}

.server-health-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  border-radius: 14px 0 0 14px;
  background: linear-gradient(180deg, #8aa7c2 0%, #486988 100%);
}

.server-health-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.server-health-card__dot {
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  border-radius: 999px;
  background: #5d7793;
  box-shadow: 0 0 0 4px rgba(93, 119, 147, 0.12);
}

.server-health-card--db {
  border-color: #d5e3f4 !important;
  background: linear-gradient(180deg, #ffffff 0%, #f5f9ff 100%) !important;
}

.server-health-card--db::before,
.server-health-card--db .server-health-card__dot {
  background: linear-gradient(180deg, #6ea0d6 0%, #32608f 100%);
}

.server-health-card--events {
  border-color: #d9e8e4 !important;
  background: linear-gradient(180deg, #ffffff 0%, #f4fbf8 100%) !important;
}

.server-health-card--events::before,
.server-health-card--events .server-health-card__dot {
  background: linear-gradient(180deg, #58b39b 0%, #26715c 100%);
}

.server-health-card--inbox {
  border-color: #f1dfc9 !important;
  background: linear-gradient(180deg, #ffffff 0%, #fff8ef 100%) !important;
}

.server-health-card--inbox::before,
.server-health-card--inbox .server-health-card__dot {
  background: linear-gradient(180deg, #d5a55a 0%, #986423 100%);
}

.server-health-card--import {
  border-color: #dddcf3 !important;
  background: linear-gradient(180deg, #ffffff 0%, #f7f6ff 100%) !important;
}

.server-health-card--import::before,
.server-health-card--import .server-health-card__dot {
  background: linear-gradient(180deg, #8779d7 0%, #5140a1 100%);
}

.server-health-card--warn {
  border-color: #f1dcc4 !important;
  background: linear-gradient(180deg, #ffffff 0%, #fff7ef 100%) !important;
}

.server-health-card--warn::before,
.server-health-card--warn .server-health-card__dot {
  background: linear-gradient(180deg, #dfab53 0%, #aa6d1f 100%);
}

.server-health-card--danger {
  border-color: #efcfd0 !important;
  background: linear-gradient(180deg, #ffffff 0%, #fff5f5 100%) !important;
}

.server-health-card--danger::before,
.server-health-card--danger .server-health-card__dot {
  background: linear-gradient(180deg, #d67a7a 0%, #a34242 100%);
}

.server-health-card--ok {
  border-color: #cfe6d8 !important;
  background: linear-gradient(180deg, #ffffff 0%, #f3fbf6 100%) !important;
}

.server-health-card--ok::before,
.server-health-card--ok .server-health-card__dot {
  background: linear-gradient(180deg, #68b97b 0%, #2c7a49 100%);
}

.server-health-card--compact {
  min-height: 84px;
}

.operator-report-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.report-summary-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.operator-report-card {
  padding: 12px 13px;
  border-radius: 14px;
  border: 1px solid #d8e2ec;
  background: linear-gradient(180deg, #fdfefe 0%, #f4f8fc 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.operator-report-card span {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #66788a;
}

.operator-report-card strong {
  display: block;
  font-size: 18px;
  line-height: 1.15;
  color: #243243;
}

.operator-report-card small {
  display: block;
  margin-top: 7px;
  color: #5e7183;
  line-height: 1.35;
}

.operator-report-card--lead {
  border-color: #ebc693;
  background: linear-gradient(180deg, #fff8ee 0%, #fde9cf 100%);
}

.operator-report-card--tmc {
  border-color: #d6dfc8;
  background: linear-gradient(180deg, #f8fbf4 0%, #edf5e1 100%);
}

.operator-report-card--coverage {
  border-color: #cfe0ee;
  background: linear-gradient(180deg, #f6fbff 0%, #e9f2f9 100%);
}

.operator-report-card--mix {
  border-color: #ddd6eb;
  background: linear-gradient(180deg, #faf8fe 0%, #f0ebf8 100%);
}

.operator-modal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.operator-modal-section {
  padding: 12px;
  border: 1px solid #dde6ee;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fafd 100%);
}

.operator-modal-section--wide,
.operator-modal-section--table {
  grid-column: 1 / -1;
}

.operator-modal-section__header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
  margin-bottom: 10px;
}

.operator-modal-section__header strong {
  font-size: 14px;
  color: #223245;
}

.operator-modal-section__header span {
  font-size: 12px;
  color: #647688;
}

.operator-badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.operator-badge {
  min-width: 140px;
  padding: 9px 10px;
  border-radius: 12px;
  background: #f3f7fb;
  border: 1px solid #dce6ef;
}

.operator-badge strong {
  display: block;
  margin-bottom: 3px;
  font-size: 13px;
  color: #243243;
}

.operator-badge span {
  display: block;
  font-size: 12px;
  color: #607284;
}

.operator-badge--compact {
  min-width: 108px;
}

.operator-heatmap-legend {
  padding-bottom: 8px;
}

.operator-heatmap-wrap {
  border-radius: 12px;
}

.operator-heatmap {
  min-width: 880px;
}

.report-field {
  min-width: 0;
}

.report-field span {
  display: block;
  margin-bottom: 4px;
}

.report-field-hidden {
  display: none;
}

.action-row,
.pager,
.topbar-badges {
  flex-wrap: wrap;
}

.section-kicker {
  margin: 0 0 3px;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--orange);
}

.btn,
.pager-btn {
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 9px 12px;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--orange);
  color: #fff;
}

.btn-primary:hover {
  background: var(--orange-deep);
}

.btn-arch {
    background: var(--card-soft);
      font-weight: bold;
      border-color: var(--line);
 color: #9b4637; 
}

.btn-secondary,
.pager-btn {
  background: var(--card-soft);
  color: var(--text);
  border-color: var(--line);
}


.btn-secondary:hover,
.pager-btn:hover {
  background: #eef4f9;
  border-color: var(--line-strong);
}

input,
select {
  width: 100%;
  padding: 10px 11px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
}

.sidebar .field > input:not([type="checkbox"]):not([type="radio"]),
.sidebar .field > select {
  min-height: 46px;
  padding: 11px 13px;
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.17) 0%, rgba(255, 255, 255, 0.065) 100%);
  border-color: rgba(248, 220, 177, 0.18);
  color: #eff4fa;
  font-size: 13.5px;
  line-height: 1.2;
  box-shadow:
    inset 0 1px 0 rgba(255, 250, 242, 0.08),
    inset 0 0 0 1px rgba(255, 255, 255, 0.02),
    0 10px 24px rgba(13, 20, 30, 0.13);
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.sidebar .field > input:not([type="checkbox"]):not([type="radio"])::placeholder {
  color: rgba(221, 231, 241, 0.72);
}

.sidebar .field > input:not([type="checkbox"]):not([type="radio"]):hover,
.sidebar .field > select:hover {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.09) 100%);
  border-color: rgba(255, 220, 170, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 250, 242, 0.1),
    inset 0 0 0 1px rgba(255, 255, 255, 0.03),
    0 14px 26px rgba(13, 20, 30, 0.17);
  transform: translateY(-1px);
}

input:focus,
select:focus {
  outline: 2px solid rgba(53, 81, 111, 0.12);
  border-color: #9eb0c3;
}

.sidebar .field > input:not([type="checkbox"]):not([type="radio"]):focus,
.sidebar .field > select:focus {
  outline: 2px solid rgba(242, 140, 40, 0.16);
  border-color: rgba(255, 202, 132, 0.34);
  box-shadow:
    inset 0 1px 0 rgba(255, 248, 236, 0.12),
    inset 0 0 0 1px rgba(255, 220, 170, 0.06),
    0 0 0 1px rgba(242, 140, 40, 0.16),
    0 16px 34px rgba(11, 18, 28, 0.22);
}

.sidebar .field > select {
  appearance: auto;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.17) 0%, rgba(255, 255, 255, 0.065) 100%);
  padding-right: 13px;
}

.sidebar .field > select option {
  color: var(--text);
  background: #ffffff;
}

.sidebar .field > input[type="datetime-local"] {
  padding-right: 42px;
  color-scheme: dark;
}

.sidebar .field > input[type="datetime-local"]::-webkit-datetime-edit,
.sidebar .field > input[type="datetime-local"]::-webkit-datetime-edit-fields-wrapper {
  color: #eff4fa;
}

.sidebar .field > input[type="datetime-local"]::-webkit-datetime-edit-year-field,
.sidebar .field > input[type="datetime-local"]::-webkit-datetime-edit-month-field,
.sidebar .field > input[type="datetime-local"]::-webkit-datetime-edit-day-field,
.sidebar .field > input[type="datetime-local"]::-webkit-datetime-edit-hour-field,
.sidebar .field > input[type="datetime-local"]::-webkit-datetime-edit-minute-field,
.sidebar .field > input[type="datetime-local"]::-webkit-datetime-edit-text {
  color: #eff4fa;
}

.sidebar .field > input[type="datetime-local"]::-webkit-calendar-picker-indicator {
  filter: invert(1) sepia(0.18) saturate(0.5) brightness(1.15);
  opacity: 0.86;
  cursor: pointer;
  margin-right: -2px;
}

.import-log {
  min-height: 120px;
  max-height: 260px;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  max-width: 100%;
  min-width: 0;
  font-size: 13px;
  line-height: 1.45;
}

.import-log-light {
  color: var(--text);
  background: var(--card-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
}

.chart-box {
  min-height: 210px;
}

.load-heatmap-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfcfe;
}

.load-heatmap-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.load-heatmap-card {
  display: grid;
  gap: 4px;
  padding: 12px 13px;
  border-radius: 14px;
  border: 1px solid #d9e3ee;
  background: linear-gradient(180deg, #ffffff 0%, #f6f9fc 100%);
  box-shadow: 0 8px 22px rgba(23, 39, 56, 0.06);
}

.load-heatmap-card span {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7a8b9c;
}

.load-heatmap-card strong {
  font-size: 22px;
  line-height: 1.05;
  color: #203446;
}

.load-heatmap-card small {
  font-size: 12px;
  color: #697b8e;
}

.load-heatmap-legend {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 2px 10px;
}

.load-heatmap-legend__label {
  font-size: 12px;
  color: #708194;
}

.load-heatmap-legend__scale {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.load-heatmap-legend__chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 74px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid #d9e3ee;
  font-size: 12px;
  font-weight: 600;
  color: #203446;
}

.load-heatmap-legend__chip--low {
  background: #eef3f8;
  border-color: #dbe5ee;
}

.load-heatmap-legend__chip--mid {
  background: #b7c4d2;
  border-color: #a9b8c8;
  color: #203446;
}

.load-heatmap-legend__chip--high {
  background: #4f6883;
  border-color: #465f7a;
  color: #ffffff;
}

.load-heatmap {
  min-width: 980px;
  display: grid;
}

.load-heatmap__header,
.load-heatmap__row {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  align-items: stretch;
}

.load-heatmap__row {
  border-top: 1px solid #e6edf5;
}

.load-heatmap__row--summary {
  background: #f6f9fc;
}

.load-heatmap__label {
  padding: 10px 12px;
  display: grid;
  gap: 3px;
  align-content: center;
  border-right: 1px solid #e6edf5;
  background: rgba(255, 255, 255, 0.88);
}

.load-heatmap__label strong {
  font-size: 13px;
  color: #203446;
}

.load-heatmap__label span {
  font-size: 12px;
  color: #697b8e;
}

.load-heatmap__label--header {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #7b8c9d;
  font-weight: 700;
}

.load-heatmap__grid {
  display: grid;
  grid-template-columns: repeat(24, minmax(28px, 1fr));
}

.load-heatmap__hour,
.load-heatmap__cell {
  min-height: 38px;
  display: grid;
  place-items: center;
  border-left: 1px solid #edf2f7;
  font-size: 12px;
}

.load-heatmap__hour {
  background: #f5f8fb;
  color: #708194;
  font-weight: 600;
}

.load-heatmap__cell {
  background: color-mix(in srgb, #ffffff calc(100% - (var(--heat, 0.1) * 100%)), #f28c28 calc(var(--heat, 0.1) * 100%));
  color: #203446;
  font-weight: 600;
}

.load-heatmap__cell--summary {
  background: color-mix(in srgb, #ffffff calc(100% - (var(--heat, 0.1) * 100%)), #35516f calc(var(--heat, 0.1) * 100%));
}

.chart-empty {
  display: grid;
  place-items: center;
  min-height: 160px;
  color: var(--muted);
  background: var(--card-soft);
  border: 1px dashed var(--line);
  border-radius: 12px;
}

.bar-chart,
.ring-legend,
.detail-stack,
.event-line-list {
  display: grid;
  gap: 9px;
}

.bar-row {
  display: grid;
  grid-template-columns: 150px 1fr 44px;
  gap: 10px;
  align-items: center;
}

.bar-label {
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bar-track {
  height: 10px;
  border-radius: 999px;
  background: #edf2f7;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), #7390b2);
}

.bar-fill.orange {
  background: linear-gradient(90deg, var(--orange), #f5b15f);
}

.bar-value {
  text-align: right;
  font-size: 12px;
  color: var(--muted);
}

.ring-chart {
  display: grid;
  gap: 12px;
  justify-items: center;
}

.ring-wrap {
  position: relative;
  width: 168px;
  height: 168px;
}

.ring-svg {
  width: 168px;
  height: 168px;
  transform: rotate(-90deg);
}

.ring-bg {
  fill: none;
  stroke: #e7eef5;
  stroke-width: 18;
}

.ring-segment {
  fill: none;
  stroke-width: 18;
  stroke-linecap: round;
}

.ring-center {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
}

.ring-total {
  font-size: 25px;
  font-weight: 700;
  color: var(--blue);
}

.legend-row,
.info-row {
  display: grid;
  gap: 8px;
  align-items: center;
}

.legend-row {
  grid-template-columns: 16px 1fr auto;
  font-size: 13px;
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.compact-table table {
  min-width: 100%;
}

table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
}

thead th {
  position: sticky;
  top: 0;
  background: #f4f7fb;
  z-index: 1;
  white-space: nowrap;
}

th,
td {
  padding: 9px 11px;
  text-align: left;
  border-bottom: 1px solid #e8edf3;
  font-size: 13px;
  vertical-align: top;
}

th.sortable {
  cursor: pointer;
}

th.sortable:hover {
  background: #ebf2f9;
}

tbody tr {
  cursor: pointer;
}

tbody tr:hover {
  background: #f8fbff;
}

tbody tr.is-selected {
  background: #eef5fd;
}

tbody tr.is-warning {
  background: #fff3e6;
}

tbody tr.is-warning:hover {
  background: #ffe8cc;
}

tbody tr.is-critical {
  background: #fdeaea;
}

tbody tr.is-critical:hover {
  background: #f9d8d8;
}

tbody tr.is-empty {
  background: #f7f7f7;
}

tbody tr.is-empty:hover {
  background: #efefef;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--success-soft);
  color: var(--success);
  font-size: 11px;
  font-weight: 600;
}

.badge-direction {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid #cfd7e2;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.15;
  white-space: nowrap;
  background: #fff;
  letter-spacing: 0.02em;
}

.badge-direction-in {
  border-color: #b8ccb9;
  color: #315940;
}

.badge-direction-out {
  border-color: #d7bcbc;
  color: #7b3c3c;
}

.badge-direction-enter {
  border-color: #bccbdb;
  color: #3b5875;
}

.badge-direction-exit {
  border-color: #d8cab4;
  color: #79603a;
}

.detail-card {
  background: linear-gradient(180deg, #f8fbfe 0%, #f2f7fb 100%);
  border: 1px solid #d5e0ea;
  border-radius: 10px;
  padding: 10px 11px;
  line-height: 1.3;
  overflow: hidden;
}

.detail-card strong {
  display: inline-block;
  margin-bottom: 8px;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 14px;
}

.profile-summary-card {
  position: relative;
  padding: 11px 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f5f9fd 100%);
  border-color: #d7e2ec;
}

.profile-summary-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  border-radius: 10px 0 0 10px;
  background: #c9d8e7;
}

.profile-summary-card-person::before {
  background: linear-gradient(180deg, #f0a34a 0%, #d97b19 100%);
}

.profile-summary-card-vehicle::before {
  background: linear-gradient(180deg, #5d7895 0%, #35516f 100%);
}

.profile-summary-card-tmc::before {
  background: linear-gradient(180deg, #6f8f72 0%, #4d6e50 100%);
}

.profile-summary-title {
  margin-bottom: 8px;
  padding-left: 8px;
  font-size: 18px;
  line-height: 1.15;
  font-weight: 700;
  color: #223245;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-summary-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin-bottom: 10px;
}

.profile-summary-heading .profile-summary-title {
  margin-bottom: 0;
  min-width: 0;
  flex: 1 1 auto;
}

.profile-summary-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.profile-summary-badge-person {
  background: #fff2e4;
  border-color: #f0cfac;
  color: #a55d12;
}

.profile-summary-badge-vehicle {
  background: #edf4fb;
  border-color: #c9d9ea;
  color: #35516f;
}

.profile-summary-badge-tmc {
  background: #edf6ee;
  border-color: #cddfce;
  color: #456848;
}

.profile-summary-card-person .profile-summary-title {
  color: #6d4313;
}

.profile-summary-card-vehicle .profile-summary-title {
  letter-spacing: 0.04em;
  color: #294460;
}

.profile-summary-card-tmc .profile-summary-title {
  color: #345438;
}

.profile-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 10px;
  padding-left: 8px;
}

.profile-summary-grid-wide {
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.2fr) minmax(90px, 0.6fr);
}

.profile-summary-item {
  min-width: 0;
  padding-top: 6px;
  border-top: 1px solid #e6edf4;
}

.profile-summary-card-person .profile-summary-item {
  border-top-color: #f2dfca;
}

.profile-summary-card-vehicle .profile-summary-item {
  border-top-color: #dce6f0;
}

.profile-summary-card-tmc .profile-summary-item {
  border-top-color: #dde9df;
}

.profile-summary-value {
  font-size: 13px;
  line-height: 1.25;
  font-weight: 600;
  color: #243243;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-summary-card-person .profile-summary-value {
  color: #5b3c18;
}

.profile-summary-card-vehicle .profile-summary-value {
  color: #243f5b;
}

.profile-summary-card-tmc .profile-summary-value {
  color: #2f5035;
}

.detail-label {
  display: block;
  margin-bottom: 2px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 10px;
  color: #5f7183;
}

.runtime-panel {
  display: grid;
  gap: 10px;
}

.server-policy-shell {
  display: grid;
  gap: 12px;
}

.server-policy-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.server-policy-summary-card {
  padding: 11px 13px;
  border-radius: 14px;
  border: 1px solid #dbe5ee;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(245, 249, 253, 0.98) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 8px 18px rgba(22, 38, 56, 0.05);
}

.server-policy-summary-card span {
  display: block;
  margin-bottom: 6px;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6a7c8f;
}

.server-policy-summary-card strong {
  display: block;
  font-size: 17px;
  line-height: 1.1;
  color: #243243;
}

.server-policy-summary-card small {
  display: block;
  margin-top: 6px;
  color: #607284;
  line-height: 1.3;
}

.server-policy-summary-card--good {
  border-left: 4px solid #6c927e;
}

.server-policy-summary-card--warn {
  border-left: 4px solid #d49a42;
}

.server-policy-summary-card--danger {
  border-left: 4px solid #b45a5a;
}

.server-policy-layout {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.server-policy-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.server-policy-section {
  padding: 12px 12px 10px;
  border: 1px solid #d7e1eb;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 250, 253, 0.98) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.76),
    0 10px 22px rgba(23, 39, 56, 0.05);
}

.server-policy-section__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  margin-bottom: 9px;
}

.server-policy-section__title {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5f7285;
  font-weight: 700;
}

.server-policy-section__note {
  font-size: 12px;
  color: #77889a;
  max-width: 260px;
}

.server-policy-toggle-row {
  margin-bottom: 8px;
}

.server-policy-field {
  display: grid;
  gap: 4px;
  align-content: start;
  min-width: 0;
  padding: 9px 10px;
  border-radius: 13px;
  border: 1px solid #e3eaf2;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(247, 250, 253, 1) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.server-policy-field span {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6a7c8f;
}

.server-policy-field input[type="number"] {
  width: 100%;
  min-height: 34px;
  padding: 6px 10px;
  border-radius: 9px;
  border: 1px solid #d5dfeb;
  background: linear-gradient(180deg, #ffffff 0%, #f5f8fc 100%);
}

.server-policy-field--toggle {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 10px;
  min-height: 48px;
  padding: 8px 12px;
  background: linear-gradient(180deg, #fbfdff 0%, #f3f8fc 100%);
  border-color: #d8e2ec;
}

.server-policy-field--toggle span {
  margin: 0;
  font-size: 11px;
}

.server-policy-field input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #35516f;
  align-self: center;
  margin: 0;
  opacity: 0.9;
}

.runtime-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.runtime-tile {
  background: var(--card-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 10px;
  min-width: 0;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #f7fafd 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 8px 18px rgba(22, 38, 56, 0.04);
}

.runtime-tile::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  border-radius: 10px 0 0 10px;
  background: linear-gradient(180deg, #8aa7c2 0%, #486988 100%);
}

.runtime-path {
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
  line-height: 1.35;
  color: #2e4359;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.runtime-meta {
  margin-top: 5px;
  font-size: 12px;
  color: var(--muted);
}

.runtime-tile .detail-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.runtime-tile .detail-label::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #66819d;
  box-shadow: 0 0 0 4px rgba(102, 129, 157, 0.12);
}

.runtime-history {
  margin-top: 8px;
  display: grid;
  gap: 6px;
}

.runtime-history__item {
  padding-top: 6px;
  border-top: 1px dashed var(--line);
}

.runtime-history__title {
  font-size: 12px;
  color: var(--text);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.runtime-history__badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 999px;
  background: #edf3fa;
  border: 1px solid #d3dfec;
  color: #4a6784;
  font-size: 10px;
  font-weight: 700;
  vertical-align: middle;
}

.runtime-history__meta,
.runtime-history__empty {
  margin-top: 2px;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.3;
}

.runtime-inline {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.runtime-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #f9fbfe;
  color: #33465a;
  font-size: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.runtime-chip__dot {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 999px;
  background: #6f87a0;
}

.runtime-chip__label {
  color: #56708a;
  font-weight: 700;
}

.runtime-chip__value {
  color: #24384d;
}

.runtime-chip.is-muted {
  opacity: 0.72;
}

.runtime-chip.is-active {
  border-color: transparent;
}

.runtime-chip--import {
  border-color: #d6e4f4;
  background: #f4f9ff;
}

.runtime-chip--import .runtime-chip__dot {
  background: #4f84bc;
}

.runtime-chip--scan {
  border-color: #e0d7f3;
  background: #f8f5ff;
}

.runtime-chip--scan .runtime-chip__dot {
  background: #7761c5;
}

.runtime-chip--maintenance {
  border-color: #d5e8df;
  background: #f3fbf7;
}

.runtime-chip--maintenance .runtime-chip__dot {
  background: #4c9a7d;
}

.runtime-chip--backup {
  border-color: #f1ddc4;
  background: #fff7ef;
}

.runtime-chip--backup .runtime-chip__dot {
  background: #d08e3e;
}

.runtime-chip--archive {
  border-color: #f0d4d7;
  background: #fff5f6;
}

.runtime-chip--archive .runtime-chip__dot {
  background: #c86472;
}

.runtime-chip--retention {
  border-color: #d8e3d3;
  background: #f5fbf1;
}

.runtime-chip--retention .runtime-chip__dot {
  background: #6e9b4f;
}

.runtime-tile--db::before,
.runtime-tile--db .detail-label::before {
  background: linear-gradient(180deg, #5f92c8 0%, #2e5d90 100%);
}

.runtime-tile--config::before,
.runtime-tile--config .detail-label::before {
  background: linear-gradient(180deg, #907ed9 0%, #5846aa 100%);
}

.runtime-tile--log::before,
.runtime-tile--log .detail-label::before {
  background: linear-gradient(180deg, #5db99c 0%, #28705a 100%);
}

.runtime-tile--ops::before,
.runtime-tile--ops .detail-label::before {
  background: linear-gradient(180deg, #d0a45b 0%, #986628 100%);
}

.runtime-tile--inbox::before,
.runtime-tile--inbox .detail-label::before {
  background: linear-gradient(180deg, #5a9dc7 0%, #2b6d97 100%);
}

.runtime-tile--processed::before,
.runtime-tile--processed .detail-label::before {
  background: linear-gradient(180deg, #63b07a 0%, #2d7646 100%);
}

.runtime-tile--failed::before,
.runtime-tile--failed .detail-label::before {
  background: linear-gradient(180deg, #d26f78 0%, #9d3f47 100%);
}

.runtime-tile--archive::before,
.runtime-tile--archive .detail-label::before {
  background: linear-gradient(180deg, #c28567 0%, #8b5639 100%);
}

.runtime-tile--backups::before,
.runtime-tile--backups .detail-label::before {
  background: linear-gradient(180deg, #c39a52 0%, #8b6525 100%);
}

.info-row {
  grid-template-columns: 22px 1fr;
  align-items: start;
}

.entity-modal[hidden] {
  display: none;
}

.entity-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
}

.entity-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(21, 33, 45, 0.56);
  backdrop-filter: blur(4px);
}

.entity-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(1400px, calc(100vw - 48px));
  max-height: calc(100vh - 40px);
  margin: 20px auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(15, 26, 38, 0.22);
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  overflow: hidden;
}

.entity-modal__header,
.entity-modal__meta {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.entity-modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
}

.entity-modal--compact-header .entity-modal__header > div:first-child {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 10px;
  min-width: 0;
}

.entity-modal--compact-header .entity-modal__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.entity-modal--compact-header #entityModalKicker,
.entity-modal--compact-header #entityModalTitle {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.entity-modal--compact-header #entityModalKicker {
  margin: 0;
  flex: 0 1 auto;
  margin-bottom: 0;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: #d86c15;
}

.entity-modal--compact-header #entityModalTitle {
  margin: 0;
  flex: 1 1 auto;
  font-size: 20px;
  line-height: 1.1;
}

.entity-modal--compact-header .action-row {
  flex-wrap: nowrap;
  gap: 8px;
}

.entity-modal--compact-header .action-row .btn {
  padding: 7px 10px;
}

.entity-modal--compact-header .entity-modal__meta-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 5px;
}

.entity-modal--compact-header .entity-modal__meta {
  padding: 8px 10px;
  background: #f5f8fc;
}

.entity-modal--compact-header .entity-modal__meta .detail-card {
  padding: 7px 9px;
  border-radius: 9px;
  min-height: 0;
  background: #ffffff;
  border-color: #d9e2ec;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.entity-modal--compact-header .entity-modal__meta .detail-label {
  margin-bottom: 1px;
  font-size: 10px;
  color: #647587;
}

.entity-modal--compact-header .entity-modal__meta .detail-card > div {
  font-size: 12px;
  font-weight: 600;
  color: #243243;
  line-height: 1.2;
}

.entity-modal__meta {
  background: var(--card-soft);
  display: grid;
  gap: 8px;
}

.entity-modal__meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.entity-modal__body {
  padding: 18px;
  overflow: auto;
  background: #fbfcfe;
}

.entity-modal__body .table-wrap {
  background: #fff;
}

.entity-modal__body thead th {
  white-space: nowrap;
  font-size: 12px;
  letter-spacing: 0.04em;
}

.entity-modal__body th,
.entity-modal__body td {
  padding: 8px 10px;
}

.entity-modal__body tbody tr.table-row-action {
  cursor: pointer;
}

.entity-modal__body tbody tr.table-row-action:hover {
  background: #eef4fb;
}

.entity-modal--fullscreen .entity-modal__dialog {
  width: calc(100vw - 20px);
  max-height: calc(100vh - 20px);
  margin: 10px auto;
  border-radius: 20px;
}

.entity-modal--split-scroll .entity-modal__body {
  overflow: hidden;
  padding: 0;
}

.json-preview-layout {
  display: grid;
  grid-template-columns: minmax(360px, 0.95fr) minmax(520px, 1.45fr);
  gap: 0;
  min-height: 0;
  height: min(68vh, 860px);
}

.json-preview-panel {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: #fff;
}

.json-preview-panel + .json-preview-panel {
  border-left: 1px solid #dbe4ee;
}

.json-preview-panel__head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid #dbe4ee;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 253, 0.96));
  backdrop-filter: blur(6px);
}

.json-preview-panel__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 14px 16px 18px;
  background: #fbfcfe;
}

.json-preview-panel--viewer .json-preview-panel__body {
  padding-bottom: 28px;
}

.json-preview-tools {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.json-search-box {
  flex: 1 1 280px;
}

.json-search-box input {
  width: 100%;
  min-width: 0;
  height: 38px;
  padding: 0 12px;
  border: 1px solid #d6e0ea;
  border-radius: 10px;
  background: #fff;
  color: #22384d;
  outline: none;
}

.json-search-box input:focus {
  border-color: #6f97bc;
  box-shadow: 0 0 0 3px rgba(92, 135, 179, 0.16);
}

.json-preview-empty,
.json-preview-error {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  min-height: 240px;
  padding: 24px;
  text-align: center;
  border: 1px dashed #d5dfeb;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fafd 100%);
}

.json-preview-error {
  border-color: #ebd0d3;
  background: linear-gradient(180deg, #fffdfd 0%, #fff5f6 100%);
}

.json-preview-viewer {
  display: grid;
  gap: 12px;
}

.json-search-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 12px;
  border: 1px solid #d8e3ef;
  border-radius: 12px;
  background: #f7faff;
  color: #39516a;
}

.json-preview-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid #d2deeb;
  background: #fff;
  color: #56708a;
  font-size: 11px;
  font-weight: 700;
}

.json-preview-health {
  display: grid;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid #d9e5f0;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

.json-preview-health--warning {
  border-color: #ecd9bc;
  background: linear-gradient(180deg, #fffdf9 0%, #fff6ea 100%);
}

.json-preview-health--ok {
  border-color: #d4e7da;
  background: linear-gradient(180deg, #fbfffc 0%, #f2fbf5 100%);
}

.json-preview-health__hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.json-preview-health__status {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}

.json-preview-health__status h4 {
  margin: 2px 0 0;
}

.json-preview-health__badge,
.json-preview-health__counter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.json-preview-health__badge {
  color: #2f5d8b;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(155, 184, 214, 0.95);
}

.json-preview-health__counter {
  color: #5b6f84;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(210, 223, 235, 0.95);
}

.json-preview-health--warning .json-preview-health__badge {
  color: #9a6321;
  border-color: rgba(231, 194, 145, 0.95);
}

.json-preview-health--ok .json-preview-health__badge {
  color: #2e7a48;
  border-color: rgba(170, 215, 182, 0.95);
}

.json-preview-health__chips {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.json-preview-health__chip {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(210, 223, 235, 0.9);
}

.json-preview-health__chip small {
  color: #6c7e91;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.json-preview-health__chip strong {
  color: #23384d;
  font-size: 15px;
  line-height: 1.25;
}

.json-preview-health__checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.json-preview-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #dce6ef;
  background: rgba(255, 255, 255, 0.72);
}

.json-preview-check.is-ok {
  border-color: #d5e8dc;
  background: rgba(247, 253, 249, 0.9);
}

.json-preview-check.is-missing {
  border-color: #eed7bb;
  background: rgba(255, 250, 242, 0.92);
}

.json-preview-check__dot {
  width: 10px;
  height: 10px;
  margin-top: 4px;
  flex: 0 0 10px;
  border-radius: 999px;
  background: #7ca992;
  box-shadow: 0 0 0 4px rgba(124, 169, 146, 0.12);
}

.json-preview-check.is-missing .json-preview-check__dot {
  background: #d69a4c;
  box-shadow: 0 0 0 4px rgba(214, 154, 76, 0.14);
}

.json-preview-check__content {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.json-preview-check__content strong {
  color: #2a3d50;
  font-size: 12px;
}

.json-preview-check__content span {
  color: #617386;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.json-preview-warning-list {
  display: grid;
  gap: 6px;
  padding-top: 2px;
}

.json-preview-warning-list__title {
  font-size: 12px;
  font-weight: 700;
  color: #8b5a1e;
}

.json-preview-warning-item {
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(226, 195, 155, 0.9);
  color: #835820;
}

.json-preview-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.json-preview-summary__card,
.json-preview-section {
  border: 1px solid #dbe4ee;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfe 100%);
  box-shadow: 0 10px 22px rgba(22, 38, 56, 0.04);
}

.json-preview-summary__card {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
}

.json-preview-summary__card span,
.json-preview-summary__card small {
  color: #6a7b8d;
}

.json-preview-summary__card strong {
  color: #21364a;
  line-height: 1.3;
}

.json-preview-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px 0;
}

.json-preview-section__head h4 {
  margin: 2px 0 0;
}

.json-preview-section > .json-preview-card-grid {
  padding: 14px 16px 16px;
}

.json-preview-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.json-preview-card-grid .detail-card {
  min-height: 0;
}

.json-preview-card-grid .detail-card.is-empty {
  border-color: #e5e9ef;
  background: #f8fafc;
  opacity: 0.78;
}

.json-preview-card-grid .detail-card.is-rich {
  border-color: #d5e5db;
  background: linear-gradient(180deg, #fbfffd 0%, #f3fbf6 100%);
}

.json-preview-sections {
  display: grid;
  gap: 10px;
}

.json-preview-disclosure {
  border: 1px solid #dbe4ee;
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
}

.json-preview-disclosure__summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  background: linear-gradient(180deg, #ffffff 0%, #f7fafd 100%);
}

.json-preview-disclosure__summary::-webkit-details-marker {
  display: none;
}

.json-preview-disclosure__summary h4 {
  margin: 2px 0 0;
}

.json-preview-disclosure__body {
  padding: 0 16px 16px;
}

.json-preview-list {
  display: grid;
  gap: 8px;
}

.json-preview-list__item {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #dde6ef;
  background: #fbfcfe;
}

.json-preview-raw {
  overflow: auto;
  margin: 0;
  padding: 14px 16px 16px;
  border-top: 1px solid #e2e9f1;
  background: #f5f8fc;
}

.json-preview-raw code {
  display: block;
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
  line-height: 1.5;
  color: #21364a;
  white-space: pre-wrap;
  word-break: break-word;
}

.json-preview-code {
  overflow: auto;
  margin: 0;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid #24384d;
  background:
    linear-gradient(180deg, #13202e 0%, #1a2738 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 8px 18px rgba(12, 22, 33, 0.12);
}

.json-preview-code code {
  display: block;
  color: #d7e6f5;
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
  tab-size: 2;
}

.json-token--key {
  color: #8fc7ff;
}

.json-token--string {
  color: #b8eb9a;
}

.json-token--number {
  color: #ffd082;
}

.json-token--boolean {
  color: #ff9ec0;
  font-weight: 700;
}

.json-token--null {
  color: #9fb0c2;
  font-style: italic;
}

.json-search-mark {
  padding: 0 2px;
  border-radius: 4px;
  background: #fff0a8;
  color: inherit;
}

@media (max-width: 1100px) {
  .json-preview-layout,
  .json-preview-summary,
  .json-preview-card-grid,
  .json-preview-health__chips,
  .json-preview-health__checks {
    grid-template-columns: 1fr;
  }

  .json-preview-layout {
    height: auto;
  }

  .json-preview-health__hero,
  .json-preview-health__status {
    flex-direction: column;
  }

  .json-preview-panel {
    max-height: none;
  }

  .json-preview-panel + .json-preview-panel {
    border-left: 0;
    border-top: 1px solid #dbe4ee;
  }
}

.about-modal[hidden] {
  display: none;
}

.about-modal {
  position: fixed;
  inset: 0;
  z-index: 130;
}

.about-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 25, 39, 0.74);
  backdrop-filter: blur(4px);
}

.about-modal__dialog {
  position: relative;
  width: min(92vw, 840px);
  margin: min(9vh, 72px) auto;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background:
    radial-gradient(circle at top right, rgba(242, 140, 40, 0.12), transparent 26%),
    linear-gradient(165deg, rgba(255, 255, 255, 0.97), rgba(244, 248, 252, 0.92));
  box-shadow: 0 20px 60px rgba(11, 30, 48, 0.35);
  text-align: left;
}

.about-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: rgba(35, 50, 67, 0.08);
  color: #243243;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.about-modal__close:hover {
  background: rgba(35, 50, 67, 0.14);
}

.about-modal__hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  padding-right: 44px;
}

.about-modal__brand {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.about-modal__title {
  margin: 2px 0 6px;
  font-size: 24px;
  color: #203446;
}

.about-modal__lead {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: #536577;
}

.about-modal__meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 10px;
  min-width: 270px;
}

.about-modal__meta-card,
.about-modal__info-card {
  border-radius: 16px;
  border: 1px solid #d9e3ee;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 24px rgba(23, 39, 56, 0.08);
}

.about-modal__meta-card {
  padding: 12px 14px;
  display: grid;
  gap: 4px;
}

.about-modal__meta-card span,
.about-modal__info-card span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #728396;
}

.about-modal__meta-card strong {
  font-size: 16px;
  color: #203446;
}

.about-modal__image {
  width: 104px;
  height: 104px;
  object-fit: contain;
  border-radius: 50px;
  border: 1px solid rgba(35, 50, 67, 0.16);
  background: linear-gradient(180deg, #fff 0%, #f4f8fc 100%);
  box-shadow: 0 14px 32px rgba(24, 45, 64, 0.2);
}

.about-modal__body {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.about-modal__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.about-modal__info {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.about-modal__info-card {
  padding: 14px 15px;
  display: grid;
  gap: 5px;
}

.about-modal__info-card strong {
  font-size: 15px;
  line-height: 1.25;
  color: #203446;
}

.about-modal__info-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: #5e7082;
}

.about-modal__note {
  margin: 0;
  font-size: 12px;
  color: #738396;
  text-align: right;
}

.brand-logo {
  cursor: pointer;
}

@media (max-width: 1460px) {
  .summary-hero,
  .summary-hero__chips,
  .dashboard-grid,
  .assets-grid,
  .load-heatmap-summary {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1260px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .workspace,
  .import-grid {
    grid-template-columns: 1fr;
  }

  .reports-toolbar {
    grid-template-columns: 1fr;
  }

  .reports-toolbar__filters {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .server-overview-grid,
  .server-resource-grid,
  .server-policy-summary,
  .server-policy-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .summary-stat-chip {
    max-width: 100%;
  }

  .workspace-side,
  .sticky-card {
    position: static;
  }
}

@media (max-width: 820px) {
  .main,
  .sidebar {
    padding: 10px;
  }

  .about-modal__hero,
  .about-modal__info,
  .about-modal__brand {
    grid-template-columns: 1fr;
  }

  .about-modal__meta {
    grid-template-columns: 1fr 1fr;
    min-width: 0;
  }

  .about-modal__image {
    width: 88px;
    height: 88px;
  }

  .about-modal__note {
    text-align: left;
  }

  .load-heatmap-legend {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar,
  .panel-title-row,
  .table-toolbar,
  .search-row,
  .reports-toolbar,
  .import-runs-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .import-runs-toolbar {
    display: grid;
    grid-template-columns: 1fr;
  }

  .detail-grid,
  .summary-hero,
  .summary-hero__chips,
  .summary-grid,
  .entity-modal__meta-grid,
  .runtime-grid,
  .server-policy-grid,
  .server-overview-grid,
  .server-resource-grid,
  .server-policy-summary,
  .server-policy-layout {
    grid-template-columns: 1fr;
  }

  .bar-row {
    grid-template-columns: 1fr;
  }

  .entity-modal__dialog {
    width: min(100vw - 16px, 1400px);
    max-height: calc(100vh - 16px);
    margin: 8px auto;
  }

  .operator-report-summary,
  .operator-modal-grid {
    grid-template-columns: 1fr;
  }

  .server-overview-card {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .entity-modal__header {
    flex-direction: column;
    align-items: stretch;
  }

  .entity-modal--compact-header .entity-modal__header {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }
}
