:root {
  color-scheme: light;
  --bg: #f3f6f4;
  --sidebar: #ffffff;
  --text: #14211c;
  --muted: #5c6b66;
  --line: #e2eae6;
  --input: #f7faf8;
  --field: var(--input);
  --field-line: var(--line);
  --accent: #0e6b56;
  --accent-text: #ffffff;
  --soft: #e5f3ee;
  --danger: #8d2f2f;
  --header: #ffffff;
  --focus: #0e6b56;
  --placeholder: #6a7b75;
}
html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #12171c;
  --sidebar: #1a2128;
  --text: #e7ecea;
  --muted: #a7b0b4;
  --line: #2c343c;
  --input: #1d242b;
  --field: #3c4e60;
  --field-line: #5c6e7c;
  --accent: #8fd0c6;
  --accent-text: #10211e;
  --soft: #1d3a36;
  --danger: #ffb4b4;
  --header: #171c21;
  --focus: #8fd0c6;
  --placeholder: #d4dde1;
}
@media (prefers-color-scheme: dark) {
  html[data-theme="system"] {
    color-scheme: dark;
    --bg: #12171c;
    --sidebar: #1a2128;
    --text: #e7ecea;
    --muted: #a7b0b4;
    --line: #2c343c;
    --input: #1d242b;
    --field: #3c4e60;
    --field-line: #5c6e7c;
    --accent: #8fd0c6;
    --accent-text: #10211e;
    --soft: #1d3a36;
    --danger: #ffb4b4;
    --header: #171c21;
    --focus: #8fd0c6;
    --placeholder: #d4dde1;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 16px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
body[data-public="1"] {
  background:
    radial-gradient(880px 420px at 100% -12%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 62%),
    var(--bg);
}
.hold-body { min-height: 100dvh; display: flex; flex-direction: column; }
.hold {
  flex: 1; min-height: 0; display: grid; align-content: center; justify-items: center;
  width: 100%; padding: max(1.25rem, env(safe-area-inset-top)) max(.85rem, env(safe-area-inset-right)) 1.25rem max(.85rem, env(safe-area-inset-left));
}
.hold-foot { display: flex; justify-content: center; padding: .2rem 1rem max(1rem, env(safe-area-inset-bottom)); }
.hold-foot .foot-meta { margin: 0; }
.hold-card {
  width: min(34rem, 100%); display: grid; gap: .55rem; min-width: 0;
  background: var(--sidebar); border: 1px solid var(--line); border-radius: 22px;
  padding: 1.25rem 1.35rem 1.2rem; box-shadow: 0 18px 50px rgba(16, 22, 20, .08);
}
.hold-head { display: flex; align-items: center; justify-content: space-between; gap: .6rem; min-width: 0; }
.hold-brand {
  display: inline-flex; align-items: center; gap: .65rem; margin: 0; min-width: 0;
  font-size: 1.15rem; font-weight: 760; letter-spacing: -.02em;
}
.hold-brand img { width: 2.35rem; height: 2.35rem; flex: none; }
.hold-mark {
  display: inline-flex; align-items: center; gap: .4rem; flex: none; margin: 0 0 0 auto;
  padding: .24rem .7rem .24rem .55rem; border-radius: 999px; background: var(--soft);
  color: var(--accent); font-size: .78rem; font-weight: 750;
}
.hold-card h1, .hold-message, .hold-note { overflow-wrap: anywhere; }
.hold-card h1 { margin: .2rem 0 0; font-size: clamp(1.4rem, 5.4vw, 2.05rem); line-height: 1.15; letter-spacing: -.03em; }
.hold-message { margin: .15rem 0 0; font-size: 1.02rem; line-height: 1.45; }
.hold-note { margin: 0; color: var(--muted); line-height: 1.4; }
@media (max-width: 420px) {
  .hold-card { border-radius: 18px; padding: 1.05rem .95rem 1rem; gap: .45rem; }
  .hold-brand { font-size: 1.05rem; gap: .5rem; }
  .hold-brand img { width: 2rem; height: 2rem; }
  .hold-message { font-size: .98rem; }
}
html[data-theme="dark"] body[data-public="1"] { background: var(--bg); }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
input::placeholder,
textarea::placeholder { color: var(--placeholder); opacity: 1; }
.mono, pre, .trow span.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--accent); color: var(--accent-text); padding: .4rem .6rem; z-index: 5; }
.topbar {
  display: flex; align-items: center; gap: .75rem; min-height: 3.5rem;
  padding: .5rem 1rem; background: var(--header); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 4;
}
.brand { display: flex; align-items: center; gap: .45rem; font-weight: 700; text-decoration: none; }
.brand-accent { color: var(--accent); }
.brand-name { display: inline-flex; flex-direction: column; align-items: flex-start; min-width: 0; line-height: 1.05; }
.brand-word { display: inline-block; }
.nav-head { display: flex; align-items: center; gap: .4rem; margin: 0 0 .4rem; padding-top: .55rem; }
.nav-head .brand { gap: .65rem; min-width: 0; }
.nav-head .brand img { width: 2.35rem; height: 2.35rem; flex: none; object-fit: contain; }
.nav-head .brand > span { display: grid; width: max-content; max-width: 100%; line-height: 1.15; min-width: 0; }
.nav-head .brand-name { display: block; width: 100%; min-width: 0; }
.nav-head .brand-word {
  display: flex; justify-content: space-between; align-items: baseline;
  width: 100%; white-space: nowrap; font-size: 1.14rem; line-height: 1;
}
.nav-head .brand small { color: var(--muted); font-size: .75rem; font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-close { display: none; margin-left: auto; width: 2.5rem; height: 2.5rem; align-items: center; justify-content: center; }
.domain { color: var(--muted); }
.domain::before { content: ""; border-left: 1px solid var(--line); margin-right: .75rem; }
.spacer { flex: 1; }
.themes { display: flex; gap: .25rem; }
.themes button, .ghost, .primary {
  border-radius: 8px; border: 1px solid var(--line); background: transparent; padding: .45rem .7rem; cursor: pointer;
}
.themes button[aria-pressed="true"] { background: var(--soft); }
.primary { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; background: var(--accent); color: var(--accent-text); border-color: transparent; font-weight: 700; min-height: 2.75rem; border-radius: 12px; padding: .7rem 1.15rem; box-shadow: 0 8px 18px color-mix(in srgb, var(--accent) 18%, transparent); transition: background .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease; }
.primary:hover { background: color-mix(in srgb, var(--accent) 82%, white); }
.primary:active { background: color-mix(in srgb, var(--accent) 72%, black); }
.ghost, button.ghost, a.ghost { transition: background .15s ease, color .15s ease, border-color .15s ease; }
.ghost:hover, button.ghost:hover, a.ghost:hover { background: var(--soft); border-color: color-mix(in srgb, var(--accent) 42%, var(--line)); color: var(--text); }
.ghost:active, button.ghost:active, a.ghost:active { background: color-mix(in srgb, var(--accent) 16%, var(--soft)); }
.primary.danger:hover { background: color-mix(in srgb, var(--danger) 78%, white); }
.primary.danger:active { background: color-mix(in srgb, var(--danger) 72%, black); }
html[data-theme="dark"] .primary { box-shadow: none; }
a.primary { display: inline-flex; align-items: center; text-decoration: none; }
.shell { display: block; min-height: 100dvh; }
.sidebar { display: none; }
.tools-pop { position: relative; }
.tools-pop summary { cursor: pointer; list-style: none; }
.tools-pop summary::-webkit-details-marker { display: none; }
.menu-panel, .sidebar {
  background: var(--sidebar);
}
.menu-panel {
  position: absolute; right: 0; top: 2.2rem; width: min(22rem, calc(100vw - 1.5rem));
  max-height: calc(100dvh - 4rem); overflow: auto; border: 1px solid var(--line); border-radius: 12px; padding: .75rem;
}
.menu-panel a { display: block; padding: .4rem .2rem; text-decoration: none; }
.sidebar { padding: .55rem .6rem .45rem; border-right: 1px solid var(--line); }
.search { display: flex; align-items: center; gap: .35rem; border: 1px solid var(--field-line); border-radius: 12px; background: var(--field); padding: 0 .7rem; }
.search:focus-within { border-color: var(--focus); box-shadow: inset 0 0 0 1px var(--focus); }
.search input, .field input, .field select, .field textarea {
  width: 100%; background: var(--field); border: 1px solid var(--field-line); border-radius: 10px; padding: .7rem .8rem; min-height: 2.75rem;
}
.search input { border: 0; background: transparent; min-height: 2.15rem; padding: .3rem 0; }
.search input:focus-visible { outline: none; box-shadow: none; }
.search-mark { color: var(--muted); }
.search-hits { display: grid; align-content: start; gap: 0; margin: .2rem 0 0; min-height: 0; overflow: auto; }
.search-hits:not([hidden]) { flex: 1 1 auto; }
.search-hits a, details[data-group] a { display: flex; align-items: center; gap: .4rem; text-decoration: none; padding: .45rem .5rem; border-radius: 8px; }
.search-hits a { padding: .28rem .5rem; }
details[data-group] a { min-height: var(--nav-row, 2.79rem); }
.tool-link i, .search-hits a i { width: 1.05rem; text-align: center; color: var(--muted); flex: none; }
.nav-groups { --nav-row: 2.79rem; display: block; margin-top: .9rem; }
details[data-group] { margin: 0 0 .42rem; font-size: 0; line-height: 0; min-height: 0; }
details[data-group]:last-child { margin-bottom: 0; }
details[data-group]:not([open]) { max-height: var(--nav-row, 2.79rem); overflow: hidden; }
details[data-group] summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: .45rem; font-size: .92rem; font-weight: 680; min-height: var(--nav-row, 2.79rem); padding: .4rem .55rem; border-radius: 10px; line-height: 1.25; }
details[data-group] summary::-webkit-details-marker { display: none; }
details[data-group] summary:hover { background: color-mix(in srgb, var(--soft) 72%, transparent); }
details[data-group][open] > summary { background: color-mix(in srgb, var(--soft) 48%, transparent); }
details[data-group] summary::after { content: ""; width: .4rem; height: .4rem; margin-right: .15rem; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); flex: none; }
details[data-group][open] summary::after { transform: rotate(-135deg); }
.group-label { display: inline-flex; align-items: center; gap: .55rem; min-width: 0; }
.group-label i { width: 1.15rem; text-align: center; color: var(--accent); font-size: .92rem; }
.group-items { display: grid; gap: .36rem; padding: .2rem 0 .28rem 1.35rem; font-size: 16px; line-height: 1.35; }
details[data-group]:not([open]) > .group-items { display: none; }
.nav-new {
  flex: none; display: inline-flex; align-items: center;
  padding: .05rem .36rem .07rem; border-radius: 999px; color: #fff;
  background-image: linear-gradient(105deg, #c2410c 0%, #c2410c 38%, #fdba74 50%, #c2410c 62%, #c2410c 100%);
  background-size: 220% 100%; background-position: 100% 0;
  font-size: .62rem; font-weight: 760; letter-spacing: .01em; line-height: 1.15; white-space: nowrap;
  animation: nav-new-shine 2.8s ease-in-out infinite;
}
@keyframes nav-new-shine {
  0%, 62% { background-position: 100% 0; }
  100% { background-position: 0% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .nav-new { animation: none; }
}
details[data-group] a[aria-current="page"] { background: var(--soft); color: var(--text); font-weight: 700; }
details[data-group] a[aria-current="page"] i { color: var(--accent); }
details[data-group] a:hover, .search-hits a:hover { background: var(--soft); }
main { padding: .45rem 1rem 2.4rem; min-width: 0; }
h1 { font-size: clamp(1.85rem, 3vw, 2.65rem); line-height: 1.08; margin: 0 0 .55rem; font-weight: 760; letter-spacing: -0.03em; }
h2 { font-size: 1.35rem; margin: 0; }
.lead, .meta, .fine, .alert, .intro { margin: 0; }
.lead, .meta, .fine { color: var(--muted); }
.fields { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .55rem; margin: .2rem 0 .15rem; }
.field { flex: 1 1 16rem; min-width: min(100%, 12rem); }
.fields > .altcha { flex: 1 0 100%; }
.fields > .primary { flex: 0 0 auto; width: auto; min-width: 0; padding-inline: .9rem; }
.field label { display: block; margin-bottom: .3rem; }
.alert { color: var(--danger); }
.result {
  margin-top: .85rem; background: var(--sidebar); border: 1px solid var(--line);
  border-radius: 16px; padding: .9rem 1rem 1.05rem;
  box-shadow: 0 10px 28px rgba(16, 22, 20, .05);
}
.result-head { display: flex; justify-content: space-between; align-items: flex-start; gap: .75rem; flex-wrap: wrap; }
.result-lead { flex: 1 1 16rem; min-width: 0; }
.result-side { margin-left: auto; display: flex; align-items: center; justify-content: flex-end; gap: .4rem; flex: none; }
.result-side .result-actions { margin-left: 0; }
.pairs { margin: .75rem 0 1rem; }
.row, .trow, .thead { display: grid; grid-template-columns: minmax(7rem, .6fr) minmax(0, 1.4fr); gap: .5rem; padding: .45rem 0; border-bottom: 1px solid var(--line); }
.thead { color: var(--muted); }
.trow, .thead { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.table a.trow { text-decoration: none; }
.mono, .trow span, pre { overflow-wrap: anywhere; }
pre, .scroll { max-width: 100%; }
pre { white-space: pre-wrap; max-height: 24rem; overflow: auto; background: var(--input); padding: .75rem; border-radius: 8px; }
.raw summary, .advanced summary { cursor: pointer; color: var(--muted); margin: .8rem 0; }
.stage { margin-top: 1rem; }
.narrow { max-width: 36rem; }
.admin-links { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (min-width: 800px) {
  main { padding: .5rem 1.6rem 2.4rem; }
}
@media (max-width: 720px) {
  .primary { width: 100%; }
  .fields > .primary { width: auto; }
  .thead { display: none; }
  .trow { grid-template-columns: 1fr; }
  .trow span::before { content: attr(data-label); display: block; color: var(--muted); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
}
@media (max-height: 500px) {
  .topbar { min-height: 2.6rem; padding-block: .25rem; }
  h1 { font-size: 1.45rem; }
  .menu-panel { max-height: calc(100dvh - 3rem); }
}
@media (min-width: 960px) and (min-height: 560px) {
  .tools-pop { display: none; }
  .shell { display: grid; grid-template-columns: 17.75rem minmax(0, 1fr); align-items: start; }
  .sidebar {
    display: flex; flex-direction: column; position: sticky; top: 0; align-self: start; height: 100dvh; width: auto;
    overflow: hidden; border-radius: 0; border-right: 1px solid var(--line);
  }
  .dock-menu, .nav-close { display: none; }
  .tool-nav { flex: 1; display: flex; flex-direction: column; min-height: 0; height: 100%; width: 100%; overflow: hidden; }
  .nav-groups { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; padding-bottom: .35rem; }
}
.icon-btn {
  border-radius: 10px; border: 1px solid var(--line); background: var(--input); padding: .35rem .55rem; cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.icon-btn:hover { background: var(--soft); border-color: color-mix(in srgb, var(--accent) 42%, var(--line)); color: var(--text); }
.icon-btn:active { background: color-mix(in srgb, var(--accent) 18%, var(--soft)); }
.lang-mark {
  display: inline-grid; place-items: center; width: 1.75rem; height: 1.75rem; flex: none;
  border-radius: 999px; background: var(--soft); color: var(--accent);
  font-size: .72rem; font-weight: 760; letter-spacing: 0; line-height: 1;
}
.lang-mark i { font-size: .82rem; line-height: 1; }
.tz-flag { width: 1.25rem; flex: none; text-align: center; font-size: 1.05rem; line-height: 1; }
.catalog-table .tz-flag { display: inline-block; width: 1.35rem; margin-right: .35rem; vertical-align: -0.12em; font-size: 1.15rem; }
.tz-offset {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  min-width: 1.85rem; height: 1.45rem; padding: 0 .38rem; border-radius: 999px;
  background: var(--soft); color: var(--accent); font-size: .72rem; font-weight: 760;
  font-variant-numeric: tabular-nums; line-height: 1;
}
.tz-name { min-width: 0; }
.tz-device-mark {
  display: inline-grid; place-items: center; width: 1.7rem; height: 1.7rem; flex: none;
  border-radius: 999px; background: var(--accent); color: #fff; font-size: .78rem;
}
.tz-menu .tz-device { margin-bottom: .15rem; box-shadow: inset 0 -1px 0 var(--line); }
.tz-menu .search { position: sticky; top: 0; z-index: 2; margin: 0 0 .45rem; box-shadow: 0 0 0 .4rem var(--sidebar); }
.tz-menu button.tz-head {
  margin-top: .55rem; padding-top: .62rem; border-top: 1px solid var(--line); border-radius: 0 0 8px 8px;
  font-weight: 760;
}
.tz-menu .tz-device + button.tz-head { margin-top: .15rem; padding-top: .45rem; border-top: 0; border-radius: 8px; }
.tz-menu button.tz-head .tz-name { font-weight: 760; font-size: .98rem; color: var(--text); }
.tz-menu button.tz-head .tz-offset { background: var(--accent); color: var(--accent-text); }
.tz-menu button.tz-head:hover, .tz-menu button.tz-head[aria-pressed="true"] { background: var(--soft); }
.lang-menu { position: relative; }
.lang-menu summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: .35rem; border: 1px solid var(--line); border-radius: 10px; background: var(--input); padding: .4rem .7rem; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary::after { content: ""; width: .4rem; height: .4rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin: 0 0 .15rem .2rem; }
.lang-menu:not([open]) > div { display: none; }
.lang-menu div { position: absolute; right: 0; top: calc(100% + .35rem); min-width: 14.5rem; max-height: min(48rem, 70vh); overflow: auto; display: grid; padding: .35rem; background: var(--sidebar); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 14px 32px rgba(28, 36, 33, .12); z-index: 6; }
.lang-menu button { display: flex; align-items: center; gap: .5rem; text-align: left; border: 0; background: transparent; border-radius: 8px; padding: .45rem .55rem; cursor: pointer; }
.lang-menu button[aria-pressed="true"], .lang-menu button:hover { background: var(--soft); }
.side-foot {
  flex: none; margin-top: auto; padding: .45rem .1rem 0;
  display: grid; justify-items: center; gap: .12rem;
}
.foot-host, .foot-meta a {
  color: var(--muted); text-decoration: none;
}
.nav-extra {
  display: flex; align-items: center; min-height: var(--nav-row, 2.79rem); margin: 0; padding: .4rem .55rem;
  border-radius: 10px; text-decoration: none; color: inherit; font-size: .92rem; font-weight: 680; line-height: 1.25;
}
.nav-extra:hover { background: color-mix(in srgb, var(--soft) 72%, transparent); }
.nav-extra[aria-current="page"] { background: var(--soft); }
.foot-host {
  display: inline-flex; align-items: center; justify-content: center; gap: .32rem;
  max-width: 100%; font-size: .72rem; line-height: 1.15; padding: .08rem .2rem; border-radius: 7px;
}
.foot-host img { width: 14px; height: 14px; object-fit: contain; flex: none; border-radius: 50%; }
.foot-host span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.foot-meta {
  display: flex; align-items: center; justify-content: center; gap: .35rem;
  margin: 0; max-width: 100%; min-width: 0; font-size: .68rem; line-height: 1.2; color: var(--muted);
}
.foot-meta a { display: inline-flex; align-items: center; gap: .28rem; min-width: 0; }
.foot-meta a span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.foot-meta i { flex: none; width: .8rem; text-align: center; color: var(--accent); font-size: .68rem; }
.foot-bar { flex: none; color: var(--muted); }
.foot-host:hover, .foot-meta a:hover { color: var(--text); }
.host-badge.preview { display: inline-flex; align-items: center; gap: .45rem; margin: .6rem 0; color: var(--muted); }
.host-badge.preview img { width: 22px; height: 22px; object-fit: contain; }
.welcome { display: grid; gap: 1.15rem; margin-top: 2.75rem; padding-left: 16px; }
.welcome-origin {
  display: flex; align-items: center; gap: .75rem;
  margin: 0; padding: .9rem 1.05rem .95rem 1rem; quotes: none;
  border: 1px solid var(--line); border-left: 3px solid #e08a2e; border-radius: 14px;
  background: color-mix(in srgb, var(--soft) 55%, var(--sidebar)); font-style: normal;
}
.welcome-origin p { margin: 0; line-height: 1.55; }
.welcome-origin .cry {
  position: relative; flex: none; width: 2.55rem; height: 3.35rem;
  color: var(--accent); font-size: 2.05rem;
}
.welcome-origin .cry i { display: block; line-height: 1; animation: cry-sob 2.4s ease-in-out infinite; }
.welcome-origin .cry::before,
.welcome-origin .cry::after {
  content: ""; position: absolute; z-index: 1; top: 1.6rem; width: .4rem; height: .58rem;
  border-radius: 50% 50% 50% 50% / 32% 32% 68% 68%;
  background: #9fd8f2; opacity: 0; pointer-events: none;
  animation: cry-tear 1.35s ease-in infinite;
}
.welcome-origin .cry::before { left: .32rem; }
.welcome-origin .cry::after { right: .24rem; animation-delay: .62s; }
@keyframes cry-tear {
  0% { transform: translateY(0) scale(.55); opacity: 0; }
  14% { opacity: 1; }
  100% { transform: translateY(1.25rem) scale(1); opacity: 0; }
}
@keyframes cry-sob {
  0%, 100% { transform: rotate(0); }
  35% { transform: rotate(-7deg); }
  70% { transform: rotate(6deg); }
}
@media (prefers-reduced-motion: reduce) {
  .welcome-origin .cry i,
  .welcome-origin .cry::before,
  .welcome-origin .cry::after { animation: none; }
  .welcome-origin .cry::before,
  .welcome-origin .cry::after { opacity: 0; }
}
.welcome-notes strong { font-weight: 750; }
.welcome-lead {
  margin: 0; padding: .95rem 1.05rem; font-size: 1.12rem; line-height: 1.5;
  border: 1px solid var(--line); border-radius: 16px; background: var(--sidebar);
}
.welcome-lead p { margin: 0; }
.welcome-notes { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.welcome-notes article {
  display: grid; gap: .45rem; align-content: start; min-width: 0;
  padding: .95rem 1rem 1rem; border: 1px solid var(--line); border-radius: 16px; background: var(--sidebar);
}
.welcome-notes h2, .welcome-start h2 {
  display: flex; align-items: center; gap: .55rem; margin: 0; font-size: 1.02rem; line-height: 1.25;
}
.welcome-notes h2 i {
  display: grid; place-items: center; flex: none; width: 1.75rem; height: 1.75rem;
  border-radius: 9px; background: var(--soft); color: var(--accent); font-size: .82rem;
}
.welcome-notes p, .welcome-start .intro { margin: 0; color: var(--muted); line-height: 1.55; }
.welcome-cli {
  display: grid; gap: .55rem;
  background: var(--sidebar); border: 1px solid var(--line); border-radius: 16px;
  padding: .95rem 1rem 1rem;
}
.welcome-cli h2 {
  display: flex; align-items: center; gap: .45rem; margin: 0; font-size: 1.05rem;
}
.welcome-cli h2 i { color: var(--accent); }
.welcome-cli .fine { margin: 0; color: var(--muted); }
.welcome-cli .welcome-links a, .welcome-start .welcome-links a { background: var(--bg); }
.mcp-doc, .mcp-aside { display: grid; gap: .9rem; }
.mcp-doc .mcp-endpoint, .mcp-aside article {
  display: grid; gap: .4rem; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: 16px; background: var(--sidebar);
}
.mcp-doc .mcp-card .mcp-endpoint {
  gap: .45rem; margin-top: .25rem; padding: 0; border: 0; border-radius: 0; background: transparent;
}
.mcp-card { display: grid; gap: .55rem; padding: .95rem 1rem; border: 1px solid var(--line); border-radius: 16px; background: var(--sidebar); }
.mcp-card .primary { justify-self: start; }
.mcp-tabs { display: grid; gap: .65rem; }
.mcp-tablist { display: flex; flex-wrap: wrap; gap: .4rem; }
.mcp-tablist label {
  cursor: pointer; padding: .42rem .78rem; border-radius: 999px;
  border: 1px solid var(--line); background: var(--sidebar); font-weight: 680; font-size: .88rem;
}
.mcp-panel { display: none; gap: .55rem; padding: .95rem 1rem; border: 1px solid var(--line); border-radius: 16px; background: var(--sidebar); }
#mcp-tab-cursor:checked ~ .mcp-tablist label[for="mcp-tab-cursor"],
#mcp-tab-claude:checked ~ .mcp-tablist label[for="mcp-tab-claude"],
#mcp-tab-code:checked ~ .mcp-tablist label[for="mcp-tab-code"],
#mcp-tab-gigacode:checked ~ .mcp-tablist label[for="mcp-tab-gigacode"],
#mcp-tab-cli:checked ~ .mcp-tablist label[for="mcp-tab-cli"],
#mcp-tab-other:checked ~ .mcp-tablist label[for="mcp-tab-other"] {
  background: var(--accent); color: var(--accent-text); border-color: transparent;
}
#mcp-tab-cursor:focus-visible ~ .mcp-tablist label[for="mcp-tab-cursor"],
#mcp-tab-claude:focus-visible ~ .mcp-tablist label[for="mcp-tab-claude"],
#mcp-tab-code:focus-visible ~ .mcp-tablist label[for="mcp-tab-code"],
#mcp-tab-gigacode:focus-visible ~ .mcp-tablist label[for="mcp-tab-gigacode"],
#mcp-tab-cli:focus-visible ~ .mcp-tablist label[for="mcp-tab-cli"],
#mcp-tab-other:focus-visible ~ .mcp-tablist label[for="mcp-tab-other"] { outline: 2px solid var(--focus); outline-offset: 2px; }
#mcp-tab-cursor:checked ~ .mcp-panels #mcp-panel-cursor,
#mcp-tab-claude:checked ~ .mcp-panels #mcp-panel-claude,
#mcp-tab-code:checked ~ .mcp-panels #mcp-panel-code,
#mcp-tab-gigacode:checked ~ .mcp-panels #mcp-panel-gigacode,
#mcp-tab-cli:checked ~ .mcp-panels #mcp-panel-cli,
#mcp-tab-other:checked ~ .mcp-panels #mcp-panel-other { display: grid; }
.mcp-doc h2, .mcp-aside h2 { margin: .2rem 0 0; font-size: 1.12rem; }
.mcp-doc h3 { margin: 0; font-size: 1rem; }
.mcp-doc p, .mcp-aside p { margin: 0; line-height: 1.5; }
.mcp-endpoint { display: grid; gap: .35rem; }
.mcp-endpoint code { font-size: 1rem; }
.mcp-snippet { display: grid; justify-items: end; gap: .35rem; }
.mcp-snippet .cli-block { justify-self: stretch; }
.mcp-examples { width: 100%; border-collapse: collapse; }
.mcp-examples th {
  text-align: start; padding: .15rem .7rem .45rem 0;
  color: var(--muted); font-size: .74rem; font-weight: 750; letter-spacing: .04em; text-transform: uppercase;
}
.mcp-examples td { padding: .8rem .7rem .8rem 0; border-top: 1px solid var(--line); vertical-align: top; line-height: 1.45; }
.mcp-examples td:first-child { width: 38%; font-weight: 680; }
.mcp-examples .sample {
  margin: 0; white-space: pre-line;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .82rem; line-height: 1.45;
}
@media (max-width: 720px) {
  .mcp-examples thead { display: none; }
  .mcp-examples, .mcp-examples tbody, .mcp-examples tr, .mcp-examples td { display: block; width: auto; }
  .mcp-examples td:first-child { width: auto; padding-bottom: .25rem; }
  .mcp-examples td:last-child { padding-top: 0; }
}
.mcp-tools { width: 100%; border-collapse: collapse; }
.mcp-tools td { padding: .4rem .15rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.mcp-tools td:first-child { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: nowrap; padding-right: .8rem; }
.mcp-point { margin-left: .35rem; color: var(--muted); font-family: inherit; font-size: .72rem; font-weight: 650; }
.mcp-aside { grid-template-columns: 1fr 1fr; }
@media (max-width: 720px) { .mcp-aside { grid-template-columns: 1fr; } }
.cli-block {
  margin: 0; overflow: auto;
  background: #10211e; color: #e7f6f1; border-radius: 12px;
  padding: .85rem .95rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .84rem; line-height: 1.6; white-space: pre;
}
.cli-note { color: #8fd0c6; }
.ipv6-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.ipv6-grid article {
  background: var(--sidebar); border: 1px solid var(--line); border-radius: 16px; padding: .9rem 1rem;
}
.ipv6-grid h2 { margin: 0 0 .35rem; font-size: 1rem; }
.ipv6-grid strong { font-size: 1.25rem; }
.welcome-places {
  display: grid; gap: .45rem;
  padding: .95rem 1rem 1rem; border: 1px solid var(--line); border-radius: 16px; background: var(--sidebar);
}
.welcome-places h2 { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin: 0; font-size: 1.05rem; }
.welcome-places h2 i { color: var(--accent); }
.welcome-places p { margin: 0; color: var(--muted); line-height: 1.55; }
.welcome-start {  display: grid; gap: .75rem;
  background: var(--sidebar); border: 1px solid var(--line); border-radius: 16px;
  padding: .95rem 1rem 1rem;
}
.welcome-start-head { display: grid; gap: .25rem; }
.welcome-links { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; }
.welcome-links a {
  display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: .7rem; row-gap: .15rem;
  align-items: center; padding: .8rem .9rem; border: 1px solid var(--line); border-radius: 14px;
  background: var(--sidebar); text-decoration: none; color: inherit;
}
.welcome-links a:hover { border-color: color-mix(in srgb, var(--accent) 42%, var(--line)); background: color-mix(in srgb, var(--soft) 35%, var(--sidebar)); }
.welcome-links a i {
  grid-row: 1 / span 2; display: grid; place-items: center; width: 2rem; height: 2rem;
  border-radius: 10px; background: var(--soft); color: var(--accent); font-size: .9rem;
}
.welcome-links a span { font-weight: 700; }
.welcome-links a small { color: var(--muted); line-height: 1.35; }
.page-title { min-width: 0; flex: 1 1 12rem; }
.page-title h1 { font-size: clamp(1.35rem, 2.1vw, 1.8rem); line-height: 1.1; margin: 0; }
.page-title .eyebrow { margin: .32rem 0 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .4rem; margin: 0 0 .6rem;
  padding: .22rem .65rem .22rem .5rem; border-radius: 999px; background: var(--soft);
  color: var(--accent); font-size: .78rem; font-weight: 750; letter-spacing: .01em;
}
.intro { color: var(--muted); max-width: 48rem; }
form.tool, main > form.narrow {
  background: var(--sidebar); border: 1px solid var(--line); border-radius: 16px; padding: .75rem .9rem .55rem;
}
form.narrow .lead { margin: .35rem 0 .75rem; }
.tool-panel {
  background: var(--sidebar); border: 1px solid var(--line); border-radius: 16px;
  padding: .7rem .85rem .6rem; box-shadow: 0 10px 28px rgba(16, 22, 20, .05);
}
.tool-panel form.tool { background: transparent; border: 0; border-radius: 0; padding: 0; box-shadow: none; }
.tool-panel .fields { flex-direction: column; align-items: stretch; }
.tool-panel .field { flex: none; width: 100%; max-width: none; }
.tool-panel .field-row { flex-direction: row; flex-wrap: wrap; align-items: flex-end; gap: .85rem .75rem; width: 100%; }
.tool-panel .field-row > .field { flex: 1 1 12rem; width: auto; max-width: none; min-width: min(100%, 10rem); }
.tool-panel .field-row:not(.advanced-fields):not(:has(> .field ~ .field)):not(:has(> .altcha)) { flex-wrap: nowrap; }
.tool-panel .field-row:not(.advanced-fields):not(:has(> .field ~ .field)) > .field { flex: 1 1 auto; max-width: none; min-width: 0; }
.tool-panel .field-row > .altcha { flex: 1 0 100%; margin-top: .55rem; }
.tool-panel .field-row > .primary { flex: 0 0 auto; width: auto; margin: .35rem 0 0 auto; }
.tool-panel .field-row > .tool-go { align-self: flex-end; flex: none; width: auto; margin: 0; border-radius: 12px; }
.tool-panel .field-row label {
  display: flex; align-items: center; gap: .4rem; margin: 0 0 .32rem;
  font-size: .8rem; font-weight: 700; color: var(--text); letter-spacing: .01em;
}
.tool-panel .field-row label::before {
  content: ""; width: 2px; height: .72rem; border-radius: 2px; background: var(--accent); flex: none;
}
.tool-panel .field-row input:focus-visible,
.tool-panel .field-row select:focus-visible,
.tool-panel .field-row textarea:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--focus);
}
.tool-panel .field-row > .field:has(textarea) { flex: 1 0 100%; width: 100%; max-width: none; min-width: 0; }
.tool-panel.is-wide .field-row:not(.advanced-fields) { flex-wrap: nowrap; }
.tool-panel.is-wide .field-row:not(.advanced-fields) > .field {
  flex: 1 1 0; width: auto; max-width: none; min-width: 0;
}
.calc-cols { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-top: .85rem; }
.calc-panel fieldset {
  margin: 0; min-width: 0; padding: .85rem .95rem 1rem; border: 1px solid var(--line); border-radius: 14px;
  display: grid; gap: .55rem; align-content: start;
}
.calc-panel legend { padding: 0 .2rem; font-weight: 750; }
.calc-row { display: grid; grid-template-columns: 7.2rem minmax(0, 1fr); align-items: center; gap: .55rem; margin: 0; }
.calc-row span { color: var(--muted); font-weight: 700; }
.calc-row input, .calc-row select { width: 100%; }
@media (min-width: 960px) {
  .calc-cols.is-bytes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .calc-cols:not(.is-bytes) { grid-template-columns: 1fr 1fr; }
}
.tool-panel .composer-box {
  display: flex; flex-direction: column; min-width: 0; width: 100%;
  border: 1px solid var(--field-line); border-radius: 14px; background: var(--field); overflow: hidden;
}
.tool-panel .composer-box:focus-within {
  border-color: var(--focus); box-shadow: inset 0 0 0 1px var(--focus);
}
.tool-panel .composer textarea {
  width: 100%; min-height: 13rem; border: 0; border-radius: 0; background: transparent;
  box-shadow: none; resize: none;
}
.tool-panel .lined-editor { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: stretch; min-width: 0; }
.tool-panel .lined-editor textarea,
.tool-panel .line-nums {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .92rem; line-height: 1.45;
}
.tool-panel .line-nums {
  margin: 0; padding: .7rem .45rem .7rem .6rem; overflow: hidden; text-align: right; white-space: pre;
  color: color-mix(in srgb, var(--text) 42%, var(--field)); user-select: none;
  border-right: 1px solid var(--field-line); background: color-mix(in srgb, var(--sidebar) 42%, var(--field));
}
.tool-panel .lined-editor textarea { padding: .7rem .8rem; white-space: pre; overflow: auto; min-width: 0; tab-size: 2; }
.tool-panel .line-nums .is-bad { color: var(--danger); font-weight: 750; }
.tool-panel .composer textarea:focus-visible { outline: none; box-shadow: none; }
.tool-panel .composer-bar {
  display: flex; justify-content: flex-end; align-items: center; gap: .6rem;
  padding: .5rem .55rem; border-top: 1px solid color-mix(in srgb, var(--field-line) 80%, transparent);
  background: color-mix(in srgb, var(--sidebar) 28%, var(--field));
}
.tool-panel .composer-bar .primary {
  width: auto; height: 2.35rem; min-height: 2.35rem; margin: 0; padding: 0 1rem;
  border-radius: 10px; box-shadow: none;
}
.tool-panel .field-row .fine {
  display: block; width: auto; min-width: 0; max-width: 100%; margin: .32rem 0 0;
  font-size: .8rem; font-weight: 450; line-height: 1.35; letter-spacing: .01em; color: var(--muted);
  overflow-wrap: anywhere;
}
.tool-panel .advanced-fields { align-items: flex-start; flex-wrap: nowrap; gap: .85rem .75rem; }
.tool-panel .advanced { margin: .7rem 0 .1rem; }
.tool-panel .advanced summary {
  display: inline-flex; align-items: center; gap: .45rem; width: fit-content;
  margin: 0; padding: .1rem 0; list-style: none; cursor: pointer;
  color: var(--muted); font-size: .82rem; font-weight: 700;
}
.tool-panel .advanced summary::-webkit-details-marker { display: none; }
.tool-panel .advanced summary::before {
  content: ""; width: .4rem; height: .4rem; flex: none; margin-top: -.12rem;
  border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg);
}
.tool-panel .advanced[open] summary::before { transform: rotate(45deg); margin-top: .12rem; }
.tool-panel .advanced .fields { margin: .55rem 0 .05rem; }
@media (max-width: 959px) {
  .tool-panel .field-row:not(.advanced-fields) {
    flex-wrap: wrap;
    align-items: flex-end;
  }
  .tool-panel .field-row:not(.advanced-fields) > .field {
    flex: 1 1 0;
    width: auto;
    max-width: none;
    min-width: min(100%, 9rem);
  }
  .tool-panel .field-row:not(.advanced-fields):not(:has(> .field ~ .field)) > .field { min-width: 0; }
  .tool-panel.is-wide .field-row:not(.advanced-fields) { flex-wrap: wrap; }
  .calc-cols.is-bytes { grid-template-columns: 1fr; }
  .tool-panel .field-row:not(.advanced-fields) > .field:has(textarea),
  .tool-panel .field-row:not(.advanced-fields) > .altcha {
    flex: 1 0 100%;
    width: 100%;
  }
  .tool-panel .field-row:not(.advanced-fields) .primary { width: auto; }
  .tool-panel .advanced-fields { flex-direction: column; align-items: stretch; }
  .tool-panel .advanced-fields > .field { flex: 1 0 100%; width: 100%; max-width: none; min-width: 0; }
}
.tool-copy {
  display: grid; gap: .22rem; margin: 0 0 .6rem; padding: 0 0 .55rem;
  border-bottom: 1px solid var(--line);
}
.tool-copy .lead { color: var(--text); font-weight: 650; line-height: 1.35; }
.tool-copy .intro { font-size: .9rem; line-height: 1.4; }
.status-line { display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; margin: 0; }
.pill.status-done { background: #e5f6ec; color: #146c43; }
.pill.status-partial, .pill.status-queued, .pill.status-running { background: #f8f1df; color: #8a5a12; }
.pill.status-error, .pill.status-timeout, .pill.status-cancelled { background: #fde8e8; color: #9f2d2d; }
html[data-theme="dark"] .pill.status-done { background: #163528; color: #b7ebc9; }
html[data-theme="dark"] .pill.status-partial,
html[data-theme="dark"] .pill.status-queued,
html[data-theme="dark"] .pill.status-running { background: #3a311c; color: #f0d58c; }
html[data-theme="dark"] .pill.status-error,
html[data-theme="dark"] .pill.status-timeout,
html[data-theme="dark"] .pill.status-cancelled { background: #3a2020; color: #ffb4b4; }
.block > p i { color: var(--accent); width: 1rem; text-align: center; margin-right: .2rem; }
.check { display: flex; gap: .5rem; align-items: center; margin: .8rem 0; }
.table { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--input); }
.table .thead, .table .trow { padding-inline: .75rem; }
.altcha { margin: 1rem 0; }
.altcha-box { display: flex; align-items: center; gap: .6rem; border: 1px solid var(--field-line); border-radius: 8px; padding: .7rem .8rem; background: var(--field); }
.auth { min-height: 100dvh; display: grid; place-items: center; padding: 1rem; background:
  radial-gradient(900px 420px at 10% -10%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 60%),
  var(--bg); }
.auth-card {
  width: min(28rem, 100%); min-height: 0;
  background: var(--sidebar); border: 1px solid var(--line); border-radius: 20px;
  display: flex; flex-direction: column; padding: 1rem 1.1rem 1.6rem;
  box-shadow: 0 18px 50px rgba(16, 22, 20, .08);
}
.auth-bar { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.auth-form { width: min(26rem, 100%); margin: auto; }
.auth-form .primary { width: 100%; margin-top: .35rem; }
.theme-menu { position: relative; }
.theme-menu summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: .35rem; }
.theme-menu summary::-webkit-details-marker { display: none; }
.theme-menu div { position: absolute; right: 0; top: 2rem; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: .35rem; display: grid; min-width: 11rem; z-index: 3; }
.theme-menu button { text-align: left; }
.eye { position: relative; }
.eye input { width: 100%; padding-right: 2.6rem; }
.eye button { position: absolute; right: .4rem; top: 1.85rem; border: 0; background: transparent; cursor: pointer; color: var(--muted); }
.admin-body { background: var(--bg); overflow-x: clip; }
.admin-app { min-height: 100dvh; }
.admin-side {
  position: fixed; z-index: 30; inset: 0 auto 0 0; width: min(18.75rem, calc(100vw - 2.75rem));
  display: flex; flex-direction: column; gap: .15rem; padding: .85rem .7rem 1rem;
  background: var(--sidebar); border-right: 1px solid var(--line);
  transform: translateX(-105%); transition: transform .2s ease; overflow: auto;
}
.admin-app.is-nav .admin-side { transform: none; box-shadow: 16px 0 40px rgba(16, 22, 20, .18); }
.admin-backdrop { position: fixed; inset: 0; z-index: 20; border: 0; padding: 0; background: rgba(16, 22, 20, .42); cursor: pointer; }
.admin-app:not(.is-nav) .admin-backdrop { display: none; }
.admin-head { display: flex; align-items: center; gap: .35rem; }
.admin-head .nav-close { display: none; margin-left: auto; width: 2.5rem; height: 2.5rem; }
.admin-brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; padding: .2rem .45rem .55rem; min-width: 0; }
.admin-brand > span { display: grid; line-height: 1.15; }
.admin-brand small { color: var(--muted); font-size: .78rem; }
.admin-nav { --nav-row: 3rem; display: block; }
.nav-label { margin: .7rem .6rem .15rem; color: var(--muted); font-size: .72rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.admin-nav a {
  display: flex; align-items: center; gap: .65rem; min-height: 3rem; padding: .42rem .65rem;
  border-radius: 11px; text-decoration: none; color: var(--text);
}
.admin-nav a i { width: 1.15rem; text-align: center; color: var(--muted); }
.admin-nav a:hover { background: color-mix(in srgb, var(--soft) 70%, transparent); }
.admin-nav a[aria-current="page"] { background: var(--soft); font-weight: 700; }
.admin-nav a[aria-current="page"] i { color: var(--accent); }
.nav-count {
  display: inline-flex; align-items: center; justify-content: center; min-width: 1.15rem; height: 1.15rem;
  margin-left: auto; padding: 0 .32rem; border-radius: 999px; background: #c44545; color: #fff;
  font-size: .68rem; font-weight: 750; line-height: 1; font-variant-numeric: tabular-nums; flex: none;
}
.nav-count[hidden] { display: none; }
.admin-nav details[open] > summary .nav-count { display: none; }
.admin-content .feedback-table .thead,
.admin-content .feedback-table .trow {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-width: 0;
}
.feedback-main, .feedback-open {
  display: grid;
  grid-template-columns: 11.2rem minmax(7rem, .7fr) minmax(8rem, 1.5fr);
  gap: .5rem;
  align-items: center;
  min-width: 0;
}
.feedback-open > .mono { white-space: nowrap; }
button.feedback-open {
  width: 100%; padding: 0; border: 0; background: transparent; color: inherit;
  font: inherit; text-align: left; cursor: pointer;
}
.feedback-open span, .feedback-main span { min-width: 0; }
.feedback-name { display: flex; align-items: center; gap: .45rem; }
.feedback-who, .feedback-preview { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feedback-table .trow.is-unread .feedback-who { font-weight: 750; }
.feedback-new {
  flex: none; font-style: normal; font-size: .68rem; font-weight: 750; letter-spacing: .03em;
  text-transform: uppercase; color: var(--accent-text); background: var(--accent);
  border-radius: 999px; padding: .1rem .42rem;
}
.feedback-table .feedback-actions { width: 2.2rem; }
.feedback-table.is-admin .feedback-actions { width: 4.9rem; }
.feedback-actions, .quiet-actions { display: flex; align-items: center; justify-content: flex-end; gap: .3rem; }
.feedback-actions form, .quiet-actions form { margin: 0; }
.feedback-gap { width: 2.2rem; height: 2.2rem; flex: none; }
.feedback-actions .act, .quiet-actions .act {
  background: transparent; color: var(--muted); border: 1px solid transparent;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.feedback-actions .act:hover, .quiet-actions .act:hover,
.feedback-actions .act:focus-visible, .quiet-actions .act:focus-visible {
  filter: none; background: var(--accent); color: var(--accent-text); border-color: transparent;
}
.feedback-actions .act-delete:hover, .quiet-actions .act-delete:hover,
.feedback-actions .act-delete:focus-visible, .quiet-actions .act-delete:focus-visible { background: var(--danger); color: #fff; }
.quiet-actions .act-restore:hover,
.quiet-actions .act-restore:focus-visible { background: #8a5a12; color: #fff; }
html[data-theme="dark"] .feedback-actions .act-delete:hover,
html[data-theme="dark"] .quiet-actions .act-delete:hover,
html[data-theme="dark"] .feedback-actions .act-delete:focus-visible,
html[data-theme="dark"] .quiet-actions .act-delete:focus-visible { color: #2a1212; }
.feedback-empty { margin: 0; padding: .9rem .75rem; color: var(--muted); }
.feedback-table .trow.is-unread { box-shadow: inset 3px 0 var(--accent); }
.side-status {
  margin-top: auto; padding-top: .75rem; border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: .5rem; color: var(--muted); font-size: .88rem;
}
.side-status a { color: inherit; }
.side-status .status-state { text-decoration: none; }
.side-status .status-state:hover { color: var(--text); }
.side-status .status-open {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  min-height: 1.75rem; padding: 0 .7rem; border-radius: 8px;
  background: var(--accent); color: var(--accent-text); font-size: .78rem; font-weight: 700;
  text-decoration: none;
}
.side-status .status-open:hover { filter: brightness(1.06); }
.dot { width: .55rem; height: .55rem; border-radius: 50%; background: #1f9d55; display: inline-block; margin-right: .35rem; }
.dot.warn { background: #d0892b; }
.admin-main { min-width: 0; min-height: 100dvh; display: flex; flex-direction: column; }
.admin-top {
  position: sticky; top: 0; z-index: 12; display: flex; align-items: center; gap: .45rem;
  min-height: 3.35rem; margin: 0; padding: .4rem .7rem;
  background: color-mix(in srgb, var(--sidebar) 88%, transparent);
  border-bottom: 1px solid var(--line); backdrop-filter: blur(12px);
}
.admin-menu { width: 2.6rem; height: 2.6rem; display: inline-flex; align-items: center; justify-content: center; }
.admin-mark { display: inline-flex; align-items: center; gap: .4rem; font-weight: 750; text-decoration: none; min-width: 0; }
.admin-mark span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-brand-toggle {
  display: inline-flex; align-items: center; gap: .28rem; min-width: 0; margin-right: auto;
  padding: .15rem .4rem .15rem .12rem; border: 0; border-radius: 10px; background: transparent;
  color: inherit; font: inherit; font-weight: 750; cursor: pointer;
}
.admin-brand-toggle img { width: 1.65rem; height: 1.65rem; flex: none; object-fit: contain; }
.admin-brand-toggle .brand-word { white-space: nowrap; }
.admin-brand-toggle i {
  width: .7rem; font-size: .68rem; line-height: 1; text-align: center; flex: none;
  color: var(--muted); transition: transform .18s ease;
}
.admin-app.is-nav .admin-brand-toggle i { transform: rotate(180deg); }
.admin-brand-toggle:hover { background: var(--soft); }
.admin-menu-x {
  display: none; align-items: center; justify-content: center; border: 0; border-radius: 10px;
  background: transparent; color: inherit; cursor: pointer;
}
.admin-top .ghost { display: inline-flex; align-items: center; gap: .4rem; min-height: 2.4rem; }
.admin-top [data-theme-toggle] {
  width: 2.2rem; height: 2.2rem; display: inline-flex; align-items: center; justify-content: center; padding: 0;
}
.admin-top [data-theme-toggle],
.admin-top .act-exit { transition: background .15s ease, color .15s ease, border-color .15s ease; }
.admin-top [data-theme-toggle]:hover,
.admin-top [data-theme-toggle]:focus-visible,
.admin-top .act-exit:hover,
.admin-top .act-exit:focus-visible {
  background: var(--soft);
  border-color: color-mix(in srgb, var(--accent) 42%, var(--line));
  color: var(--text);
}
.admin-top .act-exit:hover,
.admin-top .act-exit:focus-visible {
  color: var(--danger);
  background: color-mix(in srgb, var(--danger) 22%, var(--input));
  border-color: color-mix(in srgb, var(--danger) 48%, var(--line));
}
.admin-content { padding: .95rem .8rem 2.4rem; min-width: 0; }
.admin-content h1 { font-size: clamp(1.45rem, 2.4vw, 1.95rem); margin: 0 0 .8rem; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; margin-bottom: .35rem; }
.page-head h1 { margin: 0; }
.detail-title { margin-bottom: .15rem; }
.detail-facts { margin: .2rem 0 1rem; }
.detail-title .ghost { margin-left: auto; flex: none; }
.detail-title .ghost:hover,
.detail-title .ghost:focus-visible,
.admin-content a.ghost:hover,
.admin-content a.ghost:focus-visible {
  background: var(--soft);
  color: var(--text);
  border-color: color-mix(in srgb, var(--accent) 48%, var(--line));
}
.history-head { margin-bottom: .85rem; }
.page-head .primary, .history-head .primary { margin-left: auto; width: auto; flex: none; }
.backup-actions { display: flex; align-items: center; justify-content: flex-end; gap: .5rem; flex-wrap: wrap; margin-left: auto; }
.backup-actions .primary { margin-left: 0; }
.backup-upload { display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; }
.backup-upload input[type="file"] { max-width: 16rem; font: inherit; }
.settings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); gap: .85rem; align-items: start; }
.settings-panel { margin: 0 0 1rem; }
.settings-panel h2 { margin: .1rem 0 .35rem; font-size: 1.15rem; }
.settings-panel .lead { margin: 0 0 .75rem; }
.rescue-card {
  display: grid; gap: .55rem; margin-top: 1rem; padding: .9rem 1rem;
  border: 1px solid var(--line); border-radius: 16px; background: var(--sidebar);
  box-shadow: 0 10px 28px rgba(16, 22, 20, .05);
}
.rescue-card p { margin: 0; }
.rescue-code { position: relative; }
.rescue-code .cli-block { margin: 0; padding: .7rem 3rem .7rem .85rem; }
.rescue-code .act { position: absolute; top: .35rem; right: .35rem; }
.rescue-code .act:hover, .rescue-code .act:focus-visible { background: var(--accent); color: var(--accent-text); filter: none; }
.settings-panel .form-actions { display: flex; justify-content: flex-start; gap: .45rem; margin-top: .9rem; }
.settings-panel .form-actions .primary, .settings-panel > .primary, .settings-panel > a.primary { width: auto; }
.settings-note { margin: 0 0 .8rem; }
.field input[type="file"] { height: auto; min-height: 2.75rem; padding: .45rem .7rem; }
.settings-panel .field-row > .field:has(input[type="file"]) { flex: 1 0 100%; max-width: none; }
.settings-panel .field-row > .field:has(input[type="file"]) input,
.settings-panel .field-row > .field:has(+ .field:has(input[type="file"])) input { border-radius: 10px; }
.recovery-codes { display: grid; gap: .25rem; margin: 0 0 .9rem; padding: 0; list-style: none; }
.audit-main, button.audit-open {
  display: grid; grid-template-columns: 10.5rem minmax(6rem, .7fr) minmax(8rem, 1.4fr) 9rem;
  gap: .5rem; align-items: center; min-width: 0; width: 100%;
}
button.audit-open {
  padding: 0; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.audit-detail { margin: .75rem 0 0; }
.history-filters { margin: 0 0 1rem; }
.history-filters .field-row > .field-date { flex: 0 1 11.5rem; max-width: 11.5rem; }
.history-filters .field-row > .field-channel { flex: 0 1 10rem; max-width: 12rem; }
.history-filters .field-row > .field-query { flex: 1 1 16rem; max-width: none; }
.history-filters .pick { position: relative; }
.history-filters .pick-list {
  position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% - .05rem);
  max-height: 16rem; overflow: auto; margin: 0; padding: .3rem;
  background: var(--sidebar); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 14px 32px rgba(28, 36, 33, .16);
}
.history-filters .pick-list button {
  display: flex; align-items: baseline; gap: .45rem; width: 100%; text-align: left;
  border: 0; background: transparent; border-radius: 8px; padding: .42rem .55rem;
  cursor: pointer; color: inherit; font: inherit;
}
.history-filters .pick-list button small { color: var(--muted); font-size: .78rem; }
.history-filters .pick-list button:hover,
.history-filters .pick-list button[aria-selected="true"] { background: var(--soft); }
.history-filters input[type="date"] { color-scheme: light; }
html[data-theme="dark"] .history-filters input[type="date"] { color-scheme: dark; }
.history-filters .field-row > .primary { align-self: flex-end; }
.admin-content .card, .admin-content .panel, .admin-content .catalog-card {
  background: var(--sidebar); border-radius: 16px;
  box-shadow: 0 10px 28px rgba(16, 22, 20, .05);
}
.admin-content form.fields {
  background: var(--sidebar); border: 1px solid var(--line); border-radius: 16px;
  padding: .85rem .95rem 1rem; margin-bottom: 1rem;
  box-shadow: 0 10px 28px rgba(16, 22, 20, .05);
}
.admin-content .field label {
  display: flex; align-items: center; gap: .4rem; margin: 0 0 .32rem;
  font-size: .8rem; font-weight: 700; color: var(--text); letter-spacing: .01em;
}
.admin-content .field label::before {
  content: ""; width: 2px; height: .72rem; border-radius: 2px; background: var(--accent); flex: none;
}
.admin-content .page-head select,
.admin-content .period select {
  height: 2.75rem; min-height: 2.75rem; border: 1px solid var(--field-line);
  border-radius: 10px; background: var(--field); padding: 0 .75rem;
}
.admin-content .thead {
  color: var(--muted); font-size: .72rem; font-weight: 750; letter-spacing: .05em; text-transform: uppercase;
}
.admin-content a.trow:hover,
.admin-content .trow:hover { background: color-mix(in srgb, var(--soft) 70%, var(--input)); }
.admin-content .live { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: .75rem; }
.admin-content .live .metric {
  margin: 0; background: color-mix(in srgb, var(--bg) 35%, var(--sidebar));
  border: 1px solid var(--line); border-radius: 14px; padding: .85rem .95rem;
}
.admin-content .live .metric.live-online {
  background: color-mix(in srgb, #1f8a4c 18%, var(--sidebar));
  border-color: color-mix(in srgb, #1f8a4c 36%, var(--line));
}
.admin-content .live .metric.live-online strong { color: #146c43; }
.admin-content .live .metric.live-visits {
  background: color-mix(in srgb, #3b82f6 16%, var(--sidebar));
  border-color: color-mix(in srgb, #3b82f6 34%, var(--line));
}
.admin-content .live .metric.live-visits strong { color: #1d4e89; }
.admin-content .live .metric.live-unique {
  background: color-mix(in srgb, var(--accent) 16%, var(--sidebar));
  border-color: color-mix(in srgb, var(--accent) 34%, var(--line));
}
html[data-theme="dark"] .admin-content .live .metric.live-online strong { color: #b7ebc9; }
html[data-theme="dark"] .admin-content .live .metric.live-visits strong { color: #c5ddf5; }
@media (prefers-color-scheme: dark) {
  html[data-theme="system"] .admin-content .live .metric.live-online strong { color: #b7ebc9; }
  html[data-theme="system"] .admin-content .live .metric.live-visits strong { color: #c5ddf5; }
}
button.ghost { display: inline-flex; align-items: center; gap: .4rem; }
.admin-content .metric strong { font-variant-numeric: tabular-nums; letter-spacing: -.03em; font-size: clamp(1.55rem, 3vw, 2rem); }
.admin-content .chart { color: var(--accent); height: 8.5rem; }
.admin-content .bar { grid-template-columns: minmax(5.5rem, 8.5rem) minmax(0, 1fr); }
.admin-content .bar span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-content .table, .admin-content .scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.admin-content .thead, .admin-content .trow { grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr)); }
.admin-content .table .trow:hover { background: color-mix(in srgb, var(--soft) 70%, var(--input)); }
.admin-content .table a.trow { color: inherit; }
.admin-content .host-table .thead,
.admin-content .host-table .trow { grid-template-columns: minmax(11rem, 1.6fr) minmax(5.5rem, .5fr) minmax(5.5rem, .5fr) minmax(6rem, .9fr); }
.admin-content .host-table .bar.share { grid-template-columns: 1fr; align-self: center; }
.admin-content .host-table .trow.is-lead {
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  box-shadow: inset 3px 0 var(--accent);
}
.admin-content .trow form { display: flex; align-items: center; min-width: 0; }
.page-head select { height: 2.5rem; border: 1px solid var(--field-line); border-radius: 10px; background: var(--field); padding: 0 .7rem; }
.admin-content .split { margin-top: 1rem; }
.catalog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr)); gap: .75rem; }
.catalog-card {
  position: relative; min-height: 7.5rem; background: var(--sidebar);
  border: 1px solid var(--line); border-radius: 16px;
}
.catalog-card > a {
  display: grid; gap: .35rem; align-content: start; min-height: 7.5rem; padding: 1rem;
  text-decoration: none;
}
.catalog-card:has(.card-actions) > a { padding-right: 3.2rem; }
.catalog-card > a i { color: var(--accent); font-size: 1.15rem; }
.catalog-card strong { font-size: 1.05rem; }
.catalog-card:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.tool-groups { display: grid; gap: .9rem; }
.tool-group-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .35rem; }
.tool-group-actions { display: flex; align-items: center; justify-content: flex-end; gap: .75rem 1rem; flex-wrap: wrap; }
.tool-group-head h2 { display: flex; align-items: center; gap: .55rem; margin: 0; font-size: 1.08rem; }
.tool-group-head h2 i { width: 1.15rem; text-align: center; color: var(--accent); font-size: .95rem; }
.tool-group .table { border: 0; border-radius: 0; background: transparent; }
.tool-group .thead, .tool-group .trow { padding-inline: 0; }
.tool-group .trow:last-child { border-bottom: 0; }
.tool-group .switch { margin: 0; }
@media (min-width: 721px) {
  .admin-content .tool-table .thead,
  .admin-content .tool-table .trow { grid-template-columns: minmax(10rem, 1.2fr) minmax(12rem, 1.7fr) minmax(6rem, 1fr); }
  .admin-content .tool-table.is-admin .thead,
  .admin-content .tool-table.is-admin .trow { grid-template-columns: minmax(9.5rem, 1.15fr) minmax(11rem, 1.55fr) minmax(6rem, .9fr) minmax(8.5rem, .85fr); }
}
.card-actions { position: absolute; top: .55rem; right: .55rem; margin: 0; }
.catalog-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; color: var(--muted); }
.catalog-search { margin-top: 0; }
.catalog-search > .field { flex: 1 1 100%; max-width: none; }
.catalog-search .search { height: 2.75rem; }
.catalog-search .search input { border: 0; background: transparent; height: auto; min-height: 0; padding: 0; box-shadow: none; }
.form-actions, .pager, .row-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.form-actions { margin: .2rem 0 .8rem; }
.pager {
  justify-content: space-between; align-items: center; flex-wrap: nowrap; gap: .55rem .75rem;
  width: 100%; max-width: 100%; min-width: 0; margin: .9rem 0 .2rem;
}
.pager-nav {
  display: flex; flex-wrap: nowrap; align-items: center; justify-content: flex-end;
  gap: .4rem; margin-left: auto; max-width: 100%; min-width: 0;
}
.pager-nav .pill { white-space: nowrap; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.pager-size { display: inline-flex; align-items: center; flex: none; gap: .4rem; margin: 0; max-width: 100%; min-width: 0; }
.pager-size label { margin: 0; color: var(--muted); font-size: .85rem; font-weight: 650; white-space: nowrap; }
.pager-size select {
  width: auto; max-width: 100%; height: 2.2rem; min-height: 2.2rem; flex: none;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--input); color: var(--text); padding: 0 .45rem; cursor: pointer;
}
.pager-size button { height: 2.2rem; min-height: 2.2rem; padding: 0 .7rem; }
@media (max-width: 720px) {
  .pager { gap: .3rem; }
  .pager-size { flex: none; gap: .25rem; }
  .pager-size label { font-size: .75rem; }
  .pager-size select { height: 1.7rem; min-height: 1.7rem; padding: 0 .28rem; font-size: .82rem; }
  .pager-nav { flex: 1 1 auto; gap: .15rem; min-width: 0; }
  .pager .act.act-nav { width: 1.65rem; height: 1.65rem; font-size: .72rem; flex: none; }
  .pager-nav .pill { font-size: .75rem; padding: .06rem .32rem; }
}
.row-actions form, .inline-form { margin: 0; }
.inline-form { margin-top: .7rem; }
a.ghost { display: inline-flex; align-items: center; gap: .35rem; text-decoration: none; min-height: 2.4rem; }
.narrow h2 i, .page-head .primary i { margin-right: .15rem; }
.admin-content > .panel { margin-top: 1rem; }
.admin-content .narrow {
  margin-top: 1rem; max-width: 38rem; background: var(--sidebar);
  border: 1px solid var(--line); border-radius: 16px; padding: 1rem 1.05rem 1.15rem;
  box-shadow: 0 10px 28px rgba(16, 22, 20, .05);
}
.admin-content form.narrow .primary,
.admin-content p > a.primary { width: auto; }
.admin-content .auth-form { width: min(26rem, 100%); margin: 1.5rem auto; }
.sections { position: relative; }
.sections summary { cursor: pointer; list-style: none; }
.sections summary::-webkit-details-marker { display: none; }
.sections .menu-panel { width: min(18rem, calc(100vw - 2rem)); }
.cards { display: grid; grid-template-columns: 1fr; gap: .75rem; }
.cards + .cards { margin-top: .75rem; }
.card, .panel { border: 1px solid var(--line); border-radius: 14px; padding: .9rem 1rem; background: color-mix(in srgb, var(--bg) 55%, transparent); }
.metric { color: var(--muted); font-size: .92rem; }
.metric strong { display: block; color: var(--text); font-size: 1.7rem; line-height: 1.2; }
.bars { display: grid; gap: .45rem; }
.bar { display: grid; grid-template-columns: 5.5rem 1fr; gap: .5rem; align-items: center; }
.bar i { display: block; width: 0; height: .55rem; border-radius: 99px; background: var(--accent); justify-self: start; }
.bar i[data-w="0"] { width: 0%; }
.bar i[data-w="1"] { width: 1%; }
.bar i[data-w="2"] { width: 2%; }
.bar i[data-w="3"] { width: 3%; }
.bar i[data-w="4"] { width: 4%; }
.bar i[data-w="5"] { width: 5%; }
.bar i[data-w="6"] { width: 6%; }
.bar i[data-w="7"] { width: 7%; }
.bar i[data-w="8"] { width: 8%; }
.bar i[data-w="9"] { width: 9%; }
.bar i[data-w="10"] { width: 10%; }
.bar i[data-w="11"] { width: 11%; }
.bar i[data-w="12"] { width: 12%; }
.bar i[data-w="13"] { width: 13%; }
.bar i[data-w="14"] { width: 14%; }
.bar i[data-w="15"] { width: 15%; }
.bar i[data-w="16"] { width: 16%; }
.bar i[data-w="17"] { width: 17%; }
.bar i[data-w="18"] { width: 18%; }
.bar i[data-w="19"] { width: 19%; }
.bar i[data-w="20"] { width: 20%; }
.bar i[data-w="21"] { width: 21%; }
.bar i[data-w="22"] { width: 22%; }
.bar i[data-w="23"] { width: 23%; }
.bar i[data-w="24"] { width: 24%; }
.bar i[data-w="25"] { width: 25%; }
.bar i[data-w="26"] { width: 26%; }
.bar i[data-w="27"] { width: 27%; }
.bar i[data-w="28"] { width: 28%; }
.bar i[data-w="29"] { width: 29%; }
.bar i[data-w="30"] { width: 30%; }
.bar i[data-w="31"] { width: 31%; }
.bar i[data-w="32"] { width: 32%; }
.bar i[data-w="33"] { width: 33%; }
.bar i[data-w="34"] { width: 34%; }
.bar i[data-w="35"] { width: 35%; }
.bar i[data-w="36"] { width: 36%; }
.bar i[data-w="37"] { width: 37%; }
.bar i[data-w="38"] { width: 38%; }
.bar i[data-w="39"] { width: 39%; }
.bar i[data-w="40"] { width: 40%; }
.bar i[data-w="41"] { width: 41%; }
.bar i[data-w="42"] { width: 42%; }
.bar i[data-w="43"] { width: 43%; }
.bar i[data-w="44"] { width: 44%; }
.bar i[data-w="45"] { width: 45%; }
.bar i[data-w="46"] { width: 46%; }
.bar i[data-w="47"] { width: 47%; }
.bar i[data-w="48"] { width: 48%; }
.bar i[data-w="49"] { width: 49%; }
.bar i[data-w="50"] { width: 50%; }
.bar i[data-w="51"] { width: 51%; }
.bar i[data-w="52"] { width: 52%; }
.bar i[data-w="53"] { width: 53%; }
.bar i[data-w="54"] { width: 54%; }
.bar i[data-w="55"] { width: 55%; }
.bar i[data-w="56"] { width: 56%; }
.bar i[data-w="57"] { width: 57%; }
.bar i[data-w="58"] { width: 58%; }
.bar i[data-w="59"] { width: 59%; }
.bar i[data-w="60"] { width: 60%; }
.bar i[data-w="61"] { width: 61%; }
.bar i[data-w="62"] { width: 62%; }
.bar i[data-w="63"] { width: 63%; }
.bar i[data-w="64"] { width: 64%; }
.bar i[data-w="65"] { width: 65%; }
.bar i[data-w="66"] { width: 66%; }
.bar i[data-w="67"] { width: 67%; }
.bar i[data-w="68"] { width: 68%; }
.bar i[data-w="69"] { width: 69%; }
.bar i[data-w="70"] { width: 70%; }
.bar i[data-w="71"] { width: 71%; }
.bar i[data-w="72"] { width: 72%; }
.bar i[data-w="73"] { width: 73%; }
.bar i[data-w="74"] { width: 74%; }
.bar i[data-w="75"] { width: 75%; }
.bar i[data-w="76"] { width: 76%; }
.bar i[data-w="77"] { width: 77%; }
.bar i[data-w="78"] { width: 78%; }
.bar i[data-w="79"] { width: 79%; }
.bar i[data-w="80"] { width: 80%; }
.bar i[data-w="81"] { width: 81%; }
.bar i[data-w="82"] { width: 82%; }
.bar i[data-w="83"] { width: 83%; }
.bar i[data-w="84"] { width: 84%; }
.bar i[data-w="85"] { width: 85%; }
.bar i[data-w="86"] { width: 86%; }
.bar i[data-w="87"] { width: 87%; }
.bar i[data-w="88"] { width: 88%; }
.bar i[data-w="89"] { width: 89%; }
.bar i[data-w="90"] { width: 90%; }
.bar i[data-w="91"] { width: 91%; }
.bar i[data-w="92"] { width: 92%; }
.bar i[data-w="93"] { width: 93%; }
.bar i[data-w="94"] { width: 94%; }
.bar i[data-w="95"] { width: 95%; }
.bar i[data-w="96"] { width: 96%; }
.bar i[data-w="97"] { width: 97%; }
.bar i[data-w="98"] { width: 98%; }
.bar i[data-w="99"] { width: 99%; }
.bar i[data-w="100"] { width: 100%; }
.table.spaced { margin-top: 1rem; }
.chart { width: 100%; height: 7.5rem; }
.pill { display: inline-flex; align-items: center; gap: .35rem; border-radius: 999px; padding: .15rem .6rem; font-size: .85rem; font-weight: 650; background: var(--soft); color: var(--text); }
.pill.ok { background: #e5f6ec; color: #146c43; }
.pill.warn { background: #f8f1df; color: #8a5a12; }
.pill.bad { background: #fde8e8; color: #9f2d2d; }
html[data-theme="dark"] .pill.ok { background: #163528; color: #b7ebc9; }
html[data-theme="dark"] .pill.warn { background: #3a311c; color: #f0d58c; }
html[data-theme="dark"] .pill.bad { background: #3a2020; color: #ffb4b4; }
@media (prefers-color-scheme: dark) {
  html[data-theme="system"] .pill.ok { background: #163528; color: #b7ebc9; }
  html[data-theme="system"] .pill.warn { background: #3a311c; color: #f0d58c; }
  html[data-theme="system"] .pill.bad { background: #3a2020; color: #ffb4b4; }
}
.live { display: flex; gap: .75rem; flex-wrap: wrap; }
.period { margin-left: auto; }
@media (min-width: 800px) {
  .cards.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { display: grid; grid-template-columns: 1.3fr .7fr; gap: .75rem; }
  .auth-card { padding: 1.2rem 1.4rem 2rem; }
}
@media (max-width: 720px) {
  .auth-card { min-height: auto; }
}
@media (max-height: 520px) {
  .auth { align-items: start; padding: .6rem; }
  .auth-card { padding-bottom: 1rem; }
  .auth-form { margin: .4rem auto; }
  .admin-nav { --nav-row: 2.5rem; }
  .admin-nav a { min-height: 2.5rem; }
  .nav-label { margin-top: .35rem; }
  .admin-top { min-height: 2.7rem; }
  .admin-content { padding: .65rem .7rem 1.4rem; }
}
@media (min-width: 800px) {
  .admin-content { padding: 1.25rem 1.35rem 2.8rem; }
}
@media (min-width: 960px) and (min-height: 560px) {
  .admin-app { display: grid; grid-template-columns: 16.25rem minmax(0, 1fr); }
  .admin-side { position: sticky; align-self: start; top: 0; height: 100dvh; width: auto; transform: none; box-shadow: none; }
  .admin-backdrop, .admin-menu, .admin-brand-toggle, .admin-menu-x, .admin-app:not(.is-guest) .admin-mark { display: none; }
}
.admin-app.is-guest { display: block; }
.admin-app.is-guest .admin-side,
.admin-app.is-guest .admin-backdrop,
.admin-app.is-guest .admin-menu { display: none; }
.admin-app.is-guest .admin-content {
  display: grid; align-content: center; justify-items: center; flex: 1;
  min-height: calc(100dvh - 3.35rem); padding: 1rem;
}
.admin-app.is-guest .auth-form {
  margin: 0; background: var(--sidebar); border: 1px solid var(--line); border-radius: 20px;
  padding: 1.2rem 1.2rem 1.4rem; box-shadow: 0 18px 50px rgba(16, 22, 20, .08);
}
@media (min-width: 1280px) and (min-height: 560px) {
  .admin-app { grid-template-columns: 17.5rem minmax(0, 1fr); }
  .admin-content { padding: 1.5rem 1.75rem 3rem; }
}
@media (max-width: 420px) {
  .admin-top .ghost span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}
html, body { overflow-x: clip; }
body.nav-open { overflow: hidden; }
.shell, main, .sidebar, .dock, .report, .block, .table, pre, .ip-sheet { max-width: 100%; min-width: 0; }
.sidebar.is-open { display: flex; flex-direction: column; }
.sidebar.is-open .tool-nav { display: flex; flex-direction: column; flex: 1; min-height: 100%; min-width: 0; width: 100%; }
.page-foot { display: none; }
.metrika-pixel { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.menu-x { display: none; align-items: center; border: 0; border-radius: 10px; background: transparent; color: inherit; cursor: pointer; }
@media (max-width: 959px), (max-height: 559px) {
  .sidebar.is-open {
    display: flex; flex-direction: column; position: fixed; z-index: 40; inset: 0; width: 100%; height: 100dvh;
    overflow: hidden; border: 0; border-radius: 0;
    padding: var(--menu-pad, 4.2rem) .75rem .4rem;
  }
  .sidebar.is-opening { animation: menu-drop .24s cubic-bezier(.16, .84, .32, 1); }
  .sidebar.is-open .search { margin-top: 0; }
  .sidebar.is-open .tool-nav { flex: 1; min-height: 0; overflow: hidden; }
  .sidebar.is-open .nav-groups { flex: 1; min-height: 0; overflow: auto; }
  .sidebar.is-open .nav-head { display: none; }
  .side-foot { display: none; }
  .shell { display: flex; flex-direction: column; min-height: 100dvh; }
  main { flex: 1 0 auto; display: flex; flex-direction: column; padding-bottom: 0; }
  .page-title { flex: none; }
  .page-foot { display: grid; justify-items: center; gap: .28rem; margin-top: auto; padding: .35rem .2rem max(.45rem, env(safe-area-inset-bottom)); }
  body.nav-open .page-foot { display: none; }
  body.nav-open .dock {
    z-index: 50; pointer-events: none;
    background: transparent; border-color: transparent; box-shadow: none;
  }
  body.nav-open .dock-brand,
  body.nav-open .menu-x { pointer-events: auto; }
  body.nav-open .dock > :not(.dock-brand):not(.menu-x) { visibility: hidden; }
  body.nav-open .menu-x {
    display: inline-flex; visibility: visible; position: absolute; right: .35rem; top: 50%;
    transform: translateY(-50%); width: 2.15rem; height: 2.15rem; padding: 0; justify-content: center;
    border-radius: 50%; border: 1px solid var(--line); background: var(--input);
  }
  body.nav-open .menu-x:hover { background: var(--soft); }
}
@keyframes menu-drop {
  from { transform: translateY(calc(-100% + var(--menu-origin-y, 3rem))); }
  to { transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .sidebar.is-opening, .admin-side.is-opening { animation: none; }
}
.top {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: .45rem .8rem; position: sticky; top: 0; z-index: 6; margin: 0;
  padding: .1rem 0 .7rem;
  background: var(--bg);
}
.page-title { order: -1; }
@media (min-width: 960px) and (min-height: 560px) {
  .top {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center;
    column-gap: .8rem;
  }
  .page-title {
    display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
    grid-column: 1; grid-row: 1; min-width: 0; margin-left: 16px;
  }
  .page-title h1 { margin-left: 0; }
  .page-title .eyebrow { margin: .28rem 0 0; }
  .dock { grid-column: 2; grid-row: 1; align-self: center; margin-left: 0; }
}
.dock {
  display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center;
  gap: .2rem; width: fit-content; max-width: 100%; margin-left: auto; flex: none; padding: .28rem;
  background: var(--sidebar);
  border: 1px solid var(--line); border-radius: 14px;
}
@media (min-width: 960px) and (min-height: 560px) {
  .dock { margin-left: 0; }
}
.dock-btn, .dock summary {
  display: inline-flex; align-items: center; gap: .35rem; min-height: 2.15rem; padding: 0 .6rem;
  border: 0; border-radius: 10px; background: transparent; color: inherit; text-decoration: none; cursor: pointer;
}
.dock-btn:hover, .dock summary:hover, .dock-brand:hover { background: var(--soft); }
.dock [data-theme-toggle] {
  width: 2.15rem; height: 2.15rem; min-height: 0; padding: 0; justify-content: center;
  border-radius: 50%; border: 1px solid color-mix(in srgb, var(--muted) 22%, var(--line));
  background: color-mix(in srgb, var(--muted) 10%, var(--sidebar));
  color: var(--muted);
}
.dock [data-theme-toggle]:hover {
  background: color-mix(in srgb, var(--muted) 16%, var(--sidebar));
  color: var(--text);
}
.dock-brand {
  display: none; align-items: center; gap: .28rem; min-width: 0; min-height: 2.15rem; margin-right: auto;
  padding: .5rem .4rem 0 .22rem; border: 0; border-radius: 10px; background: transparent;
  color: inherit; font: inherit; font-weight: 750; cursor: pointer; overflow: visible;
}
.dock-brand i {
  width: .7rem; font-size: .68rem; line-height: 1; text-align: center; flex: none;
  color: var(--muted); transition: transform .18s ease;
}
body.nav-open .dock-brand i { transform: rotate(180deg); }
.dock-brand img { width: 1.65rem; height: 1.65rem; flex: none; object-fit: contain; }
.dock .lang-menu div { max-height: min(48rem, 70vh); overflow: auto; width: min(16rem, calc(100vw - 1.5rem)); }
.dock .tz-menu div { width: min(24rem, calc(100vw - 1.5rem)); }
.tz-menu button { white-space: normal; overflow-wrap: anywhere; }
.domain { display: block; margin: .15rem 0 .75rem; overflow-wrap: anywhere; }
.domain::before { content: none; }
.field input, .field select, .fields > .primary { height: 2.75rem; min-height: 2.75rem; padding-top: 0; padding-bottom: 0; }
.field textarea { height: auto; min-height: 8rem; max-height: none; padding: .7rem .8rem; }
.switch { display: flex; align-items: center; gap: .65rem; margin: .75rem 0; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-ui { width: 2.55rem; height: 1.45rem; border-radius: 999px; background: var(--line); position: relative; flex: none; }
.switch-ui::after { content: ""; position: absolute; top: .16rem; left: .16rem; width: 1.12rem; height: 1.12rem; border-radius: 50%; background: #fff; transition: transform .15s ease; }
.switch input:checked + .switch-ui { background: var(--accent); }
.switch input:checked + .switch-ui::after { transform: translateX(1.08rem); }
.switch input:indeterminate + .switch-ui { background: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.switch input:indeterminate + .switch-ui::after { transform: translateX(.54rem); }
.switch input:focus-visible + .switch-ui { outline: 2px solid var(--focus); outline-offset: 2px; }
.switch.is-locked { cursor: default; }
.switch input:disabled + .switch-ui { opacity: .45; }
.enroll-secret, .enroll-uri { overflow-wrap: anywhere; }
.report { display: grid; gap: 1rem; }
.sheet {
  display: grid; gap: .95rem;
  background: var(--sidebar); border: 1px solid var(--line); border-radius: 16px;
  padding: 1rem 1.05rem .9rem; box-shadow: 0 10px 28px rgba(16, 22, 20, .05);
}
.result .sheet { background: none; border: 0; border-radius: 0; padding: 0; box-shadow: none; }
.verdict {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .65rem .75rem;
  margin: 0; border-radius: 12px; padding: .55rem .65rem .55rem .95rem;
  font-weight: 700; line-height: 1.35; overflow-wrap: anywhere;
  background: color-mix(in srgb, #1f8a4c 14%, var(--soft));
}
.verdict-text { margin: 0; flex: 1 1 12rem; min-width: 0; }
.verdict .result-side { margin-inline-start: auto; }
.verdict .act,
.verdict .time-badge,
.verdict .pill,
html[data-theme="dark"] .verdict .pill,
html[data-theme="system"] .verdict .pill {
  background: color-mix(in srgb, var(--sidebar) 58%, white);
  color: var(--text);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--text) 18%, transparent);
}
.verdict .act,
.verdict .time-badge { color: var(--accent); }
.verdict .act:hover,
.verdict .act:focus-visible {
  background: var(--accent);
  color: var(--accent-text);
  box-shadow: none;
  filter: none;
}
.verdict .pill { min-height: 2.2rem; padding: 0 .7rem; border-radius: 10px; }
.verdict.tone-warn { background: color-mix(in srgb, #c4922a 20%, var(--soft)); }
.verdict.tone-bad { background: color-mix(in srgb, var(--danger) 16%, var(--soft)); }
.result-head:not(:has(.result-side)) { display: none; }
.fact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.6rem; }
.fact { display: grid; align-content: start; gap: .22rem; min-width: 0; }
.fact-wide { grid-column: 1 / -1; }
.fact p {
  margin: 0; display: flex; align-items: center; gap: .4rem;
  color: var(--muted); font-size: .72rem; font-weight: 750; letter-spacing: .05em; text-transform: uppercase;
}
.fact p i { color: var(--accent); width: .9rem; text-align: center; font-size: .78rem; }
.fact strong { font-size: 1rem; font-weight: 650; line-height: 1.4; overflow-wrap: anywhere; }
.fact-list { margin: .1rem 0 0; padding: 0; list-style: none; display: grid; gap: .28rem; }
.fact-list li { line-height: 1.35; }
.run-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.run-card {
  min-width: 0; display: grid; align-content: start; gap: .15rem;
  border: 1px solid var(--line); border-radius: 14px; padding: .85rem .95rem;
  background: var(--input);
}
.run-card p {
  margin: 0; display: flex; align-items: center; gap: .4rem;
  color: var(--muted); font-size: .72rem; font-weight: 750; letter-spacing: .05em; text-transform: uppercase;
}
.run-card p i { color: var(--accent); width: .9rem; text-align: center; font-size: .78rem; }
.run-card h3 { margin: 0; font-size: 1rem; font-weight: 650; line-height: 1.35; }
.run-card ul { margin: .45rem 0 0; padding: 0; list-style: none; display: grid; gap: .28rem; }
.run-card li { line-height: 1.35; }
.name-cloud { display: flex; flex-wrap: wrap; gap: .4rem; }
.name-cloud span {
  border-radius: 999px; padding: .22rem .65rem; background: var(--soft); font-size: .86rem;
}
.sheet .report-notes { padding-top: .75rem; border-top: 1px solid var(--line); }
.sheet .report-notes .fine { font-size: .82rem; }
.block h3 i { color: var(--accent); width: 1rem; text-align: center; }
.flag-row { display: flex; flex-wrap: wrap; gap: .35rem; }
.flag-row .pill { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .02em; background: color-mix(in srgb, var(--accent) 18%, var(--soft)); color: var(--text); }
.kv-table .thead, .kv-table .trow { grid-template-columns: minmax(9rem, .45fr) minmax(0, 1.55fr); }
.note-row { display: flex; flex-wrap: wrap; gap: .4rem; }
.note-row span {
  border-radius: 999px; padding: .2rem .65rem; background: color-mix(in srgb, var(--sidebar) 72%, transparent);
  color: var(--muted); font-size: .78rem; line-height: 1.35;
}
.section-card { border-left: 3px solid var(--line); }
.section-card .fact-grid { margin-top: .7rem; }
.section-card.tone-done { border-left-color: #1f8a4c; }
.section-card.tone-partial { border-left-color: #c4922a; }
.section-card.tone-error, .section-card.tone-timeout, .section-card.tone-cancelled { border-left-color: #c44545; }
.block h3 { display: flex; align-items: center; gap: .45rem; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: .6rem .75rem; margin: 0 0 .45rem; }
.section-head h3 { margin: 0; min-width: 0; }
.block .section-head .status-line { margin: 0 0 0 auto; flex: none; flex-wrap: nowrap; }
.pill-code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .03em; font-weight: 700; }
.record-table { max-width: 46rem; }
.record-table .thead, .record-table .trow { grid-template-columns: 5.25rem minmax(0, 1fr) 4.25rem; align-items: center; }
.record-table .thead > span:last-child, .record-table .trow > span:last-child { text-align: right; }
.record-table .thead {
  font-size: .72rem; font-weight: 750; letter-spacing: .05em; text-transform: uppercase; border-bottom-color: var(--line);
}
.record-table .trow { border-bottom-color: color-mix(in srgb, var(--line) 75%, transparent); }
.record-table .trow:last-child { border-bottom: 0; }
.record-table .chip { display: inline-flex; border-radius: 999px; padding: .05rem .5rem; background: var(--soft); font-weight: 700; }
.rec-owner { display: block; margin-bottom: .12rem; color: var(--muted); font-size: .78rem; font-weight: 650; }
[data-result-body] { display: grid; gap: .2rem; }
.result-brief, .report-notes { display: grid; gap: .12rem; }
.report-notes .meta { color: var(--text); font-weight: 650; line-height: 1.35; }
.report-notes .fine, .result-brief .alert { line-height: 1.35; }
.block .status-line { margin: 0 0 .3rem; }
.block { border: 1px solid var(--line); border-radius: 14px; padding: .85rem .95rem; background: var(--input); }
.block h3 { margin: 0 0 .35rem; font-size: 1rem; }
.block .pairs, .block .table { margin: 0; }
.block .fact-grid + .table, .block .fact-grid + .name-cloud { margin-top: 1rem; }
.table { overflow-x: auto; }
.table.wide .thead, .table.wide .trow { grid-template-columns: repeat(auto-fit, minmax(6.5rem, 1fr)); }
.work { height: .35rem; border-radius: 999px; margin: .35rem 0 .7rem; background: linear-gradient(90deg, transparent, var(--accent), transparent); background-size: 40% 100%; background-repeat: no-repeat; animation: work 1.1s ease-in-out infinite; }
@keyframes work { from { background-position: -40% 0; } to { background-position: 140% 0; } }
.result-actions { display: flex; flex-wrap: wrap; gap: .4rem; }
.term {
  margin: 0; background: #101614; color: #d7e7df; border-radius: 12px; padding: .9rem 1rem;
  overflow: auto; max-height: 28rem; white-space: pre-wrap;
}
.sh-ip { color: #8fd0c6; }
.sh-num { color: #f0d58c; }
.sh-ok { color: #9be7b5; }
.sh-bad { color: #ffb4b4; }
.sh-note { color: #8ea097; }
.wait { display: flex; align-items: center; gap: .5rem; }
.ip-sheet {
  display: grid; gap: .85rem;
  background: var(--sidebar); border: 1px solid var(--line); border-radius: 16px;
  padding: 1rem 1.05rem .85rem; box-shadow: 0 10px 28px rgba(16, 22, 20, .05);
}
.ip-board {
  display: grid; grid-template-columns: max-content minmax(16rem, 1fr);
  justify-content: start; max-width: 62rem;
  gap: 1rem 2.4rem; align-items: center; padding-bottom: .85rem; border-bottom: 1px solid var(--line);
}
.ip-hero { display: grid; gap: .35rem; padding: .2rem 0; }
.ip-kicker {
  display: inline-flex; align-items: center; gap: .4rem; margin: 0;
  color: var(--muted); font-size: 1rem; font-weight: 650; letter-spacing: 0;
}
.ip-kicker i { color: var(--accent); }
.ip-address { display: flex; align-items: center; gap: .55rem; min-width: 0; }
.ip-address strong {
  min-width: 0; font-size: clamp(1.9rem, 7vw, 2.85rem); font-weight: 500;
  letter-spacing: -.03em; line-height: 1.05; white-space: nowrap;
}
.ip-tags { display: flex; flex-wrap: wrap; gap: .35rem; margin: .1rem 0 0; }
.ip-tags span {
  display: inline-flex; align-items: center; padding: .16rem .55rem; border-radius: 999px;
  background: var(--soft); color: var(--accent); font-size: .75rem; font-weight: 700;
}
.ip-main { margin: 0; display: grid; }
.ip-main > div {
  display: grid; grid-template-columns: minmax(8.5rem, 12.5rem) minmax(0, 1fr);
  gap: .35rem .75rem; align-items: center; padding: .32rem 0;
}
.ip-main dt {
  margin: 0; display: flex; align-items: center; justify-content: flex-end; gap: .45rem;
  color: var(--muted); font-size: .86rem; text-align: end;
}
.ip-main dt i { width: 1rem; text-align: center; color: var(--muted); font-size: .82rem; }
.ip-main dd, .ip-main dd strong { margin: 0; min-width: 0; font-weight: 650; overflow-wrap: anywhere; }
.ip-flag { margin-inline-end: .35rem; }
.ip-cols { display: grid; grid-template-columns: 1fr; gap: .9rem; }
.ip-cols h2 {
  margin: 0 0 .15rem; font-size: .72rem; font-weight: 750; letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted);
}
.ip-cols dl { margin: 0; display: grid; }
.ip-cols dl > div {
  display: grid; grid-template-columns: 7.4rem minmax(0, 1fr); gap: .35rem .6rem; align-items: baseline;
  padding: .42rem 0; border-top: 1px solid color-mix(in srgb, var(--line) 85%, transparent);
}
.ip-cols dt { margin: 0; display: flex; align-items: center; gap: .4rem; color: var(--muted); font-size: .82rem; }
.ip-cols dt i { width: .9rem; text-align: center; color: var(--accent); font-size: .75rem; }
.ip-cols dd, .ip-cols dd strong { margin: 0; min-width: 0; font-weight: 400; overflow-wrap: anywhere; }
@media (min-width: 521px) {
  .ip-cols dl.is-wide > div { grid-template-columns: minmax(9.5rem, 13rem) minmax(0, 1fr); }
}
.ip-ua { display: grid; gap: .22rem; padding-top: .7rem; border-top: 1px solid var(--line); }
.ip-ua > span { color: var(--muted); font-size: .78rem; font-weight: 700; }
.ip-ua code { font-size: .82rem; line-height: 1.45; overflow-wrap: anywhere; }
@media (min-width: 960px) {
  .ip-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
  .ip-cols.is-more { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ip-cols > section + section { border-left: 1px solid var(--line); padding-left: 1rem; }
  .ip-cols > section:not(:last-child) { padding-right: 1rem; }
}
@media (max-width: 720px) {
  .fact-grid { grid-template-columns: 1fr; }
  .record-table .thead { display: grid; }
  .record-table .trow span::before { content: none; }
}
@media (max-width: 800px) {
  .ip-board { grid-template-columns: 1fr; gap: .85rem; }
  .ip-main dt { justify-content: flex-start; }
  .ip-address strong { white-space: normal; overflow-wrap: anywhere; }
}
@media (max-width: 520px) {
  .run-card { padding: .7rem .7rem; }
  .run-card li { font-size: .82rem; }
  .ip-sheet { padding: .85rem .8rem .75rem; }
  .ip-cols dl > div, .ip-main > div { grid-template-columns: 1fr; gap: .08rem; padding: .48rem 0; }
  .ip-main dt { justify-content: flex-start; }
  .sheet { padding: .85rem .8rem .75rem; }
}
@media (prefers-color-scheme: dark) {
  html[data-theme="system"] body[data-public="1"] { background: var(--bg); }
  html[data-theme="system"] .primary { box-shadow: none; }
  html[data-theme="system"] .pill.status-done { background: #163528; color: #b7ebc9; }
  html[data-theme="system"] .pill.status-partial,
  html[data-theme="system"] .pill.status-queued,
  html[data-theme="system"] .pill.status-running { background: #3a311c; color: #f0d58c; }
  html[data-theme="system"] .pill.status-error,
  html[data-theme="system"] .pill.status-timeout,
  html[data-theme="system"] .pill.status-cancelled { background: #3a2020; color: #ffb4b4; }
  html[data-theme="system"] .verdict .pill {
    background: color-mix(in srgb, var(--sidebar) 58%, white);
    color: var(--text);
  }
}
@media (max-width: 959px), (max-height: 559px) {
  .dock .lang-menu { position: static; display: flex; flex: none; width: 2.15rem; height: 2.15rem; }
  .dock .lang-menu[open] > div {
    left: .45rem; right: .45rem; width: auto; min-width: 0; max-width: none;
  }
  .top { display: contents; }
  .dock {
    position: sticky; top: 0; z-index: 6; width: 100%; max-width: none;
    margin: 0; padding: .28rem .28rem .85rem; justify-content: flex-start; flex-wrap: nowrap;
    background: var(--bg); border-color: transparent; border-radius: 0;
  }
  .dock-brand {
    display: inline-flex; align-items: center; align-self: center;
    height: 2.15rem; min-height: 2.15rem; padding: 0 .15rem 0 0;
  }
  .dock-brand img { width: 2.15rem; height: 2.15rem; }
  .dock .lang-menu > summary,
  .dock > a.dock-btn {
    flex: none; width: 2.15rem; min-width: 2.15rem; height: 2.15rem; min-height: 2.15rem;
    padding: 0; gap: 0; justify-content: center; border-radius: 50%; aspect-ratio: 1;
  }
  .dock .lang-menu > summary .lang-mark,
  .dock > a.dock-btn .lang-mark { width: 2.15rem; height: 2.15rem; font-size: .88rem; }
  .dock .lang-menu > summary .lang-mark i,
  .dock > a.dock-btn .lang-mark i { font-size: 1rem; }
  .dock > a.dock-btn span:not(.lang-mark) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .dock .lang-menu > summary::after { content: none; }
  .dock [data-theme-toggle] {
    flex: none; width: 2.15rem; min-width: 2.15rem; height: 2.15rem; min-height: 2.15rem;
    padding: 0; aspect-ratio: 1; border-radius: 50%;
  }
  .dock summary span[data-tz-current],
  .dock summary span[data-lang-current] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .page-title {
    order: 0; flex: none; width: 100%; margin: 0 0 .7rem; padding-inline: 16px;
    display: flex; align-items: center; justify-content: space-between; gap: .5rem .75rem;
  }
  .page-title h1 { text-align: left; min-width: 0; font-size: 1.15rem; }
  .welcome { margin-top: 0; }
  .welcome-notes, .welcome-links, .ipv6-grid { grid-template-columns: 1fr; }
  .page-title .eyebrow { margin: 0 0 0 auto; flex: none; }
}
@media (max-width: 959px) {
  .kv-table { display: grid; gap: .65rem; }
  .kv-table .thead { display: none; }
  .kv-table .trow {
    grid-template-columns: 1fr; gap: .28rem; margin: 0; padding: .85rem .95rem;
    border: 1px solid var(--line); border-radius: 14px;
    background: color-mix(in srgb, var(--sidebar) 78%, var(--soft));
  }
  .kv-table .trow span::before {
    content: attr(data-label); display: block; color: var(--muted);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-weight: 700;
  }
  .is-http .record-table { display: grid; gap: .65rem; }
  .is-http .record-table .thead { display: none; }
  .is-http .record-table .trow {
    grid-template-columns: 1fr; gap: .28rem; margin: 0; padding: .85rem .95rem;
    border: 1px solid var(--line); border-radius: 14px;
    background: color-mix(in srgb, var(--sidebar) 78%, var(--soft));
  }
}
@media (min-width: 721px) {
  .admin-content .history-table .thead,
  .admin-content .history-table .trow { grid-template-columns: 10.5rem minmax(6.2rem, .7fr) minmax(8rem, 1.3fr) 6rem 7.2rem 8.5rem 4rem; }
  .admin-content .recent-table .thead,
  .admin-content .recent-table .trow { grid-template-columns: 5rem minmax(7rem, 1.1fr) 6.5rem 9rem 4.5rem 7.5rem; }
  .admin-content .audit-table .thead,
  .admin-content .audit-table .trow { grid-template-columns: minmax(0, 1fr); }
  .admin-content .backup-table .thead,
  .admin-content .backup-table .trow { grid-template-columns: minmax(10rem, 1.6fr) 7rem 6.5rem; }
  .admin-content .visit-table .thead,
  .admin-content .visit-table .trow { grid-template-columns: 6.8rem 9rem minmax(6rem, 1fr) 9rem minmax(6rem, .8fr) minmax(6rem, 1fr); }
  .admin-content .online-table .thead,
  .admin-content .online-table .trow { grid-template-columns: 9rem minmax(6rem, 1fr) 9rem minmax(6rem, 1fr); }
}
@media (max-width: 720px) {
  .dock-btn span:not(.lang-mark), .dock summary span:not(.lang-mark) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .admin-content .tool-table .thead,
  .admin-content .tool-table .trow,
  .admin-content .host-table .thead,
  .admin-content .host-table .trow {
    grid-template-columns: repeat(auto-fit, minmax(7.2rem, 1fr));
    min-width: 36rem;
  }
  .admin-content .tool-table .trow span::before,
  .admin-content .host-table .trow span::before { content: none; }
  .admin-content .history-table .thead,
  .admin-content .recent-table .thead,
  .admin-content .audit-table .thead,
  .admin-content .backup-table .thead,
  .admin-content .visit-table .thead,
  .admin-content .online-table .thead,
  .admin-content .feedback-table .thead { display: none; }
  .admin-content .history-table,
  .admin-content .recent-table,
  .admin-content .audit-table,
  .admin-content .backup-table,
  .admin-content .visit-table,
  .admin-content .online-table,
  .admin-content .feedback-table {
    display: grid; gap: .65rem; border: 0; background: transparent; overflow: visible;
  }
  .admin-content .history-table .trow,
  .admin-content .recent-table .trow,
  .admin-content .audit-table .trow,
  .admin-content .backup-table .trow,
  .admin-content .visit-table .trow,
  .admin-content .online-table .trow,
  .admin-content .feedback-table .trow {
    grid-template-columns: 1fr; min-width: 0; gap: .45rem; margin: 0; padding: .85rem .95rem;
    border: 1px solid var(--line); border-radius: 14px; background: var(--sidebar);
  }
  .admin-content .history-table .trow > span::before,
  .admin-content .recent-table .trow > span::before,
  .admin-content .audit-table .trow > span::before,
  .admin-content .backup-table .trow > span::before,
  .admin-content .visit-table .trow > span::before,
  .admin-content .online-table .trow > span::before,
  .admin-content .feedback-table .trow > span::before,
  .admin-content .feedback-table .feedback-open > span::before {
    content: attr(data-label); display: block; margin-bottom: .12rem;
    color: var(--muted); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: .72rem; font-weight: 750; letter-spacing: .04em; text-transform: uppercase;
  }
  .admin-content .feedback-table .feedback-main,
  .admin-content .feedback-table .feedback-open { grid-template-columns: 1fr; gap: .45rem; }
  .admin-content .feedback-table .feedback-who,
  .admin-content .feedback-table .feedback-preview { white-space: normal; }
  .admin-content .feedback-table .feedback-preview {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  }
  .admin-content .feedback-table .trow:has(.act) { grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
  .admin-content .feedback-table .feedback-actions { width: auto; }
  .audit-main, .admin-content .audit-table .audit-open { grid-template-columns: 1fr; gap: .45rem; }
  .admin-content .fields > .primary { width: auto; }
  .admin-content .scroll:has(.history-table) { overflow: visible; }
  .admin-content .history-table { gap: .7rem; }
  .admin-content .history-table .trow {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "tool status"
      "query query"
      "time time"
      "ip ip"
      "channel ms";
    align-items: center;
    gap: .55rem .5rem;
    padding: .9rem .95rem .8rem;
    border-radius: 16px;
    box-shadow: inset 3px 0 0 var(--line), 0 10px 28px rgba(16, 22, 20, .05);
  }
  .admin-content .history-table .trow.is-done { box-shadow: inset 3px 0 0 #1f8a4c, 0 10px 28px rgba(16, 22, 20, .05); }
  .admin-content .history-table .trow.is-partial,
  .admin-content .history-table .trow.is-queued,
  .admin-content .history-table .trow.is-running { box-shadow: inset 3px 0 0 #c4922a, 0 10px 28px rgba(16, 22, 20, .05); }
  .admin-content .history-table .trow.is-error,
  .admin-content .history-table .trow.is-timeout,
  .admin-content .history-table .trow.is-cancelled { box-shadow: inset 3px 0 0 #c44545, 0 10px 28px rgba(16, 22, 20, .05); }
  .admin-content .history-table .trow:hover {
    border-color: color-mix(in srgb, var(--accent) 42%, var(--line));
    background: color-mix(in srgb, var(--accent) 8%, var(--sidebar));
  }
  .admin-content .history-table .trow > .job-tool {
    grid-area: tool; min-width: 0; font-size: 1.05rem; font-weight: 750; line-height: 1.25;
  }
  .admin-content .history-table .trow > .job-query {
    grid-area: query; min-width: 0; overflow-wrap: anywhere; font-weight: 650; line-height: 1.35;
  }
  .admin-content .history-table .trow > .job-query:empty { display: none; }
  .admin-content .history-table .trow > .job-status { grid-area: status; justify-self: end; align-self: start; max-width: 11.5rem; }
  .admin-content .history-table .trow > .job-time {
    grid-area: time; color: var(--muted); font-size: .84rem; font-variant-numeric: tabular-nums;
    padding-bottom: .45rem; border-bottom: 1px solid var(--line);
  }
  .admin-content .history-table .trow > .job-channel { grid-area: channel; justify-self: start; width: fit-content; }
  .admin-content .history-table .trow > .job-ip { grid-area: ip; min-width: 0; }
  .admin-content .history-table .trow > .job-ms { grid-area: ms; justify-self: end; width: fit-content; font-variant-numeric: tabular-nums; }
  .admin-content .history-table .trow > .job-tool::before,
  .admin-content .history-table .trow > .job-query::before,
  .admin-content .history-table .trow > .job-status::before,
  .admin-content .history-table .trow > .job-time::before,
  .admin-content .history-table .trow > .job-channel::before,
  .admin-content .history-table .trow > .job-ip::before,
  .admin-content .history-table .trow > .job-ms::before { content: none; }
  .admin-content .history-table .job-badge {
    display: inline-flex; align-items: center; justify-content: center; max-width: 100%;
    padding: .18rem .55rem; border-radius: 999px; background: var(--soft); color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: .74rem; font-weight: 750; line-height: 1.25; text-align: center;
  }
  .admin-content .history-table .job-badge.status-done { background: #e5f6ec; color: #146c43; }
  .admin-content .history-table .job-badge.status-partial,
  .admin-content .history-table .job-badge.status-queued,
  .admin-content .history-table .job-badge.status-running { background: #f8f1df; color: #8a5a12; }
  .admin-content .history-table .job-badge.status-error,
  .admin-content .history-table .job-badge.status-timeout,
  .admin-content .history-table .job-badge.status-cancelled { background: #fde8e8; color: #9f2d2d; }
  .admin-content .history-table .trow > .job-channel,
  .admin-content .history-table .trow > .job-ip,
  .admin-content .history-table .trow > .job-ms {
    display: flex; align-items: center; min-height: 2rem; padding: .32rem .55rem;
    border-radius: 10px; background: color-mix(in srgb, var(--soft) 72%, var(--sidebar));
    font-size: .84rem; line-height: 1.3;
  }
  .admin-content .history-table .trow > .job-ms::after {
    content: "мс"; margin-left: .28rem; color: var(--muted);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-weight: 650;
  }
  html[data-theme="dark"] .admin-content .history-table .job-badge.status-done { background: #163528; color: #b7ebc9; }
  html[data-theme="dark"] .admin-content .history-table .job-badge.status-partial,
  html[data-theme="dark"] .admin-content .history-table .job-badge.status-queued,
  html[data-theme="dark"] .admin-content .history-table .job-badge.status-running { background: #3a311c; color: #f0d58c; }
  html[data-theme="dark"] .admin-content .history-table .job-badge.status-error,
  html[data-theme="dark"] .admin-content .history-table .job-badge.status-timeout,
  html[data-theme="dark"] .admin-content .history-table .job-badge.status-cancelled { background: #3a2020; color: #ffb4b4; }
}
@media (max-width: 720px) and (prefers-color-scheme: dark) {
  html[data-theme="system"] .admin-content .history-table .job-badge.status-done { background: #163528; color: #b7ebc9; }
  html[data-theme="system"] .admin-content .history-table .job-badge.status-partial,
  html[data-theme="system"] .admin-content .history-table .job-badge.status-queued,
  html[data-theme="system"] .admin-content .history-table .job-badge.status-running { background: #3a311c; color: #f0d58c; }
  html[data-theme="system"] .admin-content .history-table .job-badge.status-error,
  html[data-theme="system"] .admin-content .history-table .job-badge.status-timeout,
  html[data-theme="system"] .admin-content .history-table .job-badge.status-cancelled { background: #3a2020; color: #ffb4b4; }
}
.admin-content .trow span { overflow-wrap: normal; word-break: normal; }
.admin-content .domain-table .thead,
.admin-content .domain-table .trow {
  grid-template-columns: 9.6rem minmax(0, 1.45fr) minmax(13.8rem, .95fr) 10rem 7.5rem 2.6rem;
  min-width: 0;
  align-items: center;
}
.domain-table .thead > span,
.domain-table .trow > span {
  min-width: 0;
  overflow-wrap: break-word;
  line-height: 1.35;
}
.domain-table .trow > span:first-child,
.domain-table .thead > span:first-child { white-space: nowrap; overflow-wrap: normal; }
.domain-table .domain-open { display: contents; color: inherit; text-decoration: none; }
.domain-table .trow:hover { background: color-mix(in srgb, var(--soft) 70%, var(--input)); }
.domain-table .domain-read { color: var(--danger); background: color-mix(in srgb, var(--danger) 22%, var(--input)); }
.domain-table .trow.is-free {
  background: color-mix(in srgb, #c44545 16%, var(--input));
  box-shadow: inset 3px 0 0 #c44545;
}
.domain-table .trow.is-free:hover { background: color-mix(in srgb, #c44545 24%, var(--input)); }
.domain-table .trow.is-free .domain-name { color: var(--danger); font-weight: 750; }
@media (max-width: 800px) {
  .admin-content .scroll:has(.domain-table) { overflow: visible; }
  .admin-content .domain-table {
    display: grid; gap: .65rem; border: 0; background: transparent; overflow: visible;
  }
  .admin-content .domain-table .thead { display: none; }
  .admin-content .domain-table .trow {
    grid-template-columns: minmax(0, 1fr); min-width: 0; align-items: start;
    margin: 0; padding: .85rem .9rem; gap: .65rem;
    border: 1px solid var(--line); border-radius: 14px; background: var(--sidebar);
  }
  .admin-content .domain-table .trow:has(.domain-read) { grid-template-columns: minmax(0, 1fr) auto; }
  .admin-content .domain-table .trow > span:empty { display: none; }
  .admin-content .domain-table .domain-open {
    display: grid; grid-template-columns: 1fr; gap: .5rem; min-width: 0;
  }
  .admin-content .domain-table .domain-open > span { white-space: normal; overflow-wrap: anywhere; }
  .admin-content .domain-table .domain-open > span::before {
    content: attr(data-label); display: block; margin-bottom: .12rem;
    color: var(--muted); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: .72rem; font-weight: 700;
  }
  .admin-content .domain-table .domain-name { font-size: 1.05rem; }
  .admin-content .domain-table .trow form { margin: 0; }
  .admin-content .domain-table .domain-read { width: 2.75rem; height: 2.75rem; }
}
@media (min-width: 721px) {
  .admin-content .fields > .primary { width: auto; justify-self: start; }
}
.catalog-table { width: 100%; }
@media (min-width: 721px) {
  .catalog-table.is-admin[data-cols="2"] .thead,
  .catalog-table.is-admin[data-cols="2"] .trow { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) 6.5rem; }
  .catalog-table.is-admin[data-cols="3"] .thead,
  .catalog-table.is-admin[data-cols="3"] .trow { grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr) minmax(0, 1.3fr) 6.5rem; }
  .catalog-table.is-admin[data-cols="4"] .thead,
  .catalog-table.is-admin[data-cols="4"] .trow { grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(0, 1fr)) 6.5rem; }
  .catalog-table.is-admin[data-cols="5"] .thead,
  .catalog-table.is-admin[data-cols="5"] .trow { grid-template-columns: minmax(8rem, 1.15fr) minmax(4.5rem, .5fr) minmax(0, 1.25fr) minmax(0, 1.15fr) minmax(6rem, .7fr) 6.5rem; }
  .catalog-table:not(.is-admin)[data-cols="2"] .thead,
  .catalog-table:not(.is-admin)[data-cols="2"] .trow { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); }
  .catalog-table:not(.is-admin)[data-cols="3"] .thead,
  .catalog-table:not(.is-admin)[data-cols="3"] .trow { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .catalog-table:not(.is-admin)[data-cols="4"] .thead,
  .catalog-table:not(.is-admin)[data-cols="4"] .trow { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .catalog-table:not(.is-admin)[data-cols="5"] .thead,
  .catalog-table:not(.is-admin)[data-cols="5"] .trow { grid-template-columns: minmax(8rem, 1.15fr) minmax(4.5rem, .5fr) minmax(0, 1.25fr) minmax(0, 1.15fr) minmax(6rem, .7fr); }
  .row-actions { flex-wrap: nowrap; }
}
@media (max-width: 720px) {
  .admin-content .catalog-table .thead { display: none; }
  .admin-content .catalog-table .trow {
    grid-template-columns: 1fr;
    min-width: 0;
    gap: .2rem;
    padding: .75rem .2rem .85rem;
  }
  .catalog-table .trow > span::before {
    content: attr(data-label);
    display: block;
    color: var(--muted);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: .75rem;
  }
  .catalog-table .row-actions { position: static; box-shadow: none; margin-top: .35rem; flex-wrap: wrap; }
  .catalog-table .row-actions::before { content: none; }
}
@media (max-width: 959px), (max-height: 559px) {
  .admin-side {
    display: none; position: fixed; z-index: 40; inset: 0; width: 100%; height: 100dvh;
    transform: none; border: 0; border-radius: 0; box-shadow: none; overflow: hidden;
    padding: var(--menu-pad, 4.2rem) .75rem .55rem; transition: none;
  }
  .admin-app.is-nav .admin-side {
    display: flex; flex-direction: column; transform: none; box-shadow: none;
  }
  .admin-app.is-nav .admin-side.is-opening { animation: menu-drop .24s cubic-bezier(.16, .84, .32, 1); }
  .admin-app.is-nav .admin-head { display: none; }
  .admin-app.is-nav .admin-nav { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; }
  .admin-app.is-nav .side-status { flex: none; margin-top: .4rem; padding-bottom: max(.35rem, env(safe-area-inset-bottom)); }
  .admin-backdrop { display: none; }
  .admin-top {
    background: var(--bg); border-color: transparent; box-shadow: none; backdrop-filter: none;
    padding: .28rem .45rem .7rem;
  }
  .admin-brand-toggle,
  .admin-mark {
    align-items: center; align-self: center; height: 2.2rem; min-height: 2.2rem; padding: 0 .15rem 0 0;
  }
  .admin-brand-toggle img,
  .admin-mark img { width: 2.2rem; height: 2.2rem; }
  .admin-app.is-nav .admin-top { z-index: 50; pointer-events: none; background: transparent; }
  .admin-app.is-nav .admin-brand-toggle,
  .admin-app.is-nav .admin-menu-x { pointer-events: auto; }
  .admin-app.is-nav .admin-top > :not(.admin-brand-toggle):not(.admin-menu-x) { visibility: hidden; }
  .admin-app.is-nav .admin-menu-x {
    display: inline-flex; visibility: visible; position: absolute; right: .45rem; top: 50%;
    transform: translateY(-50%); width: 2.15rem; height: 2.15rem; padding: 0;
    border-radius: 50%; border: 1px solid var(--line); background: var(--input);
  }
  .admin-app.is-nav .admin-menu-x:hover { background: var(--soft); }
}
.act {
  display: inline-flex; align-items: center; justify-content: center; width: 2.2rem; height: 2.2rem;
  padding: 0; border: 0; border-radius: 10px; background: var(--soft); color: var(--accent);
  text-decoration: none; cursor: pointer; flex: none;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.act:hover { background: color-mix(in srgb, var(--accent) 28%, var(--soft)); }
.act:active { background: color-mix(in srgb, var(--accent) 48%, var(--soft)); }
.act-add:hover { background: color-mix(in srgb, var(--accent) 82%, white); color: var(--accent-text); }
.act-add:active { background: color-mix(in srgb, var(--accent) 72%, black); color: var(--accent-text); }
.act-add { background: var(--accent); color: var(--accent-text); }
.act-edit, .act-download { color: #1d4e89; background: #d9e8f8; }
.act-delete { color: var(--danger); background: color-mix(in srgb, var(--danger) 18%, transparent); }
.act-restore { color: #8a5a12; background: #f8e7c8; }
.act-nav, .act-exit { color: var(--text); background: var(--input); border: 1px solid var(--line); }
html[data-theme="dark"] .act-edit,
html[data-theme="dark"] .act-download { color: #c5ddf5; background: #1d3348; }
html[data-theme="dark"] .act-restore { color: #f0d58c; background: #3a311c; }
@media (prefers-color-scheme: dark) {
  html[data-theme="system"] .act-edit,
  html[data-theme="system"] .act-download { color: #c5ddf5; background: #1d3348; }
  html[data-theme="system"] .act-restore { color: #f0d58c; background: #3a311c; }
  html[data-theme="system"] .feedback-actions .act-delete:hover,
  html[data-theme="system"] .quiet-actions .act-delete:hover,
  html[data-theme="system"] .feedback-actions .act-delete:focus-visible,
  html[data-theme="system"] .quiet-actions .act-delete:focus-visible { color: #2a1212; }
}
.tooltip {
  position: fixed; z-index: 80; inset: auto; width: max-content; max-width: 16rem; height: auto;
  margin: 0; padding: .38rem .62rem; border: 0; overflow: visible;
  border-radius: 9px; background: #14211c; color: #f4f7f6; font-size: .78rem; line-height: 1.3;
  pointer-events: none; box-shadow: 0 10px 24px rgba(16, 22, 20, .28);
}
html[data-theme="dark"] .tooltip { background: #e7ecea; color: #14211c; }
@media (prefers-color-scheme: dark) {
  html[data-theme="system"] .tooltip { background: #e7ecea; color: #14211c; }
  html[data-theme="system"] .history-filters input[type="date"] { color-scheme: dark; }
}
dialog.modal {
  width: min(32rem, calc(100vw - 1.5rem)); margin: auto; padding: 0; border: 1px solid var(--line);
  border-radius: 18px; background: var(--sidebar); color: var(--text);
  box-shadow: 0 24px 64px rgba(16, 22, 20, .28);
}
dialog.modal::backdrop { background: rgba(16, 22, 20, .5); }
dialog.modal.feedback-modal { width: min(28rem, calc(100vw - 1.5rem)); }
dialog.modal.inbox-modal { width: min(40rem, calc(100vw - 1.5rem)); }
.inbox-modal .modal-head h2 { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inbox-modal .meta, .inbox-modal .feedback-contact { margin: 0; color: var(--muted); }
.inbox-modal .feedback-contact { margin-top: .3rem; }
.inbox-modal .feedback-body {
  white-space: pre-wrap; overflow-wrap: anywhere; max-height: min(52vh, 24rem);
  margin: .75rem 0 0; overflow: auto;
}
dialog.modal.raw-modal { width: min(52rem, calc(100vw - 1.5rem)); }
dialog.modal.json-modal { width: min(52rem, calc(100vw - 1.5rem)); }
.json-modal .lined-editor { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: stretch; min-width: 0; border: 1px solid var(--field-line); border-radius: 10px; background: var(--field); overflow: hidden; }
.json-modal .lined-editor textarea,
.json-modal .line-nums { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92rem; line-height: 1.45; }
.json-modal .line-nums { margin: 0; padding: .7rem .45rem .7rem .6rem; overflow: hidden; text-align: right; white-space: pre; color: color-mix(in srgb, var(--text) 42%, var(--field)); user-select: none; border-right: 1px solid var(--field-line); background: color-mix(in srgb, var(--sidebar) 42%, var(--field)); }
.json-modal .lined-editor textarea { width: 100%; height: min(60vh, 28rem); min-height: 12rem; margin: 0; padding: .7rem .8rem; border: 0; border-radius: 0; background: transparent; box-shadow: none; resize: none; white-space: pre; overflow: auto; tab-size: 2; }
.feedback-form, form.feedback-fields { display: flex; flex-direction: column; align-items: stretch; gap: .85rem; margin: .7rem 0 0; }
form.feedback-fields .field { width: 100%; max-width: none; flex: none; }
form.feedback-fields .field label {
  display: flex; align-items: center; gap: .4rem; margin: 0 0 .32rem;
  font-size: .8rem; font-weight: 700; color: var(--text); letter-spacing: .01em;
}
form.feedback-fields .field label::before {
  content: ""; width: 2px; height: .72rem; border-radius: 2px; background: var(--accent); flex: none;
}
form.feedback-fields .primary { align-self: flex-start; width: auto; margin-top: .15rem; }
.feedback-modal .status { margin: .7rem 0 0; color: var(--text); }
dialog.modal.raw-modal .term { max-height: min(70vh, 36rem); margin: 0; }
.modal-form, .modal-body { display: grid; gap: .15rem; padding: 1.05rem 1.15rem 1.15rem; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .35rem; }
.modal-head h2 { margin: 0; font-size: 1.2rem; }
.modal-tools { display: flex; align-items: center; gap: .35rem; }
.modal-tools .act { transition: background .15s ease, color .15s ease, border-color .15s ease; }
.modal-tools .act:hover,
.modal-tools .act:focus-visible {
  background: var(--accent); color: var(--accent-text); border-color: transparent;
}
.modal-form .field { margin-top: .55rem; }
.modal-form .form-actions { margin-top: .85rem; }
.primary.danger { background: var(--danger); color: #fff; box-shadow: none; }
html[data-theme="dark"] .primary.danger { color: #2a1212; }
@media (prefers-color-scheme: dark) {
  html[data-theme="system"] .primary.danger { color: #2a1212; }
}
.eye .icon-btn { position: absolute; right: .35rem; top: 1.7rem; width: 2.2rem; height: 2.2rem; display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.result-actions, .result-actions form { display: flex; align-items: center; gap: .35rem; }
.result-actions form { margin: 0; }
.time-badge {
  display: inline-flex; align-items: center; min-height: 2.2rem; padding: 0 .7rem;
  border-radius: 10px; background: var(--soft); color: var(--accent);
  font-size: .82rem; font-weight: 750; font-variant-numeric: tabular-nums; white-space: nowrap;
}
.share-line { display: flex; align-items: center; gap: .4rem; margin-top: .75rem; }
.share-line input {
  flex: 1; min-width: 0; height: 2.75rem; border: 1px solid var(--field-line); border-radius: 10px;
  background: var(--field); padding: 0 .75rem;
}
html[dir="rtl"] .sidebar { border-right: 0; border-left: 1px solid var(--line); }
html[dir="rtl"] .lang-menu div,
html[dir="rtl"] .theme-menu div,
html[dir="rtl"] .menu-panel { right: auto; left: 0; }
html[dir="rtl"] .lang-menu button,
html[dir="rtl"] .theme-menu button { text-align: right; }
html[dir="rtl"] .eye input { padding-right: .7rem; padding-left: 2.6rem; }
html[dir="rtl"] .eye button { right: auto; left: .4rem; }
html[dir="rtl"] .eye .icon-btn { right: auto; left: .35rem; }
html[dir="rtl"] .welcome { padding-left: 0; padding-right: 16px; }
html[dir="rtl"] .welcome-origin { border-left: 0; border-right: 3px solid #e08a2e; }
html[dir="rtl"] .section-card { border-left: 0; border-right: 3px solid var(--line); }
html[dir="rtl"] .section-card.tone-done { border-right-color: #1f8a4c; }
html[dir="rtl"] .section-card.tone-partial { border-right-color: #c4922a; }
html[dir="rtl"] .section-card.tone-error,
html[dir="rtl"] .section-card.tone-timeout,
html[dir="rtl"] .section-card.tone-cancelled { border-right-color: #c44545; }
html[dir="rtl"] .result-side,
html[dir="rtl"] .nav-close,
html[dir="rtl"] .period { margin-left: 0; margin-right: auto; }
html[dir="rtl"] .skip { left: auto; right: -999px; }
html[dir="rtl"] .skip:focus { left: auto; right: 1rem; }
@media (min-width: 960px) {
  html[dir="rtl"] .page-title { margin-left: 0; margin-right: 16px; }
}
@media (max-width: 959px) {
  html[dir="rtl"] .page-title h1 { text-align: right; }
  html[dir="rtl"] .page-title .eyebrow { margin-left: 0; margin-right: auto; }
}
.dash { display: grid; gap: 1rem; }
.dash > .page-head { margin: 0; }
.dash > * { position: relative; }
.dash > *:hover,
.dash > *:focus-within { z-index: 5; }
.dash .panel,
.dash .card,
.dash .ts,
.dash .donut,
.dash .ts-box,
.dash .donut-box { overflow: visible; }
.dash .pair { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.dash .pair > * { position: relative; min-width: 0; }
.dash .pair > *:hover,
.dash .pair > *:focus-within { z-index: 2; }
.dash .card { height: 100%; margin: 0; }
.dash-stats { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.dash .live { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.dash-probes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7rem; }
.dash-probes.is-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dash-probe {
  display: flex; flex-direction: column; gap: .65rem; min-width: 0;
  padding: .85rem .9rem; border: 1px solid var(--line); border-radius: 16px;
  background: var(--sidebar); color: inherit; text-decoration: none;
  box-shadow: 0 10px 28px rgba(16, 22, 20, .05);
}
a.dash-probe:hover { border-color: color-mix(in srgb, var(--accent) 48%, var(--line)); }
.dash-probe.is-on { border-color: color-mix(in srgb, #1f8a4c 42%, var(--line)); }
.dash-probe-head { display: flex; align-items: flex-start; gap: .6rem; }
.dash-probe-head .tz-flag { font-size: 1.45rem; line-height: 1; }
.dash-probe-head div { min-width: 0; }
.dash-probe-head strong { display: block; font-size: 1rem; }
.dash-probe-head div span { display: block; margin-top: .1rem; color: var(--muted); font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-probe-head .pill { margin-left: auto; flex: none; }
.dash-load { display: grid; gap: .38rem; margin: 0; }
.dash-load .bar { grid-template-columns: 2.8rem 1fr; }
.dash-load .bar > span { color: var(--muted); font-size: .72rem; font-weight: 750; letter-spacing: .04em; }
.dash-load-line { display: grid; grid-template-columns: 2.5rem 1fr; gap: .4rem; align-items: center; min-width: 0; }
.dash-load-line b { font-weight: 720; font-size: .82rem; font-variant-numeric: tabular-nums; }
.load-track { display: block; height: .42rem; border-radius: 99px; background: var(--line); overflow: hidden; }
.load-track i { height: 100%; border-radius: 99px; }
.dash-load .is-warm i { background: #c4922a; }
.dash-load .is-hot i { background: #c44545; }
.dash-net {
  display: flex; align-items: center; flex-wrap: wrap; gap: .35rem .45rem; margin: 0;
  padding: .45rem .65rem; border-radius: 10px; font-weight: 720;
  background: color-mix(in srgb, #3b82f6 14%, var(--sidebar));
  border: 1px solid color-mix(in srgb, #3b82f6 28%, var(--line));
}
.dash-net span { margin-right: auto; color: var(--muted); font-size: .72rem; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
.dash-net i { color: var(--muted); font-size: .72rem; }
.dash .panel > h2,
.dash .dash-panel-head h2 { margin: 0 0 .7rem; }
.stat-tile {
  background: var(--sidebar); border: 1px solid var(--line); border-radius: 16px;
  padding: .8rem .95rem .7rem; box-shadow: inset 3px 0 var(--line);
}
.stat-tile p { margin: 0; color: var(--muted); font-size: .72rem; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
.stat-tile strong { display: block; margin: .15rem 0 .1rem; font-size: 1.65rem; font-variant-numeric: tabular-nums; letter-spacing: -.03em; line-height: 1.1; }
.stat-tile strong small { font-size: .8rem; font-weight: 650; color: var(--muted); }
.stat-tile > span, .stat-tile p + strong + span { color: var(--muted); font-size: .78rem; }
.stat-tile.tone-ok {
  background: color-mix(in srgb, #1f8a4c 16%, var(--sidebar));
  border-color: color-mix(in srgb, #1f8a4c 34%, var(--line));
  box-shadow: inset 3px 0 #1f8a4c;
}
.stat-tile.tone-warn { box-shadow: inset 3px 0 #c4922a; }
.stat-tile.tone-bad {
  background: color-mix(in srgb, #c44545 13%, var(--sidebar));
  border-color: color-mix(in srgb, #c44545 32%, var(--line));
  box-shadow: inset 3px 0 #c44545;
}
.stat-tile.tone-info { box-shadow: inset 3px 0 var(--accent); }
.stat-tile.tone-ok strong { color: #146c43; }
.stat-tile.tone-warn strong { color: #8a5a12; }
.stat-tile.tone-bad strong { color: #9f2d2d; }
html[data-theme="dark"] .stat-tile.tone-ok strong { color: #b7ebc9; }
html[data-theme="dark"] .stat-tile.tone-warn strong { color: #f0d58c; }
html[data-theme="dark"] .stat-tile.tone-bad strong { color: #ffb4b4; }
@media (prefers-color-scheme: dark) {
  html[data-theme="system"] .stat-tile.tone-ok strong { color: #b7ebc9; }
  html[data-theme="system"] .stat-tile.tone-warn strong { color: #f0d58c; }
  html[data-theme="system"] .stat-tile.tone-bad strong { color: #ffb4b4; }
}
.dash-panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; flex-wrap: wrap; }
.dash-panel-head h2, .dash-panel > h2 { margin: 0 0 .55rem; }
.legend { display: flex; flex-wrap: wrap; gap: .35rem .9rem; margin: 0; color: var(--muted); font-size: .8rem; }
.swatch { display: inline-block; width: .55rem; height: .55rem; margin-right: .35rem; border-radius: 99px; vertical-align: .05em; }
.swatch.tone-ok { background: #1f8a4c; }
.swatch.tone-warn { background: #c4922a; }
.swatch.tone-bad { background: #c44545; }
.swatch.tone-info { background: var(--accent); }
.swatch.tone-visit { background: #6aa6ff; }
.ts { display: block; width: 100%; height: 10.5rem; }
.ts-grid { stroke: var(--line); stroke-width: 1; }
.ts-line { fill: none; stroke-width: 2.25; stroke-linejoin: round; stroke-linecap: round; }
.ts-area { stroke: none; }
.ts-line.tone-info { stroke: var(--accent); }
.ts-area.tone-info { fill: color-mix(in srgb, var(--accent) 24%, transparent); }
.ts-line.tone-bad { stroke: #c44545; }
.ts-line.tone-warn { stroke: #c4922a; }
.ts-area.tone-warn { fill: color-mix(in srgb, #c4922a 20%, transparent); }
.ts-line.tone-visit { stroke: #6aa6ff; }
.ts-area.tone-visit { fill: color-mix(in srgb, #6aa6ff 22%, transparent); }
.ts-axis { position: relative; height: 1.15rem; margin-top: .35rem; color: var(--muted); font-size: .72rem; font-variant-numeric: tabular-nums; }
.ts-axis span { position: absolute; top: 0; white-space: nowrap; transform: translateX(-50%); }
.ts-axis span.is-start { transform: none; }
.ts-axis span.is-end { transform: translateX(-100%); }
.donut-row { display: flex; align-items: center; gap: 1rem; }
.donut { width: 7.6rem; height: 7.6rem; flex: none; }
.donut-track, .donut-seg { fill: none; stroke-width: 12; }
.donut-track { stroke: var(--line); }
.donut-seg.tone-ok { stroke: #1f8a4c; }
.donut-seg.tone-warn { stroke: #c4922a; }
.donut-seg.tone-bad { stroke: #c44545; }
.donut-seg.tone-info { stroke: var(--accent); }
.donut-num, .donut-cap { fill: currentColor; text-anchor: middle; }
.donut-num { font-size: 16px; font-weight: 750; }
.donut-cap { font-size: 8px; fill: var(--muted); }
.donut-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; flex: 1; min-width: 0; }
.donut-legend li { display: flex; justify-content: space-between; gap: .75rem; align-items: center; }
.cell-ok, .cell-warn, .cell-bad { border-radius: 8px; padding: .08rem .4rem; justify-self: start; }
.cell-ok { background: #e5f6ec; color: #146c43; }
.cell-warn { background: #f8f1df; color: #8a5a12; }
.cell-bad { background: #fde8e8; color: #9f2d2d; }
.cell-quiet { color: var(--muted); }
html[data-theme="dark"] .cell-ok { background: #163528; color: #b7ebc9; }
html[data-theme="dark"] .cell-warn { background: #3a311c; color: #f0d58c; }
html[data-theme="dark"] .cell-bad { background: #3a2020; color: #ffb4b4; }
@media (prefers-color-scheme: dark) {
  html[data-theme="system"] .cell-ok { background: #163528; color: #b7ebc9; }
  html[data-theme="system"] .cell-warn { background: #3a311c; color: #f0d58c; }
  html[data-theme="system"] .cell-bad { background: #3a2020; color: #ffb4b4; }
}
.admin-content .recent-table .trow.is-bad { box-shadow: inset 3px 0 #c44545; }
.admin-content .recent-table .trow.is-warn { box-shadow: inset 3px 0 #c4922a; }
.admin-content .host-table .trow.is-quiet { color: var(--muted); }
a.bar { color: inherit; text-decoration: none; border-radius: 10px; }
a.bar:hover { background: color-mix(in srgb, var(--accent) 8%, transparent); }
.admin-content .mcp-bars .bar { grid-template-columns: minmax(11rem, 14rem) minmax(0, 1fr); }
.admin-content .who-bars .bar { grid-template-columns: minmax(12rem, 16rem) minmax(0, 1fr); }
.dash .result-head { align-items: center; }
.dash .result-head > h2 { margin: 0; }
.dash .result-head .quiet-actions { margin-left: auto; gap: .55rem; }
.panel h2 a { color: inherit; text-decoration: none; }
.panel h2 a:hover { color: var(--accent); }
.donut-legend a { display: flex; justify-content: space-between; align-items: center; gap: .75rem; width: 100%; color: inherit; text-decoration: none; }
.donut-legend a:hover { color: var(--accent); }
a.stat-tile { color: inherit; text-decoration: none; }
a.stat-tile:hover, a.stat-tile.is-on { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); background: color-mix(in srgb, var(--accent) 8%, var(--sidebar)); }
.mcp-people, .mcp-feed { display: grid; gap: .7rem; }
.mcp-person, .mcp-event {
  border: 1px solid var(--line); border-radius: 16px; background: var(--sidebar);
  box-shadow: 0 10px 28px rgba(16, 22, 20, .05);
}
.mcp-person { display: grid; gap: .55rem; padding: .95rem 1rem; }
.mcp-person header { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .75rem; }
.mcp-ip { font-size: 1.05rem; }
.mcp-person time, .mcp-event time { margin-left: auto; color: var(--muted); font-variant-numeric: tabular-nums; font-size: .84rem; }
.mcp-client, .mcp-counts span, .mcp-tools a {
  display: inline-flex; align-items: center; gap: .3rem; min-height: 1.8rem; padding: .15rem .6rem;
  border-radius: 999px; background: color-mix(in srgb, var(--soft) 72%, var(--sidebar)); font-size: .84rem;
}
.mcp-counts, .mcp-tools { display: flex; flex-wrap: wrap; gap: .4rem; }
.mcp-tools a { color: inherit; text-decoration: none; font-weight: 650; }
.mcp-tools a:hover { background: var(--accent); color: var(--accent-text); }
.mcp-event {
  display: grid; grid-template-columns: 10.5rem max-content minmax(10rem, 1.1fr) minmax(8rem, 1.4fr);
  gap: .35rem .8rem; align-items: center; padding: .75rem .95rem; color: inherit; text-decoration: none;
}
.mcp-kind { font-weight: 750; white-space: nowrap; }
.mcp-event small { color: var(--muted); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.mcp-event.is-initialize { box-shadow: inset 3px 0 #1f8a4c, 0 10px 28px rgba(16, 22, 20, .05); }
.mcp-event.is-list { box-shadow: inset 3px 0 var(--accent), 0 10px 28px rgba(16, 22, 20, .05); }
.mcp-event.is-ping { box-shadow: inset 3px 0 #c4922a, 0 10px 28px rgba(16, 22, 20, .05); }
.mcp-event.is-notice { box-shadow: inset 3px 0 #6aa6ff, 0 10px 28px rgba(16, 22, 20, .05); }
.mcp-event.is-calls { box-shadow: inset 3px 0 var(--accent), 0 10px 28px rgba(16, 22, 20, .05); }
.mcp-event:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
@media (max-width: 720px) {
  .mcp-person time { margin-left: 0; }
  .mcp-event { grid-template-columns: 1fr; gap: .2rem; }
  .mcp-event time { margin-left: 0; }
}
.ts-box, .donut-box { position: relative; }
.ts-tips {
  position: absolute; z-index: 4; left: 0; right: 0; top: 0; height: 0;
  pointer-events: none;
}
.ts-tips .tip { position: absolute; top: 0; width: 0; opacity: 0; }
.ts-tips .tip[data-x="0"], .ts-axis span[data-x="0"] { left: 0%; }
.ts-tips .tip[data-x="1"], .ts-axis span[data-x="1"] { left: 1%; }
.ts-tips .tip[data-x="2"], .ts-axis span[data-x="2"] { left: 2%; }
.ts-tips .tip[data-x="3"], .ts-axis span[data-x="3"] { left: 3%; }
.ts-tips .tip[data-x="4"], .ts-axis span[data-x="4"] { left: 4%; }
.ts-tips .tip[data-x="5"], .ts-axis span[data-x="5"] { left: 5%; }
.ts-tips .tip[data-x="6"], .ts-axis span[data-x="6"] { left: 6%; }
.ts-tips .tip[data-x="7"], .ts-axis span[data-x="7"] { left: 7%; }
.ts-tips .tip[data-x="8"], .ts-axis span[data-x="8"] { left: 8%; }
.ts-tips .tip[data-x="9"], .ts-axis span[data-x="9"] { left: 9%; }
.ts-tips .tip[data-x="10"], .ts-axis span[data-x="10"] { left: 10%; }
.ts-tips .tip[data-x="11"], .ts-axis span[data-x="11"] { left: 11%; }
.ts-tips .tip[data-x="12"], .ts-axis span[data-x="12"] { left: 12%; }
.ts-tips .tip[data-x="13"], .ts-axis span[data-x="13"] { left: 13%; }
.ts-tips .tip[data-x="14"], .ts-axis span[data-x="14"] { left: 14%; }
.ts-tips .tip[data-x="15"], .ts-axis span[data-x="15"] { left: 15%; }
.ts-tips .tip[data-x="16"], .ts-axis span[data-x="16"] { left: 16%; }
.ts-tips .tip[data-x="17"], .ts-axis span[data-x="17"] { left: 17%; }
.ts-tips .tip[data-x="18"], .ts-axis span[data-x="18"] { left: 18%; }
.ts-tips .tip[data-x="19"], .ts-axis span[data-x="19"] { left: 19%; }
.ts-tips .tip[data-x="20"], .ts-axis span[data-x="20"] { left: 20%; }
.ts-tips .tip[data-x="21"], .ts-axis span[data-x="21"] { left: 21%; }
.ts-tips .tip[data-x="22"], .ts-axis span[data-x="22"] { left: 22%; }
.ts-tips .tip[data-x="23"], .ts-axis span[data-x="23"] { left: 23%; }
.ts-tips .tip[data-x="24"], .ts-axis span[data-x="24"] { left: 24%; }
.ts-tips .tip[data-x="25"], .ts-axis span[data-x="25"] { left: 25%; }
.ts-tips .tip[data-x="26"], .ts-axis span[data-x="26"] { left: 26%; }
.ts-tips .tip[data-x="27"], .ts-axis span[data-x="27"] { left: 27%; }
.ts-tips .tip[data-x="28"], .ts-axis span[data-x="28"] { left: 28%; }
.ts-tips .tip[data-x="29"], .ts-axis span[data-x="29"] { left: 29%; }
.ts-tips .tip[data-x="30"], .ts-axis span[data-x="30"] { left: 30%; }
.ts-tips .tip[data-x="31"], .ts-axis span[data-x="31"] { left: 31%; }
.ts-tips .tip[data-x="32"], .ts-axis span[data-x="32"] { left: 32%; }
.ts-tips .tip[data-x="33"], .ts-axis span[data-x="33"] { left: 33%; }
.ts-tips .tip[data-x="34"], .ts-axis span[data-x="34"] { left: 34%; }
.ts-tips .tip[data-x="35"], .ts-axis span[data-x="35"] { left: 35%; }
.ts-tips .tip[data-x="36"], .ts-axis span[data-x="36"] { left: 36%; }
.ts-tips .tip[data-x="37"], .ts-axis span[data-x="37"] { left: 37%; }
.ts-tips .tip[data-x="38"], .ts-axis span[data-x="38"] { left: 38%; }
.ts-tips .tip[data-x="39"], .ts-axis span[data-x="39"] { left: 39%; }
.ts-tips .tip[data-x="40"], .ts-axis span[data-x="40"] { left: 40%; }
.ts-tips .tip[data-x="41"], .ts-axis span[data-x="41"] { left: 41%; }
.ts-tips .tip[data-x="42"], .ts-axis span[data-x="42"] { left: 42%; }
.ts-tips .tip[data-x="43"], .ts-axis span[data-x="43"] { left: 43%; }
.ts-tips .tip[data-x="44"], .ts-axis span[data-x="44"] { left: 44%; }
.ts-tips .tip[data-x="45"], .ts-axis span[data-x="45"] { left: 45%; }
.ts-tips .tip[data-x="46"], .ts-axis span[data-x="46"] { left: 46%; }
.ts-tips .tip[data-x="47"], .ts-axis span[data-x="47"] { left: 47%; }
.ts-tips .tip[data-x="48"], .ts-axis span[data-x="48"] { left: 48%; }
.ts-tips .tip[data-x="49"], .ts-axis span[data-x="49"] { left: 49%; }
.ts-tips .tip[data-x="50"], .ts-axis span[data-x="50"] { left: 50%; }
.ts-tips .tip[data-x="51"], .ts-axis span[data-x="51"] { left: 51%; }
.ts-tips .tip[data-x="52"], .ts-axis span[data-x="52"] { left: 52%; }
.ts-tips .tip[data-x="53"], .ts-axis span[data-x="53"] { left: 53%; }
.ts-tips .tip[data-x="54"], .ts-axis span[data-x="54"] { left: 54%; }
.ts-tips .tip[data-x="55"], .ts-axis span[data-x="55"] { left: 55%; }
.ts-tips .tip[data-x="56"], .ts-axis span[data-x="56"] { left: 56%; }
.ts-tips .tip[data-x="57"], .ts-axis span[data-x="57"] { left: 57%; }
.ts-tips .tip[data-x="58"], .ts-axis span[data-x="58"] { left: 58%; }
.ts-tips .tip[data-x="59"], .ts-axis span[data-x="59"] { left: 59%; }
.ts-tips .tip[data-x="60"], .ts-axis span[data-x="60"] { left: 60%; }
.ts-tips .tip[data-x="61"], .ts-axis span[data-x="61"] { left: 61%; }
.ts-tips .tip[data-x="62"], .ts-axis span[data-x="62"] { left: 62%; }
.ts-tips .tip[data-x="63"], .ts-axis span[data-x="63"] { left: 63%; }
.ts-tips .tip[data-x="64"], .ts-axis span[data-x="64"] { left: 64%; }
.ts-tips .tip[data-x="65"], .ts-axis span[data-x="65"] { left: 65%; }
.ts-tips .tip[data-x="66"], .ts-axis span[data-x="66"] { left: 66%; }
.ts-tips .tip[data-x="67"], .ts-axis span[data-x="67"] { left: 67%; }
.ts-tips .tip[data-x="68"], .ts-axis span[data-x="68"] { left: 68%; }
.ts-tips .tip[data-x="69"], .ts-axis span[data-x="69"] { left: 69%; }
.ts-tips .tip[data-x="70"], .ts-axis span[data-x="70"] { left: 70%; }
.ts-tips .tip[data-x="71"], .ts-axis span[data-x="71"] { left: 71%; }
.ts-tips .tip[data-x="72"], .ts-axis span[data-x="72"] { left: 72%; }
.ts-tips .tip[data-x="73"], .ts-axis span[data-x="73"] { left: 73%; }
.ts-tips .tip[data-x="74"], .ts-axis span[data-x="74"] { left: 74%; }
.ts-tips .tip[data-x="75"], .ts-axis span[data-x="75"] { left: 75%; }
.ts-tips .tip[data-x="76"], .ts-axis span[data-x="76"] { left: 76%; }
.ts-tips .tip[data-x="77"], .ts-axis span[data-x="77"] { left: 77%; }
.ts-tips .tip[data-x="78"], .ts-axis span[data-x="78"] { left: 78%; }
.ts-tips .tip[data-x="79"], .ts-axis span[data-x="79"] { left: 79%; }
.ts-tips .tip[data-x="80"], .ts-axis span[data-x="80"] { left: 80%; }
.ts-tips .tip[data-x="81"], .ts-axis span[data-x="81"] { left: 81%; }
.ts-tips .tip[data-x="82"], .ts-axis span[data-x="82"] { left: 82%; }
.ts-tips .tip[data-x="83"], .ts-axis span[data-x="83"] { left: 83%; }
.ts-tips .tip[data-x="84"], .ts-axis span[data-x="84"] { left: 84%; }
.ts-tips .tip[data-x="85"], .ts-axis span[data-x="85"] { left: 85%; }
.ts-tips .tip[data-x="86"], .ts-axis span[data-x="86"] { left: 86%; }
.ts-tips .tip[data-x="87"], .ts-axis span[data-x="87"] { left: 87%; }
.ts-tips .tip[data-x="88"], .ts-axis span[data-x="88"] { left: 88%; }
.ts-tips .tip[data-x="89"], .ts-axis span[data-x="89"] { left: 89%; }
.ts-tips .tip[data-x="90"], .ts-axis span[data-x="90"] { left: 90%; }
.ts-tips .tip[data-x="91"], .ts-axis span[data-x="91"] { left: 91%; }
.ts-tips .tip[data-x="92"], .ts-axis span[data-x="92"] { left: 92%; }
.ts-tips .tip[data-x="93"], .ts-axis span[data-x="93"] { left: 93%; }
.ts-tips .tip[data-x="94"], .ts-axis span[data-x="94"] { left: 94%; }
.ts-tips .tip[data-x="95"], .ts-axis span[data-x="95"] { left: 95%; }
.ts-tips .tip[data-x="96"], .ts-axis span[data-x="96"] { left: 96%; }
.ts-tips .tip[data-x="97"], .ts-axis span[data-x="97"] { left: 97%; }
.ts-tips .tip[data-x="98"], .ts-axis span[data-x="98"] { left: 98%; }
.ts-tips .tip[data-x="99"], .ts-axis span[data-x="99"] { left: 99%; }
.ts-tips .tip[data-x="100"], .ts-axis span[data-x="100"] { left: 100%; }
.ts-tips .tip-card {
  position: absolute; left: 0; bottom: .45rem; transform: translate(-50%, -100%);
  width: max-content; max-width: 14rem;
}
.ts-tips .tip.is-start .tip-card { transform: translate(0, -100%); }
.ts-tips .tip.is-end .tip-card { transform: translate(-100%, -100%); }
.ts-tips .tip::after {
  content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 10.5rem;
  transform: translateX(-0.5px);
  background: color-mix(in srgb, var(--accent) 45%, var(--line));
}
.tip-card {
  background: var(--sidebar); color: var(--text); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 16px 36px rgba(8, 12, 16, .22); padding: .42rem .6rem .48rem;
}
.tip-card p { margin: 0; }
.tip-time { color: var(--muted); font-size: .72rem; margin-bottom: .18rem; }
.tip-row { display: flex; align-items: center; gap: .35rem; font-size: .82rem; line-height: 1.35; }
.tip-row span { min-width: 0; }
.tip-row strong { margin-left: auto; font-variant-numeric: tabular-nums; }
.ts-grid, .ts-line, .ts-area { pointer-events: none; }
.ts-band { fill: transparent; }
.ts-hot { fill: transparent; }
.ts-dot { stroke: var(--sidebar); stroke-width: 2; }
.ts-dot.tone-info { fill: var(--accent); }
.ts-dot.tone-bad { fill: #c44545; }
.ts-dot.tone-warn { fill: #c4922a; }
.ts-dot.tone-visit { fill: #6aa6ff; }
.ts-dot.tone-ok { fill: #1f8a4c; }
a.ts-hit { cursor: pointer; }
.ts-hit:hover .ts-dot,
.ts-hit:focus-visible .ts-dot { stroke: var(--text); stroke-width: 2; r: 4.6; }
.donut-tips { position: absolute; left: 0; right: 0; top: 0; height: 0; z-index: 4; pointer-events: none; }
.donut-tips .tip { position: absolute; left: 50%; top: 0; opacity: 0; transform: translate(-50%, calc(-100% - .35rem)); }
.donut-tips .tip-card { width: max-content; max-width: 14rem; }
.donut-hit { cursor: pointer; }
.donut-seg { stroke-linecap: butt; }
@media (max-width: 719px) {
  .dash-probes, .dash-probes.is-pair { grid-template-columns: 1fr; }
}
@media (min-width: 720px) {
  .dash-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dash .live { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 800px) {
  .dash .pair { grid-template-columns: 1fr 1fr; }
}

.ts-box:has(.ts-hit[data-i="0"]:hover) .tip[data-i="0"],
.ts-box:has(.ts-hit[data-i="0"]:focus-visible) .tip[data-i="0"],
.ts-box:has(.ts-hit[data-i="1"]:hover) .tip[data-i="1"],
.ts-box:has(.ts-hit[data-i="1"]:focus-visible) .tip[data-i="1"],
.ts-box:has(.ts-hit[data-i="2"]:hover) .tip[data-i="2"],
.ts-box:has(.ts-hit[data-i="2"]:focus-visible) .tip[data-i="2"],
.ts-box:has(.ts-hit[data-i="3"]:hover) .tip[data-i="3"],
.ts-box:has(.ts-hit[data-i="3"]:focus-visible) .tip[data-i="3"],
.ts-box:has(.ts-hit[data-i="4"]:hover) .tip[data-i="4"],
.ts-box:has(.ts-hit[data-i="4"]:focus-visible) .tip[data-i="4"],
.ts-box:has(.ts-hit[data-i="5"]:hover) .tip[data-i="5"],
.ts-box:has(.ts-hit[data-i="5"]:focus-visible) .tip[data-i="5"],
.ts-box:has(.ts-hit[data-i="6"]:hover) .tip[data-i="6"],
.ts-box:has(.ts-hit[data-i="6"]:focus-visible) .tip[data-i="6"],
.ts-box:has(.ts-hit[data-i="7"]:hover) .tip[data-i="7"],
.ts-box:has(.ts-hit[data-i="7"]:focus-visible) .tip[data-i="7"],
.ts-box:has(.ts-hit[data-i="8"]:hover) .tip[data-i="8"],
.ts-box:has(.ts-hit[data-i="8"]:focus-visible) .tip[data-i="8"],
.ts-box:has(.ts-hit[data-i="9"]:hover) .tip[data-i="9"],
.ts-box:has(.ts-hit[data-i="9"]:focus-visible) .tip[data-i="9"],
.ts-box:has(.ts-hit[data-i="10"]:hover) .tip[data-i="10"],
.ts-box:has(.ts-hit[data-i="10"]:focus-visible) .tip[data-i="10"],
.ts-box:has(.ts-hit[data-i="11"]:hover) .tip[data-i="11"],
.ts-box:has(.ts-hit[data-i="11"]:focus-visible) .tip[data-i="11"],
.ts-box:has(.ts-hit[data-i="12"]:hover) .tip[data-i="12"],
.ts-box:has(.ts-hit[data-i="12"]:focus-visible) .tip[data-i="12"],
.ts-box:has(.ts-hit[data-i="13"]:hover) .tip[data-i="13"],
.ts-box:has(.ts-hit[data-i="13"]:focus-visible) .tip[data-i="13"],
.ts-box:has(.ts-hit[data-i="14"]:hover) .tip[data-i="14"],
.ts-box:has(.ts-hit[data-i="14"]:focus-visible) .tip[data-i="14"],
.ts-box:has(.ts-hit[data-i="15"]:hover) .tip[data-i="15"],
.ts-box:has(.ts-hit[data-i="15"]:focus-visible) .tip[data-i="15"],
.ts-box:has(.ts-hit[data-i="16"]:hover) .tip[data-i="16"],
.ts-box:has(.ts-hit[data-i="16"]:focus-visible) .tip[data-i="16"],
.ts-box:has(.ts-hit[data-i="17"]:hover) .tip[data-i="17"],
.ts-box:has(.ts-hit[data-i="17"]:focus-visible) .tip[data-i="17"],
.ts-box:has(.ts-hit[data-i="18"]:hover) .tip[data-i="18"],
.ts-box:has(.ts-hit[data-i="18"]:focus-visible) .tip[data-i="18"],
.ts-box:has(.ts-hit[data-i="19"]:hover) .tip[data-i="19"],
.ts-box:has(.ts-hit[data-i="19"]:focus-visible) .tip[data-i="19"],
.ts-box:has(.ts-hit[data-i="20"]:hover) .tip[data-i="20"],
.ts-box:has(.ts-hit[data-i="20"]:focus-visible) .tip[data-i="20"],
.ts-box:has(.ts-hit[data-i="21"]:hover) .tip[data-i="21"],
.ts-box:has(.ts-hit[data-i="21"]:focus-visible) .tip[data-i="21"],
.ts-box:has(.ts-hit[data-i="22"]:hover) .tip[data-i="22"],
.ts-box:has(.ts-hit[data-i="22"]:focus-visible) .tip[data-i="22"],
.ts-box:has(.ts-hit[data-i="23"]:hover) .tip[data-i="23"],
.ts-box:has(.ts-hit[data-i="23"]:focus-visible) .tip[data-i="23"],
.ts-box:has(.ts-hit[data-i="24"]:hover) .tip[data-i="24"],
.ts-box:has(.ts-hit[data-i="24"]:focus-visible) .tip[data-i="24"],
.ts-box:has(.ts-hit[data-i="25"]:hover) .tip[data-i="25"],
.ts-box:has(.ts-hit[data-i="25"]:focus-visible) .tip[data-i="25"],
.ts-box:has(.ts-hit[data-i="26"]:hover) .tip[data-i="26"],
.ts-box:has(.ts-hit[data-i="26"]:focus-visible) .tip[data-i="26"],
.ts-box:has(.ts-hit[data-i="27"]:hover) .tip[data-i="27"],
.ts-box:has(.ts-hit[data-i="27"]:focus-visible) .tip[data-i="27"],
.ts-box:has(.ts-hit[data-i="28"]:hover) .tip[data-i="28"],
.ts-box:has(.ts-hit[data-i="28"]:focus-visible) .tip[data-i="28"],
.ts-box:has(.ts-hit[data-i="29"]:hover) .tip[data-i="29"],
.ts-box:has(.ts-hit[data-i="29"]:focus-visible) .tip[data-i="29"] { opacity: 1; }
.donut-box:has(.donut-hit[data-i="0"]:hover) .tip[data-i="0"],
.donut-box:has(.donut-hit[data-i="0"]:focus-visible) .tip[data-i="0"],
.donut-box:has(.donut-hit[data-i="1"]:hover) .tip[data-i="1"],
.donut-box:has(.donut-hit[data-i="1"]:focus-visible) .tip[data-i="1"],
.donut-box:has(.donut-hit[data-i="2"]:hover) .tip[data-i="2"],
.donut-box:has(.donut-hit[data-i="2"]:focus-visible) .tip[data-i="2"],
.donut-box:has(.donut-hit[data-i="3"]:hover) .tip[data-i="3"],
.donut-box:has(.donut-hit[data-i="3"]:focus-visible) .tip[data-i="3"],
.donut-box:has(.donut-hit[data-i="4"]:hover) .tip[data-i="4"],
.donut-box:has(.donut-hit[data-i="4"]:focus-visible) .tip[data-i="4"],
.donut-box:has(.donut-hit[data-i="5"]:hover) .tip[data-i="5"],
.donut-box:has(.donut-hit[data-i="5"]:focus-visible) .tip[data-i="5"],
.donut-box:has(.donut-hit[data-i="6"]:hover) .tip[data-i="6"],
.donut-box:has(.donut-hit[data-i="6"]:focus-visible) .tip[data-i="6"],
.donut-box:has(.donut-hit[data-i="7"]:hover) .tip[data-i="7"],
.donut-box:has(.donut-hit[data-i="7"]:focus-visible) .tip[data-i="7"] { opacity: 1; }

.advanced .point-row { margin-top: .15rem; }
.point-row { margin-top: .9rem; }
.point-row .field {
  display: grid; gap: .5rem; flex: none; width: 100%; min-width: 0;
  padding: .7rem .8rem .75rem; border: 1px solid var(--line); border-radius: 14px;
  background: color-mix(in srgb, var(--soft) 42%, var(--sidebar));
}
.point-row .points-label {
  display: flex; align-items: center; gap: .45rem; margin: 0;
  font-size: .82rem; font-weight: 750; letter-spacing: .01em;
}
.point-row .points-label::before {
  content: ""; width: 2px; height: .72rem; border-radius: 2px; background: var(--accent); flex: none;
}
.point-picks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem .6rem; }
.point-switch { position: relative; display: inline-flex; align-items: center; gap: .4rem; min-height: 1.7rem; cursor: pointer; white-space: nowrap; }
.field label.point-switch {
  display: flex; align-items: center; gap: .5rem; width: 100%; min-width: 0; margin: 0; min-height: 2.2rem;
  padding: .25rem .55rem .25rem .6rem; border: 1px solid var(--line); border-radius: 12px;
  background: var(--sidebar); font-weight: 650; line-height: 1.2; white-space: normal;
}
.point-picks .point-name { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.point-picks .point-ui { margin-inline-start: auto; }
@media (max-width: 640px) {
  .point-picks { grid-template-columns: 1fr; }
}
.point-name { min-width: 0; }
.point-picks .point-switch input, .probe-card .point-switch input {
  position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; margin: 0; padding: 0; border: 0;
}
.point-ui { display: block; width: 1.7rem; height: .95rem; border-radius: 999px; background: var(--line); position: relative; flex: none; }
.point-ui::after { content: ""; position: absolute; top: .1rem; left: .1rem; width: .75rem; height: .75rem; border-radius: 50%; background: #fff; transition: transform .15s ease; }
.point-switch input:checked ~ .point-ui { background: var(--accent); }
.point-switch input:checked ~ .point-ui::after { transform: translateX(.72rem); }
.point-switch input:focus-visible ~ .point-ui { outline: 2px solid var(--focus); outline-offset: 2px; }
.point-card { margin: .65rem 0 0; padding: .75rem .9rem; border: 1px solid var(--line); border-radius: 14px; background: color-mix(in srgb, var(--soft) 62%, transparent); }
.probe-head, .probe-card header, .probe-actions { display: flex; align-items: center; justify-content: space-between; gap: .6rem; flex-wrap: wrap; }
.probe-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(24rem, 1fr)); gap: .8rem; margin-top: .8rem; }
.probe-card {
  display: flex; flex-direction: column; gap: .7rem;
  padding: 1rem 1.05rem 1rem; border: 1px solid var(--line); border-radius: 16px;
  background: var(--sidebar); box-shadow: 0 10px 28px rgba(16, 22, 20, .05);
}
.probe-card.is-on { border-color: color-mix(in srgb, #1f8a4c 42%, var(--line)); }
.probe-card header { align-items: flex-start; }
.probe-main { display: flex; align-items: flex-start; gap: .55rem; min-width: 0; flex: 1; }
.probe-name { display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; min-width: 0; }
.probe-name .probe-mark { font-variant-numeric: tabular-nums; font-size: .74rem; line-height: 1.15; padding: .02rem .4rem; }
.probe-hop { display: flex; flex-direction: column; align-items: center; gap: .15rem; }
.probe-hop form { margin: 0; }
.probe-hop .act { width: 1.7rem; min-width: 1.7rem; height: 1.35rem; padding: 0; }
.probe-hop .pill { min-width: 1.4rem; justify-content: center; }
.probe-title { display: flex; align-items: flex-start; gap: .7rem; min-width: 0; }
.probe-title .tz-flag { width: auto; margin-top: .12rem; font-size: 1.7rem; line-height: 1; }
.probe-title h2 { margin: 0; font-size: 1.12rem; }
.probe-title .meta { margin: .12rem 0 0; }
.probe-under { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; margin-top: .35rem; }
.probe-badges { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; }
.probe-badge-row { display: inline-flex; flex-wrap: nowrap; align-items: center; gap: .35rem; }
.probe-facts { flex-wrap: nowrap; gap: .3rem; }
.probe-facts .probe-fact { flex: none; white-space: nowrap; padding-inline: .42rem; }
.probe-facts .probe-fact:first-child { max-width: 46%; }
.probe-facts .probe-fact:first-child .probe-fact-v { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.probe-live { gap: .4rem; }
.probe-dot {
  width: .5rem; height: .5rem; border-radius: 50%; background: #1f8a4c; flex: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, #1f8a4c 28%, transparent);
}
html[data-theme="dark"] .probe-dot { background: #b7ebc9; box-shadow: 0 0 0 3px color-mix(in srgb, #b7ebc9 28%, transparent); }
@media (prefers-color-scheme: dark) {
  html[data-theme="system"] .probe-dot { background: #b7ebc9; box-shadow: 0 0 0 3px color-mix(in srgb, #b7ebc9 28%, transparent); }
}
.probe-mark { background: color-mix(in srgb, var(--accent) 16%, var(--soft)); }
.probe-fact-k { flex: none; opacity: .72; font-weight: 650; }
.probe-meters { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; margin: 0; }
.probe-meters div { padding: .4rem .55rem; border-radius: 10px; background: var(--soft); }
.probe-meters dt { color: var(--muted); font-size: .72rem; }
.probe-meters dd { margin: 0; font-weight: 720; }
.probe-host { margin: 0; color: var(--muted); font-size: .84rem; }
.probe-pair { display: grid; grid-template-columns: 1fr 1fr; gap: .45rem; }
.probe-mini { padding: .55rem .7rem; border-radius: 12px; border: 1px solid var(--line); }
.probe-mini span { display: block; color: var(--muted); font-size: .72rem; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
.probe-mini strong { display: flex; align-items: center; flex-wrap: wrap; gap: .35rem .45rem; margin-top: .28rem; font-size: .92rem; font-weight: 720; }
.probe-mini i { color: var(--muted); font-size: .72rem; }
.probe-net { background: color-mix(in srgb, #3b82f6 14%, var(--sidebar)); border-color: color-mix(in srgb, #3b82f6 32%, var(--line)); }
.probe-swap { background: color-mix(in srgb, var(--accent) 14%, var(--sidebar)); border-color: color-mix(in srgb, var(--accent) 32%, var(--line)); }
.probe-actions { justify-content: flex-start; gap: .35rem; margin-top: auto; }
.probe-card .probe-actions { flex-wrap: nowrap; width: 100%; gap: .4rem; }
.probe-card .probe-actions > .act,
.probe-card .probe-actions > form { flex: 1 1 0; width: auto; min-width: 0; }
.probe-card .probe-actions form { display: flex; }
.probe-card .probe-actions .act { width: 100%; min-width: 0; }
.probe-actions form { margin: 0; }
.probe-btn { display: inline-flex; align-items: center; justify-content: center; gap: .35rem; min-width: 7.6rem; height: 2.4rem; padding: 0 .75rem; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: inherit; font: inherit; cursor: pointer; transition: background .15s ease, border-color .15s ease, color .15s ease; }
.probe-btn:not(.primary):hover { background: color-mix(in srgb, white 88%, var(--accent)); border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); color: #14211b; }
.probe-btn:not(.primary):active { background: color-mix(in srgb, white 72%, var(--accent)); border-color: var(--accent); color: #14211b; }
.probe-btn.primary { background: var(--accent); color: var(--accent-text); border-color: transparent; }
.probe-btn.primary:hover { background: color-mix(in srgb, var(--accent) 82%, white); }
.probe-btn.primary:active { background: color-mix(in srgb, var(--accent) 72%, black); }
.probe-modal { border: 0; padding: 0; background: transparent; max-width: none; }
.probe-modal::backdrop { background: rgba(0, 0, 0, .46); }
.probe-modal-card { width: min(46rem, calc(100vw - 1.5rem)); max-height: min(44rem, calc(100vh - 2rem)); overflow: auto; background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 16px; padding: 1rem 1.1rem 1.1rem; }
.probe-form { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .85rem .75rem; align-items: start; margin: .85rem 0 .35rem; }
.probe-form .field { flex: none; width: auto; min-width: 0; max-width: none; margin: 0; }
.probe-form input[readonly] { background: var(--soft); color: var(--text); cursor: default; }
.probe-form .probe-code { grid-column: span 2; }
.probe-form .probe-name { grid-column: span 4; }
.probe-form .probe-country { grid-column: span 4; }
.probe-form .probe-city,
.probe-form .probe-user { grid-column: span 2; }
.probe-country-pick { position: relative; }
.probe-country-btn {
  display: flex; align-items: center; gap: .55rem; width: 100%; height: 2.75rem; min-height: 2.75rem;
  padding: 0 .8rem; border: 1px solid var(--field-line); border-radius: 10px;
  background: var(--field); color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.probe-country-btn .tz-flag { width: 1.35rem; font-size: 1.15rem; }
.probe-country-btn .mono { margin-left: auto; color: var(--muted); }
.probe-country-btn:disabled { cursor: default; opacity: .7; }
.probe-country-pop {
  margin-top: .35rem; padding: .45rem; border: 1px solid var(--line); border-radius: 12px;
  background: var(--sidebar); box-shadow: 0 14px 32px rgba(16, 22, 20, .16);
}
.probe-country-list { max-height: 14rem; overflow: auto; margin-top: .35rem; }
.probe-country-list button {
  display: flex; align-items: center; gap: .5rem; width: 100%; border: 0; background: transparent;
  color: inherit; font: inherit; text-align: left; border-radius: 8px; padding: .4rem .5rem; cursor: pointer;
}
.probe-country-list button .mono { margin-left: auto; color: var(--muted); }
.probe-country-list button:hover,
.probe-country-list button[aria-selected="true"] { background: var(--soft); }
.probe-country-empty { margin: .35rem .4rem; color: var(--muted); }
.probe-form .probe-auth { grid-column: 1 / -1; }
.probe-form .probe-auth select { max-width: 16rem; }
.probe-form .probe-host { grid-column: span 3; }
.probe-form .probe-port { grid-column: span 1; }
.probe-form:has([data-probe-slug][hidden]) .probe-name { grid-column: 1 / -1; }
.probe-form .probe-secret { grid-column: 1 / -1; }
.probe-form .probe-secret textarea {
  width: 100%; min-height: 11rem; resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .86rem; line-height: 1.45;
}
.probe-modal .probe-actions { justify-content: flex-end; margin-top: .85rem; }
.probe-log { max-height: 16rem; overflow: auto; white-space: pre-wrap; background: var(--soft); border-radius: 10px; padding: .7rem; }
@media (max-width: 640px) {
  .probe-form { grid-template-columns: 1fr; }
  .probe-form .field,
  .probe-form .probe-secret,
  .probe-form .probe-name,
  .probe-form:has([data-probe-slug][hidden]) .probe-name { grid-column: 1 / -1; }
  .probe-pair { grid-template-columns: 1fr; }
}
.point-card { margin: .75rem 0 0; }
