/* Shared content primitives mapped to the final Figma component nodes. */
.comment-card, .reply-card, .activity-card {
  display: grid;
  gap: var(--prism-space-12);
  padding: var(--prism-space-16) var(--prism-space-20);
  background: var(--prism-color-surface);
}

.reply-card { padding: 12px 20px 12px 52px; }
.comment-header, .comment-footer, .activity-header { display: flex; align-items: center; gap: var(--prism-space-8); }
.comment-avatar { display: grid; width: 32px; height: 32px; flex: none; place-items: center; border-radius: 50%; background: var(--prism-color-disabled) url("public/brand/icons/user-round.svg") center / 20px no-repeat; color: transparent; font-size: 0; }
/* Figma ClusterTag 4044:502: 6px brand dot + Caption/11 label. */
.comment-cluster { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px 2px 6px; border-radius: var(--prism-radius-full); background: var(--prism-color-surface-subtle); color: var(--prism-color-text-secondary); font-size: var(--prism-font-caption-11); width: fit-content; }
.comment-cluster::before { content: ""; width: 6px; height: 6px; flex: none; border-radius: var(--prism-radius-full); background: var(--prism-color-brand); }
.comment-mine { padding: 2px 9px; border-radius: var(--prism-radius-full); background: var(--prism-color-brand-subtle); color: var(--prism-color-brand); font-size: var(--prism-font-caption-11); }
.comment-time { color: var(--prism-color-text-tertiary); font-size: var(--prism-font-caption-12); white-space: nowrap; }
.comment-more { margin-left: auto; width: 44px; min-width: 44px; min-height: var(--prism-touch-min); padding: 0; background: transparent; color: var(--prism-color-text-secondary); }
.comment-body { margin: 0; color: var(--prism-color-text-primary); font-size: var(--prism-font-body-15); line-height: var(--prism-line-body-15-regular); white-space: pre-wrap; overflow-wrap: anywhere; }
.comment-card.is-toned .comment-body { color: var(--prism-color-text-secondary); }
.comment-footer { min-height: 30px; }
.comment-footer .comment-reply { min-height: var(--prism-touch-min); padding: 0 8px; background: transparent; color: var(--prism-color-text-secondary); font-size: var(--prism-font-caption-12); font-weight: var(--prism-font-weight-medium); }
.reply-mention { color: var(--prism-color-brand); font-weight: 500; }
.activity-header { min-height: 32px; }
.activity-issue-link { width: auto; min-height: var(--prism-touch-min); padding: 0; background: transparent; color: var(--prism-color-text-primary); font-size: var(--prism-font-body-14); text-align: left; }

/* Figma ReactionChip (4007:418) renders a 30px pill; the button keeps the
   44px minimum touch target around it. */
.reaction-chip { display: inline-flex; width: auto; min-height: var(--prism-touch-min); align-items: center; padding: 0; background: transparent; }
.reaction-pill { display: inline-flex; height: 30px; min-height: 30px; align-items: center; gap: 4px; padding: 4px 10px; border-radius: var(--prism-radius-full); background: var(--prism-color-surface-subtle); color: var(--prism-color-text-secondary); font-size: var(--prism-font-caption-12); font-weight: var(--prism-font-weight-medium); }
.reaction-pill img { width: 16px; height: 16px; filter: none; }
.reaction-pill.is-selected { border: 1px solid var(--prism-color-brand); background: var(--prism-color-brand-subtle); color: var(--prism-color-brand); }

.suggest-bar { display: flex; width: 100%; min-height: var(--prism-touch-min); align-items: center; background: var(--prism-color-surface-subtle); border-top: 1px solid var(--prism-color-border-subtle); }
.suggest-question { justify-content: space-between; gap: var(--prism-space-8); padding: 0 4px 0 12px; color: var(--prism-color-text-secondary); font-size: var(--prism-font-body-13); }
.suggest-question button { width: 44px; min-width: 44px; min-height: var(--prism-touch-min); padding: 0; background: transparent; color: var(--prism-color-text-secondary); }

.map-bubble { display: flex; flex: none; flex-direction: column; justify-content: center; align-items: center; gap: 2px; padding: 0 8px; border: 0; border-radius: 50%; background: var(--prism-color-brand-subtle); color: var(--prism-color-text-strong); font-size: var(--prism-font-caption-12); text-align: center; }
.map-bubble-label { font-size: var(--prism-font-caption-12); font-weight: var(--prism-font-weight-medium); line-height: var(--prism-line-caption-12); }
.map-bubble-value { color: var(--prism-color-brand); font-size: var(--prism-font-title-18); font-weight: var(--prism-font-weight-bold); line-height: var(--prism-line-title-18); }
.map-bubble.is-selected { border: 2px solid var(--prism-color-brand); background: var(--prism-color-brand); color: var(--prism-color-text-on-brand); }
.map-bubble.is-selected .map-bubble-value { color: var(--prism-color-text-on-brand); }
.map-bubble.is-dim { background: var(--prism-color-surface-subtle); color: var(--prism-color-text-tertiary); }
.map-bubble.is-dim .map-bubble-value { color: var(--prism-color-text-tertiary); }
.map-bubble.is-issue { border: 1px solid var(--prism-color-border); background: var(--prism-color-surface); color: var(--prism-color-text-secondary); }
.map-bubble.is-issue .map-bubble-value { display: none; }

.settings-item, .settings-toggle-item { display: flex; width: 100%; min-height: 80px; align-items: center; gap: 14px; padding: 18px 16px 18px 20px; border: 0; border-radius: 0; background: var(--prism-color-surface); color: var(--prism-color-text-primary); text-align: left; }
.settings-toggle-item { justify-content: space-between; padding-right: 20px; }
.settings-icon { display: grid; width: 44px; height: 44px; flex: none; place-items: center; border-radius: 22px; background: var(--prism-color-brand-subtle); }
.settings-icon img { width: 22px; height: 22px; }
.settings-chevron { width: 20px; height: 20px; }
.settings-copy { display: grid; min-width: 0; flex: 1; gap: 4px; }
.settings-label { font-size: var(--prism-font-body-16); font-weight: var(--prism-font-weight-medium); line-height: var(--prism-line-body-16); }
.settings-description, .settings-value { color: var(--prism-color-text-tertiary); font-size: var(--prism-font-body-14); line-height: var(--prism-line-body-14); }
.settings-switch { position: relative; width: 51px; min-width: 51px; height: var(--prism-touch-min); min-height: var(--prism-touch-min); padding: 0; border-radius: var(--prism-radius-full); background: transparent; }
.settings-switch::before { position: absolute; top: 6px; left: 0; width: 51px; height: 31px; border-radius: var(--prism-radius-full); background: var(--prism-color-border); content: ""; }

/* Figma Sheet/Header (10:260): a 36x4 handle over a title row with a 44px
   close, shared by the Home sheet and every comment/briefing sheet. */
/* Figma Sheet/Header (10:260): the sheet itself owns the 8px top inset
   (`padding-top: 8px`), so the handle carries no margin of its own — otherwise
   the two stack. The chrome is full-bleed: the title row supplies the 20/8px
   insets, so sheets using it must not add horizontal padding of their own. */
.prism-sheet-handle { width: 36px; height: 4px; margin: 0 auto; border-radius: 2px; background: var(--prism-color-border-default); }
.prism-sheet-header { display: flex; min-height: 52px; align-items: center; gap: 6px; padding: 0 8px 0 20px; }
.prism-sheet-header h2 { margin: 0; min-width: 0; flex: 1; font-size: var(--prism-font-title-16); font-weight: var(--prism-font-weight-bold); line-height: var(--prism-line-title-16); color: var(--prism-color-text-primary); }
.prism-sheet-close { display: grid; width: 44px; height: 44px; min-height: var(--prism-touch-min); flex: none; place-items: center; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--prism-color-text-primary); font-size: 20px; }
/* Trailing spacer for the iOS home indicator (Figma System/HomeIndicator 7:60). */
.prism-sheet-safe-area { height: env(safe-area-inset-bottom); }

/* Section 08 settings (IA23) and the block list (IA26). */
.settings-header { display: flex; min-height: 52px; align-items: center; gap: 4px; padding: 0 20px; }
.settings-header h1 { margin: 0; font-size: var(--prism-font-title-20); font-weight: var(--prism-font-weight-bold); line-height: var(--prism-line-title-20); color: var(--prism-color-text-primary); }
.settings-header .text-button { width: 44px; min-height: 44px; font-size: 20px; }
.settings-list { display: grid; margin: 0; padding: 8px 0 24px; list-style: none; }
.settings-list li + li { border-top: 1px solid var(--prism-color-border-subtle); }
.blocked-list { display: grid; margin: 0; padding: 4px 0 24px; list-style: none; }
.blocked-row { display: flex; align-items: center; gap: 14px; padding: 16px 20px; }
.blocked-avatar { display: grid; width: 44px; height: 44px; flex: none; place-items: center; border-radius: 22px; background: var(--prism-color-brand-subtle); }
.blocked-avatar img { width: 22px; height: 22px; }
.blocked-copy { display: grid; min-width: 0; flex: 1; gap: 4px; }
.blocked-copy strong { font-size: var(--prism-font-body-16); font-weight: var(--prism-font-weight-medium); line-height: var(--prism-line-body-16); }
.blocked-date { color: var(--prism-color-text-tertiary); font-size: var(--prism-font-body-14); line-height: var(--prism-line-body-14); }
.blocked-unblock { min-height: var(--prism-touch-min); padding: 4px 12px; 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-caption-12); }
.blocked-unblock:disabled { color: var(--prism-color-text-tertiary); }
/* Sub-view bodies for the recommendation settings, nickname editor and account
   controls. Inputs inherit the shared `.page input` control styling. */
.settings-body { display: grid; gap: 16px; padding: 16px 20px 24px; }
.settings-field { display: grid; gap: 8px; }
.settings-nickname-input { width: 100%; }
.settings-switch.is-on::before { background: var(--prism-color-brand); }
.settings-switch-thumb { position: absolute; top: 9px; left: 3px; width: 25px; height: 25px; border-radius: 50%; background: var(--prism-color-surface); transition: transform .15s ease; }
.settings-switch.is-on .settings-switch-thumb { transform: translateX(20px); }

.page.settings { padding: 8px 0 120px; }
.page.settings { padding-top: 0; }
.page.settings .settings-list { padding-top: 8px; }
.page.settings .settings-item { min-height: 56px; padding: 16px 20px; }

@media (prefers-reduced-motion: reduce) { .settings-switch-thumb { transition: none; } }
/* Figma IA23 4067:13399 visual structure (DEC-021 items unchanged): 56px
   avatar profile row, 10px SectionGap, "맞춤 설정" label, plain rows. */
.page.settings .settings-list li + li { border-top: 0; }
.settings-profile { min-height: 96px; padding: 16px 16px 24px 20px; gap: 14px; }
.settings-profile .settings-label { font-size: var(--prism-font-title-18); font-weight: var(--prism-font-weight-bold); line-height: var(--prism-line-title-18); }
.settings-profile .settings-description { font-size: var(--prism-font-caption-12); line-height: var(--prism-line-caption-12); }
.settings-avatar { width: 56px; height: 56px; flex: none; border-radius: 28px; background: var(--prism-color-border-default) url("public/brand/icons/user-round.svg") center / 28px no-repeat; }
.settings-section-gap { height: 10px; background: var(--prism-color-bg-subtle); }
.settings-section-label { padding: 24px 20px 4px; color: var(--prism-color-text-tertiary); font-size: var(--prism-font-body-14); line-height: var(--prism-line-body-14); }
.page.settings .settings-item { min-height: 56px; padding: 16px 20px; }
.page.settings .settings-item--plain { min-height: 56px; }
.settings-item:hover { transform: none; filter: none; }
/* SectionGap 4059:513 spans the full 393px frame, past the 20px page gutter. */
.page.settings .settings-section-gap { margin: 0 -20px; }
