:root {
  --hub-bg: #f4f7fb;
  --hub-panel: rgba(255, 255, 255, 0.94);
  --hub-panel-strong: rgba(255, 255, 255, 0.98);
  --hub-border: rgba(148, 163, 184, 0.18);
  --hub-border-strong: rgba(148, 163, 184, 0.26);
  --hub-text: #0f172a;
  --hub-muted: #64748b;
  --hub-sky: #62c3ff;
  --hub-sky-soft: rgba(98, 195, 255, 0.12);
  --hub-emerald: #1798f5;
  --hub-emerald-soft: rgba(23, 152, 245, 0.12);
  --hub-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

body.tool-hub-page {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans TC", sans-serif;
  color: var(--hub-text);
  background:
    radial-gradient(circle at 10% 0%, rgba(147, 197, 253, 0.3), transparent 24%),
    radial-gradient(circle at 88% 8%, rgba(98, 195, 255, 0.18), transparent 22%),
    linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
}

body.tool-hub-page button,
body.tool-hub-page input,
body.tool-hub-page select,
body.tool-hub-page textarea {
  font: inherit;
}

body.tool-hub-page input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
}

body.tool-hub-page input[type="number"]::-webkit-outer-spin-button,
body.tool-hub-page input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

body.tool-hub-page .wrap {
  width: min(1320px, calc(100% - 28px));
  padding: 28px 0 56px;
}

body.tool-position-page .wrap {
  width: min(1500px, calc(100% - 28px));
}

body.tool-hub-page h1 {
  margin: 0;
  font-size: clamp(32px, 5vw, 46px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

body.tool-hub-page .sub {
  color: var(--hub-muted);
  font-size: 14px;
  margin: 12px 0 0;
  max-width: 64ch;
}

body.tool-hub-page .tool-hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 0 0 18px;
  padding: 24px;
  border-radius: 30px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.96));
  box-shadow: var(--hub-shadow);
  overflow: hidden;
}

body.tool-hub-page .tool-utility-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 0 0 14px;
}

body.tool-hub-page .tool-utility-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--hub-border);
  background: rgba(255, 255, 255, 0.78);
  color: var(--hub-text);
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
}

body.tool-hub-page .tool-utility-link.primary {
  border-color: rgba(96, 165, 250, 0.18);
  background: rgba(219, 234, 254, 0.92);
  color: #1d4ed8;
}

body.tool-hub-page .tool-hero::after {
  content: "";
  position: absolute;
  top: -54px;
  right: -54px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(147, 197, 253, 0.2);
  filter: blur(28px);
}

@media (min-width: 960px) {
  body.tool-hub-page .tool-hero {
    grid-template-columns: minmax(0, 1.18fr) minmax(260px, 360px);
    align-items: stretch;
  }
}

body.tool-hub-page .tool-hero-main,
body.tool-hub-page .tool-hero-side {
  position: relative;
  z-index: 1;
}

body.tool-hub-page .tool-eyebrow {
  margin: 0 0 10px;
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body.tool-hub-page .tool-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

body.tool-hub-page .tool-pills span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: #eef4ff;
  color: #334155;
  font-size: 12px;
  font-weight: 800;
}

body.tool-hub-page .tool-hero-side {
  display: grid;
  gap: 12px;
  align-content: start;
}

body.tool-hub-page .tool-stat {
  padding: 16px 18px;
  border-radius: 22px;
  border: 1px solid var(--hub-border);
  background: rgba(248, 250, 252, 0.96);
  box-shadow: none;
}

body.tool-hub-page .tool-stat .label {
  color: var(--hub-muted);
  font-size: 12px;
}

body.tool-hub-page .tool-stat .value {
  margin-top: 6px;
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 950;
  letter-spacing: -0.05em;
  overflow-wrap: anywhere;
  word-break: break-word;
}

body.tool-hub-page .tool-stat .detail,
body.tool-hub-page .tool-stat .small {
  margin-top: 8px;
  color: var(--hub-muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

body.tool-hub-page .tool-hero h1,
body.tool-hub-page .tool-utility-link,
body.tool-hub-page .tool-pills span,
body.tool-hub-page .kpi .value,
body.tool-hub-page .metric .value,
body.tool-hub-page .summary-box .value,
body.tool-hub-page .mini b,
body.tool-hub-page td,
body.tool-hub-page th,
body.tool-hub-page .notice,
body.tool-hub-page .empty,
body.tool-hub-page .calendar-pnl,
body.tool-hub-page .calendar-meta,
body.tool-hub-page .leader-copy strong,
body.tool-hub-page .strategy-copy strong,
body.tool-hub-page .bar-label,
body.tool-hub-page .lookup-name,
body.tool-hub-page .lookup-symbol {
  overflow-wrap: anywhere;
  word-break: break-word;
}

body.tool-hub-page .focus-view-head,
body.tool-hub-page .calendar-head,
body.tool-hub-page .timeline-tab-row,
body.tool-hub-page .card-title,
body.tool-hub-page .archive-item-top,
body.tool-hub-page .lookup-line,
body.tool-hub-page .name-row,
body.tool-hub-page .rank-top,
body.tool-hub-page .insight-item,
body.tool-hub-page .leader-box li,
body.tool-hub-page .strategy-row {
  flex-wrap: wrap;
}

body.tool-hub-page .layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: start;
}

body.tool-hub-page .panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 16px;
}

body.tool-hub-page .panel-heading > div,
body.tool-hub-page .tool-hero-main,
body.tool-hub-page .tool-hero-side,
body.tool-hub-page .tool-stat,
body.tool-hub-page .focus-view-head > div,
body.tool-hub-page .calendar-head > div,
body.tool-hub-page .timeline-tab-row > div,
body.tool-hub-page .card-title > div,
body.tool-hub-page .archive-item-top > div,
body.tool-hub-page .leader-copy,
body.tool-hub-page .strategy-copy,
body.tool-hub-page .lookup-line > *,
body.tool-hub-page .name-row > * {
  min-width: 0;
}

body.tool-hub-page .panel-heading .kicker {
  margin: 0 0 8px;
  color: var(--hub-muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body.tool-hub-page .panel-heading h2,
body.tool-hub-page .panel-heading h3 {
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.04em;
  overflow-wrap: anywhere;
}

body.tool-hub-page .panel-heading p {
  margin: 6px 0 0;
  color: var(--hub-muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}

body.tool-hub-page .panel-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(2, 6, 23, 0.58);
  color: var(--hub-muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  max-width: 100%;
}

body.tool-hub-page .tool-utility-nav .theme-toggle {
  flex: 0 0 40px;
  min-width: 40px;
  width: 40px;
  height: 40px;
  padding: 0 !important;
}

body.tool-hub-page .panel-chip-live {
  color: #d9f3ff;
  border-color: rgba(56, 189, 248, 0.2);
  background: rgba(56, 189, 248, 0.1);
}

body.tool-hub-page .card,
body.tool-hub-page .panel-card,
body.tool-hub-page .viz-card,
body.tool-hub-page .kpi,
body.tool-hub-page .metric,
body.tool-hub-page .mini,
body.tool-hub-page .summary-box,
body.tool-hub-page .hero-card,
body.tool-hub-page .hero-side .mini,
body.tool-hub-page .lot-card,
body.tool-hub-page details,
body.tool-hub-page .hero-stats,
body.tool-hub-page .auth-panel {
  border-color: var(--hub-border) !important;
  background: var(--hub-panel) !important;
  box-shadow: none;
  backdrop-filter: blur(16px);
}

body.tool-hub-page .card,
body.tool-hub-page .panel-card,
body.tool-hub-page .hero-card {
  border-radius: 30px;
}

body.tool-hub-page .card {
  padding: 22px;
}

body.tool-hub-page .panel-card,
body.tool-hub-page .viz-card,
body.tool-hub-page .kpi,
body.tool-hub-page .metric,
body.tool-hub-page .mini,
body.tool-hub-page .summary-box {
  border-radius: 22px;
}

body.tool-hub-page .notice {
  border-radius: 18px;
  border-color: rgba(148, 163, 184, 0.14) !important;
  background: #f8fafc !important;
  color: #334155;
}

body.tool-hub-page .card-title .eyebrow,
body.tool-hub-page .step-chip {
  background: #eef4ff !important;
  border-color: rgba(96, 165, 250, 0.2) !important;
  color: #1d4ed8 !important;
}

body.tool-hub-page .site-mini-footer {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
}

body.tool-hub-page .site-mini-footer-grid {
  display: grid;
  gap: 12px;
}

@media (min-width: 900px) {
  body.tool-hub-page .site-mini-footer-grid {
    grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  }
}

body.tool-hub-page .site-mini-footer-card {
  padding: 16px 18px;
  border-radius: 22px;
  border: 1px solid var(--hub-border);
  background: var(--hub-panel);
  backdrop-filter: blur(18px);
}

body.tool-hub-page .site-mini-footer-card h3 {
  margin: 0;
  font-size: 14px;
  letter-spacing: -0.02em;
}

body.tool-hub-page .site-mini-footer-card p {
  margin: 8px 0 0;
  color: var(--hub-muted);
  font-size: 13px;
}

body.tool-hub-page .site-mini-footer-links {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

body.tool-hub-page .site-mini-footer-links a {
  color: var(--hub-text);
  text-decoration: none;
  font-size: 13px;
}

body.tool-hub-page .site-mini-footer-links a:hover {
  color: #1d4ed8;
}

body.tool-hub-page .site-mini-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 16px;
  margin-top: 12px;
  color: var(--hub-muted);
  font-size: 12px;
}

body.tool-hub-page .site-mini-footer-bottom p {
  margin: 0;
}

body.tool-hub-page .step-intro,
body.tool-hub-page .lookup-help,
body.tool-hub-page .name-hint,
body.tool-hub-page .inline-note,
body.tool-hub-page .small,
body.tool-hub-page .panel-copy,
body.tool-hub-page .viz-card p,
body.tool-hub-page .hero-card p,
body.tool-hub-page .lot-head p,
body.tool-hub-page .card-title p {
  color: var(--hub-muted) !important;
}

body.tool-hub-page label,
body.tool-hub-page .name,
body.tool-hub-page th,
body.tool-hub-page summary,
body.tool-hub-page .lookup-name,
body.tool-hub-page .meta,
body.tool-hub-page .legend-item .right,
body.tool-hub-page .pie-legend .right,
body.tool-hub-page .status {
  color: var(--hub-muted) !important;
}

body.tool-hub-page input,
body.tool-hub-page select,
body.tool-hub-page textarea {
  border-color: rgba(148, 163, 184, 0.16) !important;
  border-radius: 18px !important;
  background: #ffffff !important;
  color: var(--hub-text) !important;
}

body.tool-hub-page input:focus,
body.tool-hub-page select:focus,
body.tool-hub-page textarea:focus {
  border-color: rgba(56, 189, 248, 0.52) !important;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.12) !important;
}

body.tool-hub-page .btn,
body.tool-hub-page .tab,
body.tool-hub-page .mini-btn,
body.tool-hub-page .remove,
body.tool-hub-page .add,
body.tool-hub-page .primary,
body.tool-hub-page .secondary {
  border-radius: 16px !important;
}

body.tool-hub-page .btn,
body.tool-hub-page .tab,
body.tool-hub-page .mini-btn,
body.tool-hub-page .secondary,
body.tool-hub-page .add {
  border-color: rgba(148, 163, 184, 0.16) !important;
  background: #ffffff !important;
  color: var(--hub-text) !important;
}

body.tool-hub-page .btn.primary,
body.tool-hub-page .primary,
body.tool-hub-page .tab.active {
  background: #2563eb !important;
  color: #eff6ff !important;
  border-color: rgba(37, 99, 235, 0.4) !important;
  box-shadow: none;
}

body.tool-hub-page .btn.good {
  background: rgba(52, 211, 153, 0.12) !important;
  color: #047857 !important;
  border-color: rgba(52, 211, 153, 0.22) !important;
}

body.tool-hub-page .btn.danger,
body.tool-hub-page .mini-btn.del,
body.tool-hub-page .remove {
  background: rgba(251, 113, 133, 0.12) !important;
  color: #be123c !important;
  border-color: rgba(251, 113, 133, 0.22) !important;
}

body.tool-hub-page .tabs {
  padding: 8px;
  border-radius: 20px;
  border-color: var(--hub-border-strong) !important;
  background: rgba(255, 255, 255, 0.82) !important;
}

body.tool-hub-page .lookup-results,
body.tool-hub-page table,
body.tool-hub-page .empty,
body.tool-hub-page .status,
body.tool-hub-page .lot-row,
body.tool-hub-page .buy-row {
  border-color: var(--hub-border) !important;
  background: rgba(248, 250, 252, 0.96) !important;
}

body.tool-hub-page table {
  border-radius: 20px;
}

body.tool-hub-page th {
  background: rgba(248, 250, 252, 0.98) !important;
}

body.tool-hub-page .panel-card h3,
body.tool-hub-page .viz-card h4,
body.tool-hub-page .card-title h2,
body.tool-hub-page .lot-head h3 {
  letter-spacing: -0.03em;
}

body.tool-hub-page .kpis,
body.tool-hub-page .grid,
body.tool-hub-page .summary,
body.tool-hub-page .summary-grid,
body.tool-hub-page .viz-grid,
body.tool-hub-page .leader-grid,
body.tool-hub-page .quick-summary {
  gap: 14px !important;
}

body.tool-hub-page .tool-hero-shell,
body.tool-hub-page .hero-shell {
  margin-bottom: 20px;
}

body.tool-hub-page .hero-shell .hero-card {
  padding: 24px;
  border-radius: 30px;
}

body.tool-hub-page .hero-shell .hero-side {
  gap: 12px;
}

body.tool-hub-page .hero-shell .hero-side .mini {
  padding: 16px 18px;
  border-radius: 22px;
}

body.tool-hub-page .hero-shell .hero-side .value {
  font-size: clamp(22px, 4vw, 32px);
}

body.tool-hub-page .viz-grid {
  grid-template-columns: 1fr;
}

@media (min-width: 840px) {
  body.tool-hub-page .viz-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

body.tool-hub-page .quick-summary {
  margin-top: 0;
}

body.tool-hub-page .table-shell,
body.tool-hub-page div[style*="overflow:auto"] {
  overflow: auto;
  border-radius: 20px;
  -webkit-overflow-scrolling: touch;
}

body.tool-hub-page details {
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

body.tool-hub-page table {
  width: 100%;
  min-width: 620px;
}

body.tool-hub-page .leader-box,
body.tool-hub-page .insight-item,
body.tool-hub-page .lookup-item:hover,
body.tool-hub-page .lookup-item.active {
  background: rgba(255, 255, 255, 0.04) !important;
}

body.tool-hub-page .hero-bullets div,
body.tool-hub-page .archive-item,
body.tool-hub-page .archive-item-kpis .mini,
body.tool-hub-page .summary-box,
body.tool-hub-page .calendar-cell,
body.tool-hub-page .insight-item,
body.tool-hub-page .leader-box,
body.tool-hub-page .mode-tab,
body.tool-hub-page .lookup-item,
body.tool-hub-page .lot-card,
body.tool-hub-page .lot-row {
  border-color: rgba(148, 163, 184, 0.12) !important;
  background: rgba(255, 255, 255, 0.03) !important;
  box-shadow: none !important;
}

body.tool-hub-page .summary-box,
body.tool-hub-page .kpi,
body.tool-hub-page .metric,
body.tool-hub-page .mini {
  padding: 16px !important;
}

body.tool-hub-page .summary-box.metric-card,
body.tool-hub-page .kpi.metric-card {
  min-height: 164px !important;
}

body.tool-hub-page .panel-heading h2,
body.tool-hub-page .panel-heading h3,
body.tool-hub-page .card-title h2,
body.tool-hub-page .viz-card h4,
body.tool-hub-page .lot-head h3 {
  font-size: 18px !important;
  letter-spacing: -0.04em;
}

body.tool-hub-page .hero-bullets div,
body.tool-hub-page .panel-copy,
body.tool-hub-page .viz-card p,
body.tool-hub-page .card-title p,
body.tool-hub-page .timeline-meta,
body.tool-hub-page .meta-line,
body.tool-hub-page .small,
body.tool-hub-page .lookup-help,
body.tool-hub-page .inline-note {
  line-height: 1.55;
}

body.tool-hub-page .archive-item {
  border-radius: 20px !important;
  padding: 14px !important;
}

body.tool-hub-page .calendar-cell {
  min-height: 92px;
  border-radius: 18px !important;
}

body.tool-hub-page .chart-empty {
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.025);
}

body.tool-hub-page .good,
body.tool-hub-page .goodText {
  color: var(--good) !important;
}

body.tool-hub-page .bad,
body.tool-hub-page .badText {
  color: var(--bad) !important;
}

body.tool-hub-page .warn,
body.tool-hub-page .warnText {
  color: var(--warn, #fbbf24) !important;
}

@media (max-width: 720px) {
  body.tool-hub-page .wrap {
    width: min(100%, calc(100% - 20px));
    padding-top: 18px;
    padding-bottom: 36px;
  }

  body.tool-hub-page .tool-hero,
  body.tool-hub-page .card {
    padding: 18px;
    border-radius: 24px;
  }

  body.tool-hub-page h1 {
    font-size: clamp(28px, 8vw, 36px);
    line-height: 1.02;
  }

  body.tool-hub-page .tool-utility-nav {
    gap: 8px;
  }

  body.tool-hub-page .tool-utility-link:not(.theme-toggle) {
    flex: 1 1 calc(50% - 8px);
    justify-content: center;
  }

  body.tool-hub-page .tool-utility-nav .theme-toggle {
    margin-left: auto;
  }

  body.tool-hub-page .two,
  body.tool-hub-page .three,
  body.tool-hub-page .actions,
  body.tool-hub-page .summary,
  body.tool-hub-page .toolbar,
  body.tool-hub-page .kpis {
    grid-template-columns: 1fr !important;
  }

  body.tool-hub-page .site-mini-footer-bottom,
  body.tool-hub-page .range-head,
  body.tool-hub-page .market-preview-head,
  body.tool-hub-page .snapshot-split-head {
    flex-direction: column;
    align-items: flex-start;
  }

  body.tool-hub-page .site-mini-footer-card {
    padding: 14px 16px;
  }

  body.tool-hub-page table {
    min-width: 0;
  }

  body.tool-hub-page .table-shell table,
  body.tool-hub-page div[style*="overflow:auto"] table {
    min-width: 540px;
  }
}

body.tool-batch-page .tool-hero-compact,
body.tool-risk-page .tool-hero-compact {
  padding: 18px 22px;
}

body.tool-batch-page .tool-hero-compact .tool-hero-side,
body.tool-risk-page .tool-hero-compact .tool-hero-side {
  display: none;
}

body.tool-batch-page .sub,
body.tool-risk-page .sub {
  max-width: 72ch;
}

@media (min-width: 980px) {
  body.tool-batch-page .layout,
  body.tool-risk-page .layout {
    grid-template-columns: minmax(360px, 420px) minmax(0, 1fr);
    gap: 16px;
  }

  body.tool-batch-page .result-dock,
  body.tool-risk-page .result-dock {
    position: sticky;
    top: 22px;
  }
}

body.tool-batch-page .input-dock,
body.tool-risk-page .input-dock,
body.tool-batch-page .result-dock,
body.tool-risk-page .result-dock {
  padding: 20px;
}

body.tool-batch-page .grid,
body.tool-risk-page .kpis {
  gap: 10px !important;
}

body.tool-batch-page .summary,
body.tool-risk-page .summary {
  gap: 10px !important;
}

@media (min-width: 700px) {
  body.tool-batch-page .summary,
  body.tool-risk-page .summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

body.tool-batch-page .metric,
body.tool-risk-page .kpi,
body.tool-risk-page .mini,
body.tool-batch-page .mini {
  min-height: unset;
}

body.tool-batch-page .metric .value,
body.tool-risk-page .kpi .value {
  font-size: clamp(22px, 3.6vw, 30px);
}

body.tool-batch-page .range-card,
body.tool-risk-page .chart {
  margin-top: 12px;
}

@media (max-width: 720px) {
  body.tool-batch-page .buy-row,
  body.tool-risk-page .lot-row {
    grid-template-columns: 1fr !important;
  }

  body.tool-batch-page .remove,
  body.tool-risk-page .remove {
    width: 100%;
  }

  body.tool-batch-page .railbox,
  body.tool-risk-page .rail-wrap {
    height: 126px;
    margin-inline: 0;
  }

  body.tool-batch-page .lab,
  body.tool-risk-page .dot-label {
    min-width: 0;
    white-space: normal;
    font-size: 11px;
  }

  body.tool-batch-page .lab b,
  body.tool-risk-page .dot-label b {
    font-size: 12px;
  }
}

body.tool-position-page .hero-bullets div,
body.tool-position-page .hero-side .mini,
body.tool-position-page .mode-help,
body.tool-position-page .mode-tab,
body.tool-position-page .lot-row,
body.tool-position-page .calendar-cell,
body.tool-position-page .insight-item,
body.tool-position-page .leader-box,
body.tool-position-page .archive-item,
body.tool-position-page .archive-item-kpis .mini,
body.tool-position-page .summary-box,
body.tool-position-page .kpi,
body.tool-position-page .viz-card,
body.tool-position-page .panel-card,
body.tool-networth-page .metric-card,
body.tool-networth-page .panel-card,
body.tool-networth-page .viz-card {
  background: #ffffff !important;
  border-color: rgba(148, 163, 184, 0.18) !important;
}

body.tool-position-page .hero-bullets div,
body.tool-position-page .lot-label,
body.tool-position-page .kpi.metric-card .name,
body.tool-position-page .summary-box.metric-card .name,
body.tool-position-page .archive-item-title strong,
body.tool-position-page .leader-copy strong,
body.tool-position-page .leader-box h5,
body.tool-position-page .donut-center .value,
body.tool-position-page .pie-core .value,
body.tool-position-page .pie-core .label,
body.tool-position-page .donut-center .label,
body.tool-networth-page .metric-card .name {
  color: #0f172a !important;
}

body.tool-position-page .lookup-results,
body.tool-position-page table,
body.tool-position-page .status,
body.tool-position-page .empty {
  background: #ffffff !important;
}

body.tool-position-page .pie-ring::after {
  background: #ffffff;
}

body.tool-position-page .donut-chart .track {
  stroke: rgba(148, 163, 184, 0.18);
}

body.tool-position-page .timeline-grid-line {
  stroke: rgba(148, 163, 184, 0.2);
}

body.tool-position-page .timeline-axis {
  stroke: rgba(148, 163, 184, 0.32);
}

body.tool-position-page .timeline-label,
body.tool-position-page .timeline-label-strong {
  fill: #64748b;
}

/* Percento app dark pass */
:root[data-theme="dark"] body.tool-hub-page {
  color: #f8fafc;
  background:
    radial-gradient(circle at 10% 0%, rgba(23, 152, 245, 0.16), transparent 24%),
    radial-gradient(circle at 88% 8%, rgba(98, 195, 255, 0.12), transparent 22%),
    linear-gradient(180deg, #06070a 0%, #0b0d12 100%);
}

:root[data-theme="dark"] body.tool-hub-page .tool-utility-link,
:root[data-theme="dark"] body.tool-hub-page .tool-hero,
:root[data-theme="dark"] body.tool-hub-page .card,
:root[data-theme="dark"] body.tool-hub-page .panel-card,
:root[data-theme="dark"] body.tool-hub-page .viz-card,
:root[data-theme="dark"] body.tool-hub-page .kpi,
:root[data-theme="dark"] body.tool-hub-page .metric,
:root[data-theme="dark"] body.tool-hub-page .mini,
:root[data-theme="dark"] body.tool-hub-page .summary-box,
:root[data-theme="dark"] body.tool-hub-page .hero-card,
:root[data-theme="dark"] body.tool-hub-page .hero-side .mini,
:root[data-theme="dark"] body.tool-hub-page .lot-card,
:root[data-theme="dark"] body.tool-hub-page details,
:root[data-theme="dark"] body.tool-hub-page .hero-stats,
:root[data-theme="dark"] body.tool-hub-page .auth-panel,
:root[data-theme="dark"] body.tool-hub-page .site-mini-footer-card,
:root[data-theme="dark"] body.tool-hub-page .status,
:root[data-theme="dark"] body.tool-hub-page table,
:root[data-theme="dark"] body.tool-hub-page .lookup-results,
:root[data-theme="dark"] body.tool-hub-page .empty,
:root[data-theme="dark"] body.tool-hub-page .lot-row,
:root[data-theme="dark"] body.tool-hub-page .buy-row {
  background: rgba(13, 16, 24, 0.9) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  color: #f8fafc !important;
}

:root[data-theme="dark"] body.tool-hub-page .tool-utility-link.primary,
:root[data-theme="dark"] body.tool-hub-page .btn.primary,
:root[data-theme="dark"] body.tool-hub-page .primary,
:root[data-theme="dark"] body.tool-hub-page .tab.active {
  background: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
  color: #0b0d12 !important;
}

:root[data-theme="dark"] body.tool-hub-page .tool-utility-link,
:root[data-theme="dark"] body.tool-hub-page .btn,
:root[data-theme="dark"] body.tool-hub-page .tab,
:root[data-theme="dark"] body.tool-hub-page .mini-btn,
:root[data-theme="dark"] body.tool-hub-page .secondary,
:root[data-theme="dark"] body.tool-hub-page .add,
:root[data-theme="dark"] body.tool-hub-page input,
:root[data-theme="dark"] body.tool-hub-page select,
:root[data-theme="dark"] body.tool-hub-page textarea {
  background: rgba(255, 255, 255, 0.04) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  color: #f8fafc !important;
}

:root[data-theme="dark"] body.tool-hub-page .tool-eyebrow,
:root[data-theme="dark"] body.tool-hub-page .tool-pills span,
:root[data-theme="dark"] body.tool-hub-page .card-title .eyebrow,
:root[data-theme="dark"] body.tool-hub-page .step-chip,
:root[data-theme="dark"] body.tool-hub-page .kicker,
:root[data-theme="dark"] body.tool-hub-page .tool-stat .label,
:root[data-theme="dark"] body.tool-hub-page .tool-stat .detail,
:root[data-theme="dark"] body.tool-hub-page .tool-stat .small,
:root[data-theme="dark"] body.tool-hub-page .sub,
:root[data-theme="dark"] body.tool-hub-page .panel-copy,
:root[data-theme="dark"] body.tool-hub-page .viz-card p,
:root[data-theme="dark"] body.tool-hub-page .timeline-meta,
:root[data-theme="dark"] body.tool-hub-page .step-intro,
:root[data-theme="dark"] body.tool-hub-page .lookup-help,
:root[data-theme="dark"] body.tool-hub-page .name-hint,
:root[data-theme="dark"] body.tool-hub-page .inline-note,
:root[data-theme="dark"] body.tool-hub-page .small,
:root[data-theme="dark"] body.tool-hub-page label,
:root[data-theme="dark"] body.tool-hub-page .name,
:root[data-theme="dark"] body.tool-hub-page th,
:root[data-theme="dark"] body.tool-hub-page summary,
:root[data-theme="dark"] body.tool-hub-page .lookup-name,
:root[data-theme="dark"] body.tool-hub-page .meta,
:root[data-theme="dark"] body.tool-hub-page .status,
:root[data-theme="dark"] body.tool-hub-page .site-mini-footer-card p,
:root[data-theme="dark"] body.tool-hub-page .site-mini-footer-bottom,
:root[data-theme="dark"] body.tool-hub-page .site-mini-footer-links a {
  color: #98a2b3 !important;
}

:root[data-theme="dark"] body.tool-hub-page h1,
:root[data-theme="dark"] body.tool-hub-page h2,
:root[data-theme="dark"] body.tool-hub-page h3,
:root[data-theme="dark"] body.tool-hub-page h4,
:root[data-theme="dark"] body.tool-hub-page h5,
:root[data-theme="dark"] body.tool-hub-page strong,
:root[data-theme="dark"] body.tool-hub-page .tool-stat .value,
:root[data-theme="dark"] body.tool-hub-page .panel-heading h2,
:root[data-theme="dark"] body.tool-hub-page .panel-heading h3,
:root[data-theme="dark"] body.tool-hub-page .hero-card h2 {
  color: #f8fafc !important;
}

:root[data-theme="dark"] body.tool-position-page .hero-bullets div {
  background: rgba(255, 255, 255, 0.05) !important;
  color: #f8fafc !important;
}

:root[data-theme="dark"] body.tool-position-page .pie-ring::after {
  background: #0d1018;
}

:root[data-theme="dark"] body.tool-position-page .donut-chart .track {
  stroke: rgba(255, 255, 255, 0.08);
}

:root[data-theme="dark"] body.tool-position-page .timeline-grid-line {
  stroke: rgba(255, 255, 255, 0.08);
}

:root[data-theme="dark"] body.tool-position-page .timeline-axis {
  stroke: rgba(255, 255, 255, 0.12);
}

:root[data-theme="dark"] body.tool-position-page .timeline-label,
:root[data-theme="dark"] body.tool-position-page .timeline-label-strong {
  fill: #98a2b3;
}

:root[data-theme="dark"] body.tool-networth-page .money-currency,
:root[data-theme="dark"] body.tool-position-page .money-value-currency,
:root[data-theme="dark"] body.tool-position-page .snapshot-money-currency {
  color: #98a2b3 !important;
}

/* Workspace 2026 desktop refresh */
body.tool-hub-page .wrap {
  width: min(1420px, calc(100% - 32px));
  padding: 24px 0 56px;
}

body.tool-position-page .wrap {
  width: min(1480px, calc(100% - 32px));
}

body.tool-hub-page h1 {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

body.tool-hub-page .sub,
body.tool-hub-page .panel-heading p,
body.tool-hub-page .panel-copy,
body.tool-hub-page .small,
body.tool-hub-page .timeline-meta,
body.tool-hub-page .viz-card p,
body.tool-hub-page .tool-stat .detail,
body.tool-hub-page .tool-stat .small,
body.tool-hub-page .tool-stat .label,
body.tool-hub-page .hero-bullets div span,
body.tool-hub-page .summary-copy,
body.tool-hub-page .lookup-help,
body.tool-hub-page .name-hint,
body.tool-hub-page .inline-note {
  color: var(--hub-muted) !important;
}

body.tool-hub-page .tool-utility-nav {
  gap: 10px;
  margin: 0 0 18px;
}

body.tool-hub-page .tool-utility-link {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 16px;
  border: 1px solid var(--hub-border);
  background: color-mix(in srgb, var(--hub-panel-strong) 96%, transparent);
  color: var(--hub-text);
  box-shadow: none;
}

body.tool-hub-page .tool-utility-link.primary {
  background: var(--hub-primary-bg);
  border-color: var(--hub-primary-border);
  color: var(--hub-primary-text);
}

body.tool-hub-page .tool-hero {
  margin-bottom: 20px;
  padding: 24px 26px;
  border-radius: 30px;
  border: 1px solid var(--hub-border);
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--hub-panel-strong) 98%, #ffffff 2%),
    color-mix(in srgb, var(--hub-panel) 98%, transparent)
  );
  box-shadow: var(--hub-shadow);
}

body.tool-hub-page .tool-hero::after {
  width: 240px;
  height: 240px;
  top: -64px;
  right: -56px;
  background: color-mix(in srgb, var(--hub-sky-soft) 72%, transparent);
  filter: blur(34px);
}

@media (min-width: 960px) {
  body.tool-hub-page .tool-hero {
    grid-template-columns: minmax(0, 1fr) minmax(250px, 300px);
    gap: 18px;
  }
}

body.tool-hub-page .tool-eyebrow,
body.tool-hub-page .panel-heading .kicker,
body.tool-position-page .card-title .eyebrow,
body.tool-position-page .step-chip {
  color: var(--hub-primary-text) !important;
  background: var(--hub-primary-bg) !important;
  border: 1px solid var(--hub-primary-border) !important;
}

body.tool-hub-page .tool-pills span {
  background: color-mix(in srgb, var(--hub-panel-strong) 98%, transparent);
  border-color: var(--hub-border);
  color: var(--hub-text);
}

body.tool-hub-page .tool-stat,
body.tool-position-page .hero-card,
body.tool-position-page .hero-side .mini {
  background: color-mix(in srgb, var(--hub-panel-strong) 96%, transparent) !important;
  border: 1px solid var(--hub-border) !important;
  box-shadow: var(--hub-shadow);
}

body.tool-hub-page .tool-stat {
  padding: 18px;
  border-radius: 22px;
}

body.tool-hub-page .tool-stat .value,
body.tool-position-page .hero-side .mini .value {
  font-size: clamp(22px, 2vw, 30px) !important;
  line-height: 1.08;
}

body.tool-position-page .hero-shell {
  gap: 16px;
  margin-bottom: 18px;
}

body.tool-position-page .hero-card {
  border-radius: 28px !important;
  padding: 22px 24px !important;
}

body.tool-position-page .hero-bullets div {
  background: color-mix(in srgb, var(--hub-panel) 98%, transparent) !important;
  border: 1px solid var(--hub-border) !important;
  color: var(--hub-text) !important;
}

body.tool-hub-page .card,
body.tool-hub-page .panel-card,
body.tool-hub-page .viz-card,
body.tool-hub-page .kpi,
body.tool-hub-page .metric,
body.tool-hub-page .mini,
body.tool-hub-page .summary-box,
body.tool-hub-page .lot-card,
body.tool-hub-page .insight-item,
body.tool-hub-page .leader-box,
body.tool-hub-page .archive-item,
body.tool-hub-page .calendar-cell,
body.tool-hub-page details,
body.tool-hub-page .notice,
body.tool-hub-page .status,
body.tool-hub-page .empty,
body.tool-hub-page .lookup-results,
body.tool-hub-page .buy-row,
body.tool-hub-page .lot-row,
body.tool-hub-page .mode-help,
body.tool-hub-page .mode-tab,
body.tool-hub-page table {
  background: color-mix(in srgb, var(--hub-panel-strong) 96%, transparent) !important;
  border-color: var(--hub-border) !important;
}

body.tool-hub-page .card,
body.tool-hub-page .panel-card,
body.tool-hub-page .viz-card {
  border-radius: 28px !important;
  box-shadow: var(--hub-shadow);
}

body.tool-hub-page .kpi,
body.tool-hub-page .metric,
body.tool-hub-page .summary-box,
body.tool-hub-page .mini,
body.tool-hub-page .lot-card,
body.tool-hub-page .calendar-cell,
body.tool-hub-page .leader-box,
body.tool-hub-page .insight-item {
  border-radius: 22px !important;
}

body.tool-hub-page .card {
  padding: 22px !important;
}

body.tool-hub-page .kpi .name,
body.tool-hub-page .metric .name,
body.tool-hub-page .summary-box .name,
body.tool-position-page .lot-label span,
body.tool-position-page .donut-center .label,
body.tool-position-page .pie-core .label,
body.tool-hub-page label,
body.tool-hub-page th,
body.tool-hub-page summary,
body.tool-hub-page .meta,
body.tool-hub-page .lookup-name,
body.tool-hub-page .calendar-meta {
  color: var(--hub-muted) !important;
}

body.tool-hub-page .kpi .value,
body.tool-hub-page .metric .value,
body.tool-hub-page .summary-box .value,
body.tool-hub-page .mini b,
body.tool-position-page .donut-center .value,
body.tool-position-page .pie-core .value {
  font-size: clamp(16px, 1.7vw, 26px) !important;
  line-height: 1.08;
  color: var(--hub-text);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
  word-break: normal;
}

body.tool-hub-page .summary-box .value.money-value .money-value-amount,
body.tool-hub-page .kpi .value.money-value .money-value-amount {
  font-size: clamp(22px, 2.2vw, 32px) !important;
  line-height: 1.02;
}

body.tool-hub-page .leader-grid b,
body.tool-position-page .donut-center .value,
body.tool-position-page .pie-core .value,
body.tool-hub-page tbody td.num {
  font-variant-numeric: tabular-nums;
}

@media (max-width: 780px) {
  body.tool-hub-page .kpi .value,
  body.tool-hub-page .metric .value,
  body.tool-hub-page .summary-box .value,
  body.tool-hub-page .mini b,
  body.tool-position-page .donut-center .value,
  body.tool-position-page .pie-core .value {
    font-size: clamp(14px, 4vw, 20px) !important;
  }

  body.tool-hub-page .summary-box .value.money-value .money-value-amount,
  body.tool-hub-page .kpi .value.money-value .money-value-amount {
    font-size: clamp(17px, 5.4vw, 24px) !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    overflow-wrap: anywhere !important;
  }

  body.tool-hub-page .summary-box.metric-card,
  body.tool-hub-page .kpi.metric-card {
    min-height: auto !important;
  }

  body.tool-hub-page .money-value-detail,
  body.tool-hub-page .snapshot-money-detail {
    font-size: 11px !important;
    line-height: 1.38 !important;
  }
}

body.tool-hub-page input,
body.tool-hub-page select,
body.tool-hub-page textarea,
body.tool-hub-page .mini-input,
body.tool-hub-page .lookup-item {
  border-radius: 16px !important;
  border-color: var(--hub-border-strong) !important;
  background: color-mix(in srgb, var(--hub-panel-strong) 100%, transparent) !important;
  color: var(--hub-text) !important;
}

body.tool-hub-page .lookup-item:hover,
body.tool-hub-page .lookup-item.active {
  background: color-mix(in srgb, var(--hub-primary-bg) 72%, var(--hub-panel-strong)) !important;
}

body.tool-hub-page .tabs,
body.tool-hub-page .mode-tabs {
  gap: 8px;
}

body.tool-hub-page .btn,
body.tool-hub-page .tab,
body.tool-hub-page .mini-btn,
body.tool-hub-page .add,
body.tool-hub-page .primary,
body.tool-hub-page .secondary,
body.tool-hub-page .remove,
body.tool-position-page .mode-tab {
  border-radius: 16px !important;
}

body.tool-hub-page .btn,
body.tool-hub-page .tab,
body.tool-hub-page .mini-btn,
body.tool-hub-page .add,
body.tool-hub-page .secondary,
body.tool-position-page .mode-tab {
  background: color-mix(in srgb, var(--hub-panel-strong) 100%, transparent) !important;
  border-color: var(--hub-border-strong) !important;
  color: var(--hub-text) !important;
}

body.tool-hub-page .btn.primary,
body.tool-hub-page .primary,
body.tool-hub-page .tab.active,
body.tool-position-page .mode-tab.active,
body.tool-hub-page .mini-btn.active {
  background: var(--hub-primary-bg) !important;
  border-color: var(--hub-primary-border) !important;
  color: var(--hub-primary-text) !important;
}

body.tool-hub-page .btn.good {
  background: color-mix(in srgb, var(--success-bg) 92%, transparent) !important;
  border-color: color-mix(in srgb, var(--good) 24%, var(--hub-border)) !important;
  color: var(--good) !important;
}

body.tool-hub-page .btn.danger,
body.tool-hub-page .remove {
  background: color-mix(in srgb, var(--error-bg) 92%, transparent) !important;
  border-color: color-mix(in srgb, var(--bad) 22%, var(--hub-border)) !important;
  color: var(--bad) !important;
}

body.tool-hub-page .notice {
  color: var(--hub-text) !important;
}

body.tool-hub-page .notice.error {
  background: var(--error-bg) !important;
  border-color: var(--error-border) !important;
  color: var(--error-text) !important;
}

body.tool-hub-page .notice.warn {
  background: var(--warning-bg) !important;
  border-color: color-mix(in srgb, var(--warn) 24%, var(--hub-border)) !important;
  color: var(--warning-text) !important;
}

body.tool-hub-page .table-shell {
  border-radius: 22px;
  overflow: auto;
}

body.tool-hub-page table {
  box-shadow: none !important;
}

body.tool-hub-page th {
  background: color-mix(in srgb, var(--hub-panel) 92%, transparent) !important;
}

body.tool-hub-page td,
body.tool-hub-page th {
  border-bottom-color: var(--hub-border-strong) !important;
}

body.tool-hub-page .site-mini-footer {
  margin-top: 24px;
  padding-top: 22px;
}

body.tool-hub-page .site-mini-footer-card {
  background: color-mix(in srgb, var(--hub-panel-strong) 96%, transparent);
  border-color: var(--hub-border);
  box-shadow: var(--hub-shadow);
}

body.tool-hub-page .calendar-cell.gain {
  background: color-mix(in srgb, var(--success-bg) 94%, transparent) !important;
}

body.tool-hub-page .calendar-cell.loss {
  background: color-mix(in srgb, var(--error-bg) 94%, transparent) !important;
}

body.tool-hub-page .timeline-grid-line {
  stroke: color-mix(in srgb, var(--hub-border-strong) 82%, transparent);
}

body.tool-hub-page .timeline-axis {
  stroke: color-mix(in srgb, var(--hub-border-strong) 96%, transparent);
}

body.tool-hub-page .timeline-label {
  fill: var(--hub-muted);
}

body.tool-hub-page .timeline-label-strong {
  fill: var(--hub-text);
}

body.tool-hub-page .tool-utility-nav {
  margin: 0 0 14px;
}

body.tool-hub-page .tool-hero {
  margin-bottom: 16px;
  padding: 18px 20px;
  gap: 12px;
}

body.tool-hub-page h1 {
  font-size: clamp(28px, 3.8vw, 38px);
  line-height: 1.02;
}

body.tool-hub-page .sub {
  margin-top: 8px;
  font-size: 13px;
  max-width: 58ch;
}

body.tool-hub-page .tool-pills {
  margin-top: 12px;
  gap: 6px;
}

body.tool-hub-page .tool-pills span {
  min-height: 28px;
  padding: 0 10px;
  font-size: 11px;
}

body.tool-hub-page .tool-hero-side {
  display: none;
}

body.tool-hub-page .panel-heading {
  margin-bottom: 12px;
}

body.tool-hub-page .tool-stat {
  padding: 14px 16px;
  border-radius: 18px;
}

body.tool-hub-page .tool-stat .value {
  font-size: clamp(20px, 1.8vw, 26px) !important;
}

body.tool-hub-page .tool-stat .detail,
body.tool-hub-page .tool-stat .small {
  margin-top: 6px;
  font-size: 11px;
  line-height: 1.45;
}

body.tool-hub-page .site-mini-footer {
  margin-top: 18px;
  padding-top: 18px;
}

body.tool-hub-page .site-mini-footer-card {
  padding: 14px 16px;
  border-radius: 18px;
}

body.tool-position-page .hero-shell {
  gap: 12px;
  margin-bottom: 14px;
}

body.tool-position-page .hero-card {
  padding: 18px 20px !important;
}

body.tool-position-page .hero-bullets,
body.tool-position-page .hero-side {
  display: none;
}

body.tool-position-page h1 {
  font-size: clamp(30px, 4vw, 42px);
}

body.tool-position-page .sub {
  margin-bottom: 12px;
  max-width: 60ch;
}

/* Final consistency pass */
body.tool-hub-page .tool-eyebrow,
body.tool-hub-page .panel-heading .kicker,
body.tool-position-page .card-title .eyebrow,
body.tool-position-page .step-chip {
  display: inline-flex !important;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

body.tool-hub-page .tool-hero,
body.tool-hub-page .card,
body.tool-hub-page .panel-card,
body.tool-hub-page .viz-card,
body.tool-hub-page .summary-box,
body.tool-hub-page .kpi,
body.tool-hub-page .metric,
body.tool-hub-page .site-mini-footer-card {
  border-radius: 24px;
}

body.tool-hub-page .tool-utility-nav,
body.tool-hub-page .panel-heading,
body.tool-hub-page .card-title,
body.tool-hub-page .focus-view-head,
body.tool-hub-page .calendar-head,
body.tool-hub-page .timeline-tab-row {
  gap: 12px;
}

body.tool-hub-page .tool-utility-link,
body.tool-hub-page .btn,
body.tool-hub-page .mini-btn,
body.tool-hub-page .tab,
body.tool-hub-page input,
body.tool-hub-page select,
body.tool-hub-page textarea {
  min-height: 42px;
}

body.tool-hub-page table {
  table-layout: fixed;
}

body.tool-hub-page th,
body.tool-hub-page td {
  overflow-wrap: anywhere;
}

body.tool-hub-page .tool-pills span {
  white-space: nowrap;
}
