/* Page/family-specific styles. Shared base and components are loaded from sibling CSS files. */
:root {
      --bg: #f8f9fa;
      --card: #ffffff;
      --card-2: #f3f5f7;
      --surface: var(--card);
      --surface-soft: var(--card-2);
      --surface-strong: #ecfdf5;
      --text: #0f172a;
      --muted: #64748b;
      --line: rgba(15, 23, 42, .10);
      --line-2: rgba(15, 23, 42, .16);
      --green: #0f9f76;
      --green-2: #0d8b68;
      --green-dark: var(--green-2);
      --green-soft: rgba(15, 159, 118, .10);
      --blue: #2563eb;
      --blue-soft: rgba(37, 99, 235, .10);
      --warning: #9a6a14;
      --warning-soft: rgba(154, 106, 20, .12);
      --danger: #c94860;
      --danger-soft: rgba(201, 72, 96, .10);
      --shadow: 0 22px 60px -24px rgba(15, 23, 42, .28);
      --shadow-soft: 0 10px 40px -10px rgba(0, 0, 0, .08);
      --shadow-lift: 0 24px 60px -22px rgba(15, 23, 42, .32);
      --glass: rgba(255, 255, 255, .78);
      --glass-strong: rgba(255, 255, 255, .92);
      --overlay: rgba(11, 15, 25, .64);
      --radius: 16px;
      --radius-sm: 12px;
      --max: 1240px;
      --max-wide: 1320px;
      --tool-content-max: 1240px;
      --tool-panel-radius: 16px;
      --tool-card-min-height: 220px;
      --font-body: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      --font-numeric: "Space Grotesk", Inter, system-ui, sans-serif;
    }

body.dark {
      --bg: #0b0f19;
      --card: #111827;
      --card-2: #0f172a;
      --surface: var(--card);
      --surface-soft: var(--card-2);
      --surface-strong: #064e3b;
      --text: #e2e8f0;
      --muted: #94a3b8;
      --line: rgba(148, 163, 184, .18);
      --line-2: rgba(148, 163, 184, .26);
      --green: #10b981;
      --green-2: #34d399;
      --green-dark: var(--green);
      --green-soft: rgba(16, 185, 129, .14);
      --blue: #60a5fa;
      --blue-soft: rgba(96, 165, 250, .13);
      --warning: #ffd27a;
      --warning-soft: rgba(255, 210, 122, .12);
      --danger: #ff7d96;
      --danger-soft: rgba(255, 125, 150, .12);
      --shadow: none;
      --shadow-soft: inset 0 1px 0 rgba(255, 255, 255, .04);
      --shadow-lift: inset 0 1px 0 rgba(255, 255, 255, .06), 0 18px 44px -30px rgba(0, 0, 0, .90);
      --glass: rgba(17, 24, 39, .74);
      --glass-strong: rgba(17, 24, 39, .92);
      --overlay: rgba(2, 6, 23, .78);
    }

body {
      font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      background:
        radial-gradient(circle at top left, rgba(15, 159, 118, 0.13), transparent 28%),
        radial-gradient(circle at top right, rgba(15, 159, 118, 0.07), transparent 34%),
        var(--bg);
      color: var(--text);
      min-height: 100vh;
      padding: 14px;
      transition: background-color .35s ease, color .35s ease;
    }

button {
      font: inherit;
      cursor: pointer;
      -webkit-tap-highlight-color: transparent;
    }

.nav-link:hover,
    .nav-link.active {
      background: var(--card-2);
      border-color: var(--line);
      color: var(--text);
    }

.hero {
      display: grid;
      grid-template-columns: 1.08fr .92fr;
      gap: 34px;
      align-items: center;
      padding: 50px 8px 34px;
    }

.hero h1 {
      max-width: 820px;
      margin-bottom: 16px;
      color: var(--text);
      font-size: clamp(2.55rem, 5.9vw, 5.15rem);
      line-height: .96;
      letter-spacing: -3.8px;
    }

.hero p {
      max-width: 760px;
      color: var(--muted);
      font-size: 1.07rem;
      line-height: 1.8;
      margin-bottom: 22px;
    }

.hero-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      align-items: center;
    }

.primary-btn,
    .secondary-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 48px;
      padding: 12px 18px;
      border-radius: 999px;
      font-weight: 850;
      transition: .18s ease;
    }

.primary-btn {
      background: var(--green);
      color: #fff;
    }

.primary-btn:hover {
      background: var(--green-2);
      transform: translateY(-1px);
    }

.secondary-btn {
      border: 1px solid var(--line);
      background: var(--card);
      color: var(--text);
    }

.secondary-btn:hover {
      border-color: rgba(15, 159, 118, .28);
      transform: translateY(-1px);
    }

.hero-visual {
      position: relative;
      min-height: 460px;
      padding: 18px;
      border: 1px solid var(--line-2);
      border-radius: 34px;
      background:
        radial-gradient(circle at top left, rgba(15, 159, 118, .18), transparent 42%),
        var(--card);
      box-shadow: var(--shadow);
      overflow: hidden;
    }

.dashboard-mock {
      position: relative;
      z-index: 2;
      display: grid;
      gap: 14px;
    }

.mock-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding: 14px;
      border: 1px solid var(--line);
      border-radius: 22px;
      background: var(--card-2);
    }

.mock-dots {
      display: flex;
      gap: 6px;
    }

.mock-dot {
      width: 9px;
      height: 9px;
      border-radius: 50%;
      background: var(--green);
      opacity: .6;
    }

.mock-title {
      color: var(--muted);
      font-size: .84rem;
      font-weight: 800;
    }

.mock-main-card {
      padding: 20px;
      border: 1px solid rgba(15, 159, 118, .18);
      border-radius: 26px;
      background: linear-gradient(180deg, var(--green-soft), var(--card-2));
    }

.mock-main-card small {
      display: block;
      margin-bottom: 10px;
      color: var(--green);
      font-weight: 900;
      text-transform: uppercase;
      letter-spacing: .1em;
      font-size: .74rem;
    }

.mock-main-card strong {
      display: block;
      margin-bottom: 10px;
      color: var(--text);
      font-size: clamp(2rem, 4vw, 3.2rem);
      letter-spacing: -2px;
      line-height: 1;
    }

.mock-main-card span {
      color: var(--muted);
      font-size: .94rem;
      line-height: 1.65;
    }

.mock-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 12px;
    }

.mock-card {
      padding: 16px;
      border: 1px solid var(--line);
      border-radius: 22px;
      background: var(--card-2);
    }

.mock-card small {
      display: block;
      margin-bottom: 8px;
      color: var(--muted);
      font-size: .78rem;
      font-weight: 800;
    }

.mock-card strong {
      display: block;
      color: var(--text);
      font-size: 1.18rem;
      letter-spacing: -.4px;
    }

.mock-lines {
      display: grid;
      gap: 9px;
      padding: 16px;
      border: 1px solid var(--line);
      border-radius: 22px;
      background: var(--card-2);
    }

.mock-line {
      height: 10px;
      border-radius: 999px;
      background: color-mix(in srgb, var(--green) 24%, transparent);
    }

.mock-line:nth-child(2) {
      width: 78%;
      background: color-mix(in srgb, var(--muted) 24%, transparent);
    }

.mock-line:nth-child(3) {
      width: 52%;
      background: color-mix(in srgb, var(--green) 18%, transparent);
    }

.section {
      width: 100%;
      max-width: 1240px;
      margin: 0 auto 16px;
      padding: 24px;
      border: 1px solid var(--line-2);
      border-radius: 30px;
      background: var(--card);
      box-shadow: var(--shadow);
    }

.section-head {
      max-width: 780px;
      margin-bottom: 20px;
    }

.section-head.center {
      margin-left: auto;
      margin-right: auto;
      text-align: center;
    }

.section h2 {
      margin-bottom: 12px;
      color: var(--text);
      font-size: clamp(1.65rem, 3.4vw, 2.55rem);
      letter-spacing: -1.2px;
      line-height: 1.08;
    }

.section-head p,
    .section > p {
      color: var(--muted);
      font-size: 1rem;
      line-height: 1.8;
    }

.tools-showcase {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 12px;
    }

.tool-card {
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      gap: 18px;
      min-height: 250px;
      padding: 20px;
      border: 1px solid var(--line);
      border-radius: 24px;
      background:
        linear-gradient(180deg, color-mix(in srgb, var(--green-soft) 42%, transparent), var(--card-2));
      transition: .18s ease;
    }

.tool-card:hover {
      transform: translateY(-2px);
      border-color: rgba(15, 159, 118, .28);
    }

.mini-icon {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 42px;
      height: 42px;
      min-width: 42px;
      margin-bottom: 14px;
      border-radius: 16px;
      background: var(--green-soft);
      color: var(--green);
      font-size: .84rem;
      font-weight: 900;
      line-height: 1;
      text-align: center;
    }

.tool-card h3 {
      margin-bottom: 9px;
      color: var(--text);
      font-size: 1.18rem;
      letter-spacing: -.45px;
    }

.tool-card p {
      color: var(--muted);
      font-size: .94rem;
      line-height: 1.7;
    }

.tool-card a,
    .content-link {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 44px;
      padding: 10px 14px;
      border-radius: 999px;
      background: var(--green);
      color: #fff;
      font-size: .92rem;
      font-weight: 850;
      text-align: center;
      transition: .18s ease;
    }

.tool-card a:hover,
    .content-link:hover {
      background: var(--green-2);
      transform: translateY(-1px);
    }

.objectives-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 12px;
    }

.objective-row {
      display: grid;
      grid-template-columns: 220px 1fr auto;
      gap: 18px;
      align-items: center;
      padding: 18px;
      border: 1px solid var(--line);
      border-radius: 24px;
      background: var(--card-2);
    }

.objective-kicker {
      display: flex;
      align-items: center;
      gap: 12px;
      color: var(--green);
      font-weight: 900;
    }

.objective-kicker .mini-icon {
      margin-bottom: 0;
    }

.objective-row h3 {
      margin-bottom: 5px;
      color: var(--text);
      font-size: 1.08rem;
      letter-spacing: -.35px;
    }

.objective-row p {
      color: var(--muted);
      font-size: .94rem;
      line-height: 1.65;
    }

.content-groups {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 12px;
    }

.content-group {
      padding: 20px;
      border: 1px solid var(--line);
      border-radius: 24px;
      background: var(--card-2);
    }

.content-group h3 {
      margin-bottom: 10px;
      color: var(--text);
      font-size: 1.13rem;
      letter-spacing: -.35px;
    }

.content-group p {
      margin-bottom: 14px;
      color: var(--muted);
      font-size: .93rem;
      line-height: 1.65;
    }

.article-list {
      display: grid;
      gap: 9px;
    }

.article-list a {
      display: block;
      padding: 12px;
      border: 1px solid var(--line);
      border-radius: 16px;
      background: color-mix(in srgb, var(--card) 55%, transparent);
      color: var(--text);
      font-size: .92rem;
      font-weight: 800;
      line-height: 1.45;
      transition: .18s ease;
    }

.article-list a:hover {
      border-color: rgba(15, 159, 118, .28);
      color: var(--green);
      transform: translateY(-1px);
    }

.trust-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 12px;
    }

.trust-card {
      padding: 18px;
      border: 1px solid var(--line);
      border-radius: 22px;
      background: var(--card-2);
    }

.trust-card h3 {
      margin-bottom: 8px;
      color: var(--text);
      font-size: 1rem;
      letter-spacing: -.25px;
    }

.trust-card p {
      color: var(--muted);
      font-size: .92rem;
      line-height: 1.65;
    }

/* Home editorial refinada */
.editorial-section {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto 16px;
  padding: 30px;
  border: 1px solid var(--line-2);
  border-radius: 30px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.editorial-section.soft {
  background:
    radial-gradient(circle at top left, rgba(15, 159, 118, .10), transparent 38%),
    var(--card);
}

.editorial-head {
  max-width: 780px;
  margin-bottom: 22px;
}

.editorial-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.editorial-head h2 {
  margin-bottom: 12px;
  color: var(--text);
  font-size: clamp(1.7rem, 3.6vw, 2.8rem);
  line-height: 1.06;
  letter-spacing: -1.4px;
}

.editorial-head p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
}

.feature-tool {
  display: grid;
  grid-template-columns: 1.5fr .85fr;
  gap: 22px;
  align-items: stretch;
}

.feature-main {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  padding: 24px;
  border: 1px solid rgba(15, 159, 118, .22);
  border-radius: 26px;
  background:
    linear-gradient(180deg, var(--green-soft), var(--card-2));
}

.feature-main h3 {
  margin-bottom: 10px;
  color: var(--text);
  font-size: clamp(1.45rem, 2.7vw, 2.15rem);
  letter-spacing: -.8px;
  line-height: 1.12;
}

.feature-main p {
  color: var(--muted);
  font-size: .98rem;
  line-height: 1.75;
}

.feature-links {
  display: grid;
  gap: 10px;
}

.feature-link {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--card-2);
  transition: .18s ease;
}

.feature-link:hover {
  border-color: rgba(15, 159, 118, .32);
  transform: translateY(-1px);
}

.feature-link .mini-icon {
  margin-bottom: 0;
}

.feature-link strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
  font-size: 1rem;
  letter-spacing: -.25px;
}

.feature-link span {
  display: block;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.55;
}

.text-link-list {
  display: grid;
  gap: 20px;
}

.text-topic {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 22px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.text-topic:first-child {
  border-top: none;
  padding-top: 0;
}

.text-topic:last-child {
  padding-bottom: 0;
}

.text-topic-title {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.text-topic-title .mini-icon {
  margin-bottom: 0;
}

.text-topic-title strong {
  display: block;
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.35;
  letter-spacing: -.3px;
}

.text-topic-body p {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: .96rem;
  line-height: 1.75;
}

.inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.inline-links a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card-2);
  color: var(--text);
  font-size: .88rem;
  font-weight: 800;
  transition: .18s ease;
}

.inline-links a:hover {
  border-color: rgba(15, 159, 118, .32);
  color: var(--green);
  transform: translateY(-1px);
}

.natural-split {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 26px;
  align-items: center;
}

.natural-copy h2 {
  margin-bottom: 14px;
  color: var(--text);
  font-size: clamp(1.7rem, 3.3vw, 2.55rem);
  line-height: 1.08;
  letter-spacing: -1.2px;
}

.natural-copy p {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
}

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

.benefit-item {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  align-items: start;
}

.benefit-item .mini-icon {
  width: 34px;
  height: 34px;
  min-width: 34px;
  margin-bottom: 0;
  border-radius: 13px;
  font-size: .75rem;
}

.benefit-item strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
  font-size: .98rem;
}

.benefit-item span {
  display: block;
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.6;
}

.transparency-box {
  padding: 26px;
  border: 1px solid rgba(15, 159, 118, .22);
  border-radius: 26px;
  background:
    linear-gradient(180deg, var(--green-soft), var(--card-2));
}

.transparency-box h2 {
  margin-bottom: 12px;
  color: var(--text);
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  letter-spacing: -1px;
  line-height: 1.1;
}

.transparency-box p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 14px;
}

.transparency-box p:last-child {
  margin-bottom: 0;
}

.home-note-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.home-note-links a {
  color: var(--green);
  font-weight: 850;
}

@media (max-width: 1040px) {
  .feature-tool,
  .natural-split {
    grid-template-columns: 1fr;
  }

  .text-topic {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

@media (max-width: 760px) {
  .editorial-section {
    padding: 16px !important;
    border-radius: 22px !important;
  }

  .feature-main,
  .feature-link,
  .transparency-box {
    padding: 16px;
    border-radius: 20px;
  }

  .inline-links a {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

.mobile-menu-backdrop {
      position: fixed;
      inset: 0;
      z-index: 120;
      display: flex;
      align-items: flex-end;
      justify-content: center;
      padding: 12px;
      background: var(--overlay);
      opacity: 0;
      visibility: hidden;
      transition: .18s ease;
    }

.mobile-menu-backdrop.show {
      opacity: 1;
      visibility: visible;
    }

.mobile-panel {
      width: min(520px, 100%);
      max-height: 88vh;
      overflow: auto;
      padding: 20px;
      border: 1px solid var(--line);
      border-radius: 28px 28px 20px 20px;
      background: var(--card);
      box-shadow: 0 24px 60px rgba(0,0,0,.22);
      transform: translateY(14px);
      transition: .18s ease;
    }

.mobile-menu-backdrop.show .mobile-panel {
      transform: translateY(0);
    }

.mobile-head {
      display: grid;
      grid-template-columns: 1fr auto;
      gap: 14px;
      align-items: start;
      margin-bottom: 16px;
    }

.mobile-head strong {
      display: block;
      margin-bottom: 6px;
      color: var(--text);
      font-size: clamp(1.35rem, 3vw, 2rem);
      letter-spacing: -.8px;
    }

.mobile-head p {
      color: var(--muted);
      font-size: .96rem;
      line-height: 1.65;
    }

.mobile-item {
      width: 100%;
      padding: 15px;
      border: 1px solid var(--line);
      border-radius: 20px;
      background: var(--card-2);
      color: var(--text);
      text-align: left;
      display: grid;
      grid-template-columns: 42px 1fr;
      gap: 12px;
      align-items: center;
      transition: .18s ease;
    }

.mobile-item:hover {
      transform: translateY(-1px);
      border-color: rgba(15, 159, 118, .34);
    }

.mobile-item .mini-icon {
      margin-bottom: 0;
    }

.mobile-item strong {
      display: block;
      margin-bottom: 4px;
      color: var(--text);
      font-size: 1rem;
    }

.mobile-item small {
      display: block;
      color: var(--muted);
      font-size: .9rem;
      line-height: 1.55;
    }

@media (max-width: 1040px) {
      .hero {
        grid-template-columns: 1fr;
      }

      .hero-visual {
        min-height: auto;
      }

      .tools-showcase,
      .content-groups,
      .trust-grid {
        grid-template-columns: 1fr;
      }

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

      .content-link {
        width: 100%;
      }
    }

@media (max-width: 760px) {
      body {
        padding: 10px;
      }

      .container,
      main,
      .hero,
      .section,
.editorial-section,
.site-footer {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
      }

      .theme-btn,
      .theme-text {
        display: none !important;
      }

      .mobile-menu-btn span:last-child {
        display: inline !important;
        font-size: .88rem;
        font-weight: 800;
      }

      .hero {
        padding: 24px 4px 18px;
        gap: 18px;
      }

      .hero h1 {
        font-size: 2.42rem !important;
        line-height: 1;
        letter-spacing: -2px;
      }

      .hero p {
        max-width: 100%;
        font-size: .98rem;
        line-height: 1.75;
      }

      .hero-actions {
        width: 100%;
      }

      .primary-btn,
      .secondary-btn {
        width: 100%;
      }

      .section,
      .hero-visual,
      .mobile-panel {
        padding: 16px !important;
        border-radius: 22px !important;
      }

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

      .tool-card,
      .content-group,
      .trust-card,
      .objective-row {
        padding: 16px;
        border-radius: 20px;
      }

      .footer-actions {
        gap: 14px;
      }
    }

@media (max-width: 420px) {
      .hero h1 {
        font-size: 2.22rem !important;
      }

      .mobile-menu-btn span:last-child {
        display: none !important;
      }
    }

.directory-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 12px;
    }

.directory-card,
    .category-panel {
      display: flex;
      flex-direction: column;
      gap: 16px;
      padding: 22px;
      border: 1px solid var(--line);
      border-radius: 24px;
      background: var(--card-2);
      transition: .18s ease;
    }

.directory-card:hover,
    .category-panel:hover {
      transform: translateY(-2px);
      border-color: rgba(15, 159, 118, .28);
    }

.directory-card h3,
    .category-panel h3 {
      margin: 10px 0 8px;
      color: var(--text);
      font-size: 1.22rem;
      letter-spacing: -.35px;
    }

.directory-card p,
    .category-panel p {
      color: var(--muted);
      font-size: .96rem;
      line-height: 1.7;
    }

.directory-actions,
    .category-links {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-top: auto;
    }

.directory-actions a,
    .category-links a {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 40px;
      padding: 9px 12px;
      border: 1px solid var(--line);
      border-radius: 999px;
      background: var(--card);
      color: var(--text);
      font-size: .88rem;
      font-weight: 850;
    }

.directory-actions a:first-child {
      border-color: transparent;
      background: var(--green);
      color: #fff;
    }

.category-list {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 12px;
    }

@media (max-width: 1040px) {
      .directory-grid {
        grid-template-columns: repeat(2, 1fr);
      }
    }

@media (max-width: 760px) {
      .directory-grid,
      .category-list {
        grid-template-columns: 1fr;
      }

      .directory-card,
      .category-panel {
        padding: 16px;
        border-radius: 20px;
      }
    }

.rebalance-panel {
      width: 100%;
      max-width: 1240px;
      margin: 0 auto 16px;
      padding: 24px;
      border: 1px solid var(--line-2);
      border-radius: 30px;
      background: var(--card);
      box-shadow: var(--shadow);
    }

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

.rebalance-head h2 {
      margin-bottom: 8px;
      font-size: clamp(1.45rem, 2.7vw, 2.15rem);
      letter-spacing: -.8px;
    }

.rebalance-head p,
    .rebalance-note p {
      color: var(--muted);
      line-height: 1.75;
    }

.rebalance-status {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 38px;
      padding: 8px 12px;
      border-radius: 999px;
      background: var(--green-soft);
      color: var(--green);
      font-weight: 900;
      white-space: nowrap;
    }

.allocation-table {
      display: grid;
      gap: 10px;
    }

.allocation-header,
    .allocation-row {
      display: grid;
      grid-template-columns: 1.15fr .9fr .8fr 42px;
      gap: 10px;
      align-items: end;
    }

.allocation-header {
      color: var(--muted);
      font-size: .82rem;
      font-weight: 900;
      text-transform: uppercase;
      letter-spacing: .08em;
    }

.allocation-row {
      padding: 12px;
      border: 1px solid var(--line);
      border-radius: 18px;
      background: var(--card-2);
    }

.allocation-row label {
      display: grid;
      gap: 6px;
      color: var(--muted);
      font-size: .82rem;
      font-weight: 800;
    }

.allocation-row input {
      width: 100%;
      min-height: 44px;
      border: 1px solid var(--line);
      border-radius: 14px;
      background: var(--card);
      color: var(--text);
      padding: 10px 12px;
      font: inherit;
      outline: none;
    }

.allocation-row input:focus {
      border-color: rgba(15, 159, 118, .5);
      box-shadow: 0 0 0 4px var(--green-soft);
    }

.remove-row-btn {
      width: 42px;
      height: 42px;
      border: 1px solid color-mix(in srgb, var(--danger) 46%, var(--line));
      border-radius: 14px;
      background: color-mix(in srgb, var(--danger) 14%, var(--card));
      color: var(--danger);
      box-shadow: 0 12px 26px -20px color-mix(in srgb, var(--danger) 72%, #000);
      font-weight: 950;
      cursor: pointer;
      transition: transform .18s ease, border-color .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
    }

.remove-row-btn:hover {
      border-color: color-mix(in srgb, var(--danger) 72%, var(--line));
      background: color-mix(in srgb, var(--danger) 22%, var(--card));
      color: #ffffff;
      transform: translateY(-1px);
      box-shadow: 0 16px 30px -18px color-mix(in srgb, var(--danger) 82%, #000);
    }

.remove-row-btn:active {
      transform: translateY(0) scale(.98);
    }

.remove-row-btn:focus-visible {
      outline: 3px solid color-mix(in srgb, var(--danger) 34%, transparent);
      outline-offset: 3px;
    }

.rebalance-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      margin: 14px 0 18px;
    }

.rebalance-contribution {
      display: grid;
      grid-template-columns: minmax(220px, 320px) 1fr;
      gap: 12px;
      align-items: end;
      margin: 0 0 20px;
      padding: 16px;
      border: 1px solid rgba(36, 107, 254, .18);
      border-radius: 18px;
      background: linear-gradient(135deg, rgba(36, 107, 254, .08), rgba(15, 159, 118, .06));
    }

.rebalance-contribution label {
      display: grid;
      gap: 6px;
      color: var(--muted);
      font-size: .85rem;
      font-weight: 800;
    }

.rebalance-contribution input {
      width: 100%;
      min-height: 48px;
      border: 1px solid var(--line);
      border-radius: 15px;
      padding: 0 14px;
      background: var(--input-bg);
      color: var(--text);
      font: inherit;
      font-weight: 750;
    }

.rebalance-contribution p {
      margin: 0;
      color: var(--muted);
      line-height: 1.55;
      font-weight: 650;
    }

@media (max-width: 860px) {
      .rebalance-contribution {
        grid-template-columns: 1fr;
      }
    }

.rebalance-actions button {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 44px;
      padding: 10px 14px;
      border: 1px solid var(--line);
      border-radius: 999px;
      background: var(--card-2);
      color: var(--text);
      font-weight: 900;
    }

.rebalance-actions button:first-child {
      border-color: transparent;
      background: var(--green);
      color: #fff;
    }

.summary-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 10px;
      margin-bottom: 18px;
    }

.summary-tile,
    .chart-box {
      padding: 16px;
      border: 1px solid var(--line);
      border-radius: 18px;
      background: var(--card-2);
    }

.summary-tile span {
      display: block;
      margin-bottom: 8px;
      color: var(--muted);
      font-size: .82rem;
      font-weight: 850;
    }

.summary-tile strong {
      color: var(--text);
      font-size: clamp(1.12rem, 2vw, 1.45rem);
    }

.chart-layout {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 12px;
      margin-bottom: 18px;
    }

.chart-box {
      border-radius: 22px;
    }

.chart-box.wide {
      grid-column: 1 / -1;
    }

.chart-box h3 {
      margin-bottom: 4px;
      color: var(--text);
      font-size: 1rem;
    }

.chart-box p {
      margin-bottom: 12px;
      color: var(--muted);
      font-size: .9rem;
      line-height: 1.6;
    }

.chart-box canvas {
      width: 100%;
      min-height: 340px;
      border-radius: 18px;
      background: color-mix(in srgb, var(--card) 66%, transparent);
    }

.rebalance-result {
      overflow: hidden;
      border: 1px solid var(--line);
      border-radius: 22px;
      background: var(--card-2);
    }

.result-row,
    .result-head {
      display: grid;
      grid-template-columns: 1.1fr .75fr .75fr .9fr .9fr;
      gap: 10px;
      padding: 12px 14px;
      border-bottom: 1px solid var(--line);
      align-items: center;
    }

.result-head {
      background: var(--green-soft);
      color: var(--green);
      font-size: .78rem;
      font-weight: 950;
      text-transform: uppercase;
      letter-spacing: .08em;
    }

.result-row:last-child {
      border-bottom: none;
    }

.result-row strong {
      color: var(--text);
    }

.result-row span {
      color: var(--muted);
      font-size: .92rem;
    }

.rebalance-note {
      margin-top: 16px;
      padding: 16px;
      border: 1px solid rgba(154, 106, 20, .22);
      border-radius: 18px;
      background: var(--warning-soft);
    }

.rebalance-note strong {
      display: block;
      margin-bottom: 6px;
      color: var(--warning);
    }

@media (max-width: 980px) {
      .summary-grid,
      .chart-layout {
        grid-template-columns: repeat(2, 1fr);
      }

      .allocation-header {
        display: none;
      }

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

      .remove-row-btn {
        grid-column: 1 / -1;
        width: 100%;
        color: #ffffff;
        background: color-mix(in srgb, var(--danger) 72%, #7f1d1d);
      }

      .result-head {
        display: none;
      }

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

@media (max-width: 760px) {
      .rebalance-panel {
        width: 100% !important;
        max-width: 100% !important;
        padding: 16px !important;
        border-radius: 22px !important;
      }

      .rebalance-head,
      .summary-grid,
      .chart-layout,
      .allocation-row {
        display: grid;
        grid-template-columns: 1fr;
      }
    }

.single-hero {
      display: block;
      max-width: 960px;
      margin: 0 auto 24px;
      padding: 30px 10px 22px;
      text-align: center;
    }

.single-hero h1 {
      max-width: 860px;
      margin-left: auto;
      margin-right: auto;
    }

.single-hero p {
      margin-left: auto;
      margin-right: auto;
    }

.faq-item summary::-webkit-details-marker {
      display: none;
    }

.faq-item[open] summary::after {
      content: "-";
    }
