:root {
  color-scheme: light;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  letter-spacing: 0;
  --paper: #f5f2ea;
  --surface: #fffdf8;
  --surface-strong: #ffffff;
  --ink: #182129;
  --muted: #5f6b72;
  --line: #d9d1bf;
  --teal: #146b68;
  --green: #2a9466;
  --coral: #c95b4d;
  --gold: #d09b2f;
  --navy: #223d63;
  --shadow: 0 18px 48px rgba(24, 33, 41, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}

[hidden] {
  display: none !important;
}

.home-shell {
  --home-blue: #255ae4;
  --home-blue-deep: #1644b5;
  --home-cloud: #f3f8ff;
  --home-green: #15c96b;
  --home-ink: #081733;
  --home-line: #dce6f6;
  --home-muted: #50627b;
  background: #fff;
  color: var(--home-ink);
  min-height: 100vh;
}

.home-shell main {
  display: block;
}

.home-shell h1 {
  font-size: 3.35rem;
  line-height: 1.02;
  margin-bottom: 20px;
  text-transform: none;
}

.home-shell h2 {
  font-size: 2.45rem;
  line-height: 1.12;
  margin-bottom: 16px;
}

.home-shell h3 {
  font-size: 1.36rem;
  line-height: 1.22;
  margin-bottom: 10px;
}

.home-shell p {
  line-height: 1.55;
}

.home-shell button {
  background: var(--home-blue);
  border-color: var(--home-blue);
  font-weight: 800;
}

.home-frame {
  margin: 0 auto;
  width: min(calc(100% - 64px), 1712px);
}

.home-header {
  align-items: center;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid rgba(220, 230, 246, 0.92);
  box-shadow: 0 14px 34px rgba(8, 23, 51, 0.08);
  display: grid;
  gap: 28px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-height: 90px;
  padding: 14px max(32px, calc((100vw - 1712px) / 2));
  position: sticky;
  top: 0;
  z-index: 20;
}

.home-brand {
  align-items: center;
  color: var(--home-blue);
  display: inline-flex;
  font-size: 2rem;
  font-weight: 900;
  gap: 12px;
  text-decoration: none;
}

.home-mark {
  background: var(--home-blue);
  border-radius: 8px;
  color: #fff;
  display: grid;
  font-size: 1.3rem;
  height: 54px;
  place-items: center;
  width: 54px;
}

.home-nav {
  align-items: center;
  display: flex;
  gap: 38px;
  justify-content: center;
  min-width: 0;
}

.home-nav a,
.mobile-menu a,
.nav-menu summary {
  border-bottom: 3px solid transparent;
  color: #344158;
  cursor: pointer;
  font-weight: 800;
  list-style: none;
  min-height: 42px;
  padding: 11px 0 8px;
  text-decoration: none;
  white-space: nowrap;
}

.nav-menu summary::-webkit-details-marker {
  display: none;
}

.home-nav a:hover,
.home-nav a.is-current,
.nav-menu:hover summary,
.nav-menu[open] summary,
.nav-menu.is-current summary,
.mobile-menu a:hover {
  border-bottom-color: var(--home-blue);
  color: var(--home-blue);
}

.nav-menu {
  position: relative;
}

.nav-menu-panel {
  background: #fff;
  border: 1px solid var(--home-line);
  border-radius: 8px;
  box-shadow: 0 18px 46px rgba(8, 23, 51, 0.16);
  display: grid;
  gap: 4px;
  left: 50%;
  min-width: 220px;
  padding: 12px;
  position: absolute;
  top: 100%;
  transform: translateX(-50%);
  z-index: 30;
}

.nav-menu-panel a {
  border-bottom: 0;
  border-radius: 6px;
  min-height: 38px;
  padding: 10px 12px;
}

.nav-menu-panel a:hover {
  background: var(--home-cloud);
}

.home-actions,
.hero-actions {
  align-items: center;
  display: flex;
  gap: 12px;
}

.home-actions button {
  min-height: 50px;
  padding-inline: 22px;
}

.outline-button {
  background: #fff !important;
  border-color: var(--home-blue) !important;
  color: var(--home-blue) !important;
}

.mobile-menu {
  display: none;
  justify-self: end;
}

.mobile-menu summary {
  border: 1px solid var(--home-line);
  border-radius: 8px;
  color: var(--home-ink);
  cursor: pointer;
  font-weight: 900;
  list-style: none;
  min-height: 48px;
  padding: 14px 16px;
}

.mobile-menu summary::-webkit-details-marker {
  display: none;
}

.mobile-menu nav {
  background: #fff;
  border: 1px solid var(--home-line);
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(8, 23, 51, 0.18);
  display: grid;
  gap: 4px;
  margin-top: 10px;
  min-width: 240px;
  padding: 12px;
  position: absolute;
  right: 16px;
}

.mobile-menu button {
  margin-top: 6px;
  width: 100%;
}

.home-hero {
  background: linear-gradient(130deg, var(--home-blue) 0%, var(--home-blue-deep) 100%);
  color: #fff;
  min-height: 560px;
  overflow: hidden;
  padding: 72px 0 76px;
}

.hero-grid {
  align-items: center;
  display: grid;
  gap: 56px;
  grid-template-columns: minmax(0, 0.95fr) minmax(430px, 0.9fr);
}

.home-kicker {
  color: inherit;
  font-size: 0.84rem;
  font-weight: 900;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.hero-copy {
  max-width: 760px;
}

.development-note {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 8px;
  font-size: 1.36rem;
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 20px;
  padding: 16px 18px;
}

.hero-copy > p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.28rem;
  margin-bottom: 30px;
  max-width: 660px;
}

.light-button {
  background: #fff !important;
  border-color: #fff !important;
  color: var(--home-blue) !important;
  min-height: 56px;
  padding-inline: 28px;
}

.hero-link {
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 6px;
  color: #fff;
  display: inline-flex;
  font-weight: 900;
  min-height: 56px;
  padding: 0 24px;
  text-decoration: none;
}

.hero-media,
.mobile-media {
  border-radius: 8px;
  box-shadow: 0 28px 74px rgba(6, 23, 63, 0.3);
  margin: 0;
  overflow: hidden;
}

.hero-media {
  aspect-ratio: 1.38;
}

.hero-media img,
.mobile-media img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.home-section {
  background: #fff;
  padding: 76px 0;
}

.home-about {
  background: #f8fbff;
}

.section-intro {
  margin-bottom: 54px;
  max-width: 920px;
  text-align: center;
}

.home-about .section-intro h2 {
  font-size: 3rem;
}

.section-intro .home-kicker,
.tools-copy .home-kicker,
.learning-section .home-kicker,
.mobile-copy .home-kicker {
  color: var(--home-blue);
}

.mobile-band .home-kicker,
.home-tools .home-kicker,
.learning-section .home-kicker {
  font-size: 1.08rem;
}

.mobile-band .home-kicker {
  color: #fff;
}

.section-intro p:not(.home-kicker),
.tools-copy p:not(.home-kicker),
.learning-section p:not(.home-kicker),
.contact-panel p {
  color: var(--home-muted);
  font-size: 1.16rem;
}

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

.feature-card {
  background: #fff;
  border: 1px solid var(--home-line);
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(17, 46, 99, 0.1);
  min-height: 292px;
  padding: 34px 30px;
}

.feature-card p {
  color: var(--home-muted);
  font-size: 1.08rem;
  margin-bottom: 0;
}

.feature-icon {
  align-items: center;
  background: #dfeeff;
  border-radius: 8px;
  color: var(--home-blue);
  display: inline-flex;
  font-size: 1rem;
  font-weight: 900;
  height: 78px;
  justify-content: center;
  margin-bottom: 26px;
  width: 78px;
}

.feature-icon.secure {
  background: #e4f8ef;
  color: #087646;
}

.feature-icon.tools {
  background: #fff0dd;
  color: #a96405;
}

.feature-icon.learning {
  background: #eae6ff;
  color: #5841ba;
}

.mobile-band {
  background: linear-gradient(130deg, #245ae4, #123fae);
  color: #fff;
  padding: 76px 0;
}

.mobile-band-grid {
  align-items: center;
  display: grid;
  gap: 58px;
  grid-template-columns: minmax(420px, 0.95fr) minmax(0, 0.95fr);
}

.mobile-media {
  aspect-ratio: 1.48;
}

.mobile-app-preview {
  align-items: center;
  background:
    radial-gradient(circle at 18% 16%, rgba(255, 255, 255, 0.44), transparent 24%),
    linear-gradient(135deg, #e8f0ec 0%, #d7e6f4 48%, #9fc2d5 100%);
  display: flex;
  justify-content: center;
  min-height: 420px;
  padding: 36px;
}

.phone-shell {
  background: #081733;
  border: 10px solid #07142f;
  border-radius: 34px;
  box-shadow: 0 24px 58px rgba(8, 23, 51, 0.32);
  color: var(--home-ink);
  display: grid;
  gap: 14px;
  min-height: 330px;
  padding: 22px 18px 20px;
  position: relative;
  transform: rotate(-7deg);
  width: min(250px, 72%);
}

.phone-speaker {
  background: rgba(255, 255, 255, 0.22);
  border-radius: 99px;
  height: 5px;
  justify-self: center;
  width: 56px;
}

.phone-app-card,
.phone-list span {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(8, 23, 51, 0.12);
}

.phone-app-card {
  padding: 16px;
}

.phone-app-card p,
.phone-app-card span {
  color: var(--home-muted);
  display: block;
  font-size: 0.78rem;
  margin: 0;
}

.phone-app-card strong {
  color: var(--home-blue);
  display: block;
  font-size: 2rem;
  line-height: 1.05;
  margin: 8px 0;
}

.phone-chart {
  align-items: end;
  background: #fff;
  border-radius: 8px;
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  height: 94px;
  padding: 16px 14px;
}

.phone-chart span {
  background: linear-gradient(180deg, var(--home-blue), #16a07a);
  border-radius: 5px 5px 2px 2px;
  height: var(--bar);
}

.phone-list {
  display: grid;
  gap: 8px;
}

.phone-list span {
  color: #344158;
  font-size: 0.78rem;
  font-weight: 900;
  padding: 9px 10px;
}

.mobile-copy h2 {
  font-size: 2.18rem;
}

.mobile-copy > p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.26rem;
}

.mobile-copy ul {
  display: grid;
  gap: 20px;
  list-style: none;
  margin: 32px 0 38px;
  padding: 0;
}

.mobile-copy li {
  align-items: center;
  display: flex;
  font-size: 1.16rem;
  font-weight: 800;
  gap: 14px;
  min-height: 30px;
  padding-left: 44px;
  position: relative;
}

.mobile-copy li::before {
  background: var(--home-green);
  border-radius: 50%;
  color: #fff;
  content: "";
  display: grid;
  flex: 0 0 auto;
  font-size: 0.66rem;
  font-weight: 900;
  height: 30px;
  left: 0;
  place-items: center;
  position: absolute;
  top: 0;
  width: 30px;
}

.mobile-copy li::after {
  border: solid #fff;
  border-width: 0 3px 3px 0;
  content: "";
  height: 12px;
  left: 10px;
  position: absolute;
  top: 6px;
  transform: rotate(45deg);
  width: 7px;
}

.home-tools {
  background: var(--home-cloud);
}

.tools-grid,
.contact-grid {
  align-items: center;
  display: grid;
  gap: 46px;
  grid-template-columns: minmax(0, 0.95fr) minmax(430px, 0.9fr);
}

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

.tool-list a {
  background: #fff;
  border: 1px solid var(--home-line);
  border-left: 5px solid var(--home-blue);
  border-radius: 8px;
  box-shadow: 0 14px 32px rgba(17, 46, 99, 0.08);
  color: var(--home-ink);
  display: block;
  font-weight: 900;
  min-height: 82px;
  padding: 28px 22px;
  text-decoration: none;
}

.tool-list a:hover {
  border-left-color: var(--home-green);
  color: var(--home-blue);
}

.learning-section {
  background: #fff;
}

.contact-panel {
  background: #f7faff;
  border: 1px solid var(--home-line);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(17, 46, 99, 0.09);
  padding: 36px;
}

.contact-panel button {
  min-height: 52px;
  padding-inline: 22px;
}

.service-card-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.service-card-grid article {
  background: #fff;
  border: 1px solid var(--home-line);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(17, 46, 99, 0.08);
  display: grid;
  gap: 14px;
  min-height: 220px;
  padding: 24px;
}

.service-card-grid article p {
  color: var(--home-muted);
  margin: 0;
}

.map-panel {
  display: grid;
  gap: 14px;
}

.map-embed {
  aspect-ratio: 4 / 3;
  border: 1px solid var(--home-line);
  border-radius: 8px;
  overflow: hidden;
}

.map-embed iframe {
  border: 0;
  height: 100%;
  width: 100%;
}

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

.partner-choice-card {
  background: #f7faff;
  border: 1px solid var(--home-line);
  border-radius: 8px;
  color: var(--home-ink);
  display: grid;
  gap: 6px;
  min-height: 94px;
  padding: 20px;
  text-decoration: none;
}

.partner-choice-card:hover,
.partner-choice-card:focus {
  border-color: var(--home-blue);
  box-shadow: 0 12px 28px rgba(37, 90, 228, 0.12);
}

.partner-choice-card strong {
  color: var(--home-blue);
}

.section-divider {
  border: 0;
  border-top: 1px solid var(--home-line);
  margin: 34px 0;
}

.support-chat-toggle {
  background: var(--home-blue);
  border: 3px solid rgba(255, 255, 255, 0.85);
  border-radius: 8px;
  bottom: 100px;
  box-shadow: 0 16px 34px rgba(8, 23, 51, 0.22);
  color: #fff;
  font-weight: 900;
  min-height: 52px;
  padding: 13px 18px;
  position: fixed;
  right: 28px;
  z-index: 16;
}

.support-chat-panel {
  background: #fff;
  border: 1px solid var(--home-line);
  border-radius: 8px;
  bottom: 92px;
  box-shadow: 0 24px 70px rgba(8, 23, 51, 0.24);
  display: grid;
  gap: 14px;
  max-height: min(76vh, 700px);
  overflow: auto;
  padding: 20px;
  position: fixed;
  right: 28px;
  width: min(520px, calc(100vw - 40px));
  z-index: 60;
}

.support-quick-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.support-quick-list button {
  background: #f7faff;
  border-color: var(--home-line);
  color: var(--home-ink);
  min-height: 38px;
  padding: 9px 12px;
}

.support-quick-list button:hover {
  border-color: var(--home-blue);
  color: var(--home-blue);
}

.chat-float {
  background: #10c465;
  border: 4px solid rgba(255, 255, 255, 0.82);
  border-radius: 8px;
  bottom: 28px;
  box-shadow: 0 18px 38px rgba(8, 23, 51, 0.2);
  color: #fff;
  font-weight: 900;
  min-height: 58px;
  padding: 18px 16px;
  position: fixed;
  right: 28px;
  text-decoration: none;
  z-index: 15;
}

.whatsapp-float {
  align-items: center;
  border-radius: 50%;
  display: flex;
  height: 64px;
  justify-content: center;
  min-height: 64px;
  padding: 0;
  width: 64px;
}

.whatsapp-float svg {
  fill: currentColor;
  height: 34px;
  width: 34px;
}

.home-footer {
  background: #07142f;
  color: rgba(255, 255, 255, 0.76);
  display: grid;
  font-size: 0.88rem;
  gap: 7px;
  line-height: 1.48;
  padding: 32px max(32px, calc((100vw - 1712px) / 2));
}

.home-footer p {
  margin-bottom: 0;
}

.public-route {
  display: none;
}

.public-route.is-active {
  display: block;
}

.public-page {
  background: linear-gradient(180deg, #f7faff 0%, #fff 34%);
  min-height: 620px;
  padding: 72px 0 80px;
}

.page-grid {
  align-items: start;
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.38fr);
}

.page-grid-narrow {
  grid-template-columns: minmax(0, 960px);
  justify-content: center;
}

.page-panel,
.page-side-panel,
.calculator-card {
  background: #fff;
  border: 1px solid var(--home-line);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(17, 46, 99, 0.09);
}

.page-panel {
  padding: 42px;
}

.page-side-panel {
  padding: 34px;
}

.page-panel h1,
.page-heading h1 {
  color: var(--home-ink);
  font-size: 2.6rem;
  line-height: 1.08;
  margin-bottom: 22px;
}

.page-panel h2 {
  font-size: 1.72rem;
  margin: 32px 0 14px;
}

.page-panel p,
.page-side-panel p,
.page-heading p {
  color: var(--home-muted);
  font-size: 1.08rem;
}

.about-content p {
  color: #344158;
  font-size: 1.06rem;
}

.placeholder-panel {
  min-height: 340px;
}

.placeholder-panel button,
.page-panel button {
  margin-top: 10px;
  min-height: 52px;
  padding-inline: 22px;
}

.page-heading {
  margin: 0 auto 34px;
  max-width: 920px;
  text-align: center;
}

.page-heading .home-kicker,
.page-panel .home-kicker {
  color: var(--home-blue);
}

.button-link,
.ghost-button.public-link {
  align-items: center;
  background: var(--home-blue);
  border: 1px solid var(--home-blue);
  border-radius: 8px;
  color: #fff;
  display: inline-flex;
  font-weight: 900;
  justify-content: center;
  min-height: 50px;
  padding: 13px 22px;
  text-decoration: none;
}

.button-link.light-button {
  background: #fff;
  border-color: #fff;
  color: var(--home-blue);
}

.stacked-form,
.public-form,
.compact-form {
  display: grid;
  gap: 16px;
}

textarea {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  font: inherit;
  min-height: 96px;
  padding: 12px;
  resize: vertical;
}

.mutual-fund-layout {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(300px, 0.36fr) minmax(0, 1fr);
}

.mutual-fund-layout-stacked {
  grid-template-columns: 1fr;
}

.amc-grid {
  display: grid;
  gap: 12px;
}

.amc-grid-wide {
  grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
  margin-top: 14px;
}

.amc-card {
  align-items: center;
  background: #fff !important;
  border: 1px solid var(--home-line) !important;
  border-radius: 8px;
  color: var(--home-ink) !important;
  display: grid;
  gap: 4px 12px;
  grid-template-columns: 48px minmax(0, 1fr);
  min-height: 74px;
  padding: 12px !important;
  text-align: left;
}

.amc-card:hover,
.amc-card:focus,
.amc-card.is-selected {
  border-color: var(--home-blue) !important;
  box-shadow: 0 12px 28px rgba(37, 90, 228, 0.12);
}

.amc-card.is-selected {
  background: #f3f8ff !important;
  box-shadow: inset 4px 0 0 var(--home-blue), 0 12px 28px rgba(37, 90, 228, 0.12);
}

.amc-card span {
  align-items: center;
  background: linear-gradient(135deg, var(--home-blue), #143a93);
  border-radius: 8px;
  color: #fff;
  display: grid;
  font-weight: 900;
  grid-row: span 2;
  height: 48px;
  justify-content: center;
  width: 48px;
}

.amc-card strong,
.amc-card small {
  min-width: 0;
}

.amc-card small,
.micro-note {
  color: var(--home-muted);
  font-size: 0.8rem;
  line-height: 1.45;
}

.scheme-browser .panel-head,
.scheme-tools {
  align-items: center;
  display: flex;
  gap: 12px;
}

.scheme-tools {
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.scheme-browser-grid {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(230px, 280px) minmax(0, 1fr);
  margin-top: 22px;
}

.scheme-filter-panel {
  background: #f7f9fd;
  border: 1px solid var(--home-line);
  border-radius: 8px;
  display: grid;
  gap: 14px;
  padding: 16px;
  position: sticky;
  top: 88px;
}

.scheme-filter-panel h3 {
  margin: 0;
}

.scheme-filter-panel label {
  color: var(--home-muted);
  display: grid;
  font-weight: 800;
  gap: 6px;
}

.scheme-filter-panel input,
.scheme-filter-panel select {
  width: 100%;
}

.scheme-results-panel {
  min-width: 0;
}

.scheme-tools input,
.scheme-tools select {
  flex: 1 1 210px;
}

.amc-search-box,
.scheme-search-box {
  margin-top: 14px;
  width: 100%;
}

.amc-name-list {
  margin-top: 16px;
}

.amc-link-list {
  display: grid;
  gap: 2px 28px;
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
}

.amc-link-list a {
  border-bottom: 1px solid var(--home-line);
  color: var(--home-blue);
  display: block;
  font-weight: 800;
  line-height: 1.35;
  padding: 12px 4px;
  text-decoration: none;
}

.amc-link-list a:hover,
.amc-link-list a:focus {
  background: #f3f8ff;
  color: #143a93;
  outline: none;
  padding-left: 10px;
  text-decoration: underline;
}

.amc-table-wrap {
  margin-top: 16px;
}

.amc-summary-table {
  min-width: 1180px;
}

.amc-summary-table th,
.amc-summary-table td {
  vertical-align: top;
}

.amc-summary-table a {
  color: var(--home-blue);
  font-weight: 800;
  text-decoration: none;
}

.amc-summary-table a:hover,
.amc-summary-table a:focus {
  text-decoration: underline;
}

.amc-summary-table tr.is-selected td {
  background: #f3f8ff;
}

.admin-return-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.disclaimer-box {
  background: #f7f9fd;
  border: 1px solid var(--home-line);
  border-radius: 8px;
  margin-top: 18px;
  padding: 14px 16px;
}

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

.responsive-table table {
  min-width: 980px;
}

.scheme-browser .responsive-table table {
  min-width: 1550px;
}

.modal-backdrop {
  align-items: center;
  background: rgba(8, 23, 51, 0.58);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 24px;
  position: fixed;
  z-index: 100;
}

.login-dialog {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 28px 80px rgba(8, 23, 51, 0.25);
  max-height: min(86vh, 760px);
  max-width: 860px;
  overflow: auto;
  padding: 28px;
  width: min(100%, 860px);
}

.login-choice-box {
  background: #f7faff;
  border: 1px solid var(--home-line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
  padding: 18px;
}

.login-choice-box label {
  color: var(--home-ink);
  font-size: 1rem;
}

.login-choice-box select {
  background: #fff;
  min-height: 54px;
}

.login-choice-box p {
  color: var(--home-muted);
  margin: 0;
}

.login-credential-fields {
  margin-bottom: 12px;
}

.session-pill {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font-weight: 900;
  padding: 12px 14px;
}

.app-shell.is-demo-mode .topbar {
  border-bottom: 3px solid var(--gold);
}

.app-shell.is-demo-mode .topbar::after {
  background: rgba(208, 155, 47, 0.18);
  border: 1px solid rgba(208, 155, 47, 0.48);
  border-radius: 8px;
  color: var(--ink);
  content: "Demo Mode - sample data only";
  font-weight: 900;
  padding: 10px 12px;
}

.quick-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.quick-buttons button {
  background: var(--surface-strong);
  border-color: var(--line);
  color: var(--ink);
  min-height: 38px;
}

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

.admin-card-wide {
  grid-column: 1 / -1;
}

.compact-form input,
.compact-form select,
.compact-form textarea {
  width: 100%;
}

.mini-list {
  border-top: 1px solid var(--line);
  color: var(--muted);
  margin-top: 14px;
  padding-top: 14px;
}

.mini-list ul {
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.mini-list li {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 9px 10px;
}

.admin-amc-row {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.admin-amc-row strong {
  color: var(--ink);
  display: block;
}

.admin-amc-row small {
  color: var(--muted);
}

.admin-amc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.admin-amc-actions button {
  min-height: 36px;
  padding: 6px 10px;
}

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

.calculator-layout {
  align-items: start;
  display: grid;
  gap: 26px;
  grid-template-columns: minmax(280px, 0.32fr) minmax(0, 1fr);
}

.calculator-tabs {
  background: #fff;
  border: 1px solid var(--home-line);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(17, 46, 99, 0.08);
  display: grid;
  gap: 8px;
  overflow: visible;
  padding: 12px;
  position: sticky;
  top: 112px;
}

.calculator-tab {
  align-items: center;
  background: #fff;
  border: 1px solid var(--home-line);
  border-left: 5px solid transparent;
  color: var(--home-ink);
  display: grid;
  gap: 10px;
  grid-template-columns: auto minmax(0, 1fr);
  min-height: 56px;
  padding: 8px 10px;
  text-align: left;
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
  white-space: normal;
}

.calculator-tab:hover,
.calculator-tab.is-active {
  background: #f7faff;
  border-left-color: var(--home-blue);
  box-shadow: 0 12px 26px rgba(17, 46, 99, 0.1);
  transform: translateX(2px);
}

.calculator-tab.is-active {
  border-color: #c7daf8;
  border-left-color: var(--home-blue);
}

.calculator-tab strong,
.calculator-tab small {
  display: block;
}

.calculator-tab strong {
  font-size: 0.93rem;
  line-height: 1.25;
}

.calculator-tab small {
  color: var(--home-muted);
  font-size: 0.8rem;
  font-weight: 700;
  margin-top: 3px;
}

.tab-icon,
.calculator-hero-icon {
  align-items: center;
  background: linear-gradient(135deg, #e8f2ff, #f7fbff);
  border: 1px solid #cfe0fa;
  border-radius: 8px;
  color: var(--home-blue);
  display: inline-flex;
  font-size: 0.86rem;
  font-weight: 900;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.calculator-tab.is-active .tab-icon,
.calculator-hero-icon {
  background: linear-gradient(135deg, var(--home-blue), var(--home-blue-deep));
  border-color: var(--home-blue);
  color: #fff;
}

.tab-icon::before,
.calculator-hero-icon::before {
  background: currentColor;
  content: "";
  display: block;
  height: 23px;
  mask: var(--calculator-icon) center / contain no-repeat;
  -webkit-mask: var(--calculator-icon) center / contain no-repeat;
  width: 23px;
}

.tab-icon-education {
  --calculator-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8l9-4 9 4-9 4-9-4z'/%3E%3Cpath d='M7 10v5c3 2 7 2 10 0v-5'/%3E%3Cpath d='M21 8v6'/%3E%3C/svg%3E");
}

.tab-icon-marriage {
  --calculator-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='14' r='5'/%3E%3Ccircle cx='15' cy='14' r='5'/%3E%3Cpath d='M9 4l2 3H7l2-3z'/%3E%3Cpath d='M15 4l2 3h-4l2-3z'/%3E%3C/svg%3E");
}

.tab-icon-home {
  --calculator-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11l9-8 9 8'/%3E%3Cpath d='M5 10v10h14V10'/%3E%3Cpath d='M9 20v-6h6v6'/%3E%3C/svg%3E");
}

.tab-icon-retirement {
  --calculator-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v18'/%3E%3Cpath d='M4 11a8 8 0 0 1 16 0'/%3E%3Cpath d='M4 11c2-2 4-2 6 0'/%3E%3Cpath d='M10 11c2-2 4-2 6 0'/%3E%3Cpath d='M16 11c1-1 3-1 4 0'/%3E%3C/svg%3E");
}

.tab-icon-growth {
  --calculator-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 19h16'/%3E%3Cpath d='M6 16V9'/%3E%3Cpath d='M12 16V5'/%3E%3Cpath d='M18 16v-7'/%3E%3Cpath d='M4 11l5-5 4 4 7-7'/%3E%3C/svg%3E");
}

.tab-icon-step {
  --calculator-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 18h5v-5h5V8h6'/%3E%3Cpath d='M16 4h4v4'/%3E%3Cpath d='M14 10l6-6'/%3E%3C/svg%3E");
}

.tab-icon-shield {
  --calculator-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l7 3v5c0 5-3 8-7 10-4-2-7-5-7-10V6l7-3z'/%3E%3Cpath d='M9 12l2 2 4-5'/%3E%3C/svg%3E");
}

.tab-icon-vacation {
  --calculator-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='6' y='7' width='12' height='12' rx='2'/%3E%3Cpath d='M9 7V5h6v2'/%3E%3Cpath d='M4 13h16'/%3E%3Cpath d='M9 19v2'/%3E%3Cpath d='M15 19v2'/%3E%3C/svg%3E");
}

.tab-icon-loan {
  --calculator-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11l9-8 9 8'/%3E%3Cpath d='M5 10v9h8'/%3E%3Cpath d='M9 19v-5h5'/%3E%3Cpath d='M16 14h4'/%3E%3Cpath d='M16 20h4'/%3E%3Cpath d='M17 14l3 6'/%3E%3Cpath d='M20 14l-3 6'/%3E%3C/svg%3E");
}

.calculator-stage {
  min-width: 0;
}

.calculator-card {
  display: none;
  gap: 18px;
  padding: 28px;
}

.calculator-card.is-active {
  display: grid;
}

.calculator-card-head {
  align-items: start;
  display: grid;
  gap: 16px;
  grid-template-columns: auto minmax(0, 1fr);
}

.calculator-hero-icon {
  height: 56px;
  width: 56px;
}

.calculator-card h2 {
  font-size: 1.38rem;
  margin-bottom: 0;
}

.calculator-card-head p,
.calculator-disclaimer {
  color: var(--home-muted);
  font-size: 1rem;
  margin-bottom: 0;
}

.calculator-disclaimer {
  background: #f7faff;
  border: 1px solid var(--home-line);
  border-radius: 8px;
  padding: 16px;
}

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

.calculator-fields label {
  color: #3b4a60;
  display: grid;
  font-weight: 800;
  gap: 7px;
}

.calculator-card button {
  justify-self: start;
  min-height: 48px;
  padding-inline: 24px;
}

.calculator-result {
  background: #f9fbff;
  border: 1px solid var(--home-line);
  border-radius: 8px;
  color: var(--home-muted);
  display: none;
  min-height: 56px;
  padding: 16px;
}

.calculator-result.is-warning,
.calculator-result.is-ok {
  display: block;
}

.calculator-result.is-warning {
  background: #fff5ed;
  border-color: #f0c7a4;
  color: #7a3d12;
}

.calculator-result.is-ok {
  background: #f1fbf6;
  border-color: #b9e5cf;
}

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

.result-comparison {
  display: grid;
  gap: 12px;
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.result-option {
  background: #fff;
  border: 1px solid #b9e5cf;
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 14px;
}

.result-option h3 {
  color: #0d5d48;
  font-size: 1rem;
  margin: 0;
}

.result-item {
  background: #fff;
  border: 1px solid var(--home-line);
  border-radius: 8px;
  padding: 13px;
}

.result-item span {
  color: var(--home-muted);
  display: block;
  font-size: 0.85rem;
  margin-bottom: 5px;
}

.result-item strong {
  color: var(--home-ink);
  display: block;
  font-size: 1.08rem;
}

.result-explanation {
  color: #344158;
  grid-column: 1 / -1;
  margin: 4px 0 0;
}

.goal-result-heading {
  background: #eef8f4;
  border: 1px solid #b9e5cf;
  border-radius: 8px;
  color: #0d5d48;
  font-weight: 900;
  grid-column: 1 / -1;
  padding: 12px 14px;
}

.goal-result-heading span {
  color: inherit;
  display: block;
  font-size: 0.95rem;
  margin: 0;
}

.goal-result-heading strong {
  display: none;
}

.calculator-page-disclaimer {
  background: #fff;
  border: 1px solid var(--home-line);
  border-radius: 8px;
  color: var(--home-muted);
  font-size: 0.98rem;
  line-height: 1.55;
  margin: 26px 0 0;
  padding: 18px 20px;
}

button,
input,
select {
  font: inherit;
}

button {
  border: 1px solid transparent;
  background: var(--teal);
  color: #fff;
  cursor: pointer;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 6px;
  white-space: nowrap;
}

button:hover {
  filter: brightness(1.03);
}

input,
select {
  border: 1px solid var(--line);
  background: var(--surface-strong);
  color: var(--ink);
  min-height: 42px;
  border-radius: 6px;
  padding: 0 12px;
  width: 100%;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: 1.65rem;
  line-height: 1;
  margin-bottom: 0;
}

h2 {
  font-size: 1.75rem;
  margin-bottom: 0;
}

h3 {
  font-size: 1.08rem;
  margin-bottom: 0;
}

.app-shell {
  background:
    linear-gradient(135deg, rgba(208, 155, 47, 0.16), transparent 24rem),
    linear-gradient(180deg, rgba(20, 107, 104, 0.08), transparent 26rem),
    var(--paper);
  display: grid;
  grid-template-columns: 156px minmax(0, 1fr);
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
}

.app-shell[data-theme="dark"] {
  color-scheme: dark;
  --paper: #10161d;
  --surface: #18232b;
  --surface-strong: #1e2c35;
  --ink: #f4efe3;
  --muted: #c8beaa;
  --line: #384957;
  --teal: #33a9a0;
  --green: #56be86;
  --coral: #f07a68;
  --gold: #e2ba58;
  --navy: #7ea0d6;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

.topbar {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 24px;
  grid-column: 1 / -1;
  justify-content: space-between;
  min-height: 98px;
  padding: 18px 28px;
}

.brand-block,
.topbar-actions,
.segmented,
.panel-head,
.section-head,
.sign-in,
.allocation-visual,
.choice-row,
.order-actions,
.theme-switch {
  align-items: center;
  display: flex;
}

.brand-block {
  gap: 14px;
}

.brand-mark {
  background:
    linear-gradient(135deg, var(--teal), var(--navy));
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  color: #fff;
  display: grid;
  font-weight: 800;
  height: 58px;
  place-items: center;
  width: 58px;
}

.eyebrow {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.topbar-actions {
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-end;
}

.segmented {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  gap: 2px;
  padding: 4px;
}

.segmented button,
.rail button,
.ghost-button {
  background: transparent;
  color: var(--ink);
}

.segmented button {
  min-height: 36px;
  padding-inline: 12px;
}

.segmented .is-active,
.rail .is-active {
  background: var(--ink);
  color: var(--surface);
}

.theme-switch {
  color: var(--muted);
  font-weight: 700;
  gap: 8px;
}

.theme-switch input {
  accent-color: var(--teal);
  min-height: 18px;
  width: 18px;
}

.rail {
  border-right: 1px solid var(--line);
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 22px 14px;
}

.rail button {
  border-color: var(--line);
  justify-content: flex-start;
  min-height: 46px;
  text-align: left;
}

.workspace {
  min-width: 0;
  padding: 28px;
}

.section-head {
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 22px;
}

.review-strip {
  align-items: center;
  background: rgba(20, 107, 104, 0.1);
  border: 1px solid rgba(20, 107, 104, 0.28);
  border-radius: 8px;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 16px;
  padding: 12px 14px;
}

.review-strip p {
  color: var(--muted);
  margin-bottom: 0;
}

.api-pill {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 6px;
  flex: 0 0 auto;
  font-weight: 900;
  min-width: 112px;
  padding: 8px 10px;
  text-align: center;
}

.api-pill.is-ready {
  background: rgba(42, 148, 102, 0.18);
  border-color: rgba(42, 148, 102, 0.45);
  color: var(--green);
}

.api-pill.is-offline {
  background: rgba(201, 91, 77, 0.16);
  border-color: rgba(201, 91, 77, 0.42);
  color: var(--coral);
}

.sign-in {
  gap: 8px;
  min-width: min(100%, 340px);
}

.view {
  display: none;
}

.view.is-active {
  display: block;
}

.metric-grid,
.dashboard-grid,
.two-column,
.service-grid {
  display: grid;
  gap: 16px;
}

.metric-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 16px;
}

.metric,
.panel,
.microsite-preview {
  background: rgba(255, 253, 248, 0.92);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.app-shell[data-theme="dark"] .metric,
.app-shell[data-theme="dark"] .panel,
.app-shell[data-theme="dark"] .microsite-preview {
  background: rgba(24, 35, 43, 0.94);
}

.metric {
  display: grid;
  gap: 7px;
  min-height: 140px;
  padding: 18px;
}

.metric p,
.metric span,
.panel-head span {
  color: var(--muted);
  margin-bottom: 0;
}

.metric strong {
  font-size: 2rem;
  line-height: 1;
}

.alert-metric strong {
  color: var(--coral);
}

.dashboard-grid {
  grid-template-columns: minmax(270px, 1fr) minmax(270px, 1fr) minmax(310px, 1.15fr);
}

.panel {
  min-width: 0;
  padding: 18px;
}

.panel-head {
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 18px;
}

.icon-button {
  border-radius: 6px;
  font-size: 1.25rem;
  height: 38px;
  min-height: 38px;
  padding: 0;
  width: 38px;
}

.allocation-visual {
  gap: 24px;
  justify-content: center;
  min-height: 204px;
}

.ring {
  background: conic-gradient(var(--teal) 0 62%, var(--gold) 62% 86%, var(--coral) 86% 100%);
  border-radius: 50%;
  height: 154px;
  position: relative;
  width: 154px;
}

.ring::after {
  background: var(--surface);
  border-radius: 50%;
  content: "";
  inset: 30px;
  position: absolute;
}

.legend,
.scheme-list,
.ticket-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.legend {
  display: grid;
  gap: 13px;
}

.legend li {
  align-items: center;
  display: flex;
  gap: 8px;
}

.swatch {
  border-radius: 4px;
  display: inline-block;
  height: 14px;
  width: 14px;
}

.equity {
  background: var(--teal);
}

.debt {
  background: var(--gold);
}

.hybrid {
  background: var(--coral);
}

.goal-list {
  display: grid;
  gap: 18px;
}

.goal-list article div {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

progress {
  accent-color: var(--green);
  height: 12px;
  width: 100%;
}

.bar-chart {
  align-items: end;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  height: 204px;
}

.bar-chart span {
  align-items: end;
  background: linear-gradient(180deg, var(--teal), var(--navy));
  border-radius: 6px 6px 3px 3px;
  color: var(--surface);
  display: flex;
  font-size: 0.78rem;
  font-weight: 800;
  height: var(--height);
  justify-content: center;
  min-height: 44px;
  padding-bottom: 8px;
}

.two-column,
.service-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.order-form,
.calculator,
.risk-form {
  display: grid;
  gap: 14px;
}

label {
  color: var(--muted);
  display: grid;
  font-size: 0.92rem;
  font-weight: 800;
  gap: 7px;
}

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

.form-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 18px;
}

.form-section legend {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 900;
  padding: 0 8px;
}

.profile-language-panel {
  margin-bottom: 16px;
}

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

.language-module select[multiple] {
  min-height: 124px;
}

.language-known-details {
  display: grid;
  gap: 10px;
}

.language-detail-card {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 12px;
}

.language-ability-list,
.share-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.conditional-fields {
  grid-column: 1 / -1;
}

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

.branding-post-card {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-template-columns: 86px minmax(0, 1fr);
  padding: 12px;
}

.branding-post-card img,
.branding-post-placeholder {
  border-radius: 8px;
  height: 86px;
  object-fit: cover;
  width: 86px;
}

.branding-post-placeholder {
  align-items: center;
  background: linear-gradient(135deg, var(--teal), var(--navy));
  color: #fff;
  display: grid;
  font-weight: 900;
  place-items: center;
}

.share-row a,
.share-row button {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 800;
  min-height: 34px;
  padding: 7px 9px;
  text-decoration: none;
}

.choice-row,
.order-actions {
  flex-wrap: wrap;
  gap: 10px;
}

.inline-checks {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 6px;
  display: grid;
  gap: 10px;
  padding: 12px;
}

.checkbox-row {
  align-items: center;
  color: var(--ink);
  display: flex;
  font-weight: 700;
  gap: 10px;
}

.checkbox-row input {
  accent-color: var(--teal);
  flex: 0 0 auto;
  min-height: 18px;
  width: 18px;
}

.ghost-button {
  border-color: var(--line);
}

.warning-panel {
  border-top: 5px solid var(--coral);
}

.warning-pill {
  background: rgba(201, 91, 77, 0.15);
  border-radius: 6px;
  color: var(--coral);
  font-weight: 900;
  padding: 7px 10px;
}

.retention-note {
  background: rgba(208, 155, 47, 0.18);
  border: 1px solid rgba(208, 155, 47, 0.42);
  border-radius: 6px;
  font-weight: 800;
  margin-top: 18px;
  padding: 14px;
}

.status-panel {
  display: grid;
  align-content: start;
}

.feedback {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  line-height: 1.5;
  padding: 13px;
}

.feedback.is-ok {
  background: rgba(42, 148, 102, 0.12);
  border-color: rgba(42, 148, 102, 0.4);
  color: var(--ink);
}

.feedback.is-warning {
  background: rgba(208, 155, 47, 0.16);
  border-color: rgba(208, 155, 47, 0.42);
  color: var(--ink);
}

.feedback strong {
  color: var(--ink);
}

.feedback ul {
  margin-bottom: 0;
  padding-left: 18px;
}

.question-list {
  display: grid;
  gap: 12px;
}

.risk-result-panel {
  grid-column: 1 / -1;
}

.scheme-panel {
  display: grid;
  gap: 14px;
}

.compliance-copy {
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 0;
}

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

.scheme-list li,
.ticket-list li {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px;
}

.mismatch {
  border-top: 5px solid var(--gold);
}

.search {
  max-width: 360px;
}

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

table {
  border-collapse: collapse;
  width: 100%;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 13px 12px;
  text-align: left;
}

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

td:last-child,
th:last-child {
  text-align: center;
}

.ticket-list {
  counter-reset: ticket;
  display: grid;
  gap: 10px;
}

.ticket-list li {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

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

.microsite-preview {
  overflow: hidden;
}

.microsite-banner {
  background:
    linear-gradient(90deg, rgba(20, 107, 104, 0.94), rgba(34, 61, 99, 0.92)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0 12px, transparent 12px 24px);
  color: #fff;
  min-height: 280px;
  padding: 40px;
}

.microsite-banner p,
.microsite-banner span {
  color: rgba(255, 255, 255, 0.82);
}

.microsite-banner h3 {
  font-size: 2rem;
  margin-bottom: 18px;
}

.theme-swatches {
  display: flex;
  gap: 10px;
  padding: 18px;
}

.theme-swatches button {
  height: 42px;
  min-height: 42px;
  padding: 0;
  width: 42px;
}

.theme-swatches button:nth-child(1) {
  background: var(--teal);
}

.theme-swatches button:nth-child(2) {
  background: var(--coral);
}

.theme-swatches button:nth-child(3) {
  background: var(--gold);
}

.theme-swatches button:nth-child(4) {
  background: var(--navy);
}

.legal-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: grid;
  font-size: 0.82rem;
  gap: 6px;
  grid-column: 1 / -1;
  line-height: 1.45;
  padding: 18px 28px 26px;
}

.legal-footer p {
  margin-bottom: 0;
}

@media (max-width: 1080px) {
  .home-header {
    gap: 18px;
    padding-inline: 24px;
  }

  .home-nav {
    gap: 18px;
  }

  .hero-grid,
  .mobile-band-grid,
  .tools-grid,
  .contact-grid,
  .page-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-media,
  .mobile-media {
    max-width: 900px;
  }

  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .calculator-layout {
    grid-template-columns: minmax(240px, 0.36fr) minmax(0, 1fr);
  }

  .mutual-fund-layout,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .scheme-browser-grid {
    grid-template-columns: 1fr;
  }

  .scheme-filter-panel {
    position: static;
  }

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

@media (max-width: 760px) {
  .home-frame {
    width: min(calc(100% - 32px), 1712px);
  }

  .home-header {
    gap: 12px;
    grid-template-columns: auto 1fr auto;
    min-height: 82px;
    padding: 14px 16px;
  }

  .home-brand {
    font-size: 1.55rem;
  }

  .home-mark {
    height: 46px;
    width: 46px;
  }

  .home-nav,
  .home-actions {
    display: none;
  }

  .mobile-menu {
    display: block;
  }

  .home-shell h1 {
    font-size: 2.65rem;
  }

  .home-shell h2,
  .mobile-copy h2 {
    font-size: 2rem;
  }

  .home-about .section-intro h2 {
    font-size: 2.35rem;
  }

  .home-hero,
  .mobile-band,
  .home-section,
  .public-page {
    padding: 42px 0;
  }

  .home-hero {
    min-height: 0;
  }

  .hero-grid,
  .mobile-band-grid,
  .tools-grid,
  .contact-grid {
    gap: 28px;
    grid-template-columns: 1fr;
  }

  .hero-grid {
    isolation: isolate;
    position: relative;
  }

  .hero-copy {
    position: relative;
    z-index: 1;
  }

  .hero-copy > p,
  .mobile-copy > p,
  .section-intro p:not(.home-kicker),
  .tools-copy p:not(.home-kicker),
  .learning-section p:not(.home-kicker),
  .contact-panel p {
    font-size: 1rem;
  }

  .development-note {
    font-size: 1.08rem;
    padding: 14px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-link,
  .light-button,
  .button-link {
    justify-content: center;
    width: 100%;
  }

  .feature-grid,
  .tool-list,
  .calculator-fields,
  .result-grid,
  .result-comparison,
  .language-grid,
  .branding-post-grid,
  .admin-grid,
  .mutual-fund-layout {
    grid-template-columns: 1fr;
  }

  .branding-post-card {
    grid-template-columns: 1fr;
  }

  .calculator-layout {
    grid-template-columns: 1fr;
  }

  .calculator-tabs {
    display: flex;
    gap: 10px;
    margin-inline: -16px;
    max-height: none;
    overflow-x: auto;
    padding: 10px 16px 14px;
    position: static;
    scroll-snap-type: x mandatory;
  }

  .calculator-tab {
    flex: 0 0 min(82vw, 310px);
    scroll-snap-align: start;
  }

  .calculator-tab:hover,
  .calculator-tab.is-active {
    transform: none;
  }

  .calculator-card-head {
    grid-template-columns: 1fr;
  }

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

  .hero-media {
    aspect-ratio: auto;
    border-radius: 0;
    box-shadow: none;
    inset: -42px -16px;
    opacity: 0.12;
    position: absolute;
    z-index: 0;
  }

  .mobile-media {
    aspect-ratio: 1.18;
  }

  .mobile-app-preview {
    min-height: 340px;
    padding: 24px;
  }

  .phone-shell {
    min-height: 290px;
    transform: none;
    width: min(240px, 86%);
  }

  .mobile-copy li {
    font-size: 1rem;
  }

  .contact-panel {
    padding: 24px;
  }

  .page-panel,
  .page-side-panel,
  .calculator-card {
    padding: 24px;
  }

  .page-panel h1,
  .page-heading h1 {
    font-size: 2.05rem;
  }

  .page-panel p,
  .page-side-panel p,
  .page-heading p,
  .about-content p {
    font-size: 1rem;
  }

  .support-chat-toggle {
    bottom: 88px;
    min-height: 48px;
    padding: 11px 14px;
    right: 16px;
  }

  .support-chat-panel {
    bottom: 84px;
    max-height: 72vh;
    right: 12px;
    width: calc(100vw - 24px);
  }

  .chat-float {
    display: none;
  }

  .whatsapp-float {
    bottom: 18px;
    display: flex;
    height: 58px;
    min-height: 58px;
    right: 16px;
    width: 58px;
  }

  .partner-choice-grid,
  .service-card-grid {
    grid-template-columns: 1fr;
  }

  .home-footer {
    padding-inline: 16px;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .topbar,
  .section-head,
  .sign-in,
  .review-strip {
    align-items: stretch;
    flex-direction: column;
  }

  .rail {
    border-bottom: 1px solid var(--line);
    border-right: 0;
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 12px 14px;
  }

  .rail button {
    min-width: 0;
    padding-inline: 8px;
  }

  .workspace,
  .topbar {
    padding: 18px;
  }

  .metric-grid,
  .dashboard-grid,
  .two-column,
  .service-grid,
  .field-grid {
    grid-template-columns: 1fr;
  }

  .allocation-visual {
    align-items: flex-start;
    flex-direction: column;
  }

  .search {
    max-width: none;
  }

  .risk-result-panel {
    grid-column: auto;
  }

  .legal-footer {
    padding-inline: 18px;
  }

  .scheme-tools,
  .scheme-browser .panel-head {
    align-items: stretch;
    flex-direction: column;
  }

  .login-dialog {
    padding: 20px;
  }
}
