:root {
  color-scheme: dark;
  font-family: Inter, 'Myanmar Text', 'Noto Sans Myanmar', system-ui, sans-serif;
  color: #e6edf5;
  background: #0b111b;
  font-size: 15px;
  --surface: #121c2a;
  --border: #2a394b;
  --muted: #a0b1c6;
  --accent: #66e2bd;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
button, input, select { font: inherit; }
button, input, select {
  border: 1px solid var(--border);
  border-radius: 8px;
  min-height: 42px;
  color: inherit;
  background: #172335;
}
button { cursor: pointer; padding: 8px 13px; white-space: nowrap; }
button:hover:enabled { border-color: #72a5b5; background: #213247; }
button:disabled { cursor: default; opacity: .5; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
a { color: inherit; text-underline-offset: 4px; }
p { margin: 0; color: var(--muted); }
h1, h2 { margin: 0 0 6px; line-height: 1.5; }
h1 { font-size: clamp(1.8rem, 4vw, 2.65rem); letter-spacing: -.04rem; }
h2 { font-size: 1.24rem; }
.topbar {
  min-height: 68px;
  padding: 12px max(4vw, calc((100vw - 1200px) / 2));
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--border);
  background: #101925;
}
.brand { display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.brand strong { letter-spacing: .1em; }
.brand span:last-child, .toplink { color: var(--muted); }
.mark { padding: 2px 9px; border-radius: 8px; font-weight: 900; background: var(--accent); color: #102323; font-size: 1.3rem; }
.divider { height: 20px; width: 1px; background: var(--border); }
main { width: min(100% - 40px, 1200px); margin: 38px auto 0; }
.intro, .panel-head, .toolbar, .pagination { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.intro { margin-bottom: 24px; }
.primary { background: var(--accent); color: #0c2420; border-color: transparent; font-weight: 700; }
.primary:hover:enabled { color: #0c2420; background: #a2efd8; }
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; margin-bottom: 22px; }
.metrics article, .panel, dialog { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; }
.metrics article { padding: 18px 20px; display: grid; gap: 6px; align-content: start; }
.metrics article > span, small, footer { color: var(--muted); }
.metrics strong { font-size: 1.85rem; line-height: 1.25; overflow-wrap: anywhere; }
.metrics .service { font-size: 1.25rem; line-height: 1.85; }
.operational { color: var(--accent); }
.panel-head { padding: 20px 20px 14px; }
.toolbar { padding: 0 20px 9px; }
.tabs, .filters, .row-actions { display: flex; gap: 6px; }
.tabs button[aria-pressed="true"] { color: var(--accent); border-color: #397d70; background: #163a38; }
input, select { padding: 8px 10px; }
#notice { padding: 0 20px; margin-bottom: 9px; color: #f0cf98; }
#notice:empty { display: none; }
.table-scroll { overflow: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; min-width: 740px; }
th, td { padding: 12px 14px; border-top: 1px solid var(--border); }
th:first-child, td:first-child { padding-left: 20px; }
th { font-size: .9rem; font-weight: 600; color: #b8c7d9; background: #111a27; }
td:first-child { overflow-wrap: anywhere; }
td small { display: block; margin-top: 3px; }
td .row-actions button { font-size: .85rem; min-height: 36px; }
.badge { display: inline-block; background: #243346; color: #c1d0e0; padding: 3px 9px; border-radius: 12px; font-size: .82rem; white-space: nowrap; }
.badge.active, .badge.healthy { background: #173d37; color: #a1f2d7; }
.badge.inactive, .badge.error { background: #472a33; color: #ffbdc5; }
.badge.unverified { background: #45351d; color: #ffe0a8; }
.empty { color: var(--muted); padding-block: 28px; }
.pagination { border-top: 1px solid var(--border); padding: 12px 20px; color: var(--muted); }
.pagination button { min-width: 40px; }
footer { display: flex; gap: 18px; padding: 22px 0 32px; font-size: .85rem; }
dialog { color: inherit; width: min(460px, calc(100% - 28px)); padding: 22px; }
dialog::backdrop { background: #050912c9; }
dialog form, dialog label { display: grid; gap: 9px; }
dialog form { gap: 13px; }
.dialog-actions { display: flex; justify-content: end; gap: 9px; }
#editor-error { color: #ffbdc5; }
#editor-error:empty { display: none; }
@media (max-width: 720px) {
  main { width: calc(100% - 28px); margin-top: 22px; }
  .intro, .panel-head, .toolbar { align-items: flex-start; flex-direction: column; gap: 10px; }
  .metrics { grid-template-columns: 1fr; gap: 8px; }
  .metrics article { padding: 12px 16px; }
  .filters { width: 100%; flex-wrap: wrap; }
  .filters input { flex: 1 1 180px; min-width: 0; }
  .toplink { display: none; }
  table, tbody { display: block; min-width: 0; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px 12px; padding: 14px; border-top: 1px solid var(--border); }
  tbody td, tbody td:first-child { border: 0; padding: 0; }
  td:nth-child(1) { grid-area: 1 / 1; }
  td:nth-child(2) { grid-area: 2 / 1; color: var(--muted); }
  td:nth-child(3) { grid-area: 2 / 2; text-align: right; }
  td:nth-child(4) { grid-area: 1 / 2; text-align: right; }
  td:nth-child(5), tbody .empty { grid-column: 1 / -1; }
  td .row-actions { flex-wrap: wrap; }
}
@media (max-width: 350px) {
  .brand { white-space: normal; }
}


