:root {
  --cb-canvas: #f4f6f5;
  --cb-paper: #ffffff;
  --cb-forest: #203b32;
  --cb-forest-soft: #34594d;
  --cb-sage: #6d9f8f;
  --cb-sage-light: #e8f1ee;
  --cb-gold: #b49a63;
  --cb-ink: #24342e;
  --cb-text: #5d6c66;
  --cb-muted: #84908b;
  --cb-line: #dfe6e3;
}

html {
  scroll-behavior: smooth;
  background: var(--cb-canvas);
}

body {
  color: var(--cb-ink);
  background: var(--cb-canvas);
}

.app-shell {
  min-height: 100vh;
  background: var(--cb-canvas);
}

.topbar {
  position: relative;
  min-height: 96px;
  padding: 16px max(32px, calc((100% - 1080px) / 2));
  border-bottom: 1px solid var(--cb-line);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: none;
}

.topbar::before {
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--cb-gold), #d2c39e 42%, var(--cb-sage));
  content: "";
}

.brand {
  gap: 15px;
}

.brand-mark {
  display: grid;
  width: 62px;
  height: 62px;
  flex: 0 0 62px;
  place-items: center;
  overflow: hidden;
  border: 1px solid #e6e2d8;
  border-radius: 14px;
  background: #fbfaf6;
  box-shadow: none;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-copy {
  gap: 4px;
}

.brand-copy strong {
  color: var(--cb-forest);
  font-size: 20px;
  font-weight: 760;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.brand-copy span {
  color: var(--cb-forest-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
}

.security-badge {
  color: var(--cb-forest-soft);
  border-color: var(--cb-line);
  background: #f8faf9;
}

.secure-dot {
  background: #79aa99;
}

.quiet-button {
  border-color: var(--cb-line);
  color: var(--cb-forest-soft);
  background: #fff;
}

.cb-dashboard {
  width: min(1080px, calc(100% - 48px));
  margin: 0 auto;
  padding: 36px 0 30px;
}

.cb-welcome {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  padding: 0 2px 24px;
}

.cb-welcome .eyebrow,
.cb-section-heading .eyebrow {
  margin: 0 0 6px;
  color: var(--cb-forest-soft);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1.3;
  text-transform: uppercase;
}

.cb-welcome h1 {
  margin: 0;
  color: var(--cb-forest);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 730;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.cb-welcome > div > p {
  max-width: 620px;
  margin: 8px 0 0;
  color: var(--cb-text);
  font-size: 16px;
  line-height: 1.55;
}

.cb-identity {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid var(--cb-line);
  border-radius: 12px;
  background: var(--cb-paper);
}

.cb-initials {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  color: var(--cb-forest);
  background: var(--cb-sage-light);
  font-size: 12px;
  font-weight: 800;
}

.cb-identity > span:last-child {
  display: grid;
  gap: 2px;
}

.cb-identity strong {
  font-size: 13px;
  line-height: 1.2;
}

.cb-identity small {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--cb-sage);
  font-size: 11px;
  font-weight: 700;
}

.cb-identity small svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.cb-overview {
  position: relative;
  overflow: hidden;
  border: 1px solid #29483d;
  border-radius: 20px;
  color: #fff;
  background:
    radial-gradient(circle at 88% 10%, rgba(178, 204, 195, 0.16), transparent 33%),
    linear-gradient(140deg, #1c352d, #294b40);
  box-shadow: 0 18px 38px rgba(31, 57, 48, 0.13);
}

.cb-overview::before {
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--cb-gold), #d7c89d 55%, transparent);
  content: "";
}

.cb-overview-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px 0;
}

.cb-overview-topline p,
.cb-capital-block > span {
  margin: 0;
  color: #c7d7d2;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.cb-overview-topline strong {
  display: block;
  margin-top: 4px;
  font-size: 17px;
}

.cb-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  color: #e7f0ed;
  background: rgba(255, 255, 255, 0.08);
  font-size: 11px;
  font-weight: 700;
}

.cb-status-badge i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #94c4ae;
  box-shadow: 0 0 0 3px rgba(148, 196, 174, 0.13);
}

.cb-capital-block {
  padding: 25px 24px 28px;
}

.cb-capital-block > strong {
  display: block;
  margin-top: 7px;
  font-size: clamp(34px, 5vw, 44px);
  font-weight: 720;
  letter-spacing: -0.04em;
  line-height: 1;
}

.cb-capital-block > small {
  display: block;
  margin-top: 8px;
  color: #bccdc7;
  font-size: 13px;
}

.cb-progress {
  margin: 0 24px 23px;
  padding: 15px 16px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.055);
}

.cb-progress-heading,
.cb-progress-values {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cb-progress-heading > span {
  color: #d6e1dd;
  font-size: 12px;
  font-weight: 700;
}

.cb-progress-heading > strong {
  color: #e0d2a8;
  font-size: 16px;
}

.cb-progress-track {
  height: 7px;
  margin-top: 11px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.cb-progress-track > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #c1ac74, #d9c99f);
}

.cb-progress-values {
  margin-top: 8px;
  color: #aebfba;
  font-size: 11px;
}

.cb-overview-details {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  border-top: 1px solid rgba(255, 255, 255, 0.11);
  background: rgba(10, 28, 22, 0.16);
}

.cb-overview-details > div {
  display: flex;
  min-height: 82px;
  align-items: center;
  gap: 11px;
  padding: 16px 22px;
}

.cb-overview-details > div + div {
  border-left: 1px solid rgba(255, 255, 255, 0.11);
}

.cb-detail-icon svg {
  width: 20px;
  height: 20px;
  color: #cbbb8e;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cb-overview-details > div > span:last-child {
  display: grid;
  gap: 4px;
}

.cb-overview-details small {
  color: #b9cbc5;
  font-size: 11px;
  font-weight: 650;
}

.cb-overview-details strong {
  font-size: 15px;
  line-height: 1.3;
}

.cb-content-section {
  margin-top: 30px;
}

.cb-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin: 0 2px 12px;
}

.cb-section-heading h2 {
  margin: 0;
  color: var(--cb-ink);
  font-size: 20px;
  letter-spacing: -0.02em;
}

.cb-section-heading > span {
  color: var(--cb-muted);
  font-size: 12px;
}

.cb-financial-panel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  border: 1px solid var(--cb-line);
  border-radius: 17px;
  background: var(--cb-paper);
}

.cb-financial-row {
  display: flex;
  min-height: 92px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
}

.cb-financial-row + .cb-financial-row {
  border-left: 1px solid var(--cb-line);
}

.cb-financial-row > span {
  display: grid;
  gap: 4px;
}

.cb-financial-row small {
  color: var(--cb-text);
  font-size: 13px;
  font-weight: 700;
}

.cb-financial-row em {
  color: var(--cb-muted);
  font-size: 11px;
  font-style: normal;
}

.cb-financial-row > strong {
  font-size: 18px;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.cb-quick-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  overflow: hidden;
  border: 1px solid var(--cb-line);
  border-radius: 17px;
  background: var(--cb-paper);
}

.cb-quick-actions a {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 13px;
  min-height: 82px;
  padding: 15px 18px;
  color: var(--cb-ink);
  text-decoration: none;
}

.cb-quick-actions a + a {
  border-left: 1px solid var(--cb-line);
}

.cb-quick-actions a:focus-visible {
  outline: 3px solid rgba(109, 159, 143, 0.35);
  outline-offset: -3px;
}

.cb-action-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 11px;
  color: var(--cb-forest-soft);
  background: var(--cb-sage-light);
}

.cb-action-icon svg,
.cb-action-arrow svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cb-action-arrow {
  color: var(--cb-muted);
}

.cb-quick-actions a > span:nth-child(2) {
  display: grid;
  gap: 4px;
}

.cb-quick-actions strong {
  font-size: 14px;
}

.cb-quick-actions small {
  color: var(--cb-text);
  font-size: 12px;
}

.cb-detail-panel {
  scroll-margin-top: 24px;
  margin-top: 24px;
  border-color: var(--cb-line);
  border-radius: 17px;
  box-shadow: none;
}

.cb-detail-panel .section-kicker {
  color: var(--cb-forest-soft);
}

.cb-detail-panel .section-head h2 {
  color: var(--cb-ink);
}

.cb-privacy-note {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 18px;
  padding: 16px 18px;
  border: 1px solid #d9e5e1;
  border-radius: 14px;
  background: #edf4f1;
}

.cb-privacy-note > span svg {
  width: 21px;
  height: 21px;
  color: var(--cb-forest-soft);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cb-privacy-note strong {
  font-size: 13px;
}

.cb-privacy-note p {
  margin: 4px 0 0;
  color: var(--cb-text);
  font-size: 12px;
  line-height: 1.45;
}

.portal-footer {
  width: min(1080px, calc(100% - 48px));
  margin: 0 auto;
  padding: 0 2px 28px;
  color: var(--cb-muted);
  background: transparent;
  border: 0;
  font-size: 11px;
}

@media (max-width: 720px) {
  .topbar {
    min-height: 88px;
    padding: 14px 17px;
  }

  .brand {
    gap: 12px;
  }

  .brand-mark {
    width: 58px;
    height: 58px;
    flex-basis: 58px;
  }

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

  .brand-copy span {
    font-size: 14px;
  }

  .security-badge {
    width: 34px;
    height: 34px;
    justify-content: center;
    padding: 0;
    border-radius: 50%;
    font-size: 0;
  }

  .quiet-button {
    width: 38px;
    height: 38px;
    justify-content: center;
    padding: 0;
    font-size: 0;
  }

  .quiet-button .button-icon svg {
    width: 18px;
    height: 18px;
  }

  .cb-dashboard {
    width: calc(100% - 28px);
    padding: 27px 0 24px;
  }

  .cb-welcome {
    display: block;
    padding: 0 2px 20px;
  }

  .cb-welcome h1 {
    font-size: 25px;
  }

  .cb-welcome > div > p {
    margin-top: 7px;
    font-size: 15px;
    line-height: 1.5;
  }

  .cb-identity {
    width: fit-content;
    margin-top: 15px;
    padding: 7px 10px 7px 7px;
  }

  .cb-overview {
    border-radius: 18px;
  }

  .cb-overview-topline {
    padding: 19px 18px 0;
  }

  .cb-capital-block {
    padding: 22px 18px 25px;
  }

  .cb-capital-block > strong {
    font-size: 36px;
  }

  .cb-progress {
    margin: 0 18px 19px;
    padding: 13px 14px;
  }

  .cb-overview-details {
    grid-template-columns: 1fr;
  }

  .cb-overview-details > div {
    min-height: 72px;
    padding: 14px 18px;
  }

  .cb-overview-details > div + div {
    border-top: 1px solid rgba(255, 255, 255, 0.11);
    border-left: 0;
  }

  .cb-content-section {
    margin-top: 26px;
  }

  .cb-section-heading {
    align-items: flex-start;
  }

  .cb-section-heading h2 {
    font-size: 19px;
  }

  .cb-section-heading > span {
    display: none;
  }

  .cb-financial-panel,
  .cb-quick-actions {
    grid-template-columns: 1fr;
  }

  .cb-financial-row {
    min-height: 76px;
    padding: 15px 17px;
  }

  .cb-financial-row + .cb-financial-row,
  .cb-quick-actions a + a {
    border-top: 1px solid var(--cb-line);
    border-left: 0;
  }

  .cb-quick-actions a {
    min-height: 76px;
    padding: 13px 15px;
  }

  .cb-detail-panel {
    margin-top: 20px;
  }

  .portal-footer {
    width: calc(100% - 28px);
    display: grid;
    gap: 4px;
    text-align: center;
  }
}

@media (max-width: 390px) {
  .brand-copy strong {
    font-size: 17px;
  }

  .security-badge {
    display: none;
  }

  .cb-capital-block > strong {
    font-size: 34px;
  }
}
