/* Universal desk v4: one calm first layer, with deeper resources available on demand. */
body.universal-mode .views,
body.universal-mode .phone-book,
body.universal-mode #lead-list { display: none !important; }
body.universal-mode #scene-labels .scene-label[data-scene-item="guide"],
body.universal-mode #scene-labels .scene-label[data-scene-item="appointment"],
body.universal-mode #scene-labels .scene-label[data-scene-item="portal"] { display: none !important; }
body.universal-mode #desk .phone-object { display: none !important; }
body.universal-mode.existing-client #desk .phone-object { display: block !important; }
body.universal-mode.has-3d:not(.use-simple-desk) #desk { display: none !important; }
body.universal-mode #scene-hint { display: none !important; }
body.universal-mode .desk-note > span { display: inline; }
body.universal-mode #desk {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-areas: none;
  gap: 28px 24px;
  padding: 30px 34px 44px;
  aspect-ratio: auto;
  overflow: visible;
}
body.universal-mode #desk .window-light { display: none; }
body.universal-mode #desk .object {
  position: relative !important;
  inset: auto !important;
  left: auto !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  width: 100% !important;
  max-width: none !important;
  grid-column: auto !important;
  grid-row: auto !important;
  transform: none !important;
  z-index: 1 !important;
  align-self: start;
}
body.universal-mode #desk .physical { transform: rotate(var(--turn, 0deg)); }
body.universal-mode #desk .object-label { min-height: 48px; }
body.universal-mode .reader-status { color: #273445; font-weight: 600; }
body.universal-mode .desk-handout {
  max-width: 780px;
  color: #111923;
}
body.universal-mode .desk-handout h3 {
  color: #111923;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.08;
  letter-spacing: -.035em;
}
body.universal-mode .desk-handout p,
body.universal-mode .desk-handout li,
body.universal-mode .desk-handout dd {
  color: #111923;
  font-size: 16px;
  line-height: 1.65;
}
body.universal-mode .handout-lead { font-size: 18px !important; font-weight: 600; }
body.universal-mode .handout-steps { margin: 24px 0; }
body.universal-mode .handout-steps dt { color: #111923; font-size: 16px; font-weight: 700; }
body.universal-mode .handout-steps dd { margin: 4px 0 18px 0; }
body.universal-mode .market-stats {
  border-left: 4px solid #ec2b95;
  background: #f5f7fa;
  padding: 18px 20px;
  margin: 22px 0;
}
body.universal-mode .market-stats .handout-note { margin: 0; }
body.universal-mode .market-source { font-size: 13px !important; color: #3f4b5b !important; }
body.universal-mode .market-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
body.universal-mode .market-metrics > div { background: #fff; border: 1px solid #d7dce3; padding: 14px; }
body.universal-mode .market-metrics strong,
body.universal-mode .market-metrics span { display: block; }
body.universal-mode .market-metrics strong { color: #111923; font-size: 22px; }
body.universal-mode .market-metrics span { color: #3f4b5b; font-size: 13px; margin-top: 4px; }
body.universal-mode .market-warning { color: #7a164b !important; font-weight: 700; }
body.universal-mode .universal-followups {
  display: grid;
  gap: 18px;
  width: 100%;
  margin-top: 26px;
}
body.universal-mode .universal-source-link {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 46px;
  padding: 10px 16px;
  border: 2px solid #c90070;
  border-radius: 4px;
  background: #fff;
  color: #9b0056;
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
}
body.universal-mode .universal-source-link:hover { background: #fff0f7; }
body.universal-mode .universal-source-link:focus-visible,
body.universal-mode .key-report-cta a:focus-visible {
  outline: 3px solid #111923;
  outline-offset: 3px;
}
body.universal-mode .key-report-cta {
  display: grid;
  gap: 8px;
  padding: 18px 20px;
  border-left: 5px solid #c90070;
  background: #fff0f7;
}
body.universal-mode .key-report-cta strong {
  color: #111923;
  font-size: 19px;
}
body.universal-mode .key-report-cta span {
  color: #111923;
  font-size: 16px;
  line-height: 1.5;
}
body.universal-mode .key-report-cta a {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 46px;
  margin-top: 4px;
  padding: 10px 16px;
  border-radius: 4px;
  background: #c90070;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
}
body.universal-mode .key-report-cta a:hover { background: #9b0056; }
@media (max-width: 900px) {
  body.universal-mode #desk { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  body.universal-mode #desk { grid-template-columns: 1fr; padding: 28px 22px 38px; }
  body.universal-mode #desk .object { width: min(100%, 300px) !important; justify-self: center; }
  body.universal-mode .desk-handout h3 { font-size: 30px; }
  body.universal-mode .desk-handout p,
  body.universal-mode .desk-handout li,
  body.universal-mode .desk-handout dd { font-size: 17px; }
  body.universal-mode .universal-source-link,
  body.universal-mode .key-report-cta a { width: 100%; justify-content: center; text-align: center; }
  body.universal-mode .key-report-cta span { font-size: 17px; }
}

/* v5 visual refinement: one editorial card, one action rail, calmer conversion. */
body.universal-mode #reader:has(.resource-presentation) {
  width: min(1040px, calc(100% - 48px));
  max-width: 1040px;
  max-height: calc(100dvh - 48px);
  border-radius: 18px;
  background: #f4f6f8;
  box-shadow: 0 28px 90px #1723303d;
  overflow: hidden;
}
body.universal-mode #reader:has(.resource-presentation) .reader-shell {
  padding: 26px 42px 34px;
  background: #f4f6f8;
}
body.universal-mode #reader:has(.resource-presentation) .reader-header {
  padding: 0 0 18px;
  border-bottom: 1px solid #d8dde5;
  background: transparent;
}
body.universal-mode #reader:has(.resource-presentation) .reader-header h2 {
  color: #647080;
  font: 800 13px/1.2 Montserrat, sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
}
body.universal-mode #reader:has(.resource-presentation) #close {
  min-height: 46px;
  padding: 10px 15px;
  border: 1px solid #bac3cf;
  border-radius: 6px;
  background: #fff;
  color: #111923;
  font: 700 14px/1.2 Montserrat, sans-serif;
}
body.universal-mode #reader:has(.resource-presentation) #close:hover { background: #fff0f7; border-color: #c90070; }
body.universal-mode #reader:has(.resource-presentation) #reader-body {
  padding: 28px 0 4px;
  background: #f4f6f8;
}
body.universal-mode #reader:has(.resource-presentation) .resource-presentation {
  max-width: 880px;
}
body.universal-mode #reader:has(.resource-presentation) .desk-handout {
  max-width: none;
  padding: 34px 38px 32px;
  border: 1px solid #e2e7ed;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 30px #17233012;
}
body.universal-mode #reader:has(.resource-presentation) .desk-handout h3 {
  max-width: 16ch;
  margin-bottom: 10px;
  color: #111923;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.03;
}
body.universal-mode #reader:has(.resource-presentation) .desk-handout .handout-lead {
  max-width: 52ch;
  margin: 0 0 20px;
  color: #263140;
  font-size: 20px !important;
  line-height: 1.45;
}
body.universal-mode #reader:has(.resource-presentation) .desk-handout > p:not(.handout-lead),
body.universal-mode #reader:has(.resource-presentation) .desk-handout > .market-stats,
body.universal-mode #reader:has(.resource-presentation) .desk-handout dd {
  max-width: 70ch;
}
body.universal-mode #reader:has(.resource-presentation) .handout-links {
  display: grid;
  gap: 18px;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid #e5e9ee;
}
body.universal-mode #reader:has(.resource-presentation) .universal-primary-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
body.universal-mode #reader:has(.resource-presentation) .universal-primary-actions .action {
  margin: 0 !important;
  min-height: 50px;
  padding: 12px 20px !important;
  border-radius: 6px;
  font-size: 17px !important;
}
body.universal-mode #reader:has(.resource-presentation) .universal-source-link {
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid #cad1da;
  border-radius: 6px;
  background: #f8fafc;
  color: #5a1d45;
  font-size: 15px;
  font-weight: 700;
}
body.universal-mode #reader:has(.resource-presentation) .universal-source-link:hover { border-color: #c90070; background: #fff0f7; }
body.universal-mode #reader:has(.resource-presentation) .key-report-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 24px;
  align-items: center;
  padding: 20px 22px;
  border: 1px solid #f0c4dc;
  border-left: 6px solid #c90070;
  border-radius: 8px;
  background: #fff4f9;
}
body.universal-mode #reader:has(.resource-presentation) .key-report-cta strong {
  font-size: 20px;
  line-height: 1.2;
}
body.universal-mode #reader:has(.resource-presentation) .key-report-cta span {
  grid-column: 1;
  color: #263140;
  font-size: 16px;
  line-height: 1.45;
}
body.universal-mode #reader:has(.resource-presentation) .key-report-cta a {
  grid-column: 2;
  grid-row: 1 / span 2;
  min-height: 48px;
  margin: 0;
  padding: 12px 18px;
  border-radius: 6px;
  background: #c90070;
  font-size: 16px;
}
body.universal-mode #reader:has(.resource-presentation) .resource-identity {
  margin-top: 22px;
  color: #5f6977;
  font-size: 13px;
}
@media (max-width: 700px) {
  body.universal-mode #reader:has(.resource-presentation) {
    width: calc(100% - 16px);
    max-height: calc(100dvh - 16px);
    margin: 8px;
    border-radius: 14px;
  }
  body.universal-mode #reader:has(.resource-presentation) .reader-shell { padding: 14px 16px 20px; }
  body.universal-mode #reader:has(.resource-presentation) .reader-header { gap: 10px; padding-bottom: 14px; }
  body.universal-mode #reader:has(.resource-presentation) .reader-header h2 { font-size: 11px; }
  body.universal-mode #reader:has(.resource-presentation) #close { min-height: 44px; font-size: 13px; }
  body.universal-mode #reader:has(.resource-presentation) #reader-body { padding-top: 18px; }
  body.universal-mode #reader:has(.resource-presentation) .desk-handout { padding: 26px 20px 22px; border-radius: 12px; }
  body.universal-mode #reader:has(.resource-presentation) .desk-handout h3 { font-size: 33px; }
  body.universal-mode #reader:has(.resource-presentation) .desk-handout .handout-lead { font-size: 18px !important; }
  body.universal-mode #reader:has(.resource-presentation) .universal-primary-actions { display: grid; }
  body.universal-mode #reader:has(.resource-presentation) .universal-primary-actions .action,
  body.universal-mode #reader:has(.resource-presentation) .universal-source-link,
  body.universal-mode #reader:has(.resource-presentation) .key-report-cta a { width: 100%; justify-content: center; text-align: center; }
  body.universal-mode #reader:has(.resource-presentation) .key-report-cta { grid-template-columns: 1fr; gap: 8px; padding: 18px; }
  body.universal-mode #reader:has(.resource-presentation) .key-report-cta span { grid-column: 1; font-size: 17px; }
  body.universal-mode #reader:has(.resource-presentation) .key-report-cta a { grid-column: 1; grid-row: auto; }
}
