:root {
  --levada-navy: #26372f;
  --levada-navy-2: #465547;
  --levada-blue: #b59a70;
  --levada-blue-soft: #eee7da;
  --levada-line: #d9d0c0;
  --levada-paper: #fffdf8;
  --levada-bg: #f3efe7;
  --levada-text: #2d342f;
  --levada-muted: #6f7168;
  --levada-success: #3f7452;
  --levada-warn: #9b6433;
}

html { scroll-behavior: smooth; }
body.levada-prototype {
  --v51-blue: #8a6d4b;
  --v51-blue-2: #725b3f;
  --accent: #8a6d4b;
  --accent-2: #65705b;
  margin: 0;
  color: var(--levada-text);
  background:
    radial-gradient(circle at 88% 2%, rgba(181,154,112,.20), transparent 28rem),
    linear-gradient(180deg, #faf8f2 0, var(--levada-bg) 34rem);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

.levada-prototype .okcLangFloating,
.levada-prototype .heroHeader,
.levada-prototype .modeBar,
.levada-prototype .startup-hint,
.levada-prototype .methodPanel,
.levada-prototype .uxOverview,
.levada-prototype #autoWorkspace,
.levada-prototype #modeAutoBtn,
.levada-prototype #modeBasicBtn,
.levada-prototype #decoderUseBtn,
.levada-prototype #manualImportPanel,
.levada-prototype .marketWrap,
.levada-prototype #heroMarketSummary,
.levada-prototype .heroBuySellWrap,
.levada-prototype #proposalExportPage,
.levada-prototype .proposalSidebar,
.levada-prototype #proposalWorkspaceHeader {
  display: none !important;
}

.levada-prototype #proposalShellClean {
  display: block !important;
  min-height: 100vh;
}

.levada-prototype #proposalMain {
  width: 100%;
  min-width: 0;
}

.levada-prototype #proposalMain > .wrap {
  width: min(1480px, calc(100% - 40px));
  max-width: none;
  margin: 0 auto;
  padding: 0 0 56px;
}

.levadaPortalHeader {
  position: sticky;
  z-index: 9000;
  top: 0;
  color: #fff;
  background: var(--levada-navy);
  box-shadow: 0 12px 30px rgba(38,55,47,.14);
}

.levadaPortalHeaderInner {
  display: flex;
  align-items: center;
  width: min(1480px, calc(100% - 40px));
  min-height: 78px;
  margin: 0 auto;
  gap: 24px;
}

.levadaPortalBrand {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.levadaPortalLogo {
  display: grid;
  place-items: center;
  min-width: 64px;
  height: 42px;
  padding: 0 9px;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, #725b3f, #b59a70);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: .12em;
}
.levadaPortalBrandText { display: grid; gap: 2px; }
.levadaPortalBrandText strong { color: #fff !important; font-size: 19px; letter-spacing: .02em; }
.levadaPortalBrandText > span { color: #ded4c3; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.levadaPortalNav { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.levadaPortalNav a,
.levadaPortalLanguage a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 12px;
  color: #eaf5fc;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}
.levadaPortalNav a:hover { background: rgba(255,255,255,.09); }
.levadaPortalNav .levadaPortalSupport {
  color: #2b241a;
  background: #d9c49f;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.22);
}
.levadaPortalNav .levadaPortalSupport:hover { background: #eadfc9; }
.levadaPortalLanguage { display: inline-flex; align-items: center; gap: 3px; margin-left: 4px; padding: 3px; border: 1px solid rgba(255,255,255,.25); border-radius: 13px; }
.levadaPortalLanguage a { min-height: 34px; padding: 0 10px; }
.levadaPortalLanguage a[aria-current="page"] { color: var(--levada-navy); background: #fff; }

.levadaPrototypeHero {
  position: relative;
  overflow: hidden;
  margin: 34px 0 22px;
  padding: 44px 48px;
  border-radius: 34px;
  color: #fff;
  background: linear-gradient(125deg, #26372f 0%, #3f5044 55%, #65705b 100%);
  box-shadow: 0 24px 48px rgba(38,55,47,.16);
}
.levadaPrototypeHero::after {
  position: absolute;
  width: 360px;
  height: 360px;
  top: -210px;
  right: -70px;
  border: 52px solid rgba(217,208,192,.18);
  border-radius: 50%;
  content: "";
}
.levadaPrototypeEyebrow { position: relative; z-index: 1; color: #d9c49f; font-size: 13px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.levadaPrototypeHero h1 { position: relative; z-index: 1; max-width: 920px; margin: 12px 0 14px; color: #fff; font-size: clamp(35px, 5vw, 66px); line-height: 1.02; letter-spacing: -.035em; }
.levadaPrototypeHero p { position: relative; z-index: 1; max-width: 890px; margin: 0; color: #eee8dc; font-size: clamp(16px, 2vw, 21px); line-height: 1.55; }

.levadaPrototypeTabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 22px;
  padding: 10px;
  border: 1px solid var(--levada-line);
  border-radius: 22px;
  background: rgba(255,255,255,.88);
  box-shadow: 0 12px 30px rgba(27,60,91,.07);
  backdrop-filter: blur(12px);
}
.levadaPrototypeTab {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  padding: 12px 16px;
  border: 0;
  border-radius: 15px;
  color: var(--levada-text);
  background: transparent;
  cursor: pointer;
  text-align: left;
}
.levadaPrototypeTab:hover { background: #eee7da; }
.levadaPrototypeTab.is-active { color: #fff; background: var(--levada-navy); box-shadow: 0 10px 24px rgba(29,52,83,.18); }
.levadaPrototypeTabIndex { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; color: #725b3f; background: var(--levada-blue-soft); font-weight: 900; }
.levadaPrototypeTab.is-active .levadaPrototypeTabIndex { color: var(--levada-navy); background: #fff; }
.levadaPrototypeTab strong { display: block; font-size: 16px; }
.levadaPrototypeTab small { display: block; margin-top: 4px; color: var(--levada-muted); font-size: 12px; line-height: 1.35; }
.levadaPrototypeTab.is-active small { color: #ddd7ca; }

.levadaQuickVin,
.levadaBaselineSummary {
  margin: 0 0 18px;
  padding: 24px 26px;
  border: 1px solid var(--levada-line);
  border-radius: 22px;
  background: var(--levada-paper);
  box-shadow: 0 12px 30px rgba(27,60,91,.07);
}
.levadaQuickVin {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  border-top: 4px solid #8a6d4b;
}
.levadaSectionEyebrow { color: #8a6d4b; font-size: 11px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.levadaQuickVin h2,
.levadaBaselineSummary h2 { margin: 5px 0 7px; color: var(--levada-navy); font-size: 24px; }
.levadaQuickVin p,
.levadaBaselineSummary p { margin: 0; color: var(--levada-muted); line-height: 1.5; }
.levadaQuickVinControls { display: grid; grid-template-columns: minmax(360px, 1fr) minmax(250px, auto) minmax(150px, auto); gap: 12px; width: 100%; }
.levadaQuickVinControls input {
  min-height: 54px;
  padding: 0 18px;
  border: 2px solid #b9aa92;
  border-radius: 13px;
  color: var(--levada-navy);
  background: #fffdf8;
  font: 800 18px/1.2 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.levadaQuickVinControls .btn { min-height: 54px; padding-inline: 22px; }
.levada-prototype .srOnly {
  position: absolute !important;
  overflow: hidden !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  border: 0 !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
}
.levadaQuickVinStatus { grid-column: 1 / -1; min-height: 20px; color: var(--levada-muted); font-size: 13px; font-weight: 700; }
.levadaQuickVinStatus:empty { display: none; }
.levadaQuickVinStatus.is-busy { color: #725b3f; }
.levadaQuickVinStatus.is-ok { color: #28724a; }
.levadaQuickVinStatus.is-warn { color: #9a5720; }

.levadaBaselineSummary { background: linear-gradient(120deg, #f7fbfe 0%, #fff 72%); }
.levadaBaselineHead { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.levadaBaselineHead > strong { padding: 8px 12px; border-radius: 10px; color: #315979; background: #e7f2f9; font: 800 13px/1.2 ui-monospace, SFMono-Regular, Consolas, monospace; }
.levadaBaselineGrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.levadaBaselineGrid > div { position: relative; padding: 16px 18px; border: 1px solid #d6e3ec; border-radius: 15px; background: #fff; }
.levadaBaselineGrid span { display: block; min-height: 34px; color: var(--levada-muted); font-size: 12px; font-weight: 800; line-height: 1.4; }
.levadaBaselineGrid span i { display: inline-grid; place-items: center; width: 17px; height: 17px; margin-left: 6px; border: 1px solid #9fb8ca; border-radius: 50%; color: #315979; font: 800 11px/1 sans-serif; }
.levadaBaselineGrid strong { display: block; margin-top: 5px; color: var(--levada-navy); font-size: clamp(19px, 2vw, 27px); }
.levadaBaselineGrid strong.is-positive { color: #28724a; }
.levadaBaselineGrid strong.is-negative { color: #a24a36; }
.levadaHelpCard { cursor: help; outline: none; }
.levadaHelpCard:hover, .levadaHelpCard:focus-visible { border-color: #78a9cc; box-shadow: 0 10px 24px rgba(29, 52, 83, .12); }
.levadaHelpCard::after, .levada-prototype #valueRangeBox[data-help]::after {
  content: attr(data-help); position: absolute; z-index: 50; left: 16px; right: 16px; bottom: calc(100% + 9px); padding: 12px 14px;
  border-radius: 12px; color: #fff; background: #1d3453; box-shadow: 0 12px 30px rgba(16, 35, 59, .24);
  font-size: 12px; font-weight: 650; line-height: 1.45; opacity: 0; visibility: hidden; transform: translateY(5px); pointer-events: none;
  transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
}
.levadaHelpCard:hover::after, .levadaHelpCard:focus-visible::after,
.levada-prototype #valueRangeBox[data-help]:hover::after, .levada-prototype #valueRangeBox[data-help]:focus-visible::after { opacity: 1; visibility: visible; transform: translateY(0); }
.levada-prototype #valueRangeBox[data-help] { position: relative; cursor: help; outline: none; }

.levadaValueMeaning {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 15px;
  margin: 0 0 18px;
  padding: 19px 21px;
  border: 1px solid #f0d39a;
  border-left: 5px solid #c98d2d;
  border-radius: 18px;
  color: #574a38;
  background: #fffaf1;
  line-height: 1.55;
}
.levadaValueMeaningIcon { display: grid; place-items: center; width: 48px; height: 42px; border-radius: 11px; color: #fff; background: #b87724; font-size: 12px; font-weight: 900; }
.levadaValueMeaning strong { display: block; margin-bottom: 3px; color: var(--levada-navy); }

.levada-prototype .vinToggleBar,
.levada-prototype #vinWrap { display: none !important; }

.levadaPrivacyNote {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  margin: 0 0 22px;
  padding: 17px 20px;
  border: 1px solid #bcd5e7;
  border-left: 5px solid #4d91c4;
  border-radius: 18px;
  background: #f8fcff;
  color: #344c63;
  line-height: 1.5;
}
.levadaPrivacyIcon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; color: #fff; background: #4d91c4; font-weight: 900; }
.levadaPrivacyNote strong { display: block; margin-bottom: 3px; color: var(--levada-navy); }

.formGrid > div.is-auto-filled {
  border-color: rgba(76, 151, 210, .42);
  box-shadow: inset 3px 0 0 #4c97d2;
}

.okcAutoFilledBadge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 9px;
  padding: 4px 9px;
  border: 1px solid rgba(76, 151, 210, .34);
  border-radius: 999px;
  background: #eef7fd;
  color: #285f89;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
}

.levada-prototype .topControls { display: none !important; }

.levadaUtilityBar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin: 0 0 16px;
  padding: 12px;
  border: 1px solid var(--levada-line);
  border-radius: 18px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 10px 26px rgba(27,60,91,.06);
}
.levadaUtilityBar .btn:last-of-type { margin-left: auto; }
.levadaUtilityStatus {
  flex: 1 1 100%;
  min-height: 0;
  color: var(--levada-muted);
  font-size: 13px;
  line-height: 1.4;
}
.levadaUtilityStatus:empty { display: none; }

.levada-prototype #proposalHistoryPage { display: none !important; }
.levada-prototype.page-history #proposalHistoryPage {
  display: block !important;
  margin-top: 0;
}

.levada-prototype .card,
.levada-prototype .workspaceCard,
.levada-prototype .proposalPageCard {
  border: 1px solid var(--levada-line) !important;
  border-radius: 24px !important;
  background: var(--levada-paper) !important;
  box-shadow: 0 14px 36px rgba(26,59,88,.07) !important;
}
.levada-prototype .grid { align-items: start; gap: 22px; }
.levada-prototype .cardHeader { padding: 22px 24px 16px; border-bottom: 1px solid #e2ebf1; }
.levada-prototype .inputsCardBodyCollapsed { display: block !important; }
.levada-prototype #inputsCardBody[hidden] { display: block !important; }
.levada-prototype #inputsToggleBtn { display: none !important; }
.levada-prototype .formSectionBlock { border-color: #d7e4ed; border-radius: 18px; background: #fbfdff; }
.levada-prototype label { color: #233c57; }
.levada-prototype input,
.levada-prototype select,
.levada-prototype textarea {
  border: 1px solid #bdcfdd;
  border-radius: 12px;
  background: #fff;
}
.levada-prototype input:focus,
.levada-prototype select:focus,
.levada-prototype textarea:focus { outline: 3px solid rgba(115,185,239,.28); border-color: #4c91c6; }
.levada-prototype .btn { border-radius: 11px; font-weight: 800; }
.levada-prototype .btn.accent,
.levada-prototype .btn.primary {
  color: #fff !important;
  background: linear-gradient(180deg, #8a6d4b, #725b3f) !important;
  border-color: #725b3f !important;
}
.levada-prototype .btn.good {
  color: #fff !important;
  background: linear-gradient(180deg, #65705b, #465547) !important;
  border-color: #465547 !important;
}
.levada-prototype .btn.ai {
  color: #fff !important;
  background: linear-gradient(180deg, #65705b, #465547) !important;
  border-color: #465547 !important;
}

.levada-prototype .panelResult { position: sticky; top: 96px; }
.levada-prototype .resultHeroPanel { border-radius: 20px; background: linear-gradient(145deg, #f4f9fc, #fff); }
.levada-prototype .heroPrice { color: var(--levada-navy); }

.levada-prototype .ageChartBox {
  padding: 22px !important;
  border: 1px solid var(--levada-line) !important;
  border-radius: 20px !important;
  background: #fbfdff !important;
}
.levada-prototype .ageChartTitle {
  margin-bottom: 14px;
  color: var(--levada-navy);
  font-size: 18px;
  font-weight: 900;
}
.levada-prototype .valueReferenceOverview { display: grid; gap: 16px; }
.levada-prototype .valueReferenceGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.levada-prototype .valueReferenceItem {
  padding: 14px 16px;
  border: 1px solid #d8e5ee;
  border-radius: 14px;
  background: #fff;
}
.levada-prototype .valueReferenceItem span {
  display: block;
  color: var(--levada-muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.levada-prototype .valueReferenceItem strong {
  display: block;
  margin-top: 6px;
  color: var(--levada-navy);
  font-size: 21px;
}
.levada-prototype .valueTrajectoryCanvas {
  overflow: hidden;
  padding: 12px 12px 4px;
  border: 1px solid #d8e5ee;
  border-radius: 18px;
  background: linear-gradient(180deg, #f7fbfe 0%, #fff 100%);
}
.levada-prototype .valueTrajectorySvg { display: block; width: 100%; height: auto; }
.levada-prototype .valueTrajectoryLegend {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  color: #526a80;
  font-size: 12px;
  font-weight: 800;
}
.levada-prototype .valueTrajectoryLegend span { display: inline-flex; align-items: center; gap: 7px; }
.levada-prototype .valueTrajectoryLegend span::before { content: ''; display: inline-block; width: 24px; height: 4px; border-radius: 99px; background: #73b9ef; }
.levada-prototype .valueTrajectoryLegend .isCurrent::before { width: 11px; height: 11px; background: #2e8058; }
.levada-prototype .valueTrajectoryLegend .isFuture::before { height: 0; border-top: 3px dashed #8da3b7; border-radius: 0; background: transparent; }
.levada-prototype .valueTrajectoryLegend strong { margin-left: auto; color: var(--levada-navy); }
.levada-prototype .valueReferenceNote {
  margin: 0;
  color: var(--levada-muted);
  font-size: 12px;
  line-height: 1.5;
}

@media (max-width: 760px) {
  .levada-prototype .valueReferenceGrid { grid-template-columns: 1fr; }
  .levada-prototype .valueTrajectoryCanvas { padding: 8px 4px 2px; }
  .levada-prototype .valueTrajectoryLegend strong { width: 100%; margin-left: 0; }
}

.levada-prototype #decoderWorkspace .workspaceCard { padding: 26px; }
.levada-prototype #decoderWorkspace .workspaceHero { border-radius: 20px; color: #fff; background: linear-gradient(125deg, var(--levada-navy), var(--levada-navy-2)); }
.levada-prototype #decoderWorkspace .workspaceTitle,
.levada-prototype #decoderWorkspace .workspaceText,
.levada-prototype #decoderWorkspace .workspaceEyebrow { color: inherit; }

.levada-prototype #proposalAiComparePage { margin-top: 0; }
.levada-prototype .proposalPageHead { padding: 26px 28px 10px; }
.levada-prototype .proposalPageTitle { color: var(--levada-navy); font-size: clamp(26px, 3vw, 38px); }
.levada-prototype .proposalPageBody { padding: 20px 28px 30px; }
.levada-prototype .proposalQuickSummary,
.levada-prototype .proposalExportGrid { gap: 12px; }
.levada-prototype .proposalSummaryItem,
.levada-prototype .proposalMiniCard { border: 1px solid #d7e4ed; border-radius: 16px; background: #fbfdff; }
.levada-prototype .proposalAiMarketBand { background: rgba(115,185,239,.34); }
.levada-prototype .proposalAiMarker.okc { background: var(--levada-navy); }
.levada-prototype .proposalAiMarker.ai { background: #4d91c4; }

.levadaAiIntro { margin: 0 0 18px; padding: 18px 20px; border: 1px solid #f0d39a; border-left: 5px solid #c98d2d; border-radius: 17px; color: #574a38; background: #fffaf1; line-height: 1.55; }
.levadaAiIntro strong { display: block; margin-bottom: 4px; color: var(--levada-navy); }
.levadaAiMarketStats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0 0 16px; }
.levadaAiMarketStat { padding: 15px 17px; border: 1px solid #d6e3ec; border-radius: 15px; background: #fff; }
.levadaAiMarketStat span { display: block; color: var(--levada-muted); font-size: 12px; font-weight: 800; }
.levadaAiMarketStat strong { display: block; margin-top: 6px; color: var(--levada-navy); font-size: 19px; }
.proposalAiInsights { margin-top: 14px; }
.proposalAiExplanation { margin-top: 14px; }
.proposalAiExplanation p { color: #40566d; line-height: 1.55; }
#proposalAiSources { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
#proposalAiSources a { padding: 7px 10px; border-radius: 9px; color: #245f8b; background: #edf6fc; font-size: 12px; font-weight: 800; text-decoration: none; }

/* IVV listing comparison and LEVÁDA earth palette */
.levadaListingImport {
  display: grid;
  gap: 10px;
  padding-top: 15px;
  border-top: 1px solid var(--levada-line);
}
.levadaListingImport label {
  color: var(--levada-navy);
  font-size: 13px;
  font-weight: 850;
}
.levadaListingControls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(210px, auto);
  gap: 12px;
}
.levadaListingControls input {
  min-height: 50px;
  padding: 0 16px;
  border: 1px solid #b9aa92;
  border-radius: 12px;
  background: #fffdf8;
  color: var(--levada-text);
  font: inherit;
}
.levadaListingStatus { min-height: 19px; color: var(--levada-muted); font-size: 13px; font-weight: 700; }
.levadaListingStatus:empty { display: none; }
.levadaListingComparison {
  margin: 0 0 18px;
  padding: 22px 24px;
  border: 1px solid var(--levada-line);
  border-left: 5px solid #8a6d4b;
  border-radius: 20px;
  background: linear-gradient(120deg, #f5f0e7 0%, #fffdf8 74%);
  box-shadow: 0 12px 30px rgba(38,55,47,.07);
}
.levadaListingComparisonHead { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 15px; }
.levadaListingComparisonHead h2 { margin: 4px 0 5px; color: var(--levada-navy); font-size: 22px; }
.levadaListingComparisonHead p { margin: 0; color: var(--levada-muted); line-height: 1.5; }
.levadaListingComparisonHead a { flex: 0 0 auto; color: #725b3f; font-weight: 850; }
.levadaListingWarning { margin: 14px 0 0; padding: 11px 13px; border-radius: 11px; color: #77411e; background: #f7e7d7; font-weight: 750; }
.levadaListingMeta { margin-top: 11px; color: var(--levada-muted); font-size: 13px; }

.levada-prototype .formSectionBlock,
.levada-prototype .proposalSummaryItem,
.levada-prototype .proposalMiniCard,
.levada-prototype .levadaAiMarketStat,
.levada-prototype .valueReferenceItem { border-color: var(--levada-line); background: #fffdf8; }
.levada-prototype label { color: #3b493f; }
.levada-prototype input,
.levada-prototype select,
.levada-prototype textarea { border-color: #c7baa5; background: #fffdf8; }
.levada-prototype input:focus,
.levada-prototype select:focus,
.levada-prototype textarea:focus { outline-color: rgba(181,154,112,.30); border-color: #8a6d4b; }
.levada-prototype .btn.ai { background: #725b3f; border-color: #725b3f; }
.levada-prototype .resultHeroPanel,
.levada-prototype .valueTrajectoryCanvas { background: linear-gradient(145deg, #f5f0e7, #fffdf8) !important; }
.levada-prototype .ageChartBox { border-color: var(--levada-line) !important; background: #fffdf8 !important; }
.levada-prototype .valueTrajectoryLegend { color: #6f7168; }
.levada-prototype .valueTrajectoryLegend span::before { background: #b59a70; }
.levada-prototype .valueTrajectoryLegend .isCurrent::before { background: #3f7452; }
.levada-prototype #decoderWorkspace .workspaceHero { background: linear-gradient(125deg, #26372f, #65705b); }
.levada-prototype .proposalAiMarketBand { background: rgba(181,154,112,.34); }
.levada-prototype .proposalAiMarker.ai { background: #8a6d4b; }
.levadaAiIntro,
.levadaValueMeaning { border-color: #ddc99f; border-left-color: #8a6d4b; color: #594e3e; background: #fff9ed; }
#proposalAiSources a { color: #725b3f; background: #eee7da; }

.levada-prototype .autoProgressCard {
  border: 1px solid #d9d0c0 !important;
  background: #fffdf8 !important;
  box-shadow: 0 28px 70px rgba(38,55,47,.28) !important;
}
.levada-prototype .autoProgressSpinner { border-color: #e6dfd2 !important; border-top-color: #8a6d4b !important; }
.levada-prototype .autoProgressEyebrow { color: #8a6d4b; font-size: 11px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.levada-prototype .autoProgressBar > span { background: linear-gradient(90deg, #725b3f, #b59a70) !important; }
.levada-prototype .autoProgressNote { margin: 10px 0 0; color: #6f7168; font-size: 12px; line-height: 1.45; }

body.levada-prototype #ocrModal .ocrModalCard { border-color: #d9d0c0 !important; background: #fffdf8 !important; }
body.levada-prototype #ocrModal .ocrModalHeader { background: #26372f !important; }
body.levada-prototype #ocrModal .ocrDropZone { border-color: #b9aa92 !important; background: #f5f0e7 !important; }
body.levada-prototype #ocrModal .ocrProgressFill { background: linear-gradient(90deg, #725b3f, #b59a70) !important; }
body.levada-prototype #ocrModal .ocrCandidate { border-color: #d9d0c0 !important; background: #fffdf8 !important; }
body.levada-prototype #ocrModal .ocrCandidate:hover { border-color: #8a6d4b !important; background: #f5f0e7 !important; }

/* v11: final earth-colour pass over legacy blue controls. */
.levada-prototype .btn,
.levada-prototype button,
.levada-prototype .buttonLike,
.levada-prototype .modeBtn,
.levada-prototype .proposalTab,
.levada-prototype .proposalQuickAction {
  border-color:#c7baa5;
}
.levada-prototype .btn.primary,
.levada-prototype .btn.ai,
.levada-prototype button.primary,
.levada-prototype .modeBtn.active,
.levada-prototype .proposalTab.active,
.levada-prototype .proposalQuickAction.primary {
  border-color:#66705a!important;
  background:linear-gradient(135deg,#66705a,#4d594b)!important;
  color:#fff!important;
  box-shadow:0 8px 18px rgba(62,74,64,.16)!important;
}
.levada-prototype .btn.secondary,
.levada-prototype button.secondary,
.levada-prototype .modeBtn:not(.active),
.levada-prototype .proposalTab:not(.active),
.levada-prototype .proposalQuickAction:not(.primary) {
  border-color:#c7baa5!important;
  background:#eee7da!important;
  color:#594e3e!important;
}
.levada-prototype .btn:hover,
.levada-prototype button:hover{border-color:#8a6d4b!important}
.levada-prototype a:not(.levadaPortalBrand):not(.levadaPortalNav a){color:#725b3f}
.levada-prototype input[type="checkbox"],
.levada-prototype input[type="radio"]{accent-color:#66705a!important}

/* v12: remove the remaining legacy blue from IVV cards, help and reports. */
.levada-prototype .levadaBaselineSummary{
  border-color:#d9d0c0!important;
  background:linear-gradient(120deg,#f5f0e7 0%,#fffdf8 72%)!important;
  box-shadow:0 12px 30px rgba(38,55,47,.07)!important;
}
.levada-prototype .levadaBaselineHead>strong{color:#594e3e!important;background:#eee7da!important}
.levada-prototype .levadaBaselineGrid>div{border-color:#d9d0c0!important;background:#fffdf8!important}
.levada-prototype .levadaBaselineGrid span i{border-color:#b59a70!important;color:#725b3f!important}
.levada-prototype .levadaHelpCard::after,
.levada-prototype #valueRangeBox[data-help]::after{background:#26372f!important;box-shadow:0 12px 30px rgba(38,55,47,.24)!important}
.levada-prototype .levadaPrivacyNote{border-color:#d9d0c0!important;background:#f5f0e7!important}
.levada-prototype .levadaPrivacyIcon{background:#66705a!important}
.levada-prototype .heroPrice{color:#3f7452!important}
.levada-prototype .resultHeroPanel,
.levada-prototype .levadaListingComparison,
.levada-prototype .valueTrajectoryCanvas{border-color:#d9d0c0!important;background:linear-gradient(145deg,#f5f0e7,#fffdf8)!important}
.levada-prototype .listingCompareTrack{background:linear-gradient(90deg,#e4ddd0,#dce8dc,#ead8b7)!important}
.levada-prototype .listingCompareMarker--listing{background:#8a6d4b!important}
.levada-prototype .listingCompareMarker--vsh{background:#4f7157!important}
.levada-prototype .proposalStepNumber,
.levada-prototype .proposalFieldBadge,
.levada-prototype .levadaStatusBadge{background:#eee7da!important;color:#594e3e!important;border-color:#d9d0c0!important}
.levada-prototype .levadaUtilityBar,
.levada-prototype .formSectionBlock,
.levada-prototype .proposalPanel{box-shadow:0 10px 26px rgba(38,55,47,.055)!important}
.levada-prototype :focus-visible{outline-color:#8a6d4b!important}

/* v13: final IVV palette audit, including legacy calculator widgets and reports. */
.levada-prototype{--v51-blue:#8a6d4b!important;--accent:#8a6d4b!important;--levada-navy:#26372f!important;--levada-line:#d9d0c0!important;--levada-soft:#f3efe7!important}
.levada-prototype a:not(.supportLevada):not(.workspaceBack){color:#6f573d!important}.levada-prototype button,.levada-prototype .btn,.levada-prototype [role=button]{border-color:#c8bca9!important}
.levada-prototype button.primary,.levada-prototype .btn-primary,.levada-prototype .primaryAction,.levada-prototype #prepareAutomaticBaseline{background:linear-gradient(180deg,#66705a,#4f5d53)!important;border-color:#4f5d53!important;color:#fff!important}
.levada-prototype button.secondary,.levada-prototype .btn-secondary{background:#eee7da!important;color:#594a37!important;border-color:#c8bca9!important}
.levada-prototype input,.levada-prototype select,.levada-prototype textarea{border-color:#c8bca9!important;background:#fffdf8!important;color:#26312b!important}.levada-prototype input:focus,.levada-prototype select:focus,.levada-prototype textarea:focus{border-color:#8a7658!important;outline-color:#b6a07c!important;box-shadow:0 0 0 3px #b6a07c2d!important}
.levada-prototype .wizardTabs,.levada-prototype .wizardTab,.levada-prototype .resultHeader,.levada-prototype .valuationHeader,.levada-prototype .comparisonCard,.levada-prototype .resultCard,.levada-prototype .reportCard,.levada-prototype .listingComparePanel{border-color:#d9d0c0!important}
.levada-prototype .wizardTab.active,.levada-prototype .tab.active{color:#fff!important;background:#52604f!important;border-color:#52604f!important}.levada-prototype .wizardTab .number,.levada-prototype .stepNumber{background:#eee7da!important;color:#725b3f!important}.levada-prototype .wizardTab.active .number{background:#fffdf8!important;color:#52604f!important}
.levada-prototype .valueRangeBox,.levada-prototype .listingComparePanel,.levada-prototype .valuationExplanation,.levada-prototype .resultExplanation,.levada-prototype .calculationMeta{background:#f7f3eb!important;border-color:#d9d0c0!important}
.levada-prototype .listingCompareMarker--listing,.levada-prototype .proposalAiMarker.ai{background:#8a6d4b!important}.levada-prototype .listingCompareMarker--vsh{background:#5c705a!important}.levada-prototype .statusReady,.levada-prototype .statusComplete{background:#e5efe4!important;color:#3f7452!important;border-color:#9bc5a7!important}
.levada-prototype .supportLevada{background:#8a6d4b!important;border-color:#8a6d4b!important;color:#fff!important}.levada-prototype .supportLevada:hover{background:#725b3f!important}

/* v13.1: complete IVV earth palette for tabs, validation and result states. */
.levada-prototype .levadaPrivacyNote,
.levada-prototype .cardHeader,
.levada-prototype .resultBox,
.levada-prototype .resultHeroPanel,
.levada-prototype .levadaListingComparison,
.levada-prototype .valueTrajectoryCanvas{
  border-color:#d9d0c0!important;
  color:#26312b!important;
}
.levada-prototype .cardHeader,
.levada-prototype .resultBox{
  background:#fffdf8!important;
}
.levada-prototype .muted,
.levada-prototype .formSectionText,
.levada-prototype .v9TabCounter,
.levada-prototype .vshMetaLine,
.levada-prototype .vshMetaItem,
.levada-prototype .vshAsOf{
  color:#6f7168!important;
}
.levada-prototype .formSectionEyebrow,
.levada-prototype .valueRangeLabel{
  color:#8a6d4b!important;
}
.levada-prototype .v9TabBtn{
  color:#4f5d53!important;
  background:#f7f3eb!important;
  border-color:#d9d0c0!important;
}
.levada-prototype .v9TabBtn:hover{
  color:#493b2d!important;
  background:#eee7da!important;
}
.levada-prototype .v9TabBtn.v9Active{
  color:#fff!important;
  background:#52604f!important;
  border-color:#52604f!important;
}
.levada-prototype .v9TabNum{
  color:#725b3f!important;
  background:#eee7da!important;
}
.levada-prototype .v9TabBtn.v9Active .v9TabNum{
  color:#52604f!important;
  background:#fffdf8!important;
}
.levada-prototype .field.invalid{
  border-color:#c79b62!important;
  background:#fffaf0!important;
}
.levada-prototype .field.invalid>label{
  color:#7a5428!important;
}
.levada-prototype .valueRange,
.levada-prototype .valueRangeBox{
  color:#594a37!important;
  background:#f5f0e7!important;
  border-color:#d9d0c0!important;
}
.levada-prototype .valueRangeValue{
  color:#52604f!important;
}
.levada-prototype .heroPrice{
  color:#3f7452!important;
  background:linear-gradient(90deg,#8a6d4b,#5b7a5d,#a87643)!important;
  -webkit-background-clip:text!important;
  background-clip:text!important;
}
.levada-prototype .floatingTooltip{
  color:#fff!important;
  background:#26372f!important;
  border-color:#26372f!important;
}
.levada-prototype #modeLabel,
.levada-prototype #calcStatus{
  color:#594a37!important;
  background:#eee7da!important;
  border-color:#d9d0c0!important;
}
.levada-prototype #calcIdUi,
.levada-prototype #calcDateUi,
.levada-prototype #calcIdUi b,
.levada-prototype #calcDateUi b,
.levada-prototype .vshMetaItem b,
.levada-prototype .vshAsOf b{
  color:#594a37!important;
}
.levada-prototype #vshOut{
  color:#3f7452!important;
  background:linear-gradient(90deg,#8a6d4b,#5b7a5d,#a87643)!important;
  -webkit-background-clip:text!important;
  background-clip:text!important;
}

@media (max-width: 980px) {
  .levadaQuickVin { grid-template-columns: 1fr; }
  .levadaPrototypeTabs { grid-template-columns: 1fr; }
  .levadaPrototypeTab { min-height: 60px; }
  .levada-prototype .panelResult { position: static; }
  .levadaPortalNav > a { display: none; }
  .levadaQuickVinControls { grid-template-columns: 1fr 1fr; }
  .levadaQuickVinControls input { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  .levadaPortalHeaderInner,
  .levada-prototype #proposalMain > .wrap { width: min(100% - 22px, 1480px); }
  .levadaPortalHeaderInner { min-height: 66px; gap: 10px; }
  .levadaPortalLogo { min-width: 48px; height: 36px; font-size: 10px; }
  .levadaPortalBrandText strong { font-size: 15px; }
  .levadaPortalBrandText > span { font-size: 9px; }
  .levadaPrototypeHero { margin-top: 20px; padding: 30px 24px; border-radius: 24px; }
  .levadaPrototypeHero h1 { font-size: 34px; }
  .levadaPrototypeTabs { padding: 7px; border-radius: 18px; }
  .levadaQuickVin,
  .levadaBaselineSummary { padding: 20px 18px; }
  .levadaQuickVinControls { grid-template-columns: 1fr; }
  .levadaQuickVinControls input { grid-column: auto; }
  .levadaListingControls { grid-template-columns: 1fr; }
  .levadaListingComparisonHead { flex-direction: column; }
  .levadaBaselineHead { align-items: flex-start; flex-direction: column; }
  .levadaBaselineGrid { grid-template-columns: 1fr; }
  .levadaValueMeaning { grid-template-columns: 1fr; }
  .levadaPrivacyNote { grid-template-columns: 1fr; }
  .levadaAiMarketStats { grid-template-columns: 1fr; }
  .levada-prototype .valueReferenceGrid { grid-template-columns: 1fr; }
  .levadaUtilityBar .btn { flex: 1 1 calc(50% - 9px); }
  .levadaUtilityBar .btn:last-of-type { margin-left: 0; }
  .levada-prototype .proposalPageBody { padding: 16px 18px 22px; }
}
