:root {
  --bg: #0b0f13;
  --nav: 56px;
  --sidebar: 252px;
  --side: #0b0f13;
  --elev: #12181f;
  --elev-2: #171e27;
  --inset: #0a0e12;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #f4f7fa;
  --muted: #9aa6b4;
  --faint: #6f7b8a;
  --accent: #4ea3ff;
  --accent-2: #3ec8e8;
  --accent-fill: #4ea3ff;
  --warn: #f0b429;
  --danger: #ff6b7a;
  --ok: #3ee89a;
  --dns: #6bc4d6;
  --ip: #d9a66e;
  --net: #3ed9b0;
  --util: #c9a6ff;
  --sans: Inter, "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --radius: 0;
  --bs-border-radius: 0;
  --bs-border-radius-sm: 0;
  --bs-border-radius-lg: 0;
  --bs-border-radius-xl: 0;
  --bs-border-radius-xxl: 0;
  --bs-border-radius-2xl: 0;
  --bs-border-radius-pill: 0;
}

* { box-sizing: border-box; }

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  min-height: 100%;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: #8ec8ff; }

.code, code, kbd, pre, .mono { font-family: var(--mono); }

.nt-nav {
  height: var(--nav);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 1030;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
  color: var(--text) !important;
  text-decoration: none !important;
}

.brand-mark {
  height: 28px;
  padding: 0 9px;
  background: #151c24;
  border: 1px solid var(--line-2);
  color: var(--accent);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  display: grid;
  place-items: center;
  border-radius: 0;
  line-height: 1;
  white-space: nowrap;
}

.brand-text {
  font-weight: 700;
  font-size: 15px;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  user-select: none;
}

.lang-btn {
  background: none;
  border: 0;
  padding: 0;
  color: var(--faint);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  line-height: 1;
}

.lang-btn:hover { color: var(--text); }

.lang-btn.is-active { color: var(--accent); }

.lang-sep {
  color: var(--line-2);
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
}

.brand span.dim {
  color: var(--faint);
  font-weight: 400;
  font-size: 13px;
  margin-left: 0;
}

.nt-search {
  background: var(--elev);
  border: 1px solid var(--line-2);
  color: var(--text);
  border-radius: 0;
  padding: 0.4rem 0.9rem 0.4rem 2.2rem;
  width: min(380px, 48vw);
  font-size: 14px;
}

.nt-search:focus {
  background: var(--elev);
  border-color: var(--accent);
  box-shadow: none;
  color: var(--text);
}

.search-wrap { position: relative; }
.search-wrap i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--faint);
  font-size: 14px;
  pointer-events: none;
  z-index: 1;
}

.search-wrap .form-control.nt-search {
  padding-left: 2.55rem;
}

.layout {
  display: grid;
  grid-template-columns: var(--sidebar) 1fr;
  min-height: calc(100vh - var(--nav));
}

.nt-side {
  border-right: 1px solid var(--line);
  background: var(--bg);
  padding: 14px 8px 24px 10px;
  position: sticky;
  top: var(--nav);
  height: calc(100vh - var(--nav));
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.16) transparent;
}

.nt-side::-webkit-scrollbar {
  width: 10px;
}

.nt-side::-webkit-scrollbar-track {
  background: transparent;
  margin: 10px 0;
}

.nt-side::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 0;
  border: 3px solid transparent;
  background-clip: padding-box;
}

.nt-side::-webkit-scrollbar-thumb:hover {
  background: rgba(78, 163, 255, 0.42);
  border: 3px solid transparent;
  background-clip: padding-box;
}

.nt-side::-webkit-scrollbar-corner { background: transparent; }

.cat-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
  padding: 16px 12px 6px;
}

.cat-label.cat-dns { color: var(--dns); }
.cat-label.cat-ip { color: var(--ip); }
.cat-label.cat-net { color: var(--net); }
.cat-label.cat-util { color: var(--util); }

.side-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 0;
  font-size: 14px;
  font-weight: 500;
  border: 0;
  text-decoration: none !important;
}

.side-link i { width: 1.1rem; text-align: center; }
.side-link.cat-home i { color: var(--accent); }
.side-link.cat-dns i { color: var(--dns); }
.side-link.cat-ip i { color: var(--ip); }
.side-link.cat-net i { color: var(--net); }
.side-link.cat-util i { color: var(--util); }
.side-link:hover { background: var(--elev); color: var(--text); }
.side-link.active {
  background: var(--elev);
  color: var(--text);
}

.main {
  padding: 28px 28px 28px;
  min-width: 0;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - var(--nav));
}

#app { flex: 1 0 auto; }

.nt-foot {
  flex-shrink: 0;
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nt-foot p,
.nt-foot a,
.nt-foot span,
.nt-foot strong,
.nt-foot i {
  font-size: 13px;
  line-height: 1.6;
}

.nt-foot-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px 28px;
  flex-wrap: wrap;
}

.nt-foot strong { color: var(--text); font-weight: 600; }

.nt-foot-dot,
.nt-foot-sep { color: var(--muted); margin: 0; }

.nt-foot-meta,
.nt-foot-contact {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.nt-foot-copy {
  white-space: nowrap;
}

.nt-foot-copy .nt-foot-sep {
  margin: 0 0.55em;
}

.nt-foot-handle {
  color: var(--text);
  text-decoration: none !important;
  margin: 0;
}

.nt-foot-handle:hover { color: var(--accent); }

.nt-foot-handle i {
  color: var(--accent);
  margin-right: 4px;
}

.nt-foot-brand {
  color: var(--accent) !important;
  font-weight: 600;
  text-decoration: none !important;
}

.nt-foot-brand:hover { color: #8ec8ff !important; }

.nt-foot-top-link a {
  color: var(--accent);
  font-weight: 500;
  text-decoration: none !important;
  white-space: nowrap;
}

.nt-foot-top-link a:hover { color: #8ec8ff; }

.nt-foot-top-link i { margin-right: 4px; }

.hero-card, .panel, .tool-card, .stat {
  background: var(--elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.hero-card { padding: 22px 24px 24px; }

.page-head { margin-bottom: 18px; }
.page-head .kicker { margin-bottom: 6px; }

.kicker {
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1, h2, h3 { letter-spacing: -0.02em; font-weight: 700; }

.lead-muted { color: var(--muted); max-width: 46rem; font-size: 14px; line-height: 1.55; }

.hint { color: var(--faint); font-size: 13px; }

.stat-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: stretch;
}

.stat {
  padding: 14px 16px 16px;
  max-width: 100%;
  box-sizing: border-box;
}

.stat-sm { flex: 0 0 auto; min-width: 5.5rem; }
.stat-md { flex: 0 1 auto; min-width: 9rem; }
.stat-lg { flex: 1 1 16rem; min-width: min(100%, 14rem); }
.stat-xl { flex: 1 1 24rem; min-width: min(100%, 18rem); }

.stat .lbl {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}
.stat .val {
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 700;
  margin-top: 8px;
  line-height: 1.3;
  overflow-wrap: anywhere;
  word-break: break-word;
  letter-spacing: -0.02em;
}
.stat-sm .val { font-size: 20px; white-space: nowrap; }
.stat-md .val { font-size: 19px; }
.stat-xl .val { font-size: 16px; }
.stat-ua {
  flex: 1 1 100%;
  min-width: 0;
  width: 100%;
}
.stat-ua .val {
  font-size: 12px;
  font-weight: 500;
  font-family: var(--mono);
  letter-spacing: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: normal;
  overflow-wrap: normal;
}
.stat .sub { color: var(--faint); font-size: 12px; margin-top: 6px; }

.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 12px;
}

.tool-card {
  padding: 16px 16px 18px;
  cursor: pointer;
  height: 100%;
}

.tool-card:hover { background: var(--elev-2); }

.tool-card .ico {
  color: var(--accent);
  font-size: 16px;
  margin-right: 6px;
}
.tool-card.cat-dns .ico { color: var(--dns); }
.tool-card.cat-ip .ico { color: var(--ip); }
.tool-card.cat-net .ico { color: var(--net); }
.tool-card.cat-util .ico { color: var(--util); }

.tool-card h3 { font-size: 15px; margin: 0 0 6px; font-weight: 700; }
.tool-card p { color: var(--muted); font-size: 13px; margin: 0; line-height: 1.4; }

.panel { padding: 18px 20px 20px; }

.form-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 6px;
}

.form-control, .form-select {
  background: var(--inset);
  border: 1px solid var(--line-2);
  color: var(--text);
  border-radius: 0;
  padding: 0.5rem 0.8rem;
  font-size: 14px;
}

.form-control:focus, .form-select:focus {
  background: var(--inset);
  color: var(--text);
  border-color: var(--accent);
  box-shadow: none;
}

.form-select option { background: var(--elev); }

.log-ta {
  min-height: 280px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.45;
  resize: vertical;
}

.ip-log-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.table-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 22rem);
  gap: 12px;
  align-items: start;
}

.table-pair > .panel { min-width: 0; }

.panel-scroll .table-responsive {
  max-height: min(70vh, 36rem);
  overflow: auto;
}

.panel-scroll thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--elev);
}

@media (max-width: 900px) {
  .ip-log-split,
  .table-pair { grid-template-columns: 1fr; }
}

.ip-log-pane .form-label { font-weight: 600; }

.ip-log-target .log-ta {
  border-color: rgba(78, 163, 255, 0.4);
}

.ip-log-target.is-flash .log-ta {
  box-shadow: 0 0 0 2px var(--accent);
}

.form-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
  user-select: none;
}

.form-check-input {
  background-color: var(--inset);
  border-color: var(--line-2);
  margin: 0;
}

.form-check-input:checked {
  background-color: var(--accent);
  border-color: var(--accent);
}

.form-check-label { cursor: pointer; }

.btn, .btn-close {
  border-radius: 0;
}

.btn-accent {
  background: var(--accent-fill);
  color: #07111c;
  border: 0;
  font-weight: 700;
  font-size: 14px;
  border-radius: 0;
  padding: 0.48rem 1.1rem;
}

.btn-accent:hover { color: #07111c; background: #6bb4ff; }

.btn-ghost {
  background: var(--elev);
  border: 1px solid var(--line-2);
  color: var(--text);
  border-radius: 0;
  font-size: 14px;
}

.btn-ghost:hover { color: #fff; background: var(--elev-2); }

.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-2);
  background: var(--elev);
  color: var(--muted);
  border-radius: 0;
  padding: 0 10px;
  font-size: 12px;
  font-family: var(--mono);
  line-height: 1;
  cursor: pointer;
  height: 26px;
  box-sizing: border-box;
}

.chip:hover { color: var(--accent); border-color: var(--accent); }

.chip-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.chip-stack {
  display: grid;
  grid-template-columns: max-content 1fr;
  column-gap: 8px;
  row-gap: 8px;
  align-items: center;
}

.chip-stack > .chip-row {
  display: contents;
}

.chip-row-btns {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.chip-lbl {
  display: inline-flex;
  align-items: center;
  height: 26px;
  margin: 0;
  padding: 0;
  color: var(--faint);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
}

.chip-lbl::before {
  content: "|";
  color: #c5cdd6;
  font-weight: 500;
  letter-spacing: 0;
  margin-right: 8px;
  line-height: 1;
}

.chip-ex {
  color: var(--faint);
  border-color: color-mix(in srgb, var(--muted) 38%, transparent);
  background: color-mix(in srgb, var(--muted) 9%, transparent);
}
.chip-ex:hover {
  color: var(--text);
  border-color: color-mix(in srgb, var(--muted) 60%, transparent);
  background: color-mix(in srgb, var(--muted) 16%, transparent);
}

.chip.cat-dns {
  color: var(--dns);
  border-color: color-mix(in srgb, var(--dns) 55%, transparent);
  background: color-mix(in srgb, var(--dns) 14%, var(--elev));
}
.chip.cat-dns:hover {
  color: var(--dns);
  border-color: var(--dns);
  background: color-mix(in srgb, var(--dns) 22%, var(--elev));
}
.chip.cat-ip {
  color: var(--ip);
  border-color: color-mix(in srgb, var(--ip) 55%, transparent);
  background: color-mix(in srgb, var(--ip) 14%, var(--elev));
}
.chip.cat-ip:hover {
  color: var(--ip);
  border-color: var(--ip);
  background: color-mix(in srgb, var(--ip) 22%, var(--elev));
}
.chip.cat-net {
  color: var(--net);
  border-color: color-mix(in srgb, var(--net) 55%, transparent);
  background: color-mix(in srgb, var(--net) 14%, var(--elev));
}
.chip.cat-net:hover {
  color: var(--net);
  border-color: var(--net);
  background: color-mix(in srgb, var(--net) 22%, var(--elev));
}
.chip.cat-util {
  color: var(--util);
  border-color: color-mix(in srgb, var(--util) 55%, transparent);
  background: color-mix(in srgb, var(--util) 14%, var(--elev));
}
.chip.cat-util:hover {
  color: var(--util);
  border-color: var(--util);
  background: color-mix(in srgb, var(--util) 22%, var(--elev));
}

.server-used {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(78, 163, 255, 0.28);
  background: rgba(78, 163, 255, 0.08);
  color: var(--accent);
  border-radius: 0;
  padding: 3px 10px;
  font-size: 12px;
  font-family: var(--mono);
  font-weight: 500;
  white-space: nowrap;
}

.badge-tone {
  font-size: 11px;
  font-weight: 700;
  border-radius: 0;
  padding: 3px 8px;
}

.tone-ok { background: rgba(62, 232, 154, 0.14); color: var(--ok); }
.tone-warn { background: rgba(240, 180, 41, 0.16); color: var(--warn); }
.tone-danger { background: rgba(255, 107, 122, 0.16); color: var(--danger); }

.table-nt {
  --bs-table-bg: transparent;
  --bs-table-color: var(--text);
  --bs-table-border-color: var(--line);
  --bs-table-striped-bg: rgba(255,255,255,0.02);
  font-size: 13px;
}

.table-nt th {
  color: var(--faint);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.table-nt td {
  vertical-align: top;
  word-break: break-word;
  font-family: var(--mono);
  font-size: 12px;
}

.result-block { margin-top: 16px; }

.terminal {
  background: var(--inset);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 12px 14px;
  color: #cfead4;
  font-size: 13px;
  line-height: 1.5;
  max-height: 420px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

.form-control.fmt-src {
  font-family: var(--mono);
  font-size: 13px;
  tab-size: 2;
}

.terminal.fmt-out {
  min-height: 140px;
  max-height: 560px;
  tab-size: 2;
}

.pw-out {
  background: var(--inset);
  border: 1px solid var(--line-2);
  border-radius: 0;
  padding: 14px 16px;
  font-family: var(--mono);
  font-size: 16px;
  line-height: 1.5;
  word-break: break-all;
  color: #fff;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 28px 0 12px;
}

.section-title h2,
.section-title.cat-dns h2,
.section-title.cat-ip h2,
.section-title.cat-net h2,
.section-title.cat-util h2 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

.spinner-nt {
  width: 16px;
  height: 16px;
  border: 2px solid var(--line-2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.alert-nt {
  background: rgba(255, 107, 122, 0.12);
  border: 1px solid rgba(255, 107, 122, 0.35);
  color: #ffb3bb;
  border-radius: var(--radius);
  padding: 12px 14px;
  font-size: 14px;
}

.footer-note { color: var(--faint); font-size: 13px; margin-top: 36px; }

.jump-link { color: var(--accent); cursor: pointer; }

.form-check-input {
  background-color: var(--inset);
  border-color: var(--line-2);
  border-radius: 0;
}
.form-check-input:checked {
  background-color: var(--accent);
  border-color: var(--accent);
}
.form-check-input:focus { box-shadow: none; }
.form-check-label { color: var(--text); }

.opt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}

.opt {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  padding: 12px 14px;
  background: var(--inset);
  border: 1px solid var(--line-2);
  border-radius: 0;
  cursor: pointer;
}

.opt:has(input:checked) {
  border-color: var(--accent);
  background: rgba(78, 163, 255, 0.08);
}

.opt small { display: block; color: var(--faint); font-family: var(--mono); font-size: 12px; }

.form-range { accent-color: var(--accent); }
.form-range::-webkit-slider-thumb { border-radius: 0; }
.form-range::-moz-range-thumb { border-radius: 0; }

.len-val {
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
  min-width: 2.4rem;
}

.strength {
  height: 6px;
  background: var(--inset);
  border-radius: 0;
  overflow: hidden;
  margin-top: 8px;
}

.strength > span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--danger);
}

.strength.s-ok > span { background: var(--ok); }
.strength.s-warn > span { background: var(--warn); }
.strength.s-bad > span { background: var(--danger); }

.table-nt a, .table-nt .jump-link { font-family: var(--mono); }

.offcanvas { background: var(--bg); color: var(--text); }
.offcanvas-header { border-bottom: 1px solid var(--line); }
.offcanvas-body {
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.16) transparent;
}
.offcanvas-body::-webkit-scrollbar { width: 10px; }
.offcanvas-body::-webkit-scrollbar-track { background: transparent; margin: 8px 0; }
.offcanvas-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 0;
  border: 3px solid transparent;
  background-clip: padding-box;
}
.offcanvas-body::-webkit-scrollbar-thumb:hover {
  background: rgba(78, 163, 255, 0.42);
  border: 3px solid transparent;
  background-clip: padding-box;
}

.diff-view {
  background: var(--inset);
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.45;
  max-height: 480px;
  overflow: auto;
}

.diff-line {
  display: flex;
  gap: 10px;
  padding: 1px 10px;
  white-space: pre-wrap;
  word-break: break-word;
}

.diff-mark {
  flex: none;
  width: 1rem;
  color: var(--faint);
}

.diff-eq { color: var(--muted); }
.diff-add { background: rgba(62, 232, 154, 0.12); color: #b8f5d4; }
.diff-del { background: rgba(255, 107, 122, 0.12); color: #ffc1c8; }
.diff-add .diff-mark { color: var(--ok); }
.diff-del .diff-mark { color: var(--danger); }

.re-hl {
  background: var(--inset);
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.55;
  padding: 12px 14px;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 280px;
  overflow: auto;
}

.re-hit {
  background: rgba(78, 163, 255, 0.28);
  color: inherit;
  padding: 0 1px;
}

.color-pick {
  width: 52px;
  height: 38px;
  padding: 3px;
  background: var(--inset);
  border: 1px solid var(--line-2);
  cursor: pointer;
}

.color-pick::-webkit-color-swatch-wrapper { padding: 0; }
.color-pick::-webkit-color-swatch { border: 0; }

.color-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.color-swatch {
  flex: 1 1 72px;
  min-width: 72px;
  max-width: 140px;
  min-height: 76px;
  border: 1px solid var(--line);
  padding: 8px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 2px;
  cursor: pointer;
  text-align: left;
}

.color-swatch.is-current {
  flex-basis: 120px;
  min-height: 92px;
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.color-swatch-lbl {
  font-size: 11px;
  font-weight: 600;
  opacity: 0.85;
}

.color-swatch-hex {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
}

.href-list {
  display: grid;
  gap: 6px;
  max-height: 320px;
  overflow: auto;
}

.href-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  background: var(--inset);
  border: 1px solid var(--line);
  color: var(--text);
  cursor: pointer;
}

.href-item strong { font-size: 13px; }
.href-item span { color: var(--muted); font-size: 12px; line-height: 1.4; }
.href-item.is-on,
.chip.is-on {
  border-color: var(--accent);
  background: rgba(78, 163, 255, 0.08);
}

.data-preview {
  min-height: 120px;
  border: 1px solid var(--line);
  background: var(--inset);
  display: grid;
  place-items: center;
  padding: 12px;
}

.data-preview img {
  max-width: 100%;
  max-height: 320px;
}

.home-search { display: flex; gap: 10px; max-width: 560px; align-items: stretch; }
.home-search .search-wrap { flex: 1; }
.home-search .nt-search { width: 100%; height: 100%; }

@media (max-width: 991.98px) {
  .layout { grid-template-columns: 1fr; }
  .nt-side { display: none; }
  .nt-search { width: min(220px, 42vw); }
  .main { padding: 16px 14px 24px; }
  .home-search .nt-search { width: 100%; }
  .nt-foot-contact,
  .nt-foot-meta,
  .nt-foot-copy { white-space: normal; flex-wrap: wrap; }
}
