/* * MuseHub Component Classes * * Reusable UI components built on top of the design tokens in tokens.css. * Every selector here uses var(--*) tokens exclusively — no hardcoded colors. * * Component inventory: * Base reset, body * Links * Badges (.badge, .badge-open/closed/merged/clean/dirty/active) * Buttons (.btn, .btn-primary/danger/secondary/ghost) * Cards (.card, .artifact-card) * Tables (.table) * Forms (.form-group, .form-label, .form-input, .form-select, .form-hint) * Token form (.token-form) * Grids (.grid-auto, .grid-2, .grid-3, .artifact-grid) * Modals (.modal, .modal-backdrop, .modal-panel, .modal-header, .modal-footer) * Tabs (.tabs, .tab-list, .tab, .tab-panel) * Tooltips (.tooltip, [data-tooltip]) * Rows (.commit-row, .proposal-row, .issue-row, .session-row, .session-row-active) * Session enrichment(.session-row-header, .session-row-intent, .session-notes-preview, * .session-row-participants, .participant-stack, .participant-avatar, * .participant-overflow, .session-no-participants, * .session-commit-pill, .session-location-tag) * Meta rows (.meta-row, .meta-item, .meta-label, .meta-value) * Misc utilities (.loading, .error, .empty-state, .session-live, .session-live-pulse) * Code blocks (pre, code) * Labels (.label, .label-*) */ /* ------------------------------------------------------------------------- * Base reset * ------------------------------------------------------------------------- */ *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; } html { -webkit-text-size-adjust: 100%; } body { font-family: var(--font-sans); font-size: var(--font-size-base); line-height: var(--line-height-normal); background-color: var(--bg-base); color: var(--text-secondary); min-height: 100vh; } /* ------------------------------------------------------------------------- * Links * ------------------------------------------------------------------------- */ a { color: var(--color-accent-link); text-decoration: none; } a:hover { text-decoration: none; } /* ------------------------------------------------------------------------- * Headings * ------------------------------------------------------------------------- */ h1 { font-size: 26px; font-weight: var(--font-weight-bold); letter-spacing: -0.5px; color: var(--text-primary); margin-bottom: var(--space-3); } h2 { font-size: 20px; font-weight: var(--font-weight-semibold); letter-spacing: -0.3px; color: var(--text-primary); margin-bottom: var(--space-2); } h3 { font-size: var(--font-size-md); font-weight: var(--font-weight-semibold); color: var(--text-primary); margin-bottom: var(--space-1); } /* ------------------------------------------------------------------------- * Badges * ------------------------------------------------------------------------- */ .badge { display: inline-block; padding: 2px var(--space-2); border-radius: var(--radius-full); font-family: var(--font-mono); font-size: var(--font-size-xs); font-weight: var(--font-weight-semibold); line-height: var(--line-height-tight); white-space: nowrap; letter-spacing: 0.3px; } .badge-open { background: var(--color-accent-muted); color: var(--text-primary); } .badge-closed { background: var(--color-neutral); color: var(--text-primary); } .badge-merged { background: var(--color-purple-bg); color: var(--text-primary); } .badge-active { background: var(--color-success-bg); color: var(--text-primary); } .badge-clean { background: var(--color-success-bg); color: var(--text-primary); } .badge-dirty { background: var(--color-warning-bg); color: var(--text-primary); } .badge-error { background: var(--color-danger-bg); color: var(--text-primary); } .badge-dim-harmonic { background: var(--dim-harmonic-muted); color: var(--text-primary); } .badge-dim-rhythmic { background: var(--dim-rhythmic-muted); color: var(--text-primary); } .badge-dim-melodic { background: var(--dim-melodic-muted); color: var(--text-primary); } .badge-dim-structural{ background: var(--dim-structural-muted);color: var(--text-primary); } .badge-dim-dynamic { background: var(--dim-dynamic-muted); color: var(--text-primary); } /* ------------------------------------------------------------------------- * Buttons * ------------------------------------------------------------------------- */ .btn { display: inline-flex; align-items: center; gap: var(--space-2); padding: 6px var(--space-4); border-radius: var(--radius-base); font-family: var(--font-sans); font-size: var(--font-size-sm); font-weight: var(--font-weight-medium); line-height: var(--line-height-tight); cursor: pointer; border: 1px solid transparent; transition: background var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast), color var(--transition-fast); text-decoration: none; white-space: nowrap; user-select: none; letter-spacing: 0; svg { flex-shrink: 0; } } .btn:disabled { opacity: 0.4; cursor: not-allowed; } .btn-primary { background: var(--color-accent); color: #fff; border-color: var(--color-accent); &:not(:disabled):hover { opacity: 0.88; transform: translateY(-1px); text-decoration: none; } } .btn-create { background: var(--color-success-bg); color: #fff; border-color: var(--color-success-bg); &:not(:disabled):hover { background: var(--color-success); border-color: var(--color-success); text-decoration: none; } } .btn-danger { background: var(--color-danger-bg); color: #fff; border-color: var(--color-danger-bg); &:not(:disabled):hover { background: var(--color-danger); border-color: var(--color-danger); text-decoration: none; } } .btn-secondary { background: var(--bg-overlay); color: var(--text-secondary); border-color: var(--border-default); &:not(:disabled):hover { background: var(--bg-hover); color: var(--text-primary); border-color: var(--border-muted); text-decoration: none; } } .btn-ghost { background: transparent; color: var(--text-secondary); border-color: var(--border-default); &:not(:disabled):hover { background: var(--bg-overlay); color: var(--text-primary); text-decoration: none; } } .btn-accent { background: var(--color-accent-muted); color: var(--text-primary); border-color: var(--color-accent-muted); &:not(:disabled):hover { background: var(--color-accent); border-color: var(--color-accent); text-decoration: none; } } .btn-sm { padding: 4px var(--space-3); font-size: var(--font-size-xs); border-radius: var(--radius-sm); } /* ------------------------------------------------------------------------- * Cards * ------------------------------------------------------------------------- */ .card { background: transparent; border: 1px solid var(--border-subtle); border-radius: var(--radius-sm); padding: var(--space-3); margin-bottom: var(--space-3); } .artifact-card { background: var(--bg-overlay); border: 1px solid var(--border-default); border-radius: var(--radius-base); padding: 10px; display: flex; flex-direction: column; gap: var(--space-2); } .artifact-card img { width: 100%; border-radius: var(--radius-sm); border: 1px solid var(--border-default); } .artifact-card audio { width: 100%; } .artifact-card .path { font-size: var(--font-size-sm); color: var(--text-muted); word-break: break-all; } /* ------------------------------------------------------------------------- * Repo card grid (explore page) * ------------------------------------------------------------------------- */ .repo-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; } .repo-card { position: relative; background: transparent; border: 1px solid var(--border-subtle); border-radius: var(--radius-sm); padding: var(--space-3); cursor: pointer; transition: border-color 0.15s, background 0.15s; text-decoration: none; display: flex; flex-direction: column; gap: var(--space-2); color: inherit; &:hover { border-color: var(--border-default); background: rgba(255,255,255,0.02); text-decoration: none; color: inherit; } } .repo-card-header { display: flex; align-items: center; justify-content: space-between; } .repo-card-name { font-weight: var(--font-weight-semibold); font-size: var(--font-size-sm); color: var(--text-primary); letter-spacing: -0.01em; } .repo-card-sep { color: var(--text-muted); font-weight: var(--font-weight-regular); margin: 0 1px; } .repo-card-desc { font-size: var(--font-size-xs); color: var(--text-muted); line-height: var(--line-height-relaxed); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } .repo-card-pills { display: flex; gap: 5px; flex-wrap: wrap; margin-top: var(--space-1); } .repo-meta-pill { display: inline-flex; align-items: center; gap: 3px; font-family: var(--font-mono); font-size: 11px; padding: 2px 8px; border-radius: var(--radius-full); background: var(--bg-overlay); color: var(--text-muted); border: 1px solid var(--border-subtle); } .tag-pill { display: inline-flex; align-items: center; font-family: var(--font-mono); font-size: 11px; padding: 2px 8px; border-radius: var(--radius-full); background: rgba(79, 142, 247, 0.08); color: var(--color-accent-link); border: 1px solid rgba(79, 142, 247, 0.25); } .tag-pill-more { opacity: 0.6; } .repo-card-footer { display: flex; align-items: center; gap: var(--space-4); margin-top: auto; padding-top: var(--space-2); border-top: 1px solid var(--border-subtle); } .repo-card-stat { display: inline-flex; align-items: center; gap: 4px; font-size: var(--font-size-xs); color: var(--text-muted); svg { opacity: 0.7; } } /* ------------------------------------------------------------------------- * Tables * ------------------------------------------------------------------------- */ .table { width: 100%; border-collapse: collapse; font-size: var(--font-size-base); } .table th { text-align: left; padding: var(--space-2) var(--space-3); font-size: var(--font-size-xs); font-weight: var(--font-weight-semibold); color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; border-bottom: 1px solid var(--border-default); } .table td { padding: var(--space-2) var(--space-3); border-bottom: 1px solid var(--border-subtle); color: var(--text-secondary); vertical-align: top; } .table tr:last-child td { border-bottom: none; } .table tr:hover td { background: var(--bg-overlay); } /* ------------------------------------------------------------------------- * Forms * ------------------------------------------------------------------------- */ .form-group { display: flex; flex-direction: column; gap: var(--space-1); margin-bottom: var(--space-4); } .form-label { font-size: var(--font-size-sm); font-weight: var(--font-weight-medium); color: var(--text-secondary); } .form-input, .form-select, select, input[type="text"], input[type="password"], input[type="email"], input[type="search"], textarea { background: var(--bg-base); color: var(--text-secondary); border: 1px solid var(--border-default); border-radius: var(--radius-base); padding: var(--space-2) var(--space-3); font-size: var(--font-size-base); font-family: var(--font-sans); width: 100%; transition: border-color var(--transition-base); } .form-input:focus, .form-select:focus, select:focus, input[type="text"]:focus, input[type="password"]:focus, input[type="email"]:focus, input[type="search"]:focus, textarea:focus { outline: none; border-color: var(--color-accent); } .form-hint { font-size: var(--font-size-xs); color: var(--text-muted); } /* Token authentication form */ .token-form { background: var(--bg-surface); border: 1px solid var(--color-orange); border-radius: var(--radius-base); padding: var(--space-4); margin-bottom: var(--space-5); } .token-form p { font-size: var(--font-size-base); color: var(--text-muted); margin-bottom: var(--space-2); } /* ------------------------------------------------------------------------- * Grids * ------------------------------------------------------------------------- */ .grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--space-3); } .grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); } .grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: var(--space-3); } .artifact-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--space-3); margin-top: var(--space-3); } /* ------------------------------------------------------------------------- * Modals * ------------------------------------------------------------------------- */ .modal { display: none; position: fixed; inset: 0; z-index: var(--z-modal); } .modal.is-open { display: flex; align-items: center; justify-content: center; } .modal-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.6); z-index: var(--z-overlay); } .modal-panel { position: relative; z-index: var(--z-modal); background: var(--bg-surface); border: 1px solid var(--border-default); border-radius: var(--radius-md); box-shadow: var(--shadow-xl); padding: var(--space-6); max-width: 560px; width: 90%; max-height: 80vh; overflow-y: auto; } .modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-4); } .modal-footer { display: flex; gap: var(--space-2); justify-content: flex-end; margin-top: var(--space-4); padding-top: var(--space-4); border-top: 1px solid var(--border-default); } /* ------------------------------------------------------------------------- * Tabs * ------------------------------------------------------------------------- */ .tabs { margin-bottom: var(--space-4); } .tab-list { display: flex; border-bottom: 1px solid var(--border-default); gap: 0; list-style: none; } .tab { padding: var(--space-2) var(--space-4); font-size: var(--font-size-base); font-weight: var(--font-weight-medium); color: var(--text-muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color var(--transition-base), border-color var(--transition-base); white-space: nowrap; } .tab:hover { color: var(--text-primary); } .tab.is-active { color: var(--text-primary); border-bottom-color: var(--color-accent); } .tab-panel { display: none; padding-top: var(--space-4); } .tab-panel.is-active { display: block; } /* ------------------------------------------------------------------------- * Tooltips (CSS-only via data-tooltip attribute) * ------------------------------------------------------------------------- */ [data-tooltip] { position: relative; } [data-tooltip]::after { content: attr(data-tooltip); position: absolute; bottom: calc(100% + var(--space-1)); left: 50%; transform: translateX(-50%); background: var(--bg-overlay); color: var(--text-primary); border: 1px solid var(--border-default); border-radius: var(--radius-sm); padding: 4px var(--space-2); font-size: var(--font-size-xs); white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity var(--transition-base); z-index: var(--z-tooltip); box-shadow: var(--shadow-md); } [data-tooltip]:hover::after { opacity: 1; } /* Explicit .tooltip class for programmatic usage */ .tooltip { position: relative; } /* ------------------------------------------------------------------------- * List rows — commits, proposals, issues, sessions * ------------------------------------------------------------------------- */ .commit-row, .proposal-row, .issue-row, .session-row { display: flex; align-items: flex-start; gap: var(--space-3); padding: 10px 0; border-bottom: 1px solid var(--border-subtle); } .commit-row:last-child, .proposal-row:last-child, .issue-row:last-child, .session-row:last-child { border-bottom: none; } .commit-sha { font-family: var(--font-mono); font-size: 13px; color: var(--color-accent); white-space: nowrap; } .commit-msg { flex: 1; font-size: var(--font-size-base); } .commit-meta { font-size: var(--font-size-sm); color: var(--text-muted); white-space: nowrap; } /* Live session indicator */ .session-live { display: inline-block; width: 8px; height: 8px; border-radius: var(--radius-full); background: var(--color-success); box-shadow: 0 0 6px var(--color-success); margin-right: var(--space-1); vertical-align: middle; flex-shrink: 0; } /* Pulsing animation for active sessions */ @keyframes session-pulse { 0%, 100% { opacity: 1; box-shadow: 0 0 6px var(--color-success); } 50% { opacity: 0.55; box-shadow: 0 0 12px var(--color-success); } } .session-live-pulse { animation: session-pulse 1.6s ease-in-out infinite; } /* Active session row highlight */ .session-row-active { background: color-mix(in srgb, var(--color-success) 4%, transparent); border-radius: var(--radius-sm); padding-left: var(--space-2); padding-right: var(--space-2); } /* Session row header line */ .session-row-header { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-2); font-size: 14px; color: var(--text-primary); margin-bottom: 4px; } /* Intent line */ .session-row-intent { font-size: 13px; color: var(--text-muted); margin-top: 2px; } /* Notes preview — one-line subtitle below intent */ .session-notes-preview { font-size: 12px; color: var(--text-muted); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 600px; font-style: italic; } /* Participant avatars row */ .session-row-participants { margin-top: 6px; } /* Stacked participant avatar circles */ .participant-stack { display: flex; align-items: center; } .participant-avatar { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: var(--radius-full); font-size: 11px; font-weight: var(--font-weight-semibold); color: #fff; text-decoration: none; border: 2px solid var(--bg-card); margin-left: -6px; transition: transform 0.15s ease, z-index 0s; flex-shrink: 0; } .participant-avatar:first-child { margin-left: 0; } .participant-avatar:hover { transform: translateY(-2px); text-decoration: none; } /* "+N more" overflow pill */ .participant-overflow { display: inline-flex; align-items: center; justify-content: center; height: 26px; padding: 0 var(--space-2); border-radius: var(--radius-full); font-size: 11px; font-weight: var(--font-weight-semibold); color: var(--text-muted); background: var(--bg-overlay); border: 2px solid var(--bg-card); margin-left: -6px; white-space: nowrap; } /* Empty participant placeholder */ .session-no-participants { color: var(--text-muted); font-size: 13px; } /* Commit count pill */ .session-commit-pill { display: inline-flex; align-items: center; gap: 3px; padding: 1px var(--space-2); border-radius: var(--radius-full); font-size: var(--font-size-xs); font-weight: var(--font-weight-semibold); background: var(--bg-overlay); color: var(--text-secondary); white-space: nowrap; } /* Location tag */ .session-location-tag { font-size: var(--font-size-xs); color: var(--text-muted); white-space: nowrap; } /* ------------------------------------------------------------------------- * Metadata rows (key-value pairs, e.g. commit detail sidebar) * ------------------------------------------------------------------------- */ .meta-row { display: flex; gap: var(--space-6); flex-wrap: wrap; margin-bottom: var(--space-3); } .meta-item { display: flex; flex-direction: column; gap: var(--space-1); } .meta-label { font-size: var(--font-size-xs); color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; } .meta-value { font-size: var(--font-size-base); color: var(--text-primary); } /* ------------------------------------------------------------------------- * Labels (issue/proposal taxonomy labels, similar to GitHub labels) * ------------------------------------------------------------------------- */ .label { display: inline-block; padding: 1px var(--space-2); border-radius: var(--radius-full); font-size: var(--font-size-xs); background: var(--bg-hover); color: var(--text-secondary); margin: 2px; } /* Branch indicator pill — from_branch / to_branch on proposal rows */ .branch-pill { display: inline-block; padding: 1px var(--space-2); border-radius: var(--radius-full); font-size: 11px; font-family: var(--font-mono); background: var(--bg-overlay); color: var(--color-accent); border: 1px solid var(--border-subtle); white-space: nowrap; overflow: hidden; max-width: 200px; text-overflow: ellipsis; } /* Clickable label pill for client-side filtering */ .label-pill { transition: opacity 0.1s, outline 0.1s; } .label-pill:hover { opacity: 0.8; outline: 1px solid var(--color-accent); } /* Active (selected) label filter pill */ .label-active { outline: 2px solid var(--color-accent); background: color-mix(in srgb, var(--color-accent) 15%, var(--bg-hover)); color: var(--color-accent); } /* ------------------------------------------------------------------------- * Issue body preview (subtitle line under issue title) * ------------------------------------------------------------------------- */ .issue-preview { font-size: var(--font-size-sm); color: var(--text-muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } /* ------------------------------------------------------------------------- * Open/Closed tabs and sort buttons for issue list page * ------------------------------------------------------------------------- */ .tab-btn { background: none; border: none; border-bottom: 2px solid transparent; padding: var(--space-2) var(--space-4); font-size: var(--font-size-sm); color: var(--text-muted); cursor: pointer; transition: color 0.15s, border-color 0.15s; } .tab-btn:hover { color: var(--text-primary); } .tab-btn.tab-active { color: var(--text-primary); border-bottom-color: var(--color-accent); font-weight: 600; } .tab-count { display: inline-block; background: var(--bg-hover); border-radius: var(--radius-full); font-size: var(--font-size-xs); padding: 0 6px; margin-left: 4px; color: var(--text-muted); } .sort-btn { font-size: var(--font-size-xs); padding: 2px var(--space-2); } .sort-btn.sort-active { color: var(--text-primary); font-weight: 600; } /* ------------------------------------------------------------------------- * Code blocks * ------------------------------------------------------------------------- */ pre { background: var(--code-output-bg); border: 1px solid var(--border-default); border-radius: var(--radius-base); padding: var(--space-3); font-size: 13px; font-family: var(--font-mono); overflow-x: auto; white-space: pre-wrap; word-break: break-word; color: #abb2bf; line-height: 1.65; } code { font-family: var(--font-mono); font-size: 0.88em; background: var(--bg-overlay); border: 1px solid var(--border-subtle); padding: 1px 6px; border-radius: 4px; } pre code { background: transparent; border: none; padding: 0; font-size: inherit; color: inherit; } /* ------------------------------------------------------------------------- * State / feedback * ------------------------------------------------------------------------- */ .loading { color: var(--text-muted); font-size: var(--font-size-base); } .error { color: var(--color-danger); font-size: var(--font-size-base); margin: var(--space-2) 0; } .empty-state { text-align: center; padding: var(--space-12) var(--space-6); color: var(--text-muted); font-size: var(--font-size-base); } .empty-state .empty-icon { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: var(--radius-lg); background: var(--bg-overlay); border: 1px solid var(--border-subtle); margin: 0 auto var(--space-4); color: var(--text-muted); svg, i[data-lucide] { width: 24px; height: 24px; stroke: currentColor; } } .empty-title { font-size: var(--font-size-md); font-weight: var(--font-weight-semibold); color: var(--text-primary); margin-bottom: var(--space-2); letter-spacing: -0.01em; } .empty-desc { font-size: var(--font-size-sm); color: var(--text-muted); margin-bottom: var(--space-5); max-width: 360px; margin-left: auto; margin-right: auto; line-height: var(--line-height-relaxed); } /* ------------------------------------------------------------------------- * Commit list (repo page) * ------------------------------------------------------------------------- */ .commit-list { display: flex; flex-direction: column; gap: 0; } .commit-row { display: grid; grid-template-columns: 80px 1fr auto; align-items: center; gap: var(--space-3); padding: var(--space-3) 0; border-bottom: 1px solid var(--border-subtle); } .commit-row:last-child { border-bottom: none; } .commit-sha { font-family: var(--font-mono); font-size: var(--font-size-sm); color: var(--color-accent); white-space: nowrap; } .commit-msg { font-size: var(--font-size-sm); color: var(--text-secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: flex; align-items: center; gap: var(--space-2); } .commit-msg a { color: var(--text-primary); } .commit-msg a:hover { color: var(--color-accent); text-decoration: none; } .commit-meta { font-size: var(--font-size-xs); color: var(--text-muted); white-space: nowrap; flex-shrink: 0; display: flex; align-items: center; gap: var(--space-1); } /* diff view */ .diff-track-row { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-2) var(--space-3); border-radius: var(--radius-sm); margin-bottom: var(--space-1); } .diff-track-added { background: rgba(63,185,80,0.1); border-left: 3px solid var(--color-success); } .diff-track-removed { background: rgba(248,81,73,0.1); border-left: 3px solid var(--color-danger); } .diff-track-changed { background: rgba(88,166,255,0.1); border-left: 3px solid var(--color-accent); } .diff-sign { font-size: var(--font-size-lg); font-weight: var(--font-weight-bold); width: 20px; flex-shrink: 0; } .diff-sign-add { color: var(--color-success); } .diff-sign-remove { color: var(--color-danger); } .diff-sign-change { color: var(--color-accent); } /* insights / analytics */ .insights-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--space-4); margin-bottom: var(--space-4); } .stat-card { background: var(--bg-surface); border: 1px solid var(--border-default); border-radius: var(--radius-base); padding: var(--space-4); text-align: center; } .stat-card .stat-value { font-family: var(--font-mono); font-size: var(--font-size-2xl); font-weight: var(--font-weight-bold); color: var(--color-accent); display: block; line-height: 1.1; } .stat-card .stat-label { font-size: var(--font-size-sm); color: var(--text-muted); margin-top: var(--space-1); } /* contribution heatmap (weekly squares) */ .heatmap-grid { display: flex; gap: 3px; overflow-x: auto; } .heatmap-week { display: flex; flex-direction: column; gap: 3px; } .heatmap-day { width: 12px; height: 12px; border-radius: 2px; background: var(--bg-overlay); } .heatmap-day[data-count="0"] { background: var(--bg-overlay); } .heatmap-day[data-count="1"] { background: var(--dim-rhythmic-muted); } .heatmap-day[data-count="2"] { background: var(--dim-rhythmic); opacity: 0.6; } .heatmap-day[data-count="3"] { background: var(--dim-rhythmic); } .heatmap-day[data-count="4"] { background: var(--color-success); } /* social / comments */ .comment-thread { border-top: 1px solid var(--border-subtle); margin-top: var(--space-4); padding-top: var(--space-4); } .comment-item { display: flex; gap: var(--space-3); padding: var(--space-3) 0; border-bottom: 1px solid var(--border-subtle); } .comment-avatar { width: 32px; height: 32px; border-radius: var(--radius-full); background: var(--bg-overlay); border: 1px solid var(--border-default); display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; color: var(--text-muted); } .comment-body { flex: 1; min-width: 0; } .comment-meta { font-size: var(--font-size-xs); color: var(--text-muted); margin-bottom: var(--space-1); } .comment-text { font-size: var(--font-size-sm); color: var(--text-secondary); white-space: pre-wrap; } .comment-form { display: flex; flex-direction: column; gap: var(--space-3); margin-top: var(--space-4); padding-top: var(--space-3); border-top: 1px solid var(--border-subtle); } .reactions-row { display: flex; gap: var(--space-2); flex-wrap: wrap; margin-top: var(--space-2); } .reaction-btn { background: var(--bg-overlay); border: 1px solid var(--border-subtle); border-radius: var(--radius-full); padding: 2px var(--space-2); cursor: pointer; font-size: var(--font-size-sm); color: var(--text-secondary); transition: background var(--transition-fast); } .reaction-btn:hover { background: var(--bg-hover); } .reaction-btn.active { background: var(--color-accent-muted); border-color: var(--color-accent); color: var(--text-primary); } /* follow button */ .follow-btn { background: var(--bg-overlay); border: 1px solid var(--border-default); border-radius: var(--radius-base); padding: 5px var(--space-4); cursor: pointer; font-size: var(--font-size-sm); color: var(--text-secondary); transition: background var(--transition-fast), border-color var(--transition-fast); } .follow-btn.following { background: var(--color-success-bg); border-color: var(--color-success-bg); color: white; } /* notification badge */ .notif-badge { position: absolute; top: -4px; right: -4px; background: var(--color-danger); color: white; font-size: 10px; border-radius: var(--radius-full); min-width: 16px; height: 16px; display: flex; align-items: center; justify-content: center; padding: 0 4px; } /* --------------------------------------------------------------------------- * Analysis dashboard grid * Used by analysis.html — 10 dimension summary cards at a glance. * --------------------------------------------------------------------------- */ .analysis-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; margin-top: 4px; } .analysis-card { background: var(--bg-surface); border: 1px solid var(--border-default); border-radius: 8px; padding: 16px; display: flex; flex-direction: column; gap: 6px; transition: border-color 0.15s, background 0.15s; color: inherit; text-decoration: none; } .analysis-card:hover { border-color: var(--color-accent); background: var(--color-surface-raised); text-decoration: none; } .card-emoji { font-size: 22px; } .card-dim { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.6px; } .card-metric { font-size: 18px; font-weight: 700; color: var(--color-text); word-break: break-word; } .card-sub { font-size: 12px; color: var(--text-muted); } .card-spark { font-size: 14px; color: var(--color-success); letter-spacing: 1px; margin-top: 2px; } /* waveform placeholder */ .waveform-bar { display: flex; align-items: flex-end; gap: 2px; height: 48px; overflow: hidden; } .waveform-bar .wave-col { flex: 1; background: var(--color-accent); opacity: 0.6; border-radius: 2px 2px 0 0; min-height: 4px; transition: height 0.1s; } /* ── Reaction bar ────────────────────────────────────────────────────────── */ .reaction-bar { display: flex; flex-wrap: wrap; gap: 6px; padding: var(--space-3) 0; } .reaction-btn { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border: 1px solid var(--border-subtle, rgba(255,255,255,0.12)); border-radius: 20px; background: var(--bg-overlay, rgba(255,255,255,0.05)); color: var(--text-primary, #e6edf3); font-size: 16px; cursor: pointer; transition: background 0.15s, border-color 0.15s, transform 0.1s; line-height: 1; user-select: none; } .reaction-btn:hover { background: var(--bg-raised, rgba(255,255,255,0.1)); border-color: var(--color-accent, #58a6ff); transform: scale(1.08); } .reaction-btn--active { background: rgba(79, 142, 247, 0.15); border-color: var(--color-accent); } .reaction-count { font-size: 12px; font-weight: 600; color: var(--text-secondary, #8b949e); min-width: 12px; } .reaction-btn--active .reaction-count { color: var(--color-accent, #58a6ff); } /* ── HTMX loading indicator — managed in _tokens.scss ──────────────────── */ /* ========================================================================= * Muse protocol design language components * ========================================================================= */ /* ------------------------------------------------------------------------- * Top-accent cards * Cards with a 3px colored top border, mirroring the capability showcase * cards from the Muse protocol site. Works on top of .card or standalone. * * Usage: