/* CyprusNode Status
   Layout concept: one flat surface, hairline borders, status colour only where it means something.
   Brand: blue = interactive, orange = logo + the one primary action. */
@font-face { font-family: "Inter"; src: url(/static/fonts/inter.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "JB"; src: url(/static/fonts/jbmono.woff2) format("woff2"); font-weight: 100 800; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #0b0f17;
  --surface: #11161f;
  --surface-2: #171e2a;
  --line: #1f2735;
  --line-2: #2a3446;
  --text: #e6eaf2;
  --text-2: #a1abbd;
  --text-3: #7d889c;
  --blue: #2563eb;
  --blue-hover: #3b74f0;
  --link: #6ea8ff;
  --orange: #ff7a1a;
  --orange-hover: #ff8c38;
  --ok: #22c55e;
  --ok-bar: #1f8a52;
  --warn: #eab308;
  --serious: #f0883e;
  --crit: #ef4444;
  --maint: #3b82f6;
  --nodata: #222b3a;
  /* chart series, fixed per measuring location (validated for the dark surface) */
  --v1: #4c8dff; --v2: #e2691f; --v3: #9b86f2; --v4: #22a8bb;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JB", ui-monospace, SFMono-Regular, Menlo, monospace;
  --fs-display: 26px; --lh-display: 32px;
  --fs-title: 20px;   --lh-title: 28px;
  --fs-heading: 15px; --lh-heading: 22px;
  --fs-body: 14px;    --lh-body: 20px;
  --fs-small: 13px;   --lh-small: 18px;
  --fs-micro: 12px;   --lh-micro: 16px;

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 20px; --s6: 24px; --s8: 32px; --s12: 48px;
  --pad: 20px;
  --indent: 18px;           /* status dot (8) + gap (10): where row content starts */
  --r-card: 8px; --r-ctl: 6px; --r-badge: 4px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--bg); scrollbar-color: var(--line-2) transparent; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--text);
  font: 400 var(--fs-body)/var(--lh-body) var(--font);
  font-feature-settings: "cv11", "tnum";
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: rgba(37, 99, 235, .45); color: #fff; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; border-radius: var(--r-ctl); }
.wrap { max-width: 1120px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.mono { font-family: var(--mono); font-size: .9em; font-weight: 450; }
.muted { color: var(--text-2); }
.dim { color: var(--text-3); }
.unit { color: var(--text-2); font-weight: 400; margin-left: 2px; font-size: .8em; }
.link { color: var(--link); }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }
.gap-t { margin-top: var(--s4); }

/* ── preview strip ── */
.ribbon { background: var(--surface); border-bottom: 1px solid var(--line); color: var(--text-2); font-size: var(--fs-micro); line-height: var(--lh-micro); }
.ribbon .wrap { display: flex; gap: var(--s2); align-items: center; padding-block: var(--s2); }
.ribbon .rdot { width: 6px; height: 6px; border-radius: 50%; background: var(--orange); flex: none; }
.ribbon b { color: var(--text); font-weight: 600; }
@media (max-width: 640px) { .ribbon .more { display: none; } }

/* ── header ── */
header.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; background: rgba(11, 15, 23, .9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; align-items: center; gap: var(--s4); height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 650; letter-spacing: -.02em; font-size: 16px; }
.brand svg { width: 24px; height: 24px; flex: none; }
.brand .sub { color: var(--text-2); font-weight: 500; letter-spacing: 0; padding-left: 10px; border-left: 1px solid var(--line-2); line-height: 16px; }
nav.links { margin-left: auto; display: flex; gap: var(--s1); align-items: center; }
nav.links a { color: var(--text-2); padding: 6px 10px; border-radius: var(--r-ctl); font-size: var(--fs-small); font-weight: 500; white-space: nowrap; transition: color .15s, background-color .15s, border-color .15s; }
nav.links a:hover { color: var(--text); }
nav.links a.on { color: var(--text); background: var(--surface-2); }
nav.links a.cta { color: var(--text); border: 1px solid var(--line-2); margin-left: var(--s2); }
nav.links a.cta:hover, nav.links a.cta.on { border-color: var(--text-3); background: var(--surface-2); }
@media (max-width: 720px) { nav.links a.hide-sm { display: none; } .brand .sub { display: none; } nav.links a.cta { margin-left: 0; } }

main { padding-block: var(--s8) var(--s12); }

/* ── surfaces ── */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); }
.card-h { display: flex; align-items: center; gap: var(--s3); padding: var(--s4) var(--pad); border-bottom: 1px solid var(--line); flex-wrap: wrap; min-height: 54px; }
.card-h h2, .card-h h3 { margin: 0; font-size: var(--fs-heading); line-height: var(--lh-heading); font-weight: 600; }
.card-h .sub { color: var(--text-3); font-size: var(--fs-small); }
.card-h .right { margin-left: auto; display: flex; gap: var(--s3); align-items: center; color: var(--text-2); font-size: var(--fs-small); }
.card-b { padding: var(--pad); }
.section-title { display: flex; align-items: center; gap: var(--s3); margin: var(--s12) 0 var(--s3); min-height: 32px; flex-wrap: wrap; }
.section-title h2 { margin: 0; font-size: var(--fs-heading); line-height: var(--lh-heading); font-weight: 600; }
.section-title .meta { color: var(--text-3); font-size: var(--fs-small); }
.section-title .end { margin-left: auto; display: flex; gap: var(--s2); align-items: center; }
.section-title a.end { color: var(--link); font-size: var(--fs-small); font-weight: 500; }
.page-title { margin: 0 0 var(--s6); font-size: var(--fs-title); line-height: var(--lh-title); font-weight: 600; letter-spacing: -.01em; display: flex; align-items: center; gap: var(--s3); }
.page-title .end { margin-left: auto; font-size: var(--fs-small); font-weight: 500; color: var(--link); }
.month { color: var(--text-3); font-size: var(--fs-small); font-weight: 500; margin: var(--s8) 0 var(--s2); display: flex; gap: var(--s2); }

/* ── status primitives ── */
.s-operational { --c: var(--ok); }
.s-degraded { --c: var(--warn); }
.s-partial { --c: var(--serious); }
.s-major { --c: var(--crit); }
.s-maintenance { --c: var(--maint); }
.s-unknown, .s-nodata { --c: var(--text-3); }
.imp-minor { --c: var(--warn); }
.imp-major { --c: var(--serious); }
.imp-critical { --c: var(--crit); }
.imp-maintenance { --c: var(--maint); }
.st-investigating { --c: var(--serious); }
.st-identified { --c: var(--warn); }
.st-monitoring { --c: var(--maint); }
.st-resolved { --c: var(--ok); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c); flex: none; display: inline-block; }
.state { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-small); font-weight: 500; color: var(--c); white-space: nowrap; }
.badge { display: inline-flex; align-items: center; height: 20px; padding: 0 6px; border-radius: var(--r-badge); font-size: var(--fs-micro); font-weight: 500; white-space: nowrap; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); }

/* ── buttons + inputs ── */
.input { flex: 1; min-width: 0; height: 40px; padding: 0 12px; background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--r-ctl); outline: none; font-size: var(--fs-body); transition: border-color .15s, box-shadow .15s; }
.input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37, 99, 235, .2); }
.input::placeholder { color: var(--text-3); }
.btn { height: 40px; padding: 0 var(--s4); border-radius: var(--r-ctl); border: 1px solid transparent; background: var(--blue); color: #fff; font-weight: 600; font-size: var(--fs-small); cursor: pointer; display: inline-flex; align-items: center; gap: var(--s2); white-space: nowrap; transition: background-color .15s, border-color .15s; }
.btn:hover { background: var(--blue-hover); }
.btn.primary { background: var(--orange); color: #1a0d02; }
.btn.primary:hover { background: var(--orange-hover); }
.btn.ghost { background: transparent; border-color: var(--line-2); color: var(--text); }
.btn.ghost:hover { background: var(--surface-2); }
.btn.sm { height: 30px; padding: 0 10px; font-size: var(--fs-micro); }
.btn svg { width: 15px; height: 15px; }
.ipform { display: flex; gap: var(--s2); }

.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: var(--r-ctl); padding: 2px; gap: 2px; }
.seg button { border: 0; background: none; height: 26px; padding: 0 10px; border-radius: 4px; color: var(--text-3); font-size: var(--fs-micro); font-weight: 600; cursor: pointer; transition: color .15s, background-color .15s; }
.seg button:hover { color: var(--text); }
.seg button.on { background: var(--surface-2); color: var(--text); }
@media (max-width: 640px) { .section-title .seg { width: 100%; } .seg button { flex: 1; padding: 0 4px; } }

/* ── overview summary ── */
.summary .top { display: grid; grid-template-columns: 1fr minmax(260px, 380px); gap: var(--s6); align-items: center; padding: var(--s6) var(--pad); }
.summary .headline { display: flex; gap: var(--s4); align-items: center; }
.sicon { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--c); color: var(--bg); flex: none; }
.sicon svg { width: 16px; height: 16px; }
.summary h1 { margin: 0; font-size: var(--fs-title); line-height: var(--lh-title); font-weight: 600; letter-spacing: -.01em; text-wrap: balance; }
.summary .meta { color: var(--text-2); font-size: var(--fs-small); margin-top: 2px; }
.summary label { display: block; color: var(--text-2); font-size: var(--fs-small); margin-bottom: var(--s2); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.stats > div { padding: var(--s4) var(--pad); border-left: 1px solid var(--line); min-width: 0; }
.stats > div:first-child { border-left: 0; }
.stats .k { color: var(--text-2); font-size: var(--fs-small); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stats .v { font-size: 18px; line-height: 26px; font-weight: 600; margin-top: 2px; }
.stats a.v { display: block; }
.stats a.v:hover { color: var(--link); }
@media (max-width: 860px) {
  .summary .top { grid-template-columns: 1fr; gap: var(--s5); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats > div:nth-child(3) { border-left: 0; }
  .stats > div:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* notices */
.notice { padding: var(--s4) var(--pad); display: grid; gap: 4px; }
.notice .nh { display: flex; gap: var(--s3); align-items: baseline; flex-wrap: wrap; }
.notice .kind { font-size: var(--fs-small); font-weight: 600; color: var(--c); display: inline-flex; gap: 6px; align-items: center; }
.notice .title { font-weight: 600; }
.notice a.title:hover { color: var(--link); }
.notice .when { margin-left: auto; color: var(--text-2); font-size: var(--fs-small); }
.notice p { margin: 0; color: var(--text-2); max-width: 80ch; }
.notice .affects { color: var(--text-3); font-size: var(--fs-small); }
@media (max-width: 640px) { .notice .when { margin-left: 0; width: 100%; } }

/* ── component rows ── */
.row { display: block; padding: var(--s4) var(--pad); border-top: 1px solid var(--line); transition: background-color .15s; }
.row:first-child { border-top: 0; }
.row:hover { background: rgba(255, 255, 255, .025); }
.row .l1 { display: grid; grid-template-columns: minmax(0, 1fr) auto 76px 16px; gap: var(--s4); align-items: center; }
.row .who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.row .name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .loc { color: var(--text-3); font-size: var(--fs-small); white-space: nowrap; }
.row .mid { display: flex; gap: var(--s4); align-items: center; justify-content: flex-end; }
.row .lat { color: var(--text-2); font-size: var(--fs-small); min-width: 60px; text-align: right; }
.row .upct { font-weight: 600; text-align: right; }
.row .chev { color: var(--text-3); width: 16px; height: 16px; opacity: 0; transition: opacity .15s; }
.row:hover .chev, .row:focus-visible .chev { opacity: 1; }
.row .bars { margin: var(--s3) 0 0 var(--indent); }
.group-foot { display: flex; justify-content: space-between; color: var(--text-3); font-size: var(--fs-micro); padding: 10px var(--pad) 12px calc(var(--pad) + var(--indent)); border-top: 1px solid var(--line); }
.lbl-30 { display: none; }
@media (max-width: 640px) {
  .row .l1 { grid-template-columns: minmax(0, 1fr) auto; row-gap: 2px; }
  .row .mid { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; padding-left: var(--indent); }
  .row .lat { min-width: 0; text-align: left; }
  .row .chev, .row .loc { display: none; }
}

/* 90-day bars */
.bars { display: flex; gap: 3px; height: 28px; align-items: stretch; }
.bar { flex: 1; min-width: 2px; border-radius: 2px; background: var(--c); cursor: pointer; outline: none; transition: filter .12s; }
.bar.s-operational { --c: var(--ok-bar); }
.bar.s-nodata { --c: var(--nodata); }
.bar:hover, .bar:focus-visible { filter: brightness(1.4); }
.bars-axis { display: flex; justify-content: space-between; color: var(--text-3); font-size: var(--fs-micro); margin-top: var(--s2); }
@media (max-width: 640px) { .bars { gap: 2px; } .bars .bar:nth-child(-n+60) { display: none; } .row .bars { margin-left: 0; } .group-foot { padding-left: var(--pad); } .lbl-90 { display: none; } .lbl-30 { display: inline; } }

/* tooltip */
.tip { position: fixed; z-index: 100; pointer-events: none; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: var(--r-card); padding: 8px 10px; box-shadow: 0 8px 24px rgba(0, 0, 0, .5); min-width: 170px; max-width: 300px; font-size: var(--fs-micro); line-height: var(--lh-micro); opacity: 0; transition: opacity .1s; }
.tip.show { opacity: 1; }
.tip .t-h { font-weight: 600; font-size: var(--fs-small); color: var(--text); margin-bottom: 4px; display: flex; gap: var(--s2); align-items: center; }
.tip .t-s { color: var(--text-3); margin-bottom: 6px; }
.tip .t-r { display: flex; align-items: center; gap: var(--s2); margin-top: 4px; color: var(--text-2); }
.tip .t-r b { color: var(--text); font-weight: 600; margin-left: auto; padding-left: var(--s3); }
.tip .t-r.sub { margin-top: 0; padding-left: 16px; color: var(--text-3); }
.tip .key { width: 8px; height: 8px; border-radius: 50%; background: var(--c); flex: none; }
.tip .t-inc { margin-top: var(--s2); padding-top: var(--s2); border-top: 1px solid var(--line-2); color: var(--text-2); display: grid; gap: 4px; }
.tip .t-inc div { display: flex; gap: 6px; align-items: center; }

/* ── incident lists ── */
.inc { display: block; padding: var(--s4) var(--pad); border-top: 1px solid var(--line); }
.inc:first-child { border-top: 0; }
a.inc { transition: background-color .15s; }
a.inc:hover { background: rgba(255, 255, 255, .025); }
.inc .ih { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; }
.inc .it { font-weight: 600; }
.inc .when { margin-left: auto; color: var(--text-3); font-size: var(--fs-small); white-space: nowrap; }
.inc .ib { color: var(--text-2); margin-top: 4px; max-width: 80ch; }
.inc .affects { color: var(--text-3); font-size: var(--fs-small); margin-top: 4px; }
.days .dline { display: grid; grid-template-columns: 96px 1fr auto; gap: var(--s4); align-items: baseline; padding: 14px var(--pad); border-top: 1px solid var(--line); }
.days .dline:first-child { border-top: 0; }
.days .dd { color: var(--text-3); font-size: var(--fs-small); }
.days .dt { display: flex; gap: var(--s3); align-items: baseline; flex-wrap: wrap; }
.days .dt a { font-weight: 600; }
.days .dt a:hover { color: var(--link); }
.days .dw { color: var(--text-3); font-size: var(--fs-small); white-space: nowrap; }
.days .quiet { padding: 14px var(--pad); color: var(--text-3); border-top: 1px solid var(--line); font-size: var(--fs-small); }
.days .quiet:first-child { border-top: 0; }
@media (max-width: 640px) { .days .dline { grid-template-columns: 1fr; gap: 2px; } .inc .when { margin-left: 0; width: 100%; } }

.timeline { display: grid; }
.tl { display: grid; grid-template-columns: 168px 16px 1fr; gap: 0 var(--s3); padding-bottom: var(--s5); }
.tl:last-child { padding-bottom: 0; }
.tl .tw { color: var(--text-3); font-size: var(--fs-small); text-align: right; padding-top: 1px; }
.tl .rail { position: relative; }
.tl .rail::before { content: ""; position: absolute; left: 7px; top: 16px; bottom: calc(-1 * var(--s5)); width: 1px; background: var(--line-2); }
.tl:last-child .rail::before { display: none; }
.tl .rail::after { content: ""; position: absolute; left: 3px; top: 5px; width: 9px; height: 9px; border-radius: 50%; background: var(--c, var(--text-3)); }
.tl .st { font-weight: 600; text-transform: capitalize; }
.tl p { margin: 2px 0 0; color: var(--text-2); max-width: 75ch; }
@media (max-width: 640px) { .tl { grid-template-columns: 16px 1fr; } .tl .rail { grid-column: 1; grid-row: 1 / span 2; } .tl .tw { grid-column: 2; grid-row: 1; text-align: left; } .tl .body { grid-column: 2; grid-row: 2; } }

.empty { padding: var(--s8) var(--pad); color: var(--text-3); text-align: center; }

/* ── component page ── */
.crumb { display: inline-flex; gap: 4px; align-items: center; color: var(--text-2); font-size: var(--fs-small); margin-bottom: var(--s4); }
.crumb:hover { color: var(--text); }
.crumb svg { width: 14px; height: 14px; }
.chead { padding: var(--s6) var(--pad) var(--s5); display: flex; gap: var(--s6); align-items: flex-start; flex-wrap: wrap; }
.chead h1 { margin: 0; font-size: var(--fs-display); line-height: var(--lh-display); font-weight: 600; letter-spacing: -.02em; display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; }
.chead .cd { color: var(--text-2); margin-top: 4px; }
.chead .big { margin-left: auto; text-align: right; }
.chead .big .v { font-size: var(--fs-display); line-height: var(--lh-display); font-weight: 600; letter-spacing: -.02em; }
.chead .big .k { color: var(--text-3); font-size: var(--fs-small); }
.cbars { padding: 0 var(--pad) var(--s5); }
.uptiles { display: grid; grid-template-columns: repeat(6, 1fr); border-top: 1px solid var(--line); }
.uptile { padding: var(--s4) var(--pad); border-left: 1px solid var(--line); min-width: 0; }
.uptile:first-child { border-left: 0; }
.uptile .k { color: var(--text-2); font-size: var(--fs-small); }
.uptile .v { font-size: 18px; line-height: 26px; font-weight: 600; }
.uptile .s { color: var(--text-3); font-size: var(--fs-micro); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 860px) { .uptiles { grid-template-columns: repeat(3, 1fr); } .uptile:nth-child(4) { border-left: 0; } .uptile:nth-child(n+4) { border-top: 1px solid var(--line); } .chead .big { margin-left: 0; text-align: left; } }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); margin-top: var(--s4); }
@media (max-width: 860px) { .grid2 { grid-template-columns: 1fr; } }
.chart-card .card-h { border-bottom: 0; padding-bottom: 0; min-height: 0; }
.chart-card .card-b { padding-top: var(--s3); }
.chart { position: relative; width: 100%; height: 220px; }
.chart.sm { height: 160px; }
.chart .nodata { position: absolute; inset: 0; display: grid; place-items: center; color: var(--text-3); font-size: var(--fs-small); }
.lane { margin-top: var(--s2); }
.legend { display: flex; flex-wrap: wrap; gap: 4px var(--s4); font-size: var(--fs-micro); color: var(--text-2); }
.legend span { display: inline-flex; gap: 6px; align-items: center; }
.legend i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); display: inline-block; }
.legend i.sq { border-radius: 2px; }
.zoombar { display: flex; align-items: center; gap: var(--s2); color: var(--text-2); font-size: var(--fs-small); }
.strip { height: 12px; width: 100%; display: block; border-radius: 3px; cursor: crosshair; }
.axis-l { display: flex; justify-content: space-between; color: var(--text-3); font-size: var(--fs-micro); margin-top: var(--s2); }
.avstats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); margin-top: var(--s5); padding-top: var(--s4); border-top: 1px solid var(--line); }
.avstats .k { color: var(--text-2); font-size: var(--fs-small); }
.avstats .v { font-size: 18px; line-height: 26px; font-weight: 600; }

.checks .ck { display: grid; grid-template-columns: 8px 1fr auto auto; gap: var(--s3); align-items: center; padding: 14px var(--pad); border-top: 1px solid var(--line); }
.checks .ck:first-child { border-top: 0; }
.checks .ck .n { font-weight: 500; }
.checks .ck .vs { color: var(--text-3); font-size: var(--fs-small); margin-top: 2px; }
.checks .ck .ms { color: var(--text-2); font-size: var(--fs-small); min-width: 64px; text-align: right; }
@media (max-width: 560px) { .checks .ck { grid-template-columns: 8px 1fr auto; } .checks .ck .ms { display: none; } }

.res { display: grid; grid-template-columns: repeat(5, 1fr); }
.res .r { padding: var(--s4) var(--pad); border-left: 1px solid var(--line); min-width: 0; }
.res .r:first-child { border-left: 0; }
.res .k { color: var(--text-2); font-size: var(--fs-small); }
.res .v { font-size: 18px; line-height: 26px; font-weight: 600; }
.res .meter { height: 2px; background: var(--line-2); margin-top: var(--s2); border-radius: 1px; }
.res .meter i { display: block; height: 100%; background: var(--v1); border-radius: 1px; }
.res .lvl { font-size: var(--fs-micro); color: var(--text-3); margin-top: 6px; }
@media (max-width: 860px) { .res { grid-template-columns: repeat(2, 1fr); } .res .r { border-top: 1px solid var(--line); } .res .r:nth-child(odd) { border-left: 0; } .res .r:nth-child(-n+2) { border-top: 0; } }

.blocks { display: flex; gap: var(--s2); flex-wrap: wrap; }
.block { display: inline-flex; gap: var(--s2); align-items: center; height: 30px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: var(--r-ctl); font-size: var(--fs-small); }
.block .dim { font-size: var(--fs-micro); }

/* ── IP lookup ── */
.lookup { padding: var(--s6) var(--pad); }
.lookup h1 { margin: 0 0 4px; font-size: var(--fs-title); line-height: var(--lh-title); font-weight: 600; letter-spacing: -.01em; }
.lookup p { margin: 0 0 var(--s4); color: var(--text-2); max-width: 70ch; }
.lookup .ipform { max-width: 520px; }
.res-head { display: flex; gap: var(--s4); align-items: center; flex-wrap: wrap; padding: var(--s5) var(--pad) 6px; }
.res-head .ip { font-family: var(--mono); font-size: 20px; line-height: 28px; font-weight: 500; }
.res-head .state { margin-left: auto; }
.res-note { padding: 0 var(--pad) var(--s5); color: var(--text-2); }
.path { display: flex; align-items: center; gap: var(--s2); padding: var(--s4) var(--pad); border-top: 1px solid var(--line); flex-wrap: wrap; }
.hop { display: inline-flex; align-items: center; gap: var(--s2); height: 32px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: var(--r-ctl); font-size: var(--fs-small); white-space: nowrap; transition: border-color .15s; }
a.hop:hover { border-color: var(--text-3); }
.hop .hs { color: var(--text-3); }
.hop.you { border-style: dashed; }
.arrow { color: var(--text-3); width: 14px; height: 14px; flex: none; }
.livebox { display: flex; gap: var(--s2) var(--s3); align-items: center; padding: 14px var(--pad); border-top: 1px solid var(--line); flex-wrap: wrap; color: var(--text-2); font-size: var(--fs-small); }
.livebox b { color: var(--text); font-weight: 600; }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--link); animation: spin .7s linear infinite; display: inline-block; vertical-align: -3px; }
@keyframes spin { to { transform: rotate(360deg); } }
.notfound { padding: var(--s8) var(--pad); text-align: center; }
.notfound h2 { margin: 0; font-size: var(--fs-heading); font-weight: 600; }
.notfound p { color: var(--text-2); max-width: 520px; margin: var(--s2) auto 0; }

/* ── footer ── */
footer { border-top: 1px solid var(--line); color: var(--text-3); font-size: var(--fs-micro); }
footer .wrap { display: flex; gap: var(--s4); padding-block: var(--s6); flex-wrap: wrap; align-items: center; }
footer a { color: var(--text-2); }
footer a:hover { color: var(--text); }
footer .r { margin-left: auto; display: flex; gap: var(--s4); }
@media (max-width: 640px) { footer .r { margin-left: 0; } }

.skeleton { background: var(--surface-2); border-radius: var(--r-ctl); animation: sk 1.4s ease-in-out infinite; }
@keyframes sk { 50% { opacity: .5; } }

.uplot, .uplot * { font-family: var(--font) !important; }
.u-select { background: rgba(110, 168, 255, .1) !important; }
.u-cursor-x { border-right: 1px solid rgba(255, 255, 255, .16) !important; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
