:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #20242a;
  background: #f5f7fa;
  line-height: 1.45;
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: #0866c6; }
.shell { width: min(1180px, calc(100% - 24px)); margin-inline: auto; }
.site-header { background: #17202a; color: white; }
.header-inner { min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { color: white; font-size: 1.05rem; font-weight: 700; text-decoration: none; }
.locale-links { display: flex; flex-wrap: wrap; gap: 12px; font-size: .9rem; }
.locale-links a { color: #dcecff; }
.layout { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 18px; padding-block: 18px; }
aside nav { position: sticky; top: 12px; }
nav ul { list-style: none; margin: 0; padding: 0; background: white; border: 1px solid #dbe1e8; border-radius: 8px; overflow: hidden; }
nav a { display: block; padding: 7px 9px; border-bottom: 1px solid #e7ebf0; text-decoration: none; font-size: .875rem; line-height: 1.35; }
nav li:last-child a { border-bottom: 0; }
nav a:hover, nav a.active { background: #eaf4ff; }
main { min-width: 0; background: white; border: 1px solid #dbe1e8; border-radius: 6px; padding: 18px; }
h1 { margin: 0 0 10px; font-size: clamp(1.4rem, 3vw, 1.85rem); line-height: 1.2; }
h2 { margin: 16px 0 6px; font-size: 1.05rem; }
p { margin: 7px 0; }
.info { color: #075f70; }
.warning { color: #8a5200; }
label, legend { font-weight: 650; }
label { display: block; margin-top: 10px; }
textarea, input[type="text"], select { width: 100%; margin-top: 4px; padding: 6px 8px; border: 1px solid #aeb8c2; border-radius: 4px; background: white; color: inherit; font: inherit; }
textarea { resize: vertical; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
fieldset { margin: 10px 0 0; padding: 6px 10px 10px; border: 1px solid #d0d7de; border-radius: 4px; }
fieldset label { display: inline-block; margin: 4px 14px 0 0; font-weight: 400; }
button { border: 0; border-radius: 4px; padding: 7px 11px; background: #14783e; color: white; font: inherit; font-weight: 650; cursor: pointer; }
button:hover { filter: brightness(.92); }
button.secondary, .quick-zones button { background: #b96b00; }
.button-row, .quick-zones { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.quick-zones button { padding: 4px 8px; font-size: .8rem; }
.error { min-height: 1.2em; margin: 4px 0; color: #b42318; }
.usage { overflow-wrap: anywhere; white-space: pre-wrap; background: #eef8fa; border-radius: 4px; padding: 10px; font-size: .9rem; line-height: 1.4; }
.ip-card { border: 1px solid #e3be68; background: #fff9df; border-radius: 4px; padding: 8px 12px; }
.ip-card h2 { margin: 0 0 4px; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 6px 8px; border: 1px solid #d6dde5; text-align: left; vertical-align: top; overflow-wrap: anywhere; font-size: .9rem; }
th { background: #f1f4f7; }
.request-headers th { width: 1%; white-space: nowrap; overflow-wrap: normal; }
.request-headers td { min-width: 240px; }
footer { padding-block: 0 18px; color: #5c6570; font-size: .85rem; }

@media (max-width: 760px) {
  .header-inner { gap: 8px; padding-block: 6px; }
  .layout { grid-template-columns: 1fr; gap: 10px; padding-block: 10px; }
  aside nav { position: static; }
  nav ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  nav li:nth-last-child(-n + 2) a { border-bottom: 0; }
  nav li:nth-child(odd) a { border-right: 1px solid #e7ebf0; }
  main { padding: 14px 12px; }
}

@media (max-width: 430px) {
  .shell { width: min(100% - 16px, 1180px); }
  .header-inner { align-items: flex-start; flex-direction: column; gap: 3px; }
  nav ul { grid-template-columns: 1fr; }
  nav li a, nav li:nth-last-child(-n + 2) a { border-right: 0; border-bottom: 1px solid #e7ebf0; }
  nav li:last-child a { border-bottom: 0; }
}
