/* 点子/应援的分页、页签与二级页。只用 site.css 里的主题变量，两个站共用。 */
.tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px 0; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: none; border: 1px solid var(--line); background: transparent; color: var(--muted); border-radius: 999px; padding: 6px 14px; font: inherit; font-size: 13px; cursor: pointer; }
.tabs button.on { background: var(--gold); border-color: var(--gold); color: var(--tab-active-text, #1a1408); font-weight: 600; }
.msg-tabs { padding: 8px 14px; border-bottom: 1px solid var(--line); }
.thread .older, .thread .fold { align-self: center; border: 0; background: none; color: var(--muted); font: inherit; font-size: 12px; padding: 4px 12px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.thread .fold { align-self: flex-start; margin-left: 40px; }

.ideas .idea-h { list-style: none; margin: 14px 0 2px; font-size: 12px; letter-spacing: .12em; color: var(--muted); }
.ideas .idea-h:first-child { margin-top: 0; }
.ideas .idea-all { list-style: none; text-align: center; margin-top: 8px; }
.ideas .empty { list-style: none; padding: 18px 0; }
.idea .ribbon { display: inline-block; margin-bottom: 4px; padding: 1px 8px; border-radius: 999px; background: var(--gold); color: var(--tab-active-text, #1a1408); font-size: 11px; letter-spacing: .08em; font-weight: 600; }
.idea .ribbon.lite { background: transparent; border: 1px solid var(--gold); color: var(--gold); }
.idea.adopted { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset, 0 6px 22px -14px var(--gold); }
.idea .note.use { color: var(--cream); opacity: .85; }
.idea .note.use a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }

html.sheet-open, html.sheet-open body { overflow: hidden; }
.sheet { position: fixed; inset: 0; z-index: 60; background: var(--night); overflow-y: auto; overscroll-behavior: contain; }
.sheet[hidden] { display: none; }
.sheet header { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--night); border-bottom: 1px solid var(--line); }
.sheet header h2 { margin: 0; font: 18px var(--serif); }
.sheet header .back { color: var(--gold); text-decoration: none; font-size: 14px; }
.sheet-body { max-width: var(--col); margin: 0 auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.sheet .search { width: 100%; box-sizing: border-box; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); color: var(--cream); font: inherit; }
.sheet .info { margin: 0; font-size: 12px; color: var(--muted); }
.sheet .ideas { margin-top: 0; }
.sheet .more { align-self: center; margin-bottom: 40px; }
