:root {
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  color: #e8eef7;
  background: #0a111c;
  font-size: 16px;
  --muted: #92a1b4;
  --line: #263447;
  --green: #68ddbc;
  --panel: #121d2b;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a {
  transition:
    background 0.15s,
    border-color 0.15s,
    color 0.15s;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
[hidden] {
  display: none !important;
}
.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 246px 1fr;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  background: #0e1825;
  border-right: 1px solid #233043;
  padding: 27px 16px;
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 750;
  letter-spacing: 0.08em;
  padding: 0 8px;
  font-size: 18px;
}
.brand small {
  display: block;
  color: #71839a;
  font-size: 10px;
  letter-spacing: 0.17em;
  margin-top: 3px;
}
.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: #0c1d1d;
  background: #72dfc0;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  font-size: 20px;
  font-weight: 900;
}
.side-caption,
.eyebrow,
.kicker {
  font-size: 11px;
  letter-spacing: 0.13em;
  font-weight: 750;
  color: #7f91a6;
}
.side-caption {
  margin: 53px 10px 15px;
}
.nav {
  border: 0;
  color: #a6b5c8;
  background: transparent;
  text-align: left;
  width: 100%;
  padding: 13px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 4px;
}
.nav span {
  font-size: 19px;
  vertical-align: middle;
  margin-right: 8px;
}
.nav:hover,
.nav.active {
  color: #a9f4dc;
  background: #1a393b;
}
.sidebar-bottom {
  margin-top: auto;
  color: #a4b2c2;
  font-size: 13px;
  padding: 0 10px;
}
.sidebar-bottom small {
  display: block;
  color: #71839a;
  margin: 8px 0 0 14px;
}
.side-line {
  border-top: 1px solid var(--line);
  margin-bottom: 22px;
}
.side-dot,
.badge i,
.status-summary i {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6fd8b8;
  margin-right: 6px;
}
.mobile-brand {
  display: none;
}
main {
  min-width: 0;
  padding: 0 42px 60px;
  max-width: 1800px;
  width: 100%;
  margin: auto;
}
.topbar {
  min-height: 118px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}
h1 {
  font-size: 26px;
  letter-spacing: -0.035em;
  margin: 8px 0 0;
}
h2 {
  font-size: 23px;
  letter-spacing: -0.035em;
  margin: 0;
}
h3 {
  font-size: 19px;
  letter-spacing: -0.02em;
  margin: 8px 0 0;
}
p {
  color: var(--muted);
  line-height: 1.5;
  margin: 8px 0 0;
  font-size: 14px;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 7px;
  padding: 11px 16px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
  border: 1px solid transparent;
}
.button.primary {
  background: #79dfbd;
  color: #102622;
}
.button.primary:hover {
  background: #9aebcf;
}
.button.subtle {
  background: #1b2c3c;
  border-color: #304459;
  color: #d5e5ef;
}
.button.subtle:hover,
.button.ghost:hover {
  background: #263b4d;
}
.button.ghost {
  background: transparent;
  border-color: #34465a;
  color: #c3d1de;
}
.button.danger {
  background: #45272c;
  color: #ffd2d2;
}
.button.small {
  padding: 7px 10px;
  font-size: 13px;
}
.badge,
.pill {
  font-size: 12px;
  border: 1px solid #29423e;
  background: #142923;
  color: #87d7b9;
  border-radius: 20px;
  padding: 7px 10px;
  white-space: nowrap;
}
.badge.neutral,
.pill {
  color: #9baec1;
  background: #1b2938;
  border-color: #304154;
}
.badge.neutral i {
  background: #8395a6;
}
.intro {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin: 33px 0 23px;
}
.dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  align-items: start;
}
.main-col,
.side-col {
  display: grid;
  gap: 18px;
}
.card {
  background: var(--panel);
  border: 1px solid #263548;
  border-radius: 10px;
  padding: 23px;
  box-shadow: 0 8px 32px #050a111f;
}
.card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 22px;
}
.card-head p {
  margin-top: 7px;
}
.kicker {
  color: #7bcbb3;
}
.icon-box {
  width: 36px;
  height: 36px;
  border: 1px solid #304457;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #9cdacb;
  font-size: 21px;
}
.icon-button {
  background: transparent;
  color: #9fb2c4;
  border: 0;
  font-size: 23px;
  padding: 0 5px;
}
.field-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
  margin-top: 20px;
}
label {
  display: block;
  font-size: 13px;
  color: #bbcad8;
  font-weight: 650;
  margin-bottom: 8px;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid #34465b;
  background: #0c1623;
  border-radius: 6px;
  color: #e5edf6;
  padding: 11px 12px;
  outline: none;
  font-size: 14px;
}
input:focus,
select:focus,
textarea:focus {
  border-color: #72d8b8;
  box-shadow: 0 0 0 3px #72d8b822;
}
input::placeholder,
textarea::placeholder {
  color: #657990;
}
textarea {
  resize: vertical;
  min-height: 78px;
}
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%2398adbf' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}
.hint {
  color: #8193a7;
  font-size: 12px;
  line-height: 1.5;
  margin-top: 7px;
}
#dnsCustom label {
  margin-top: 13px;
}
.filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.filters label {
  font-size: 12px;
  color: #9dadbd;
}
.filters select {
  margin-top: 7px;
}
.route-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}
.route-option {
  width: 100%;
  text-align: left;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  background: #0d1926;
  border: 1px solid #2b3b4d;
  border-radius: 8px;
  padding: 14px;
  color: #e4eff5;
}
.route-option:hover {
  border-color: #5f9d93;
}
.route-option.selected {
  background: #142d2e;
  border-color: #6bcbb1;
}
.route-radio {
  width: 17px;
  height: 17px;
  border: 1px solid #6d8292;
  border-radius: 50%;
}
.route-option.selected .route-radio {
  border: 5px solid #7be1bd;
}
.route-title {
  font-weight: 700;
  font-size: 14px;
}
.route-path {
  color: #9daebe;
  font-size: 12px;
  margin-top: 5px;
  line-height: 1.45;
}
.route-proto {
  font-size: 12px;
  color: #9fb3c4;
  text-align: right;
}
.route-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.route-actions .hint {
  margin: 0;
}
.status-summary {
  padding: 15px;
  border: 1px solid #2c5148;
  border-radius: 8px;
  background: #142c29;
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin: 3px 0 17px;
}
.status-summary.neutral {
  background: #1a2635;
  border-color: #304154;
}
.status-summary.neutral i {
  background: #91a0b0;
}
.status-summary.error {
  background: #382328;
  border-color: #70404a;
}
.status-summary.error i {
  background: #e98989;
}
.status-summary i {
  margin-top: 6px;
}
.status-summary strong,
.status-summary small {
  display: block;
}
.status-summary strong {
  font-size: 14px;
}
.status-summary small {
  color: #9aafbb;
  margin-top: 5px;
  font-size: 12px;
}
.state-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid #273649;
  padding: 12px 0;
  font-size: 13px;
}
.state-row span {
  color: #91a2b4;
}
.state-row strong {
  text-align: right;
  overflow-wrap: anywhere;
}
.measurement {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 18px 0;
}
.measurement div {
  background: #0d1825;
  border: 1px solid #28394b;
  border-radius: 7px;
  padding: 12px;
}
.measurement span,
.measurement strong {
  display: block;
}
.measurement span {
  font-size: 11px;
  color: #8ea1b3;
}
.measurement strong {
  font-size: 18px;
  margin-top: 6px;
}
.probe-row {
  display: grid;
  grid-template-columns: 1fr 80px;
  gap: 8px;
}
.measure-card select {
  margin-top: 8px;
}
.wide {
  width: 100%;
  margin-top: 10px;
}
.notice {
  margin-top: 20px;
  padding: 13px 16px;
  border-radius: 7px;
  color: #ffd4cf;
  background: #422a2d;
  border: 1px solid #74434a;
  font-size: 14px;
}
.notice.info {
  color: #c9e9e0;
  background: #1a3937;
  border-color: #356158;
}
.empty {
  padding: 25px;
  color: #8ea0b2;
  text-align: center;
  font-size: 14px;
}
.admin-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin: 33px 0 23px;
}
.admin-layout {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 18px;
}
.tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
  gap: 4px;
}
.tab {
  background: none;
  border: 0;
  color: #91a4b7;
  padding: 10px 6px;
  font-size: 13px;
  border-bottom: 2px solid transparent;
}
.tab.active {
  color: #8ee2c6;
  border-color: #78d9b8;
}
.list-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 22px 0 10px;
}
.admin-items {
  display: grid;
  gap: 6px;
}
.admin-item {
  background: #0e1926;
  border: 1px solid #293a4d;
  color: #d9e5ef;
  border-radius: 6px;
  text-align: left;
  padding: 12px;
}
.admin-item.active {
  border-color: #6bcbb1;
  background: #17302f;
}
.admin-item small {
  display: block;
  color: #8fa3b5;
  margin-top: 4px;
}
.editor h3 {
  margin: 0 0 20px;
}
.editor-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.editor label {
  margin-top: 14px;
}
.editor fieldset {
  margin: 15px 0;
  border: 1px solid #34465b;
  border-radius: 6px;
}
.editor fieldset label,
.check {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 400;
}
.editor input[type="checkbox"] {
  width: auto;
}
.editor .editor-actions {
  display: flex;
  gap: 8px;
  margin-top: 22px;
  flex-wrap: wrap;
}
dialog {
  border: 1px solid #3a5064;
  border-radius: 12px;
  color: #e8eef7;
  background: #152333;
  width: min(500px, calc(100vw - 30px));
  padding: 26px;
}
dialog::backdrop {
  background: #050a12bb;
}
.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
}
dialog label {
  margin-top: 17px;
}
.dialog-actions {
  display: flex;
  gap: 10px;
  margin-top: 22px;
  flex-wrap: wrap;
}
a:focus-visible,
button:focus-visible {
  outline: 2px solid #8af0ce;
  outline-offset: 3px;
}
@media (max-width: 1150px) {
  main {
    padding: 0 24px 40px;
  }
  .shell {
    grid-template-columns: 200px 1fr;
  }
  .dashboard {
    grid-template-columns: minmax(0, 1fr) 310px;
  }
  .filters {
    grid-template-columns: 1fr 1fr;
  }
  .admin-layout {
    grid-template-columns: 270px 1fr;
  }
}
@media (max-width: 850px) {
  .shell {
    display: block;
  }
  .sidebar {
    position: static;
    width: 100%;
    height: auto;
    padding: 12px 16px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
  }
  .brand {
    font-size: 15px;
  }
  .brand small,
  .side-caption,
  .sidebar-bottom {
    display: none;
  }
  .brand-mark {
    width: 30px;
    height: 30px;
  }
  .sidebar nav {
    display: flex;
    gap: 4px;
    margin-left: auto;
  }
  .nav {
    width: auto;
    padding: 8px;
    margin: 0;
    font-size: 12px;
  }
  .nav span {
    display: none;
  }
  .topbar {
    min-height: 96px;
  }
  .dashboard {
    grid-template-columns: 1fr;
  }
  .side-col {
    grid-template-columns: 1fr 1fr;
  }
  .admin-layout {
    grid-template-columns: 1fr;
  }
  .admin-items {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
}
@media (max-width: 550px) {
  main {
    padding: 0 15px 35px;
  }
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 20px 0;
    gap: 12px;
  }
  h1 {
    font-size: 23px;
  }
  .top-actions {
    width: 100%;
    justify-content: space-between;
  }
  .intro {
    align-items: flex-start;
    flex-direction: column;
    margin: 25px 0 18px;
  }
  .intro h2 {
    font-size: 20px;
  }
  .card {
    padding: 17px;
  }
  .side-col,
  .field-row,
  .editor-grid {
    grid-template-columns: 1fr;
  }
  .route-option {
    grid-template-columns: 20px 1fr;
  }
  .route-proto {
    grid-column: 2;
    text-align: left;
  }
  .route-actions .button {
    width: 100%;
  }
  .sidebar {
    gap: 5px;
  }
  .nav {
    padding: 8px 5px;
  }
  .brand {
    font-size: 13px;
    gap: 6px;
  }
  .tabs {
    justify-content: space-between;
  }
  .badge {
    font-size: 11px;
  }
}

.route-title,
.route-path {
  display: block;
}
.editor #adminEditor:not(.empty) {
  text-align: left;
}
.editor #adminEditor:not(.empty) h3 {
  color: #e8eef7;
}
