/* === Sapphire Bazaar — Shared Dark Theme === */

/* ── Browse View ── */
.bzr-browse { width: 100%; }

/* Single topbar: filters left, search right */
.bzr-topbar {
    display: flex; align-items: center; gap: 0.4rem;
    margin-bottom: 0.6rem; flex-wrap: wrap;
}
.bzr-topbar-spacer { flex: 1; }

.bzr-topbar select {
    background: #16213e; border: 1px solid #2a2a4a; color: #c0c0d0;
    padding: 0.35em 0.4em; border-radius: 4px; font-size: 0.82rem;
    font-family: inherit; width: auto; flex: none;
}

.bzr-search-bar {
    display: flex; position: relative; width: 180px;
}
.bzr-search-bar input {
    width: 100%; padding: 0.35em 2.2em 0.35em 0.6em;
    background: #16213e; border: 1px solid #2a2a4a;
    border-radius: 4px; color: #f0f0f0; font-size: 0.82rem;
}
.bzr-search-bar input:focus { border-color: #4a7cf7; outline: none; }
.bzr-search-bar button {
    position: absolute; right: 0; top: 0; bottom: 0;
    background: #4a7cf7; color: #fff; border: none;
    padding: 0 0.6em; cursor: pointer; font-size: 0.82rem;
    border-radius: 0 4px 4px 0; transition: background 0.2s;
}
.bzr-search-bar button:hover { background: #3a6ae0; }

.bzr-filter-toggle {
    background: #16213e; border: 1px solid #2a2a4a; color: #a0a0b0;
    padding: 0.4em 1em; border-radius: 4px; cursor: pointer;
    font-size: 0.85rem; font-family: inherit; transition: all 0.2s;
}
.bzr-filter-toggle:hover, .bzr-filter-toggle.active { border-color: #4a7cf7; color: #4a7cf7; }

.bzr-filter-panel {
    background: #121c35; border: 1px solid #2a2a4a; border-radius: 6px;
    padding: 0.8rem 1rem; margin-bottom: 1rem; display: flex; flex-direction: column; gap: 0.6rem;
}
.bzr-categories { display: flex; flex-wrap: wrap; gap: 0.4rem; }

.bzr-cat-btn {
    background: #16213e; border: 1px solid #2a2a4a; color: #a0a0b0;
    padding: 0.5em 1em; border-radius: 20px; font-size: 0.9rem;
    cursor: pointer; transition: all 0.2s; font-family: inherit;
}
.bzr-cat-btn .bzr-pill-count { font-size: 0.75em; opacity: 0.6; margin-left: 0.2em; }
.bzr-cat-btn:hover, .bzr-cat-btn.active {
    background: rgba(74, 124, 247, 0.15); border-color: #4a7cf7; color: #4a7cf7;
}

.bzr-toolbar select {
    background: #16213e; border: 1px solid #2a2a4a; color: #c0c0d0;
    padding: 0.4em 0.6em; border-radius: 4px; font-size: 0.85rem;
}

.bzr-result-count { font-size: 0.85rem; color: #808090; margin-bottom: 0.8rem; }

/* ── Grid ── */
.bzr-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-bottom: 1.5rem; }
.bzr-loading { grid-column: 1 / -1; text-align: center; color: #808090; padding: 3rem; }

/* Card */
.bzr-card {
    background: #16213e; border: 1px solid #2a2a4a; border-radius: 6px;
    padding: 1.2em; cursor: pointer; transition: border-color 0.2s, background 0.2s;
    display: flex; flex-direction: column; text-decoration: none; color: inherit;
}
.bzr-card:hover { border-color: #4a7cf7; background: #1a2540; }

.bzr-card-header {
    display: flex; align-items: baseline; justify-content: space-between;
    gap: 0.5rem; margin-bottom: 0.3em; margin-top: 0;
}
.bzr-card-screenshot {
    width: 100%; height: 140px; object-fit: cover; border-radius: 4px;
    margin-bottom: 0.8em; background: #0f1729;
}
h3.bzr-card-name, .bzr-card-name {
    font-size: 1.05rem; font-weight: 600; color: #f0f0f0;
    margin: 0 !important; padding: 0 !important; line-height: 1.2;
}
.bzr-card-version { font-size: 0.75rem; color: #808090; white-space: nowrap; }
.bzr-card-updated { font-size: 0.75rem; color: #808090; white-space: nowrap; }
.bzr-card-author { font-size: 0.82rem; color: #808090; margin-bottom: 0.5em; }
.bzr-card-desc {
    font-size: 0.9rem; color: #b0b0c0; flex: 1; margin-bottom: 0.8em;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.bzr-card-footer {
    display: flex; align-items: center; justify-content: space-between;
    font-size: 0.8rem; color: #808090;
}
.bzr-card-votes { display: flex; gap: 0.6rem; align-items: center; }

.bzr-thumb-up { color: #6ddb9a; }
.bzr-thumb-down { color: #e74c3c; }
.bzr-ratio { color: #808090; font-size: 0.75rem; }

/* Trust badges */
.bzr-trust-badge {
    display: inline-block; font-size: 0.68rem; padding: 0.15em 0.5em;
    border-radius: 3px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em;
}
.bzr-card-name .bzr-trust-badge { margin-left: 0.4em; vertical-align: baseline; }
.bzr-trust-official { background: rgba(39, 174, 96, 0.15); color: #6ddb9a; }
.bzr-trust-verified { background: rgba(52, 152, 219, 0.15); color: #5dade2; }
.bzr-trust-community { background: rgba(243, 156, 18, 0.15); color: #f5c542; }

/* Trust alert on detail */
.bzr-trust-alert {
    padding: 0.8em 1em; border-radius: 6px; margin-bottom: 1.2rem;
    font-size: 0.88rem; display: flex; align-items: center; gap: 0.6rem;
}
.bzr-trust-alert-official { background: rgba(39, 174, 96, 0.1); border: 1px solid rgba(39, 174, 96, 0.25); color: #6ddb9a; }
.bzr-trust-alert-verified { background: rgba(52, 152, 219, 0.1); border: 1px solid rgba(52, 152, 219, 0.25); color: #5dade2; }
.bzr-trust-alert-community { background: rgba(243, 156, 18, 0.1); border: 1px solid rgba(243, 156, 18, 0.25); color: #f5c542; }

/* ── Pagination ── */
.bzr-pagination { display: flex; justify-content: center; gap: 0.3rem; }
.bzr-pagination button {
    background: #16213e; border: 1px solid #2a2a4a; color: #c0c0c0;
    padding: 0.4em 0.8em; border-radius: 4px; cursor: pointer;
    font-family: inherit; font-size: 0.85rem; transition: all 0.2s;
}
.bzr-pagination button:hover, .bzr-pagination button.active { background: #4a7cf7; border-color: #4a7cf7; color: #fff; }
.bzr-pagination button:disabled { opacity: 0.4; cursor: default; }

/* ── Detail ── */
.bzr-item-detail { max-width: 800px; }
.bzr-detail-back { display: inline-block; margin-bottom: 1rem; color: #4a7cf7; text-decoration: none; font-size: 0.9rem; }
.bzr-detail-back:hover { text-decoration: underline; }
.bzr-detail-hero { margin-bottom: 1.5rem; }
.bzr-detail-hero h1 { margin: 0 0 0.3rem; font-size: 1.8rem; }
.bzr-detail-meta {
    font-size: 0.9rem; color: #808090; display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 0.5rem;
}
.bzr-detail-meta a { color: #4a7cf7; text-decoration: none; }
.bzr-detail-meta a:hover { text-decoration: underline; }
.bzr-detail-screenshot { max-width: 100%; border-radius: 6px; margin: 1rem 0; border: 1px solid #2a2a4a; }
.bzr-detail-desc { color: #c0c0d0; line-height: 1.7; margin-bottom: 1.5rem; }
.bzr-detail-desc p { margin: 0.5em 0; }

/* GitHub button */
.bzr-github-btn {
    margin-top: 0.8rem; display: inline-flex; align-items: center; gap: 0.6rem;
    background: linear-gradient(135deg, #24292e 0%, #1a1e24 100%); color: #fff;
    padding: 0.8em 1.8em; border-radius: 8px; text-decoration: none;
    font-size: 1.05rem; font-weight: 600; letter-spacing: 0.02em;
    border: 1px solid rgba(74, 124, 247, 0.3);
    box-shadow: 0 0 20px rgba(74, 124, 247, 0.15), 0 0 60px rgba(74, 124, 247, 0.05);
    transition: all 0.3s ease; margin-bottom: 0.5rem;
}
.bzr-github-btn:hover {
    background: linear-gradient(135deg, #2d333b 0%, #22272e 100%);
    border-color: rgba(74, 124, 247, 0.5);
    box-shadow: 0 0 25px rgba(74, 124, 247, 0.25), 0 0 80px rgba(74, 124, 247, 0.1);
    color: #fff; transform: translateY(-1px);
}
.bzr-gh-icon { width: 1.3em; height: 1.3em; flex-shrink: 0; }

/* Actions */
.bzr-actions {
    display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1.5rem; flex-wrap: wrap;
}
.bzr-vote-btn {
    background: #16213e; border: 1px solid #2a2a4a; color: #a0a0b0;
    padding: 0.5em 1em; border-radius: 4px; cursor: pointer;
    font-size: 0.9rem; font-family: inherit; transition: all 0.2s;
}
.bzr-vote-btn:hover { border-color: #4a7cf7; color: #4a7cf7; }
.bzr-vote-btn.voted { background: rgba(74, 124, 247, 0.15); border-color: #4a7cf7; color: #4a7cf7; }
.bzr-vote-ratio { font-size: 0.85rem; color: #808090; }

.bzr-flag-btn {
    background: none; border: 1px solid #2a2a4a; color: #808090;
    padding: 0.5em 1em; border-radius: 4px; cursor: pointer;
    font-size: 0.85rem; font-family: inherit; margin-left: auto; transition: all 0.2s;
}
.bzr-flag-btn:hover { border-color: #e74c3c; color: #e74c3c; }

/* ── Showcase ── */
.bzr-showcase {
    background: #16213e; border: 1px solid #2a2a4a; border-radius: 8px;
    padding: 1.2rem; display: flex; gap: 1rem; align-items: center;
    max-width: 500px; margin: 1rem 0; transition: border-color 0.2s;
}
.bzr-showcase:hover { border-color: #4a7cf7; }
.bzr-showcase-thumb {
    width: 80px; height: 80px; object-fit: cover; border-radius: 6px;
    flex-shrink: 0; background: #0f1729;
}
.bzr-showcase-info { flex: 1; min-width: 0; }
.bzr-showcase-name { font-size: 1.05rem; font-weight: 600; color: #f0f0f0; margin: 0 0 0.2em; }
.bzr-showcase-desc {
    font-size: 0.85rem; color: #b0b0c0; margin: 0 0 0.4em;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bzr-showcase-footer { font-size: 0.8rem; color: #808090; display: flex; gap: 0.8rem; }

/* ── Auth Gate ── */
.bzr-auth-gate { text-align: center; padding: 3rem 1rem; }
.bzr-auth-gate h2 { margin-bottom: 0.5rem; }
.bzr-auth-gate p { color: #b0b0c0; margin-bottom: 1rem; }
.bzr-btn {
    display: inline-block; background: #24292e; color: #fff;
    padding: 0.6em 1.2em; border-radius: 4px; text-decoration: none;
    font-size: 0.9rem; font-weight: 500; transition: background 0.2s; margin: 0 0.3rem;
}
.bzr-btn:hover { background: #2f363d; color: #fff; }
.bzr-btn-green { background: #27ae60; }
.bzr-btn-green:hover { background: #219a52; }

/* ── Submit Page ── */
.bzr-submit-page { width: 100%; }
.bzr-submit-layout { display: grid; grid-template-columns: 1fr 320px; gap: 2rem; align-items: start; }
.bzr-submit-left h2 { margin-top: 0; }
.bzr-submit-right h3 { margin-top: 0; }

.bzr-submit-form { margin-top: 1rem; }
.bzr-field { margin-bottom: 1.2rem; flex: 1; min-width: 0; }
.bzr-field-row { display: flex; gap: 1rem; margin-bottom: 0; }
.bzr-field label { display: block; font-size: 0.9rem; font-weight: 600; color: #d0d0e0; margin-bottom: 0.3rem; }
.bzr-field input, .bzr-field textarea, .bzr-field select {
    width: 100%; padding: 0.6em 0.8em; background: #16213e; border: 1px solid #2a2a4a;
    border-radius: 4px; color: #f0f0f0; font-size: 0.9rem; font-family: inherit; box-sizing: border-box;
}
.bzr-field input:focus, .bzr-field textarea:focus, .bzr-field select:focus { border-color: #4a7cf7; outline: none; }
.bzr-hint { display: block; font-size: 0.78rem; color: #808090; margin-top: 0.3rem; }

.bzr-form-actions { display: flex; align-items: center; gap: 1rem; }
.bzr-submit-btn {
    background: #4a7cf7; color: #fff; border: none; padding: 0.7em 2em;
    border-radius: 4px; font-size: 1rem; font-weight: 500; cursor: pointer; transition: background 0.2s;
}
.bzr-submit-btn:hover { background: #3a6ae0; }
.bzr-cancel-btn { color: #808090; text-decoration: none; font-size: 0.9rem; }
.bzr-cancel-btn:hover { color: #f0f0f0; }

/* Notices */
.bzr-notice { padding: 0.8em 1em; border-radius: 4px; margin-bottom: 1.2rem; font-size: 0.9rem; }
.bzr-notice-success { background: rgba(39, 174, 96, 0.15); border: 1px solid rgba(39, 174, 96, 0.3); color: #6ddb9a; }
.bzr-notice-error { background: rgba(231, 76, 60, 0.15); border: 1px solid rgba(231, 76, 60, 0.3); color: #e74c3c; }
.bzr-notice-error p { margin: 0.2em 0; }

/* My items sidebar */
.bzr-my-items { display: flex; flex-direction: column; gap: 0.5rem; }
.bzr-my-item {
    background: #16213e; border: 1px solid #2a2a4a; border-radius: 4px;
    padding: 0.8em 1em; transition: border-color 0.2s;
}
.bzr-my-item.bzr-my-active { border-color: #4a7cf7; background: #1a2540; }
.bzr-my-item-header { display: flex; align-items: baseline; justify-content: space-between; gap: 0.5rem; }
.bzr-my-item strong { color: #f0f0f0; font-size: 0.9rem; }
.bzr-my-item small { display: block; color: #808090; margin-top: 0.3em; font-size: 0.8rem; }
.bzr-my-item-actions { display: flex; align-items: center; justify-content: space-between; margin-top: 0.5em; }
.bzr-my-item-actions a { color: #4a7cf7; text-decoration: none; font-size: 0.82rem; }
.bzr-my-item-actions a:hover { text-decoration: underline; }
.bzr-my-item-actions span { font-size: 0.75rem; color: #808090; }

.bzr-mystatus-approved { color: #6ddb9a; font-size: 0.78rem; }
.bzr-mystatus-pending { color: #f39c12; font-size: 0.78rem; }
.bzr-mystatus-rejected { color: #e74c3c; font-size: 0.78rem; }

/* ── Sidebar Widget ── */
.bzr-sidebar {
    background: #16213e; border: 1px solid #2a2a4a; border-radius: 8px;
    overflow: hidden;
}
.bzr-sidebar-header {
    padding: 0.6em 0.8em; font-size: 0.85rem; font-weight: 600;
    color: #d0d0e0; border-bottom: 1px solid #2a2a4a;
}
.bzr-sidebar-tabs {
    display: flex; border-bottom: 1px solid #2a2a4a;
}
.bzr-sidebar-tab {
    flex: 1; padding: 0.5em; background: none; border: none;
    color: #808090; font-size: 0.8rem; font-family: inherit;
    cursor: pointer; transition: all 0.2s; text-align: center;
}
.bzr-sidebar-tab:hover { color: #c0c0d0; }
.bzr-sidebar-tab.active {
    color: #4a7cf7; border-bottom: 2px solid #4a7cf7;
    background: rgba(74, 124, 247, 0.05);
}
.bzr-sidebar-list { }
.bzr-sidebar-empty { padding: 1.5rem; text-align: center; color: #808090; font-size: 0.85rem; }

.bzr-sb-item {
    display: flex; align-items: center; gap: 0.6rem;
    padding: 0.5rem 0.7rem; text-decoration: none; color: inherit;
    border-bottom: 1px solid rgba(42, 42, 74, 0.5);
    transition: background 0.15s;
}
.bzr-sb-item:last-child { border-bottom: none; }
.bzr-sb-item:hover { background: rgba(74, 124, 247, 0.06); }

.bzr-sb-rank {
    font-size: 0.72rem; font-weight: 700; color: #606070;
    width: 1.2em; text-align: center; flex-shrink: 0;
}
.bzr-sb-avatar {
    width: 36px; height: 36px; border-radius: 50%; object-fit: cover;
    border: 2px solid #4a7cf7; flex-shrink: 0;
}
.bzr-sb-avatar-default {
    display: flex; align-items: center; justify-content: center;
    background: #0f1729; font-size: 0.9rem; font-weight: 700; color: #4a7cf7;
}
.bzr-sb-info {
    flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.1rem;
}
.bzr-sb-name {
    font-size: 0.85rem; font-weight: 600; color: #f0f0f0;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bzr-sb-stats {
    display: flex; gap: 0.4rem; font-size: 0.72rem; align-items: center;
}
.bzr-sb-stats .bzr-thumb-up { color: #6ddb9a; }
.bzr-sb-stats .bzr-thumb-down { color: #e74c3c; }
.bzr-sb-stats .bzr-ratio { color: #808090; }

/* ══════════════════════════════════════════════════
   PERSONA EXCHANGE — Roster Grid & Detail
   ══════════════════════════════════════════════════ */

/* ── Roster Grid ── */
.spr-roster-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.8rem;
}

/* ── Roster Card — Horizontal Layout ── */
.spr-roster-card {
    --trim: #4a7cf7;
    display: grid; grid-template-columns: auto 1fr; grid-template-rows: 1fr auto;
    background: #16213e; border: 1px solid #2a2a4a; border-radius: 8px;
    text-decoration: none; color: inherit;
    position: relative; overflow: hidden;
    transition: transform 0.25s ease, border-color 0.3s, box-shadow 0.3s;
    border-left: 3px solid var(--trim);
}
.spr-roster-card:hover {
    transform: translateY(-3px) scale(1.01);
    border-color: var(--trim);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3), 0 0 25px color-mix(in srgb, var(--trim) 18%, transparent);
}

/* Left — avatar */
.spr-roster-left {
    grid-row: 1 / 3; display: flex; align-items: center; justify-content: center;
    padding: 0.8em;
}
.spr-roster-avatar-wrap { position: relative; }
.spr-roster-avatar {
    width: 96px; height: 96px; border-radius: 50%; object-fit: cover;
    border: 2px solid var(--trim);
    transition: box-shadow 0.3s;
}
.spr-roster-card:hover .spr-roster-avatar {
    box-shadow: 0 0 14px color-mix(in srgb, var(--trim) 35%, transparent);
}
.spr-roster-avatar-default {
    display: flex; align-items: center; justify-content: center;
    background: #0f1729; font-size: 2.4rem; font-weight: 700;
    color: var(--trim);
}

/* Right — info */
.spr-roster-right {
    padding: 0.8em 0.8em 0.3em 0; min-width: 0;
}
.spr-roster-card, .spr-roster-card:hover { text-decoration: none; }
.spr-roster-name {
    font-size: 1.25rem; font-weight: 600; color: #f0f0f0;
    margin: 0 0 0.15em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.spr-roster-tagline {
    font-size: 0.8rem; color: #a0a0b0; font-style: italic;
    margin: 0 0 0.35em; line-height: 1.35;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.spr-roster-badges {
    display: flex; gap: 0.3rem; align-items: center; flex-wrap: wrap;
}
.spr-roster-cat {
    font-size: 0.72rem; color: #808090;
    background: rgba(74, 124, 247, 0.08); padding: 0.15em 0.5em;
    border-radius: 10px;
}
.spr-roster-badge {
    font-size: 0.62rem; padding: 0.12em 0.5em; border-radius: 3px;
    font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em;
}
.spr-badge-persona { background: rgba(230, 126, 34, 0.15); color: #e6a23c; }
.spr-badge-prompt { background: rgba(74, 124, 247, 0.15); color: #4a7cf7; }

/* Footer — spans full width below */
.spr-roster-footer {
    grid-column: 1 / -1;
    display: flex; align-items: center; justify-content: space-between;
    font-size: 0.75rem; color: #808090;
    padding: 0.35em 0.8em; border-top: 1px solid #2a2a4a;
}
.spr-roster-votes { display: flex; gap: 0.4rem; align-items: center; }
.spr-vote-up { color: #6ddb9a; }
.spr-vote-down { color: #e74c3c; }
.spr-vote-pct { color: #808090; font-size: 0.7rem; }
.spr-roster-author { color: #606070; font-size: 0.72rem; }

/* Quick actions — top right of card */
.spr-roster-quick-actions {
    position: absolute; top: 0.4rem; right: 0.4rem;
    display: flex; gap: 0.25rem;
    opacity: 0; transition: opacity 0.2s;
}
.spr-roster-card:hover .spr-roster-quick-actions { opacity: 1; }
.spr-quick-copy, .spr-quick-dl, .spr-quick-vote-up, .spr-quick-vote-down {
    background: rgba(15, 23, 41, 0.9); border: 1px solid #2a2a4a;
    color: #a0a0b0; width: 26px; height: 26px; border-radius: 4px;
    cursor: pointer; font-size: 0.7rem; display: flex;
    align-items: center; justify-content: center; transition: all 0.2s;
    backdrop-filter: blur(4px);
}
.spr-quick-copy:hover { border-color: #4a7cf7; color: #4a7cf7; }
.spr-quick-dl:hover { border-color: #27ae60; color: #6ddb9a; }
.spr-quick-vote-up:hover { border-color: #6ddb9a; color: #6ddb9a; }
.spr-quick-vote-down:hover { border-color: #e74c3c; color: #e74c3c; }

/* ── Type Filter Pills ── */
.spr-type-filter { display: flex; gap: 0.3rem; }
.spr-filter-pill {
    background: #16213e; border: 1px solid #2a2a4a; color: #a0a0b0;
    padding: 0.35em 0.8em; border-radius: 20px; font-size: 0.82rem;
    cursor: pointer; transition: all 0.2s; font-family: inherit;
}
.spr-filter-pill:hover, .spr-filter-pill.active {
    background: rgba(74, 124, 247, 0.15); border-color: #4a7cf7; color: #4a7cf7;
}

/* ── Detail Page — 2-Column Split ── */
.spr-detail-split {
    display: grid; grid-template-columns: 280px 1fr;
    gap: 1.5rem; margin: 1.2rem 0; align-items: start;
}
.spr-detail-left { display: flex; justify-content: center; }
.spr-detail-avatar {
    width: 250px; height: 250px; border-radius: 50%; object-fit: cover;
    border: 3px solid #4a7cf7;
}
.spr-detail-avatar-default {
    display: flex; align-items: center; justify-content: center;
    background: #0f1729; font-size: 5rem; font-weight: 700; color: #4a7cf7;
}
.spr-detail-right { min-width: 0; }
.spr-detail-title {
    font-size: 1.8rem; margin: 0 0 0.3rem; line-height: 1.3;
}
.spr-detail-longdesc {
    color: #b0b0c0; font-size: 0.9rem; line-height: 1.6;
    margin: 0.4rem 0 0.5rem;
}
.spr-tagline {
    font-size: 0.95rem; color: #b0b0c0; font-style: italic;
    margin: 0.2rem 0 0.4rem;
}
.spr-sapphire-name { font-size: 0.82rem; color: #808090; display: block; margin-bottom: 0.4rem; }
.spr-sapphire-name strong { color: #c0c0d0; }
.spr-color-swatch {
    display: inline-block; width: 14px; height: 14px; border-radius: 3px;
    vertical-align: middle;
}
.spr-voice-info {
    display: flex; gap: 0.6rem; align-items: center; font-size: 0.82rem;
    color: #808090; margin-top: 0.3rem; flex-wrap: wrap;
}
.spr-voice-info strong { color: #c0c0d0; }

/* ── Shared Badges ── */
.spr-meta-row {
    display: flex; align-items: center; gap: 0.5rem; margin: 0 0 0.4rem;
    flex-wrap: wrap;
}
.spr-type-badge {
    display: inline-block; font-size: 0.68rem; padding: 0.15em 0.6em;
    border-radius: 3px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em;
}
.spr-type-monolith { background: rgba(74, 124, 247, 0.15); color: #4a7cf7; }
.spr-type-assembled { background: rgba(155, 89, 182, 0.15); color: #bb86fc; }
.spr-type-persona { background: rgba(230, 126, 34, 0.15); color: #e6a23c; }
.spr-type-prompt { background: rgba(74, 124, 247, 0.15); color: #4a7cf7; }

/* ── Detail Action Bar ── */
.spr-action-bar {
    display: flex; align-items: center;
    gap: 0.5rem; margin-top: 0.8rem; flex-wrap: wrap;
}
.spr-copy-btn-lg, .spr-download-btn-lg {
    padding: 0.55em 1.2em; border-radius: 6px; cursor: pointer;
    font-size: 0.9rem; font-weight: 500; font-family: inherit; transition: all 0.2s;
    border: 1px solid;
}
.spr-copy-btn-lg {
    background: rgba(74, 124, 247, 0.12); border-color: rgba(74, 124, 247, 0.4); color: #4a7cf7;
}
.spr-copy-btn-lg:hover {
    background: rgba(74, 124, 247, 0.25); border-color: #4a7cf7;
}
.spr-download-btn-lg {
    background: rgba(39, 174, 96, 0.12); border-color: rgba(39, 174, 96, 0.4); color: #6ddb9a;
}
.spr-download-btn-lg:hover {
    background: rgba(39, 174, 96, 0.25); border-color: #27ae60;
}
.spr-mini-vote {
    background: none !important; border: 1px solid #2a2a4a !important; color: #808090 !important;
    padding: 0.2em 0.5em !important; border-radius: 3px !important; cursor: pointer;
    font-size: 0.75rem !important; font-family: inherit; transition: all 0.2s;
}
.spr-mini-vote:hover { border-color: #4a7cf7 !important; color: #4a7cf7 !important; }
.spr-mini-vote[data-dir="1"]:hover { color: #6ddb9a !important; border-color: #6ddb9a !important; }
.spr-mini-vote[data-dir="-1"]:hover { color: #e74c3c !important; border-color: #e74c3c !important; }
.spr-mini-flag {
    background: none !important; border: 1px solid #2a2a4a !important; color: #808090 !important;
    padding: 0.2em 0.4em !important; border-radius: 3px !important; cursor: pointer;
    font-size: 0.7rem !important; transition: all 0.2s; margin-left: 0 !important;
}
.spr-mini-flag:hover { border-color: #e74c3c !important; color: #e74c3c !important; }
.spr-action-mini .bzr-vote-ratio { font-size: 0.7rem; color: #606070; }

/* ── Component Table ── */
.spr-section-title {
    font-size: 1rem; font-weight: 600; color: #d0d0e0;
    margin: 0 0 0.6rem; padding: 0;
}
.spr-prompt-block {
    background: #0f1729; border: 1px solid #2a2a4a; border-radius: 6px;
    padding: 1.2rem; margin-bottom: 1rem;
}
.spr-prompt-block pre {
    margin: 0; white-space: pre-wrap; word-wrap: break-word;
    color: #c0c0d0; font-size: 0.9rem; line-height: 1.6;
    font-family: 'Fira Code', monospace, monospace;
}
.spr-comp-table { margin-bottom: 1rem; }
.spr-comp-row {
    border: 1px solid #2a2a4a; border-radius: 4px;
    margin-bottom: 0.4rem; overflow: hidden;
}
.spr-comp-header {
    background: #16213e; padding: 0.6em 0.8em; cursor: pointer;
    display: flex; align-items: center; justify-content: space-between;
    transition: background 0.2s;
}
.spr-comp-header:hover { background: #1a2540; }
.spr-comp-label { display: flex; align-items: center; gap: 0.5rem; min-width: 0; }
.spr-comp-icon { font-size: 1.1rem; flex-shrink: 0; }
.spr-comp-type {
    font-size: 0.78rem; font-weight: 600; text-transform: uppercase;
    color: #808090; letter-spacing: 0.03em; white-space: nowrap;
}
.spr-comp-name {
    font-size: 0.88rem; font-weight: 600; color: #d0d0e0;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.spr-arrow { color: #808090; font-size: 0.7rem; flex-shrink: 0; margin-left: 0.5rem; }
.spr-comp-body {
    padding: 0.8em; color: #b0b0c0; font-size: 0.88rem; line-height: 1.6;
    border-top: 1px solid #2a2a4a; background: #0f1729;
}

/* ── Mobile ── */
@media (max-width: 768px) {
    .bzr-grid { grid-template-columns: 1fr; }
    .spr-roster-grid { grid-template-columns: 1fr !important; }
    .spr-roster-avatar { width: 72px; height: 72px; }
    .spr-roster-quick-actions { opacity: 1; }
    .bzr-topbar { flex-direction: column; align-items: stretch; }
    .bzr-search-bar { max-width: 100%; }
    .bzr-toolbar-right { flex-wrap: wrap; }
    .bzr-showcase { flex-direction: column; text-align: center; }
    .bzr-submit-layout { grid-template-columns: 1fr; }
    .bzr-field-row { flex-direction: column; }
    .spr-comp-label { flex-wrap: wrap; }
    .spr-comp-type { font-size: 0.72rem; }
    .spr-comp-name { white-space: normal; }
    .spr-actions { flex-direction: column; }
    .spr-copy-btn, .spr-download-btn { width: 100%; text-align: center; }
    .spr-detail-split { grid-template-columns: 1fr; text-align: center; }
    .spr-detail-avatar { width: 160px; height: 160px; }
    .spr-detail-title { font-size: 1.4rem; }
    .spr-voice-info { justify-content: center; }
    .spr-type-filter { flex-wrap: wrap; }
}
@media (min-width: 769px) and (max-width: 1024px) {
    .spr-roster-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
