/* Decision Center application shell — Option 2 chrome */

:root {
  --dc-shell-rail-width: 16.5rem;
  --dc-shell-strip-height: 2.55rem;
  --dc-shell-header-height: 3rem;
  --dc-shell-bottom-height: 3.75rem;
  --dc-shell-sticky-offset: calc(var(--dc-shell-header-height) + 0.5rem);
  --dc-shell-header-bg: rgba(246, 244, 238, 0.94);
  --dc-shell-ink: var(--ink, #17201a);
  --dc-shell-muted: var(--muted, #5f6b62);
  --dc-shell-line: var(--line, rgba(23, 32, 26, 0.12));
  --dc-shell-field: var(--field, #5f7a55);
  --dc-shell-field-dark: var(--field-dark, #385134);
  --dc-shell-surface: var(--white, #fff);
  --dc-shell-lime: var(--accent-lime, #84cc16);
  --dc-shell-gold: var(--accent-gold, #fbbf24);
  --dc-shell-orange: var(--accent-orange, #f59a14);
  --dc-shell-positive: var(--color-positive, #416c4a);
  --dc-shell-negative: var(--color-risk, #8f4f36);
}

.dc-app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* —— Identity strip (unlocked only) —— */
.dc-identity-strip {
  display: none;
  align-items: center;
  min-height: var(--dc-shell-strip-height);
  padding: 0.28rem 1rem;
  background: var(--dc-shell-ink);
  color: #f6f4ee;
  z-index: 40;
}

body.dc-app-unlocked .dc-identity-strip {
  display: flex;
}

.dc-identity-home {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: inherit;
  text-decoration: none;
}

.dc-identity-home:hover,
.dc-identity-home:focus-visible {
  text-decoration: none;
}

.dc-identity-home:hover .dc-identity-product,
.dc-identity-home:focus-visible .dc-identity-product {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.dc-logo-mark {
  display: inline-flex;
  flex-shrink: 0;
}

.dc-identity-copy {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  line-height: 1.15;
}

.dc-identity-product {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  background: linear-gradient(90deg, var(--dc-shell-lime) 0%, var(--dc-shell-gold) 55%, var(--dc-shell-orange) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--dc-shell-lime);
}

.dc-identity-mark {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.72;
  color: #ede9e0;
  -webkit-text-fill-color: #ede9e0;
}

/* —— Frame: rail + column —— */
.dc-app-frame {
  display: flex;
  flex: 1;
  min-width: 0;
  width: 100%;
}

.dc-section-rail {
  display: none;
  flex: 0 0 var(--dc-shell-rail-width);
  width: var(--dc-shell-rail-width);
  min-width: var(--dc-shell-rail-width);
  max-width: var(--dc-shell-rail-width);
  padding: 1.25rem 0.85rem 2rem;
  border-right: 1px solid var(--dc-shell-line);
  background: rgba(255, 255, 255, 0.72);
  position: sticky;
  top: 0;
  align-self: stretch;
  min-height: calc(100vh - var(--dc-shell-strip-height));
  max-height: calc(100vh - var(--dc-shell-strip-height));
  overflow-x: hidden;
  overflow-y: auto;
  box-sizing: border-box;
}

body.dc-app-unlocked .dc-section-rail {
  display: flex;
  flex-direction: column;
}

.dc-rail-label {
  display: block;
  margin: 1.1rem 0 0.45rem;
  padding: 0 0.35rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dc-shell-muted);
}

.dc-rail-label:first-child {
  margin-top: 0;
}

/* Override site `nav > ul { display: flex }` horizontal nav styles */
.dc-section-rail ul,
.dc-section-rail .dc-rail-list,
.dc-overflow-panel ul,
.dc-overflow-panel .dc-rail-list {
  display: block !important;
  flex-direction: column;
  flex-wrap: nowrap;
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  gap: 0;
  overflow: visible;
}

.dc-section-rail .dc-rail-list li,
.dc-overflow-panel .dc-rail-list li {
  display: block;
  margin: 0 0 0.2rem;
  width: 100%;
  float: none;
}

.dc-rail-list a,
.dc-rail-link,
.dc-linkish {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  width: 100%;
  box-sizing: border-box;
  text-align: left;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  color: var(--dc-shell-ink);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.3;
  white-space: normal;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
}

.dc-tool-icon {
  display: inline-flex;
  flex-shrink: 0;
  margin-top: 0.05rem;
  color: var(--dc-shell-muted);
}

.dc-rail-link-label {
  min-width: 0;
}

.dc-section-rail a,
.dc-overflow-panel a {
  white-space: normal !important;
}

.dc-rail-list a:hover,
.dc-rail-list a:focus-visible,
.dc-rail-link:hover,
.dc-rail-link:focus-visible,
.dc-linkish:hover,
.dc-linkish:focus-visible {
  background: rgba(132, 204, 22, 0.12);
}

.dc-rail-list a[aria-current='page'],
.dc-rail-list a.is-current,
.dc-rail-link[aria-current='page'],
.dc-rail-link.is-current {
  background: rgba(132, 204, 22, 0.18);
  color: #3f6212;
}

.dc-rail-list a[aria-current='page'] .dc-tool-icon,
.dc-rail-list a.is-current .dc-tool-icon,
.dc-rail-link[aria-current='page'] .dc-tool-icon,
.dc-rail-link.is-current .dc-tool-icon {
  color: var(--dc-shell-lime);
}

.dc-rail-list--meta {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--dc-shell-line);
}

.dc-rail-list--meta a {
  font-weight: 500;
  font-size: 0.86rem;
  color: var(--dc-shell-muted);
}

/* Secondary switcher: after tools + library, visually quieter */
.dc-app-counterpart {
  margin: 0.2rem 0 0;
  font-size: 0.78rem;
  line-height: 1.3;
}

.dc-app-counterpart[hidden] {
  display: none !important;
}

.dc-counterpart-link {
  color: #3f6212;
  font-weight: 600;
  text-decoration: none;
}

.dc-counterpart-link:hover,
.dc-counterpart-link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.dc-rail-section--counterpart {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--dc-shell-line);
}

.dc-rail-section--counterpart .dc-rail-label {
  margin-top: 0;
}

.dc-rail-section--switch {
  margin-top: 1.15rem;
  padding-top: 0.95rem;
  border-top: 1px solid var(--dc-shell-line);
}

.dc-rail-section--tax-rolls {
  margin-top: 1.15rem;
  padding-top: 0.95rem;
  border-top: 1px solid var(--dc-shell-line);
}

.dc-rail-section--tax-rolls .dc-rail-label {
  margin-top: 0;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(95, 107, 98, 0.85);
}

.dc-rail-link--external .dc-rail-link-label::after {
  content: '↗';
  margin-left: 0.3rem;
  font-size: 0.72em;
  opacity: 0.65;
}

.dc-rail-section--switch .dc-rail-label {
  margin-top: 0;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(95, 107, 98, 0.85);
}

.dc-rail-list--switch .dc-rail-link,
.dc-rail-list--switch a {
  padding: 0.42rem 0.55rem;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--dc-shell-muted);
}

.dc-rail-list--switch .dc-tool-icon {
  width: 16px;
  height: 16px;
  color: rgba(95, 107, 98, 0.75);
}

.dc-rail-link--property-type .dc-tool-icon {
  color: rgba(63, 98, 18, 0.75);
}

.dc-overflow-session {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--dc-shell-line);
}

.dc-overflow-session:empty {
  display: none;
}

.dc-overflow-panel .dc-rail-section--switch {
  margin-top: 0.85rem;
}

.dc-app-column {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* —— App header —— */
.dc-app-header {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: var(--dc-shell-header-height);
  padding: 0.45rem 1rem;
  border-bottom: 1px solid var(--dc-shell-line);
  background: var(--dc-shell-header-bg);
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(8px);
}

body.dc-app-unlocked .dc-app-header {
  display: flex;
}

.dc-app-eyebrow {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dc-shell-muted);
}

.dc-app-title {
  margin: 0.05rem 0 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dc-shell-ink);
  line-height: 1.2;
}

.dc-app-header-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.dc-app-header-property {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  justify-content: center;
  padding: 0 0.5rem;
}

.dc-app-header-property[hidden] {
  display: none !important;
}

.dc-property-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem 0.55rem;
  max-width: min(28rem, 100%);
  min-width: 0;
  padding: 0.28rem 0.55rem 0.28rem 0.65rem;
  border: 1px solid rgba(23, 32, 26, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
}

.dc-property-chip--empty {
  border-style: dashed;
  background: transparent;
}

.dc-property-chip--edit {
  border-radius: 12px;
  padding: 0.25rem 0.35rem 0.25rem 0.45rem;
  width: min(28rem, 100%);
}

.dc-property-chip-kicker {
  flex-shrink: 0;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dc-shell-muted);
}

.dc-property-chip-label,
.dc-property-chip-add {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--dc-shell-ink);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  padding: 0;
  margin: 0;
  cursor: pointer;
  text-align: left;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dc-property-chip-add {
  font-weight: 600;
  color: #3f6212;
}

.dc-property-chip-clear {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--dc-shell-muted);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.15rem 0.35rem;
  cursor: pointer;
  flex-shrink: 0;
}

.dc-property-chip-clear:hover,
.dc-property-chip-label:hover,
.dc-property-chip-add:hover {
  color: #3f6212;
}

.dc-property-chip-input {
  flex: 1 1 auto;
  min-width: 0;
  border: 1px solid var(--dc-shell-line);
  border-radius: 8px;
  padding: 0.35rem 0.55rem;
  font: inherit;
  font-size: 0.86rem;
  background: #fff;
  color: var(--dc-shell-ink);
}

.dc-property-chip-save,
.dc-property-chip-cancel {
  flex-shrink: 0;
  padding: 0.3rem 0.55rem;
  font-size: 0.75rem;
}

.dc-app-header-session:empty {
  display: none;
}

.dc-app-header .sr-only,
.dc-property-chip .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Compact session chip inside the sticky header */
body.dc-app-unlocked .dc-app-header .dc-access-status {
  margin: 0;
  padding: 0.2rem 0.55rem 0.2rem 0.65rem;
  border: 1px solid rgba(132, 204, 22, 0.35);
  border-radius: 999px;
  background: rgba(132, 204, 22, 0.1);
  box-shadow: none;
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.35rem 0.55rem;
  max-width: min(18rem, 42vw);
}

body.dc-app-unlocked .dc-app-header .dc-access-status p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--dc-shell-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.dc-app-unlocked .dc-app-header .dc-access-status-lead {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body.dc-app-unlocked .dc-app-header .dc-access-status [data-dc-signout] {
  font-size: 0.75rem;
  padding: 0;
  white-space: nowrap;
}

.dc-text-btn {
  appearance: none;
  border: 1px solid rgba(132, 204, 22, 0.35);
  background: rgba(132, 204, 22, 0.08);
  color: #3f6212;
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.dc-text-btn:hover,
.dc-text-btn:focus-visible {
  border-color: rgba(132, 204, 22, 0.55);
  background: rgba(132, 204, 22, 0.16);
}

.dc-menu-toggle {
  display: none;
}

/* Legacy full-width status row — retired in favor of header session chip */
.dc-app-status,
#dc-shell-status {
  display: none !important;
}

body.dc-app-unlocked #dc-access-root:empty {
  display: none;
}

/* When status moved into shell, hide empty access root gap */
body.dc-app-unlocked #dc-access-root:not(:has(.dc-access-status)):not(:has(.dc-access-gate)) {
  display: none;
}

.dc-app-workspace {
  flex: 1;
  min-width: 0;
}

/* Unlocked chrome: primary CTAs use FileRelay lime (brand), not semantic money green */
body.decision-center-page .button-primary,
body.decision-center-page .btn.primary,
body.decision-center-page a.button.button-primary,
body.decision-center-page #dc-access-root .button-primary {
  background: var(--accent-lime, #84cc16);
  border-color: var(--accent-lime, #84cc16);
  color: #0f0d09;
}

body.decision-center-page .button-primary:hover,
body.decision-center-page .btn.primary:hover,
body.decision-center-page a.button.button-primary:hover,
body.decision-center-page #dc-access-root .button-primary:hover {
  opacity: 0.9;
  background: var(--accent-lime, #84cc16);
  color: #0f0d09;
}

/* Readiness / guide chrome accents when unlocked */
body.dc-app-unlocked .progress-fill {
  background: linear-gradient(
    90deg,
    #65a30d 0%,
    var(--accent-lime, #84cc16) 55%,
    var(--accent-gold, #fbbf24) 100%
  );
}

body.dc-app-unlocked .answer-option input:checked + span {
  border-color: var(--accent-lime, #84cc16);
  background: rgba(132, 204, 22, 0.1);
  box-shadow: 0 8px 22px rgba(101, 163, 13, 0.12);
}

body.dc-app-unlocked .answer-option input:checked + span::before {
  background: var(--accent-lime, #84cc16);
  border-color: var(--accent-lime, #84cc16);
}

body.dc-app-unlocked .callout {
  border-left-color: var(--accent-lime, #84cc16);
}

body.dc-app-unlocked .info-button:hover {
  background: #3f6212;
}

/* Property Review selected chrome */
body.dc-app-unlocked .pr-mobile-tabs button[aria-selected='true'],
body.dc-app-unlocked .pr-section-nav a[aria-current='true'],
body.dc-app-unlocked .pr-section-nav a.is-current {
  color: #3f6212;
  border-color: var(--accent-lime, #84cc16);
}

body.dc-app-unlocked .pr-mobile-tabs button[aria-selected='true'] {
  box-shadow: inset 0 -2px 0 var(--accent-lime, #84cc16);
}

/* Access gate sample / accents on DC pages */
body.decision-center-page .dc-access-sample {
  border-color: rgba(132, 204, 22, 0.4);
  background: rgba(132, 204, 22, 0.06);
}

body.decision-center-page .dc-tool-start-cta .btn.primary {
  box-shadow: 0 10px 24px rgba(132, 204, 22, 0.22);
}

.dc-locked-intro {
  padding: 1.75rem 0 0.5rem;
}

body.dc-app-unlocked .dc-locked-intro {
  display: none;
}

.dc-locked-intro .dc-locked-lead {
  max-width: 40rem;
  color: var(--dc-shell-muted);
  margin: 0.65rem 0 0;
}

.dc-locked-intro h1 {
  margin: 0;
  font-size: clamp(1.55rem, 2.4vw, 2rem);
  line-height: 1.2;
}

/* —— About panel (SEO preserved; unlocked = slide-over) —— */
.dc-about-panel {
  margin: 1.5rem 0 2.5rem;
  border: 1px solid var(--dc-shell-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.65);
  overflow: hidden;
}

.dc-about-panel > summary {
  cursor: pointer;
  list-style: none;
  padding: 0.95rem 1.15rem;
  font-weight: 700;
  color: #3f6212;
  background: rgba(132, 204, 22, 0.1);
}

.dc-about-panel > summary::-webkit-details-marker {
  display: none;
}

.dc-about-panel > summary::after {
  content: 'Show';
  float: right;
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--dc-shell-muted);
}

.dc-about-panel[open] > summary::after {
  content: 'Hide';
}

.dc-about-panel-body {
  padding: 0.5rem 0 1rem;
}

.dc-about-drawer-backdrop,
.dc-about-drawer-bar {
  display: none;
}

body.dc-app-unlocked .dc-about-panel .resource-hero .de-hero-start-actions {
  display: none;
}

/* Unlocked closed: keep SEO in DOM, remove from work surface */
body.dc-app-unlocked .dc-about-panel:not([open]) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  pointer-events: none;
}

/* Unlocked open: right slide-over */
body.dc-app-unlocked .dc-about-panel[open] {
  position: fixed;
  inset: 0;
  z-index: 90;
  margin: 0;
  padding: 0;
  width: auto;
  height: auto;
  clip: auto;
  overflow: hidden;
  white-space: normal;
  border: 0;
  border-radius: 0;
  background: transparent;
  display: flex;
  justify-content: flex-end;
  align-items: stretch;
  pointer-events: auto;
}

body.dc-app-unlocked .dc-about-panel[open] > summary {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body.dc-app-unlocked .dc-about-panel[open] > .dc-about-drawer-backdrop {
  display: block;
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  margin: 0;
  background: rgba(23, 32, 26, 0.42);
  cursor: pointer;
}

body.dc-app-unlocked .dc-about-panel[open] > .dc-about-panel-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(36rem, 100%);
  max-width: 100%;
  height: 100%;
  margin: 0;
  padding: 0 0 2rem;
  overflow: auto;
  overscroll-behavior: contain;
  background: #f6f4ee;
  box-shadow: -16px 0 48px rgba(23, 32, 26, 0.2);
  animation: dc-about-slide-in 0.22s ease-out;
}

body.dc-app-unlocked .dc-about-panel[open] .dc-about-drawer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  position: sticky;
  top: 0;
  z-index: 2;
  margin: 0 0 0.5rem;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--dc-shell-line);
  background: rgba(246, 244, 238, 0.96);
  backdrop-filter: blur(8px);
}

.dc-about-drawer-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dc-shell-ink);
}

@keyframes dc-about-slide-in {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.dc-app-unlocked .dc-about-panel[open] > .dc-about-panel-body {
    animation: none;
  }
}

/* Hide full site chrome when unlocked (Option C) */
body.dc-app-unlocked #site-header,
body.dc-app-unlocked #site-footer {
  display: none !important;
}

/* —— Bottom nav (mobile, unlocked) —— */
.dc-bottom-nav {
  display: none;
  position: sticky;
  bottom: 0;
  z-index: 35;
  background: rgba(255, 255, 255, 0.94);
  border-top: 1px solid var(--dc-shell-line);
  padding: 0.35rem 0.4rem calc(0.35rem + env(safe-area-inset-bottom, 0px));
  backdrop-filter: blur(10px);
  justify-content: space-around;
  gap: 0.25rem;
}

body.dc-app-unlocked .dc-bottom-nav {
  display: flex;
}

.dc-bottom-nav-link {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  text-align: center;
  text-decoration: none;
  color: var(--dc-shell-muted);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.45rem 0.35rem;
  border-radius: 10px;
}

.dc-bottom-nav-link .dc-tool-icon {
  margin: 0;
  color: inherit;
}

.dc-bottom-nav-link.is-current,
.dc-bottom-nav-link[aria-current='page'] {
  color: #3f6212;
  background: rgba(132, 204, 22, 0.14);
}

/* —— Overflow menu —— */
.dc-overflow-menu {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(23, 32, 26, 0.42);
  display: flex;
  justify-content: flex-end;
}

.dc-overflow-menu[hidden] {
  display: none !important;
}

.dc-overflow-panel {
  width: min(20rem, 92vw);
  height: 100%;
  background: var(--dc-shell-surface);
  padding: 1rem 1rem 2rem;
  overflow: auto;
  box-shadow: -12px 0 40px rgba(23, 32, 26, 0.18);
}

.dc-overflow-close {
  appearance: none;
  border: 1px solid var(--dc-shell-line);
  background: transparent;
  border-radius: 8px;
  padding: 0.4rem 0.75rem;
  margin-bottom: 0.75rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

/* —— Workspace padding under shell —— */
body.dc-app-unlocked #main-content > .de-section,
body.dc-app-unlocked #main-content > .dc-locked-intro,
body.dc-app-unlocked .dc-app-workspace > #main-content > .de-section {
  padding-top: 0.65rem;
}

body.dc-app-unlocked #calc-interactive > .container,
body.dc-app-unlocked #pr-interactive > .container,
body.dc-app-unlocked #assessment-shell,
body.dc-app-unlocked #app-main {
  max-width: none;
}

/* Drop duplicate in-page title/lead once the sticky header owns the tool name */
body.dc-app-unlocked .dc-workspace-lead > h2,
body.dc-app-unlocked .dc-workspace-lead > p {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body.dc-app-unlocked .dc-workspace-lead {
  padding-bottom: 0 !important;
  margin: 0;
  min-height: 0;
}

/* Compact tool utility rows (no second title card) */
body.dc-app-unlocked .calc-utility-bar,
body.dc-app-unlocked .pr-utility-bar,
body.dc-app-unlocked .guide-utility-bar,
body.dc-app-unlocked [data-dc-utility-bar] {
  margin-bottom: 0.65rem;
  padding: 0.15rem 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  justify-content: flex-end;
}

body.dc-app-unlocked .calc-utility-label,
body.dc-app-unlocked .guide-utility-label {
  display: none;
}

body.dc-app-unlocked #calc-interactive {
  padding-block: 0.75rem 1.5rem;
  scroll-margin-top: var(--dc-shell-sticky-offset);
}

/* Sticky planner results stay in view while scrolling inputs */
@media (min-width: 980px) {
  body.dc-app-unlocked .calc-results-column {
    position: sticky;
    top: var(--dc-shell-sticky-offset);
    max-height: calc(100vh - var(--dc-shell-sticky-offset) - 1rem);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 0.15rem;
  }
}

/* Knowledge open mode: keep article readable inside column */
body.dc-app-unlocked[data-dc-tool='knowledge'] .knowledge-library .resource-hero,
body.dc-app-unlocked[data-dc-tool='knowledge'] .decision-seo .resource-hero {
  padding-top: 1.25rem;
}

body.dc-app-unlocked[data-dc-tool='knowledge'] .breadcrumbs {
  display: none;
}

/* —— Responsive —— */
@media (max-width: 979px) {
  body.dc-app-unlocked .dc-section-rail {
    display: none;
  }

  body.dc-app-unlocked .dc-menu-toggle {
    display: inline-flex;
  }

  body.dc-app-unlocked .dc-app-header [data-dc-about-open] {
    display: none;
  }

  body.dc-app-unlocked .dc-app {
    padding-bottom: var(--dc-shell-bottom-height);
  }

  body.dc-app-unlocked .dc-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
  }

  .dc-app-title {
    font-size: 1.02rem;
    max-width: 14rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  body.dc-app-unlocked .dc-app-header {
    flex-wrap: wrap;
  }

  body.dc-app-unlocked .dc-app-header-property {
    order: 3;
    flex: 1 1 100%;
    justify-content: flex-start;
    padding: 0.2rem 0 0;
  }

  body.dc-app-unlocked .dc-property-chip-kicker {
    display: none;
  }
}

@media (min-width: 980px) {
  body.dc-app-unlocked .dc-bottom-nav {
    display: none;
  }

  body.dc-app-unlocked .dc-menu-toggle {
    display: none;
  }
}

/* —— Print: strip all shell chrome —— */
@media print {
  .dc-identity-strip,
  .dc-section-rail,
  .dc-app-header,
  .dc-app-status,
  .dc-bottom-nav,
  .dc-overflow-menu,
  .dc-about-panel,
  .dc-app-header-property,
  .dc-locked-intro,
  #site-header,
  #site-footer,
  #dc-access-root {
    display: none !important;
  }

  .dc-app,
  .dc-app-frame,
  .dc-app-column,
  .dc-app-workspace {
    display: block !important;
    min-height: 0 !important;
  }

  body.dc-app-unlocked {
    background: #fff !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dc-about-panel,
  .dc-overflow-panel {
    scroll-behavior: auto;
  }
}
