/* ==========================================================================
   FubiIP Flagship Content Hub & Diagnostic Workbench Stylesheet
   1360px Architectural Layout · Pure #FFFFFF Light / #0C0D10 Obsidian Dark
   ========================================================================== */

html[data-theme="light"] {
  --ch-bg: #FFFFFF;
  --ch-surface: #FAF7F2;
  --ch-surface-2: #F5F1EA;
  --ch-ink: #181715;
  --ch-ink-2: #3D3A36;
  --ch-sub: #423D37;
  --ch-muted: #5C554D;
  --ch-line: rgba(24, 23, 21, 0.09);
  --ch-line-strong: rgba(24, 23, 21, 0.16);
  --ch-brand: #A64B17;
  --ch-brand-hover: #8F3E11;
  --ch-cta: #A64B17;
  --ch-cta-hover: #8F3E11;
  --ch-brand-soft: rgba(181, 84, 30, 0.08);
  --ch-brand-border: rgba(181, 84, 30, 0.26);
  --ch-ok: #065F46;
  --ch-ok-soft: rgba(6, 95, 70, 0.055);
  --ch-ok-border: rgba(6, 95, 70, 0.28);
  --ch-warn: #92400E;
  --ch-warn-soft: rgba(180, 83, 9, 0.06);
  --ch-warn-border: rgba(180, 83, 9, 0.28);
  --ch-err: #B91C1C;
  --ch-err-soft: rgba(185, 28, 28, 0.055);
  --ch-err-border: rgba(185, 28, 28, 0.28);
  --ch-bone-a: #F2EDE5;
  --ch-bone-b: #E6DFD4;
}

html:not([data-theme="light"]) {
  --ch-bg: #0D0E10;
  --ch-surface: #131518;
  --ch-surface-2: #17191D;
  --ch-ink: #EBE7E0;
  --ch-ink-2: #C9C3B8;
  --ch-sub: #9E9990;
  --ch-muted: #948E84;
  --ch-line: rgba(255, 255, 255, 0.07);
  --ch-line-strong: rgba(255, 255, 255, 0.14);
  --ch-brand: #D97736;
  --ch-brand-hover: #E38547;
  --ch-cta: #A64B17;
  --ch-cta-hover: #BA561D;
  --ch-brand-soft: rgba(217, 119, 54, 0.12);
  --ch-brand-border: rgba(217, 119, 54, 0.30);
  --ch-ok: #34D399;
  --ch-ok-soft: rgba(16, 185, 129, 0.09);
  --ch-ok-border: rgba(52, 211, 153, 0.28);
  --ch-warn: #FBBF24;
  --ch-warn-soft: rgba(245, 158, 11, 0.10);
  --ch-warn-border: rgba(251, 191, 36, 0.30);
  --ch-err: #F87171;
  --ch-err-soft: rgba(239, 68, 68, 0.10);
  --ch-err-border: rgba(248, 113, 113, 0.32);
  --ch-bone-a: #17191D;
  --ch-bone-b: #1F2228;
}

html[data-theme="light"] body.ch-body,
html:not([data-theme="light"]) body.ch-body {
  background: var(--ch-bg) !important;
  background-image: none !important;
  color: var(--ch-ink);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.ch-body .ed-topbar {
  background: color-mix(in srgb, var(--ch-bg) 92%, transparent) !important;
  border-bottom: 1px solid var(--ch-line) !important;
  backdrop-filter: blur(12px);
}
body.ch-body .tb-inner {
  max-width: 1360px !important;
  margin: 0 auto;
  padding-left: clamp(20px, 3vw, 40px) !important;
  padding-right: clamp(20px, 3vw, 40px) !important;
}
body.ch-body .v31-footer {
  max-width: 1360px !important;
  width: 100%;
  margin: 0 auto;
  padding: 20px clamp(20px, 3vw, 40px) 36px !important;
  border-top: 1px solid var(--ch-line);
  background: transparent !important;
}

.ch-wrap {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 28px clamp(20px, 3vw, 40px) 64px;
  flex: 1;
}

.ch-crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ch-sub);
  margin-bottom: 20px;
}
.ch-crumb a {
  color: var(--ch-sub);
  text-decoration: none;
  transition: color 0.15s ease;
}
.ch-crumb a:hover { color: var(--ch-brand); }

/* Open Editorial Header (No Heavy Beige Box) */
.ch-hero {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--ch-line);
  border-radius: 0;
  padding: 4px 0 28px;
  margin-bottom: 28px;
}
.ch-eyebrow-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.ch-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--ch-brand-soft);
  border: 1px solid var(--ch-brand-border);
  color: var(--ch-brand);
  font-size: 11.5px;
  font-weight: 650;
  letter-spacing: 0.03em;
}
.ch-hero > .ch-badge { margin-bottom: 14px; }
.ch-eyebrow-row > .ch-badge { margin-bottom: 0; }
.ch-eyebrow-meta {
  font-size: 12.5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: var(--ch-sub);
}
.ch-hero h1 {
  font-size: clamp(26px, 3.1vw, 38px);
  line-height: 1.22;
  font-weight: 760;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  color: var(--ch-ink);
}
.ch-lead {
  font-size: 15.5px;
  line-height: 1.68;
  color: var(--ch-sub);
  margin: 0;
  max-width: 960px;
}

/* Open Sections & Architectural Cards (4px sharp corners) */
.ch-section {
  padding: 28px 0;
  border-bottom: 1px solid var(--ch-line);
}
.ch-section:last-child { border-bottom: 0; padding-bottom: 8px; }
.ch-sec-head { margin-bottom: 18px; }
.ch-sec-head h2 {
  font-size: 20px;
  font-weight: 720;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
  color: var(--ch-ink);
}
.ch-sec-head p {
  margin: 0;
  font-size: 14px;
  color: var(--ch-sub);
}

.ch-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.ch-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ch-grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }

.ch-card {
  background: var(--ch-bg);
  border: 1px solid var(--ch-line);
  border-radius: 4px;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  transition: border-color 0.16s ease, background 0.16s ease;
}
.ch-card:hover {
  border-color: var(--ch-line-strong);
  background: var(--ch-surface);
}
.ch-card .ch-badge { margin-bottom: 10px; }
.ch-card h3 {
  font-size: 17px;
  line-height: 1.38;
  font-weight: 680;
  margin: 0 0 8px;
  color: var(--ch-ink);
}
.ch-card-title-link,
.ch-card-link { color: inherit; text-decoration: none; }
.ch-card-title-link:hover,
.ch-card-link:hover { color: var(--ch-brand); }
.ch-card p { font-size: 14px; line-height: 1.62; color: var(--ch-sub); margin: 0; }

/* Controls & Buttons (6px subtle radius) */
.ch-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 6px;
  font-size: 13.5px;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid var(--ch-line-strong);
  background: var(--ch-bg);
  color: var(--ch-ink);
  white-space: nowrap;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.ch-btn:hover { border-color: var(--ch-brand); color: var(--ch-brand); }
.ch-btn:disabled { opacity: 0.72; cursor: wait; }
.ch-btn.pri {
  background: var(--ch-cta);
  border-color: var(--ch-cta);
  color: #FFFFFF !important;
}
.ch-btn.pri:hover { background: var(--ch-cta-hover); border-color: var(--ch-cta-hover); color: #FFFFFF !important; }

.ch-btn-spin {
  display: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #FFFFFF;
  animation: chSpin 0.68s linear infinite;
}
@keyframes chSpin { to { transform: rotate(360deg); } }

.ch-field-label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ch-sub);
  margin-bottom: 6px;
}
.ch-input-row { display: flex; flex-wrap: wrap; gap: 10px; }
.ch-input, .ch-select {
  padding: 10px 13px;
  border-radius: 6px;
  border: 1px solid var(--ch-line-strong);
  background: var(--ch-bg);
  color: var(--ch-ink);
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.15s ease;
}
.ch-input:focus, .ch-select:focus { outline: none; border-color: var(--ch-brand); }

/* ==========================================================================
   Flagship IP & Environment Audit Workbench (#ip-tool-app)
   ========================================================================== */
.ip-workbench {
  position: relative;
  border: 1px solid var(--ch-line);
  border-radius: 4px;
  background: var(--ch-bg);
  overflow: hidden;
}

.ip-scan-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  opacity: 0;
  pointer-events: none;
  background: linear-gradient(90deg, transparent 0%, var(--ch-brand) 48%, #FB923C 62%, transparent 100%);
  background-size: 200% 100%;
  transition: opacity 0.16s ease;
  z-index: 4;
}
#ip-tool-app.is-checking .ip-scan-line {
  opacity: 1;
  animation: chScanBar 1.15s linear infinite;
}
@keyframes chScanBar {
  0% { background-position: 180% 0; }
  100% { background-position: -80% 0; }
}

.ip-wb-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 20px;
  background: var(--ch-surface);
  border-bottom: 1px solid var(--ch-line);
}
.ip-seg {
  display: inline-flex;
  padding: 3px;
  border-radius: 7px;
  background: var(--ch-surface-2);
  border: 1px solid var(--ch-line);
  gap: 3px;
}
.ip-seg-btn {
  border: 0;
  background: transparent;
  color: var(--ch-sub);
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  padding: 6px 13px;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.ip-seg-btn:hover { color: var(--ch-ink); }
.ip-seg-btn.is-active {
  background: var(--ch-bg);
  color: var(--ch-ink);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}
.ip-mode-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ch-sub);
  background: var(--ch-bg);
  border: 1px solid var(--ch-line);
}
.ip-mode-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ch-brand);
}
.ip-mode-pill[data-mode-tone="remote"] {
  color: var(--ch-brand);
  border-color: var(--ch-brand-border);
  background: var(--ch-brand-soft);
}

.ip-query-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--ch-line);
  background: var(--ch-bg);
}
.ip-input-wrap {
  position: relative;
  flex: 1;
  min-width: 260px;
  display: flex;
  align-items: center;
}
.ip-input-icon {
  position: absolute;
  left: 13px;
  width: 16px;
  height: 16px;
  color: var(--ch-muted);
  pointer-events: none;
}
.ip-query-input {
  width: 100%;
  padding: 10px 14px 10px 38px;
  border-radius: 6px;
  border: 1px solid var(--ch-line-strong);
  background: var(--ch-bg);
  color: var(--ch-ink);
  font-size: 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  transition: border-color 0.15s ease;
}
.ip-query-input::placeholder {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  color: var(--ch-muted);
}
.ip-query-input:focus { outline: none; border-color: var(--ch-brand); }
.ip-query-actions { display: flex; flex-wrap: wrap; gap: 8px; }
#ip-tool-app.is-checking #ip-check-submit .ch-btn-spin { display: inline-block; }

.ip-inline-err {
  padding: 10px 20px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ch-err);
  background: var(--ch-err-soft);
  border-bottom: 1px solid var(--ch-err-border);
}

/* 2-Column Split: Left Verdict Seal Cabin (36%) + Right Hairline Matrix (64%) */
.ip-wb-body {
  display: grid;
  grid-template-columns: minmax(320px, 36%) minmax(0, 64%);
  align-items: stretch;
}
.ip-verdict-pane {
  padding: 24px 24px 22px;
  background: var(--ch-surface);
  border-right: 1px solid var(--ch-line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}
.ip-verdict-top {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.ip-seal-ring {
  position: relative;
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ch-bg);
  border: 1.5px solid var(--ch-line-strong);
  color: var(--ch-sub);
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}
.ip-seal-ring svg { width: 22px; height: 22px; }
.ip-verdict-pane[data-verdict-tone="ok"] .ip-seal-ring {
  color: var(--ch-ok);
  border-color: var(--ch-ok-border);
  background: var(--ch-ok-soft);
}
.ip-verdict-pane[data-verdict-tone="warn"] .ip-seal-ring {
  color: var(--ch-warn);
  border-color: var(--ch-warn-border);
  background: var(--ch-warn-soft);
}
.ip-verdict-pane[data-verdict-tone="err"] .ip-seal-ring {
  color: var(--ch-err);
  border-color: var(--ch-err-border);
  background: var(--ch-err-soft);
}
#ip-tool-app.is-checking .ip-seal-ring {
  color: var(--ch-brand);
  border-color: var(--ch-brand);
}
#ip-tool-app.is-checking .ip-seal-ring::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1.5px solid var(--ch-brand);
  opacity: 0;
  animation: chRadarPulse 1.3s ease-out infinite;
}
@keyframes chRadarPulse {
  0% { transform: scale(0.88); opacity: 0.65; }
  100% { transform: scale(1.24); opacity: 0; }
}

.ip-verdict-titles { min-width: 0; flex: 1; }
.ip-verdict-kicker {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ch-muted);
  margin-bottom: 4px;
}
.ip-verdict-title {
  margin: 0 0 5px;
  font-size: 19px;
  line-height: 1.3;
  font-weight: 750;
  color: var(--ch-ink);
  transition: opacity 0.18s ease;
}
.ip-verdict-pane[data-verdict-tone="ok"] .ip-verdict-title { color: var(--ch-ok); }
.ip-verdict-pane[data-verdict-tone="warn"] .ip-verdict-title { color: var(--ch-warn); }
.ip-verdict-pane[data-verdict-tone="err"] .ip-verdict-title { color: var(--ch-err); }
.ip-verdict-sub {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ch-sub);
}

.ip-target-box {
  padding: 13px 15px;
  border-radius: 4px;
  background: var(--ch-bg);
  border: 1px solid var(--ch-line);
}
.ip-target-ip {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 20px;
  font-weight: 720;
  letter-spacing: -0.01em;
  color: var(--ch-ink);
  word-break: break-all;
  margin-bottom: 6px;
}
.ip-target-geo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ch-sub);
}
.ip-cc-tag {
  display: inline-flex;
  align-items: center;
  padding: 1px 7px;
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11.5px;
  font-weight: 700;
  background: var(--ch-surface-2);
  border: 1px solid var(--ch-line-strong);
  color: var(--ch-ink);
}

.ip-diag-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ip-diag-list li {
  position: relative;
  padding-left: 20px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ch-ink-2);
}
.ip-diag-list li::before {
  content: "•";
  position: absolute;
  left: 4px;
  top: 0;
  font-weight: 700;
  color: var(--ch-muted);
}
.ip-diag-list li.is-ok::before { content: "✓"; left: 2px; color: var(--ch-ok); }
.ip-diag-list li.is-warn::before { content: "!"; left: 5px; color: var(--ch-warn); }
.ip-diag-list li.is-err::before { content: "✕"; left: 2px; color: var(--ch-err); }
.ip-diag-list li.is-muted { color: var(--ch-muted); }

.ip-verdict-foot { padding-top: 4px; }
.ip-copy-btn { width: 100%; justify-content: center; }
.ip-copy-btn svg { width: 15px; height: 15px; }
.ip-copy-btn.is-copied {
  border-color: var(--ch-ok);
  color: var(--ch-ok);
  background: var(--ch-ok-soft);
}

/* Right 2x3 Hairline Matrix (Zero Floating Gray Boxes) */
.ip-hairline-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  background: var(--ch-bg);
}
.ip-hcell {
  padding: 20px 22px;
  border-bottom: 1px solid var(--ch-line);
  border-right: 1px solid var(--ch-line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  min-height: 112px;
  transition: background 0.16s ease, opacity 0.18s ease;
}
.ip-hcell:nth-child(2n) { border-right: 0; }
.ip-hcell:nth-last-child(-n + 2) { border-bottom: 0; }
.ip-hcell.is-muted-cell { background: var(--ch-surface); }
.ip-hcell.is-muted-cell .ip-hcell-main {
  color: var(--ch-sub);
  font-weight: 600;
  font-size: 14px;
}

.ip-hcell-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.ip-hcell-label {
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.02em;
  color: var(--ch-sub);
}

.ip-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 650;
  border: 1px solid var(--ch-line);
  background: var(--ch-surface);
  color: var(--ch-sub);
  white-space: nowrap;
  transition: opacity 0.18s ease;
}
.ip-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.85;
}
.ip-pill[data-tone="ok"] {
  color: var(--ch-ok);
  background: var(--ch-ok-soft);
  border-color: var(--ch-ok-border);
}
.ip-pill[data-tone="warn"] {
  color: var(--ch-warn);
  background: var(--ch-warn-soft);
  border-color: var(--ch-warn-border);
}
.ip-pill[data-tone="err"] {
  color: var(--ch-err);
  background: var(--ch-err-soft);
  border-color: var(--ch-err-border);
}

.ip-hcell-val {
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.ip-hcell-main {
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ch-ink);
  word-break: break-word;
}
.ip-hcell-sub {
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--ch-sub);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.ip-inline-act {
  background: none;
  border: 0;
  padding: 0;
  color: var(--ch-brand);
  font-size: 12.5px;
  font-weight: 650;
  font-family: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Skeleton Shimmer Bars (.ch-bone) during .is-checking */
.ch-bone {
  display: none;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--ch-bone-a) 20%, var(--ch-bone-b) 50%, var(--ch-bone-a) 80%);
  background-size: 220% 100%;
  animation: chBoneShimmer 1.25s ease-in-out infinite;
}
.ch-bone-lg { display: none; height: 18px; width: 76%; margin-bottom: 7px; }
.ch-bone-sm { display: none; height: 12px; width: 54%; }
@keyframes chBoneShimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}
#ip-tool-app.is-checking .ip-hcell-val > .ip-hcell-main,
#ip-tool-app.is-checking .ip-hcell-val > .ip-hcell-sub {
  display: none;
}
#ip-tool-app.is-checking .ip-hcell-val > .ch-bone {
  display: block;
}
#ip-tool-app.is-checking .ip-pill {
  color: transparent !important;
  border-color: transparent !important;
  background: linear-gradient(90deg, var(--ch-bone-a) 20%, var(--ch-bone-b) 50%, var(--ch-bone-a) 80%) !important;
  background-size: 220% 100% !important;
  animation: chBoneShimmer 1.25s ease-in-out infinite;
}
#ip-tool-app.is-checking .ip-pill::before { opacity: 0; }

/* Restrained Single-Row Diagnostic Status Strip */
.ip-diag-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  margin-bottom: 36px;
  padding: 11px 18px;
  border-radius: 4px;
  border: 1px solid var(--ch-line);
  background: var(--ch-surface);
  font-size: 13.5px;
  color: var(--ch-ink-2);
  transition: border-color 0.18s ease, background 0.18s ease;
}
.ip-diag-strip-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.ip-strip-dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ch-ok);
}
.ip-diag-strip[data-strip-tone="warn"] {
  border-color: var(--ch-warn-border);
  background: var(--ch-warn-soft);
}
.ip-diag-strip[data-strip-tone="warn"] .ip-strip-dot { background: var(--ch-warn); }
.ip-diag-strip[data-strip-tone="err"] {
  border-color: var(--ch-err-border);
  background: var(--ch-err-soft);
}
.ip-diag-strip[data-strip-tone="err"] .ip-strip-dot { background: var(--ch-err); }
.ip-diag-strip-link {
  font-weight: 650;
  color: var(--ch-brand);
  text-decoration: none;
  white-space: nowrap;
}
.ip-diag-strip-link:hover { text-decoration: underline; }

/* Address Validator Workbench & Compact CTA Strip */
.ch-workbench-panel {
  border: 1px solid var(--ch-line);
  border-radius: 4px;
  background: var(--ch-bg);
  margin-bottom: 24px;
  overflow: hidden;
}
.ch-wb-head {
  padding: 14px 22px;
  background: var(--ch-surface);
  border-bottom: 1px solid var(--ch-line);
}
.ch-wb-head h2 { margin: 0; font-size: 16.5px; font-weight: 700; color: var(--ch-ink); }
.ch-wb-inner { padding: 20px 22px; }

.ch-kv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.ch-kv {
  background: var(--ch-surface);
  border: 1px solid var(--ch-line);
  border-radius: 4px;
  padding: 13px 15px;
}
.ch-kv.is-ok { border-color: var(--ch-ok-border); background: var(--ch-ok-soft); }
.ch-kv.is-warn { border-color: var(--ch-warn-border); background: var(--ch-warn-soft); }
.ch-kv.is-err { border-color: var(--ch-err-border); background: var(--ch-err-soft); }
.ch-kv small { display: block; font-size: 12px; color: var(--ch-sub); margin-bottom: 4px; }
.ch-kv strong { font-size: 14px; color: var(--ch-ink); word-break: break-word; }

.ch-cta-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  margin: 24px 0;
  border-radius: 4px;
  border: 1px solid var(--ch-line);
  background: var(--ch-surface);
}
.ch-cta-strip-copy { display: flex; flex-direction: column; gap: 4px; max-width: 780px; }
.ch-cta-strip-copy strong { font-size: 15.5px; color: var(--ch-ink); }
.ch-cta-strip-copy span { font-size: 13.5px; color: var(--ch-sub); line-height: 1.55; }
.ch-cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* 2-Column Whitepaper Layout (240px Sticky Left TOC + Pure White Prose) */
.ch-doc-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
  padding-top: 8px;
}
.ch-doc-aside { position: sticky; top: 84px; }
.ch-doc-toc-box {
  border-left: 1px solid var(--ch-line);
  padding-left: 16px;
}
.ch-doc-toc-title {
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ch-muted);
  margin-bottom: 12px;
}
.ch-doc-toc {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ch-doc-toc a {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--ch-sub);
  text-decoration: none;
  padding: 3px 0;
  transition: color 0.15s ease;
}
.ch-doc-toc a span {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  color: var(--ch-muted);
}
.ch-doc-toc a:hover { color: var(--ch-brand); }
.ch-doc-toc a:hover span { color: var(--ch-brand); }
.ch-doc-toc-foot {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--ch-line);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ch-doc-toc-foot a {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ch-brand);
  text-decoration: none;
}
.ch-doc-toc-foot a:hover { text-decoration: underline; }

.ch-doc-main { min-width: 0; }
.ch-doc-sec {
  padding: 0 0 32px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--ch-line);
  scroll-margin-top: 88px;
}
.ch-doc-sec:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 8px; }
.ch-doc-sec h2 {
  font-size: 21px;
  font-weight: 740;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
  color: var(--ch-ink);
}
.ch-doc-sec p {
  font-size: 15px;
  line-height: 1.76;
  color: var(--ch-ink-2);
  margin: 0 0 12px;
}
.ch-doc-sec ul { margin: 10px 0 4px; padding-left: 20px; }
.ch-doc-sec li {
  font-size: 14.5px;
  line-height: 1.72;
  color: var(--ch-ink-2);
  margin-bottom: 8px;
}

/* Tables, Diagrams, Clean Accordion FAQ & Country Pills */
.ch-table-wrap {
  overflow-x: auto;
  margin: 14px 0 4px;
  border: 1px solid var(--ch-line);
  border-radius: 4px;
}
.ch-table { width: 100%; border-collapse: collapse; font-size: 14px; background: var(--ch-bg); }
.ch-table th, .ch-table td {
  border-bottom: 1px solid var(--ch-line);
  padding: 12px 15px;
  text-align: left;
  vertical-align: top;
}
.ch-table tr:last-child td { border-bottom: 0; }
.ch-table th {
  background: var(--ch-surface);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ch-sub);
}
.ch-tag-ok { color: var(--ch-ok); font-weight: 650; }
.ch-tag-warn { color: var(--ch-warn); font-weight: 650; }
.ch-tag-err { color: var(--ch-err); font-weight: 650; }

.ch-diagram {
  margin: 0 0 28px;
  padding: 18px 20px;
  background: var(--ch-surface);
  border: 1px solid var(--ch-line);
  border-radius: 4px;
}
.ch-diagram figcaption { font-size: 12.5px; color: var(--ch-sub); text-align: center; margin-top: 10px; }
.ch-svg-card { fill: var(--ch-bg); }
.ch-svg-title { fill: var(--ch-ink); }
.ch-svg-sub { fill: var(--ch-sub); }

.ch-faq-stack { border-top: 1px solid var(--ch-line); }
.ch-faq-det { border-bottom: 1px solid var(--ch-line); }
.ch-faq-det summary {
  list-style: none;
  cursor: pointer;
  padding: 15px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.ch-faq-det summary::-webkit-details-marker { display: none; }
.ch-faq-det summary h3 {
  margin: 0;
  font-size: 15.5px;
  font-weight: 680;
  color: var(--ch-ink);
}
.ch-faq-det summary::after {
  content: "+";
  font-size: 18px;
  font-weight: 500;
  color: var(--ch-muted);
  flex-shrink: 0;
}
.ch-faq-det[open] summary::after { content: "−"; color: var(--ch-brand); }
.ch-faq-ans { padding: 0 0 16px; }
.ch-faq-ans p { margin: 0; font-size: 14.5px; line-height: 1.7; color: var(--ch-sub); }

.ch-faq-item { border-bottom: 1px solid var(--ch-line); padding: 14px 0; }
.ch-faq-item:last-child { border-bottom: 0; }
.ch-faq-item h3 { margin: 0 0 6px; font-size: 15.5px; color: var(--ch-ink); }
.ch-faq-item p { margin: 0; font-size: 14px; line-height: 1.68; color: var(--ch-sub); }

.ch-country-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border: 1px solid var(--ch-line);
  border-radius: 4px;
  background: var(--ch-bg);
  color: var(--ch-ink);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 550;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.ch-country-pill:hover, .ch-country-pill.is-active {
  border-color: var(--ch-brand);
  background: var(--ch-surface);
  color: var(--ch-brand);
}
.ch-country-pill code { font-size: 11.5px; color: var(--ch-sub); }

.ch-disclaimer {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 16px clamp(20px, 3vw, 40px) 22px;
  font-size: 12px;
  line-height: 1.65;
  color: var(--ch-sub);
  border-top: 1px solid var(--ch-line);
}

@media (max-width: 980px) {
  .ip-wb-body { grid-template-columns: 1fr; }
  .ip-verdict-pane { border-right: 0; border-bottom: 1px solid var(--ch-line); }
  .ch-doc-layout { grid-template-columns: 1fr; gap: 24px; }
  .ch-doc-aside { position: static; }
  .ch-doc-toc-box {
    border-left: 0;
    border: 1px solid var(--ch-line);
    border-radius: 4px;
    padding: 14px 16px;
    background: var(--ch-surface);
  }
}

@media (max-width: 720px) {
  .ch-grid-2, .ch-grid-3 { grid-template-columns: 1fr; }
  .ch-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ip-hairline-grid { grid-template-columns: 1fr; }
  .ip-hcell { border-right: 0 !important; border-bottom: 1px solid var(--ch-line) !important; }
  .ip-hcell:last-child { border-bottom: 0 !important; }
}

/* 顶栏：语言按钮固定带地球图标（EN 页 ≤1480px 文字被隐藏时不再是空白方块） */
.ch-body .lang-cur-btn { display: inline-flex; align-items: center; gap: 6px; }
.ch-body .lang-cur-btn .ch-lang-ic { vertical-align: 0; }
/* 手机端：内容页顶栏 4 个文字按钮 + 语言 + 主题会撑出 375px 屏，收起「订单查询 / 帮助与客服」（页脚与客服浮标仍可达） */
@media (max-width: 640px) {
  .ch-body .topnav { gap: 6px; flex-wrap: wrap; }
  .ch-body .topnav .v3-tb-btn[href$="/orders.html"],
  .ch-body .topnav .v3-tb-btn[href$="/help.html"] { display: none; }
  .ch-body .lang-cur-btn #lang-cur-text,
  .ch-body .theme-toggle [data-theme-label],
  .ch-body .theme-toggle span + span { display: none !important; }
  .ch-body .theme-toggle { white-space: nowrap !important; padding: 0 10px !important; }
}

/* Exact Selector Bindings for render-tools-pages.mjs Workbench & Whitepaper */
.ch-sec-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.ch-sec-meta { font-size: 13px; color: var(--ch-sub); }
.ch-text-link { font-size: 13.5px; font-weight: 650; color: var(--ch-brand); text-decoration: none; }
.ch-text-link:hover { text-decoration: underline; }
.ch-sec-desc { margin: -6px 0 16px; font-size: 14px; line-height: 1.6; color: var(--ch-sub); }
.ch-badge-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ch-brand); display: inline-block; }

.ip-wb-bar {
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  padding: 16px 22px;
}
.ip-wb-modes {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.ip-mode-pill[data-tone="remote"] {
  color: var(--ch-brand);
  border-color: var(--ch-brand-border);
  background: var(--ch-brand-soft);
}
.ip-wb-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0;
}
.ip-input-ic {
  position: absolute;
  left: 13px;
  width: 16px;
  height: 16px;
  color: var(--ch-muted);
  pointer-events: none;
}
.ip-input {
  width: 100%;
  padding-left: 38px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.ip-input::placeholder {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  color: var(--ch-muted);
}
.ip-error-bar {
  padding: 10px 22px;
  font-size: 13.5px;
  font-weight: 550;
  color: var(--ch-err);
  background: var(--ch-err-soft);
  border-bottom: 1px solid var(--ch-err-border);
}

.ip-verdict-top {
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
}
.ip-seal-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.ip-seal-titles { min-width: 0; flex: 1; }
.ip-seal-kicker {
  display: block;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ch-muted);
  margin-bottom: 4px;
}
.ip-addr-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 20px;
  font-weight: 730;
  letter-spacing: -0.01em;
  color: var(--ch-ink);
  word-break: break-all;
  margin-bottom: 8px;
}
.ip-geo-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ch-sub);
}
.ip-cc-badge, .ip-stack-tag {
  display: inline-flex;
  align-items: center;
  padding: 1px 7px;
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11.5px;
  font-weight: 700;
  background: var(--ch-surface-2);
  border: 1px solid var(--ch-line-strong);
  color: var(--ch-ink);
}
.ip-stack-tag { color: var(--ch-sub); font-weight: 600; }

.ip-diag-list li.ip-diag-li {
  padding-left: 0;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.ip-diag-list li.ip-diag-li::before { display: none; }
.ip-li-ic {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 750;
  background: var(--ch-surface-2);
  color: var(--ch-sub);
}
.ip-diag-li[data-li-tone="ok"] .ip-li-ic { background: var(--ch-ok-soft); color: var(--ch-ok); }
.ip-diag-li[data-li-tone="warn"] .ip-li-ic { background: var(--ch-warn-soft); color: var(--ch-warn); }
.ip-diag-li[data-li-tone="err"] .ip-li-ic { background: var(--ch-err-soft); color: var(--ch-err); }
.ip-diag-li[data-li-tone="muted"] { color: var(--ch-muted); }

.ip-hc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.ip-hc-label {
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.02em;
  color: var(--ch-sub);
}
.ip-pill::before { display: none; }
.ip-pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}
.ip-hc-val strong {
  display: block;
  font-size: 15.5px;
  font-weight: 720;
  line-height: 1.35;
  color: var(--ch-ink);
  word-break: break-word;
  transition: opacity 0.18s ease;
}
.ip-hc-sub {
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--ch-sub);
}
.ip-hcell.is-muted-cell .ip-hc-val strong { color: var(--ch-sub); font-weight: 600; font-size: 14px; }

.ch-bone-title { height: 22px; width: 82%; margin-top: 4px; }
.ch-bone-ip { height: 24px; width: 68%; margin-bottom: 8px; }
#ip-tool-app.is-checking .ip-verdict-title,
#ip-tool-app.is-checking .ip-addr-mono,
#ip-tool-app.is-checking .ip-hc-val > strong,
#ip-tool-app.is-checking .ip-hc-sub > span:not(.ch-bone),
#ip-tool-app.is-checking .ip-diag-li > span[data-li-txt] {
  display: none;
}
#ip-tool-app.is-checking .ch-bone-title,
#ip-tool-app.is-checking .ch-bone-ip,
#ip-tool-app.is-checking .ip-hc-val > .ch-bone,
#ip-tool-app.is-checking .ip-hc-sub > .ch-bone,
#ip-tool-app.is-checking .ip-diag-li > .ch-bone {
  display: block;
}
#ip-tool-app.is-checking .ip-pill-dot { opacity: 0; }

.ip-strip-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ip-strip-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.ip-strip-link { font-size: 13px; color: var(--ch-sub); text-decoration: none; white-space: nowrap; }
.ip-strip-link:hover { color: var(--ch-brand); text-decoration: underline; }
.ip-strip-link.is-strong { font-weight: 700; color: var(--ch-brand); }

.ch-doc-sticky {
  border-left: 1px solid var(--ch-line);
  padding-left: 16px;
}
.ch-doc-nav-title {
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ch-muted);
  margin-bottom: 12px;
}
.ch-doc-nav { display: flex; flex-direction: column; gap: 8px; }
.ch-doc-nav a {
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--ch-sub);
  text-decoration: none;
  padding: 3px 0;
  transition: color 0.15s ease;
}
.ch-doc-nav a:hover { color: var(--ch-brand); }
.ch-doc-side-links {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--ch-line);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ch-doc-side-links a { font-size: 12.5px; font-weight: 600; color: var(--ch-brand); text-decoration: none; }
.ch-doc-side-links a:hover { text-decoration: underline; }

.ch-pillar-list { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; }
.ch-pillar-item {
  padding: 14px 18px;
  border-left: 2px solid var(--ch-brand);
  background: var(--ch-surface);
}
.ch-pillar-item strong { display: block; font-size: 15px; color: var(--ch-ink); margin-bottom: 4px; }
.ch-pillar-item p { margin: 0 !important; font-size: 14px !important; line-height: 1.65 !important; color: var(--ch-sub) !important; }
.ch-inline-ok { color: var(--ch-ok); font-weight: 650; }
.ch-inline-err { color: var(--ch-err); font-weight: 650; }
.ch-faq-list { border-top: 1px solid var(--ch-line); }
.ch-faq-det summary span { font-size: 15.5px; font-weight: 680; color: var(--ch-ink); }
.ch-faq-plus { display: none; }

/* Tighten Content Hub & Announcement Bar to 1160px + Full-Width 56px Topbar + High-Contrast Links */
body.ch-body :is(.fubi-ann, .fa-bar),
body.ch-body .ch-wrap,
body.ch-body .ch-disclaimer,
body.ch-body .v31-footer {
  max-width: 1160px !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: clamp(18px, 2.5vw, 28px) !important;
  padding-right: clamp(18px, 2.5vw, 28px) !important;
}
body.ch-body :is(.ed-topbar, .ch-header) :is(.tb-inner, .ch-header-inner) {
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
}
@media (min-width: 769px) {
  body.ch-body :is(.ed-topbar, .ch-header) :is(.tb-inner, .ch-header-inner) {
    height: 56px !important;
    min-height: 56px !important;
    padding: 0 clamp(24px, 2.8vw, 56px) !important;
  }
  body.ch-body .tb-eco {
    background: transparent !important;
    border: 0 !important;
    border-left: 1px solid var(--ch-line) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 0 0 14px !important;
    margin-left: 10px !important;
    gap: 4px !important;
  }
}
@media (max-width: 768px) {
  body.ch-body .tb-eco {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin-left: 0 !important;
  }
}
body.ch-body .tb-eco .eco-dot {
  display: none !important;
}
body.ch-body .tb-eco-link {
  height: 31px !important;
  padding: 0 11px !important;
  border-radius: 6px !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--ch-sub) !important;
  box-shadow: none !important;
  font-weight: 500 !important;
}
html[data-theme="light"] body.ch-body .tb-eco-link {
  color: #332F2A !important;
  font-weight: 600 !important;
}
@media (max-width: 560px) {
  body.ch-body .tb-eco-link {
    padding: 0 6px !important;
    font-size: 12px !important;
  }
}
body.ch-body .tb-eco-link:hover {
  color: var(--ch-ink) !important;
  background: rgba(255, 255, 255, 0.045) !important;
}
html[data-theme="light"] body.ch-body .tb-eco-link:hover {
  color: #181715 !important;
  background: rgba(24, 23, 21, 0.05) !important;
}
body.ch-body .tb-eco-link:is(.active, .is-current, [aria-current="page"]) {
  background: rgba(217, 119, 54, 0.13) !important;
  color: #E38547 !important;
  border: 0 !important;
  font-weight: 600 !important;
  box-shadow: none !important;
}
html[data-theme="light"] body.ch-body .tb-eco-link:is(.active, .is-current, [aria-current="page"]) {
  background: rgba(181, 84, 30, 0.09) !important;
  color: #9A4212 !important;
  border: 0 !important;
  font-weight: 700 !important;
  box-shadow: none !important;
}
html[data-theme="light"] body.ch-body .topnav :is(.v3-tb-btn, .lang-cur-btn, .theme-toggle) {
  color: #26231F !important;
  border-color: rgba(24, 23, 21, 0.18) !important;
  font-weight: 600 !important;
}
.ch-wrap { padding-top: 18px; }
.ch-crumb { margin-bottom: 12px; }
.ch-hero { padding: 2px 0 18px; margin-bottom: 18px; }
.ch-eyebrow-row, .ch-hero > .ch-badge { margin-bottom: 10px; }
.ch-hero h1 { margin-bottom: 8px; }
.ip-wb-bar { padding: 14px 20px; gap: 10px; background: transparent !important; }
.ip-verdict-pane { padding: 18px 22px; gap: 14px; background: var(--ch-surface) !important; }
/* Strip nested inner boxes inside .ip-workbench, .ch-pillar-item & .ch-kv */
body.ch-body .ip-target-box {
  background: transparent !important;
  border: 0 !important;
  border-top: 1px solid var(--ch-line) !important;
  border-bottom: 1px solid var(--ch-line) !important;
  border-radius: 0 !important;
  padding: 12px 0 !important;
  box-shadow: none !important;
}
body.ch-body a.tb-eco-link.is-current {
  pointer-events: auto !important;
  cursor: pointer !important;
}
body.ch-body .ip-verdict-foot {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 8px !important;
  padding-top: 6px !important;
  margin-top: auto !important;
  width: 100% !important;
}
body.ch-body .ip-verdict-foot > .ch-btn {
  width: 100% !important;
  justify-content: center !important;
  box-sizing: border-box !important;
}
body.ch-body .ip-diag-strip {
  background: var(--ch-surface) !important;
  border: 1px solid var(--ch-line-strong) !important;
  border-left: 3px solid var(--ch-ok) !important;
  border-radius: 4px !important;
  padding: 11px 16px !important;
}
body.ch-body .ip-diag-strip[data-strip-tone="ok"] {
  background: var(--ch-ok-soft) !important;
  border-color: var(--ch-ok-border) !important;
  border-left: 3px solid var(--ch-ok) !important;
}
body.ch-body .ip-diag-strip[data-strip-tone="ok"] .ip-strip-dot {
  background: var(--ch-ok) !important;
}
body.ch-body .ip-diag-strip[data-strip-tone="warn"] {
  background: var(--ch-warn-soft) !important;
  border-color: var(--ch-warn-border) !important;
  border-left: 3px solid var(--ch-warn) !important;
}
body.ch-body .ip-diag-strip[data-strip-tone="warn"] .ip-strip-dot {
  background: var(--ch-warn) !important;
}
body.ch-body .ip-diag-strip[data-strip-tone="warn"] #ip-strip-text {
  color: var(--ch-warn) !important;
  font-weight: 600 !important;
}
body.ch-body .ip-diag-strip[data-strip-tone="err"] {
  background: var(--ch-err-soft) !important;
  border-color: var(--ch-err-border) !important;
  border-left: 3px solid var(--ch-err) !important;
}
body.ch-body .ip-diag-strip[data-strip-tone="err"] .ip-strip-dot {
  background: var(--ch-err) !important;
}
body.ch-body .ip-diag-strip[data-strip-tone="err"] #ip-strip-text {
  color: var(--ch-err) !important;
  font-weight: 600 !important;
}
body.ch-body .ch-pillar-list {
  gap: 0 !important;
  border-top: 1px solid var(--ch-line) !important;
}
body.ch-body .ch-pillar-item {
  background: transparent !important;
  border: 0 !important;
  border-bottom: 1px solid var(--ch-line) !important;
  border-radius: 0 !important;
  padding: 14px 2px !important;
}
body.ch-body .ch-kv-grid {
  gap: 0 !important;
  border-top: 1px solid var(--ch-line) !important;
}
body.ch-body .ch-kv {
  background: transparent !important;
  border: 0 !important;
  border-bottom: 1px solid var(--ch-line) !important;
  border-radius: 0 !important;
  padding: 12px 4px !important;
}
/* Restrained V4 Semantic Cards for Address Validator (.ch-kv[data-av-box] & .is-ok/.is-warn/.is-err) */
body.ch-body #addr-tool-app .ch-kv-grid,
body.ch-body .ch-kv-grid:has([data-av-box]),
body.ch-body .ch-kv-grid:has(.is-ok, .is-warn, .is-err) {
  gap: 12px !important;
  border-top: 0 !important;
}
body.ch-body .ch-kv[data-av-box] {
  background: var(--ch-surface) !important;
  border: 1px solid var(--ch-line-strong) !important;
  border-left: 3px solid var(--ch-line-strong) !important;
  border-radius: 4px !important;
  padding: 12px 14px !important;
}
body.ch-body .ch-kv.is-ok {
  background: var(--ch-ok-soft) !important;
  border: 1px solid var(--ch-ok-border) !important;
  border-left: 3px solid var(--ch-ok) !important;
  border-radius: 4px !important;
  padding: 12px 14px !important;
}
body.ch-body .ch-kv.is-ok strong,
body.ch-body .ch-kv.is-ok [data-av-msg] {
  color: var(--ch-ok) !important;
}
body.ch-body .ch-kv.is-warn {
  background: var(--ch-warn-soft) !important;
  border: 1px solid var(--ch-warn-border) !important;
  border-left: 3px solid var(--ch-warn) !important;
  border-radius: 4px !important;
  padding: 12px 14px !important;
}
body.ch-body .ch-kv.is-warn strong,
body.ch-body .ch-kv.is-warn [data-av-msg] {
  color: var(--ch-warn) !important;
}
body.ch-body .ch-kv.is-err {
  background: var(--ch-err-soft) !important;
  border: 1px solid var(--ch-err-border) !important;
  border-left: 3px solid var(--ch-err) !important;
  border-radius: 4px !important;
  padding: 12px 14px !important;
}
body.ch-body .ch-kv.is-err strong,
body.ch-body .ch-kv.is-err [data-av-msg] {
  color: var(--ch-err) !important;
}
.ip-hcell { padding: 15px 20px; min-height: 94px; gap: 6px; }

/* V4 Topbar & >150ms Slow-Network 2px Streaming Laser Bar for Standalone Content Hub Pages */
body.ch-body .ch-header,
body.ch-body .ed-topbar {
  background: rgba(13, 14, 16, 0.92) !important;
  border-bottom: 1px solid var(--ch-line) !important;
  box-shadow: none !important;
}
html[data-theme="light"] body.ch-body .ch-header,
html[data-theme="light"] body.ch-body .ed-topbar {
  background: rgba(255, 255, 255, 0.94) !important;
}
body.ch-body .ch-header::before,
body.ch-body .ch-header::after,
body.ch-body .ed-topbar::before,
body.ch-body .ed-topbar::after {
  display: none !important;
}
body.ch-body .ip-workbench,
body.ch-body .ip-wb,
body.ch-body .ch-card,
body.ch-body .ch-tool-card,
body.ch-body .ch-guide-card {
  box-shadow: none !important;
  border-radius: 6px !important;
}
body.ch-body .ip-scan-line {
  display: none !important;
}
html.fubi-hydrating::before,
html.fubi-net-busy::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 9999;
  pointer-events: none;
  background: linear-gradient(90deg, transparent 0%, #10B981 35%, #D97736 70%, transparent 100%);
  background-size: 200% 100%;
  animation: chV4Stream 1.15s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
html[data-theme="light"].fubi-hydrating::before,
html[data-theme="light"].fubi-net-busy::before {
  background: linear-gradient(90deg, transparent 0%, #059669 35%, #B5541E 70%, transparent 100%);
  background-size: 200% 100%;
}
@keyframes chV4Stream {
  0% { background-position: 120% 0; }
  100% { background-position: -80% 0; }
}
@media (prefers-reduced-motion: reduce) {
  html.fubi-hydrating::before,
  html.fubi-net-busy::before {
    animation: none;
    background: #D97736;
  }
}
@media (min-width: 1025px) and (max-width: 1500px) {
  html:not([lang^="zh"]) body.ch-body .tb-eco-link {
    padding: 0 7.5px !important;
    font-size: 12px !important;
  }
}
.eco-dot.radar { background: #B5541E; }
@media (max-width: 768px) {
  body.ch-body :is(.ed-topbar, .ch-header) :is(.tb-inner, .ch-header-inner) {
    height: auto !important;
    min-height: 0 !important;
    padding: 8px 10px !important;
    flex-wrap: wrap !important;
    row-gap: 6px !important;
  }
  body.ch-body .tb-left {
    display: contents !important;
  }
  body.ch-body .brand {
    order: 1 !important;
  }
  body.ch-body .topnav {
    order: 2 !important;
    margin-left: auto !important;
  }
  body.ch-body .tb-eco {
    display: grid !important;
    order: 3 !important;
    flex: 0 0 100% !important;
    width: 100% !important;
    min-width: 0 !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 4px !important;
    padding: 0 !important;
    margin: 0 !important;
    border-left: 0 !important;
    overflow: visible !important;
  }
  body.ch-body .tb-eco > :nth-child(7):last-child {
    grid-column: 1 / -1 !important;
  }
  body.ch-body .tb-eco-link {
    width: 100% !important;
    min-width: 0 !important;
    height: 30px !important;
    padding: 0 4px !important;
    font-size: 11.5px !important;
    justify-content: center !important;
    white-space: nowrap !important;
  }
  html:not([lang^="zh"]) body.ch-body .tb-eco-link {
    font-size: 10.6px !important;
    padding: 0 3px !important;
  }
  body.ch-body .tb-eco-link > span:not(.eco-dot) {
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: nowrap !important;
  }
}

/* ==========================================================================
 * v45 · Content Hub Topbar 1440px Lock & Aa / Aa+ / Aa++ Font Scaling
 * ========================================================================== */
html body.ch-body :is(.ed-topbar, .topbar) {
  --fubi-font-scale: 1 !important;
  font-size: 14px !important;
}
@media (min-width: 641px) {
  html body.ch-body :is(.ed-topbar, .topbar) .topnav :is(
    .v3-tb-btn, .lang-cur-btn, .theme-toggle, .v3-bal-pill, .v3-wallet-pill, .fa-avatar-btn
  ) {
    height: 36px !important;
    min-height: 36px !important;
    box-sizing: border-box !important;
  }
  html body.ch-body :is(.ed-topbar, .topbar) .theme-toggle {
    width: 36px !important;
    min-width: 36px !important;
    padding: 0 !important;
    justify-content: center !important;
  }
}
@media (max-width: 640px) {
  html body.ch-body :is(.ed-topbar, .topbar) .theme-toggle {
    width: 32px !important;
    min-width: 32px !important;
    flex: 0 0 32px !important;
    height: 32px !important;
    min-height: 32px !important;
    padding: 0 !important;
  }
}
@media (max-width: 480px) {
  html body.ch-body :is(.ed-topbar, .topbar) .topnav > :is(a[href*="/tools"], a[href*="/guides"]) {
    display: none !important;
  }
}
@media (min-width: 1025px) and (max-width: 1600px) {
  html body.ch-body :is(.ed-topbar, .topbar) .tb-inner {
    max-width: 100% !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
    gap: 8px !important;
  }
  html body.ch-body :is(.ed-topbar, .topbar) .tb-eco-link {
    padding: 0 5.5px !important;
    font-size: 12px !important;
  }
  html:not([lang^="zh"]) body.ch-body :is(.ed-topbar, .topbar) .tb-eco-link {
    padding: 0 4.5px !important;
    font-size: 11.5px !important;
  }
  html body.ch-body :is(.ed-topbar, .topbar) .topnav {
    gap: 4px !important;
  }
  html body.ch-body :is(.ed-topbar, .topbar) .topnav .v3-tb-btn:not([data-act="login"]):not(.v33-back) .ic {
    display: none !important;
  }
  html body.ch-body :is(.ed-topbar, .topbar) .topnav :is(.v3-tb-btn, .lang-cur-btn, .theme-toggle) {
    padding: 0 7px !important;
    font-size: 12px !important;
  }
  html body.ch-body :is(.ed-topbar, .topbar) .theme-toggle [data-theme-label] {
    display: none !important;
  }
}
html:is([data-font-scale="lg"], [data-font-scale="xl"]) body.ch-body .ch-main {
  font-size: calc(14.5px * var(--fubi-font-scale, 1));
}
html:is([data-font-scale="lg"], [data-font-scale="xl"]) body.ch-body .ch-hero p {
  font-size: calc(15.5px * var(--fubi-font-scale, 1));
}
html:is([data-font-scale="lg"], [data-font-scale="xl"]) body.ch-body .ch-card h3 {
  font-size: calc(17px * var(--fubi-font-scale, 1));
}
html:is([data-font-scale="lg"], [data-font-scale="xl"]) body.ch-body :is(.ch-card p, .ch-table, .ch-faq-item p, .ch-sec-desc, .ch-kv strong) {
  font-size: calc(14px * var(--fubi-font-scale, 1));
}
html:is([data-font-scale="lg"], [data-font-scale="xl"]) body.ch-body :is(.ch-faq-ans p, .ch-faq-det summary span, .ch-faq-item h3, .ch-cta-strip-copy strong) {
  font-size: calc(15px * var(--fubi-font-scale, 1));
}
html:is([data-font-scale="lg"], [data-font-scale="xl"]) body.ch-body .ch-pillar-item p {
  font-size: calc(14px * var(--fubi-font-scale, 1)) !important;
}

