/* Phase 2 Home: Figma section 4091:13920, 393px canvas. */
.home-shell { width: min(100%, 393px); height: 100svh; min-height: 0; max-width: 393px; padding: 0; overflow: hidden; background: var(--prism-color-canvas); }
.home-screen { position: relative; width: 100%; height: 100%; background: var(--prism-color-canvas); color: var(--prism-color-text-primary); }
.home-scroll { width: 100%; height: 100%; overflow-x: hidden; overflow-y: auto; overscroll-behavior-y: contain; padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
.home-statusbar-space { height: max(54px, env(safe-area-inset-top)); background: var(--prism-color-surface); }
.home-topbar { display: flex; width: 100%; height: 48px; align-items: center; justify-content: space-between; padding: 0 8px 0 16px; background: var(--prism-color-surface); }
.home-logo { display: block; width: 102px; height: 31px; object-fit: contain; }
.home-bell { display: grid; width: 44px; height: 44px; min-width: 44px; min-height: 44px; place-items: center; padding: 0; border-radius: 50%; background: transparent; }
.home-bell img { width: 24px; height: 24px; filter: none; }
.home-greeting { display: flex; width: 100%; align-items: center; justify-content: flex-start; gap: 20px; padding: 12px 20px 16px; background: var(--prism-color-surface); }
.home-character { display: block; width: 89px; height: 89px; flex: none; object-fit: contain; margin: 0; }
.home-greeting-copy { display: grid; min-width: 0; gap: 8px; }
.home-greeting-copy h1 { margin: 0; color: var(--prism-color-text-primary); font-size: var(--prism-font-title-20); font-weight: var(--prism-font-weight-bold); line-height: var(--prism-line-title-20); letter-spacing: 0; }
.home-greeting-copy p { margin: 0; color: var(--prism-color-text-secondary); font-size: var(--prism-font-body-14); font-weight: var(--prism-font-weight-regular); line-height: var(--prism-line-body-14); white-space: normal; }
.home-banner { display: flex; min-height: 44px; align-items: center; justify-content: space-between; gap: 8px; margin: 0 20px; padding: 4px 12px 4px 16px; border-radius: var(--prism-radius-md); background: var(--prism-color-brand-subtle); }
.home-banner p { margin: 0; color: var(--prism-color-text-primary); font-size: var(--prism-font-caption-12); line-height: var(--prism-line-caption-12); }
.home-attendance-button { width: auto; min-height: 36px; flex: none; padding: 4px 12px; border-radius: var(--prism-radius-full); background: var(--prism-color-brand); color: var(--prism-color-text-on-brand); font-size: var(--prism-font-button-12); font-weight: var(--prism-font-weight-regular); line-height: var(--prism-line-button-12); }
.home-attendance-button[aria-disabled="true"] { cursor: default; }
.home-banner-placeholder { height: 12px; }
.home-filters { position: sticky; top: 0; z-index: 5; display: flex; width: 100%; min-height: 60px; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px; border-bottom: 1px solid var(--prism-color-border-default); background: var(--prism-color-surface); }
.filter-trigger { display: inline-flex; width: auto; min-height: 44px; align-items: center; justify-content: center; gap: 4px; padding: 0 12px; border: 0; border-radius: var(--prism-radius-full); background: transparent; color: var(--prism-color-text-secondary); font-size: var(--prism-font-body-13); font-weight: var(--prism-font-weight-regular); }
.filter-trigger img { width: 16px; height: 16px; filter: none; }
.filter-trigger.primary { justify-content: flex-start; color: var(--prism-color-text-primary); font-size: var(--prism-font-body-15); font-weight: var(--prism-font-weight-medium); }
.filter-trigger.secondary { justify-content: flex-end; color: var(--prism-color-text-secondary); }
.home-sort-anchor { position: relative; display: flex; justify-content: flex-end; }
.home-issue-list { display: grid; gap: 0; margin: 0; padding: 0 0 24px; list-style: none; background: var(--prism-color-surface); }
.home-issue-list-item { min-width: 0; }
.home-issue-card { display: flex; min-width: 0; flex-direction: column; gap: 8px; padding: 16px 20px 8px; border: 0; border-bottom: 1px solid var(--prism-color-border-default); border-radius: 0; background: var(--prism-color-surface); }
.home-issue-meta { display: flex; min-height: 20px; align-items: center; justify-content: space-between; gap: 8px; }
.home-issue-category { color: var(--prism-color-brand); font-size: var(--prism-font-body-14); font-weight: var(--prism-font-weight-medium); line-height: var(--prism-line-body-14); }
.home-issue-meta-right { display: flex; align-items: center; gap: 4px; }
.home-issue-time { color: var(--prism-color-text-secondary); font-size: var(--prism-font-caption-12); line-height: var(--prism-line-caption-12); white-space: nowrap; }
/* MVP 4-6 entry: the source count is plain meta text that opens the sources sheet (Figma 8010:156). */
.home-source-count { display: inline; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; cursor: pointer; }
.home-reason-trigger { display: grid; width: 24px; height: 24px; min-width: 24px; min-height: 24px; place-items: center; padding: 0; border-radius: 50%; background: transparent; }
.home-reason-trigger img { width: 16px; height: 16px; filter: none; }
.home-issue-open { display: grid; width: 100%; min-height: 0; justify-items: stretch; gap: 4px; padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--prism-color-text-strong); text-align: left; }
.home-issue-open:hover { transform: none; filter: none; }
.home-issue-title { color: var(--prism-color-text-strong); font-size: var(--prism-font-title-14); font-weight: var(--prism-font-weight-bold); line-height: var(--prism-line-title-14); }
.home-issue-summary { display: grid; gap: 2px; }
.home-summary-attribution { color: var(--prism-color-text-secondary); font-size: var(--prism-font-caption-11); line-height: var(--prism-line-caption-11); }
.home-issue-summary p { display: -webkit-box; overflow: hidden; margin: 0; color: var(--prism-color-text-secondary); font-size: var(--prism-font-body-13); line-height: var(--prism-line-body-13-regular); -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.home-issue-actions { display: flex; min-height: 36px; align-items: center; justify-content: flex-start; gap: 16px; }
.home-issue-action { display: inline-flex; min-height: 36px; align-items: center; gap: 4px; padding: 0 4px 0 0; color: var(--prism-color-text-primary); font-size: var(--prism-font-caption-11); }
.home-issue-action img { width: 20px; height: 20px; filter: none; }
.home-save-placeholder { margin-left: auto; }
.home-new-issues-pill { position: fixed; z-index: 8; bottom: calc(max(8px, env(safe-area-inset-bottom)) + 72px); left: 50%; display: inline-flex; width: auto; min-height: 40px; align-items: center; gap: 4px; padding: 8px 16px 8px 12px; transform: translateX(-50%); border-radius: var(--prism-radius-full); background: var(--prism-color-brand); box-shadow: var(--prism-shadow-floating); color: var(--prism-color-text-on-brand); font-size: var(--prism-font-body-13); font-weight: var(--prism-font-weight-medium); white-space: nowrap; }
.home-new-issues-pill:hover { transform: translateX(-50%); filter: none; }
.home-new-issues-pill img { width: 16px; height: 16px; filter: brightness(0) invert(1); }
.home-load-more { display: flex; min-height: 20px; align-items: center; justify-content: center; gap: 8px; padding: 16px 20px; color: var(--prism-color-text-secondary); font-size: var(--prism-font-caption-12); }
.home-load-more img { width: 20px; height: 20px; animation: prism-spin 1s linear infinite; }
.home-load-more-button { width: 100%; min-height: 44px; border-radius: 0; background: var(--prism-color-surface); color: var(--prism-color-text-brand); font-size: var(--prism-font-body-14); }
.home-end-of-feed { margin: 16px 0; color: var(--prism-color-text-secondary); text-align: center; font-size: var(--prism-font-caption-12); }
.home-cursor-warning { margin: 8px 20px; color: var(--prism-color-text-danger); font-size: var(--prism-font-caption-12); }
.home-state-view { display: grid; width: 100%; justify-items: center; gap: 12px; padding: 40px 32px; background: var(--prism-color-surface); text-align: center; }
.home-empty-character { display: block; width: 110px; height: 130px; object-fit: contain; }
.home-state-view h2 { margin: 0; color: var(--prism-color-text-primary); font-size: var(--prism-font-title-16); font-weight: var(--prism-font-weight-bold); line-height: var(--prism-line-title-16); }
.home-state-view p { margin: 0; color: var(--prism-color-text-secondary); font-size: var(--prism-font-body-14); line-height: var(--prism-line-body-14); }
.home-secondary-action { width: 160px; min-height: 44px; border: 1px solid var(--prism-color-border-default); border-radius: var(--prism-radius-full); background: var(--prism-color-surface); color: var(--prism-color-text-primary); font-size: var(--prism-font-button-16); }
.home-bottom-nav { position: fixed; z-index: 10; bottom: max(8px, env(safe-area-inset-bottom)); left: 50%; display: flex; width: 350px; max-width: calc(100% - 32px); height: 64px; align-items: center; justify-content: space-between; gap: 4px; padding: 8px; transform: translateX(-50%); border-radius: var(--prism-radius-full); background: var(--prism-color-surface); box-shadow: var(--prism-shadow-floating); }
.home-nav-item { display: flex; width: 66px; min-width: 48px; height: 48px; min-height: 48px; flex: 0 0 66px; flex-direction: row; align-items: center; justify-content: center; gap: 8px; padding: 0; border-radius: 24px; background: transparent; color: var(--prism-color-text-secondary); font-size: var(--prism-font-body-14); font-weight: var(--prism-font-weight-medium); white-space: nowrap; }
.home-nav-item:not(.is-selected) span { display: none; }
.home-nav-item img { width: 24px; height: 24px; filter: none; }
.home-nav-item.is-selected { width: 112px; min-width: 112px; flex: 0 0 112px; background: var(--prism-color-brand-subtle); color: var(--prism-color-brand); }
.home-nav-item:disabled, .home-nav-item[aria-disabled="true"] { cursor: default; }
/* Accessible 준비 중 notice shown above the floating nav (Settings, section 08). */
.home-nav-notice { position: fixed; z-index: 9; bottom: calc(max(8px, env(safe-area-inset-bottom)) + 72px); left: 50%; transform: translateX(-50%); margin: 0; padding: 6px 14px; border-radius: var(--prism-radius-full); background: var(--prism-color-surface); box-shadow: var(--prism-shadow-floating); color: var(--prism-color-text-secondary); font-size: var(--prism-font-caption-12); white-space: nowrap; }
.home-sort-dismiss { position: fixed; z-index: 5; inset: 0; width: 100%; height: 100%; min-height: 0; padding: 0; border-radius: 0; background: transparent; }
.home-sort-menu { position: absolute; z-index: 6; top: calc(100% + 4px); right: 0; display: grid; width: 132px; padding: 4px 0; border: 1px solid var(--prism-color-border-subtle); border-radius: var(--prism-radius-lg); background: var(--prism-color-surface); box-shadow: var(--prism-shadow-floating); }
.home-sort-option { display: flex; width: 100%; min-height: 44px; align-items: center; justify-content: space-between; padding: 0 12px 0 16px; border-radius: 0; background: var(--prism-color-surface); color: var(--prism-color-text-primary); font-size: var(--prism-font-body-14); font-weight: var(--prism-font-weight-medium); text-align: left; }
.home-sort-option img { width: 20px; height: 20px; filter: none; }
.home-sort-option.is-selected { color: var(--prism-color-brand); font-weight: var(--prism-font-weight-medium); }
.home-sheet-overlay { position: fixed; z-index: 20; inset: 0; display: flex; align-items: flex-end; justify-content: center; background: var(--prism-color-overlay); }
.home-bottom-sheet { width: min(100%, 393px); max-height: 85svh; overflow-y: auto; padding-top: 8px; border-radius: 24px 24px 0 0; background: var(--prism-color-surface); box-shadow: var(--prism-shadow-sheet); }
/* The sheet chrome (handle, title row, 44px close) now comes from the shared
   `.prism-sheet-*` rules in components.css. */
.home-category-options { display: grid; max-height: 45svh; overflow-y: auto; }
.home-category-option { display: flex; width: 100%; min-height: 52px; align-items: center; justify-content: space-between; padding: 0 20px; border-radius: 0; background: var(--prism-color-surface); color: var(--prism-color-text-primary); font-size: var(--prism-font-body-15); font-weight: var(--prism-font-weight-medium); text-align: left; }
.home-category-option img { width: 20px; height: 20px; filter: none; }
.home-category-option.is-selected { color: var(--prism-color-brand); font-weight: var(--prism-font-weight-medium); }
.home-sheet-divider { height: 1px; margin: 8px 20px; background: var(--prism-color-disabled); }
.home-sheet-action { display: flex; width: 100%; min-height: 52px; align-items: center; gap: 8px; padding: 0 20px; border-radius: 0; background: var(--prism-color-surface); color: var(--prism-color-brand); font-size: var(--prism-font-body-15); font-weight: var(--prism-font-weight-medium); text-align: left; }
.home-sheet-action img { width: 20px; height: 20px; filter: none; }

.home-reason-issue { padding: 0 20px 12px; }
.home-reason-issue p { margin: 0; color: var(--prism-color-text-secondary); font-size: var(--prism-font-body-14); font-weight: var(--prism-font-weight-medium); line-height: var(--prism-line-body-14); }
.home-reason-list { display: grid; gap: 12px; padding: 4px 20px 16px; }
.home-reason-row { display: flex; min-height: 44px; align-items: center; gap: 12px; margin: 0; padding: 12px 16px; border-radius: var(--prism-radius-lg); background: var(--prism-color-bg-subtle); color: var(--prism-color-text-primary); font-size: var(--prism-font-body-14); line-height: var(--prism-line-body-14); }
.home-reason-row img { width: 20px; height: 20px; flex: none; filter: none; }
.home-recommendation-settings { display: flex; width: 100%; min-height: 52px; align-items: center; justify-content: space-between; padding: 12px 20px; border: 0; border-top: 1px solid var(--prism-color-disabled); border-radius: 0; background: var(--prism-color-surface); color: var(--prism-color-text-primary); font-size: var(--prism-font-body-14); font-weight: var(--prism-font-weight-medium); text-align: left; }
.home-recommendation-settings img { width: 20px; height: 20px; filter: none; }
.home-skeleton-list { display: grid; background: var(--prism-color-surface); }
.home-skeleton-post { display: grid; gap: 12px; margin: 0; padding: 16px 20px 8px; border-bottom: 1px solid var(--prism-color-border-default); }
.home-skeleton-meta { display: flex; justify-content: space-between; gap: 12px; }
.home-skeleton-meta span:first-child { width: 64px; height: 14px; }
.home-skeleton-meta span:last-child { width: 80px; height: 12px; }
.home-skeleton-content { display: flex; align-items: flex-start; gap: 12px; }
.home-skeleton-copy { display: grid; flex: 1; gap: 8px; }
.home-skeleton-copy span { height: 14px; }
.home-skeleton-copy span:first-child { height: 18px; }
.home-skeleton-copy span:last-child { width: 160px; }
.home-skeleton-image { width: 82px; height: 83px; flex: none; }
.home-skeleton-actions { display: flex; gap: 16px; padding-top: 8px; }
.home-skeleton-actions span:first-child { width: 40px; height: 16px; }
.home-skeleton-actions span:last-child { width: 64px; height: 16px; }
.home-skeleton-meta span, .home-skeleton-copy span, .home-skeleton-image, .home-skeleton-actions span { border-radius: 6px; background: var(--prism-color-disabled); }
@media (prefers-reduced-motion: reduce) { .home-load-more img { animation-duration: 3s; } }

/* Figma IssuePost action controls are icon-and-label actions, not filled buttons. */
.home-issue-action { min-width: 0; min-height: 44px; border: 0; border-radius: 0; background: transparent; }
.home-issue-action:hover { transform: none; filter: none; }
.home-issue-action > img { width: 24px; height: 24px; }
.home-issue-action.home-save > span, .home-issue-action.home-save-active > span { display: none; }
/* Figma bottom-space (nav) 13:384 is 120px: the last card always scrolls
   clear of the floating BottomNav and the home indicator. */
.home-scroll { padding-bottom: calc(120px + env(safe-area-inset-bottom)); }

/* MVP B: infinite feed sentinel. Zero-height marker observed by
   IntersectionObserver; it must stay in flow so the last page can trigger it. */
.home-load-more-sentinel { width: 100%; height: 1px; flex: none; }

/* MVP C / Figma 8010:436: the thought-buffer footer stacks full-width actions; the private save is an outlined secondary button. */
.thought-buffer-sheet .thought-buffer-step footer { display: grid; gap: 8px; }
.thought-buffer-sheet .thought-buffer-step footer .prism-button { width: 100%; white-space: normal; }

/* Figma 8010:156: a 76px representative photo at the card right; text wraps beside it. */
.home-issue-thumb { float: right; width: 76px; height: 76px; object-fit: cover; border-radius: 12px; margin: 0 0 8px 12px; }
