/*
 * whois.unix3r.com: Dracula, like the blog (Alucard in light mode). The blog's own stylesheet comes
 * first (its header, footer, background, fonts, corners); this one adds the WHOIS pages on top.
 * The palette below is the blog's Dracula, for the moment before its stylesheet arrives.
 */

/* ---------- Palette ---------- */
:root {
  --bg: #f7f3df; --surface: #fffbeb; --surface-2: #efebd6; --tonal: #e4dfc6; --ink: #1f1f1f; --ink-soft: #6c664b; --line: #ddd8c0;
  --font-head: 'Bricolage Grotesque', system-ui, sans-serif; --font-ui: 'Roboto Flex', Roboto, system-ui, sans-serif; --font-code: 'JetBrains Mono', ui-monospace, monospace;
  --wh-purple: #644ac9; --wh-pink: #a3144d; --wh-cyan: #036a96; --wh-green: #14710a; --wh-orange: #a34d14; --wh-red: #cb3a2a; --wh-yellow: #846e15; --wh-comment: #635d97;
  --wh-glow: rgba(100, 74, 201, .16);
  /* The terminal stays Dracula-dark in both modes, like the blog's hero terminal */
  --wh-term: #1d1e27; --wh-term-bar: #262833; --wh-term-ink: #f8f8f2; --wh-term-dim: #8b93c2;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #14151c; --surface: #1c1d26; --surface-2: #262833; --tonal: #343746; --ink: #f8f8f2; --ink-soft: #a7aed3; --line: #2c2e3b;
    --wh-purple: #bd93f9; --wh-pink: #ff79c6; --wh-cyan: #8be9fd; --wh-green: #50fa7b; --wh-orange: #ffb86c; --wh-red: #ff5555; --wh-yellow: #f1fa8c; --wh-comment: #6272a4;
    --wh-glow: rgba(189, 147, 249, .22);
    --wh-term: #101117; --wh-term-bar: #1c1d26;
    color-scheme: dark;
  }
}
:root[data-theme='dark'] {
  --bg: #14151c; --surface: #1c1d26; --surface-2: #262833; --tonal: #343746; --ink: #f8f8f2; --ink-soft: #a7aed3; --line: #2c2e3b;
  --wh-purple: #bd93f9; --wh-pink: #ff79c6; --wh-cyan: #8be9fd; --wh-green: #50fa7b; --wh-orange: #ffb86c; --wh-red: #ff5555; --wh-yellow: #f1fa8c; --wh-comment: #6272a4;
  --wh-glow: rgba(189, 147, 249, .22);
  --wh-term: #101117; --wh-term-bar: #1c1d26;
  color-scheme: dark;
}

/* ---------- Page ---------- */
unix3r-header, unix3r-footer { display: contents; }
body.wh-body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background-color: var(--bg); color: var(--ink); font: 400 1.0625rem/1.65 var(--font-body, var(--font-ui)); }
.wh-main { flex: 1; width: 100%; max-width: 1120px; margin: 0 auto; padding: 8px 16px 72px; box-sizing: border-box; font-family: var(--font-ui); }
.wh-skip { position: absolute; left: -9999px; top: 8px; z-index: 1000; padding: 8px 14px; border-radius: 8px; background: var(--wh-purple); color: var(--bg); }
.wh-skip:focus { left: 8px; }
.mono { font-family: var(--font-code); }
.wh-dim { color: var(--ink-soft); }
.wh-small { font-size: .86rem; }
.wh-main ::selection { background: var(--wh-glow); }
.wh-main a { color: var(--wh-purple); text-decoration-color: color-mix(in srgb, var(--wh-purple) 40%, transparent); text-underline-offset: 3px; }
.wh-main a:hover { text-decoration-color: currentColor; }

/* ---------- Home ---------- */
.wh-hero { position: relative; isolation: isolate; padding: clamp(36px, 8vw, 88px) 0 28px; text-align: center; }
.wh-hero-glow { position: absolute; z-index: -1; inset: 0 10% 30%; background: radial-gradient(40% 50% at 35% 40%, color-mix(in srgb, var(--wh-purple) 30%, transparent), transparent 70%), radial-gradient(35% 45% at 68% 55%, color-mix(in srgb, var(--wh-pink) 22%, transparent), transparent 70%); filter: blur(30px); opacity: .9; pointer-events: none; }
.wh-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; background: color-mix(in srgb, var(--surface) 70%, transparent); font: 500 .8rem var(--font-code); color: var(--ink-soft); letter-spacing: .02em; }
.wh-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--wh-green); box-shadow: 0 0 0 0 color-mix(in srgb, var(--wh-green) 60%, transparent); animation: wh-ping 2.4s ease-out infinite; }
@keyframes wh-ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--wh-green) 55%, transparent); } 80%, 100% { box-shadow: 0 0 0 9px transparent; } }
.wh-title { margin: 0; font: 800 clamp(4.2rem, 15vw, 9rem)/.9 var(--font-head); letter-spacing: -.045em;
  background: linear-gradient(100deg, var(--wh-purple) 10%, var(--wh-pink) 55%, var(--wh-orange) 95%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wh-caret { display: inline-block; width: .42em; height: .78em; margin-left: .06em; vertical-align: -.04em; border-radius: 4px; background: var(--wh-pink); animation: wh-blink 1.1s steps(1) infinite; }
@keyframes wh-blink { 50% { opacity: 0; } }
.wh-lede { max-width: 60ch; margin: 18px auto 30px; font: 400 clamp(1rem, 2.2vw, 1.15rem)/1.6 var(--font-body, var(--font-ui)); color: var(--ink-soft); }

/* The search: a terminal prompt */
.wh-search { position: relative; display: flex; align-items: center; gap: 10px; max-width: 760px; margin: 0 auto 18px; padding: 8px 8px 8px 18px; border: 1px solid color-mix(in srgb, var(--wh-purple) 30%, var(--line)); border-radius: 18px;
  background: var(--wh-term); color: var(--wh-term-ink); box-shadow: 0 14px 40px -18px var(--wh-glow), inset 0 1px 0 rgba(255, 255, 255, .04); transition: border-color .2s, box-shadow .2s; }
.wh-search:focus-within { border-color: var(--wh-purple); box-shadow: 0 0 0 4px color-mix(in srgb, var(--wh-purple) 22%, transparent), 0 18px 50px -16px var(--wh-glow); }
.wh-search.is-big { padding: 12px 12px 12px 22px; }
.wh-prompt { display: inline-block; flex: none; font: 500 .95rem var(--font-code); white-space: nowrap; cursor: text; }
.wh-prompt-user { color: #50fa7b; } .wh-prompt-sep { color: #6272a4; } .wh-prompt-cmd { color: #ff79c6; }
.wh-search input { flex: 1; min-width: 0; height: 44px; padding: 0; border: 0; outline: 0; background: none; color: #f8f8f2; font: 500 1.05rem var(--font-code); caret-color: #ff79c6; box-shadow: none; }
.wh-search input::placeholder { color: #6c74a3; }
.wh-search.is-big input { height: 52px; font-size: 1.15rem; }
.wh-kbd { flex: none; padding: 1px 7px; border: 1px solid #3a3d4e; border-bottom-width: 2px; border-radius: 6px; background: transparent; color: #8b93c2; font: 500 .78rem var(--font-code); }
.wh-search:focus-within .wh-kbd { display: none; }
.wh-go { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 12px; background: linear-gradient(135deg, #bd93f9, #ff79c6); color: #14151c; cursor: pointer; transition: transform .15s, filter .15s; }
.wh-search.is-big .wh-go { width: 52px; height: 52px; border-radius: 14px; }
.wh-go:hover { filter: brightness(1.08); transform: translateX(2px); }
.wh-go:focus-visible { outline: 2px solid #f8f8f2; outline-offset: 2px; }

/* Result pages: back to the whois home */
.wh-crumbs { margin: 0 0 12px; }
.wh-home { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 11px; border: 1px solid color-mix(in srgb, var(--wh-purple) 35%, var(--line)); border-radius: 999px; background: color-mix(in srgb, var(--wh-purple) 8%, transparent); color: var(--wh-purple); font: 600 .9rem var(--font-ui); text-decoration: none; transition: background-color .15s, border-color .15s, transform .15s; }
.wh-home:hover { background: color-mix(in srgb, var(--wh-purple) 18%, transparent); border-color: var(--wh-purple); transform: translateX(-2px); }
.wh-home:focus-visible { outline: 2px solid var(--wh-purple); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .wh-home { transition: none; } .wh-home:hover { transform: none; } }

/* Your IP address: Copy | Info */
.wh-myip { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 12px; margin: 0 auto 18px; font-size: .95rem; color: var(--ink-soft); }
.wh-myip-v { color: var(--wh-cyan, var(--wh-purple)); font-weight: 600; overflow-wrap: anywhere; }
.wh-myip-acts { display: inline-flex; align-items: center; gap: 8px; }
.wh-myip-acts button, .wh-myip-acts a { padding: 2px 4px; border: 0; border-radius: 6px; background: none; font: 600 .9rem var(--font-ui); color: var(--wh-purple); text-decoration: none; cursor: pointer; }
.wh-myip-acts button:hover, .wh-myip-acts a:hover { text-decoration: underline; }
.wh-myip-acts button:focus-visible, .wh-myip-acts a:focus-visible { outline: 2px solid var(--wh-purple); outline-offset: 2px; }
.wh-myip-acts .t-done { display: none; color: var(--wh-green); }
.wh-myip-acts .done .t-copy { display: none; }
.wh-myip-acts .done .t-done { display: inline; }
.wh-myip-sep { color: var(--ink-soft); opacity: .5; }
.wh-examples { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 auto; padding: 0; list-style: none; max-width: 780px; }
.wh-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink) !important; text-decoration: none !important; font: 500 .86rem var(--font-code); transition: border-color .2s, transform .2s, box-shadow .2s; }
.wh-chip span { padding: 1px 8px; border-radius: 999px; font: 600 .7rem var(--font-ui); background: color-mix(in srgb, var(--k, var(--wh-purple)) 16%, transparent); color: var(--k, var(--wh-purple)); }
.wh-chip:hover { border-color: var(--k, var(--wh-purple)); transform: translateY(-1px); box-shadow: 0 6px 18px -10px var(--k, var(--wh-purple)); }
.k-domain { --k: var(--wh-purple); } .k-ip { --k: var(--wh-cyan); } .k-ipv6 { --k: var(--wh-green); } .k-asn { --k: var(--wh-orange); } .k-range { --k: var(--wh-pink); }
.wh-recent { max-width: 780px; margin: 26px auto 0; }
.wh-recent h2 { margin: 0 0 10px; font: 600 .82rem var(--font-ui); color: var(--ink-soft); letter-spacing: 0; }
.wh-recent ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.wh-recent .wh-chip { padding: 6px 12px; }
.wh-link-btn { margin-top: 10px; padding: 2px 6px; border: 0; background: none; color: var(--ink-soft); font: 500 .8rem var(--font-ui); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

.wh-how { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 14px; margin-top: clamp(28px, 6vw, 56px); }
.wh-tile { display: grid; align-content: start; gap: 4px; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--r-xl, 20px); background: var(--surface); color: var(--ink) !important; text-decoration: none !important; }
.wh-tile-k { font: 600 .74rem var(--font-code); color: var(--wh-pink); letter-spacing: .02em; }
.wh-tile-v { font: 700 1.08rem/1.3 var(--font-head); }
.wh-tile-s { font-size: .88rem; line-height: 1.5; color: var(--ink-soft); }
.wh-me { position: relative; overflow: hidden; border-color: color-mix(in srgb, var(--wh-cyan) 45%, var(--line)); transition: transform .2s, box-shadow .2s; }
.wh-me::after { content: ''; position: absolute; inset: auto -30% -60% auto; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(color-mix(in srgb, var(--wh-cyan) 30%, transparent), transparent 70%); pointer-events: none; }
.wh-me .wh-tile-k { color: var(--wh-cyan); }
.wh-me .wh-tile-v { font: 600 1.05rem var(--font-code); word-break: break-all; }
.wh-me:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -16px var(--wh-cyan); }

/* ---------- Result ---------- */
.wh-main > .wh-search { margin: 18px 0 8px; max-width: none; }
.wh-result { margin-top: 18px; }
.wh-head { margin: 22px 0 18px; }
.wh-kind { display: inline-block; margin: 0 0 6px; padding: 2px 10px; border-radius: 999px; font: 600 .75rem var(--font-code); color: var(--k); background: color-mix(in srgb, var(--k) 14%, transparent); }
.wh-name { margin: 0; font: 800 clamp(2.1rem, 7vw, 4rem)/1.02 var(--font-head); letter-spacing: -.03em; overflow-wrap: anywhere; color: var(--ink); }
.wh-typed { display: inline-block; font: 500 .95rem var(--font-code); letter-spacing: 0; color: var(--ink-soft); vertical-align: middle; }

/* The terminal (loading, and the raw record) */
.wh-term { overflow: hidden; border: 1px solid #2c2e3b; border-radius: 16px; background: var(--wh-term); color: var(--wh-term-ink); box-shadow: 0 20px 50px -30px rgba(0, 0, 0, .8); }
.wh-term-bar { display: flex; align-items: center; gap: 7px; padding: 10px 12px 10px 14px; background: var(--wh-term-bar); border-bottom: 1px solid #2c2e3b; font: 500 .78rem var(--font-code); color: var(--wh-term-dim); }
.wh-term-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5555; } .wh-term-bar i:nth-child(2) { background: #f1fa8c; } .wh-term-bar i:nth-child(3) { background: #50fa7b; }
.wh-term-bar span { flex: 1; min-width: 0; margin-left: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wh-term-bar .wh-copy { color: var(--wh-term-dim); }
.wh-term-body { margin: 0; padding: 16px 18px 18px; font: 400 .86rem/1.65 var(--font-code); white-space: pre-wrap; overflow-wrap: anywhere; color: var(--wh-term-ink); background: none; }
.wh-loading .wh-term-body { min-height: 190px; }
.t-p { color: #ff79c6; } .t-dim { color: #6272a4; }
.t-step { display: inline; color: #8be9fd; animation: wh-step .35s ease both; }
@keyframes wh-step { from { opacity: 0; } }
.wh-cursor { display: inline-block; width: .6em; height: 1.1em; vertical-align: -.2em; background: #f8f8f2; animation: wh-blink 1s steps(1) infinite; }
.wh-raw { max-height: 520px; overflow: auto; font-size: .8rem; line-height: 1.55; white-space: pre; scrollbar-width: thin; scrollbar-color: #6272a4 transparent; }

/* Pills under the name */
.wh-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.wh-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font: 600 .82rem var(--font-ui); border: 1px solid color-mix(in srgb, var(--t) 35%, transparent); background: color-mix(in srgb, var(--t) 12%, transparent); color: var(--t); text-decoration: none !important; }
.t-good { --t: var(--wh-green); } .t-warn { --t: var(--wh-orange); } .t-bad { --t: var(--wh-red); } .t-info { --t: var(--wh-cyan); } .t-muted { --t: var(--ink-soft); } .t-link { --t: var(--wh-purple); }
a.wh-pill:hover { background: color-mix(in srgb, var(--t) 22%, transparent); }

/* Lifecycle: registered → today → expires */
.wh-life { margin: 0 0 16px; padding: 22px 24px 18px; border: 1px solid var(--line); border-radius: var(--r-xl, 20px); background: linear-gradient(160deg, color-mix(in srgb, var(--wh-purple) 7%, var(--surface)), var(--surface) 60%); }
.wh-life-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 16px; margin-bottom: 16px; }
.wh-life-top > div { display: grid; gap: 2px; }
.ta-r { text-align: right; }
.wh-life-k { font: 600 .74rem var(--font-code); color: var(--ink-soft); }
.wh-life-v { font: 700 1.05rem var(--font-head); }
.wh-life-s { font-size: .84rem; color: var(--ink-soft); }
.wh-life-s.t-good, .wh-life-s.t-warn, .wh-life-s.t-bad { color: var(--t); font-weight: 600; }
.wh-life-mid { text-align: center; }
.wh-life-big { font: 800 clamp(1.6rem, 4.5vw, 2.4rem)/1 var(--font-head); letter-spacing: -.02em; background: linear-gradient(100deg, var(--wh-purple), var(--wh-pink)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wh-bar { position: relative; height: 12px; border-radius: 999px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.wh-bar-fill { position: absolute; inset: 0 auto 0 0; width: var(--p); border-radius: inherit; background: linear-gradient(90deg, var(--wh-purple), var(--wh-pink)); box-shadow: 0 0 18px -2px var(--wh-glow); animation: wh-grow 1.1s cubic-bezier(.2, 0, 0, 1) both; }
.wh-bar.t-warn .wh-bar-fill { background: linear-gradient(90deg, var(--wh-purple), var(--wh-orange)); }
.wh-bar.t-bad .wh-bar-fill { background: linear-gradient(90deg, var(--wh-orange), var(--wh-red)); }
@keyframes wh-grow { from { width: 0; } }
.wh-bar-now { position: absolute; top: -6px; bottom: -6px; left: var(--p); width: 3px; margin-left: -1.5px; border-radius: 2px; background: var(--ink); }
.wh-bar-now i { position: absolute; top: 100%; left: 50%; transform: translate(-50%, 6px); font: 600 .7rem var(--font-code); font-style: normal; color: var(--ink-soft); white-space: nowrap; }
.wh-life-foot { margin: 24px 0 0; font-size: .84rem; color: var(--ink-soft); }

/* Cards */
.wh-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.wh-card { min-width: 0; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--r-xl, 20px); background: var(--surface); }
.wh-card.span-2 { grid-column: 1 / -1; }
.wh-card + .wh-card, .wh-grid + .wh-card, .wh-range + .wh-grid { margin-top: 0; }
.wh-dns, .wh-rawcard { margin-bottom: 16px; }
.wh-card h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font: 700 1.02rem var(--font-head); letter-spacing: -.005em; color: var(--ink); }
.wh-card h2 small { margin-left: 4px; font: 400 .8rem var(--font-ui); }
.wh-ic { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: color-mix(in srgb, var(--wh-purple) 14%, transparent); color: var(--wh-purple); }
.wh-ic svg { width: 17px; height: 17px; fill: currentColor; }
.wh-abuse .wh-ic { background: color-mix(in srgb, var(--wh-red) 14%, transparent); color: var(--wh-red); }
.wh-dns .wh-ic { background: color-mix(in srgb, var(--wh-cyan) 14%, transparent); color: var(--wh-cyan); }
.wh-rawcard .wh-ic { background: color-mix(in srgb, var(--wh-green) 14%, transparent); color: var(--wh-green); }

.wh-dl { display: grid; gap: 0; margin: 0; }
.wh-row { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; padding: 9px 0; border-top: 1px dashed var(--line); }
.wh-row:first-child { border-top: 0; padding-top: 0; }
.wh-row dt { font: 500 .8rem/1.9 var(--font-code); color: var(--ink-soft); }
.wh-row dd { display: flex; align-items: center; gap: 6px; margin: 0; min-width: 0; overflow-wrap: anywhere; font-size: .95rem; }

.wh-copy { flex: none; display: inline-grid; place-items: center; width: 28px; height: 28px; margin-left: auto; padding: 0; border: 0; border-radius: 8px; background: none; color: var(--ink-soft); cursor: pointer; opacity: .75; transition: background-color .15s, color .15s, opacity .15s; }
.wh-copy:hover { opacity: 1; background: color-mix(in srgb, var(--wh-purple) 14%, transparent); color: var(--wh-purple); }
.wh-copy.done { opacity: 1; color: var(--wh-green); }
.wh-copy.done svg { display: none; }
.wh-copy.done::before { content: '✓'; font: 700 .9rem var(--font-ui); }

.wh-list { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; font-size: .9rem; }
.wh-list li { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 7px 10px; border-radius: 10px; background: var(--surface-2); }
.wh-list li a { min-width: 0; overflow: hidden; text-overflow: ellipsis; color: var(--ink); text-decoration: none; }
.wh-list li a:hover { color: var(--wh-purple); }

.wh-statuses { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.wh-status { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 9px; padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, var(--t) 8%, var(--surface-2)); border: 1px solid color-mix(in srgb, var(--t) 22%, transparent); font: 600 .9rem var(--font-ui); }
.wh-status-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--t); box-shadow: 0 0 10px var(--t); }
.wh-status small { grid-column: 2; font: 400 .8rem/1.4 var(--font-ui); color: var(--ink-soft); }

.wh-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 10px; }
.wh-person { min-width: 0; padding: 14px 16px; border-radius: 14px; background: var(--surface-2); overflow-wrap: anywhere; }
.wh-person p { margin: 0 0 3px; }
.wh-roles { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 8px !important; }
.wh-roles span { padding: 1px 8px; border-radius: 999px; background: color-mix(in srgb, var(--wh-pink) 14%, transparent); color: var(--wh-pink); font: 600 .7rem var(--font-code); }
.wh-person-name { font-weight: 600; }
.wh-redacted { display: inline-block; padding: 0 6px; border-radius: 6px; background: repeating-linear-gradient(-45deg, color-mix(in srgb, var(--ink-soft) 14%, transparent) 0 6px, transparent 6px 12px); color: var(--ink-soft); font-size: .86rem; }
.wh-flag { font-family: 'Twemoji Mozilla', 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif; }

/* Tabs (DNS, raw record) */
.wh-tablist { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.wh-tablist button { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 10px; background: none; color: var(--ink-soft); font: 600 .82rem var(--font-code); cursor: pointer; transition: all .15s; }
.wh-tablist button span { padding: 0 6px; border-radius: 6px; background: var(--surface-2); font-size: .72rem; }
.wh-tablist button:hover { color: var(--ink); border-color: color-mix(in srgb, var(--wh-purple) 40%, var(--line)); }
.wh-tablist button[aria-selected='true'] { background: color-mix(in srgb, var(--wh-purple) 16%, transparent); border-color: color-mix(in srgb, var(--wh-purple) 50%, transparent); color: var(--wh-purple); }
.wh-tablist button[aria-selected='true'] span { background: color-mix(in srgb, var(--wh-purple) 22%, transparent); }
.wh-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.wh-table td { padding: 8px 10px; border-top: 1px solid var(--line); vertical-align: top; }
.wh-table tr:first-child td { border-top: 0; }
.wh-table tr:hover td { background: color-mix(in srgb, var(--wh-purple) 5%, transparent); }
.wh-val { width: 100%; overflow-wrap: anywhere; word-break: break-word; }
.wh-val a { color: var(--ink); text-decoration: none; }
.wh-val a:hover { color: var(--wh-purple); }
.wh-prio { color: var(--wh-orange); font: 600 .82rem var(--font-code); white-space: nowrap; }
.wh-ttl { color: var(--ink-soft); font: 500 .76rem var(--font-code); white-space: nowrap; }
.wh-c { width: 1%; }

/* An IP in its network */
.wh-range { margin: 0 0 16px; padding: 22px 24px 18px; border: 1px solid var(--line); border-radius: var(--r-xl, 20px); background: linear-gradient(160deg, color-mix(in srgb, var(--wh-cyan) 7%, var(--surface)), var(--surface) 60%); }
.wh-range-ends { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 30px; font-size: .84rem; color: var(--ink-soft); overflow-wrap: anywhere; }
.wh-range-bar { position: relative; height: 12px; border-radius: 999px; background: linear-gradient(90deg, color-mix(in srgb, var(--wh-cyan) 55%, transparent), color-mix(in srgb, var(--wh-purple) 55%, transparent)); box-shadow: 0 0 22px -6px var(--wh-cyan); }
.wh-range-pin { position: absolute; top: -8px; bottom: -8px; left: var(--p); width: 4px; margin-left: -2px; border-radius: 2px; background: var(--wh-pink); box-shadow: 0 0 12px var(--wh-pink); }
.wh-range-pin i { position: absolute; bottom: 100%; left: 50%; transform: translate(-50%, -6px); padding: 2px 8px; border-radius: 6px; background: var(--wh-pink); color: var(--bg); font-style: normal; font-size: .74rem; font-weight: 700; white-space: nowrap; }
.wh-range-foot { margin: 16px 0 0; font-size: .86rem; color: var(--ink-soft); }
.wh-range-foot .mono { color: var(--ink); font-weight: 600; }

/* Not registered / errors / footer */
.wh-free { margin: 0 0 16px; padding: 28px; border: 1px solid color-mix(in srgb, var(--wh-cyan) 40%, var(--line)); border-radius: var(--r-xl, 20px); background: radial-gradient(80% 120% at 0% 0%, color-mix(in srgb, var(--wh-cyan) 14%, var(--surface)), var(--surface)); }
.wh-free-badge { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 10px; font: 600 .8rem var(--font-code); color: var(--wh-cyan); }
.wh-free-badge .wh-ic { background: color-mix(in srgb, var(--wh-cyan) 16%, transparent); color: var(--wh-cyan); }
.wh-free h2 { margin: 0 0 6px; font: 800 clamp(1.4rem, 4vw, 2rem)/1.15 var(--font-head); overflow-wrap: anywhere; }
.wh-free p { margin: 0; color: var(--ink-soft); }
.wh-empty { padding: clamp(30px, 6vw, 60px) 20px; border: 1px dashed var(--line); border-radius: var(--r-xl, 20px); text-align: center; }
.wh-empty-code { margin: 0; font-size: clamp(3rem, 10vw, 5rem); font-weight: 800; line-height: 1; background: linear-gradient(100deg, var(--wh-purple), var(--wh-pink)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wh-empty.is-error .wh-empty-code { background: linear-gradient(100deg, var(--wh-orange), var(--wh-red)); -webkit-background-clip: text; background-clip: text; }
.wh-empty h1, .wh-empty h2 { margin: 10px 0 6px; font: 800 1.5rem var(--font-head); }
.wh-empty p { margin: 0 auto 8px; max-width: 52ch; color: var(--ink-soft); }
.wh-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border: 1px solid transparent; border-radius: 999px; background: var(--wh-purple); color: var(--bg) !important; font: 600 .88rem var(--font-ui); text-decoration: none !important; cursor: pointer; }
.wh-btn.ghost { background: none; border-color: var(--line); color: var(--ink) !important; }
.wh-btn.ghost:hover { border-color: var(--wh-purple); color: var(--wh-purple) !important; }
.wh-btn.ghost.done { border-color: var(--wh-green); color: var(--wh-green) !important; }
.wh-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 6px; font-size: .84rem; color: var(--ink-soft); }
.wh-foot .mono { color: var(--ink); }
.wh-foot-actions { display: flex; gap: 8px; }
.wh-note { color: var(--ink-soft); }

@media (max-width: 760px) {
  .wh-grid { grid-template-columns: minmax(0, 1fr); }
  .wh-life-top { grid-template-columns: 1fr 1fr; }
  .wh-life-mid { grid-column: 1 / -1; grid-row: 1; text-align: left; }
  .wh-row { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .wh-prompt-user, .wh-prompt-sep { display: none; }
  .wh-kbd { display: none; }
  .wh-search.is-big { padding: 8px 8px 8px 16px; }
  .wh-search.is-big input { font-size: 1rem; height: 46px; }
  .wh-search.is-big .wh-go { width: 46px; height: 46px; }
  .wh-card, .wh-life, .wh-range { padding: 18px 16px; }
  .wh-ttl { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .wh-dot, .wh-caret, .wh-cursor, .t-step, .wh-bar-fill { animation: none; }
  .wh-chip, .wh-me, .wh-go { transition: none; }
}
