:root {
  color-scheme: light;
  --bg: #f4f7fb;
  --panel: #ffffff;
  --panel-soft: #f8fafc;
  --text: #172033;
  --muted: #65758b;
  --line: #d8e1ee;
  --primary: #1d4ed8;
  --primary-dark: #153b9f;
  --ok: #15803d;
  --ok-bg: #dcfce7;
  --warn: #b45309;
  --warn-bg: #fef3c7;
  --info: #0369a1;
  --info-bg: #e0f2fe;
  --neutral-bg: #eef2f7;
  --shadow: 0 18px 45px rgba(23, 32, 51, 0.08);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 24px;
}

.top-status {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-size: 13px;
}

.top-status strong {
  color: var(--text);
  font-family:
    "SFMono-Regular", Consolas, "Liberation Mono", Menlo, ui-monospace,
    monospace;
}

.workspace {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.workspace > *,
main,
.sidebar,
.tool-page,
.detail-section,
.current-ip-page,
.result-panel,
.panel,
.tools,
.dashboard-card {
  min-width: 0;
}

.sidebar {
  position: sticky;
  top: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #eaf1fb;
}

.sidebar nav {
  display: grid;
  gap: 4px;
}

.sidebar span {
  margin: 14px 8px 4px;
  color: #61718a;
  font-size: 12px;
  font-weight: 800;
}

.sidebar a {
  min-height: 36px;
  padding: 8px 10px;
  border-radius: 8px;
  color: #173986;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.sidebar a:hover,
.sidebar a.active {
  background: #fff;
  color: var(--primary);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 18px;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.topnav a {
  padding: 8px 10px;
  border-radius: 8px;
}

.topnav a:hover {
  background: #e9eff8;
  color: var(--text);
}

main {
  padding-bottom: 56px;
}

.dashboard {
  display: grid;
  gap: 16px;
}

.dashboard-head {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.dashboard-head h1 {
  max-width: 820px;
  margin: 0;
  font-size: 32px;
  line-height: 1.25;
  letter-spacing: 0;
}

.dashboard-head p:not(.section-label) {
  max-width: 760px;
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(360px, 480px) minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}

.dashboard-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.dashboard-ip {
  min-height: 100%;
}

.mini-facts {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.mini-facts span {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid #e4e6a7;
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.mini-facts strong {
  color: var(--text);
  font-family:
    "SFMono-Regular", Consolas, "Liberation Mono", Menlo, ui-monospace,
    monospace;
  overflow-wrap: anywhere;
}

.tool-list {
  display: grid;
  gap: 10px;
}

.tool-list a {
  display: grid;
  gap: 4px;
  min-height: 62px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  color: #173986;
  font-weight: 800;
}

.tool-list a:hover,
.flow-grid a:hover {
  border-color: var(--primary);
}

.tool-list span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.flow-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.flow-grid a {
  display: grid;
  gap: 8px;
  min-height: 132px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.flow-grid strong {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
}

.flow-grid span {
  color: #173986;
  font-weight: 800;
}

.flow-grid em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  line-height: 1.5;
}

.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 480px);
  gap: 18px;
  align-items: stretch;
  padding-bottom: 18px;
}

.intro-panel {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.intro-panel h1 {
  max-width: 760px;
  margin: 0;
  font-size: 34px;
  line-height: 1.25;
  letter-spacing: 0;
}

.intro-panel p {
  margin: 18px 0 24px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.hero,
.ip-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 480px);
  gap: 32px;
  align-items: end;
  padding: 48px 0 32px;
}

.ip-hero {
  grid-template-columns: minmax(0, 1fr) 380px;
  align-items: stretch;
}

.ip-card {
  display: flex;
  min-height: 360px;
  flex-direction: column;
  justify-content: center;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffef0;
  box-shadow: var(--shadow);
}

.compact-card {
  min-height: 0;
  padding: 26px;
}

.ip-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.live-dot {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--ok-bg);
  color: var(--ok);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.ip-card h1,
.ip-card h2 {
  margin: 0;
  color: #1f2937;
  font-size: 26px;
  line-height: 1.35;
  letter-spacing: 0;
  text-align: center;
}

.current-ip {
  margin: 28px 0 14px;
  color: #0614d8;
  font-family:
    "SFMono-Regular", Consolas, "Liberation Mono", Menlo, ui-monospace,
    monospace;
  font-size: clamp(44px, 8vw, 84px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  overflow-wrap: anywhere;
  text-align: center;
}

.current-host {
  min-height: 24px;
  color: #233876;
  font-family:
    "SFMono-Regular", Consolas, "Liberation Mono", Menlo, ui-monospace,
    monospace;
  font-size: 18px;
  font-weight: 800;
  overflow-wrap: anywhere;
  text-align: center;
}

.quick-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}

.quick-actions button,
.quick-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid #b8c7dd;
  border-radius: 8px;
  background: #fff;
  color: #173986;
  cursor: pointer;
  font-weight: 800;
}

.quick-actions button:first-child,
.quick-actions a:first-child {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.quick-actions button:hover {
  border-color: var(--primary);
}

.eyebrow,
.section-label {
  margin: 0 0 10px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.05;
  letter-spacing: 0;
}

.hero p {
  max-width: 700px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.lookup {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.lookup.compact {
  align-self: end;
}

.lookup.inline {
  max-width: 620px;
  padding: 0;
  border: 0;
  box-shadow: none;
}

.detail-section,
.current-ip-page,
.tool-page {
  margin-bottom: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.search-form {
  margin-bottom: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.search-form label {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.lookup-status {
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 8px;
  font-weight: 700;
}

.lookup-status.is-info {
  background: var(--info-bg);
  color: var(--info);
}

.lookup-status.is-error {
  background: #fee2e2;
  color: #b91c1c;
}

.record-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.record-tabs button {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #173986;
  cursor: pointer;
  font-weight: 800;
}

.record-tabs button.active,
.record-tabs button:hover {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.result-hero,
.ip-lookup-hero,
.domain-lookup-hero,
.http-result-hero,
.cidr-result-hero,
.slaac-result-hero,
.port-result-hero,
.ssl-result-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 16px;
  align-items: stretch;
  margin-bottom: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
}

.domain-lookup-hero {
  grid-template-columns: minmax(0, 1fr) 300px;
}

.port-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 140px 120px 190px 110px;
  gap: 10px;
  align-items: end;
}

.http-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px 150px 190px 110px;
  gap: 10px;
  align-items: end;
}

.http-form-grid label {
  display: grid;
  gap: 8px;
  margin: 0;
}

.http-form-grid label span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.http-form-grid input,
.http-form-grid select {
  min-height: 46px;
  width: 100%;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
}

.http-form-grid .check-label {
  display: flex;
  min-height: 46px;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.http-form-grid .check-label input {
  width: auto;
  min-height: auto;
}

.http-form-grid button {
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  font-weight: 800;
}

.dns-option {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
}

.dns-option span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.dns-option input {
  min-height: 46px;
  width: min(360px, 100%);
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
}

.dns-detail-grid {
  display: grid;
  grid-template-columns: minmax(180px, 230px) minmax(0, 1fr) minmax(0, 1.2fr) 150px;
  gap: 10px;
  align-items: end;
  margin-top: 12px;
}

.dns-detail-grid label {
  display: grid;
  gap: 8px;
  margin: 0;
}

.dns-detail-grid label span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.dns-detail-grid input,
.dns-detail-grid select {
  min-height: 46px;
  width: 100%;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
}

.dns-detail-grid .check-label {
  display: flex;
  min-height: 46px;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.dns-detail-grid .check-label input {
  width: auto;
  min-height: auto;
}

.slaac-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px 110px;
  gap: 10px;
  align-items: end;
}

.slaac-form-grid label {
  display: grid;
  gap: 8px;
  margin: 0;
}

.slaac-form-grid label span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.slaac-form-grid input {
  min-height: 46px;
  width: 100%;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
}

.slaac-form-grid button {
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  font-weight: 800;
}

.result-hero > div:first-child,
.ip-lookup-hero > div:first-child,
.domain-lookup-hero > div:first-child,
.http-result-hero > div:first-child,
.cidr-result-hero > div:first-child,
.slaac-result-hero > div:first-child,
.port-result-hero > div:first-child,
.ssl-result-hero > div:first-child {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.result-hero > *,
.ip-lookup-hero > *,
.domain-lookup-hero > *,
.http-result-hero > *,
.cidr-result-hero > *,
.slaac-result-hero > *,
.port-result-hero > *,
.ssl-result-hero > *,
.current-ip-hero > *,
.ip-facts > * {
  min-width: 0;
}

.result-hero span,
.ip-lookup-hero span,
.domain-lookup-hero span,
.http-result-hero span,
.cidr-result-hero span,
.slaac-result-hero span,
.port-result-hero span,
.ssl-result-hero span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.result-hero strong,
.ip-lookup-hero strong#result-ip,
.domain-lookup-hero strong#result-domain,
.http-result-hero strong#result-url,
.cidr-result-hero strong#result-network,
.slaac-result-hero strong#result-address,
.port-result-hero strong#result-target,
.ssl-result-hero strong#result-host {
  color: var(--primary);
  font-family:
    "SFMono-Regular", Consolas, "Liberation Mono", Menlo, ui-monospace,
    monospace;
  font-size: clamp(34px, 6vw, 62px);
  line-height: 1;
  overflow-wrap: anywhere;
}

.http-result-hero strong#result-url,
.slaac-result-hero strong#result-address {
  font-size: clamp(28px, 5vw, 52px);
}

.ip-lookup-hero strong#result-ip {
  font-size: clamp(38px, 6vw, 68px);
}

.result-hero em,
.ip-lookup-hero em,
.domain-lookup-hero em,
.http-result-hero em,
.cidr-result-hero em,
.slaac-result-hero em,
.port-result-hero em,
.ssl-result-hero em {
  color: #233876;
  font-style: normal;
  font-weight: 800;
}

.port-form-grid label {
  display: grid;
  gap: 8px;
  margin: 0;
}

.port-form-grid label span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.port-form-grid input,
.port-form-grid select {
  min-height: 46px;
  width: 100%;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
}

.port-form-grid button {
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  font-weight: 800;
}

.port-form-grid input:focus,
.port-form-grid select:focus,
.http-form-grid input:focus,
.http-form-grid select:focus,
.dns-option input:focus,
.dns-detail-grid input:focus,
.dns-detail-grid select:focus {
  border-color: var(--primary);
  outline: 3px solid rgba(37, 99, 235, 0.15);
}

.port-presets {
  margin-top: 14px;
}


.action-list {
  display: grid;
  gap: 10px;
}

.action-list a,
.action-list button {
  min-height: 44px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #173986;
  cursor: pointer;
  font-weight: 800;
  text-align: left;
}

.action-list a:hover,
.action-list button:hover {
  border-color: var(--primary);
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.section-head h2 {
  margin: 0;
  font-size: 26px;
  overflow-wrap: anywhere;
}

.section-head p:not(.section-label) {
  max-width: 680px;
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.current-ip-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 16px;
  align-items: stretch;
  margin-bottom: 14px;
  padding: 22px;
  border: 1px solid #d7d88f;
  border-radius: 8px;
  background: #fffef0;
}

.current-ip-hero div:first-child {
  display: grid;
  gap: 8px;
}

.current-ip-hero span,
.summary-cards span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.current-ip-hero strong#detail-ip {
  color: #0614d8;
  font-family:
    "SFMono-Regular", Consolas, "Liberation Mono", Menlo, ui-monospace,
    monospace;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1;
  overflow-wrap: anywhere;
}

.current-ip-hero em {
  color: #233876;
  font-family:
    "SFMono-Regular", Consolas, "Liberation Mono", Menlo, ui-monospace,
    monospace;
  font-style: normal;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.ip-facts {
  display: grid;
  gap: 8px;
}

.ip-facts span {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid #e4e6a7;
  border-radius: 8px;
  background: #fff;
}

.ip-facts strong {
  color: var(--text);
  font-size: 16px;
  overflow-wrap: anywhere;
}

.summary-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.summary-cards article {
  display: grid;
  gap: 8px;
  min-height: 96px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.summary-cards strong {
  overflow-wrap: anywhere;
  font-family:
    "SFMono-Regular", Consolas, "Liberation Mono", Menlo, ui-monospace;
}

.summary-cards button {
  width: fit-content;
  min-height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  font-weight: 800;
}

.split-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.info-table {
  display: grid;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.info-table div {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  border-top: 1px solid var(--line);
}

.info-table div:first-child {
  border-top: 0;
}

.info-table span,
.info-table strong {
  padding: 12px;
  overflow-wrap: anywhere;
}

.info-table span {
  background: #eef2f7;
  color: #3d4c63;
  font-weight: 800;
}

.info-table strong {
  background: #fff;
  font-family:
    "SFMono-Regular", Consolas, "Liberation Mono", Menlo, ui-monospace,
    monospace;
  font-weight: 600;
}

.compact-info {
  grid-template-columns: 1fr;
}

.future-details {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.future-details summary {
  cursor: pointer;
  padding: 14px 16px;
  color: #173986;
  font-weight: 800;
}

.future-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 0 16px 16px;
}

.future-grid span {
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--neutral-bg);
  color: #475569;
  font-weight: 700;
}

.lookup label {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.lookup-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px;
  gap: 10px;
}

.lookup input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
}

.lookup input:focus {
  border-color: var(--primary);
  outline: 3px solid rgba(37, 99, 235, 0.15);
}

.lookup button,
.ghost,
.kv button {
  min-height: 40px;
  border: 0;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  font-weight: 700;
}

.lookup button:hover,
.ghost:hover,
.kv button:hover {
  background: var(--primary-dark);
}

.samples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.samples button {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  background: var(--panel-soft);
  color: var(--muted);
  font-size: 12px;
}

.consent-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid #f2c078;
  border-radius: 8px;
  background: #fff7ed;
  color: #5f3b12;
  line-height: 1.6;
}

.consent-check input {
  width: 18px;
  min-width: 18px;
  min-height: 18px;
  margin-top: 3px;
}

.consent-check span {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
}

.consent-check a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.result-panel,
.tools {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.result-panel {
  padding: 22px;
}

.result-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.result-head h2,
.tools h2 {
  margin: 0;
  font-size: 26px;
  letter-spacing: 0;
}

.result-head p:not(.section-label) {
  margin: 8px 0 0;
  color: var(--muted);
}

.ghost {
  min-width: 112px;
  padding: 0 14px;
  background: #e9eff8;
  color: var(--text);
}

.ghost:hover {
  background: #dce6f5;
}

.summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.badge-ok {
  background: var(--ok-bg);
  color: var(--ok);
}

.badge-info {
  background: var(--info-bg);
  color: var(--info);
}

.badge-neutral {
  background: var(--neutral-bg);
  color: #475569;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.panel {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.panel.wide {
  grid-column: 1 / -1;
}

.panel-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.panel-title h3 {
  margin: 0;
  font-size: 17px;
}

.panel-title span {
  color: var(--muted);
  font-size: 12px;
}

.kv {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 11px 0;
  border-top: 1px solid var(--line);
}

.kv:first-child {
  border-top: 0;
}

.kv span {
  color: var(--muted);
}

.kv strong,
.mono {
  overflow-wrap: anywhere;
  font-family:
    "SFMono-Regular", Consolas, "Liberation Mono", Menlo, ui-monospace,
    monospace;
}

.kv button {
  min-height: 32px;
  padding: 0 10px;
  font-size: 12px;
}

.table-wrap {
  overflow-x: auto;
}

.muted-inline {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.pager {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 12px;
}

.pager button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #173986;
  cursor: pointer;
  font-weight: 800;
}

.pager button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.pager span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th,
td {
  padding: 11px 10px;
  border-top: 1px solid var(--line);
  overflow-wrap: anywhere;
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.checks {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.checks span,
.empty {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
}

.tools {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
  margin-top: 18px;
  padding: 22px;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.tool-grid a,
.calc-strip > div {
  display: grid;
  gap: 8px;
  min-height: 100px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  font-weight: 800;
}

.tool-grid a:hover {
  border-color: #aac0df;
  background: #fff;
}

.tool-grid span,
.calc-strip span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
}

.tool-grid em {
  width: fit-content;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--neutral-bg);
  color: #475569;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.calc-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  transform: translateY(20px);
  opacity: 0;
  padding: 12px 14px;
  border-radius: 8px;
  background: #172033;
  color: #fff;
  transition:
    transform 160ms ease,
    opacity 160ms ease;
}

.toast.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.site-footer {
  margin: 28px 0 40px;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.site-footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.site-footer a {
  color: #173986;
  font-weight: 800;
}

.site-footer a:hover {
  color: var(--primary);
}

@media (max-width: 860px) {
  .topbar,
  .hero,
  .ip-hero,
  .home-grid,
  .dashboard-grid,
  .workspace,
  .tools {
    grid-template-columns: 1fr;
  }

  .topbar {
    align-items: flex-start;
    padding-top: 16px;
  }

  .topnav {
    width: 100%;
    overflow-x: auto;
  }

  .hero {
    padding-top: 32px;
  }

  .grid,
  .tool-grid,
  .flow-grid,
  .calc-strip,
  .split-panels,
  .summary-cards,
  .current-ip-hero,
  .ip-lookup-hero,
  .domain-lookup-hero,
  .port-result-hero,
  .ssl-result-hero,
  .port-form-grid,
  .http-form-grid,
  .dns-detail-grid,
  .http-result-hero,
  .cidr-result-hero,
  .slaac-form-grid,
  .slaac-result-hero,
  .future-grid {
    grid-template-columns: 1fr;
  }

  .kv {
    grid-template-columns: 1fr;
  }

  .result-head {
    flex-direction: column;
  }

  .sidebar {
    position: static;
  }

  .ghost {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .shell {
    width: min(100% - 20px, 1180px);
  }

  .hero h1 {
    font-size: 34px;
  }

  .lookup-row {
    grid-template-columns: 1fr;
  }

  .lookup button {
    width: 100%;
  }

  .result-panel,
  .tools,
  .intro-panel,
  .detail-section,
  .current-ip-page,
  .tool-page,
  .lookup {
    padding: 16px;
  }

  .info-table div {
    grid-template-columns: 1fr;
  }
}
