[hidden] { display: none !important; }
/* ---------------------------------------------------------------------------
   Lapisan kepadatan dan tipografi.
   Skala tipe, bobot, kontrol, dan pohon prefix diatur untuk tabel operasional
   yang dibaca dalam waktu lama.
   --------------------------------------------------------------------------- */
:root {
  --font: "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "Cascadia Mono", "JetBrains Mono", ui-monospace, Consolas, monospace;
  --r1: 14px;
  --r2: 10px;
  --r3: 7px;
  --sh: 0 1px 2px rgba(17, 24, 39, .04), 0 6px 16px -12px rgba(17, 24, 39, .18);
  --sh2: 0 2px 6px rgba(17, 24, 39, .05), 0 18px 40px -22px rgba(17, 24, 39, .28);
}

body { font-size: 13px; line-height: 1.45; font-feature-settings: "tnum" 1, "cv05" 1; }

/* --- kerangka --- */
.appbar { padding: 9px 22px; gap: 16px; }
.brand-mark { width: 32px; height: 32px; border-radius: 8px; font-size: 11px; font-weight: 700; }
.brand-text b { font-size: 15px; font-weight: 700; letter-spacing: 0; }
.brand-text small { font-size: 10.5px; margin-top: 1px; }
.appbar .env { font-size: 9px; font-weight: 700; padding: 2px 6px; letter-spacing: .08em; }
.appbar .command { height: 34px; border-radius: 7px; font-size: 12px; color: var(--t3); }
.appbar .command kbd { font-size: 9.5px; }
.license-chip { height: 26px; font-size: 10.5px; font-weight: 600; }
.live { height: 32px; font-size: 11px; font-weight: 600; padding: 0 10px; }
.avatar { height: 32px; border-radius: 9px; }

.tabs { top: 54px; padding: 0 16px; }
.tab { height: 40px; padding: 0 12px; font-size: 12px; font-weight: 600; gap: 6px; color: var(--t2); }
.tab .i { width: 15px; height: 15px; }
.tab[aria-current="page"] { font-weight: 700; }
.tab-count { font-size: 9.5px; font-weight: 600; padding: 0 5px; border-radius: 4px; background: var(--bd2); }
.tab-badge { font-size: 9.5px; padding: 0 5px; border-radius: 4px; }

/* --- halaman dan judul --- */
main { padding: 20px 22px 48px; }
.hero { border-radius: var(--r1); padding: 22px 24px 18px; margin-bottom: 16px; }
.hero h1 { font-size: 22px; font-weight: 700; letter-spacing: -.01em; margin: 6px 0 4px; }
.hero p { font-size: 12px; }
.hero .eyebrow { font-size: 9.5px; font-weight: 700; letter-spacing: .1em; }
.hero-chip { height: 24px; font-size: 10.5px; font-weight: 500; padding: 0 9px; }
.hero-actions .btn { height: 32px; }
.page-head { margin-bottom: 14px; }
.page-head .eyebrow { font-size: 9.5px; letter-spacing: .09em; }
.page-head h1 { font-size: 20px; font-weight: 700; letter-spacing: -.01em; margin-top: 4px; }
.page-head p { font-size: 11.5px; margin-top: 3px; }

/* --- tombol dan input --- */
.btn {
  height: 32px; padding: 0 12px; border-radius: var(--r3);
  font-size: 12px; font-weight: 600; gap: 6px; box-shadow: none;
}
.btn .i { width: 15px; height: 15px; }
.btn.primary { box-shadow: 0 1px 2px rgba(37, 99, 201, .25); font-weight: 600; }
.btn.sm { height: 27px; padding: 0 9px; font-size: 11px; }
.icon-btn { width: 32px; height: 32px; border-radius: var(--r3); }
.icon-btn.sm { width: 26px; height: 26px; }
.input { height: 32px; border-radius: var(--r3); font-size: 12px; min-width: 200px; }
.input input { font-size: 12px; }
select.control, .control { height: 32px; font-size: 11.5px; border-radius: var(--r3); }
.seg { border-radius: 8px; padding: 2px; }
.seg button { height: 26px; font-size: 11px; font-weight: 600; border-radius: 6px; padding: 0 9px; }
.seg .n { font-size: 9.5px; }

/* --- kartu, kpi, panel --- */
.panel { border-radius: var(--r2); box-shadow: var(--sh); }
.panel-head { padding: 11px 14px; gap: 8px; }
.panel-head h2 { font-size: 12.5px; font-weight: 700; letter-spacing: 0; }
.panel-body { padding: 14px; }
.badge { font-size: 9.5px; font-weight: 600; padding: 2px 6px; border-radius: 4px; }

.kpis { gap: 12px; margin-bottom: 14px; }
.kpi { padding: 13px 14px 12px; border-radius: var(--r2); gap: 4px; }
.kpi-icon { width: 28px; height: 28px; border-radius: 7px; }
.kpi .label { font-size: 9.5px; font-weight: 600; letter-spacing: .06em; }
.kpi .value { font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.kpi .value small { font-size: 11px; font-weight: 600; }
.kpi .hint { font-size: 11px; }
.kpi .meter { height: 4px; margin-top: 6px; }

.insights { gap: 12px; margin-bottom: 14px; align-items: start; }
.grid { gap: 14px; }
.donut { width: 108px; height: 108px; }
.donut svg { width: 108px; height: 108px; }
.donut .donut-center b { font-size: 18px; font-weight: 700; }
.donut .donut-center small { font-size: 9px; }
.legend-row { font-size: 11.5px; }
.pl-row { font-size: 11px; }
.tl-top { font-size: 11px; }

/* --- tabel --- */
th { font-size: 9.5px; font-weight: 600; letter-spacing: .05em; padding: 8px 12px; }
td { font-size: 12px; padding: 8px 12px; }
td.mono, .mono { font-size: 11.5px; }
.usage-track { width: 76px; height: 5px; }
.cell-main { gap: 5px; }

/* --- chip status --- */
.chip { height: 20px; padding: 0 7px; font-size: 10px; font-weight: 600; gap: 5px; border-radius: 4px; border: 1px solid transparent; }
.chip .d { width: 5px; height: 5px; }
.chip.ok { border-color: #CBE7D4; }
.chip.warn { border-color: #F3D9B5; }
.chip.crit { border-color: #F0C9C9; }
.chip.info { border-color: #CFE0F8; }
.chip.neutral { border-color: var(--bd); }

/* --- pohon prefix --- */
.explorer { grid-template-columns: 460px minmax(0, 1fr); gap: 14px; }
.explorer-tree { max-height: calc(100vh - 152px); max-height: calc(100dvh - 152px); }
.explorer-tree .panel-head h2 { font-size: 12px; font-weight: 700; }
.explorer-search { padding: 8px 10px; }
.explorer-tree .pt { padding: 6px 8px 10px; }

.pt { gap: 0; }
.pt-row {
  min-height: 34px; padding: 3px 8px 3px 5px; gap: 8px;
  border: 0; border-radius: 6px;
}
.pt-row:hover { background: #F4F6FA; }
.pt-row.selected {
  background: #EDF3FE; border: 0; box-shadow: inset 3px 0 0 var(--blue);
}
.pt-toggle { width: 18px; height: 18px; border-radius: 4px; color: #94A3B8; }
.pt-toggle .i { width: 12px; height: 12px; }
.pt-toggle .pt-dash { width: 7px; background: #D7DDE7; }
.pt-icon {
  width: 24px; height: 24px; border-radius: 5px; flex: none;
  background: #F1F4F8; color: #64748B;
}
.pt-icon .i { width: 12px; height: 12px; }
.pt-icon.k32, .pt-icon.k48, .pt-icon.k64, .pt-icon.k128 { background: #F1F4F8; color: #64748B; }
.pt-prefix { font-size: 12px; font-weight: 600; letter-spacing: 0; }
.pt-tag {
  flex: 0 1 auto; max-width: 150px; background: transparent; border: 0;
  padding: 0; font-size: 10.5px; font-weight: 500; color: var(--t3); text-align: right;
}
.pt-children { margin-left: 15px; padding-left: 10px; border-left: 1px solid #E6EAF0; }
.pt-row::before { left: -10px; width: 7px; background: #E6EAF0; }
.pt-owner { font-size: 10.5px; }

/* --- panel detail --- */
.detail-head { padding: 13px 16px 12px; }
.detail-crumbs {
  display: flex; align-items: center; gap: 2px; margin-bottom: 6px;
  overflow-x: auto; white-space: nowrap; scrollbar-width: none;
}
.detail-crumbs::-webkit-scrollbar { display: none; }
.crumb-link {
  display: inline-flex; align-items: center; gap: 5px; max-width: 220px;
  padding: 3px 6px; border-radius: 5px; font-size: 11px; font-weight: 600;
  color: var(--t2); text-decoration: none; overflow: hidden; text-overflow: ellipsis;
}
.crumb-link:hover { background: var(--state-hover); color: var(--blue-d); text-decoration: none; }
.crumb-link .i { width: 12px; height: 12px; color: var(--t3); flex: none; }
.crumb-space { color: var(--tx); }
.crumb-current {
  max-width: 260px; padding: 3px 4px; font-family: var(--mono);
  font-size: 10.5px; font-weight: 600; color: var(--tx);
  overflow: hidden; text-overflow: ellipsis;
}
.crumb-sep { color: #C3CBD8; font-size: 11px; padding: 0 1px; flex: none; }
.detail-title-row h2 { font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.detail-title-row p { font-size: 11px; margin-top: 4px; }
.x-kpis { gap: 10px; padding: 14px 16px 4px; }
.x-kpi { padding: 10px 12px; border-radius: 8px; gap: 3px; }
.x-kpi-label { font-size: 9.5px; font-weight: 600; letter-spacing: .06em; }
.x-kpi-value b { font-size: 20px; font-weight: 700; }
.x-kpi-value small { font-size: 9.5px; }
.x-kpi-hint { font-size: 10.5px; }
.detail-table-head { padding: 11px 16px; }
.detail-table-head h3 { font-size: 12px; font-weight: 700; }
.explorer-detail th, .explorer-detail td { padding: 7px 10px; font-size: 11.5px; }

/* --- alur permintaan --- */
.filters, .toolbar { padding: 9px 12px; gap: 8px; }
.toolbar .count { font-size: 10.5px; }
.pager { padding: 8px 12px; }
.pager button { min-width: 26px; height: 26px; font-size: 11px; }
.pager .range { font-size: 10.5px; }
.drawer-head h2, .dialog-head h2 { font-size: 13.5px; font-weight: 700; }
.kv { font-size: 11.5px; grid-template-columns: 116px 1fr; }
.section-title { font-size: 9.5px; }
.field > label { font-size: 9.5px; }
.field input, .field select { height: 34px; font-size: 12px; }
.field .hint { font-size: 10.5px; }
.toast { font-size: 11.5px; padding: 9px 10px 10px 11px; }
.tip { font-size: 10.5px; }

/* --- heatmap dan analitik --- */
.hm-head h2 { font-size: 12.5px; font-weight: 700; }
.hm-cell { height: 26px; font-size: 8.5px; border-radius: 4px; }
.hm-legend { font-size: 10.5px; }
.an-row { font-size: 11px; grid-template-columns: 140px 1fr 44px; margin-bottom: 7px; }
.check-form .input { min-width: 240px; }
.suggest-note { font-size: 10.5px; }

/* --- responsif --- */
@media (min-width: 1101px) and (max-width: 1280px) {
  .explorer { grid-template-columns: 330px minmax(0, 1fr); }
}

@media (max-width: 700px) {
  .explorer-tree .panel-head .badge { display: none; }
  .explorer-tree .panel-head h2 { white-space: nowrap; }
  .detail-title-row h2 { font-size: 17px; }
}

/* --- button hierarchy: one solid primary per context --- */
.btn.primary {
  background: var(--blue); border-color: var(--blue); color: #fff;
  background-image: none; box-shadow: 0 1px 2px rgba(37, 99, 201, .18);
}
.btn.primary:hover { background: var(--blue-d); border-color: var(--blue-d); }
.btn.outline {
  background: #fff; border-color: #C9DCF7; color: var(--blue-d);
}
.btn.outline:hover { background: var(--blue-l); border-color: #B6D0F5; color: var(--blue-d); }
.btn.ghost { border-color: transparent; background: transparent; color: var(--t3); }
.btn.ghost:hover { background: var(--sf2); border-color: transparent; color: var(--tx); }
.btn.icon-only { width: 32px; padding: 0; justify-content: center; color: var(--t2); }
.btn.icon-only:hover { color: var(--tx); }
.btn.icon-only .i { width: 15px; height: 15px; }
.detail-actions { gap: 6px; align-items: center; }
.detail-actions .btn.ghost { padding: 0 8px; }
.detail-actions .btn.outline { padding: 0 11px; }
.page-head .actions { gap: 6px; align-items: center; }

/* --- every surface is interactive: cards, bars, panels, rows --- */
.kpi, .x-kpi {
  text-align: left; font: inherit; color: inherit; width: 100%;
  cursor: pointer; transition: border-color .12s linear, background-color .12s linear;
}
.kpi:hover, .x-kpi:hover { border-color: #CFE0F8; background: #FBFDFF; }
.x-kpi { cursor: pointer; transition: border-color .12s linear, background-color .12s linear; }
.kpi:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
.kpi .hint { display: block; }

button.an-row {
  width: 100%; border: 0; background: transparent; font: inherit; color: inherit;
  text-align: left; padding: 3px 6px; margin-left: -6px; border-radius: 5px; cursor: pointer;
}
button.an-row:hover { background: #F4F7FC; }
button.an-row:hover span:first-child { color: var(--blue-d); }
button.an-row:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }

.panel-head { cursor: pointer; user-select: none; }
.panel-head:hover { background: #FAFBFE; }
.panel-head::after {
  content: ""; width: 6px; height: 6px; margin-left: 6px; flex: none;
  border-right: 1.5px solid #B6C0D0; border-bottom: 1.5px solid #B6C0D0;
  transform: rotate(45deg) translateY(-1px); transition: transform .12s linear;
}
.panel.collapsed > .panel-head::after { transform: rotate(-45deg) translateX(-1px); }
.panel.collapsed > :not(.panel-head) { display: none; }
.panel-head:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }

tr[data-action] { cursor: pointer; }
tr[data-action]:hover td { background: #F7F9FD; }
tr[data-action]:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }

.context-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: -2px 0 12px; }
.context-chip {
  display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 9px;
  border: 1px solid var(--bd); border-radius: 5px; background: var(--sf);
  font-size: 10.5px; font-weight: 600; color: var(--t2); cursor: pointer;
}
.context-chip b { font-family: var(--mono); font-size: 11px; color: var(--tx); font-weight: 600; }
.context-chip:hover { border-color: #CFE0F8; background: var(--blue-l); color: var(--blue-d); }
.context-chip.warn { border-color: #F3D9B5; background: var(--org-l); color: var(--org-d); }
.context-chip.warn b { color: var(--org-d); }
.context-chips { align-items: center; }
.context-chips .seg { padding: 2px; }
.context-chips .seg button { height: 20px; padding: 0 9px; }
.ctx-space { position: relative; border-color: #C9D8F0; color: var(--t2); }
.ctx-space:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,201,.12); }
.ctx-space > .i { width: 13px; height: 13px; color: var(--blue-d); }
.ctx-space b { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--navy); }
.ctx-space-count { padding: 0 5px; border-radius: 999px; background: var(--sf2); border: 1px solid var(--bd2); font-family: var(--mono); font-size: 9px; color: var(--t3); }
.ctx-space > .ctx-space-chevron { width: 11px; height: 11px; color: var(--t3); transform: rotate(90deg); }
.ctx-space select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }

.hm-cell { cursor: pointer; }
.obs-row { cursor: pointer; }

/* --- observed address inspector --- */
.obs-hero { padding: 14px; border: 1px solid var(--bd); border-radius: 8px; background: var(--sf2); }
.obs-address { font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
.obs-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; }
.obs-seen { margin-top: 8px; font-size: 11px; color: var(--t3); }
.obs-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 14px 0 2px; }
.obs-stat {
  text-align: left; font: inherit; color: inherit; cursor: pointer;
  border: 1px solid var(--bd); border-radius: 8px; background: #fff; padding: 9px 10px;
}
.obs-stat span { display: block; font-size: 9.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--t3); }
.obs-stat b { display: block; margin-top: 3px; font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }
.obs-stat:hover { border-color: #CFE0F8; background: var(--blue-l); }
.obs-callout {
  margin-top: 12px; padding: 10px 11px; border-radius: 8px; font-size: 11.5px; line-height: 1.5;
  border: 1px solid #F3D9B5; background: var(--org-l); color: var(--org-d);
}
.obs-callout.crit { border-color: #F0C9C9; background: var(--crit-l); color: var(--crit); }

/* related unregistered addresses in the observed drawer */
.obs-related { display: flex; flex-direction: column; border: 1px solid var(--bd); border-radius: 8px; overflow: hidden; }
.obs-related-row {
  display: grid; grid-template-columns: 1.4fr .6fr 1fr; gap: 10px; align-items: center;
  padding: 8px 10px; border: 0; border-bottom: 1px solid var(--bd2); background: #fff;
  font: inherit; font-size: 11.5px; color: var(--t2); text-align: left; cursor: pointer;
}
.obs-related-row:last-child { border-bottom: 0; }
.obs-related-row:hover { background: var(--blue-l); }
.obs-related-row .mono { font-size: 11px; }

/* brand mark: hexagon (IPv6), block outline, address dot */
.brand-mark svg { width: 21px; height: 21px; display: block; }

/* --- drawer identity hero and structured rows --- */
.drawer-panel { width: min(600px, 100%); }
.drawer-hero {
  display: flex; align-items: flex-start; gap: 12px; padding: 16px 18px;
  background: linear-gradient(135deg, #0B2E6B 0%, #14418F 58%, #2563C9 120%);
  color: #fff; border-bottom: 1px solid rgba(255, 255, 255, .16); box-shadow: 0 1px 0 rgba(11, 46, 107, .06);
}
.drawer-hero .hero-icon {
  width: 38px; height: 38px; flex: none; border-radius: 9px; display: grid; place-items: center;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .18);
}
.drawer-hero .drawer-hero-text { min-width: 0; flex: 1; }
.drawer-hero .eyebrow {
  font-size: 9.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #A9C2E8;
}
.drawer-hero h2 {
  margin: 3px 0 0; font-family: var(--mono); font-size: 15.5px; font-weight: 600;
  letter-spacing: -.01em; overflow-wrap: anywhere; color: #fff;
}
.drawer-hero p { margin: 3px 0 0; font-size: 11.5px; color: #C6D6EE; }
.drawer-hero .chip { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.3); color: #fff; }
.drawer-hero .icon-btn {
  margin-left: auto; flex: none; background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.25); color: #fff;
}
.drawer-facts { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 18px 0; }
.fact {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px;
  border: 1px solid var(--bd); border-radius: 5px; background: var(--sf2);
  font-size: 10.5px; color: var(--t3);
}
.fact b { color: var(--tx); font-weight: 600; font-variant-numeric: tabular-nums; }
.drawer-section { padding: 12px 0; border-bottom: 1px solid var(--bd2); }
.drawer-section:last-child { border-bottom: 0; padding-bottom: 4px; }
.drawer-section .drawer-section-title {
  margin: 0 0 7px; font-size: 9.5px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--t3);
}
.drow { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 8px; padding: 4px 0; align-items: start; }
.drow dt { min-width: 0; color: var(--t3); font-size: 11.5px; font-weight: 600; overflow-wrap: anywhere; }
.drow dd { margin: 0; font-size: 12px; display: flex; align-items: center; gap: 5px; flex-wrap: wrap; min-width: 0; }
.drow .copy { opacity: 0; transition: opacity .1s linear; }
.drow:hover .copy, .drow .copy:focus-visible { opacity: 1; }
.link {
  border: 0; background: transparent; padding: 0; font: inherit; color: var(--blue-d);
  font-weight: 600; cursor: pointer; text-decoration: none;
}
.link:hover { text-decoration: underline; }
.drawer-table { min-width: 0; width: 100%; }
.drawer-table th { padding: 6px 8px; }
.drawer-table td { padding: 6px 8px; font-size: 11.5px; }

/* --- analytics workspace --- */
.an-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.an-card {
  display: flex; gap: 10px; padding: 12px 13px; border: 1px solid var(--bd);
  border-radius: 10px; background: var(--sf); box-shadow: var(--sh);
  text-align: left; font: inherit; color: inherit; cursor: pointer;
  transition: border-color .12s ease, transform .12s ease, box-shadow .12s ease;
}
.an-card:hover { border-color: var(--state-hover-border); transform: translateY(-1px); box-shadow: var(--sh2); }
.an-card-icon {
  width: 30px; height: 30px; flex: none; border-radius: 8px; display: grid; place-items: center;
  background: var(--blue-l); color: var(--blue-d);
}
.an-card.crit .an-card-icon { background: var(--crit-l); color: var(--crit); }
.an-card.ok .an-card-icon { background: var(--ok-l); color: var(--ok); }
.an-card.org .an-card-icon { background: var(--org-l); color: var(--org-d); }
.an-card h3 { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--t3); }
.an-card p { margin-top: 4px; font-size: 11.5px; line-height: 1.5; color: var(--t2); }
.an-card p b { color: var(--tx); font-weight: 600; }

.an-layout { display: grid; grid-template-columns: 1.55fr 1fr; gap: 14px; align-items: start; }
.an-chart { min-width: 0; }
.an-caption { font-size: 10.5px; color: var(--t3); margin-bottom: 8px; }
.chart-svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart-dot { cursor: pointer; }
.chart-dot:hover { fill: var(--blue-l); }
.an-legend { display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px; color: var(--t3); }
.an-legend b { color: var(--tx); font-weight: 600; }
.an-swatch { width: 14px; height: 2px; border-radius: 2px; background: var(--blue); display: inline-block; }
.an-delta { color: var(--ok); font-weight: 600; }

.an-bars { display: flex; flex-direction: column; gap: 8px; }
.an-bar {
  display: grid; grid-template-columns: 118px minmax(0, 1fr) 34px; gap: 8px; align-items: center;
  border: 0; background: transparent; padding: 2px 0; font: inherit; text-align: left; cursor: pointer;
}
.an-bar-label { font-size: 10.5px; color: var(--t2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.an-bar-track { height: 7px; border-radius: 999px; background: var(--bd2); overflow: hidden; display: block; }
.an-bar-fill { display: block; height: 100%; border-radius: 999px; background: var(--blue); }
.an-bar b { font-size: 11.5px; text-align: right; font-variant-numeric: tabular-nums; }
.an-bar:hover .an-bar-label { color: var(--blue-d); }

.an-stack { display: flex; height: 34px; border-radius: 7px; overflow: hidden; gap: 2px; }
.an-seg {
  border: 0; color: #fff; font: inherit; font-size: 11px; font-weight: 600; cursor: pointer;
  display: grid; place-items: center; min-width: 26px;
}
.an-seg:hover { filter: brightness(.94); }
.an-legend-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.an-legend-item {
  display: inline-flex; align-items: center; gap: 5px; border: 0; background: transparent;
  font: inherit; font-size: 10.5px; color: var(--t3); cursor: pointer; padding: 2px 0;
}
.an-legend-item i { width: 8px; height: 8px; border-radius: 2px; }
.an-legend-item b { color: var(--tx); font-weight: 600; }
.an-legend-item:hover { color: var(--tx); }
.an-table-panel { margin-top: 14px; }
@media (max-width: 1100px) {
  .an-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .an-layout { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .an-cards { grid-template-columns: 1fr; }
  .an-bar { grid-template-columns: 96px minmax(0, 1fr) 30px; }
}

/* --- utilization telemetry --- */
.an-forecast { display: grid; grid-template-columns: 1.55fr 1fr; gap: 14px; margin-bottom: 14px; align-items: stretch; }
.an-forecast > .panel { height: 100%; display: flex; flex-direction: column; }
.an-forecast > .panel > .panel-body { flex: 1; }
.an-side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }

.fc-select {
  height: 30px; border: 1px solid var(--bd); border-radius: 6px; background: #fff;
  font-family: var(--mono); font-size: 10.5px; padding: 0 8px; max-width: 300px;
}
.fc-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; font-size: 10.5px; color: var(--t3); }
.fc-legend b { color: var(--tx); font-weight: 600; }
.fc-table th, .fc-table td { padding: 6px 9px; font-size: 10.5px; }
.fc-table tr.selected td { background: #EDF3FE; }
.an-secondary { margin-top: 14px; }
.corr-value { font-size: 22px; font-weight: 700; color: var(--tx); }
td.neg { color: var(--crit); }
td.pos { color: var(--org-d); }
@media (max-width: 1100px) { .an-forecast { grid-template-columns: 1fr; } }

/* --- one popup shell for drawers and dialogs --- */
.dialog-panel { overflow: hidden; max-height: 92vh; max-height: 92dvh; display: flex; flex-direction: column; }
.dialog-panel .drawer-hero { border-radius: var(--r2) var(--r2) 0 0; }
.dialog-panel form { display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.dialog-body { padding: 0 18px 4px; overflow-y: auto; }
.dialog-body .drawer-section:first-child { padding-top: 14px; }
.dialog-body .drawer-section:last-child { border-bottom: 0; }
.dialog-body .drawer-section { padding: 12px 0; }
.dialog-body .drawer-section .drawer-section-title { margin-bottom: 8px; }
.dialog-foot { background: var(--sf); }
.drawer-foot .btn, .dialog-foot .btn { min-height: 32px; }

/* clickable KPI cards advertise their destination */
.kpi, .x-kpi { position: relative; }
.kpi::after, .x-kpi::after {
  content: "→"; position: absolute; top: 10px; right: 12px;
  font-size: 12px; color: var(--t3); opacity: .55; font-weight: 400;
}
.kpi:hover::after, .x-kpi:hover::after { opacity: 1; color: var(--blue-d); }
.scroll.tall { max-height: 420px; overflow-y: auto; }
.scroll.tall thead th { position: sticky; top: 0; z-index: 2; }

.hist { display: flex; flex-direction: column; gap: 2px; }
.hist-row { display: grid; grid-template-columns: 110px 1fr auto; gap: 8px; font-size: 11px; color: var(--t2); padding: 3px 0; }
.hist-action { font-weight: 600; color: var(--tx); }

.dns-list { display: flex; flex-direction: column; gap: 6px; }
.dns-row { display: grid; grid-template-columns: 54px 1fr 1fr auto; gap: 8px; font-size: 10.5px; align-items: center; }

.obs-check {
  width: 18px; height: 18px; border: 1px solid var(--bd); border-radius: 4px;
  background: #fff; color: var(--blue-d); font-size: 11px; line-height: 1; cursor: pointer;
}
.obs-check.on { border-color: var(--blue); background: var(--blue-l); }

.bulk-inline { display: inline-flex; align-items: center; gap: 8px; }

.login-gate {
  position: fixed; inset: 0; z-index: 90; display: grid; place-items: center;
  overflow: hidden;
  background:
    radial-gradient(900px 600px at 15% 20%, rgba(37, 99, 201, .45), transparent 60%),
    radial-gradient(700px 500px at 85% 80%, rgba(124, 58, 237, .28), transparent 60%),
    linear-gradient(150deg, #061B3D, #0B2E6B 45%, #061B3D);
}
.login-gate::before,
.login-gate::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5;
  pointer-events: none;
}
.login-gate::before {
  width: 520px; height: 520px; left: -120px; top: 12%;
  background: #1E4FA8; animation: login-drift 26s ease-in-out infinite alternate;
}
.login-gate::after {
  width: 460px; height: 460px; right: -100px; bottom: 8%;
  background: #4C2A8A; animation: login-drift 32s ease-in-out infinite alternate-reverse;
}
@keyframes login-drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(40px, -30px, 0) scale(1.08); }
}
@media (prefers-reduced-motion: reduce) {
  .login-gate::before, .login-gate::after { animation: none; }
}
.login-card {
  width: min(420px, 92vw); background: #fff; border-radius: 14px; padding: 28px 30px;
  box-shadow: 0 30px 80px rgba(3, 16, 42, .45); display: flex; flex-direction: column; gap: 10px;
}
.login-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.login-logo {
  width: 38px; height: 38px; border-radius: 10px; background: var(--blue);
  display: grid; place-items: center; flex: none;
}
.login-logo svg { width: 24px; height: 24px; }
.login-footer {
  position: absolute; bottom: 22px; left: 0; right: 0; display: flex; flex-direction: column;
  align-items: center; gap: 3px; color: rgba(255, 255, 255, .62); font-size: 11px; letter-spacing: .01em;
  pointer-events: none;
}
.login-footer span:first-child { color: rgba(255, 255, 255, .82); }
.attribution-state { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; letter-spacing: .02em; color: rgba(201, 217, 241, .78); }
.attribution-icon { width: 12px; height: 12px; flex: none; color: rgba(143, 180, 232, .9); fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.attribution-state[data-state="ok"] { color: #C9D9F1; }
.attribution-state[data-state="crit"] { color: #FCA5A5; }
.attribution-state[data-state="crit"] .attribution-icon { color: #FCA5A5; }
.login-brand b { display: block; font-size: 14px; }
.login-brand span { font-size: 10.5px; color: var(--t3); }
.login-card h1 { font-size: 20px; margin: 6px 0 0; }
.login-card p { font-size: 12px; color: var(--t2); margin: 0 0 6px; }
.login-card label { font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--t3); }
.login-card input { height: 34px; border: 1px solid var(--bd); border-radius: 6px; padding: 0 10px; }
.login-card .btn { margin-top: 8px; justify-content: center; }
.login-note { font-size: 10.5px !important; color: var(--t3) !important; margin-top: 8px !important; }

.key-list { display: flex; flex-direction: column; gap: 4px; }
.key-row { display: grid; grid-template-columns: 1.4fr .7fr 1fr auto auto; gap: 8px; align-items: center; font-size: 11px; padding: 4px 0; border-bottom: 1px solid var(--bd2); }

/* Segmented control: active state must read at a glance. */
.seg button[aria-pressed="true"] {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 1px 2px rgba(11, 46, 107, .25);
}
.seg button[aria-pressed="true"] .n {
  background: rgba(255, 255, 255, .22);
  color: #fff;
}
.seg button[aria-pressed="false"]:hover { color: var(--blue-d); background: #fff; }

/* ---------------------------------------------------------------------------
   Interaction states
   Selected toggles and primary actions use a solid blue fill. Secondary and
   icon controls use a light blue hover. Rows and tree nodes use a weak blue
   selection so their data stays readable. Focus is one ring everywhere.
   --------------------------------------------------------------------------- */
:root {
  --state-selected: #2563C9;
  --state-selected-weak: #EDF3FE;
  --state-hover: #F0F5FF;
  --state-hover-border: #B9CFF2;
}

button:focus-visible,
[role="button"]:focus-visible,
a:focus-visible,
.btn:focus-visible,
.tab:focus-visible,
select:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--state-selected);
  outline-offset: 2px;
}

.btn:not(.primary):hover,
.btn.ghost:hover,
.btn.outline:hover {
  background: var(--state-hover);
  border-color: var(--state-hover-border);
  color: var(--blue-d);
}

.btn.icon-only:hover { background: var(--state-hover); color: var(--blue-d); }
.icon-btn:hover { background: var(--state-hover); color: var(--blue-d); }

.tab:hover { background: var(--state-hover); color: var(--blue-d); }
.tab[aria-current="page"] { color: var(--blue-d); border-bottom-color: var(--state-selected); }

.pt-row:hover { background: var(--state-hover); }
.pt-row.selected { background: var(--state-selected-weak); box-shadow: inset 3px 0 0 var(--state-selected); }
tr[data-action]:hover td { background: var(--state-hover); }
.fc-table tr.selected td { background: var(--state-selected-weak); }
.kpi:hover { background: var(--state-hover); }

.link:hover { color: var(--blue-d); text-decoration: underline; }

[data-action="revoke-key"]:hover {
  background: #FDECEC;
  border-color: #F3B9B9;
  color: var(--crit);
}

.conflict-row td { background: #FFF7F7; }
.conflict-row:hover td { background: #FDECEC; }

.wiki-reader { max-width: 1120px; margin: -4px auto 0; }
.wiki-bar {
  position: sticky; top: 94px; z-index: 30;
  display: flex; align-items: center; gap: 18px; padding: 12px 16px;
  border: 1px solid var(--bd); border-radius: 12px; background: var(--sf);
  box-shadow: 0 8px 18px -14px rgba(15,23,42,.28); margin-bottom: 16px;
}
.wiki-book { display: flex; align-items: center; gap: 10px; min-width: 220px; }
.wiki-mark {
  width: 32px; height: 32px; border-radius: 9px; background: var(--blue);
  display: grid; place-items: center; flex: none;
}
.wiki-mark svg { width: 19px; height: 19px; fill: none; stroke: #fff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.wiki-mark .wiki-bookmark { fill: #FBBF24; stroke: none; }
.wiki-book b { display: block; font-size: 13px; font-weight: 700; color: var(--tx); }
.wiki-book small { display: block; font-size: 10.5px; color: var(--t3); }
.wiki-bar-mid { flex: 1; min-width: 0; }
.wiki-bar-mid > span { display: block; font-size: 10.5px; color: var(--t3); margin-bottom: 6px; letter-spacing: .01em; }
.wiki-progress { height: 3px; background: #E8EDF5; border-radius: 999px; overflow: hidden; }
.wiki-progress span { display: block; height: 100%; width: 0; background: var(--blue); transition: width .15s linear; }
.wiki-aa {
  height: 30px; min-width: 42px; border-radius: 8px; border: 1px solid var(--bd);
  background: var(--sf); color: var(--t2); font-weight: 700; font-size: 12px;
}
.wiki-aa:hover { background: var(--sf2); color: var(--tx); border-color: #CBD5E1; }
.wiki-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 16px; align-items: start; }
.wiki-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 16px; align-items: start; }
.wiki-toc {
  position: sticky; top: 170px; padding: 0; overflow: hidden;
  background: var(--sf); border: 1px solid var(--bd); border-radius: 12px; box-shadow: var(--sh1);
}
.wiki-toc-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; border-bottom: 1px solid var(--bd2);
  font-size: 11.5px; font-weight: 700; color: var(--tx);
}
.wiki-toc-head > span:first-child { letter-spacing: .01em; }
.wiki-toc-count { font-family: var(--mono); font-size: 9.5px; font-weight: 400; color: var(--t3); }
.wiki-toc-cols {
  display: grid; grid-template-columns: 34px minmax(0, 1fr) 46px; gap: 10px;
  padding: 7px 14px; border-bottom: 1px solid var(--bd2); background: var(--sf2);
  font-family: var(--mono); font-size: 8.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--t3);
}
.wiki-toc-cols span:last-child { text-align: right; }
.wiki-toc-table { display: flex; flex-direction: column; }
.wiki-link {
  position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr) 46px;
  gap: 10px; align-items: center; padding: 9px 14px; text-decoration: none;
  border-bottom: 1px solid var(--bd2); transition: background .12s ease, padding-left .12s ease;
}
.wiki-link:last-child { border-bottom: 0; }
.wiki-link::before {
  content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 2px;
  background: transparent; border-radius: 2px; transition: background .12s ease;
}
.wiki-link:hover { background: var(--sf2); padding-left: 16px; }
.wiki-link:hover .wiki-title { color: var(--tx); }
.wiki-link.active { background: var(--state-selected-weak); }
.wiki-link.active::before { background: var(--blue); }
.wiki-num {
  font-family: var(--mono); font-size: 9px; line-height: 18px; text-align: center;
  color: var(--t3); background: var(--sf2); border: 1px solid var(--bd2); border-radius: 5px;
  transition: background .12s ease, color .12s ease, border-color .12s ease;
}
.wiki-link.active .wiki-num { background: var(--blue); border-color: var(--blue); color: #fff; }
.wiki-title { font-size: 11.5px; line-height: 1.35; color: var(--t2); text-decoration: none; }
.wiki-link.active .wiki-title { color: var(--blue-d); font-weight: 600; }
.wiki-state {
  font-family: var(--mono); font-size: 8px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--blue); text-align: right; opacity: 0; transition: opacity .12s ease;
}
.wiki-link.active .wiki-state { opacity: 1; }
@media (max-width: 900px) {
  .wiki-toc { position: static; order: 2; }
}
.wiki-page {
  background: var(--sf); border: 1px solid var(--bd); border-radius: 12px;
  padding: 34px 40px 26px; justify-self: stretch; width: 100%;
  box-shadow: var(--sh1); color: var(--tx); font-family: var(--font);
}
.wiki-page-head {
  display: flex; justify-content: space-between; font-family: var(--mono);
  font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--t3);
  border-bottom: 1px solid var(--bd2); padding-bottom: 10px; margin-bottom: 20px;
}
.wiki-section { scroll-margin-top: 178px; margin-bottom: 28px; }
.wiki-section h2 {
  display: flex; align-items: baseline; gap: 10px; font-size: 19px; font-weight: 700;
  line-height: 1.25; color: var(--tx); letter-spacing: -.01em; margin-bottom: 6px;
}
.wiki-chapter-no { font-family: var(--mono); font-size: 10px; color: var(--blue); letter-spacing: .04em; }
.wiki-intro { font-size: 12px; color: var(--t2); margin-bottom: 12px; line-height: 1.55; }
.wiki-list { display: flex; flex-direction: column; }
.wiki-item {
  display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 16px;
  padding: 9px 0; border-top: 1px solid var(--bd2);
}
.wiki-item:first-child { border-top: 0; }
.wiki-item dt { font-size: 11.5px; font-weight: 600; color: var(--tx); line-height: 1.5; }
.wiki-item dd { font-size: 12.5px; line-height: 1.6; color: var(--t2); }
.wiki-size-0 .wiki-item dd, .wiki-size-0 .wiki-procedure li { font-size: 11.5px; }
.wiki-size-1 .wiki-item dd, .wiki-size-1 .wiki-procedure li { font-size: 12.5px; }
.wiki-size-2 .wiki-item dd, .wiki-size-2 .wiki-procedure li { font-size: 13.5px; }
.wiki-procedure { margin-top: 16px; padding-top: 13px; border-top: 1px solid var(--bd2); }
.wiki-procedure h3 { font-size: 11.5px; font-weight: 700; color: var(--tx); letter-spacing: .01em; }
.wiki-when { font-size: 11px; color: var(--t3); margin: 2px 0 7px; line-height: 1.5; }
.wiki-procedure ol { margin: 0; padding-left: 18px; }
.wiki-procedure li { font-size: 12.5px; line-height: 1.6; color: var(--t2); margin-bottom: 4px; padding-left: 2px; }
.wiki-procedure li::marker { color: var(--t3); font-family: var(--mono); font-size: 10px; }
.wiki-end {
  text-align: center; color: var(--t3); font-family: var(--mono); font-size: 9.5px;
  letter-spacing: .1em; text-transform: uppercase; border-top: 1px solid var(--bd2); padding-top: 16px;
}
.wiki-pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 16px 0 4px; }
.wiki-pager span { font-size: 10.5px; color: var(--t3); min-width: 44px; text-align: center; }
@media (max-width: 900px) {
  .wiki-grid { grid-template-columns: 1fr; }
  .wiki-bar { top: 90px; }
  .wiki-toc { position: static; order: 2; }
  .wiki-page { padding: 26px 20px; }
  .wiki-item { grid-template-columns: 1fr; gap: 3px; }
  .wiki-book { min-width: 0; }
  .wiki-bar { flex-wrap: wrap; }
}

.an-donuts { grid-template-columns: 1fr 1fr; align-items: stretch; }
.an-donuts > .panel { display: flex; flex-direction: column; }
.an-donuts > .panel > .panel-body { flex: 1; }
.an-donut-panel { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 12px 24px; align-items: center; }
.an-donut-panel .donut { width: 168px; height: 168px; }
.an-donut-panel .donut svg { width: 168px; height: 168px; }
.an-donut-panel .donut .donut-center b { font-size: 26px; }
.an-donut-panel .donut .donut-center small { font-size: 9px; }
.donut .seg { transition: stroke-width .15s ease, opacity .15s ease; cursor: pointer; }
.donut .seg:hover { stroke-width: 19; }
.donut-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 7px 14px; }
.donut-key { display: grid; grid-template-columns: 9px minmax(0, 1fr) auto auto; gap: 7px; align-items: center; font-size: 11px; color: var(--t2); }
.donut-key i { width: 8px; height: 8px; border-radius: 2px; }
.donut-key b { font-family: var(--mono); font-size: 11px; color: var(--tx); }
.donut-key small { font-family: var(--mono); font-size: 9.5px; color: var(--t3); }
.an-anomaly-list { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 2px; }
.an-anomaly { display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 10px; align-items: center; width: 100%; padding: 6px 7px; border-radius: 6px; font-size: 10.5px; color: var(--t2); text-align: left; }
.an-anomaly:hover { background: var(--state-hover); color: var(--tx); }
.an-anomaly b { font-family: var(--mono); }
.an-correlation { margin-top: 14px; }
.an-corr-body { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.an-corr-body .corr-value { margin: 0; font-size: 22px; }
.an-corr-body .an-caption { margin: 0; flex: 1; min-width: 240px; }
@media (max-width: 1100px) {
  .an-donuts { grid-template-columns: 1fr; }
  .an-donut-panel { grid-template-columns: 150px minmax(0, 1fr); }
  .an-donut-panel .donut, .an-donut-panel .donut svg { width: 150px; height: 150px; }
}

.an-main { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 14px; margin-top: 14px; align-items: start; }
.an-main-left, .an-rail { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.an-main-left > .panel, .an-rail > .panel { margin: 0; }
.an-rail .an-donut-panel { grid-template-columns: 128px minmax(0, 1fr); gap: 8px 14px; }
.an-rail .an-donut-panel .donut,
.an-rail .an-donut-panel .donut svg { width: 128px; height: 128px; }
.an-rail .an-donut-panel .donut .donut-center b { font-size: 21px; }
.an-rail .an-donut-panel .donut .donut-center small { font-size: 8px; }
.an-rail .donut-legend { grid-template-columns: 1fr 1fr; gap: 4px 10px; }
.an-rail .donut-key { grid-template-columns: 7px minmax(0, 1fr) auto auto; gap: 5px; font-size: 10px; }
.an-rail .donut-key b { font-size: 10px; }
.an-rail .donut-key small { font-size: 8.5px; }
.an-rail .an-anomaly-list { grid-column: 1 / -1; }
.an-rail .an-anomaly { font-size: 10px; padding: 5px 6px; }
.an-rail .an-correlation { margin: 0; }
.an-rail .an-corr-body { gap: 10px; }
.an-rail .an-corr-body .corr-value { font-size: 18px; }
.an-rail .an-corr-body .an-caption { min-width: 0; font-size: 10.5px; }
.donut.modern svg { filter: drop-shadow(0 8px 14px rgba(37, 99, 201, .12)); }
@media (max-width: 1100px) {
  .an-main { grid-template-columns: 1fr; }
}

.an-columns { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; align-items: end; height: 188px; padding-top: 8px; }
.an-col { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; padding: 0; border: 0; background: none; }
.an-col-value { display: inline-flex; align-items: center; height: 17px; padding: 0 4px; border-radius: 5px; font-family: var(--mono); font-size: 9px; color: var(--t3); }
.an-col-bar { width: 100%; max-width: 32px; min-height: 6px; border-radius: 7px 7px 3px 3px; transition: filter .12s ease, transform .12s ease; }
.an-col:hover .an-col-bar { filter: brightness(1.06); transform: translateY(-2px); }
.an-col-label { font-family: var(--mono); font-size: 9.5px; color: var(--t2); }
.an-col small { font-size: 8.5px; color: var(--t3); }
.an-col.peak .an-col-value { background: #111827; color: #fff; }
.an-status-bars { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 12px; align-items: end; height: 96px; }
.an-status { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; padding: 0; border: 0; background: none; }
.an-status-value { font-family: var(--mono); font-size: 10.5px; font-weight: 700; color: var(--tx); }
.an-status-track { display: flex; align-items: flex-end; justify-content: center; width: 100%; max-width: 44px; flex: 1; }
.an-status-track i { width: 100%; min-height: 5px; border-radius: 7px 7px 0 0; transition: filter .12s ease; }
.an-status:hover .an-status-track i { filter: brightness(1.06); }
.an-status-label { font-size: 9.5px; color: var(--t3); white-space: nowrap; }
.an-div-legend { display: flex; align-items: center; gap: 14px; font-size: 10px; color: var(--t2); margin-bottom: 10px; }
.an-div-legend span { display: inline-flex; align-items: center; gap: 5px; }
.an-div-legend i { width: 8px; height: 8px; border-radius: 2px; }
.an-div-legend b { font-family: var(--mono); color: var(--tx); }
.an-diverging { display: flex; flex-direction: column; gap: 8px; }
.an-div-row { display: grid; grid-template-columns: 108px minmax(0, 1fr) 40px; gap: 8px; align-items: center; width: 100%; padding: 2px 0; border: 0; background: none; text-align: left; }
.an-div-time { font-size: 9px; color: var(--t3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.an-div-track { position: relative; height: 8px; border-radius: 4px; background: #EEF2F7; }
.an-div-track::before { content: ""; position: absolute; left: 50%; top: -2px; bottom: -2px; width: 1px; background: #CBD5E1; }
.an-div-track i { position: absolute; top: 0; height: 100%; border-radius: 4px; }
.an-div-track i.pos { left: 50%; background: linear-gradient(90deg, #F59E0B, #D97706); }
.an-div-track i.neg { right: 50%; background: linear-gradient(90deg, #2563C9, #60A5FA); }
.an-div-row b { font-family: var(--mono); font-size: 10px; text-align: right; }
.an-div-row b.pos { color: var(--org-d); }
.an-div-row b.neg { color: var(--blue-d); }
.an-div-row:hover .an-div-track i { filter: brightness(1.06); }
@media (max-width: 1100px) {
  .an-columns { height: 160px; }
}

.an-chart-hit { cursor: pointer; border-radius: 8px; }
.an-chart-hit:focus-visible { outline: 2px solid var(--state-selected); outline-offset: 2px; }
.fc-legend { cursor: pointer; border-radius: 7px; }
.fc-legend:hover { background: var(--state-hover); }
.fc-legend:focus-visible { outline: 2px solid var(--state-selected); outline-offset: 2px; }
.an-corr-body .btn { flex: none; }

.an-range { position: relative; display: flex; align-items: center; }
.an-range .seg { max-width: min(560px, 62vw); overflow-x: auto; scrollbar-width: none; }
.an-range .seg::-webkit-scrollbar { display: none; }
.an-range-pop {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 45;
  width: 318px; padding: 12px; border: 1px solid var(--bd); border-radius: 10px;
  background: var(--sf); box-shadow: var(--sh2);
}
.an-range-pop label { display: flex; flex-direction: column; gap: 4px; font-size: 10px; font-weight: 700; color: var(--t3); text-transform: uppercase; letter-spacing: .04em; }
.an-range-pop label + label { margin-top: 8px; }
.an-range-pop input { height: 32px; border: 1px solid var(--bd); border-radius: 7px; padding: 0 8px; font-family: var(--font); font-size: 12px; }
.an-range-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }

.an-range-pop { width: 334px; padding: 14px; }
.an-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.an-cal-head b { font-size: 12px; font-weight: 700; color: var(--tx); }
.an-cal-nav { width: 26px; height: 26px; border-radius: 6px; border: 1px solid var(--bd); background: var(--sf); color: var(--t2); font-size: 16px; line-height: 1; }
.an-cal-nav:hover { background: var(--state-hover); color: var(--blue-d); border-color: var(--state-hover-border); }
.an-cal-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; margin-bottom: 4px; }
.an-cal-week span { text-align: center; font-family: var(--mono); font-size: 8.5px; color: var(--t3); text-transform: uppercase; }
.an-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.an-cal-day { height: 31px; border: 0; border-radius: 6px; background: transparent; font-family: var(--mono); font-size: 10.5px; color: var(--t2); }
.an-cal-day:hover { background: var(--state-hover); color: var(--blue-d); }
.an-cal-day.outside { color: #C1C9D6; }
.an-cal-day.between { background: var(--state-selected-weak); color: var(--blue-d); }
.an-cal-day.selected { background: var(--blue); color: #fff; font-weight: 700; }
.an-range-fields { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--bd2); }
.an-range-field { display: flex; flex-direction: column; gap: 2px; align-items: flex-start; padding: 7px 9px; border: 1px solid var(--bd); border-radius: 7px; background: var(--sf); text-align: left; }
.an-range-field span { font-family: var(--mono); font-size: 8px; letter-spacing: .08em; text-transform: uppercase; color: var(--t3); }
.an-range-field b { font-size: 10.5px; font-weight: 600; color: var(--tx); }
.an-range-field.active { border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
.an-range-arrow { color: var(--t3); font-size: 11px; }

/* --- tablet and phone: hierarchy tree stacks above the detail pane --- */
@media (max-width: 1100px) {
  .explorer { grid-template-columns: minmax(0, 1fr); }
}

.ap-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.ap-stat {
  display: grid; grid-template-columns: 30px minmax(0, 1fr) 58px; gap: 10px; align-items: center;
  padding: 11px 12px; border: 1px solid var(--bd); border-radius: 10px; background: var(--sf);
  text-align: left; min-height: 92px; box-shadow: var(--sh1);
}
.ap-stat:hover { border-color: var(--state-hover-border); background: var(--sf2); }
.ap-card-icon { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 7px; background: var(--blue-l); color: var(--blue-d); }
.ap-card-icon .i { width: 15px; height: 15px; }
.ap-card-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ap-label { font-size: 9px; letter-spacing: .06em; text-transform: uppercase; color: var(--t3); }
.ap-stat b { font-family: var(--mono); font-size: 19px; line-height: 1.1; color: var(--tx); }
.ap-stat small { font-size: 9.5px; color: var(--t3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ap-ring-wrap { position: relative; width: 58px; height: 58px; display: grid; place-items: center; }
.ap-ring { width: 54px; height: 54px; transform: rotate(-90deg); }
.ap-ring-wrap em { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--mono); font-size: 8px; font-style: normal; color: var(--t2); }
.ap-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.ap-title { font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--t3); margin-bottom: 7px; }
.ap-bars { display: flex; flex-direction: column; gap: 5px; }
.ap-bar { display: grid; grid-template-columns: 90px minmax(0, 1fr) 30px; gap: 8px; align-items: center; width: 100%; border: 0; background: none; padding: 3px 0; text-align: left; }
.ap-bar-label { font-size: 10px; color: var(--t2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ap-bar-track { height: 8px; background: #EEF2F7; border-radius: 4px; overflow: hidden; }
.ap-bar-track i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--blue), #60A5FA); }
.ap-bar b { font-family: var(--mono); font-size: 10px; color: var(--tx); text-align: right; }
.ap-bar:hover .ap-bar-track i { filter: brightness(1.06); }
.ap-breach { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--bd2); }
.ap-breach-list { display: flex; flex-direction: column; gap: 3px; }
.ap-breach-row { display: grid; grid-template-columns: 1.2fr 1fr auto auto; gap: 10px; align-items: center; padding: 6px 7px; border-radius: 6px; border: 0; background: none; text-align: left; font-size: 10.5px; color: var(--t2); }
.ap-breach-row:hover { background: var(--state-hover); color: var(--tx); }
.ap-breach-row b { font-family: var(--mono); color: var(--org-d); }
@media (max-width: 900px) { .ap-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ap-grid { grid-template-columns: 1fr; } }

.fr-stats { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 10px; }
.fr-stats span { display: flex; flex-direction: column; gap: 1px; }
.fr-stats small { font-size: 9px; letter-spacing: .06em; text-transform: uppercase; color: var(--t3); }
.fr-stats b { font-family: var(--mono); font-size: 14px; color: var(--tx); }
.fr-table { max-height: 240px; overflow-y: auto; scrollbar-gutter: stable; }
.fr-table table { font-size: 11px; }
.fr-panel .panel-head .seg { margin-left: 8px; }

.ph-structures { display: flex; flex-direction: column; gap: 14px; }
.ph-structure { border: 1px solid var(--bd2); border-radius: 8px; overflow: hidden; }
.ph-structure-head { display: flex; align-items: baseline; gap: 10px; padding: 8px 10px; background: var(--sf2); border-bottom: 1px solid var(--bd2); }
.ph-structure-head b { font-size: 11.5px; color: var(--tx); }
.ph-structure-head .mono { font-size: 10px; color: var(--t3); }
.ph-structure-head .muted { margin-left: auto; font-size: 10px; }
.ph-table { font-size: 10.5px; }
.ph-table th { font-size: 8.5px; }
.ph-table td { padding: 6px 8px; }
.ph-bar { display: inline-block; width: 110px; height: 6px; border-radius: 3px; background: #EEF2F7; overflow: hidden; vertical-align: middle; margin-right: 6px; }
.ph-bar i { display: block; height: 100%; background: var(--blue); border-radius: 3px; }
.ph-table small { font-family: var(--mono); font-size: 9px; color: var(--t3); }

.ph-pops { display: flex; flex-direction: column; gap: 2px; margin-top: 4px; }
.ph-pops span { font-family: var(--mono); font-size: 8.5px; color: var(--t3); }
.ph-pops i { font-style: normal; color: var(--t2); margin-right: 4px; }

.ph-empty { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; align-items: center; }
.ph-empty-copy b { display: block; font-size: 13px; color: var(--tx); margin-bottom: 4px; }
.ph-empty-copy p { font-size: 11px; color: var(--t2); line-height: 1.5; margin: 0 0 10px; max-width: 520px; }
.ph-capacity-list { display: flex; flex-direction: column; gap: 5px; padding: 9px 11px; border: 1px solid var(--bd2); border-radius: 8px; background: var(--sf2); }
.ph-capacity-row { display: flex; justify-content: space-between; gap: 12px; font-size: 10.5px; color: var(--t2); }
.ph-capacity-row b { color: var(--tx); }
.ph-summary { display: flex; gap: 22px; flex-wrap: wrap; margin-bottom: 12px; }
.ph-summary span { display: flex; flex-direction: column; gap: 1px; }
.ph-summary small { font-size: 9px; letter-spacing: .06em; text-transform: uppercase; color: var(--t3); }
.ph-summary b { font-family: var(--mono); font-size: 14px; color: var(--tx); }
.ph-structure-card { border: 1px solid var(--bd2); border-radius: 8px; overflow: hidden; }
.ph-region-bars { display: flex; flex-direction: column; gap: 5px; padding: 9px 11px 11px; }
.ph-region-row { display: grid; grid-template-columns: 110px minmax(0, 1fr) 150px 38px; gap: 10px; align-items: center; }
.ph-region-name { font-size: 10.5px; color: var(--t2); }
.ph-region-track { height: 8px; border-radius: 4px; background: #EEF2F7; overflow: hidden; }
.ph-region-track i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--blue), #60A5FA); }
.ph-region-value { font-size: 9.5px; color: var(--t3); text-align: right; }
.ph-region-row b { font-family: var(--mono); font-size: 10px; text-align: right; color: var(--t3); }
.ph-region-row b.pos { color: var(--blue-d); }
@media (max-width: 900px) { .ph-empty { grid-template-columns: 1fr; } .ph-region-row { grid-template-columns: 90px minmax(0, 1fr) 110px 34px; } }

.tab-brand { position: relative; }
.tab-brand sup { font-size: 6px; vertical-align: super; margin-left: 1px; letter-spacing: .02em; }
.tab-brand span { font-weight: 800; }
.viz-hero { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 14px; }
.viz-lockup { display: flex; gap: 12px; align-items: flex-start; }
.viz-glyph { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(150deg, var(--navy), var(--blue)); color: #fff; box-shadow: var(--sh); }
.viz-glyph .i { width: 22px; height: 22px; }
.viz-overline { font-family: var(--mono); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: var(--t3); }
.viz-lockup h1 { font-size: 26px; line-height: 1.1; letter-spacing: -.02em; color: var(--tx); margin: 1px 0 4px; }
.viz-lockup h1 sup { font-size: 8px; vertical-align: super; letter-spacing: .02em; color: var(--blue); }
.viz-lockup p { font-size: 11.5px; color: var(--t2); }
.viz-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.viz-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.viz-kpi { display: flex; flex-direction: column; gap: 1px; padding: 9px 11px; border: 1px solid var(--bd); border-radius: 8px; background: var(--sf); }
.viz-kpi small { font-size: 8.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--t3); }
.viz-kpi b { font-family: var(--mono); font-size: 16px; color: var(--tx); }
.viz-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(300px, .9fr); gap: 14px; align-items: start; }
.viz-map { overflow: hidden; }
.viz-regions { display: flex; flex-direction: column; }
.viz-region { border-top: 1px solid var(--bd2); }
.viz-region:first-child { border-top: 0; }
.viz-region.active { background: var(--state-selected-weak); }
.viz-region-head { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 0; background: none; text-align: left; }
.viz-region-head:hover { background: var(--state-hover); }
.viz-region-name { font-size: 12px; font-weight: 700; color: var(--tx); }
.viz-region-meta { font-family: var(--mono); font-size: 9.5px; color: var(--t3); }
.viz-region-chev { margin-left: auto; color: var(--t3); font-size: 14px; }
.viz-pops { padding: 0 12px 9px 24px; display: flex; flex-direction: column; gap: 6px; }
.viz-pop { display: flex; gap: 10px; align-items: flex-start; }
.viz-pop-label { min-width: 76px; padding-top: 5px; font-family: var(--mono); font-size: 9px; color: var(--t3); }
.viz-nodes { display: flex; flex-wrap: wrap; gap: 5px; }
.viz-node { display: flex; align-items: center; gap: 7px; padding: 5px 8px; border: 1px solid var(--bd); border-radius: 7px; background: var(--sf); text-align: left; }
.viz-node:hover { border-color: var(--state-hover-border); background: var(--state-hover); }
.viz-node.active { border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
.viz-node-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); flex: none; }
.viz-node b { display: block; font-size: 10px; color: var(--tx); }
.viz-node small { display: block; font-family: var(--mono); font-size: 8.5px; color: var(--t3); }
.viz-detail-stats { display: flex; gap: 16px; margin-bottom: 10px; }
.viz-detail-stats span { display: flex; flex-direction: column; gap: 1px; }
.viz-detail-stats small { font-size: 8.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--t3); }
.viz-detail-stats b { font-family: var(--mono); font-size: 13px; color: var(--tx); }
.viz-label { font-size: 8.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--t3); margin: 10px 0 5px; }
.viz-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.viz-pop-list { display: flex; flex-direction: column; gap: 3px; }
.viz-pop-list span { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--t2); padding: 3px 0; border-bottom: 1px solid var(--bd2); }
.viz-pop-list b { font-family: var(--mono); color: var(--tx); }
.viz-node-detail { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--bd2); display: flex; flex-direction: column; align-items: flex-start; gap: 4px; font-size: 10.5px; color: var(--t2); }
.viz-node-detail b { color: var(--tx); }
.viz-hint { font-size: 10.5px; }
.viz-empty b { display: block; font-size: 13px; margin-bottom: 4px; }
.viz-empty p { font-size: 11px; margin: 0 0 10px; max-width: 560px; }
@media (max-width: 1100px) { .viz-layout { grid-template-columns: 1fr; } .viz-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .viz-hero { flex-direction: column; } .viz-actions { justify-content: flex-start; } .viz-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .viz-region-meta { display: none; } }

.an-duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: start; margin-bottom: 14px; }
.an-duo > .panel { display: flex; flex-direction: column; min-width: 0; margin: 0; }
.an-duo > .panel > .panel-body { flex: 1; min-width: 0; }
.an-duo .fr-table { max-height: 420px; overflow-y: auto; scrollbar-gutter: stable; }
.an-duo .ph-region-row { grid-template-columns: 88px minmax(0, 1fr) 120px 34px; gap: 7px; }
.an-duo .ph-region-value { font-size: 8.5px; }
.an-duo .ph-table { font-size: 10px; }
.an-duo .ph-empty { grid-template-columns: 1fr; }
.an-duo .ph-capacity-list { margin-top: 8px; }
@media (max-width: 1100px) {
  .an-duo { grid-template-columns: 1fr; }
}

.brand-tm { font-size: 7px; vertical-align: super; letter-spacing: .02em; color: var(--blue); font-weight: 700; }
.viz-cards { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.viz-cards .an-card p b { font-family: var(--mono); font-size: 18px; color: var(--tx); }
.viz-region-icon { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 5px; background: var(--blue-l); color: var(--blue-d); flex: none; }
.viz-region-icon .i { width: 12px; height: 12px; }
@media (max-width: 1100px) { .viz-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .viz-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.viz-region-tabs { display: flex; gap: 5px; overflow-x: auto; padding: 9px 12px; border-bottom: 1px solid var(--bd2); scrollbar-width: thin; }
.viz-region-tab { display: inline-flex; align-items: center; gap: 5px; flex: none; height: 28px; padding: 0 8px; border: 1px solid var(--bd); border-radius: 6px; background: var(--sf); color: var(--t2); font-size: 10.5px; font-weight: 600; }
.viz-region-tab b { font-family: var(--mono); font-size: 8.5px; color: var(--t3); }
.viz-region-tab.active { background: var(--state-selected-weak); border-color: #B9CFF2; color: var(--blue-d); }
.viz-region-tab.active b { color: var(--blue); }
.viz-flow-wrap { overflow-x: auto; padding: 14px 16px 18px; }
.viz-flow { min-width: 560px; display: flex; flex-direction: column; align-items: center; }
.viz-flow-region { position: relative; display: flex; justify-content: center; padding-bottom: 18px; }
.viz-flow-region::after { content: ""; position: absolute; left: 50%; bottom: 0; height: 18px; width: 1px; background: #B9C7DA; }
.viz-flow-region-card { display: flex; align-items: center; gap: 9px; min-width: 230px; padding: 9px 12px; border: 1px solid var(--blue); border-radius: 9px; background: var(--state-selected-weak); text-align: left; box-shadow: 0 0 0 3px #EDF3FE; }
.viz-flow-region-card b { display: block; font-size: 12px; color: var(--blue-d); }
.viz-flow-region-card small { display: block; font-family: var(--mono); font-size: 8.5px; color: var(--t3); margin-top: 2px; }
.viz-flow-bus { width: min(72%, 760px); height: 1px; background: #B9C7DA; }
.viz-flow-pops { display: flex; justify-content: center; align-items: flex-start; gap: 20px; padding-top: 16px; }
.viz-flow-pop { position: relative; width: 190px; flex: none; display: flex; flex-direction: column; align-items: center; }
.viz-flow-pop::before { content: ""; position: absolute; top: -16px; left: 50%; height: 16px; width: 1px; background: #B9C7DA; }
.viz-pop-card { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 7px 9px; border: 1px solid var(--bd); border-radius: 7px; background: var(--sf2); }
.viz-pop-card span { font-family: var(--mono); font-size: 9.5px; color: var(--t2); }
.viz-pop-card b { font-family: var(--mono); font-size: 8.5px; color: var(--t3); }
.viz-flow-nes { position: relative; width: 100%; display: flex; flex-direction: column; gap: 5px; padding-top: 10px; }
.viz-flow-nes::before { content: ""; position: absolute; top: 0; bottom: 50%; left: 50%; width: 1px; background: #CBD5E1; }
.viz-flow-nes .viz-node { position: relative; width: 100%; background: var(--sf); }
.viz-flow-nes .viz-node::before { content: ""; position: absolute; left: -1px; top: 50%; width: 3px; height: 3px; border-radius: 50%; background: #B9C7DA; }
@media (max-width: 800px) { .viz-flow { align-items: stretch; } .viz-flow-region { justify-content: flex-start; } .viz-flow-bus { width: 100%; } .viz-flow-pops { justify-content: flex-start; } }

.viz-modes { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--bd); border-radius: 8px; background: var(--sf); margin-bottom: 12px; }
.viz-links-panel { margin-top: 14px; }
.viz-link-table { font-size: 10.5px; }
.viz-link-table td small { display: block; font-family: var(--mono); font-size: 8.5px; color: var(--t3); }

.viz-hero { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 104px; min-height: 104px; padding: 18px 22px; margin-bottom: 14px; border-radius: var(--r2); background: linear-gradient(118deg, #0A2A5E 0%, #123D82 58%, #0D3574 100%); box-shadow: var(--sh); color: #fff; }
.viz-hero-lines { position: absolute; right: 4%; top: -20%; width: 62%; height: 140%; opacity: .26; pointer-events: none; }
.viz-hero-lines path { fill: none; stroke: #8FB4E8; stroke-width: 1.1; }
.viz-hero-lines circle { fill: #BBD2F0; }
.viz-hero-copy { position: relative; z-index: 1; display: flex; align-items: center; gap: 13px; min-width: 0; }
.viz-hero-icon { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 12px; border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.1); color: #fff; }
.viz-hero-icon .i { width: 23px; height: 23px; }
.viz-hero-eyebrow { display: flex; align-items: center; gap: 7px; font-family: Inter, 'Segoe UI', sans-serif; font-size: 9.5px; font-weight: 700; letter-spacing: .1em; color: #F4B860; }
.viz-hero-eyebrow i { width: 3px; height: 3px; border-radius: 50%; background: #F4B860; opacity: .65; }
.viz-hero h1 { display: flex; align-items: flex-start; gap: 2px; font-size: 26px; font-weight: 800; line-height: 1; letter-spacing: -.025em; margin: 4px 0 5px; color: #fff; }
.viz-hero h1 sup { margin-top: 3px; font-size: 7px; font-weight: 700; line-height: 1; letter-spacing: .02em; color: #F4B860; }
.viz-hero p { font-size: 11.5px; color: #C9D9F1; max-width: 640px; }
.viz-hero-actions { position: relative; z-index: 1; display: flex; align-items: center; gap: 8px; flex: none; }
.viz-hero-badge { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border: 1px solid rgba(255,255,255,.24); border-radius: 999px; color: #E4EDFB; background: rgba(255,255,255,.08); font-size: 10.5px; }
.viz-hero .btn.primary { background: #fff; border-color: #fff; color: #123D82; box-shadow: 0 2px 6px rgba(0,0,0,.18); }
.viz-hero .btn.primary:hover { background: #EDF4FF; border-color: #EDF4FF; }
@media (max-width: 900px) { .viz-hero { flex-direction: column; align-items: flex-start; } .viz-hero-actions { width: 100%; justify-content: flex-start; } .viz-hero-lines { width: 100%; opacity: .18; } .viz-hero h1 { font-size: 24px; } }

.brand-hero { position: relative; overflow: hidden; align-items: center; height: 104px; min-height: 104px; padding: 18px 22px; border-radius: var(--r2); background: radial-gradient(circle at 86% 16%, rgba(96,165,250,.30), transparent 28%), radial-gradient(circle at 68% 100%, rgba(37,99,201,.42), transparent 38%), linear-gradient(118deg, #0A2A5E 0%, #123D82 58%, #0D3574 100%); box-shadow: var(--sh); }
.brand-hero-copy { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-hero-icon { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 11px; border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.10); color: #fff; }
.brand-hero-icon .i { width: 22px; height: 22px; }
.brand-hero .eyebrow { color: #F4B860; font-size: 9px; letter-spacing: .12em; }
.brand-hero .eyebrow .mono { color: #C9D9F1; text-transform: none; letter-spacing: .02em; }
.brand-hero h1 { color: #fff; font-size: 25px; line-height: 1.1; margin-top: 3px; }
.brand-hero p { color: #C9D9F1; font-size: 11.5px; max-width: 720px; }
.brand-hero .actions { position: relative; z-index: 1; justify-content: flex-end; }
.brand-hero .btn.primary { background: #fff; border-color: #fff; color: #123D82; }
.brand-hero .btn.primary:hover { background: #EDF4FF; border-color: #EDF4FF; }
.brand-hero .btn:not(.primary) { background: rgba(255,255,255,.10); border-color: rgba(255,255,255,.26); color: #fff; }
.brand-hero .btn:not(.primary):hover { background: rgba(255,255,255,.18); }
.brand-hero .badge { background: rgba(255,255,255,.10); border-color: rgba(255,255,255,.24); color: #E4EDFB; }
@media (max-width: 800px) { .brand-hero { align-items: flex-start; } .brand-hero .actions { justify-content: flex-start; width: 100%; } .brand-hero h1 { font-size: 22px; } }

.viz-link-graph { border-bottom: 1px solid var(--bd2); background: #FAFBFD; overflow: hidden; }
.viz-graph-scroll { overflow-x: auto; }
.viz-link-graph svg { display: block; width: 100%; min-width: 900px; height: auto; }
.vg-parent { fill: none; stroke: #B9C7DA; stroke-width: 1.5; }
.vg-node rect { fill: #fff; stroke: #DCE3ED; stroke-width: 1; }
.vg-node.vg-region rect { fill: #F3F7FE; stroke: #C9D8F0; }
.vg-node text { font: 600 10px Inter, 'Segoe UI', sans-serif; fill: #26364D; }
.vg-node text.sub { font: 400 8.5px 'Cascadia Mono', Consolas, monospace; fill: #7A889C; }
.vg-node.vg-region text { font-size: 11px; }
.vg-node circle { fill: #2563C9; }
.vg-node.vg-pop circle { fill: #2563C9; }
.vg-node.vg-ne circle { fill: #15803D; }
.vg-node.vg-ne.selected rect { stroke: #2563C9; stroke-width: 2; }
.vg-node[data-action] { cursor: pointer; }
.vg-node[data-action]:hover rect { stroke: #2563C9; }
.vg-link { fill: none; stroke-width: 2.5; }
.vg-link.ok { stroke: #2563C9; }
.vg-link.planned { stroke: #6B7280; }
.vg-link.unplanned { stroke: #E8820C; }
.vg-label rect { fill: #fff; stroke: #DCE3ED; }
.vg-label text { font: 600 8px Inter, 'Segoe UI', sans-serif; text-anchor: middle; fill: #4B5563; }
.vg-label.ok rect { stroke: #9DBDF0; }
.vg-label.unplanned rect { stroke: #E8820C; fill: #FFF8EF; }
.vg-label.unplanned text { fill: #9A4F05; }
.vg-legend text { font: 500 8px Inter, 'Segoe UI', sans-serif; fill: #6B7280; }
.viz-map.graph-mode .viz-region-tabs, .viz-map.graph-mode .viz-flow-wrap { display: none; }
@media (max-width: 900px) { .viz-link-graph svg { min-width: 760px; } }

.viz-node-detail .btn { align-self: flex-start; width: auto; }

.fr-table thead th { position: sticky; top: 0; z-index: 2; background: var(--sf); }
.fr-table tbody tr:last-child td { padding-bottom: 10px; }

.viz-detail-actions { display: flex; justify-content: flex-end; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--bd2); }

.panel.collapsed { align-self: start; height: auto !important; min-height: 0; }
.an-forecast:has(> .panel.collapsed) { align-items: start; }
.an-forecast > .panel.collapsed { height: auto; }
.an-donuts:has(.panel.collapsed) { align-items: start; }

@media (max-width: 900px) {
  .brand-hero, .viz-hero { height: auto; min-height: 96px; }
}

.viz-graph-tools { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-bottom: 1px solid var(--bd2); flex-wrap: wrap; }
.viz-tool-region { display: flex; align-items: center; gap: 6px; font-size: 10.5px; color: var(--t3); }
.viz-tool-region select { width: 150px; }
.viz-tool-search { display: flex; align-items: center; gap: 6px; flex: 1; min-width: 210px; max-width: 360px; height: 30px; padding: 0 9px; border: 1px solid var(--bd); border-radius: 7px; background: var(--sf); color: var(--t3); }
.viz-tool-search .i { width: 13px; height: 13px; flex: none; }
.viz-tool-search input { border: 0; outline: 0; background: none; width: 100%; font-size: 10.5px; color: var(--tx); }
.viz-link-graph.fit .viz-graph-scroll { overflow: hidden; }
.viz-link-graph.fit svg { min-width: 0; width: 100%; }
.viz-empty-graph { display: flex; flex-direction: column; gap: 3px; align-items: center; padding: 44px 20px; border-bottom: 1px solid var(--bd2); background: #FAFBFD; font-size: 11px; color: var(--t3); }
.viz-empty-graph b { color: var(--tx); font-size: 12px; }
@media (max-width: 700px) { .viz-tool-search { max-width: none; } .viz-tool-region select { width: 130px; } }

.pt-role { flex: none; padding: 1px 5px; border: 1px solid var(--bd); border-radius: 5px; font-family: var(--mono); font-size: 8.5px; font-weight: 600; color: var(--t3); background: var(--sf2); white-space: nowrap; }
.pt-tag { min-width: 0; }
@media (max-width: 1100px) { .explorer { grid-template-columns: 1fr; } }

/* --- hierarchy tree: prefix diff, nama di baris kedua, meta di kanan --- */
.pt-row { align-items: flex-start; min-height: 0; padding: 5px 8px 5px 5px; }
.pt-toggle, .pt-icon { margin-top: 2px; }
.pt-toggle.leaf .pt-dash { display: none; }
.pt-dot { width: 4px; height: 4px; border-radius: 50%; background: #CBD2DC; }
.pt-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.pt-line { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; min-width: 0; }
.pt-main .pt-prefix { flex: 0 0 auto; max-width: 100%; font-weight: 500; }
.pt-head { color: var(--t3); }
.pt-tail { color: var(--tx); font-weight: 700; }
.pt-len { color: var(--t2); }
.pt-name { font-size: 11px; color: var(--t2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pt-meta { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; padding-top: 4px; font-size: 10.5px; color: var(--t2); white-space: nowrap; }
.pt-meta-line { display: flex; align-items: center; gap: 5px; }
.pt-res { width: 6px; height: 6px; border-radius: 50%; background: var(--org); }
.pt-meter { display: block; width: 56px; height: 4px; border-radius: 999px; background: #EEF0F4; overflow: hidden; }
.pt-meter i { display: block; height: 100%; border-radius: 999px; background: var(--blue); }
.pt-children { margin-left: 11px; padding-left: 8px; }
.pt-row::before { top: 17px; left: -8px; width: 6px; }

/* --- mobile dan perangkat touch --- */
/* Search tetap tersedia di layar sempit sebagai tombol ikon. */
@media (max-width: 900px) {
  .appbar .command { display: inline-flex; flex: none; width: 40px; min-width: 0; height: 40px; margin-left: auto; padding: 0; justify-content: center; }
  .appbar .command span, .appbar .command kbd { display: none; }
}
/* Tanpa hover, tombol copy selalu terlihat. */
@media (hover: none) {
  .copy, .drow .copy { opacity: 1; }
}
/* Target sentuh minimal 32 px dan font input 16 px agar Safari iOS tidak zoom. */
@media (pointer: coarse) {
  input, select, textarea { font-size: 16px !important; }
  .copy { min-width: 32px; min-height: 32px; }
  .pt-toggle { width: 30px; height: 30px; margin-top: -2px; }
  .icon-btn.sm { min-width: 36px; min-height: 36px; }
  th button[data-action="sort"] { min-height: 32px; }
  .pt-role { font-size: 10px; }
  .crumb-link { min-height: 30px; display: inline-flex; align-items: center; }
  .ap-bar { min-height: 32px; }
  .scroll tbody tr td { padding-top: 10px; padding-bottom: 10px; }
}
/* Heatmap: 16 kolom offset dipertahankan; di layar sempit grid di-scroll horizontal. */
@media (max-width: 560px) {
  .hm-body { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .hm-grid { min-width: 520px; }
  .hm-cell { height: 30px; font-size: 9px; }
}
/* Layar sangat sempit (iPhone SE): tombol Auto refresh menjadi ikon. */
@media (max-width: 400px) {
  .appbar { gap: 6px; }
  .live #live-text { display: none; }
  .live { padding: 0 10px; }
}
.chart-hit { cursor: pointer; }

.obs-bulk-fixed { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 80; display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid rgba(255,255,255,.16); border-radius: 10px; background: #0B2E6B; color: #fff; box-shadow: 0 10px 28px rgba(11,46,107,.32); }
.obs-bulk-fixed[hidden] { display: none; }
.obs-bulk-fixed .obs-bulk-count { font-size: 11px; white-space: nowrap; }
.obs-bulk-fixed .obs-bulk-count b { font-family: var(--mono); font-size: 12px; }
.obs-bulk-fixed .btn { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.24); color: #fff; }
.obs-bulk-fixed .btn.primary { background: #fff; border-color: #fff; color: #123D82; }
.obs-bulk-fixed .icon-btn { color: #C9D9F1; }
@media (max-width: 600px) { .obs-bulk-fixed { left: 10px; right: 10px; bottom: 10px; transform: none; flex-wrap: wrap; justify-content: center; } }

.dns-panel { margin-bottom: 14px; }
.dns-stats { display: flex; flex-wrap: wrap; gap: 22px; margin-bottom: 11px; }
.dns-stat { display: flex; flex-direction: column; gap: 1px; }
.dns-stat small { font-size: 8.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--t3); }
.dns-stat b { font-family: var(--mono); font-size: 15px; color: var(--tx); }
.dns-stat.crit b { color: var(--red); }
.dns-stat.ok b { color: var(--green); }
.dns-stat.org b { color: var(--org); }
.dns-table { max-height: 360px; overflow-y: auto; scrollbar-gutter: stable; }
.dns-table thead th { position: sticky; top: 0; z-index: 2; background: var(--sf); }
.dns-table td small { display: block; font-size: 9px; color: var(--t3); }

.assurance-head { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 8px; padding: 2px 0 4px; font-size: 8.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--t3); }
.hist-head { display: grid; grid-template-columns: 110px 1fr auto; gap: 8px; padding: 2px 0 4px; font-size: 8.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--t3); }

.import-summary { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border: 1px solid var(--bd); border-radius: 7px; background: var(--sf2); font-size: 11px; }
.import-summary span { color: var(--t3); }

.import-conflict { border: 1px solid var(--bd); border-radius: 7px; padding: 9px 10px; margin-bottom: 8px; background: var(--sf2); }
.import-conflict-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; }

.import-conflict-hint { margin: 2px 0 7px; color: var(--t3); font-size: 10.5px; }
.import-conflict-list { border: 1px solid var(--bd2); border-radius: 6px; overflow-y: auto; overflow-x: hidden; max-height: 226px; background: var(--sf); }
.import-conflict-list table { table-layout: fixed; width: 100%; min-width: 0; }
.import-conflict-list th:nth-child(1) { width: 42%; }
.import-conflict-list th:nth-child(2) { width: 34%; }
.import-conflict-list th:nth-child(3) { width: 24%; }
.import-conflict-list th, .import-conflict-list td { padding: 6px 9px; }
.import-conflict-list tr:last-child td { border-bottom: 0; }
.import-conflict-actions { display: flex; justify-content: flex-end; gap: 6px; flex-wrap: wrap; margin-top: 9px; }

.import-conflict-blocked { margin: 7px 0 0; color: var(--crit); font-size: 10.5px; }
.import-conflict-list td small { display: block; color: var(--t3); font-size: 9px; }

.import-progress { padding: 4px 0 8px; }
.import-progress-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.import-progress-head > div { display: flex; align-items: baseline; gap: 8px; }
.import-progress-head b { font-family: var(--mono); font-size: 30px; line-height: 1; color: var(--tx); }
.import-progress-head span { color: var(--t3); font-size: 11px; }
.import-live { display: inline-flex; align-items: center; gap: 5px; font-size: 9px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--blue); }
.import-live i { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); animation: import-pulse 1.2s ease-in-out infinite; }
.import-progress-track { height: 10px; margin-top: 12px; border-radius: 999px; background: var(--bd2); overflow: hidden; }
.import-progress-track i { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--blue), var(--blue-d)); transition: width .35s var(--ease); position: relative; overflow: hidden; }
.import-progress-track i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent); transform: translateX(-100%); animation: import-sheen 1.4s linear infinite; }
.import-current { margin: 9px 0 12px; min-height: 14px; font-family: var(--mono); font-size: 10.5px; color: var(--t2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.import-progress-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 8px; }
.import-progress-grid > div { padding: 8px 9px; border: 1px solid var(--bd); border-radius: 7px; background: var(--sf2); display: flex; flex-direction: column; gap: 2px; }
.import-progress-grid small { font-size: 8.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--t3); }
.import-progress-grid b { font-family: var(--mono); font-size: 15px; color: var(--tx); }
@keyframes import-pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes import-sheen { to { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { .import-live i, .import-progress-track i::after { animation: none; } }

.import-resolve-state { display: flex; align-items: center; gap: 9px; margin-top: 10px; padding: 9px 10px; border: 1px solid var(--bd); border-radius: 7px; background: var(--blue-l); }
.import-resolve-state[hidden] { display: none; }
.import-resolve-state b { display: block; font-size: 11px; color: var(--tx); }
.import-resolve-state div span { display: block; font-size: 10px; color: var(--t3); margin-top: 1px; }
.import-spinner { width: 15px; height: 15px; border: 2px solid rgba(37,99,201,.25); border-top-color: var(--blue); border-radius: 50%; animation: import-spin .8s linear infinite; flex: none; }
.import-live.done { color: var(--ok); }
.import-live.done i { background: var(--ok); animation: none; }
@keyframes import-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .import-spinner { animation: none; } }

.mapping-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; }
.mapping-grid .field { margin: 0; }
@media (max-width: 760px) { .mapping-grid { grid-template-columns: 1fr 1fr; } }

.dialog-panel.wide { width: min(820px, 100%); }
.mapping-section { padding: 12px 0; border-bottom: 1px solid var(--bd2); }
.mapping-section:last-child { border-bottom: 0; padding-bottom: 4px; }
.mapping-note { margin: 0 0 12px; color: var(--t2); font-size: 11px; line-height: 1.5; }
.mapping-title { display: flex; align-items: center; gap: 7px; margin-bottom: 7px; font-size: 10px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--t2); }
.mapping-empty { margin: 0; padding: 10px 0; color: var(--t3); font-size: 11px; }
.mapping-list { max-height: 210px; border: 1px solid var(--bd2); border-radius: 7px; }
.mapping-list td small { display: block; color: var(--t3); font-size: 9px; margin-top: 2px; }
.mapping-actions { display: flex; justify-content: flex-end; }
.mapping-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px 10px; }
.mapping-grid .field { margin: 0; }
@media (max-width: 760px) { .mapping-grid { grid-template-columns: 1fr 1fr; } }

.mapping-dialog .drawer-hero { padding: 14px 18px; min-height: 88px; height: auto; }
.mapping-dialog .drawer-hero h2 { font-size: 21px; }
.mapping-dialog .dialog-body { padding-top: 2px; padding-bottom: 12px; }
.mapping-dialog .mapping-section:first-child { padding-top: 6px; }

.viz-node-icon { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 5px; background: var(--blue-l); color: var(--blue-d); flex: none; }
.viz-node-icon .i { width: 12px; height: 12px; }
.vg-node use { color: #2563C9; }
.vg-node.vg-pop use { color: #4B5563; }
.vg-node.vg-ne use { color: #1E40AF; }
.vg-node.vg-ne:hover use, .vg-node.vg-ne.selected use { color: #123E82; }
.vg-status { fill: #15803D; stroke: #fff; stroke-width: 1.4; }
.vg-node.vg-ne { cursor: pointer; }

.vg-status { animation: vg-led 2.6s ease-in-out infinite; }
@keyframes vg-led { 0%, 100% { opacity: 1; } 50% { opacity: .5; } }
@media (prefers-reduced-motion: reduce) { .vg-status { animation: none; } }

/* Space switcher utama di appbar. Select asli tetap ada sebagai kontrol aksesibel. */
.btn.space-new { height: 38px; padding: 0 11px; gap: 6px; white-space: nowrap; }
.btn.space-new .i { width: 14px; height: 14px; }
@media (max-width: 900px) { .btn.space-new span { display: none; } .btn.space-new { padding: 0 9px; } }


.btn.space-new { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 4px 12px -4px rgba(37,99,201,.55); }
.btn.space-new:hover { background: var(--blue-d); border-color: var(--blue-d); color: #fff; }
.btn.space-new:focus-visible { outline-color: var(--blue-d); }
.btn.space-new .i { color: #fff; }

/* Samakan tinggi kontrol kanan appbar. */
.avatar { height: 38px; min-width: 58px; padding: 0 10px 0 12px; border-radius: 10px; justify-content: center; }
.avatar > span { font-size: 12px; }

/* Auto refresh terasa hidup: status pulse, hover, dan feedback tekan. */
.live { height: 38px; padding: 0 13px; cursor: pointer; transition: transform .15s var(--ease), border-color .15s, box-shadow .15s, background .15s; }
.live .live-dot { position: relative; }
.live[aria-pressed="true"] { color: var(--navy); border-color: #BBD3F7; background: linear-gradient(180deg, #FFFFFF, #F2F7FF); box-shadow: 0 2px 8px -4px rgba(37,99,201,.35); }
.live[aria-pressed="true"] .live-dot { background: var(--ok); animation: live-ping 2.2s ease-out infinite; }
.live:hover { border-color: var(--blue); box-shadow: 0 4px 14px -6px rgba(37,99,201,.45); transform: translateY(-1px); }
.live:active { transform: translateY(0) scale(.98); }
.live .i { transition: transform .18s var(--ease); }
.live:hover .i { transform: rotate(-8deg) scale(1.08); }
.live[aria-pressed="false"] { background: var(--sf2); color: var(--t3); border-color: var(--bd); }
.live[aria-pressed="false"]:hover { color: var(--blue-d); border-color: var(--blue); transform: translateY(-1px); }
@keyframes live-ping {
  0% { box-shadow: 0 0 0 0 rgba(21,128,61,.45); }
  70% { box-shadow: 0 0 0 7px rgba(21,128,61,0); }
  100% { box-shadow: 0 0 0 0 rgba(21,128,61,0); }
}
@media (prefers-reduced-motion: reduce) {
  .live, .live .i { transition: none; }
  .live[aria-pressed="true"] .live-dot { animation: none; }
}

.btn.space-new:hover { background: #F97316; border-color: #EA580C; color: #fff; box-shadow: 0 6px 16px -5px rgba(249,115,22,.6); }
.btn.space-new:active { background: #EA580C; border-color: #C2410C; }
.btn.space-new:focus-visible { outline-color: #F97316; }

/* New space mengikuti konsep tombol AD: gradient navy, border terang, radius 10. */
.btn.space-new {
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 10px;
  background: linear-gradient(160deg, #0B2E6B, #2563C9);
  box-shadow: 0 1px 2px rgba(11,46,107,.28);
  transition: box-shadow .12s linear, filter .12s linear, background .18s var(--ease), border-color .18s var(--ease);
}
.btn.space-new:hover {
  background: linear-gradient(160deg, #9A3412, #F97316);
  border-color: rgba(255,255,255,.3);
  box-shadow: 0 0 0 3px #FFF1E6, 0 3px 10px rgba(249,115,22,.35);
  filter: brightness(1.04);
}
.btn.space-new:active {
  background: linear-gradient(160deg, #7C2D12, #EA580C);
  box-shadow: 0 0 0 2px #FFEDD5, 0 1px 3px rgba(154,52,18,.35);
  filter: none;
}
.btn.space-new:focus-visible { outline: 2px solid #F97316; outline-offset: 2px; }

.key-head { display: grid; grid-template-columns: 1.4fr .7fr 1fr auto auto; gap: 8px; align-items: center; padding: 0 0 5px; color: var(--t3); font-size: 8.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.key-row { min-height: 34px; }
.key-name { color: var(--tx); font-weight: 700; }
.form-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; }
#form-access-keys .field { margin-bottom: 10px; }

.mapping-actions { justify-content: space-between; align-items: center; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--bd2); }
.mapping-hint { color: var(--t3); font-size: 10px; line-height: 1.4; }
@media (max-width: 760px) { .mapping-actions { align-items: flex-start; flex-direction: column; } .mapping-actions .btn { width: 100%; } }

.plan-json-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.plan-json-head label { font-size: 9.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--t2); }
.plan-json-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.plan-format { display: flex; flex-direction: column; gap: 3px; margin-top: 8px; padding: 9px 10px; border: 1px solid var(--bd2); border-radius: 7px; background: var(--sf2); color: var(--t2); font-size: 10px; line-height: 1.5; }
.plan-format b { font-size: 9px; letter-spacing: .05em; text-transform: uppercase; color: var(--t3); }
.plan-format code { font-family: var(--mono); font-size: 9.5px; color: var(--tx); }
@media (max-width: 640px) { .plan-json-head { align-items: flex-start; flex-direction: column; } }

/* Notifikasi terpusat, bukan pojok kanan atas. */
.toasts {
  position: fixed; inset: 0; z-index: 90; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 10px; padding: 20px;
  width: auto; pointer-events: none;
}
.toast {
  position: relative; overflow: hidden; width: min(480px, calc(100vw - 32px));
  display: flex; align-items: flex-start; gap: 11px;
  padding: 14px 14px 15px; border: 1px solid var(--bd); border-left: 1px solid var(--bd);
  border-radius: 14px; background: rgba(255,255,255,.985); box-shadow: 0 26px 70px -24px rgba(11,46,107,.38), 0 8px 24px -16px rgba(11,46,107,.22);
  pointer-events: auto; animation: toast-center-in .24s var(--ease);
}
.toast.ok { border-left: 1px solid var(--bd); }
.toast.warn, .toast.crit, .toast.info { border-left: 1px solid var(--bd); }
.toast::after { content: none; }
.toast-icon { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; flex: none; background: var(--blue-l); color: var(--blue-d); }
.toast-icon .i { width: 18px; height: 18px; }
.toast.ok .toast-icon { background: var(--ok-l); color: var(--ok); }
.toast.warn .toast-icon { background: var(--org-l); color: var(--org-d); }
.toast.crit .toast-icon { background: var(--crit-l); color: var(--crit); }
.toast.info .toast-icon { background: var(--blue-l); color: var(--blue-d); }
.toast-copy { min-width: 0; flex: 1; padding-top: 1px; }
.toast b { display: block; font-size: 9px; letter-spacing: .09em; text-transform: uppercase; color: var(--t3); margin-bottom: 3px; }
.toast.ok b { color: var(--ok); }
.toast.warn b { color: var(--org-d); }
.toast.crit b { color: var(--crit); }
.toast.info b { color: var(--blue-d); }
.toast-copy p { margin: 0; color: var(--tx); font-size: 12.5px; line-height: 1.45; overflow-wrap: anywhere; }
.toast .close { flex: none; margin: 0 0 0 2px; border: 0; background: transparent; color: var(--t3); }
.toast .close:hover { background: var(--sf2); color: var(--tx); }
.toast-progress { position: absolute; left: 0; bottom: 0; width: 100%; height: 3px; background: var(--blue); transform-origin: left; animation: toast-progress var(--dur) linear forwards; }
.toast.ok .toast-progress { background: var(--ok); }
.toast.warn .toast-progress { background: var(--org); }
.toast.crit .toast-progress { background: var(--crit); }
.toast.info .toast-progress { background: var(--blue); }
@keyframes toast-center-in { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes toast-progress { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@media (max-width: 520px) { .toasts { padding: 14px; } .toast { padding: 12px 12px 14px; } .toast-icon { width: 30px; height: 30px; } }
@media (prefers-reduced-motion: reduce) { .toast, .toast-progress { animation: none; } }

/* Chart prefix length memakai keluarga warna tema, bukan pelangi. */
.an-columns {
  background: repeating-linear-gradient(to top, transparent 0 46px, rgba(17,24,39,.045) 46px 47px);
  border-bottom: 1px solid var(--bd2);
}
.an-col-bar {
  background: linear-gradient(180deg, var(--blue) 0%, #DCE9FB 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45);
}
.an-col.peak .an-col-bar {
  background: linear-gradient(180deg, var(--navy) 0%, var(--blue) 100%);
  box-shadow: 0 6px 14px -8px rgba(11,46,107,.55);
}
.an-col.zero .an-col-bar { background: var(--bd); box-shadow: none; }
.an-col-value { background: transparent; color: var(--t3); }
.an-col.peak .an-col-value { background: var(--navy); color: #fff; box-shadow: 0 3px 8px -4px rgba(11,46,107,.5); }
.an-col:hover .an-col-bar { filter: brightness(1.04); }

/* Hindari celah putih pada sudut hero dialog di layar high-DPI.
   Panel induk sudah memotong sudut lewat overflow:hidden dan border-radius. */
.dialog-panel .drawer-hero { border-radius: 0; }

/* Graph enterprise: bentuk berbeda untuk region, POP, dan NE. */
.vg-node rect { fill: #fff; stroke: #D6DFEC; stroke-width: 1; }
.vg-node.vg-region rect { fill: #F1F6FD; stroke: #C4D5EA; }
.vg-node.vg-pop rect { fill: #FBFCFE; stroke: #CBD5E1; }
.vg-node.vg-ne rect { fill: #fff; stroke: #B9C8DD; }
.vg-node use { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; color: #2563C9; }
.vg-node.vg-pop use { color: #475569; }
.vg-node.vg-ne use { color: #1E40AF; }
.vg-node.vg-ne:hover use, .vg-node.vg-ne.selected use { color: #123E82; }
.vg-accent { fill: none; stroke: #2563C9; stroke-width: 3; stroke-linecap: round; }
.vg-node.vg-ne .vg-accent { stroke: #1E40AF; }
.vg-node.vg-pop .vg-accent { stroke: #64748B; }
.vg-node[data-action]:hover rect { stroke: #7FA8DE; }
.vg-node.vg-ne.selected rect { stroke: #1E40AF; stroke-width: 1.6; }
.vg-parent { stroke: #AAB8CB; stroke-width: 1.3; }
.vg-link { fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.vg-link.ok { stroke: #2563C9; }
.vg-link.planned { stroke: #64748B; stroke-width: 2.1; }
.vg-link.unplanned { stroke: #E8820C; stroke-width: 2.1; }
.vg-label.planned rect { stroke: #B8C4D4; }
.vg-label.unplanned rect { stroke: #F0B36C; fill: #FFF8EF; }

.field > label.file-drop {
  display: flex; align-items: center; gap: 11px; width: 100%; min-height: 66px;
  padding: 10px 11px; border: 1px dashed #B8C8DD; border-radius: 10px;
  background: var(--sf2); color: var(--t2); cursor: pointer;
  text-transform: none; letter-spacing: 0; font-size: 11.5px; font-weight: 400;
  transition: border-color .15s, background .15s;
}
.field > label.file-drop:hover, .file-drop.dragging { border-color: var(--blue); background: var(--blue-l); }
.file-drop-icon { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 8px; background: #fff; border: 1px solid var(--bd); color: var(--blue-d); }
.file-drop-icon .i { width: 17px; height: 17px; }
.file-drop-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.file-drop-copy b { color: var(--tx); font-size: 11.5px; font-weight: 700; }
.file-drop-copy small { color: var(--t3); font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-browse { flex: none; padding: 5px 9px; border: 1px solid var(--blue); border-radius: 6px; color: var(--blue-d); background: #fff; font-size: 10px; font-weight: 700; }

.host-record { padding: 14px 16px 16px; }
.host-facts { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px 18px; }
.host-facts > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.host-facts small { font-size: 8px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--t3); }
.host-facts b, .host-facts .link { font-size: 11.5px; color: var(--tx); overflow-wrap: anywhere; }
.host-facts .link { text-align: left; }
.host-record-section { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--bd2); }
.host-record-title { margin: 0 0 6px; font-size: 9px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--t2); }
.host-record-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 13px; }
.host-record-actions .muted { font-size: 10px; }
@media (max-width: 760px) { .host-facts { grid-template-columns: 1fr 1fr; } .host-record-actions { align-items: flex-start; flex-direction: column; } }

/* Pastikan popover custom range berada di atas kartu Analytics. */
.page-head { position: relative; z-index: 20; }
.an-range-pop { z-index: 100; }

/* Custom range dipusatkan agar tidak mungkin tertutup kartu Analytics. */
.an-range-pop {
  position: fixed; top: 50%; left: 50%; right: auto;
  transform: translate(-50%, -50%);
  z-index: 120;
  width: min(360px, calc(100vw - 28px));
  max-height: min(80vh, 620px);
  overflow: auto;
}
