/* BW-36.21A: Home-only presentation; legacy lifecycle DOM remains mounted. */
#dashboard-view.home-foundation-page .mission-control > :not(#home-foundation) { display: none !important; }
#dashboard-view.home-foundation-page { padding: clamp(16px, 3vw, 48px); }
#home-foundation { --home-accent: var(--fk-color-primary-action, #7257e8); --home-ink: var(--fk-color-text-link, #5735df); width: 100%; max-width: 1200px; margin: 0 auto; color: var(--fk-color-text-primary, var(--fk-text)); }
#home-foundation, #home-foundation * { box-sizing: border-box; min-width: 0; }
#home-foundation h1, #home-foundation h2, #home-foundation h3, #home-foundation p { overflow-wrap: anywhere; }
#home-foundation h1 { margin: 12px 0; font-size: clamp(1.8rem, 3.2vw, 3.25rem); line-height: 1.12; letter-spacing: -.045em; font-weight: 750; }
#home-foundation h2 { margin: 0; font-size: 1.4rem; letter-spacing: -.025em; }
#home-foundation h3 { margin: 0; font-size: 1.12rem; line-height: 1.45; }
#home-foundation p { line-height: 1.65; }
#home-foundation .home-hero { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 24px; padding: clamp(24px, 4vw, 48px); border: 1px solid var(--fk-color-border-subtle, var(--fk-border)); border-radius: 28px; background: linear-gradient(120deg, color-mix(in srgb, var(--home-accent) 9%, var(--fk-color-surface-elevated, var(--fk-surface))), var(--fk-color-surface-elevated, var(--fk-surface))); }
#home-foundation .home-hero-copy { grid-column: -2 / -1; }
#home-foundation .home-eyebrow { color: var(--home-ink); font-size: .7rem; font-weight: 800; letter-spacing: .12em; }
#home-foundation .home-intro { margin: 0; max-width: 56ch; color: var(--fk-color-text-secondary, var(--fk-text-muted)); font-size: 1rem; }
#home-foundation .home-identity { display: inline-grid; position: relative; flex-shrink: 0; place-items: center; width: 44px; height: 44px; border-radius: 14px; overflow: hidden; background: color-mix(in srgb, var(--home-accent) 10%, var(--fk-color-surface-elevated, var(--fk-surface))); color: var(--home-ink); font-weight: 800; }
#home-foundation .home-identity img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: var(--fk-color-surface-elevated, var(--fk-surface)); }
#home-foundation .home-hero > .home-identity { width: 80px; height: 80px; border-radius: 24px; font-size: 1.7rem; border: 1px solid color-mix(in srgb, var(--home-accent) 16%, transparent); }
#home-foundation .home-context { display: flex; align-items: center; gap: 12px; margin: 20px 0 36px; color: var(--fk-color-text-secondary, var(--fk-text-muted)); font-size: .85rem; }
#home-foundation select { max-width: min(460px, 100%); min-height: 44px; padding: 10px 32px 10px 12px; border: 1px solid var(--fk-color-border-control, var(--fk-border)); border-radius: 10px; color: var(--fk-color-text-primary, var(--fk-text)); background: var(--fk-color-surface-elevated, var(--fk-surface)); font: inherit; }
#home-foundation .home-section-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin: 0 0 18px; }
#home-foundation .home-section-heading > p, #home-foundation .home-note { color: var(--fk-color-text-secondary, var(--fk-text-muted)); font-size: .8rem; margin: 8px 0 16px; line-height: 1.6; }
#home-foundation .home-brand-list, #home-foundation .home-board-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); list-style: none; margin: 0; padding: 0; gap: 16px; }
#home-foundation .home-brand-card { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 12px; border: 1px solid var(--fk-color-border-subtle, var(--fk-border)); border-radius: 18px; background: var(--fk-color-surface-elevated, var(--fk-surface)); }
#home-foundation .home-brand-card.is-selected { border-color: var(--home-ink); background: color-mix(in srgb, var(--home-accent) 4%, var(--fk-color-surface-elevated, var(--fk-surface))); }
#home-foundation .home-brand-pick { display: flex; align-items: center; gap: 12px; flex: 1 1 140px; padding: 0; min-height: 44px; color: inherit; border: 0; background: transparent; text-align: start; font: inherit; font-weight: 700; overflow-wrap: anywhere; cursor: pointer; }
#home-foundation .home-brand-pick:disabled { cursor: default; opacity: 1; }
#home-foundation .home-brand-card .fk-btn { font-size: .75rem; }
#home-foundation .home-continue { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--fk-color-border-subtle, var(--fk-border)); }
#home-foundation .home-actions, #home-foundation .home-filters { display: flex; flex-wrap: wrap; gap: 8px; }
#home-foundation .home-filters { margin-bottom: 14px; }
#home-foundation .home-filters [aria-pressed=true] { color: var(--home-ink); border-color: var(--home-ink); background: color-mix(in srgb, var(--home-accent) 9%, var(--fk-color-surface-elevated, var(--fk-surface))); }
#home-foundation .home-board-card { display: flex; flex-direction: column; align-items: flex-start; padding: 24px; border: 1px solid var(--fk-color-border-subtle, var(--fk-border)); border-radius: 22px; background: var(--fk-color-surface-elevated, var(--fk-surface)); box-shadow: 0 4px 18px color-mix(in srgb, var(--fk-color-text-primary, #191526) 3%, transparent); transition: border-color .18s ease, box-shadow .18s ease; }
#home-foundation .home-board-card:hover { border-color: color-mix(in srgb, var(--home-accent) 50%, var(--fk-border)); box-shadow: 0 8px 28px color-mix(in srgb, var(--home-accent) 8%, transparent); }
#home-foundation .home-board-card.is-current { border-color: var(--home-ink); }
#home-foundation .home-board-mark { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
#home-foundation .home-board-brand { margin: 8px 0; font-size: .9rem; color: var(--fk-color-text-secondary, var(--fk-text-muted)); }
#home-foundation .home-board-date { margin: 0 0 24px; font-size: .75rem; color: var(--fk-color-text-secondary, var(--fk-text-muted)); }
#home-foundation .home-board-open { width: 100%; margin-top: auto; justify-content: center; }
#home-foundation .home-empty { width: 100%; padding: clamp(24px, 4vw, 40px); border: 1px dashed var(--fk-color-border-control, var(--fk-border)); border-radius: 22px; background: var(--fk-color-surface-elevated, var(--fk-surface)); }
#home-foundation .home-empty p { max-width: 60ch; color: var(--fk-color-text-secondary, var(--fk-text-muted)); }
#home-foundation .fk-btn { min-height: 44px; white-space: normal; overflow-wrap: anywhere; }
#home-foundation :is(button, select):focus-visible { outline: 3px solid var(--fk-color-focus-ring, var(--home-accent)); outline-offset: 4px; }
@media (max-width: 600px) {
  #home-foundation .home-hero { grid-template-columns: minmax(0, 1fr); gap: 20px; border-radius: 22px; }
  #home-foundation .home-hero-copy { grid-column: 1; }
  #home-foundation .home-hero > .home-identity { width: 56px; height: 56px; border-radius: 18px; }
  #home-foundation .home-context { flex-direction: column; align-items: stretch; gap: 6px; margin-bottom: 28px; }
  #home-foundation select { width: 100%; max-width: 100%; }
  #home-foundation .home-actions { width: 100%; }
  #home-foundation .home-actions > button { flex: 1 1 140px; }
  #home-foundation .home-board-card { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) { #home-foundation * { transition: none !important; animation: none !important; } }

/* R2.3: context information uses the same calm treatment on Home and Canvas. */
.brand-board-context-notice[hidden] { display: none; }
.brand-board-context-notice { margin: 16px; padding: 14px 18px; border: 1px solid var(--fk-color-border-subtle, var(--fk-border)); border-radius: 16px; background: var(--fk-color-surface-elevated, var(--fk-surface)); color: var(--fk-color-text-primary, var(--fk-text)); max-width: 100%; min-width: 0; overflow-wrap: anywhere; }
#home-foundation .brand-board-context-notice { margin: 24px 0 0; }
.brand-board-context-notice p { margin: 0 0 4px; font-size: .875rem; line-height: 1.5; }
.brand-board-context-notice > span { color: var(--fk-color-text-secondary, var(--fk-text-muted)); font-size: .8rem; }
.brand-board-context-notice > div { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.brand-board-context-notice button { min-height: 44px; white-space: normal; text-align: start; }
.brand-board-context-notice button:focus-visible { outline: 3px solid var(--fk-color-focus-ring, #7257e8); outline-offset: 3px; }
#home-foundation .home-board-group-heading { grid-column: 1 / -1; list-style: none; padding-top: 12px; color: var(--fk-color-text-secondary, var(--fk-text-muted)); }
#home-foundation .home-board-group-heading h3 { font-size: .85rem; }
#home-foundation .home-board-group { font-size: .75rem; color: var(--home-ink); }
@media (max-width: 600px) { .brand-board-context-notice { margin: 8px; padding: 12px; } .brand-board-context-notice button { flex: 1 1 180px; } }

/* B1: separate selected-Brand knowledge and loaded-Board work scopes. */
#home-foundation .home-intelligence { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 32px; }
#home-foundation .home-intelligence-card { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(20px, 3vw, 28px); border: 1px solid var(--fk-color-border-subtle, var(--fk-border)); border-radius: 22px; background: var(--fk-color-surface-elevated, var(--fk-surface)); }
#home-foundation .home-intelligence-card h2 { font-size: 1.2rem; }
#home-foundation .home-module-identity { display: flex; align-items: center; gap: 12px; }
#home-foundation .home-module-counts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; width: 100%; margin: 24px 0 12px; padding-top: 20px; border-top: 1px solid var(--fk-color-border-subtle, var(--fk-border)); }
#home-foundation .home-module-counts dt { color: var(--fk-color-text-secondary, var(--fk-text-muted)); font-size: .8rem; overflow-wrap: anywhere; }
#home-foundation .home-module-counts dd { margin: 8px 0 0; color: var(--home-ink); font-size: clamp(1.2rem, 2vw, 1.8rem); font-weight: 700; overflow-wrap: anywhere; }
#home-foundation .home-intelligence-card > .fk-btn { margin-top: auto; width: 100%; justify-content: center; }
#home-foundation .home-responsibility-list { list-style: none; padding: 0; margin: 8px 0 20px; width: 100%; }
#home-foundation .home-responsibility-list li { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 16px; padding: 10px 0; border-top: 1px solid var(--fk-color-border-subtle, var(--fk-border)); overflow-wrap: anywhere; }
#home-foundation .home-responsibility-list .home-note { margin: 0; }
@media (max-width: 800px) { #home-foundation .home-intelligence { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 400px) {
  #home-foundation .home-module-counts { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  #home-foundation .home-module-counts > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
  #home-foundation .home-module-counts dd { margin: 0; }
}

#home-foundation .home-responsibility-open { min-height: 44px; padding: 4px 0; border: 0; background: transparent; color: var(--fk-color-text-primary, var(--fk-text)); font: inherit; font-weight: 700; text-align: start; overflow-wrap: anywhere; cursor: pointer; }
#home-foundation .home-responsibility-open:hover { color: var(--home-ink); text-decoration: underline; }

/* B2: current-Board evidence and an explicit, user-initiated Brain entry. */
#home-foundation .home-board-intelligence { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 20px; align-items: start; }
#home-foundation .home-board-intelligence .home-intelligence-card { width: 100%; min-width: 0; }
#home-foundation .home-insights-list { list-style: none; padding: 0; margin: 0 0 20px; width: 100%; }
#home-foundation .home-insights-list li { padding: 16px 0; border-top: 1px solid var(--fk-color-border-subtle, var(--fk-border)); }
#home-foundation .home-insights-list h4 { margin: 6px 0; font-size: .95rem; }
#home-foundation .home-insights-list p { margin: 0 0 8px; font-size: .85rem; line-height: 1.6; color: var(--fk-color-text-secondary, var(--fk-text-muted)); }
#home-foundation .home-finding-severity { font-size: .75rem; font-weight: 700; color: var(--home-ink); }
#home-foundation .home-insights-list .fk-btn { font-size: .8rem; }
#home-foundation .home-brain-card { background: color-mix(in srgb, var(--home-accent) 5%, var(--fk-color-surface-elevated, var(--fk-surface))); }
#home-foundation .home-brain-card > p:not(.home-note) { line-height: 1.6; }

@media (max-width: 800px) { #home-foundation .home-board-intelligence { grid-template-columns: minmax(0, 1fr); } }

/* BW-36.22A: one reading order, compact orientation and saved work first. */
#dashboard-view.home-foundation-page .mission-control { max-width: 1200px; width: 100%; }
#home-foundation { container-type: inline-size; }
#home-foundation h1 { margin: 0; font-size: 1.625rem; line-height: 1.25; letter-spacing: -.03em; }
#home-foundation h2 { font-size: 1.2rem; line-height: 1.35; }
#home-foundation .home-hero { grid-template-columns: 44px minmax(0, 1fr) minmax(0, 1fr); gap: 8px 16px; padding: 14px; border-radius: 20px; background: var(--fk-color-surface-elevated, var(--fk-surface)); }
#home-foundation .home-hero > .home-identity { width: 44px; height: 44px; border-radius: 12px; font-size: 1.2rem; }
#home-foundation .home-hero-copy { grid-column: 2; }
#home-foundation .home-eyebrow { font-size: .65rem; letter-spacing: .06em; }
#home-foundation .home-context { grid-column: 3; margin: 0; flex-wrap: wrap; gap: 4px 8px; }
#home-foundation .home-context label { flex-basis: 100%; }
#home-foundation .home-context select { flex: 1 1 120px; width: 100%; }
#home-foundation .home-context button { font-size: .75rem; }
#home-foundation .home-brand-controls { grid-column: 1 / 3; display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; font-size: .8rem; }
#home-foundation .home-brand-controls select { flex: 1 1 140px; width: 100%; }
#home-foundation .home-brand-controls label { flex-basis: 100%; }
#home-foundation .home-open-board { display: flex; align-items: center; gap: 8px; grid-column: 3; font-size: .8rem; }
#home-foundation .home-open-board p { flex: 1; margin: 0; line-height: 1.45; }
#home-foundation .home-open-board button { flex-shrink: 0; max-width: 55%; }
#home-foundation .brand-board-context-notice { margin-top: 8px; padding: 8px 12px; }
#home-foundation .brand-board-context-notice > div { margin-top: 6px; }
#home-foundation .brand-board-context-notice button { padding-block: 6px; font-size: .8rem; }
#home-foundation .home-next-moves { margin-top: 10px; }
#home-foundation .home-next-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); list-style: none; padding: 0; margin: 10px 0 0; gap: 8px; }
#home-foundation .home-next-list button { width: 100%; height: 100%; text-align: start; justify-content: flex-start; padding: 10px 12px; font-size: .85rem; border-color: var(--fk-color-border-control, var(--fk-border)); background: var(--fk-color-surface-elevated, var(--fk-surface)); }
#home-foundation .home-next-moves > .home-note { margin: 8px 0 0; }
#home-foundation a { color: var(--home-ink); text-underline-offset: 3px; }
#home-foundation .home-continue { margin-top: 16px; padding-top: 16px; }
#home-foundation .home-section-heading { margin-bottom: 10px; gap: 8px; }
#home-foundation .home-filters { margin-bottom: 8px; }
#home-foundation .home-board-list { gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
#home-foundation .home-board-card { position: relative; display: grid; grid-template-columns: 32px minmax(0, 1fr); align-content: start; gap: 8px 12px; padding: 16px; border-radius: 16px; }
#home-foundation .home-board-card h3 { grid-column: 2; grid-row: 1; align-self: center; font-size: 1rem; }
#home-foundation .home-board-mark { display: contents; }
#home-foundation .home-board-mark .home-identity { width: 32px; height: 32px; border-radius: 10px; grid-column: 1; grid-row: 1; }
#home-foundation .home-board-card > :not(h3, .home-board-mark) { grid-column: 1 / -1; }
#home-foundation .home-board-brand, #home-foundation .home-board-date, #home-foundation .home-board-card .home-note { margin: 0; line-height: 1.45; }
#home-foundation .home-board-group-heading { padding-top: 0; }
#home-foundation .home-preview-controls { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 12px; }
#home-foundation .home-preview-controls .home-note { margin: 0; }
#home-foundation .home-intelligence { margin-top: 24px; align-items: start; }
#home-foundation .home-brands { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--fk-color-border-default, var(--fk-border)); }
#home-foundation :is(button, select, a, [tabindex]) { scroll-margin-block: 24px var(--home-overlay-clearance, 140px); }
#home-foundation a:focus-visible { outline: 3px solid var(--fk-color-focus-ring, var(--home-accent)); outline-offset: 3px; }
@container (max-width: 850px) {
  #home-foundation .home-hero { grid-template-columns: 44px minmax(0, 1fr); }
  #home-foundation .home-context, #home-foundation .home-brand-controls, #home-foundation .home-open-board { grid-column: 1 / -1; }
  #home-foundation .home-context label, #home-foundation .home-brand-controls label { flex-basis: auto; }
}
@media (max-width: 767px) {
  #dashboard-view.home-foundation-page { padding-bottom: calc(var(--home-overlay-clearance, 140px) + env(safe-area-inset-bottom, 0px)); scroll-padding-bottom: var(--home-overlay-clearance, 140px); }
  #home-foundation .home-context { flex-direction: row; align-items: center; }
  #home-foundation .home-context select, #home-foundation .home-brand-controls select { flex: 1 1 100%; }
  #home-foundation .home-open-board { flex-wrap: wrap; }
  #home-foundation .home-open-board p { flex-basis: 100%; }
  #home-foundation .home-open-board button { max-width: 100%; }
  #home-foundation .home-board-list, #home-foundation .home-next-list { grid-template-columns: minmax(0, 1fr); }
}
@media (forced-colors: active) {
  #home-foundation :is(.home-hero, .home-board-card, .home-brand-card) { border-color: CanvasText; }
  #home-foundation :is(.is-current, .is-selected, [aria-pressed=true]) { outline: 2px solid Highlight; }
}
@container (min-width: 851px) {
  #home-foundation .home-context label { flex-basis: auto; }
  #home-foundation .home-context select { width: auto; flex-basis: 120px; }
}
#home-foundation .home-selected-brand { overflow-wrap: anywhere; }
@container (min-width: 851px) {
  #home-foundation .home-brand-controls label { flex-basis: auto; }
  #home-foundation .home-brand-controls select { width: auto; flex-basis: 120px; }
}
#home-foundation .brand-board-context-notice p { margin: 0; line-height: 1.45; }
#home-foundation .brand-board-context-notice p > span { font-size: inherit; }
@container (max-width: 959px) { #home-foundation .home-board-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container (max-width: 639px) { #home-foundation .home-board-list { grid-template-columns: minmax(0, 1fr); } }
#home-foundation .home-continue .home-filters { margin: 0; }
#home-foundation .home-continue > .home-note { margin: 8px 0 12px; }
@media (max-width: 767px) {
  /* These two boxes define Home's safe scroll area. Never interpolate their
     layout, including the global reduced-motion rule's nonzero duration. */
  #dashboard-view.home-foundation-page,
  .app-shell[data-active-view="home"] .sidebar > .workspace-context {
    transition-property: background-color, border-color, color, box-shadow;
  }
  #dashboard-view.home-foundation-page { max-height: var(--home-scroll-height, 100%); }
  #home-foundation .home-hero { grid-template-columns: 40px minmax(0, 1fr); gap: 8px 12px; padding: 12px; }
  #home-foundation h1 { font-size: 1.5rem; }
  #home-foundation .home-hero .fk-btn { font-size: .75rem; padding-inline: 10px; }
}

/* BW-36.22B1: Living Workspace. The shell and detailed modules keep their owners.
   All expressive color is resolved-Light only; Dark uses existing semantic tokens. */
#dashboard-view.home-foundation-page .mission-control, #home-foundation { max-width: 1440px; }
#dashboard-view.home-foundation-page { padding: 24px clamp(16px, 3vw, 48px) 48px; }
:root[data-theme="light"] #dashboard-view.home-foundation-page {
  background: radial-gradient(ellipse at 72% 20%, #e3faff99, transparent 38%), radial-gradient(ellipse at 10% 8%, #eae4ffbb, transparent 46%), linear-gradient(145deg, #f9f8ff, #f5f6fc);
}
#home-foundation .home-hero { grid-template-columns: 44px minmax(120px, .8fr) minmax(0, 1fr); padding: 0 0 20px; border: 0; border-bottom: 1px solid var(--fk-color-border-default, var(--fk-border)); border-radius: 0; background: transparent; gap: 6px 14px; }
#home-foundation .home-workspace-name { margin: 0; font-size: 1.1rem; font-weight: 750; line-height: 1.35; }
#home-foundation .home-hero-copy { grid-column: 2; }
#home-foundation .home-context { grid-column: 1 / 3; grid-row: 2; }
#home-foundation .home-brand-controls { grid-column: 3; grid-row: 1 / 3; justify-content: flex-end; }
#home-foundation .home-brand-controls label { flex-basis: 100%; }
#home-foundation .home-brand-controls select { flex: 1 1 160px; max-width: 320px; }
#home-foundation .home-living { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 32px; padding-top: 34px; }
#home-foundation .home-living-greeting { padding: 0 8px 24px; }
#home-foundation .home-living-greeting .home-eyebrow { font-size: .8rem; letter-spacing: .07em; }
#home-foundation .home-living h1 { margin: 10px 0 8px; font-size: clamp(2.5rem, 4.3cqi, 4rem); line-height: 1.05; font-weight: 800; letter-spacing: -.045em; }
#home-foundation .home-living-subtitle { margin: 0; font-size: clamp(1rem, 1.6cqi, 1.4rem); color: var(--fk-color-text-secondary, var(--fk-text-muted)); line-height: 1.45; }
#home-foundation .home-living-continue { padding: 22px; border-radius: 20px; background: var(--fk-color-surface-elevated, var(--fk-surface)); border: 1px solid var(--fk-color-border-default, var(--fk-border)); box-shadow: var(--fk-shadow-card); }
#home-foundation .home-living-continue h2 { font-size: 1.25rem; }
#home-foundation .home-living-board { display: flex; align-items: center; gap: 18px; margin: 20px 0; }
#home-foundation .home-living-board .home-identity { width: 72px; height: 72px; border-radius: 18px; font-size: 1.75rem; }
#home-foundation .home-living-board h3 { font-size: 1.15rem; line-height: 1.35; }
#home-foundation .home-living-scope { margin: 3px 0 6px; color: var(--fk-color-text-secondary, var(--fk-text-muted)); font-size: .9rem; line-height: 1.4; }
#home-foundation .home-living-kind { display: inline-block; font-size: .75rem; font-weight: 650; color: var(--home-ink); }
#home-foundation .home-living-resume { display: flex; align-items: stretch; gap: 14px; flex-wrap: wrap; }
#home-foundation .home-living-saved { display: flex; flex: 1 1 160px; flex-direction: column; justify-content: center; margin: 0; padding: 12px 14px; border-radius: 14px; background: var(--fk-color-surface-card, var(--fk-surface)); color: var(--fk-color-text-secondary, var(--fk-text-muted)); font-size: .75rem; line-height: 1.5; }
#home-foundation .home-living-resume .fk-btn { flex: 1 1 160px; justify-content: center; gap: 14px; font-size: .9rem; border-radius: 14px; }
#home-foundation .home-living-label { min-width: 0; overflow-wrap: anywhere; }
#home-foundation .home-living-arrow { flex: 0 0 auto; margin-inline-start: 8px; font-size: 1.4em; }
#home-foundation .home-living-signals { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 18px 0 0; list-style: none; }
#home-foundation .home-living-signals > li { flex: 1 1 180px; min-width: 0; }
#home-foundation .home-signal { display: flex; flex-direction: column; gap: 5px; width: 100%; min-height: 44px; height: 100%; padding: 10px 12px; border: 1px solid var(--fk-color-border-control, var(--fk-border)); border-radius: 18px; background: var(--fk-color-surface-elevated, var(--fk-surface)); color: var(--fk-color-text-primary, var(--fk-text)); font: inherit; text-align: start; cursor: pointer; overflow-wrap: anywhere; }
#home-foundation .home-signal strong { font-size: .85rem; line-height: 1.4; }
#home-foundation .home-signal span { font-size: .75rem; line-height: 1.5; color: var(--fk-color-text-secondary, var(--fk-text-muted)); }
#home-foundation .home-signal { transform: none; transition: none; }
#home-foundation .home-signal:hover { border-color: var(--home-ink); }
#home-foundation .home-profile-next { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; margin-top: 14px; padding: 14px 16px; border: 1px solid var(--fk-color-border-default, var(--fk-border)); border-radius: 18px; background: var(--fk-color-surface-elevated, var(--fk-surface)); }
#home-foundation .home-profile-next h2 { margin: 0; font-size: .9rem; }
#home-foundation .home-profile-next p { grid-column: 1; margin: 0; font-size: .85rem; line-height: 1.5; color: var(--fk-color-text-secondary, var(--fk-text-muted)); }
#home-foundation .home-profile-next .fk-btn { grid-column: 2; grid-row: 1 / span 2; align-self: center; min-height: 44px; max-width: 180px; white-space: normal; }
:root[data-theme="light"] #home-foundation [data-signal-source="learning"] .home-signal { background: #edf8f2; border-color: #b6d9c7; }
:root[data-theme="light"] #home-foundation [data-signal-source="diagnostic"] .home-signal { background: #f4f0ff; border-color: #d7c9f4; }
:root[data-theme="light"] #home-foundation .home-profile-next { background: #ffffffed; }
@container (max-width: 520px) {
  #home-foundation .home-living-signals { flex-direction: column; }
  #home-foundation .home-living-signals > li { flex-basis: auto; }
  #home-foundation .home-profile-next { grid-template-columns: minmax(0, 1fr); }
  #home-foundation .home-profile-next .fk-btn { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 6px; }
}
@container (min-width: 901px) {
  #home-foundation .home-living { padding-top: 28px; }
  #home-foundation .home-living-greeting { padding-bottom: 8px; }
  #home-foundation .home-living-continue { padding: 16px; }
  #home-foundation .home-living-board { margin-block: 12px; }
  #home-foundation .home-living-signals { margin-top: 14px; }
  #home-foundation .home-profile-next { padding-block: 12px; }
  #home-foundation .home-quick-list .home-quick-action { padding: 12px 14px; gap: 12px; }
}
@media (forced-colors: active) {
  #home-foundation :is(.home-signal, .home-profile-next) { border: 1px solid CanvasText; }
}
#home-foundation .home-avatar-stage { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; min-height: 420px; padding: 0 20px; }
#home-foundation .home-avatar-art { position: absolute; z-index: -1; inset: 0; pointer-events: none; overflow: hidden; border-radius: 42%; }
#home-foundation .home-avatar-orbit { position: absolute; top: 50%; left: 50%; width: 70%; aspect-ratio: 1; border: 2px solid var(--fk-color-border-default, var(--fk-border)); border-radius: 50%; transform: translate(-50%, -50%) rotate(-28deg) scaleY(.8); }
#home-foundation .home-avatar-orbit-back { width: 60%; transform: translate(-50%, -50%) rotate(32deg) scaleY(.8); }
#home-foundation .home-avatar-spark { position: absolute; color: var(--home-ink); font-size: 2.3rem; }
#home-foundation .home-avatar-spark-one { top: 9%; left: 9%; }
#home-foundation .home-avatar-spark-two { top: 53%; right: 1%; font-size: 1.6rem; }
#home-foundation .home-avatar-spark-three { bottom: 16%; left: 5%; transform: rotate(-35deg); }
#home-foundation .home-avatar-bubble { position: relative; justify-self: end; width: min(250px, 70%); margin: 0; padding: 20px 24px; border: 1.5px solid var(--fk-color-border-control, var(--fk-border)); border-radius: 36px 40px 34px 12px; background: var(--fk-color-surface-elevated, var(--fk-surface)); color: var(--fk-color-text-primary, var(--fk-text)); font-size: 1.05rem; font-weight: 650; line-height: 1.45; box-shadow: var(--fk-shadow-card); }
#home-foundation .home-avatar-bubble::after { content: ''; position: absolute; left: 18px; bottom: -9px; width: 16px; height: 16px; transform: skew(-20deg) rotate(-25deg); background: inherit; border-left: inherit; border-bottom: inherit; border-bottom-left-radius: 5px; }
#home-foundation .home-avatar-slot { display: flex; flex-direction: column; align-items: center; justify-content: center; justify-self: center; width: clamp(180px, 23cqi, 310px); aspect-ratio: 1; margin-top: -2px; border-radius: 50%; border: 1px solid var(--fk-color-border-default, var(--fk-border)); background: var(--fk-color-surface-card, var(--fk-surface)); box-shadow: var(--fk-shadow-card); text-align: center; padding: 20px; }
#home-foundation .home-avatar-slot > img { width: 100%; height: 100%; object-fit: contain; }
#home-foundation .home-avatar-neutral { display: grid; place-items: center; width: 42%; aspect-ratio: 1; border-radius: 32% 56% 40% 50%; background: var(--fk-color-surface-elevated, var(--fk-surface)); border: 1px solid var(--fk-color-border-control, var(--fk-border)); color: var(--home-ink); font-size: 2.4rem; margin-bottom: 12px; }
#home-foundation .home-avatar-placeholder { font-weight: 750; font-size: .95rem; }
#home-foundation .home-avatar-placeholder-note { margin-top: 4px; color: var(--fk-color-text-secondary, var(--fk-text-muted)); font-size: .8rem; }
#home-foundation .home-avatar-entry { display: flex; flex-direction: column; align-items: center; margin-top: 18px; }
#home-foundation .home-avatar-entry .fk-btn { border-radius: 999px; min-height: 56px; padding: 12px 24px; font-size: 1rem; max-width: 100%; justify-content: center; }
#home-foundation .home-avatar-context { max-width: 52ch; margin: 10px 0 0; font-size: .75rem; line-height: 1.5; color: var(--fk-color-text-secondary, var(--fk-text-muted)); text-align: center; }
#home-foundation .home-quick-actions { grid-column: 1 / -1; margin-top: 6px; }
#home-foundation .home-quick-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 12px 0 0; padding: 0; list-style: none; }
#home-foundation .home-quick-action { width: 100%; height: 100%; min-height: 106px; display: flex; align-items: center; gap: 14px; padding: 18px; border: 1px solid var(--fk-color-border-default, var(--fk-border)); border-radius: 18px; background: var(--fk-color-surface-elevated, var(--fk-surface)); color: inherit; text-align: start; cursor: pointer; font: inherit; box-shadow: var(--fk-shadow-card); overflow-wrap: anywhere; }
#home-foundation .home-quick-action:hover { border-color: var(--home-ink); }
#home-foundation .home-quick-action[aria-disabled="true"] { cursor: default; }
#home-foundation .home-quick-icon { display: grid; place-items: center; flex: 0 0 48px; height: 54px; border-radius: 16px; font-size: 1.65rem; background: var(--fk-color-surface-card, var(--fk-surface)); }
#home-foundation .home-quick-copy { flex: 1; display: flex; flex-direction: column; gap: 5px; }
#home-foundation .home-quick-copy strong { font-size: .85rem; line-height: 1.35; }
#home-foundation .home-quick-copy > span { color: var(--fk-color-text-secondary, var(--fk-text-muted)); font-size: .75rem; line-height: 1.45; }
#home-foundation .home-quick-arrow { color: var(--home-ink); font-size: 1.4rem; }
#home-foundation .home-details-heading { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--fk-color-border-default, var(--fk-border)); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
#home-foundation .home-details-heading .home-open-board { max-width: 640px; }
#home-foundation .home-details-heading + [data-home-context][hidden] + .home-next-moves { margin-top: 24px; }
:root[data-theme="light"] #home-foundation .home-living-continue, :root[data-theme="light"] #home-foundation .home-quick-action { background: #ffffffed; border-color: #fff; box-shadow: 0 8px 28px #5030a008; }
:root[data-theme="light"] #home-foundation .home-living-saved { background: #f4f4fe; }
:root[data-theme="light"] #home-foundation .home-avatar-art { background: radial-gradient(ellipse at 65% 25%, #bdffff9c, transparent 55%), radial-gradient(ellipse at 55% 80%, #e4c9ffb0, transparent 60%), radial-gradient(ellipse at 30% 58%, #ffdec999, transparent 50%); }
:root[data-theme="light"] #home-foundation .home-avatar-orbit { border-color: #ffffffd9; box-shadow: inset 0 0 28px #ffffff55; }
:root[data-theme="light"] #home-foundation .home-avatar-bubble { border-color: #a68aff; background: #ffffffed; box-shadow: 0 16px 36px #8563df10; }
:root[data-theme="light"] #home-foundation .home-avatar-slot { background: radial-gradient(circle at 26% 22%, #fff 2%, #f3eaff 38%, #e4dcff 58%, #d4eeff 82%, #ecfff7); border: 2px solid #fff; box-shadow: inset 5px 6px 14px #fff, inset -4px -8px 18px #c1b5f955, 0 20px 40px #8468d424; }
:root[data-theme="light"] #home-foundation .home-avatar-neutral { background: linear-gradient(135deg, #ffffff, #d8ceff); border-color: #c6b6ff; box-shadow: 6px 10px 22px #8973ce22; }
:root[data-theme="light"] #home-foundation [data-tone="brain"] .home-quick-icon { background: #fff0fa; }
:root[data-theme="light"] #home-foundation [data-tone="insights"] .home-quick-icon { background: #e8f5ff; }
:root[data-theme="light"] #home-foundation [data-tone="learnings"] .home-quick-icon { background: #e7f7ef; }
:root[data-theme="light"] #home-foundation [data-tone="responsibilities"] .home-quick-icon { background: #fff1e8; }
@container (max-width: 1100px) {
  #home-foundation .home-quick-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #home-foundation .home-living { gap: 24px; }
  #home-foundation .home-living-resume .fk-btn { min-height: 48px; }
}
@container (max-width: 900px) {
  #home-foundation .home-living { grid-template-columns: minmax(0, 1fr); }
  #home-foundation .home-avatar-stage { width: min(100%, 640px); justify-self: center; }
  #home-foundation .home-avatar-slot { width: 260px; }
  #home-foundation .home-hero { grid-template-columns: 44px minmax(0, 1fr); }
  #home-foundation .home-brand-controls { grid-column: 1 / -1; grid-row: auto; justify-content: flex-start; }
  #home-foundation .home-brand-controls label { flex-basis: auto; }
  #home-foundation .home-context { grid-row: auto; }
}
@container (max-width: 520px) {
  #home-foundation .home-living { padding-top: 24px; }
  #home-foundation .home-living h1 { font-size: 2rem; }
  #home-foundation .home-living-greeting { padding-inline: 0; }
  #home-foundation .home-living-continue { padding: 16px; }
  #home-foundation .home-living-continue h2 { font-size: 1.1rem; }
  #home-foundation .home-living-board { gap: 12px; }
  #home-foundation .home-living-board .home-identity { width: 52px; height: 52px; }
  #home-foundation .home-avatar-stage { padding: 0; min-height: 0; }
  #home-foundation .home-avatar-bubble { justify-self: end; width: min(260px, 90%); font-size: .95rem; padding: 18px; }
  #home-foundation .home-avatar-slot { width: min(220px, 80%); margin-top: 20px; }
  #home-foundation .home-avatar-spark { display: none; }
  #home-foundation .home-quick-list { grid-template-columns: minmax(0, 1fr); }
  #home-foundation .home-quick-action { min-height: 94px; }
  #home-foundation .home-brand-controls select { max-width: 100%; }
  #home-foundation .home-details-heading { margin-top: 32px; }
}
@media (max-width: 767px) {
  #dashboard-view.home-foundation-page { padding-bottom: calc(var(--home-overlay-clearance, 140px) + env(safe-area-inset-bottom, 0px)); }
}
@media (forced-colors: active) {
  #home-foundation :is(.home-living-continue, .home-avatar-bubble, .home-avatar-slot, .home-quick-action) { border: 1px solid CanvasText; }
  #home-foundation .home-avatar-art { display: none; }
  #home-foundation .home-quick-action[aria-disabled="true"] { color: GrayText; }
}

/* B2: original accepted images stay whole; depth belongs to their setting. */
#home-foundation .home-avatar-slot { min-height: 220px; height: auto; gap: 8px; }
#home-foundation .home-avatar-slot:has(> img) { padding: 12px; border-radius: 32px; }
#home-foundation .home-avatar-slot > img { display: block; flex: 1; min-height: 0; width: 100%; height: auto; max-height: 285px; object-fit: contain; border-radius: 0; }
#home-foundation .home-avatar-slot > button { min-height: 44px; max-width: 100%; white-space: normal; }
#home-foundation .home-avatar-placeholder { overflow-wrap: anywhere; }
#home-foundation .home-avatar-message { margin: 0; overflow-wrap: anywhere; }
#home-foundation .home-avatar-message-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; }
#home-foundation .home-avatar-message-controls button { min-height: 44px; padding: 6px 10px; font-size: .78rem; white-space: normal; }
#home-foundation .home-avatar-message-controls .home-note { font-size: .75rem; }
#home-foundation .home-avatar-message:focus-visible, #home-foundation .home-avatar-slot:focus-visible { outline: 2px solid var(--fk-focus, #7040ff); outline-offset: 4px; }
#home-foundation .home-avatar-bubble { width: min(300px, 85%); padding: 14px 18px; font-size: .95rem; }
#home-foundation .home-avatar-message-controls button { min-width: 44px; font-size: 1.2rem; }

/* BW-36.22B3R1: aligned context controls and quieter first-screen hierarchy. */
#home-foundation .home-hero[data-context-ready] { grid-template-columns: 44px minmax(0, 1fr) minmax(0, 1fr); gap: 0 20px; align-items: start; padding-bottom: 16px; }
#home-foundation .home-hero[data-context-ready] > .home-hero-copy { display: none; }
#home-foundation .home-hero[data-context-ready] > .home-identity { width: 44px; height: 44px; border-radius: 14px; font-size: 1.1rem; margin-top: 26px; }
#home-foundation .home-hero[data-context-ready] :is(.home-context, .home-brand-controls) { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: 20px 44px auto; align-items: start; gap: 6px; margin: 0; padding: 0; }
#home-foundation .home-hero[data-context-ready] .home-context { grid-column: 2; grid-row: 1; }
#home-foundation .home-hero[data-context-ready] .home-brand-controls { grid-column: 3; grid-row: 1; }
#home-foundation .home-hero[data-context-ready] label { font-size: .8rem; font-weight: 650; line-height: 20px; color: var(--fk-color-text-secondary, var(--fk-text-muted)); }
#home-foundation .home-hero[data-context-ready] select { width: 100%; max-width: none; height: 44px; padding: 10px 32px 10px 12px; border-radius: 10px; font-size: .9rem; font-weight: 600; }
#home-foundation .home-context-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; }
#home-foundation .home-context-actions .fk-btn { min-height: 44px; padding: 6px 0; border-color: transparent; background: transparent; box-shadow: none; font-size: .8rem; color: var(--fk-color-text-secondary, var(--fk-text-muted)); }
#home-foundation .home-context-actions [data-home-action="header-profile"] { color: var(--home-ink); font-weight: 650; }
#home-foundation .home-context-actions .fk-btn:hover { color: var(--home-ink); text-decoration: underline; }
#home-foundation .home-living { padding-top: 22px; gap: 16px 32px; }
#home-foundation .home-living-greeting { padding: 0 0 12px; }
#home-foundation .home-living h1 { margin: 8px 0; font-size: clamp(2rem, 3.4cqi, 3rem); line-height: 1.1; }
#home-foundation .home-living-subtitle { font-size: clamp(1rem, 1.3cqi, 1.15rem); }
#home-foundation .home-living-continue { padding: 16px; border-radius: 16px; }
#home-foundation .home-living-continue h2 { font-size: 1.05rem; }
#home-foundation .home-living-board { gap: 12px; margin: 8px 0; }
#home-foundation .home-living-board .home-identity { width: 52px; height: 52px; border-radius: 14px; font-size: 1.3rem; }
#home-foundation .home-living-scope { margin: 2px 0; }
#home-foundation .home-living-saved { padding: 4px 0; background: transparent; border-radius: 0; }
:root[data-theme="light"] #home-foundation .home-living-saved { background: transparent; }
#home-foundation .home-living-signals { gap: 8px; margin-top: 12px; }
#home-foundation .home-signal { border-radius: 12px; padding: 8px 10px; gap: 3px; box-shadow: none; }
#home-foundation .home-signal strong::after { content: ' ›'; color: var(--home-ink); }
#home-foundation .home-profile-next { gap: 4px 12px; margin-top: 10px; padding: 4px 0; border: 0; border-radius: 0; background: transparent; }
:root[data-theme="light"] #home-foundation .home-profile-next { background: transparent; }
#home-foundation .home-profile-next h2 { font-size: .8rem; }
#home-foundation .home-profile-next p { font-size: .8rem; }
#home-foundation .home-profile-next .fk-btn { background: transparent; border-color: transparent; padding: 6px 0; box-shadow: none; transform: none; color: var(--home-ink); font-size: .8rem; }
#home-foundation .home-avatar-stage { min-height: 0; padding-inline: 12px; }
#home-foundation .home-avatar-bubble { width: min(320px, 90%); padding: 10px 16px; border-radius: 24px 28px 24px 10px; font-size: .9rem; }
#home-foundation .home-avatar-message-controls { margin-top: 0; gap: 4px; }
#home-foundation .home-avatar-entry { margin-top: 12px; }
#home-foundation .home-avatar-entry .fk-btn { min-height: 48px; padding: 10px 20px; font-size: .95rem; }
#home-foundation .home-avatar-context { margin-top: 6px; max-width: 100%; }
#home-foundation .home-quick-list { gap: 12px; margin-top: 10px; }
#home-foundation .home-quick-action { min-height: 88px; padding: 12px 14px; gap: 10px; border-radius: 14px; }
#home-foundation .home-quick-icon { flex-basis: 40px; height: 44px; border-radius: 12px; font-size: 1.4rem; }
@container (max-width: 900px) {
  #home-foundation .home-hero[data-context-ready] { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  #home-foundation .home-hero[data-context-ready] > .home-identity { display: none; }
  #home-foundation .home-hero[data-context-ready] .home-context { grid-column: 1; }
  #home-foundation .home-hero[data-context-ready] .home-brand-controls { grid-column: 2; }
}
@container (max-width: 520px) {
  #home-foundation .home-hero[data-context-ready] { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  #home-foundation .home-hero[data-context-ready] .home-brand-controls { grid-column: 1; grid-row: 2; }
  #home-foundation .home-living { padding-top: 18px; }
  #home-foundation .home-avatar-stage { padding-inline: 0; }
  #home-foundation .home-avatar-bubble { width: min(300px, 95%); }
  #home-foundation .home-profile-next .fk-btn { margin-top: 0; }
}
@media (forced-colors: active) {
  #home-foundation .home-context-actions .fk-btn, #home-foundation .home-profile-next .fk-btn { border: 1px solid ButtonText; }
}

/* BW-36.22B4: Living Workspace polish; image and legacy Home stay untouched. */
#home-foundation .home-living {
  --home-polish-shadow: 0 6px 18px #6248a312, 0 1px 3px #29164a08;
  --home-polish-focus: #7040db;
}
:root[data-theme="dark"] #home-foundation .home-living {
  --home-polish-shadow: 0 8px 24px #060b2038, 0 1px 3px #00000024;
  --home-polish-focus: #c6b4ff;
}
#home-foundation .home-living-continue {
  border-color: color-mix(in srgb, var(--home-ink) 20%, var(--fk-color-border-default, var(--fk-border)));
  box-shadow: var(--home-polish-shadow);
}
#home-foundation .home-avatar-art {
  box-shadow: inset 0 0 60px color-mix(in srgb, var(--home-accent) 8%, transparent);
}
#home-foundation .home-avatar-art::before {
  content: ''; position: absolute; inset: 12%; border-radius: 50%;
  background: radial-gradient(ellipse at 60% 35%, #bda5ff24, transparent 70%);
  animation: home-b4-glow 12s ease-in-out infinite alternate;
}
#home-foundation .home-avatar-orbit { animation: home-b4-orbit 18s ease-in-out infinite alternate; }
#home-foundation .home-avatar-orbit-back { animation-name: home-b4-orbit-back; animation-duration: 22s; }
#home-foundation .home-avatar-spark { animation: home-b4-accent 8s ease-in-out infinite alternate; }
#home-foundation .home-avatar-spark-two { animation-delay: -3s; }
#home-foundation .home-avatar-spark-three { animation-name: home-b4-accent-tilted; animation-delay: -5s; }
#home-foundation .home-avatar-slot {
  box-shadow: inset 0 1px 0 #ffffff18, 0 12px 30px #33236518, 0 3px 8px #3323650c;
}
:root[data-theme="light"] #home-foundation .home-avatar-slot {
  box-shadow: inset 5px 6px 14px #fff, inset -4px -8px 18px #c1b5f933, 0 14px 32px #8468d41c, 0 3px 8px #8468d40c;
}
#home-foundation .home-avatar-bubble { box-shadow: var(--home-polish-shadow); translate: -6px 1px; }
#home-foundation .home-avatar-message[data-manual-change] { animation: home-b4-message 220ms cubic-bezier(.2,.7,.3,1) both; }
#home-foundation :is(.home-living-resume, .home-avatar-entry) .fk-btn-primary {
  background: linear-gradient(125deg, #7750dd, #6438c3); border-color: #7043cc; color: #fff;
  box-shadow: 0 3px 9px #6240b526, inset 0 1px 0 #ffffff24;
  transform: none; transition: box-shadow 180ms ease, border-color 180ms ease;
}
:root[data-theme="dark"] #home-foundation :is(.home-living-resume, .home-avatar-entry) .fk-btn-primary {
  background: linear-gradient(125deg, #7954df, #6940cb); border-color: #a589f0;
}
#home-foundation :is(.home-living-resume, .home-avatar-entry) .fk-btn-primary:not(:disabled):not([aria-disabled="true"]):hover {
  border-color: #bda6ff; box-shadow: 0 5px 14px #6240b538, inset 0 1px 0 #ffffff40;
  transform: none;
}
#home-foundation :is(.home-living-resume, .home-avatar-entry) .fk-btn-primary:not(:disabled):not([aria-disabled="true"]):active {
  box-shadow: inset 0 2px 5px #2813523d, 0 1px 3px #6240b526; transform: none;
}
#home-foundation :is(.home-living-resume, .home-avatar-entry) .fk-btn-primary:is(:disabled, [aria-disabled="true"]) {
  opacity: .55; box-shadow: none; transform: none; cursor: not-allowed;
}
#home-foundation .home-signal { position: relative; padding-inline-start: 34px; transition: border-color 180ms ease, box-shadow 180ms ease; }
#home-foundation .home-signal .home-signal-icon { position: absolute; inset-inline-start: 10px; top: 9px; color: var(--home-ink); font-size: 1rem; line-height: 1.2; }
#home-foundation .home-signal strong { line-height: 1.45; }
#home-foundation .home-signal:not(:disabled):hover { border-color: var(--home-ink); box-shadow: var(--home-polish-shadow); }
#home-foundation .home-signal:not(:disabled):active { box-shadow: inset 0 1px 4px #6240b51c; }
#home-foundation .home-profile-next p { line-height: 1.55; }
#home-foundation .home-profile-next .fk-btn:hover { text-decoration: underline; text-underline-offset: 3px; }
#home-foundation .home-living :is(button, .home-avatar-message):focus-visible { outline: 3px solid var(--home-polish-focus); outline-offset: 4px; }
@keyframes home-b4-orbit { from { transform: translate(-50%, -50%) rotate(-28deg) scaleY(.8); } to { transform: translate(-50%, -50%) rotate(-23deg) scaleY(.8); } }
@keyframes home-b4-orbit-back { from { transform: translate(-50%, -50%) rotate(32deg) scaleY(.8); } to { transform: translate(-50%, -50%) rotate(27deg) scaleY(.8); } }
@keyframes home-b4-glow { from { opacity: .65; transform: scale(.98); } to { opacity: .95; transform: scale(1.02); } }
@keyframes home-b4-accent { from { opacity: .7; transform: translateY(0); } to { opacity: .95; transform: translateY(-3px); } }
@keyframes home-b4-accent-tilted { from { opacity: .7; transform: rotate(-35deg) translateY(0); } to { opacity: .95; transform: rotate(-35deg) translateY(-3px); } }
/* Text stays at least 94% opaque throughout the manual-only arrival. */
@keyframes home-b4-message { from { opacity: .94; transform: translateY(2px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  #home-foundation .home-living, #home-foundation .home-living *, #home-foundation .home-living *::before, #home-foundation .home-living *::after { animation: none !important; transition: none !important; }
}
@media (forced-colors: active) {
  #home-foundation .home-living :is(button, .home-avatar-message):focus-visible { outline-color: Highlight; }
  #home-foundation :is(.home-living-resume, .home-avatar-entry) .fk-btn-primary { background: ButtonFace; color: ButtonText; border-color: ButtonText; box-shadow: none; }
}
