/* Figma Activity section 4091:13952 and M01 thought-buffer sheets. */
.page.activity { display:flex; flex-direction:column; min-height:calc(100dvh - 150px - env(safe-area-inset-bottom)); overflow:hidden; }
.page.activity { padding:0 0 calc(120px + env(safe-area-inset-bottom)); }
.activity-scroll-pane { flex:1 1 auto; min-height:0; overflow-y:auto; overscroll-behavior:contain; padding-bottom:calc(128px + env(safe-area-inset-bottom)); -webkit-overflow-scrolling:touch; }
.activity-tabs { flex:none; position:sticky; top:0; z-index:8; background:var(--prism-color-surface); }
.activity-saved-list,.activity-comments-list,.activity-thought-list { display:flex; flex-direction:column; gap:0; padding:0 0 24px; list-style:none; }
.activity-saved-entry { position:relative; }
.home-save-active { color:var(--prism-color-brand); }
.home-save-active:disabled { opacity:.5; }
.activity-comments-list > li { list-style:none; }
.activity-comment-body { display:block; width:100%; border:0; background:transparent; padding:0; color:inherit; font:inherit; text-align:left; }
.activity-comment-edit { padding:16px 0; border-bottom:1px solid var(--prism-color-border-subtle); }
.activity-comment-edit textarea { width:100%; min-height:100px; border:1px solid var(--prism-color-border-subtle); border-radius:var(--prism-radius-md); padding:12px; font:inherit; }
.activity-thought-item { display:flex; width:100%; flex-direction:column; align-items:flex-start; gap:8px; border:1px solid var(--prism-color-border-subtle); border-radius:var(--prism-radius-lg); padding:16px; background:var(--prism-color-surface); text-align:left; }
.activity-thought-item p { margin:0; color:var(--prism-color-text-secondary); }
.thought-record-detail { display:flex; flex-direction:column; gap:16px; padding:12px 0 160px; }
.thought-record-detail > header { display:flex; align-items:center; gap:12px; }
.thought-record-detail > header h2 { flex:1; font-size:var(--prism-font-title-18); }
.thought-linked-issue { display:flex; flex-direction:column; gap:8px; padding:14px; border:1px solid var(--prism-color-border-subtle); border-radius:var(--prism-radius-lg); }
.thought-linked-issue span,.thought-record-date { color:var(--prism-color-text-secondary); font-size:var(--prism-font-caption-12); }
.thought-answer { padding:12px 0; border-bottom:1px solid var(--prism-color-border-subtle); }
.thought-answer h3,.thought-edit-form h3 { font-size:var(--prism-font-caption-12); color:var(--prism-color-text-secondary); }
.thought-answer p { line-height:1.65; white-space:pre-wrap; }
.thought-record-detail footer { display:flex; gap:12px; position:sticky; bottom:0; padding:12px 0 calc(12px + env(safe-area-inset-bottom)); background:var(--prism-color-surface); }
.thought-record-detail footer button { flex:1; min-height:52px; }
.thought-edit-form { display:flex; flex-direction:column; gap:16px; padding-bottom:120px; }
.thought-edit-form textarea,.thought-edit-form input { width:100%; min-height:48px; border:1px solid var(--prism-color-border-subtle); border-radius:var(--prism-radius-md); padding:12px; font:inherit; }
.thought-edit-form textarea { min-height:120px; resize:vertical; }
.thought-edit-form > button { position:sticky; bottom:calc(8px + env(safe-area-inset-bottom)); min-height:52px; }
.thought-leave-layer { position: relative; z-index: 70; }
.thought-buffer-overlay { position:fixed; inset:0; z-index:60; display:flex; align-items:flex-end; background:rgb(20 25 40 / 24%); }
.thought-buffer-sheet { width:100%; max-height:88dvh; overflow:auto; padding:8px 20px max(34px, env(safe-area-inset-bottom)); border-radius:24px 24px 0 0; background:var(--prism-color-surface); box-shadow:var(--prism-shadow-sheet); }
.thought-buffer-handle { width:36px; height:4px; margin:0 auto 12px; border-radius:4px; background:var(--prism-color-border-default); }
.thought-buffer-header { display:flex; align-items:center; justify-content:space-between; height:44px; }
.thought-buffer-header h2 { display:flex; align-items:center; gap:6px; margin:0; font-size:var(--prism-font-title-16); font-weight:var(--prism-font-weight-bold); line-height:var(--prism-line-title-16); }
.thought-buffer-mark { width:20px; height:20px; filter:none; }
.thought-buffer-header button { width:44px; height:44px; border:0; background:transparent; font-size:24px; }
.thought-buffer-context,.thought-buffer-private { color:var(--prism-color-text-secondary); font-size:var(--prism-font-caption-12); }
.thought-buffer-private { display:flex; align-items:center; gap:6px; margin:0; }
.thought-buffer-private img { width:14px; height:14px; filter:none; }
.thought-buffer-pager { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:8px 0 24px; color:var(--prism-color-text-tertiary); font-size:var(--prism-font-caption-12); }
.thought-buffer-pager div { display:flex; flex:1; gap:6px; }
.thought-buffer-pager span.active { color:var(--prism-color-brand); }
.thought-buffer-pager div span { height:4px; flex:1; border-radius:4px; background:var(--prism-color-border-default); }
.thought-buffer-pager div span.active { background:var(--prism-color-brand); }
.thought-buffer-count { flex:none; }
.thought-buffer-step { display:flex; flex-direction:column; gap:20px; }
.thought-buffer-step h3 { margin:0; font-size:var(--prism-font-title-18); font-weight:var(--prism-font-weight-bold); line-height:var(--prism-line-title-18); }
.thought-buffer-step > h3 + p { margin-top:-16px; }
.thought-buffer-step > p { margin:0; color:var(--prism-color-text-secondary); font-size:var(--prism-font-caption-12); line-height:18px; }
.thought-buffer-chips { display:flex; flex-wrap:wrap; gap:8px; }
.thought-chip { display:inline-flex; align-items:center; gap:6px; min-height:44px; border:1px solid var(--prism-color-border-default); border-radius:var(--prism-radius-full); padding:0 16px; background:var(--prism-color-surface); color:var(--prism-color-text-primary); font-size:var(--prism-font-body-15); }
.thought-chip.is-custom { border-style:dashed; border-color:var(--prism-color-brand); color:var(--prism-color-brand); }
.thought-chip-check, .thought-chip-plus { width:16px; height:16px; filter:none; }
.thought-chip.is-selected { border-color:var(--prism-color-brand); background:var(--prism-color-brand-subtle); color:var(--prism-color-brand); }
.thought-buffer-step textarea { width:100%; min-height:120px; border:1px solid var(--prism-color-border-subtle); border-radius:var(--prism-radius-md); padding:12px; font:inherit; }
.thought-buffer-step small { display:block; margin:-34px 12px 0 0; text-align:right; color:var(--prism-color-text-tertiary); font-size:var(--prism-font-caption-12); pointer-events:none; }
.thought-buffer-step footer { display:flex; flex-wrap:wrap; align-items:center; gap:12px; padding-top:0; }
.thought-buffer-step footer .prism-button { flex:1; }
.thought-buffer-step footer button { min-height:52px; }
.thought-saved-toast { position:fixed; z-index:70; left:20px; right:20px; bottom:calc(110px + env(safe-area-inset-bottom)); display:flex; justify-content:space-between; padding:14px 16px; border-radius:var(--prism-radius-lg); background:var(--prism-color-surface); box-shadow:var(--prism-shadow-sheet); }
