.home-hub { margin: 12px 0 20px; min-width: 0; }
.home-hub[hidden], .home-hub [hidden] { display: none !important; }
.home-hub-toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; list-style: none; cursor: pointer; font-size: 14px; font-weight: 600; border-bottom: 1px solid var(--border); }
.home-hub-toggle::-webkit-details-marker { display: none; }
.home-hub-toggle svg { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.7; }
.home-hub[open] > .home-hub-toggle { margin-bottom: 12px; }
.home-hub[open] > .home-hub-toggle svg { transform: rotate(180deg); }
.home-welcome { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.home-welcome h2 { font-size: 18px; line-height: 1.35; margin: 0; }
.home-welcome .text-button { color: var(--accent); }
.home-eyebrow { display: block; color: var(--text-muted); font-size: 12px; line-height: 1.5; }
.home-actions, .home-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.home-actions { justify-content: flex-start; gap: 4px 16px; }
#home-project-refresh { margin-inline-start: auto; }
.home-actions button, .home-hub button, .home-hub summary { min-height: 44px; }
.home-note { color: var(--text-muted); font-size: 13px; line-height: 1.5; }
.home-programme, .home-catchup { margin: 16px 0 0; }
.home-programme:empty { display: none; }
.home-event { border-top: 1px solid var(--border); padding: 14px 0 0; }
.home-event + .home-event { margin-top: 8px; }
.home-event h3 { margin: 4px 0; font-size: 16px; overflow-wrap: anywhere; }
.home-event p { margin: 6px 0; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.home-event time { display: block; }
.home-event .text-button { display: block; }
.home-recaps { margin-top: 10px; }
.home-recaps summary { cursor: pointer; display: flex; align-items: center; font-size: 13px; color: var(--text-muted); }
.home-section-heading { margin-bottom: 4px; }
.home-section-heading h2 { font-size: 16px; margin: 0; }
.home-section-heading p { margin: 4px 0 0; }
.home-project-list { min-width: 0; }
.home-project-list > .home-note { margin: 8px 0 12px; }
.home-project-card { border-bottom: 1px solid var(--border); min-width: 0; }
.home-project-title { display: block; width: 100%; padding: 12px 0; color: inherit; text-align: left; border: 0; background: none; font: inherit; cursor: pointer; }
.home-project-name { font-size: 14px; line-height: 1.45; font-weight: 650; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.home-project-meta { display: flex; align-items: baseline; gap: 6px; margin-top: 4px; color: var(--text-muted); font-size: 12px; line-height: 1.5; }
.home-project-author { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-project-prompt { flex-shrink: 0; }
.home-project-prompt::before { content: "·"; margin-inline-end: 6px; }
@media (hover: hover) { .home-project-title:hover .home-project-name { text-decoration: underline; text-underline-offset: 3px; } }
.home-update { width: 100%; display: grid; gap: 5px; text-align: left; padding: 14px 0; background: none; color: inherit; border: 0; border-bottom: 1px solid var(--border); cursor: pointer; overflow-wrap: anywhere; }
.home-catchup-actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 10px; }
body[data-view="all"] #home-people:not(.has-stories) { display: none; }
body[data-view="all"] #home-people.has-stories .people-row-item:not(.has-story):not(.is-you) { display: none; }
body[data-view="all"] #home-intro { margin-top: 0; padding-top: 0; }
.home-hub button:focus-visible, .home-hub summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.composer-project-shortcuts { display: flex; gap: 8px; flex-wrap: wrap; padding: 10px 0; }
.composer-project-shortcuts button { min-height: 44px; }
.project-update-item.is-unread { border-inline-start: 3px solid var(--accent); padding-inline-start: 12px; }
@media (max-width: 700px) {
  .home-hub { margin: 8px 0 16px; }
}

/* A successful empty Home has one starting point; loading and errors stay visible. */
.home-hub:has(#home-projects[hidden]):has(#home-catchup[hidden]):has(#home-programme:empty) { display: none; }
body[data-view="all"] #board.is-quiet,
body[data-view="all"]:has(#feed-empty:not([hidden])) #home-intro:has(p[data-registration-open="true"]) { display: none; }
body[data-view="all"] #feed-empty {
  justify-items: start; text-align: left; padding: 40px 0 48px;
}
body[data-view="all"] #feed-empty .empty-icon { display: none; }
body[data-view="all"] #feed-empty h3 { max-width: 420px; font-size: 22px; line-height: 1.3; letter-spacing: -0.3px; margin: 0 0 12px; }
body[data-view="all"] #feed-empty p { max-width: 380px; font-size: 15px; margin-bottom: 24px; }
body[data-view="all"] #feed-empty-action { min-height: 44px; }

body[data-view="all"] #feed:empty { min-height: 0; }
