:root {
  color-scheme: light;
  font: 15px/1.5 system-ui, sans-serif;
  color: #172735;
  background: #f2f5f6;
  --line: #dbe4e8;
  --muted: #536575;
  --teal: #12645d;
}
* { box-sizing: border-box; }
body { margin: 0; }
.top { background: #112934; color: #f3fcfc; }
.top-inner, main { max-width: 1140px; margin: auto; padding-inline: clamp(1rem, 4vw, 2.5rem); }
.top-inner, .intro, .panel-head, .pages, .brand, .connection { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.top-inner { min-height: 70px; }
.brand { gap: .75rem; font-weight: 750; font-size: 1.13rem; }
.brand img, .monogram { width: 34px; height: 34px; border-radius: 8px; }
.brand img { object-fit: contain; }
.monogram { display: grid; place-items: center; background: #a6e6d6; color: #133932; font-weight: 850; }
.connection { justify-content: flex-end; gap: .55rem; font-size: .85rem; color: #d0e4e7; }
#indicator { width: .54rem; height: .54rem; border-radius: 50%; background: #efbe72; }
#indicator.online { background: #8ce2b8; }
main { padding-block: clamp(2.5rem, 7vw, 5rem); }
.intro { margin-bottom: 2rem; align-items: end; }
.section-name { font-size: .84rem; font-weight: 650; color: var(--teal); margin: 0 0 .25rem; }
h1, h2 { margin: 0; line-height: 1.12; letter-spacing: -.037em; }
h1 { font-size: clamp(2.1rem, 6vw, 3.5rem); }
h2 { font-size: 1.3rem; }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 0 0 1.5rem; }
.metrics > div, .panel { background: white; border: 1px solid var(--line); border-radius: 12px; }
.metrics > div { padding: clamp(.85rem, 3vw, 1.42rem); }
dt { color: var(--muted); font-weight: 620; }
dt small { display: block; font-size: .74rem; font-weight: 450; }
dd { margin: .3rem 0 0; font-size: clamp(1.25rem, 4vw, 2rem); font-weight: 700; font-variant-numeric: tabular-nums; }
.panel-head, .pages { padding: 1.2rem; flex-wrap: wrap; }
form { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; }
label, .pages, #status { color: var(--muted); }
button, input { font: inherit; border-radius: 7px; min-height: 40px; padding: .35rem .72rem; }
button { border: 1px solid var(--line); background: #fff; color: #172735; cursor: pointer; font-weight: 580; }
button:hover:not(:disabled) { border-color: var(--teal); background: #edf8f6; }
button:disabled { opacity: .48; cursor: default; }
form button { background: var(--teal); color: white; border-color: var(--teal); }
form button:hover:not(:disabled) { background: #0f524d; }
input { border: 1px solid #bdcbd2; width: min(12rem, 100%); }
:focus-visible { outline: 2px solid #137e72; outline-offset: 3px; }
#status { margin: 0; padding: 1rem 1.2rem 1.4rem; border-top: 1px solid var(--line); }
.scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; white-space: nowrap; text-align: left; font-variant-numeric: tabular-nums; }
th, td { padding: .78rem 1.2rem; border-top: 1px solid var(--line); }
th { background: #f4f8f8; font-size: .8rem; color: var(--muted); }
.number { text-align: right; }
.blocked { color: #9b382c; font-weight: 650; }
.pages { justify-content: space-between; border-top: 1px solid var(--line); }
.pages div { display: flex; gap: .45rem; }
@media (max-width: 480px) {
  .top-inner, .intro { gap: .45rem; }
  .connection { font-size: .75rem; }
  .metrics { gap: .4rem; }
  dt { font-size: .8rem; }
}
[hidden] { display: none !important; }
.onboarding { margin: 0 0 2rem; }
.setup-form { border-top: 1px solid var(--line); padding: 1.2rem; align-items: end; gap: .9rem; }
.setup-form label { display: grid; gap: .2rem; }
.setup-form input { width: min(100%, 16rem); }
#site-list article { border-top: 1px solid var(--line); padding: 1rem 1.2rem; }
#site-list h3, #site-list p { margin: 0 0 .5rem; }
#site-list p, #setup-status { color: var(--muted); }
#site-list dd { overflow-wrap: anywhere; margin: 0 0 .65rem; font: .9rem/1.5 ui-monospace, monospace; }
#site-list a { color: var(--teal); margin-right: .85rem; }
#setup-status { margin: 0; padding: .75rem 1.2rem; border-top: 1px solid var(--line); }
