/* ── LonexRelay CSS ────────────────────────────────────────────────────────
   Dark-first product feedback board.
   Font: Plus Jakarta Sans | Accent: pulse-rose #fb2c62 | BG: #0c0d11
   Machine data (references, versions, counts) is set in a monospace face.
   ──────────────────────────────────────────────────────────────────────── */

:root {
    --bg:           #0c0d11;
    --bg-elevated:  #101116;
    --bg-card:      #15161c;
    --bg-card-hover:#191b22;
    --border:       #24262f;
    --border-light: #31333e;
    --text:         #e8e9ee;
    --text-dim:     #969aa7;
    --text-faint:   #5d6170;
    --accent:       #fb2c62;
    --accent-dim:   #e11d54;
    --accent-glow:  rgba(251,44,98,.18);
    --accent-soft:  rgba(251,44,98,.12);
    --error:        #f04444;
    --error-soft:   rgba(240,68,68,.12);
    --warning:      #f5a524;
    --warning-soft: rgba(245,165,36,.12);
    --info:         #4b8dff;
    --info-soft:    rgba(75,141,255,.12);
    --radius:       10px;
    --radius-sm:    7px;
    --radius-lg:    14px;
    --shadow:       0 4px 24px rgba(0,0,0,.4);
    --shadow-lg:    0 24px 60px -30px rgba(0,0,0,.8);
    --mono:         ui-monospace,"SF Mono","Cascadia Code","JetBrains Mono",Menlo,Consolas,monospace;
}

/* ── Reset ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }
.inline { display: inline; }

/* ── Navigation ──────────────────────────────────────────────────────────── */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10,10,11,.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    height: 60px;
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.nav-brand strong { color: var(--accent); }

.nav-pill {
    background: var(--bg-elevated);
    color: var(--text-dim);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 3px 9px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius:var(--radius-sm);
    color: var(--text-dim);
    font-size: 13px;
    font-weight: 500;
    transition: color .15s, background .15s;
}
.nav-link:hover { color: var(--text); background: var(--bg-card); }
.nav-link.active { color: var(--accent); background: var(--accent-soft); }

.nav-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }

.nav-user {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.nav-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid var(--border);
}
.nav-avatar-placeholder {
    background: var(--accent);
    color: var(--bg);
    font-weight: 700;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-username { color: var(--text-dim); max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 18px;
    background: var(--accent);
    color: #0a0a0b;
    border: none;
    border-radius:var(--radius-sm);
    font-size: 13px;
    font-weight: 700;
    font-family: inherit;
    transition: background .15s, transform .1s;
}
.btn-primary:hover { background: var(--accent-dim); }
.btn-primary:active { transform: scale(.97); }

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 18px;
    background: var(--bg-card);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius:var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    transition: background .15s, border-color .15s;
}
.btn-secondary:hover { background: var(--bg-card-hover); border-color: var(--border-light); }

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    background: transparent;
    color: var(--text-dim);
    border: none;
    border-radius:var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    transition: color .15s, background .15s;
}
.btn-ghost:hover { color: var(--text); background: var(--bg-card); }

.btn-ghost-sm {
    padding: 5px 10px;
    background: transparent;
    color: var(--text-dim);
    border: 1px solid var(--border);
    border-radius:var(--radius-sm);
    font-size: 12px;
    font-weight: 500;
    font-family: inherit;
    transition: color .15s, border-color .15s;
}
.btn-ghost-sm:hover { color: var(--text); border-color: var(--border-light); }

.btn-discord {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    background: #5865f2;
    color: #fff;
    border: none;
    border-radius:var(--radius-sm);
    font-size: 13px;
    font-weight: 700;
    font-family: inherit;
    transition: background .15s;
}
.btn-discord:hover { background: #4752c4; }

.btn-discord-lg { padding: 13px 24px; font-size: 15px; width: 100%; justify-content: center; }
.btn-full { width: 100%; justify-content: center; }

.btn-sm { padding: 7px 14px; font-size: 12px; }

.btn-accept {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 7px 12px;
    background: var(--accent-soft);
    color: var(--accent);
    border: 1px solid rgba(251,44,98,.3);
    border-radius:var(--radius-sm);
    font-size: 12px; font-weight: 600; font-family: inherit;
    transition: background .15s;
}
.btn-accept:hover { background: var(--accent-glow); }

.btn-deny {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 7px 12px;
    background: var(--error-soft);
    color: var(--error);
    border: 1px solid rgba(239,68,68,.3);
    border-radius:var(--radius-sm);
    font-size: 12px; font-weight: 600; font-family: inherit;
    transition: background .15s;
}
.btn-deny:hover { background: rgba(239,68,68,.2); }

.btn-archive {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 7px 12px;
    background: var(--bg-card);
    color: var(--text-dim);
    border: 1px solid var(--border);
    border-radius:var(--radius-sm);
    font-size: 12px; font-weight: 600; font-family: inherit;
    transition: background .15s;
}
.btn-archive:hover { background: var(--bg-card-hover); }

.btn-xs { padding: 5px 10px; font-size: 11px; }

/* ── Flash / Alerts ──────────────────────────────────────────────────────── */
.flash {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    font-size: 13px;
    font-weight: 500;
}
.flash-success { background: var(--accent-soft); color: var(--accent); border-bottom: 1px solid rgba(251,44,98,.2); }
.flash-error   { background: var(--error-soft);  color: var(--error);  border-bottom: 1px solid rgba(239,68,68,.2); }
.flash-close   { margin-left: auto; background: none; border: none; color: inherit; opacity: .6; font-size: 18px; line-height: 1; cursor: pointer; }
.flash-close:hover { opacity: 1; }

.alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
    border-radius:var(--radius-sm);
    font-size: 13px;
    margin-bottom: 16px;
}
.alert-error   { background: var(--error-soft);   color: var(--error);   border: 1px solid rgba(239,68,68,.25); }
.alert-success { background: var(--accent-soft);  color: var(--accent);  border: 1px solid rgba(251,44,98,.25); }
.alert-info    { background: var(--info-soft);    color: #93c5fd;        border: 1px solid rgba(59,130,246,.25); }

/* ── Badges ──────────────────────────────────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .4px;
}
.badge-open     { background: var(--info-soft);    color: #60a5fa; }
.badge-accepted { background: var(--accent-soft);  color: var(--accent); }
.badge-released { background: var(--accent-soft);  color: var(--accent); }
.badge-denied   { background: var(--error-soft);   color: var(--error); }
.badge-archived { background: rgba(113,113,122,.1); color: var(--text-faint); }
.badge-staff    { background: rgba(245,158,11,.12); color: var(--warning); }

/* ── Main ────────────────────────────────────────────────────────────────── */
.main {
    flex: 1;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
}

/* ── Footer ──────────────────────────────────────────────────────────────── */
.footer {
    border-top: 1px solid var(--border);
    padding: 20px 24px;
    margin-top: 60px;
}
.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-faint);
    font-size: 12px;
}
.footer-inner a { color: var(--text-dim); margin-left: 16px; }
.footer-inner a:hover { color: var(--text); }

/* ── Hero ────────────────────────────────────────────────────────────────── */
.page-hero {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    padding: 52px 0 44px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 28px;
    overflow: hidden;
}

.page-hero::before {
    content: "";
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .7px;
    color: var(--accent);
    margin-bottom: 16px;
    background: var(--accent-soft);
    border: 1px solid var(--accent-glow);
    border-radius: var(--radius-sm);
    padding: 4px 12px 4px 8px;
}

.hero-eyebrow-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
}

.hero-content { max-width: 520px; position: relative; z-index: 1; }

.hero-content h1 {
    font-size: 38px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.5px;
    margin-bottom: 12px;
}

.accent { color: var(--accent); }

.hero-content p {
    color: var(--text-dim);
    font-size: 15px;
    margin-bottom: 24px;
    line-height: 1.65;
}

.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.hero-stats {
    display: flex;
    align-items: center;
    gap: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius:var(--radius-sm);
    padding: 24px 32px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.stat-item { text-align: center; padding: 0 24px; }
.stat-item strong { display: block; font-size: 32px; font-weight: 800; color: var(--accent); line-height: 1; margin-bottom: 4px; }
.stat-item span   { display: block; font-size: 11px; color: var(--text-dim); text-transform: uppercase; letter-spacing: .5px; }
.stat-divider { width: 1px; height: 40px; background: var(--border); }


/* ── Feed controls ───────────────────────────────────────────────────────── */
.feed-controls {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.search-wrap {
    position: relative;
    flex: 1;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-faint);
    pointer-events: none;
}

.search-input {
    width: 100%;
    height: 40px;
    padding: 0 14px 0 38px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius:var(--radius-sm);
    color: var(--text);
    font-family: inherit;
    font-size: 13px;
    outline: none;
    transition: border-color .15s;
}
.search-input::placeholder { color: var(--text-faint); }
.search-input:focus { border-color: var(--accent); }

.search-results {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius:var(--radius-sm);
    box-shadow: var(--shadow-lg);
    z-index: 50;
    max-height: 400px;
    overflow-y: auto;
    display: none;
}
.search-results.open { display: block; }

.search-section-label {
    padding: 8px 14px 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: var(--text-faint);
}

.search-result-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    transition: background .1s;
    cursor: pointer;
}
.search-result-row:hover { background: var(--bg-card); }
.search-result-row .row-title { font-size: 13px; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-result-row .ref-code { font-size: 11px; flex-shrink: 0; }

.filter-group { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.filter-row   { display: flex; gap: 8px; }

/* ── Tab switcher ─────────────────────────────────────────────────────────── */
.tab-switcher {
    display: inline-flex;
    height: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius:var(--radius-sm);
    padding: 3px;
    gap: 2px;
}

.tab-btn {
    display: flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-dim);
    transition: color .15s, background .15s;
}
.tab-btn:hover { color: var(--text); }
.tab-btn.active { background: var(--bg-card-hover); color: var(--text); }

/* ── Custom select dropdowns ─────────────────────────────────────────────── */
.custom-select {
    position: relative;
    flex-shrink: 0;
}

.cs-trigger {
    display: flex;
    align-items: center;
    height: 40px;
    gap: 8px;
    padding: 8px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius:var(--radius-sm);
    color: var(--text);
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: border-color .15s, background .15s;
    white-space: nowrap;
    min-width: 108px;
}
.cs-trigger:hover { background: var(--bg-card-hover); border-color: var(--border-light); }
.custom-select.open .cs-trigger { border-color: var(--accent); background: var(--bg-card-hover); }

.cs-chevron {
    margin-left: auto;
    color: var(--text-faint);
    flex-shrink: 0;
    transition: transform .2s;
}
.custom-select.open .cs-chevron { transform: rotate(180deg); }

.cs-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 100%;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius:var(--radius-sm);
    box-shadow: var(--shadow-lg);
    z-index: 200;
    overflow: hidden;
    padding: 4px;
}
.custom-select.open .cs-dropdown { display: block; }

.cs-option {
    display: block;
    width: 100%;
    padding: 8px 12px;
    text-align: left;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text-dim);
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background .12s, color .12s;
    white-space: nowrap;
}
.cs-option:hover { background: var(--bg-card-hover); color: var(--text); }
.cs-option.active { color: var(--accent); background: var(--accent-soft); }

/* ── Form fields ─────────────────────────────────────────────────────────── */
.field-input {
    appearance: none;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius:var(--radius-sm);
    color: var(--text);
    font-family: inherit;
    font-size: 13px;
    padding: 8px 12px;
    outline: none;
    transition: border-color .15s;
}
.field-input:focus { border-color: var(--accent); }
.field-textarea { resize: vertical; min-height: 80px; line-height: 1.5; }
.field-input-sm  { padding: 6px 10px; font-size: 12px; }
.field-input-xs  { padding: 4px 8px;  font-size: 11px; }


/* ── Feed ────────────────────────────────────────────────────────────────── */
.feed { display: flex; flex-direction: column; gap: 1px; }

.feed-section-label {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 0 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: var(--text-faint);
}

.feed-divider { height: 1px; background: var(--border); margin: 12px 0; }

.feed-row {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius:var(--radius-sm);
    margin-bottom: 6px;
    transition: background .15s, border-color .15s;
    cursor: pointer;
}
.feed-row:hover { background: var(--bg-card-hover); border-color: var(--border-light); }

.vote-column { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; padding-top: 2px; }

.vote-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dim);
    min-width: 40px;
}
.vote-score svg { opacity: .4; }
.vote-score.positive { color: var(--accent); }
.vote-score.positive svg { opacity: 1; }
.vote-score.negative { color: var(--error); }

.row-body { flex: 1; min-width: 0; }

.row-meta-top {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.row-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.feed-row:hover .row-title { color: var(--accent); }

.row-excerpt {
    font-size: 13px;
    color: var(--text-dim);
    margin-bottom: 10px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    word-break: break-word;
}

.row-footer {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 12px;
    color: var(--text-faint);
}

.row-author {
    display: flex;
    align-items: center;
    gap: 5px;
}

.row-comments {
    display: flex;
    align-items: center;
    gap: 4px;
}

.row-time { margin-left: auto; }

/* ── Tags ────────────────────────────────────────────────────────────────── */
.item-type-tag {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.tag-suggestion { background: rgba(59,130,246,.12); color: #60a5fa; }
.tag-bug        { background: var(--error-soft);    color: var(--error); }
.tag-idea       { background: rgba(167,139,250,.12); color: #a78bfa; }

.product-tag {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-size: 10px;
    font-weight: 600;
    background: var(--accent-soft);
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: .4px;
}

.ref-code {
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 11px;
    color: var(--text-faint);
    background: var(--bg-elevated);
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.micro-avatar {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    object-fit: cover;
    display: inline-block;
}

.vote-pill {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 600;
    background: var(--bg-elevated);
    color: var(--text-dim);
    border: 1px solid var(--border);
}
.vote-pill.positive { color: var(--accent); }

/* ── Empty state ─────────────────────────────────────────────────────────── */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    color: var(--text-dim);
    gap: 10px;
}

/* ── Auth page ───────────────────────────────────────────────────────────── */
.auth-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 200px);
    padding: 40px 20px;
}

.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius:var(--radius-sm);
    padding: 40px;
    width: 100%;
    max-width: 400px;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.auth-logo { display: flex; justify-content: center; margin-bottom: 20px; }

.auth-card h1 { font-size: 22px; font-weight: 800; margin-bottom: 8px; }
.auth-sub { color: var(--text-dim); font-size: 14px; margin-bottom: 28px; line-height: 1.5; }
.auth-note { color: var(--text-faint); font-size: 11px; margin-top: 16px; }

/* ── Form page ───────────────────────────────────────────────────────────── */
.form-page { max-width: 700px; margin: 0 auto; }

.form-header { margin-bottom: 24px; }
.form-header h1 { font-size: 26px; font-weight: 800; margin: 8px 0; }
.form-header p  { color: var(--text-dim); }

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--text-dim);
    font-size: 13px;
    transition: color .15s;
    margin-bottom: 4px;
}
.back-link:hover { color: var(--accent); }

.form-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius:var(--radius-sm);
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.field { display: flex; flex-direction: column; gap: 6px; }
.field-label { font-size: 13px; font-weight: 600; color: var(--text); }
.field-hint  { font-size: 12px; color: var(--text-faint); }
.field-hint-inline { font-size: 11px; color: var(--text-faint); font-weight: 400; margin-left: 6px; }
.required    { color: var(--error); }

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 4px;
}

/* ── Similar items panel ─────────────────────────────────────────────────── */
.similar-panel {
    background: rgba(245,158,11,.06);
    border: 1px solid rgba(245,158,11,.2);
    border-radius:var(--radius-sm);
    margin-bottom: 16px;
    overflow: hidden;
}

.similar-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    font-size: 12px;
    font-weight: 600;
    color: var(--warning);
    border-bottom: 1px solid rgba(245,158,11,.15);
}

.similar-list { display: flex; flex-direction: column; }

.similar-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px;
    transition: background .1s;
    border-bottom: 1px solid rgba(255,255,255,.04);
}
.similar-row:last-child { border-bottom: none; }
.similar-row:hover { background: rgba(255,255,255,.03); }

.similar-title { font-size: 13px; font-weight: 500; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.similar-meta  { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }

/* ── View page ───────────────────────────────────────────────────────────── */
.view-page {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 28px;
    align-items: start;
}

.view-sidebar { display: flex; flex-direction: column; gap: 12px; }

.vote-widget {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius:var(--radius-sm);
    padding: 16px;
}

.vote-btn {
    width: 40px;
    height: 40px;
    border-radius:var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-elevated);
    color: var(--text-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s, color .15s, border-color .15s;
}
.vote-btn:hover:not(:disabled) { background: var(--bg-card-hover); color: var(--text); }
.vote-btn:disabled { opacity: .5; cursor: not-allowed; }
.vote-up.active  { background: var(--accent-soft); color: var(--accent); border-color: rgba(251,44,98,.4); }
.vote-down.active{ background: var(--error-soft);  color: var(--error);  border-color: rgba(239,68,68,.4); }

.vote-count { font-size: 22px; font-weight: 800; }

.meta-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius:var(--radius-sm);
    overflow: hidden;
}

.meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    font-size: 12px;
    gap: 8px;
}
.meta-row:last-child { border-bottom: none; }
.meta-label { color: var(--text-faint); font-size: 11px; flex-shrink: 0; }
.meta-value { text-align: right; font-weight: 500; font-size: 12px; }

.staff-actions-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius:var(--radius-sm);
    padding: 14px;
}

.staff-actions-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--text-faint);
    margin-bottom: 12px;
}

.staff-btn-row { display: flex; gap: 6px; flex-wrap: wrap; }

.view-main {}

.view-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.view-title {
    font-size: 24px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 16px;
}

.view-body { margin-bottom: 32px; }
.prose { color: var(--text-dim); line-height: 1.7; font-size: 14px; }
.prose p + p { margin-top: 12px; }

.detail-block { margin-top: 20px; }
.detail-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--text-faint);
    margin-bottom: 8px;
}

/* ── Comments ────────────────────────────────────────────────────────────── */
.comments-section { border-top: 1px solid var(--border); padding-top: 24px; }

.comments-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 20px;
}

.comment {
    display: flex;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}
.comment:last-of-type { border-bottom: none; }

.comment-staff {
    background: rgba(251,44,98,.04);
    border-radius:var(--radius-sm);
    padding: 14px;
    border: 1px solid rgba(251,44,98,.12);
    margin-bottom: 8px;
}

.comment-avatar img,
.comment-avatar .avatar-placeholder {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.avatar-placeholder {
    background: var(--accent);
    color: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
}

.comment-body { flex: 1; }
.comment-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 13px;
}
.comment-time { color: var(--text-faint); font-size: 12px; }
.comment-text { font-size: 13px; color: var(--text-dim); line-height: 1.6; }

.no-comments { color: var(--text-faint); font-size: 13px; padding: 16px 0; }

.comment-form { margin-top: 20px; }
.comment-input-wrap { display: flex; gap: 10px; align-items: flex-start; }
.comment-form-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.comment-textarea { flex: 1; min-height: 80px; }

/* ── Staff pages ─────────────────────────────────────────────────────────── */
.staff-page { max-width: 1000px; }

.staff-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 24px;
}
.staff-header h1 { font-size: 26px; font-weight: 800; margin-bottom: 4px; }
.staff-header p  { color: var(--text-dim); font-size: 14px; }

.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius:var(--radius-sm);
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.stat-card.accent { border-color: rgba(251,44,98,.25); background: var(--accent-soft); }
.stat-num { font-size: 28px; font-weight: 800; }
.stat-lbl { font-size: 12px; color: var(--text-dim); }
.stat-card.accent .stat-num { color: var(--accent); }

.staff-list { display: flex; flex-direction: column; gap: 8px; }

.staff-row {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius:var(--radius-sm);
    padding: 14px 16px;
    transition: border-color .15s;
}
.staff-row:hover { border-color: var(--border-light); }

.staff-row-info { flex: 1; min-width: 0; }
.staff-row-top {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.staff-row-title {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.staff-row-title:hover { color: var(--accent); }
.staff-row-excerpt { font-size: 12px; color: var(--text-dim); }
.row-author { font-size: 11px; color: var(--text-faint); }

.staff-row-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; flex-shrink: 0; }
.inline-action-form { display: flex; align-items: center; gap: 6px; }

/* ── Queue ───────────────────────────────────────────────────────────────── */
.priority-legend {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 12px;
    color: var(--text-dim);
    margin-bottom: 12px;
}
.priority-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 4px;
}
.priority-dot.high   { background: var(--error); }
.priority-dot.medium { background: var(--warning); }
.priority-dot.low    { background: var(--text-faint); }

.queue-list { display: flex; flex-direction: column; gap: 6px; }

.queue-row {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius:var(--radius-sm);
    overflow: hidden;
    transition: border-color .15s;
}
.queue-row:hover { border-color: var(--border-light); }

.queue-priority-bar { width: 4px; align-self: stretch; flex-shrink: 0; }
.priority-high   .queue-priority-bar { background: var(--error); }
.priority-medium .queue-priority-bar { background: var(--warning); }
.priority-low    .queue-priority-bar { background: var(--text-faint); }

.queue-row-body { flex: 1; padding: 14px 14px; min-width: 0; }
.queue-row-top {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.queue-title {
    display: block;
    font-size: 14px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.queue-title:hover { color: var(--accent); }
.queue-title.muted { color: var(--text-dim); }

.queue-notes { font-size: 12px; color: var(--text-faint); margin-top: 4px; }

.queue-row-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 14px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.queue-row-completed { opacity: .5; }

.section-heading {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dim);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.priority-form select { width: auto; }

/* ── Responsive ──────────────────────────────────────────────────────────── */

/* Hamburger button (hidden on desktop) */
.nav-hamburger {
    display: none;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius:var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-elevated);
    color: var(--text-dim);
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color .15s, color .15s;
}
.nav-hamburger:hover { border-color: var(--border-light); color: var(--text); }

/* Mobile drawer */
.mob-drawer {
    display: none !important;
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(0,0,0,.6);
    backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s;
}
.mob-drawer.open {
    opacity: 1;
    pointer-events: all;
}

.mob-drawer-inner {
    position: absolute;
    top: 61px;
    left: 0;
    right: 0;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    padding: 12px 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    transform: translateY(-8px);
    transition: transform .2s;
}
.mob-drawer.open .mob-drawer-inner { transform: translateY(0); }

.mob-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    border-radius:var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dim);
    transition: background .12s, color .12s;
}
.mob-nav-link:hover { background: var(--bg-card); color: var(--text); }
.mob-nav-link svg { flex-shrink: 0; opacity: .7; }

.mob-drawer-divider { height: 1px; background: var(--border); margin: 8px 0; }

.mob-nav-cta { color: var(--accent); }
.mob-nav-cta svg { opacity: 1; }
.mob-nav-cta:hover { background: var(--accent-soft); color: var(--accent); }

.mob-nav-discord { color: #7289da; }
.mob-nav-discord svg { opacity: 1; }
.mob-nav-discord:hover { background: rgba(88,101,242,.12); color: #7289da; }

@media (max-width: 720px) {
    /* Nav */
    .nav-hamburger { display: flex; }
    .nav-links { display: none; }
    .nav-username, .btn-ghost-sm { display: none; }
    .nav-inner { padding: 0 16px; }
    .mob-drawer { display: block !important; }
    .badge.badge-staff { display: none; }
    .nav-actions .btn-discord { display: none; }

    /* Main content area */
    .main { padding: 0; }

    /* Home hero */
    .page-hero {
        flex-direction: column;
        padding: 28px 20px 24px;
        gap: 20px;
    }
    .hero-content h1 { font-size: 26px; }
    .hero-content p  { font-size: 14px; }
    .hero-stats {
        width: 100%;
        justify-content: space-between;
        padding: 14px 16px;
    }
    .hero-actions { flex-direction: column; }
    .hero-actions a { width: 100%; justify-content: center; }

    /* Feed */
    .feed-section { padding: 0 16px 32px; }
    .feed-controls {
        flex-direction: column;
        gap: 10px;
        padding: 14px 16px;
        border-radius: var(--radius-sm);
    }
    .feed-search { width: 100%; }
    .feed-filters { width: 100%; justify-content: space-between; }
    .tab-bar { padding: 0 16px; gap: 4px; }
    .tab-btn { font-size: 12px; padding: 8px 10px; }

    /* Feed item rows */
    .feed-row { padding: 14px 16px; gap: 12px; }
    .feed-row-vote { width: 40px; }
    .feed-row-vote .vote-num { font-size: 16px; }
    .feed-row-title { font-size: 13px; }
    .feed-row-meta { flex-wrap: wrap; gap: 4px; }

    /* Create pages */
    .create-page {
        grid-template-columns: 1fr;
        height: auto;
        overflow: visible;
        min-height: calc(100vh - 61px);
    }
    .create-left {
        padding: 24px 20px;
        border-right: none;
        border-bottom: 1px solid var(--border);
        overflow: visible;
    }
    .create-left::before { display: none; }
    .create-left-title { font-size: 22px; }
    .create-tips { margin-top: 20px; padding-top: 20px; }
    .create-right {
        padding: 24px 20px;
        max-width: 100%;
        justify-content: flex-start;
        overflow: visible;
    }

    /* View pages (suggestions/bugs) */
    .vp-wrap { padding: 20px 16px 48px; }
    .vp-layout { grid-template-columns: 1fr; }
    .vp-side { position: static; order: -1; }
    .vp-vote {
        flex-direction: row;
        border-radius:var(--radius-sm);
        overflow: hidden;
    }
    .vp-vote-up, .vp-vote-down { flex: 1; padding: 10px; }
    .vp-vote-divider { display: none; }
    .vp-vote-score-wrap {
        flex-direction: row;
        gap: 6px;
        padding: 10px 16px;
        border-left: 1px solid var(--border);
        border-right: 1px solid var(--border);
        align-items: center;
    }
    .vp-vote-lbl { display: none; }
    .vp-vote-num { font-size: 22px; }
    .vp-title { font-size: 20px; }
    .vp-meta { gap: 6px; font-size: 12px; }
    .vp-description { padding: 16px; font-size: 13px; }
    .vp-staff-btns { flex-direction: column; }
    .vp-staff-btns .btn-accept,
    .vp-staff-btns .btn-deny { flex: none; width: 100%; justify-content: center; }

    /* Staff pages */
    .staff-wrap { padding: 20px 16px; }
    .staff-page-header { flex-direction: column; align-items: flex-start; gap: 12px; }
    .staff-page-header .btn-secondary { align-self: flex-start; }
    .staff-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .staff-stat-num { font-size: 24px; }
    .staff-item-card { flex-direction: column; align-items: flex-start; gap: 12px; }
    .staff-item-time { margin-left: 0; }
    .staff-action-form { flex-wrap: wrap; width: 100%; }

    /* Queue */
    .queue-card { flex-direction: column; }
    .queue-card-stripe { width: 100%; height: 3px; }
    .queue-card-actions {
        padding: 0 16px 14px;
        flex-wrap: wrap;
    }

    /* Roadmap */
    .rm-wrap { padding: 20px 16px 48px; }
    .rm-header { flex-direction: column; gap: 16px; }
    .rm-stats { align-self: stretch; justify-content: center; }
    .rm-title { font-size: 22px; }
    .rm-card-grid { grid-template-columns: 1fr; }

    /* Staff tabs */
    .staff-tabs { overflow-x: auto; gap: 0; }
    .staff-tab { white-space: nowrap; padding: 10px 12px; font-size: 12px; }

    /* Footer */
    .footer-inner {
        flex-direction: column;
        gap: 6px;
        text-align: center;
    }
}

/* ── Staff pages (redesign) ──────────────────────────────────────────────── */
.staff-wrap {
    padding: 32px 40px;
    max-width: 1100px;
    margin: 0 auto;
}

.staff-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 28px;
}

.staff-page-header-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.staff-page-icon {
    width: 42px;
    height: 42px;
    border-radius:var(--radius-sm);
    background: var(--bg-card);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    flex-shrink: 0;
}

.staff-page-title {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 2px;
}

.staff-page-sub {
    font-size: 13px;
    color: var(--text-dim);
}

.queue-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    color: #0a0a0b;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 800;
    padding: 1px 7px;
    margin-left: 4px;
}

/* Stats grid */
.staff-stats-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    margin-bottom: 28px;
}
@media (max-width: 1100px) { .staff-stats-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px)  { .staff-stats-grid { grid-template-columns: repeat(2, 1fr); } }

.staff-stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius:var(--radius-sm);
    padding: 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: border-color .15s;
    min-width: 0;
}
.staff-stat-card:hover { border-color: var(--border-light); }
.staff-stat-accent {
    border-color: rgba(251,44,98,.2);
    background: rgba(251,44,98,.04);
}

.staff-stat-icon {
    width: 32px;
    height: 32px;
    border-radius:var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}
.icon-blue   { background: rgba(59,130,246,.12);  color: #60a5fa; }
.icon-red    { background: rgba(239,68,68,.12);   color: var(--error); }
.icon-accent { background: var(--accent-soft);    color: var(--accent); }
.icon-green  { background: rgba(34,197,94,.12);   color: #4ade80; }
.icon-purple { background: rgba(167,139,250,.12); color: #a78bfa; }
.icon-amber  { background: rgba(245,158,11,.12);  color: #f59e0b; }

/* ──────────────────────────────────────────────────────────────────────────
   RELEASES - public index + detail
   ─────────────────────────────────────────────────────────────────────── */

.rl-wrap { padding: 24px 0 40px; max-width: 1000px; margin: 0 auto; }

.rl-header {
    display: flex; justify-content: space-between; align-items: flex-end;
    gap: 20px; margin-bottom: 32px; flex-wrap: wrap;
}
.rl-title { font-size: 28px; font-weight: 800; margin-bottom: 4px; letter-spacing: -.5px; }
.rl-sub   { color: var(--text-dim); font-size: 14px; }

.rl-header-stats {
    display: flex; align-items: center;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius:var(--radius-sm);
}
.rl-hstat { text-align: center; padding: 10px 18px; }
.rl-hstat-num { display: block; font-size: 20px; font-weight: 800; line-height: 1; margin-bottom: 2px; }
.rl-hstat-lbl { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--text-faint); }
.rl-hstat-div { width: 1px; background: var(--border); height: 28px; align-self: center; }

.rl-empty {
    background: var(--bg-card); border: 1px dashed var(--border); border-radius:var(--radius-sm);
    padding: 48px 24px; text-align: center; color: var(--text-faint);
}
.rl-empty p { margin-top: 12px; font-size: 14px; }

.rl-product { margin-bottom: 36px; }
.rl-product-name {
    font-size: 17px; font-weight: 700;
    margin-bottom: 12px; padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
    display: flex; align-items: baseline; gap: 12px;
}
.rl-product-count {
    font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px;
    color: var(--text-faint);
}

.rl-list { display: flex; flex-direction: column; gap: 8px; }

.rl-card {
    display: flex; justify-content: space-between; align-items: center;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius:var(--radius-sm); padding: 14px 18px;
    text-decoration: none; color: inherit;
    transition: border-color .12s, transform .12s;
}
.rl-card:hover { border-color: var(--accent); transform: translateY(-1px); }
.rl-card-left  { min-width: 0; }
.rl-card-version {
    font-size: 16px; font-weight: 700; color: var(--accent);
    font-family: ui-monospace, Menlo, monospace; line-height: 1;
}
.rl-card-title { font-size: 13px; color: var(--text-dim); margin-top: 4px; }
.rl-card-right { text-align: right; flex-shrink: 0; }
.rl-card-meta  { font-size: 12px; color: var(--text-faint); display: flex; align-items: center; gap: 6px; }
.rl-card-items { color: var(--text-dim); font-weight: 600; }
.rl-card-sep   { opacity: .5; }

/* ── Public release detail page ──────────────────────────────────────── */

.rl-detail-wrap { padding: 24px 0 60px; max-width: 880px; margin: 0 auto; }

.rl-back {
    display: inline-flex; align-items: center; gap: 5px;
    color: var(--text-faint); font-size: 11px; font-weight: 600;
    text-transform: uppercase; letter-spacing: .5px;
    text-decoration: none; margin-bottom: 20px;
    transition: color .12s;
}
.rl-back:hover { color: var(--text); }

/* ── Hero ────────────────────────────────────────────────────────────── */
.rl-hero {
    position: relative;
    background: linear-gradient(180deg, rgba(251,44,98,.04) 0%, rgba(251,44,98,0) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: 28px;
}
.rl-hero-accent {
    position: absolute; top: 0; bottom: 0; left: 0;
    width: 4px; background: var(--accent);
}
.rl-hero-body { padding: 28px 32px 26px; }

.rl-hero-product {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 11px; font-weight: 700; letter-spacing: .8px;
    text-transform: uppercase; color: var(--accent);
    background: rgba(251,44,98,.08);
    border: 1px solid rgba(251,44,98,.2);
    border-radius: var(--radius-sm); padding: 4px 10px 4px 8px;
    margin-bottom: 14px;
}

.rl-hero-version {
    font-size: 44px; font-weight: 800; line-height: 1;
    letter-spacing: -1.5px; margin: 0 0 6px;
    font-family: ui-monospace, 'JetBrains Mono', Menlo, monospace;
}
.rl-hero-title {
    font-size: 18px; font-weight: 500; color: var(--text-dim);
    margin: 0 0 16px; line-height: 1.4;
}

.rl-hero-meta {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    font-size: 12px; color: var(--text-faint); margin-bottom: 16px;
}
.rl-hero-badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(251,44,98,.12);
    color: var(--accent);
    border: 1px solid rgba(251,44,98,.25);
    border-radius: var(--radius-sm); padding: 3px 10px 3px 8px;
    font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
}
.rl-hero-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 2px rgba(251,44,98,.2);
}
.rl-hero-sep { opacity: .4; }
.rl-hero-date { display: inline-flex; align-items: center; gap: 5px; font-weight: 500; }
.rl-hero-changes { font-weight: 600; color: var(--text-dim); }

.rl-breakdown {
    display: flex; flex-wrap: wrap; gap: 8px;
    padding-top: 16px; border-top: 1px solid var(--border);
}
.rl-breakdown-pill {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--bg); border: 1px solid var(--border);
    border-radius: var(--radius-sm); padding: 6px 12px 6px 8px;
}
.rl-breakdown-icon {
    width: 18px; height: 18px; border-radius: var(--radius-sm);
    background: var(--bg); color: var(--c);
    display: inline-flex; align-items: center; justify-content: center;
}
.rl-breakdown-icon svg { width: 11px; height: 11px; }
.rl-breakdown-num { font-size: 14px; font-weight: 800; color: var(--c); line-height: 1; }
.rl-breakdown-lbl { font-size: 11px; font-weight: 600; color: var(--text-dim); text-transform: uppercase; letter-spacing: .5px; }

/* ── Release notes ───────────────────────────────────────────────────── */
.rl-notes {
    display: flex; gap: 14px;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-sm); padding: 18px 22px;
    margin-bottom: 28px;
}
.rl-notes-quote { flex-shrink: 0; padding-top: 2px; color: var(--text-faint); }
.rl-notes-body  { color: var(--text-dim); line-height: 1.6; font-size: 14px; flex: 1; min-width: 0; }

/* ── Changeset sections ──────────────────────────────────────────────── */
.rl-changeset {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 18px 20px 20px;
    margin-bottom: 16px;
}

.rl-changeset-head {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 14px; padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}
.rl-changeset-icon {
    width: 28px; height: 28px; border-radius: var(--radius-sm);
    background: var(--bg);
    color: var(--c);
    display: inline-flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.rl-changeset-icon svg { width: 14px; height: 14px; }
.rl-changeset-title {
    font-size: 16px; font-weight: 700; margin: 0;
    color: var(--c);
}
.rl-changeset-count {
    margin-left: auto;
    font-size: 11px; font-weight: 700; letter-spacing: .5px;
    color: var(--c);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm); padding: 3px 10px;
}

.rl-changeset-list {
    display: flex; flex-direction: column; gap: 8px;
}

/* Real item (suggestion / bug / idea linked) */
.rl-item {
    display: flex; align-items: center; gap: 14px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm); padding: 14px 16px;
    text-decoration: none; color: inherit;
    transition: border-color .15s, transform .15s, background .15s;
}
.rl-item:hover {
    border-color: var(--c);
    transform: translateX(2px);
}
.rl-item-main { flex: 1; min-width: 0; }
.rl-item-titlerow {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    margin-bottom: 4px;
}
.rl-item-title {
    font-size: 14px; font-weight: 600; color: var(--text);
    overflow: hidden; text-overflow: ellipsis;
}
.rl-item-desc {
    font-size: 13px; line-height: 1.5; color: var(--text-faint);
    margin: 0; display: -webkit-box; -webkit-box-orient: vertical;
    -webkit-line-clamp: 2; overflow: hidden;
}
.rl-item-side {
    display: flex; align-items: center; gap: 12px; flex-shrink: 0;
}
.rl-item-arrow {
    color: var(--text-faint); flex-shrink: 0;
    transition: color .15s, transform .15s;
}
.rl-item:hover .rl-item-arrow { color: var(--c); transform: translateX(2px); }

/* Manual note (free-text changelog line) */
.rl-note {
    display: flex; align-items: center; gap: 10px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm); padding: 12px 16px;
    font-size: 13px; color: var(--text-dim); line-height: 1.5;
}
.rl-note-pill {
    flex-shrink: 0;
    font-size: 9px; font-weight: 700; letter-spacing: .5px;
    text-transform: uppercase;
    background: rgba(255,255,255,.06);
    color: var(--text-faint);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm); padding: 2px 6px;
}
.rl-note-text { flex: 1; min-width: 0; }

/* ── Footer ─────────────────────────────────────────────────────────── */
.rl-footer {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: 32px; padding-top: 20px;
    border-top: 1px solid var(--border);
    font-size: 12px; color: var(--text-faint);
}
.rl-footer-download {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--accent); color: #0a0a0b;
    border-radius: var(--radius-sm); padding: 8px 14px;
    font-size: 13px; font-weight: 700;
    text-decoration: none;
    transition: transform .12s, box-shadow .12s;
}
.rl-footer-download:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(251,44,98,.25); }

@media (max-width: 720px) {
    .rl-hero-body { padding: 22px 22px 20px; }
    .rl-hero-version { font-size: 36px; }
    .rl-hero-title { font-size: 16px; }
    .rl-item { flex-direction: column; align-items: flex-start; gap: 10px; }
    .rl-item-side { width: 100%; justify-content: space-between; }
    .rl-footer { flex-direction: column; gap: 14px; align-items: flex-start; }
}

/* ──────────────────────────────────────────────────────────────────────────
   RELEASES - staff admin
   ─────────────────────────────────────────────────────────────────────── */

.rl-staff-section { margin-bottom: 32px; }
.rl-staff-section-title {
    display: flex; align-items: center; gap: 8px;
    font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
    color: var(--text-dim); margin-bottom: 10px;
}
.rl-staff-section-dot { width: 8px; height: 8px; border-radius: 50%; }
.rl-staff-section-count { color: var(--text-faint); font-weight: 500; }

.rl-staff-list { display: flex; flex-direction: column; gap: 6px; }
.rl-staff-row {
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius:var(--radius-sm); padding: 14px 18px;
    text-decoration: none; color: inherit;
    transition: border-color .12s;
}
.rl-staff-row:hover { border-color: var(--border-light); }
.rl-staff-row-main { min-width: 0; }
.rl-staff-row-name {
    display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
    margin-bottom: 4px;
}
.rl-staff-row-product { font-size: 15px; font-weight: 700; }
.rl-staff-row-version {
    font-size: 13px; color: var(--accent); font-weight: 700;
    font-family: ui-monospace, Menlo, monospace;
}
.rl-staff-row-tagline { font-size: 13px; color: var(--text-dim); }
.rl-staff-row-sub { font-size: 11px; color: var(--text-faint); }
.rl-staff-row-meta {
    display: flex; align-items: center; gap: 10px; flex-shrink: 0;
    font-size: 12px; color: var(--text-faint);
}
.rl-staff-row-items { font-weight: 600; color: var(--text-dim); }

/* ── Release edit page ─────────────────────────────────────────────────── */

.rl-edit-header {
    display: flex; justify-content: space-between; align-items: flex-end; gap: 20px;
    margin: 8px 0 22px; flex-wrap: wrap;
}
.rl-edit-eyebrow {
    font-size: 12px; font-weight: 700; color: var(--accent);
    text-transform: uppercase; letter-spacing: .5px; margin-bottom: 4px;
}

.rl-edit-form {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius:var(--radius-sm); padding: 20px 24px;
    margin-bottom: 28px;
}
.rl-edit-grid {
    display: grid;
    grid-template-columns: 1fr 200px;
    gap: 14px 18px;
}
.rl-edit-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.rl-edit-field-wide { grid-column: 1 / -1; }
.rl-edit-field-full { grid-column: 1 / -1; }
.rl-edit-label {
    font-size: 11px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .5px; color: var(--text-faint);
}
.rl-edit-input {
    width: 100%; padding: 10px 12px;
    background: var(--bg-elevated); border: 1px solid var(--border);
    border-radius:var(--radius-sm); color: var(--text); font-size: 14px;
    font-family: inherit; transition: border-color .12s;
}
.rl-edit-input:focus { outline: none; border-color: var(--accent); }
.rl-edit-input:disabled { opacity: .6; cursor: not-allowed; }
.rl-edit-textarea { resize: vertical; min-height: 70px; font-family: inherit; }

.rl-edit-actions {
    display: flex; align-items: center; gap: 10px;
    margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border);
}

/* Per-section blocks on staff release page */
.rl-section-edit {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius:var(--radius-sm); padding: 16px 18px; margin-bottom: 14px;
}
.rl-section-edit-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 10px;
}
.rl-section-edit-title {
    display: flex; align-items: center; gap: 8px;
    font-size: 14px; font-weight: 700;
}
.rl-section-edit-count {
    font-size: 12px; font-weight: 500; color: var(--text-faint);
}
.rl-section-edit-empty {
    color: var(--text-faint); font-size: 13px; padding: 8px 0; font-style: italic;
}
.rl-section-edit-list {
    list-style: none; padding: 0; margin: 0;
    display: flex; flex-direction: column; gap: 4px;
}
.rl-section-edit-row {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    flex-wrap: wrap;
    padding: 9px 12px; background: var(--bg-elevated);
    border: 1px solid var(--border); border-radius:var(--radius-sm);
    font-size: 13px;
}
.rl-section-edit-text {
    display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0;
}
.rl-section-edit-title-link {
    color: var(--text); text-decoration: none; font-weight: 500;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.rl-section-edit-title-link:hover { color: var(--accent); }
.rl-section-edit-row-manual { color: var(--text-dim); }

/* Drag-to-reorder (draft editor) */
.rl-drag-handle {
    display: inline-flex; align-items: center; justify-content: center;
    flex-shrink: 0; width: 18px; align-self: stretch;
    margin: -9px 0 -9px -4px; padding: 0 2px;
    color: var(--text-faint); cursor: grab;
    transition: color .12s;
}
.rl-drag-handle:hover { color: var(--text); }
.rl-drag-handle:active { cursor: grabbing; }
.rl-sortable .rl-section-edit-row { cursor: default; }
.rl-section-edit-row.rl-dragging {
    opacity: .55;
    border-color: var(--accent);
    box-shadow: 0 6px 20px rgba(0,0,0,.35);
}
/* The note-input row inside a queue item spans the full width below the handle. */
.rl-drag-handle + .rl-section-edit-text { min-width: 0; }
/* Added / Fixed / Removed mark on the staff release editor. The inline style
   supplies the colour + tint; this gives it a box to sit in. */
.rl-section-icon {
    width: 24px; height: 24px;
    display: inline-flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.rl-section-icon svg { width: 13px; height: 13px; }

.rl-section-edit-manual-pill {
    font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .3px;
    padding: 2px 6px; border-radius: var(--radius-sm);
    background: rgba(255,255,255,.06); color: var(--text-faint);
}
.rl-section-edit-manual-text { font-size: 13px; color: var(--text-dim); }
.rl-section-edit-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.rl-section-edit-select {
    padding: 4px 6px; background: var(--bg-card); border: 1px solid var(--border);
    border-radius:var(--radius-sm); color: var(--text-dim); font-size: 11px;
    font-family: inherit; cursor: pointer;
}
.rl-icon-btn {
    background: transparent; border: 1px solid var(--border);
    border-radius:var(--radius-sm); width: 26px; height: 26px;
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--text-faint); cursor: pointer; transition: all .12s;
}
.rl-icon-btn:hover { color: var(--error); border-color: var(--error); }

/* Attach panel */
.rl-attach-panel {
    background: rgba(251,44,98,.04); border: 1px dashed rgba(251,44,98,.25);
    border-radius:var(--radius-sm); padding: 16px 18px; margin-top: 22px;
}
.rl-attach-header { margin-bottom: 12px; }
.rl-attach-title {
    display: flex; align-items: center; gap: 8px;
    font-size: 14px; font-weight: 700; color: var(--accent);
    margin-bottom: 4px;
}
.rl-attach-sub { font-size: 12px; color: var(--text-faint); }
.rl-attach-list {
    list-style: none; padding: 0; margin: 0;
    display: flex; flex-direction: column; gap: 4px;
}
.rl-attach-row {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 9px 12px; background: var(--bg-card);
    border: 1px solid var(--border); border-radius:var(--radius-sm);
}
.rl-attach-text { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; font-size: 13px; }
.rl-attach-title-text { color: var(--text); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rl-attach-status { font-size: 11px; color: var(--text-faint); }
.rl-attach-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }

/* Add to Release modal - draft picker */
.atr-draft-opt {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px; background: var(--bg-elevated);
    border: 1px solid var(--border); border-radius:var(--radius-sm);
    cursor: pointer; transition: border-color .12s;
}
.atr-draft-opt:has(input:checked) { border-color: var(--accent); background: rgba(251,44,98,.04); }
.atr-draft-opt input { accent-color: var(--accent); }
.atr-draft-info { display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.atr-draft-title { color: var(--text-dim); font-size: 12px; }

@media (max-width: 720px) {
    .rl-edit-grid { grid-template-columns: 1fr; }
    .rl-staff-row { flex-direction: column; align-items: flex-start; gap: 8px; }
    .rl-staff-row-meta { width: 100%; justify-content: space-between; }
}

/* ──────────────────────────────────────────────────────────────────────────
   SETTINGS PAGE
   ─────────────────────────────────────────────────────────────────────── */

.settings-form {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius:var(--radius-sm); padding: 16px 20px;
}

.settings-table { display: flex; flex-direction: column; }

.settings-table-head {
    display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
    padding: 0 4px 10px; margin-bottom: 8px;
    border-bottom: 1px solid var(--border);
    font-size: 11px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .5px; color: var(--text-faint);
}

.settings-row {
    display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
    align-items: start; padding: 14px 4px;
    border-bottom: 1px solid var(--border);
}
.settings-row:last-child { border-bottom: none; }

.settings-col-product { min-width: 0; }
.settings-product-name { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.settings-product-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.settings-product-slug {
    font-size: 11px; padding: 2px 6px; background: var(--bg-elevated);
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    color: var(--text-dim); font-family: ui-monospace, Menlo, monospace;
}
.settings-product-source {
    font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
}

.settings-col-role { display: flex; flex-direction: column; gap: 6px; }
.settings-ping-preview {
    font-size: 11px; color: var(--text-faint);
}
.settings-ping-preview code {
    font-size: 10px; padding: 1px 5px; background: rgba(251,44,98,.08);
    border-radius: var(--radius-sm); color: var(--accent);
}

.settings-actions {
    display: flex; justify-content: flex-end;
    padding-top: 14px; margin-top: 8px;
    border-top: 1px solid var(--border);
}

/* ── Settings: product cards ─────────────────────────────────────────────── */
.set-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 12px;
}

.set-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 16px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    transition: border-color .15s;
}
.set-card:hover { border-color: var(--border-light); }

.set-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}
.set-card-ident { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.set-card-name {
    font-size: 14px; font-weight: 700; letter-spacing: -.01em;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.set-card-slug {
    font-family: ui-monospace, Menlo, monospace;
    font-size: 11px; color: var(--text-faint);
    align-self: flex-start;
}
.set-card-source {
    flex-shrink: 0;
    font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px;
    padding: 3px 7px;
    border: 1px solid var(--border);
}

.set-field { display: flex; flex-direction: column; gap: 7px; }
.set-field-label {
    display: flex; align-items: center; gap: 8px;
    font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px;
    color: var(--text-dim);
}
.set-field-off {
    font-size: 9px; font-weight: 700; letter-spacing: .4px;
    color: var(--text-faint);
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 2px 6px;
}
.set-field-hint { font-size: 11px; color: var(--text-faint); line-height: 1.5; }
.set-field-hint-on { color: var(--accent); }
.set-field-hint code {
    font-family: ui-monospace, Menlo, monospace;
    font-size: 10px; padding: 1px 5px;
    background: rgba(251,44,98,.1); color: var(--accent);
}

.set-input {
    width: 100%;
    padding: 9px 11px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text);
    font-family: inherit;
    font-size: 13px;
    outline: none;
    transition: border-color .15s;
}
.set-input::placeholder { color: var(--text-faint); }
.set-input:focus { border-color: var(--accent); }
.set-input-num { width: 100%; font-variant-numeric: tabular-nums; }

/* Checkbox pills (product↔platform links, active/delete toggles) */
.set-checks { display: flex; flex-wrap: wrap; gap: 6px; }
.set-check {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 7px 11px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    font-size: 12px; font-weight: 600; color: var(--text-dim);
    cursor: pointer; user-select: none;
    transition: border-color .15s, color .15s, background .15s;
}
.set-check:hover { border-color: var(--border-light); color: var(--text); }
.set-check input { accent-color: var(--accent); cursor: pointer; margin: 0; }
.set-check:focus-within { outline: 2px solid var(--accent); outline-offset: 1px; }
.set-check:has(input:checked) {
    border-color: rgba(251,44,98,.45); background: var(--accent-soft); color: var(--accent);
}
.set-check-wide { justify-content: center; width: 100%; }
.set-check-danger:has(input:checked) {
    border-color: rgba(239,68,68,.45); background: var(--error-soft); color: var(--error);
}

/* ── Settings: platform master list ──────────────────────────────────────── */
.plat-table { display: flex; flex-direction: column; }

.plat-head,
.plat-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 96px 130px 130px;
    gap: 12px;
    align-items: center;
}

.plat-head {
    padding: 0 2px 10px;
    border-bottom: 1px solid var(--border);
    font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px;
    color: var(--text-faint);
}

.plat-row {
    padding: 12px 2px;
    border-bottom: 1px solid var(--border);
}
.plat-row:last-child { border-bottom: none; }
.plat-row-retired .set-input { color: var(--text-faint); }

@media (max-width: 720px) {
    .set-grid { grid-template-columns: 1fr; }
    .plat-head { display: none; }
    .plat-row {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 14px 2px;
    }
    .plat-cell::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 5px;
        font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px;
        color: var(--text-faint);
    }
}

/* ── Platform picker on the create forms ─────────────────────────────────── */
.platform-options { display: flex; flex-wrap: wrap; gap: 8px; }

.platform-opt {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 9px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    font-size: 13px; font-weight: 600; color: var(--text-dim);
    cursor: pointer; user-select: none;
    transition: border-color .15s, color .15s, background .15s;
}
.platform-opt:hover { border-color: var(--border-light); color: var(--text); background: var(--bg-card-hover); }
.platform-opt input { accent-color: var(--accent); cursor: pointer; margin: 0; }
.platform-opt:has(input:checked) {
    border-color: rgba(251,44,98,.45); background: var(--accent-soft); color: var(--accent);
}
.platform-opt:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Nothing ticked on submit, while the product does offer platforms. */
.platform-field-error .platform-opt { border-color: rgba(239,68,68,.5); }
.platform-field-error .create-field-hint { color: var(--error); }
.platform-field-error .create-field-hint::before { content: "Pick at least one platform - "; font-weight: 600; }

.create-label-optional {
    font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
    color: var(--text-faint);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    padding: 2px 6px; margin-left: 6px;
}

/* Platform chips - feed rows, item headers, info sidebar */
.platform-tag {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 2px 8px;
    font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px;
    background: rgba(96,165,250,.12); color: #60a5fa;
    white-space: nowrap;
}
.platform-tag + .platform-tag { margin-left: 4px; }
.platform-tag .platform-icon { flex-shrink: 0; opacity: .9; }

/* Icon inside a create-form checkbox pill */
.platform-opt-icon { display: inline-flex; align-items: center; flex-shrink: 0; opacity: .75; }
.platform-opt:has(input:checked) .platform-opt-icon { opacity: 1; }

@media (max-width: 720px) {
    .settings-table-head { display: none; }
    .settings-row { grid-template-columns: 1fr; gap: 8px; }
}

.staff-stat-num { font-size: 26px; font-weight: 800; line-height: 1; }
.staff-stat-lbl { font-size: 12px; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.staff-stat-accent .staff-stat-num { color: var(--accent); }

/* Staff tabs */
.staff-tabs {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 20px;
}

.staff-tab {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dim);
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color .15s, border-color .15s;
}
.staff-tab:hover { color: var(--text); }
.staff-tab.active { color: var(--accent); border-bottom-color: var(--accent); }

.staff-tab-count {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 700;
    padding: 1px 7px;
    color: var(--text-faint);
}
.staff-tab.active .staff-tab-count { background: var(--accent-soft); border-color: var(--accent-glow); color: var(--accent); }

/* Empty state */
.staff-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    gap: 10px;
    color: var(--text-dim);
    font-size: 14px;
    text-align: center;
}

/* Item list */
.staff-item-list { display: flex; flex-direction: column; gap: 8px; }

/* Pagination - staff dashboard */
.staff-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 18px;
    padding: 14px 4px 4px;
    flex-wrap: wrap;
}
.staff-pagination-info {
    font-size: 12px;
    color: var(--text-faint);
}
.staff-pagination-pages {
    display: flex;
    align-items: center;
    gap: 4px;
}
.staff-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius:var(--radius-sm);
    color: var(--text-dim);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all .12s;
    font-family: inherit;
    cursor: pointer;
}
.staff-page-btn:hover {
    border-color: var(--border-light);
    color: var(--text);
    background: var(--bg-elevated);
}
.staff-page-btn-current {
    background: var(--accent-soft);
    border-color: rgba(251,44,98,.3);
    color: var(--accent);
}
.staff-page-btn-current:hover {
    background: var(--accent-soft);
    border-color: rgba(251,44,98,.45);
    color: var(--accent);
}
.staff-page-btn-disabled {
    opacity: .35;
    pointer-events: none;
}
.staff-page-ellipsis {
    color: var(--text-faint);
    padding: 0 4px;
    font-size: 13px;
    user-select: none;
}

.staff-item-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius:var(--radius-sm);
    padding: 16px 18px;
    transition: border-color .15s;
}
.staff-item-card:hover { border-color: var(--border-light); }

.staff-item-body { flex: 1; min-width: 0; }

.staff-item-meta-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 7px;
}

.staff-item-votes {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-faint);
}
.staff-item-votes.positive { color: var(--accent); }

.staff-item-comments {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 12px;
    color: var(--text-faint);
}

.staff-item-time { font-size: 11px; color: var(--text-faint); margin-left: auto; }

.staff-item-author {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: var(--text-faint);
}

.staff-item-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text);
    transition: color .15s;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.staff-item-title:hover { color: var(--accent); }

.staff-item-external { opacity: 0; flex-shrink: 0; transition: opacity .15s; }
.staff-item-title:hover .staff-item-external { opacity: .5; }

.staff-item-excerpt { font-size: 12px; color: var(--text-dim); line-height: 1.5; }

.staff-item-actions { display: flex; align-items: center; flex-shrink: 0; }

.staff-action-form {
    display: flex;
    align-items: center;
    gap: 6px;
}

.staff-priority-select {
    appearance: none;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius:var(--radius-sm);
    color: var(--text-dim);
    font-family: inherit;
    font-size: 11px;
    padding: 5px 8px;
    outline: none;
    cursor: pointer;
    transition: border-color .15s;
}
.staff-priority-select:hover { border-color: var(--border-light); }

/* Queue redesign */
.priority-legend {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 12px;
    color: var(--text-dim);
    margin-bottom: 14px;
}
.p-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 3px;
}
.p-dot.high { background: var(--error); }
.p-dot.med  { background: var(--warning); }
.p-dot.low  { background: var(--text-faint); }

.queue-list { display: flex; flex-direction: column; gap: 8px; }

.queue-card {
    display: flex;
    align-items: center;
    gap: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius:var(--radius-sm);
    overflow: hidden;
    transition: border-color .15s;
}
.queue-card:hover { border-color: var(--border-light); }
.queue-card-done { opacity: .55; }

.queue-card-stripe {
    width: 3px;
    align-self: stretch;
    flex-shrink: 0;
}
.priority-high  .queue-card-stripe { background: var(--error); }
.priority-medium .queue-card-stripe { background: var(--warning); }
.priority-low   .queue-card-stripe { background: var(--text-faint); }
.queue-card-stripe.done { background: var(--accent); }

.queue-card-body {
    flex: 1;
    padding: 15px 18px;
    min-width: 0;
}

.queue-card-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 7px;
}

.queue-priority-badge {
    display: inline-flex;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .4px;
}
.priority-high  .queue-priority-badge { background: rgba(239,68,68,.12);  color: var(--error); }
.priority-medium .queue-priority-badge { background: rgba(245,158,11,.12); color: var(--warning); }
.priority-low   .queue-priority-badge { background: rgba(113,113,122,.1); color: var(--text-faint); }

.queue-card-notes { font-size: 12px; color: var(--text-faint); margin-top: 4px; }

.queue-card-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 16px;
    flex-shrink: 0;
}

.queue-completed-section { margin-top: 40px; }
.queue-completed-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: var(--text-faint);
    margin-bottom: 12px;
}

@media (max-width: 900px) {
    .staff-wrap { padding: 20px 16px; }
    .staff-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .staff-item-card { flex-direction: column; align-items: flex-start; }
    .staff-item-time { margin-left: 0; }
    .queue-card { flex-direction: column; }
    .queue-card-stripe { width: 100%; height: 3px; }
    .queue-card-actions { padding: 0 16px 14px; }
}

/* ── Create page (two-column redesign) ───────────────────────────────────── */
.create-page {
    display: grid;
    grid-template-columns: 380px 1fr;
    height: calc(100vh - 61px);
    overflow: hidden;
}

/* Left info panel */
.create-left {
    padding: 40px 44px 40px 48px;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    background: var(--bg-elevated);
    position: relative;
    overflow: hidden;
}

.create-left::before {
    content: "";
    position: absolute;
    bottom: -100px;
    left: -80px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(251,44,98,.06) 0%, transparent 70%);
    pointer-events: none;
}

.create-left-icon {
    width: 52px;
    height: 52px;
    border-radius:var(--radius-sm);
    background: var(--accent-soft);
    border: 1px solid var(--accent-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    margin-bottom: 20px;
}

.create-left-title {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -.5px;
    margin-bottom: 14px;
}

.create-left-sub {
    font-size: 14px;
    color: var(--text-dim);
    line-height: 1.65;
    margin-bottom: 36px;
}

.create-tips {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.create-tip {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.create-tip-icon {
    width: 28px;
    height: 28px;
    border-radius:var(--radius-sm);
    background: var(--bg-card);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 1px;
}

.create-tip strong {
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 2px;
}

.create-tip p {
    font-size: 12px;
    color: var(--text-dim);
    line-height: 1.5;
    margin: 0;
}

/* Right form panel */
.create-right {
    padding: 40px 52px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 640px;
    overflow-y: auto;
}

.create-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.create-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.create-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
}

.create-label-required {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--text-faint);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 2px 6px;
}

.create-input {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius:var(--radius-sm);
    color: var(--text);
    font-family: inherit;
    font-size: 14px;
    padding: 12px 14px;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
    width: 100%;
}
.create-input::placeholder { color: var(--text-faint); }
.create-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.create-textarea {
    resize: vertical;
    min-height: 160px;
    line-height: 1.6;
}

.create-field-hint {
    font-size: 12px;
    color: var(--text-faint);
}

.create-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 8px;
    border-top: 1px solid var(--border);
    margin-top: 4px;
}

.create-actions .btn-primary {
    padding: 11px 22px;
    font-size: 14px;
}

@media (max-width: 860px) {
    .create-page { grid-template-columns: 1fr; min-height: auto; }
    .create-left {
        padding: 32px 24px;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }
    .create-left-title { font-size: 24px; }
    .create-tips { margin-top: 24px; }
    .create-right { padding: 32px 24px; max-width: 100%; justify-content: flex-start; }
}

/* ── Custom select - form variant (full-width, create pages) ─────────────── */
.cs-form {
    width: 100%;
}

.cs-trigger-form {
    width: 100%;
    padding: 12px 14px;
    font-size: 14px;
    min-width: unset;
    justify-content: space-between;
}
.cs-trigger-form .cs-label {
    color: var(--text-faint);
    font-weight: 400;
}
.cs-trigger-form.has-value .cs-label {
    color: var(--text);
}
.cs-trigger-form:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

/* NB: do NOT set `display` here - .cs-dropdown is hidden with display:none and
   shown by .custom-select.open. A bare `display:flex` on this class has equal
   specificity but lands later in the file, so it would override that hide and
   pin the dropdown permanently open. Apply the flex layout in the open state. */
.cs-dropdown-form {
    width: 100%;
    padding: 4px;
    overflow: hidden;          /* the options list scrolls, not the whole panel */
}
.custom-select.open .cs-dropdown-form {
    display: flex;
    flex-direction: column;
}

/* Search box pinned at the top of the product dropdown */
.cs-search {
    position: relative;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin-bottom: 4px;
    border-bottom: 1px solid var(--border);
}
.cs-search svg {
    position: absolute;
    left: 10px;
    color: var(--text-faint);
    pointer-events: none;
}
.cs-search-input {
    width: 100%;
    padding: 9px 10px 9px 32px;
    background: transparent;
    border: none;
    color: var(--text);
    font-family: inherit;
    font-size: 13px;
    outline: none;
}
.cs-search-input::placeholder { color: var(--text-faint); }

.cs-options {
    display: flex;
    flex-direction: column;
    max-height: 240px;
    overflow-y: auto;
}

.cs-no-results {
    padding: 14px 12px;
    text-align: center;
    font-size: 12px;
    color: var(--text-faint);
}

.cs-option-form {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    text-align: left;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text-dim);
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background .12s, color .12s;
    white-space: nowrap;
}
.cs-option-form:hover  { background: var(--bg-card-hover); color: var(--text); }
.cs-option-form.active { color: var(--accent); background: var(--accent-soft); }
.cs-option-form .cs-check {
    margin-left: auto;
    opacity: 0;
    color: var(--accent);
    flex-shrink: 0;
}
.cs-option-form.active .cs-check { opacity: 1; }

/* Bug-page red focus override */
.create-left-bug-page .cs-trigger-form:focus,
.bug-form .cs-trigger-form:focus {
    border-color: var(--error);
    box-shadow: 0 0 0 3px rgba(239,68,68,.1);
}

/* Scrollbar for dropdown */
.cs-dropdown-form::-webkit-scrollbar,
.cs-options::-webkit-scrollbar { width: 4px; }
.cs-dropdown-form::-webkit-scrollbar-track,
.cs-options::-webkit-scrollbar-track { background: transparent; }
.cs-dropdown-form::-webkit-scrollbar-thumb,
.cs-options::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: var(--radius-sm); }


/* ── Suggestion / Bug view page ─────────────────────────────────────────── */
.vp-wrap {
    max-width: 1080px;
    margin: 0 auto;
    padding: 36px 40px 64px;
}

/* Back link */
.vp-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-faint);
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 24px;
    transition: color .15s;
}
.vp-back:hover { color: var(--accent); }

/* Two-column grid */
.vp-layout {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 28px;
    align-items: start;
}

/* ── Left column ─────────────────────────────────────────────────────────── */
.vp-main { min-width: 0; }

/* Issue header inside left column */
.vp-header {
    margin-bottom: 20px;
}

.vp-tags {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.vp-title {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -.3px;
    line-height: 1.3;
    margin-bottom: 12px;
    color: var(--text);
}

.vp-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-dim);
    flex-wrap: wrap;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.vp-meta-author {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: var(--text);
}

.vp-meta-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 1.5px solid var(--border);
}
.vp-meta-avatar-ph {
    background: var(--accent);
    color: #0a0a0b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 800;
}

.vp-meta-sep { color: var(--border-light); }

.vp-meta-stat {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--text-dim);
}

/* Description */
.vp-description {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius:var(--radius-sm);
    padding: 22px 24px;
    margin-bottom: 28px;
    font-size: 14px;
    color: var(--text-dim);
    line-height: 1.75;
    white-space: pre-line;
}

/* Idea-specific: Target audience + Problem solved card.
   Matches the visual weight of .vp-description so the extras feel
   like first-class content rather than unstyled afterthoughts. */
.vp-extras {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius:var(--radius-sm);
    padding: 4px 24px;
    margin-bottom: 28px;
    display: flex;
    flex-direction: column;
}
.vp-extra-row {
    padding: 18px 0;
}
.vp-extra-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--text-faint);
    margin-bottom: 6px;
}
.vp-extra-value {
    font-size: 14px;
    color: var(--text);
    line-height: 1.6;
}
.vp-extra-value-multi {
    white-space: pre-wrap;
}
.vp-extra-divider {
    height: 1px;
    background: var(--border);
}

/* Comments */
.vp-comments {}

.vp-comments-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 16px;
}

.vp-no-comments {
    font-size: 13px;
    color: var(--text-faint);
    padding: 14px 0 20px;
}

.vp-comment {
    display: flex;
    gap: 12px;
    padding: 16px 0;
    border-top: 1px solid var(--border);
}

.vp-comment-av img,
.vp-comment-av-ph {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.vp-comment-av-ph {
    background: var(--accent);
    color: #0a0a0b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
}

.vp-comment-body { flex: 1; min-width: 0; }

.vp-comment-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 13px;
}
.vp-comment-meta strong { font-weight: 700; }
.vp-comment-time { font-size: 12px; color: var(--text-faint); }

.vp-comment-text {
    font-size: 13px;
    color: var(--text-dim);
    line-height: 1.65;
    white-space: pre-line;
}

.vp-comment-staff {
    background: rgba(251,44,98,.03);
    border-radius:var(--radius-sm);
    padding: 14px;
    margin-bottom: 2px;
    border-top: none !important;
    border: 1px solid rgba(251,44,98,.12);
}

/* Comment form */
.vp-comment-form {
    border-top: 1px solid var(--border);
    padding-top: 20px;
    margin-top: 4px;
}

.vp-comment-form-inner {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.vp-comment-form-av {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.vp-comment-input {
    flex: 1;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius:var(--radius-sm);
    color: var(--text);
    font-family: inherit;
    font-size: 13px;
    padding: 10px 12px;
    resize: none;
    outline: none;
    transition: border-color .15s;
    line-height: 1.5;
    min-height: 80px;
}
.vp-comment-input::placeholder { color: var(--text-faint); }
.vp-comment-input:focus { border-color: var(--accent); }

.vp-comment-submit {
    display: flex;
    justify-content: flex-end;
    margin-top: 8px;
}

/* ── Right sidebar ───────────────────────────────────────────────────────── */
.vp-side {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: sticky;
    top: 80px;
}

/* Vote widget */
.vp-vote {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius:var(--radius-sm);
    overflow: hidden;
}

.vp-vote-up,
.vp-vote-down {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s, color .15s;
    color: var(--text-dim);
}
.vp-vote-up:hover:not(:disabled)   { background: var(--accent-soft); color: var(--accent); }
.vp-vote-down:hover:not(:disabled) { background: var(--error-soft);  color: var(--error);  }
.vp-vote-up.active   { background: var(--accent-soft); color: var(--accent); }
.vp-vote-down.active { background: var(--error-soft);  color: var(--error);  }
.vp-vote-up:disabled,
.vp-vote-down:disabled { opacity: .4; cursor: not-allowed; }

.vp-vote-divider { border: none; border-top: 1px solid var(--border); margin: 0; }

.vp-vote-score-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 12px;
    gap: 2px;
}
.vp-vote-num {
    font-size: 36px;
    font-weight: 800;
    line-height: 1;
    color: var(--text);
}
.vp-vote-lbl {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: var(--text-faint);
}

.vp-vote-signin {
    display: block;
    text-align: center;
    padding: 10px;
    font-size: 12px;
    color: var(--text-faint);
    border-top: 1px solid var(--border);
    transition: color .15s;
}
.vp-vote-signin:hover { color: var(--accent); }

/* Info card */
.vp-info {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius:var(--radius-sm);
    overflow: hidden;
}

.vp-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    gap: 8px;
    font-size: 12px;
}
.vp-info-row:last-child { border-bottom: none; }
.vp-info-label { color: var(--text-faint); font-size: 11px; flex-shrink: 0; }
.vp-info-val   { font-weight: 500; display: flex; align-items: center; gap: 5px; }

/* Staff card */
.vp-staff {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius:var(--radius-sm);
    padding: 16px;
}

.vp-staff-title {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--text-faint);
    margin-bottom: 14px;
}

.vp-staff-field { margin-bottom: 12px; }

.vp-staff-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-dim);
    margin-bottom: 5px;
}

.vp-staff-textarea {
    width: 100%;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius:var(--radius-sm);
    color: var(--text);
    font-family: inherit;
    font-size: 12px;
    padding: 8px 10px;
    resize: none;
    outline: none;
    transition: border-color .15s;
    line-height: 1.5;
}
.vp-staff-textarea::placeholder { color: var(--text-faint); }
.vp-staff-textarea:focus { border-color: var(--accent); }

.vp-staff-btns {
    display: flex;
    gap: 6px;
    margin-bottom: 6px;
}

/* Responsive */
@media (max-width: 860px) {
    .vp-wrap { padding: 24px 20px 48px; }
    .vp-layout { grid-template-columns: 1fr; }
    .vp-side { position: static; }
    .vp-vote { display: flex; flex-direction: row; }
    .vp-vote-up, .vp-vote-down { flex: 1; }
    .vp-vote-divider { display: none; }
    .vp-vote-score-wrap { flex-direction: row; gap: 8px; padding: 12px; border-left: 1px solid var(--border); border-right: 1px solid var(--border); }
    .vp-vote-lbl { display: none; }
    .vp-title { font-size: 22px; }
}

/* ── Staff panel extras ──────────────────────────────────────────────────── */
.vp-staff-divider {
    height: 1px;
    background: var(--border);
    margin: 14px 0;
}

.vp-priority-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    vertical-align: middle;
}
.vp-priority-dot.low    { background: var(--text-faint); }
.vp-priority-dot.medium { background: var(--warning); }
.vp-priority-dot.high   { background: var(--error); }

/* Priority dot inside custom select options */
.cs-option-form .vp-priority-dot { margin-right: 6px; }

/* ── Public Roadmap ──────────────────────────────────────────────────────── */
.rm-wrap { max-width:1100px; margin:0 auto; padding:40px 40px 60px; }
.rm-header { display:flex; justify-content:space-between; align-items:flex-start; gap:24px; margin-bottom:40px; }
.rm-title { font-size:28px; font-weight:800; margin-bottom:6px; }
.rm-sub   { color:var(--text-dim); font-size:14px; }
.rm-stats { display:flex; align-items:center; background:var(--bg-card); border:1px solid var(--border); border-radius:var(--radius); padding:16px 0; flex-shrink:0; }
.rm-stat  { text-align:center; padding:0 24px; }
.rm-stat-num { display:block; font-size:28px; font-weight:800; color:var(--text); line-height:1; margin-bottom:4px; }
.rm-stat-shipped { color:var(--accent); }
.rm-stat-lbl { font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.5px; color:var(--text-faint); }
.rm-stat-div { width:1px; background:var(--border); height:36px; }
.rm-empty { text-align:center; padding:60px 20px; color:var(--text-dim); display:flex; flex-direction:column; align-items:center; gap:12px; }
.rm-empty a { color:var(--accent); }

.rm-products { display:flex; flex-direction:column; gap:44px; }

.rm-product-header { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:16px; padding-bottom:14px; border-bottom:1px solid var(--border); }
.rm-product-name { font-size:18px; font-weight:800; display:flex; align-items:center; gap:10px; }
.rm-product-count { font-size:12px; font-weight:700; background:var(--bg-card); border:1px solid var(--border); color:var(--text-faint); padding:2px 8px; border-radius:var(--radius-sm); }
.rm-product-meta { display:flex; align-items:center; gap:8px; }
.rm-pstat { font-size:12px; font-weight:600; padding:3px 10px; border-radius:var(--radius-sm); }
.rm-pstat.planned { background:var(--accent-soft); color:var(--accent); }
.rm-pstat.shipped { background:rgba(113,113,122,.12); color:var(--text-faint); }

/* Card grid */
.rm-card-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(280px, 1fr)); gap:14px; margin-bottom:20px; }

.rm-card { display:flex; flex-direction:column; gap:10px; background:var(--bg-card); border:1px solid var(--border); border-radius:var(--radius); padding:16px; text-decoration:none; color:inherit; transition:border-color .15s, transform .15s, box-shadow .15s; }
.rm-card:hover { border-color:var(--accent); transform:translateY(-2px); box-shadow:0 8px 24px rgba(0,0,0,.3); }

.rm-card-top { display:flex; align-items:flex-start; justify-content:space-between; gap:8px; }
.rm-card-badges { display:flex; align-items:center; gap:6px; flex-wrap:wrap; }
.rm-card-votes { display:flex; align-items:center; gap:4px; font-size:13px; font-weight:700; color:var(--text-dim); flex-shrink:0; }
.rm-card-title { font-size:14px; font-weight:700; color:var(--text); line-height:1.4; flex:1; }
.rm-card:hover .rm-card-title { color:var(--accent); }

.rm-card-footer { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-top:auto; padding-top:10px; border-top:1px solid var(--border); }
.rm-card-author { display:flex; align-items:center; gap:6px; font-size:12px; color:var(--text-faint); }
.rm-card-tags { display:flex; align-items:center; gap:5px; }
.rm-card-tag { font-size:10px; font-weight:700; text-transform:uppercase; letter-spacing:.3px; padding:2px 7px; border-radius:var(--radius-sm); }
.rm-tag-timeline { background:rgba(96,165,250,.1); color:#60a5fa; }

/* Card dev status chips */
.rm-card-chip { font-size:10px; font-weight:700; text-transform:uppercase; letter-spacing:.3px; padding:2px 7px; border-radius:var(--radius-sm); }
.rm-card-chip-to-do       { background:rgba(113,113,122,.1); color:#a1a1aa; }
.rm-card-chip-in-progress { background:rgba(59,130,246,.12); color:#60a5fa; }
.rm-card-chip-in-review   { background:rgba(245,158,11,.12); color:#f59e0b; }
.rm-card-chip-approved    { background:rgba(139,92,246,.12); color:#a78bfa; }
.rm-card-chip-done        { background:var(--accent-soft);   color:var(--accent); }
.rm-card-chip-not-sure    { background:rgba(113,113,122,.1); color:#a1a1aa; }

/* Badges */
.rm-badge { display:inline-flex; align-items:center; gap:5px; font-size:11px; font-weight:700; padding:3px 9px; border-radius:var(--radius-sm); }
.rm-badge-planned { background:var(--accent-soft); color:var(--accent); }
.rm-badge-shipped { background:rgba(113,113,122,.12); color:var(--text-faint); }

/* Shipped rows */
.rm-shipped-section { margin-top:8px; }
.rm-shipped-label { display:flex; align-items:center; gap:6px; font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.5px; color:var(--text-faint); margin-bottom:8px; }
.rm-shipped-list { display:flex; flex-direction:column; gap:4px; }
.rm-shipped-row { display:flex; align-items:center; gap:12px; padding:10px 14px; background:var(--bg-card); border:1px solid var(--border); border-radius:var(--radius-sm); text-decoration:none; color:inherit; transition:border-color .12s; opacity:.7; }
.rm-shipped-row:hover { border-color:var(--border-light); opacity:1; }
.rm-shipped-title { flex:1; font-size:13px; font-weight:600; color:var(--text-dim); }
.rm-shipped-votes { display:flex; align-items:center; gap:4px; font-size:12px; color:var(--text-faint); }

/* Compat chips */
.rm-status-chip { display:inline-flex; align-items:center; padding:2px 8px; border-radius:var(--radius-sm); font-size:10px; font-weight:700; text-transform:uppercase; letter-spacing:.3px; white-space:nowrap; }
.rm-chip-timeline     { background:rgba(96,165,250,.1);  color:#60a5fa; }
.rm-chip-in-progress  { background:rgba(59,130,246,.1);  color:#3b82f6; }
.rm-chip-in-review    { background:rgba(245,158,11,.1);  color:#f59e0b; }
.rm-chip-approved     { background:rgba(139,92,246,.1);  color:#a78bfa; }
.rm-chip-to-do        { background:rgba(113,113,122,.1); color:#a1a1aa; }
.rm-chip-not-sure     { background:rgba(113,113,122,.1); color:#a1a1aa; }

/* ── Confirm modal ───────────────────────────────────────────────────────── */
.lx-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.65);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease;
    padding: 20px;
}
.lx-modal-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.lx-modal-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 28px 28px 24px;
    width: 100%;
    max-width: 380px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
    box-shadow: 0 24px 64px rgba(0,0,0,.5);
    transform: scale(.96) translateY(4px);
    transition: transform .18s ease;
}
.lx-modal-overlay.open .lx-modal-card {
    transform: scale(1) translateY(0);
}

.lx-modal-icon { margin-bottom: 4px; }

.lx-icon-circle {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lx-modal-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--text);
    line-height: 1.3;
}

.lx-modal-msg {
    font-size: 13px;
    color: var(--text-dim);
    line-height: 1.55;
    margin-top: -2px;
}

.lx-modal-btns {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    width: 100%;
}

.lx-modal-cancel {
    flex: 1;
    justify-content: center;
    padding: 10px;
    font-size: 13px;
}

.lx-modal-confirm {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius:var(--radius-sm);
    border: none;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity .15s;
}
.lx-modal-confirm:hover { opacity: .85; }

/* Confirm button colour variants */
.lx-confirm-accept  { background: var(--accent); color: #0a0a0b; }
.lx-confirm-deny    { background: var(--error);  color: #fff; }
.lx-confirm-archive { background: #3f3f46;       color: var(--text); }
.lx-confirm-complete{ background: var(--accent); color: #0a0a0b; }
.lx-confirm-default { background: var(--accent); color: #0a0a0b; }

.vp-section-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--text-faint);
    margin-bottom: 8px;
    margin-top: 4px;
}

.vp-steps {
    font-family: 'Fira Code', 'Cascadia Code', 'Consolas', monospace;
    font-size: 13px;
    background: #0d0e12;
    border-color: #1f2028;
}

/* ── Staff proxy submission page ─────────────────────────────────────────── */
.proxy-left .create-left-icon,
.proxy-icon {
    background: rgba(139,92,246,.1);
    border-color: rgba(139,92,246,.25);
    color: #a78bfa;
}

.proxy-accent { color: #a78bfa; }

.proxy-tip-icon {
    background: var(--bg-card) !important;
    border-color: rgba(139,92,246,.15) !important;
    color: #a78bfa !important;
}

/* Type toggle */
.proxy-type-toggle {
    display: flex;
    gap: 8px;
}

.proxy-type-opt {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 16px;
    border: 1px solid var(--border);
    border-radius:var(--radius-sm);
    background: var(--bg-elevated);
    color: var(--text-dim);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all .15s;
    user-select: none;
}
.proxy-type-opt:hover { border-color: var(--border-light); color: var(--text); }
.proxy-type-opt.selected {
    border-color: #a78bfa;
    background: rgba(139,92,246,.08);
    color: #a78bfa;
}
.proxy-type-opt input { display: none; }

/* User search */
.proxy-user-search { position: relative; }

.proxy-search-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.proxy-search-icon {
    position: absolute;
    left: 12px;
    color: var(--text-faint);
    pointer-events: none;
    flex-shrink: 0;
}

.proxy-search-input {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius:var(--radius-sm);
    color: var(--text);
    font-family: inherit;
    font-size: 14px;
    padding: 12px 14px 12px 36px;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
}
.proxy-search-input::placeholder { color: var(--text-faint); }
.proxy-search-input:focus {
    border-color: #a78bfa;
    box-shadow: 0 0 0 3px rgba(139,92,246,.1);
}

.proxy-search-results {
    position: absolute;
    top: calc(100% + 4px);
    left: 0; right: 0;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius:var(--radius-sm);
    box-shadow: var(--shadow-lg);
    z-index: 100;
    overflow: hidden;
    max-height: 240px;
    overflow-y: auto;
}

.proxy-result-row {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    border: none;
    background: transparent;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    transition: background .12s;
}
.proxy-result-row:hover { background: var(--bg-card); }

.proxy-result-av {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.proxy-result-av-ph {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #a78bfa;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    flex-shrink: 0;
}

.proxy-result-name {
    flex: 1;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}

.proxy-result-badge {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .4px;
    color: var(--accent);
    background: var(--accent-soft);
    padding: 2px 7px;
    border-radius: var(--radius-sm);
}

.proxy-result-none {
    padding: 10px 12px;
    font-size: 12px;
    color: var(--text-dim);
    border-bottom: 1px solid var(--border);
}
.proxy-result-none strong { color: var(--text); }

.proxy-result-use-typed {
    display: block;
    width: 100%;
    padding: 10px 12px;
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    color: #a78bfa;
    cursor: pointer;
    text-align: left;
    transition: background .12s;
}
.proxy-result-use-typed:hover { background: rgba(139,92,246,.08); }
.proxy-result-manual { border-top: 1px solid var(--border); color: var(--text-dim); }
.proxy-result-manual:hover { color: var(--text); background: var(--bg-card); }

/* Attribution preview */
.proxy-attribution-preview {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    padding: 10px 12px;
    background: rgba(139,92,246,.06);
    border: 1px solid rgba(139,92,246,.2);
    border-radius:var(--radius-sm);
}

.proxy-attr-avatar {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
}
.proxy-attr-avatar img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
}
.proxy-attr-avatar-ph {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #a78bfa;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
}

.proxy-attr-name {
    flex: 1;
    font-size: 13px;
    font-weight: 700;
    color: #a78bfa;
}

.proxy-attr-clear {
    background: transparent;
    border: none;
    color: var(--text-faint);
    cursor: pointer;
    padding: 2px;
    display: flex;
    align-items: center;
    transition: color .15s;
}
.proxy-attr-clear:hover { color: var(--error); }

/* Submit button - purple for this page */
.proxy-submit-btn {
    background: #7c3aed !important;
}
.proxy-submit-btn:hover {
    background: #6d28d9 !important;
}

/* Staff-submitted badge in views */
.badge-proxy {
    background: rgba(139,92,246,.1);
    color: #a78bfa;
    border: 1px solid rgba(139,92,246,.2);
}

/* Proxy attribution preview - name as editable input */
.proxy-attr-name-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-size: 13px;
    font-weight: 700;
    color: #a78bfa;
    font-family: inherit;
    padding: 0;
    min-width: 0;
}
.proxy-attr-name-input::placeholder { color: rgba(167,139,250,.4); }

.proxy-attr-verified {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

/* ── Queue Trello-style fields ───────────────────────────────────────────── */
.queue-fields {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.queue-field {
    display: flex;
    align-items: center;
    gap: 6px;
}

.queue-field-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-faint);
    white-space: nowrap;
}

.queue-field-select {
    appearance: none;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius:var(--radius-sm);
    color: var(--text);
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 26px 4px 8px;
    outline: none;
    cursor: pointer;
    transition: border-color .15s;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpolyline points='1 1 5 5 9 1' fill='none' stroke='%2371717a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
}
.queue-field-select:hover { border-color: var(--border-light); }
.queue-field-select:focus { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.queue-field-select:disabled { opacity: .5; cursor: wait; }

/* Priority colours on the select */
.priority-select option[value="high"]   { color: var(--error); }
.priority-select option[value="medium"] { color: var(--warning); }
.priority-select option[value="low"]    { color: var(--text-faint); }

/* Dev status colours on the select */
.dev-status-select option[value="done"]       { color: var(--accent); }
.dev-status-select option[value="in-progress"]{ color: var(--info); }
.dev-status-select option[value="in-review"]  { color: var(--warning); }
.dev-status-select option[value="approved"]   { color: #a78bfa; }

/* Status chips - used on roadmap and completed queue items */
.queue-status-chip {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .3px;
    white-space: nowrap;
}

.status-to-do        { background: rgba(113,113,122,.1); color: var(--text-faint); }
.status-in-progress  { background: rgba(59,130,246,.1);  color: var(--info); }
.status-in-review    { background: rgba(245,158,11,.1);  color: var(--warning); }
.status-approved     { background: rgba(139,92,246,.1);  color: #a78bfa; }
.status-done         { background: var(--accent-soft);   color: var(--accent); }
.status-not-sure     { background: rgba(113,113,122,.1); color: var(--text-faint); }
.status-timeline     { background: rgba(59,130,246,.08); color: #60a5fa; }

/* ── Queue board redesign ─────────────────────────────────────────────────── */
.qboard-header {
    display: grid;
    grid-template-columns: 1fr 130px 150px 160px 130px;
    padding: 0 16px 8px;
    gap: 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--text-faint);
}

.qboard-list { display: flex; flex-direction: column; gap: 6px; }

.qboard-row {
    display: grid;
    grid-template-columns: 1fr 130px 150px 160px 130px;
    align-items: center;
    gap: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius:var(--radius-sm);
    overflow: hidden;
    transition: border-color .15s;
}
.qboard-row:hover { border-color: var(--border-light); }
.qboard-row-done { opacity: .6; }

.qboard-col { padding: 14px 0; }
.qboard-col-title {
    display: flex;
    align-items: stretch;
    gap: 0;
    padding: 0;
    min-width: 0;
}
.qboard-col-field { display: flex; align-items: center; }
.qboard-col-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    padding-right: 14px;
    justify-content: flex-end;
}

.qboard-stripe {
    width: 4px;
    flex-shrink: 0;
    align-self: stretch;
    border-radius: var(--radius-sm);
}

.qboard-title-inner {
    flex: 1;
    min-width: 0;
    padding: 12px 14px;
}

.qboard-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
    flex-wrap: wrap;
}

.qboard-title-link {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color .12s;
}
.qboard-title-link:hover { color: var(--accent); }

.qboard-submeta {
    font-size: 11px;
    color: var(--text-faint);
    margin-top: 4px;
}

/* Chips for queue fields */
.qboard-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius:var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    font-family: inherit;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all .12s;
    white-space: nowrap;
}
.qboard-chip:hover { filter: brightness(1.15); }

.qboard-chip-empty {
    background: var(--bg-elevated);
    border-color: var(--border);
    color: var(--text-faint);
    font-weight: 400;
}
.qboard-chip-empty:hover { border-color: var(--border-light); color: var(--text-dim); }

/* Priority chips */
.qboard-chip-priority.priority-low    { background: rgba(113,113,122,.12); color: #a1a1aa; border-color: rgba(113,113,122,.2); }
.qboard-chip-priority.priority-medium { background: rgba(245,158,11,.1);   color: #f59e0b; border-color: rgba(245,158,11,.2); }
.qboard-chip-priority.priority-high   { background: rgba(239,68,68,.1);    color: #ef4444; border-color: rgba(239,68,68,.2); }

/* Timeline chips */
.qboard-chip-timeline.timeline-short-term  { background: rgba(96,165,250,.1);  color: #60a5fa; border-color: rgba(96,165,250,.2); }
.qboard-chip-timeline.timeline-medium-term { background: rgba(167,139,250,.1); color: #a78bfa; border-color: rgba(167,139,250,.2); }
.qboard-chip-timeline.timeline-long-term   { background: rgba(244,114,182,.1); color: #f472b6; border-color: rgba(244,114,182,.2); }

/* Dev status chips */
.qboard-chip-status.status-to-do       { background: rgba(113,113,122,.1); color: #a1a1aa;  border-color: rgba(113,113,122,.2); }
.qboard-chip-status.status-in-progress { background: rgba(59,130,246,.1);  color: #3b82f6;  border-color: rgba(59,130,246,.2); }
.qboard-chip-status.status-in-review   { background: rgba(245,158,11,.1);  color: #f59e0b;  border-color: rgba(245,158,11,.2); }
.qboard-chip-status.status-approved    { background: rgba(139,92,246,.1);  color: #a78bfa;  border-color: rgba(139,92,246,.2); }
.qboard-chip-status.status-done        { background: var(--accent-soft);   color: var(--accent); border-color: rgba(251,44,98,.25); }
.qboard-chip-status.status-not-sure    { background: rgba(113,113,122,.1); color: #a1a1aa;  border-color: rgba(113,113,122,.2); }

/* Dropdown */
.qboard-dropdown {
    position: absolute;
    z-index: 500;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius:var(--radius-sm);
    box-shadow: var(--shadow-lg);
    min-width: 160px;
    overflow: hidden;
}
.qboard-dd-opt {
    display: block;
    width: 100%;
    padding: 9px 14px;
    background: transparent;
    border: none;
    font-family: inherit;
    font-size: 13px;
    color: var(--text-dim);
    text-align: left;
    cursor: pointer;
    transition: background .1s, color .1s;
}
.qboard-dd-opt:hover { background: var(--bg-card); color: var(--text); }
.qboard-dd-opt.active { color: var(--accent); font-weight: 600; }

.queue-completed-section { margin-top: 32px; }
.queue-completed-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--text-faint);
    margin-bottom: 10px;
    padding: 0 4px;
}

/* Roadmap status chips */
.rm-status-chip {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .3px;
    white-space: nowrap;
}
.rm-chip-timeline     { background: rgba(96,165,250,.1);  color: #60a5fa; }
.rm-chip-in-progress  { background: rgba(59,130,246,.1);  color: #3b82f6; }
.rm-chip-in-review    { background: rgba(245,158,11,.1);  color: #f59e0b; }
.rm-chip-approved     { background: rgba(139,92,246,.1);  color: #a78bfa; }
.rm-chip-to-do        { background: rgba(113,113,122,.1); color: #a1a1aa; }
.rm-chip-not-sure     { background: rgba(113,113,122,.1); color: #a1a1aa; }

@media (max-width: 720px) {
    .qboard-header { display: none; }
    .qboard-row { grid-template-columns: 1fr; }
    .qboard-col-field { padding: 0 14px; }
    .qboard-col-actions { padding: 10px 14px; justify-content: flex-start; }
    .qboard-row .qboard-col:last-child { padding-bottom: 14px; }
}

/* ── Roadmap Add planning fields ─────────────────────────────────────────── */
.roadmap-add-fields {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.roadmap-add-field { display: flex; flex-direction: column; gap: 6px; }
.roadmap-add-field-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .4px;
    color: var(--text-faint);
}
@media (max-width: 720px) {
    .roadmap-add-fields { grid-template-columns: 1fr; }
}

/* ── Feed pagination ──────────────────────────────────────────────────────── */
.feed-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 28px 40px 48px;
}

.page-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius:var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dim);
    text-decoration: none;
    transition: border-color .15s, color .15s;
}
.page-btn:hover { border-color: var(--border-light); color: var(--text); }
.page-btn-disabled { opacity: .35; cursor: default; pointer-events: none; }

.page-numbers { display: flex; align-items: center; gap: 4px; }

.page-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius:var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dim);
    text-decoration: none;
    border: 1px solid transparent;
    transition: all .15s;
}
.page-num:hover { background: var(--bg-card); border-color: var(--border); color: var(--text); }
.page-num.active { background: var(--accent-soft); border-color: rgba(251,44,98,.3); color: var(--accent); }

.page-ellipsis { color: var(--text-faint); font-size: 13px; padding: 0 2px; }

/* ──────────────────────────────────────────────────────────────────────────
   STAFF DASHBOARD v2 - sd-* prefix
   ─────────────────────────────────────────────────────────────────────── */

/* Header */
.sd-header {
    display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
    margin-bottom: 28px; flex-wrap: wrap;
}
.sd-header-titles { min-width: 0; flex: 1; }
.sd-h1 { font-size: 24px; font-weight: 800; letter-spacing: -.4px; margin: 0 0 4px; }
.sd-sub { font-size: 13px; color: var(--text-dim); margin: 0; }

.sd-actions {
    display: inline-flex; align-items: center; gap: 4px;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-sm); padding: 5px; flex-wrap: nowrap;
}
.sd-actions-group { display: inline-flex; align-items: center; gap: 2px; }
.sd-actions-divider {
    width: 1px; height: 22px; background: var(--border); margin: 0 6px;
}

.sd-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 12px; border: 1px solid transparent;
    border-radius: var(--radius-sm); font-size: 13px; font-weight: 600;
    color: var(--text-dim); text-decoration: none;
    background: transparent; cursor: pointer; white-space: nowrap;
    transition: background .12s, color .12s, border-color .12s;
    font-family: inherit;
}
.sd-btn:hover { background: var(--bg-elevated); color: var(--text); }
.sd-btn-ghost { color: var(--text-dim); }
.sd-btn-primary {
    background: var(--accent); color: #0a0a0b;
    padding: 8px 14px;
}
.sd-btn-primary:hover { background: var(--accent); color: #0a0a0b; filter: brightness(1.08); }
.sd-btn-count {
    background: var(--accent); color: #0a0a0b;
    font-size: 11px; font-weight: 800; line-height: 1;
    padding: 3px 7px; border-radius: var(--radius-sm);
}

/* Stats grouped */
.sd-stats {
    display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
    margin-bottom: 28px;
}
.sd-stat-group {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-sm); padding: 12px 14px 14px;
}
.sd-stat-group-label {
    font-size: 10px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .8px; color: var(--text-faint);
    margin-bottom: 10px;
}
.sd-stat-group-cards { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }

.sd-stat {
    position: relative;
    background: var(--bg-elevated); border: 1px solid var(--border);
    border-radius: var(--radius-sm); padding: 12px 14px;
    display: flex; flex-direction: column; gap: 4px;
    transition: border-color .15s, transform .15s;
}
.sd-stat:hover { border-color: var(--c); transform: translateY(-1px); }
.sd-stat-feature {
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-elevated) 100%);
    border-color: rgba(251,44,98,.25);
}
.sd-stat-icon {
    position: absolute; top: 10px; right: 12px;
    width: 26px; height: 26px; border-radius: var(--radius-sm);
    background: var(--bg); color: var(--c);
    display: inline-flex; align-items: center; justify-content: center;
}
.sd-stat-num {
    font-size: 26px; font-weight: 800; color: var(--c);
    line-height: 1; letter-spacing: -.5px;
    font-variant-numeric: tabular-nums;
}
.sd-stat-lbl {
    font-size: 11px; font-weight: 600; color: var(--text-dim);
    text-transform: uppercase; letter-spacing: .4px;
}

/* Tabs */
.sd-tabs {
    display: flex; gap: 2px; margin-bottom: 18px;
    border-bottom: 1px solid var(--border);
}
.sd-tab {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 14px; margin-bottom: -1px;
    border-bottom: 2px solid transparent;
    font-size: 13px; font-weight: 600; color: var(--text-faint);
    text-decoration: none; transition: color .12s, border-color .12s;
}
.sd-tab:hover { color: var(--text-dim); }
.sd-tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.sd-tab-count {
    font-size: 11px; font-weight: 700; padding: 2px 7px;
    background: var(--bg-elevated); color: var(--text-faint);
    border-radius: var(--radius-sm); line-height: 1;
}
.sd-tab.active .sd-tab-count {
    background: rgba(251,44,98,.12); color: var(--accent);
}

/* Empty */
.sd-empty {
    background: var(--bg-card); border: 1px dashed var(--border);
    border-radius: var(--radius-sm); padding: 48px 24px; text-align: center;
    color: var(--text-faint);
}
.sd-empty p { margin-top: 12px; font-size: 14px; }

/* Card list */
.sd-card-list { display: flex; flex-direction: column; gap: 10px; }

.sd-card {
    display: flex; align-items: stretch; gap: 0;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-sm); overflow: hidden;
    transition: border-color .15s, box-shadow .15s, transform .15s;
}
.sd-card:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 18px rgba(0,0,0,.25);
}

/* Left rail: votes + comments */
.sd-card-rail {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 10px; padding: 16px 14px; min-width: 64px;
    background: rgba(255,255,255,.015);
    border-right: 1px solid var(--border);
}
.sd-card-vote {
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    color: var(--text-faint);
}
.sd-card-vote.positive { color: var(--accent); }
.sd-card-vote.negative { color: var(--error); }
.sd-card-vote-num {
    font-size: 16px; font-weight: 800; line-height: 1;
    font-variant-numeric: tabular-nums;
}
.sd-card-comments {
    display: flex; align-items: center; gap: 4px;
    font-size: 11px; font-weight: 600; color: var(--text-faint);
}

/* Body */
.sd-card-body {
    flex: 1; min-width: 0;
    padding: 14px 16px 14px 18px;
    display: flex; flex-direction: column; gap: 6px;
}
.sd-card-meta {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    font-size: 11px; color: var(--text-faint);
}
.sd-card-meta-spacer { flex: 1; }
.sd-card-meta-time { font-weight: 500; }
.sd-card-meta-author {
    display: inline-flex; align-items: center; gap: 5px;
    font-weight: 500; color: var(--text-dim);
}

.sd-card-title {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 15px; font-weight: 700; color: var(--text);
    text-decoration: none; line-height: 1.3;
    transition: color .12s;
}
.sd-card-title:hover { color: var(--accent); }
.sd-card-ext { color: var(--text-faint); opacity: 0; transition: opacity .12s; }
.sd-card-title:hover .sd-card-ext { opacity: 1; }

.sd-card-desc {
    font-size: 13px; line-height: 1.5; color: var(--text-dim);
    margin: 0; display: -webkit-box; -webkit-box-orient: vertical;
    -webkit-line-clamp: 2; overflow: hidden;
}

/* Actions */
.sd-card-actions {
    display: flex; align-items: center;
    padding: 14px 16px 14px 8px;
    border-left: 1px solid var(--border);
    background: rgba(255,255,255,.015);
}
.sd-actions-form { display: flex; align-items: center; gap: 8px; }
.sd-priority {
    background: var(--bg-elevated); border: 1px solid var(--border);
    border-radius: var(--radius-sm); padding: 6px 8px; font-size: 12px; font-weight: 600;
    color: #f59e0b; cursor: pointer; font-family: inherit;
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns=%27http://www.w3.org/2000/svg%27 width=%2710%27 height=%2710%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27%23f59e0b%27 stroke-width=%273%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27><polyline points=%276 9 12 15 18 9%27/></svg>");
    background-repeat: no-repeat; background-position: right 6px center;
    padding-right: 22px;
}
.sd-priority:focus { outline: none; border-color: #f59e0b; }
.sd-action-buttons { display: flex; align-items: center; gap: 4px; }
.sd-action {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 6px 10px; border: 1px solid transparent;
    border-radius: var(--radius-sm); font-size: 12px; font-weight: 600;
    cursor: pointer; transition: all .12s;
    background: transparent; font-family: inherit;
}
.sd-action-accept {
    color: var(--accent);
    background: rgba(251,44,98,.08);
    border-color: rgba(251,44,98,.2);
}
.sd-action-accept:hover { background: rgba(251,44,98,.15); border-color: var(--accent); }
.sd-action-deny {
    color: var(--error);
    background: rgba(239,68,68,.08);
    border-color: rgba(239,68,68,.2);
}
.sd-action-deny:hover { background: rgba(239,68,68,.15); border-color: var(--error); }
.sd-action-archive {
    color: var(--text-faint);
    border-color: var(--border);
    padding: 6px 8px;
}
.sd-action-archive:hover { color: var(--text-dim); border-color: var(--border-light); background: var(--bg-elevated); }
.sd-action-archive span { display: none; }

/* Responsive */
@media (max-width: 1100px) {
    .sd-stats { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
    .sd-stat-group-cards { grid-template-columns: 1fr; }
    .sd-card { flex-direction: column; }
    .sd-card-rail {
        flex-direction: row; min-width: 0; padding: 10px 14px;
        border-right: none; border-bottom: 1px solid var(--border);
        justify-content: flex-start;
    }
    .sd-card-actions {
        padding: 10px 14px 14px;
        border-left: none; border-top: 1px solid var(--border);
    }
    .sd-actions-form { flex-wrap: wrap; }
    .sd-action span { }
    .sd-header { flex-direction: column; align-items: stretch; }
    .sd-actions { flex-wrap: wrap; }
}


/* ──────────────────────────────────────────────────────────────────────────
   QUEUE v2 (qq-*) + QA BOARD (qa-*)
   ─────────────────────────────────────────────────────────────────────── */

/* Chip styles preserved from the old queue page (still used for priority/timeline) */
.qboard-chip {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 5px 10px; border-radius:var(--radius-sm);
    font-size: 12px; font-weight: 600; font-family: inherit;
    border: 1px solid transparent; cursor: pointer; transition: all .12s;
    white-space: nowrap; background: none;
}
.qboard-chip:hover { filter: brightness(1.15); }
.qboard-chip-empty {
    background: var(--bg-elevated); border-color: var(--border);
    color: var(--text-faint); font-weight: 400;
}
.qboard-chip-empty:hover { border-color: var(--border-light); color: var(--text-dim); }
.qboard-chip-priority.priority-low    { background: rgba(161,161,170,.12); color: #a1a1aa; border-color: rgba(161,161,170,.2); }
.qboard-chip-priority.priority-medium { background: rgba(245,158,11,.1);   color: #f59e0b; border-color: rgba(245,158,11,.2); }
.qboard-chip-priority.priority-high   { background: rgba(239,68,68,.1);    color: #ef4444; border-color: rgba(239,68,68,.2); }
.qboard-chip-timeline.timeline-short-term  { background: rgba(96,165,250,.1);  color: #60a5fa; border-color: rgba(96,165,250,.2); }
.qboard-chip-timeline.timeline-medium-term { background: rgba(167,139,250,.1); color: #a78bfa; border-color: rgba(167,139,250,.2); }
.qboard-chip-timeline.timeline-long-term   { background: rgba(244,114,182,.1); color: #f472b6; border-color: rgba(244,114,182,.2); }

.qboard-dropdown {
    position: fixed; z-index: 9000;
    background: var(--bg-elevated); border: 1px solid var(--border);
    border-radius:var(--radius-sm); box-shadow: 0 8px 28px rgba(0,0,0,.4);
    min-width: 180px; overflow: hidden;
}
.qboard-dd-opt {
    display: block; width: 100%; padding: 9px 14px;
    background: transparent; border: none; font-family: inherit;
    font-size: 13px; color: var(--text-dim); text-align: left;
    cursor: pointer; transition: background .1s, color .1s;
}
.qboard-dd-opt:hover { background: var(--bg-card); color: var(--text); }
.qboard-dd-opt.active { color: var(--accent); font-weight: 600; }

/* Pipeline overview at the top of the queue page */
.qq-pipeline {
    display: flex; align-items: stretch; gap: 8px;
    margin-bottom: 18px; flex-wrap: wrap;
}
.qq-pipeline-card {
    flex: 1; min-width: 130px;
    background: var(--bg-card); border: 1px solid var(--border);
    border-left: 3px solid var(--c);
    border-radius: var(--radius-sm); padding: 12px 14px;
    display: flex; flex-direction: column; gap: 2px;
    text-decoration: none; color: inherit;
    transition: border-color .15s, transform .15s, background .15s;
}
.qq-pipeline-link { cursor: pointer; }
.qq-pipeline-link:hover { background: var(--bg-elevated); transform: translateY(-1px); }
.qq-pipeline-num {
    font-size: 22px; font-weight: 800; color: var(--c); line-height: 1;
    font-variant-numeric: tabular-nums;
}
.qq-pipeline-lbl {
    font-size: 11px; font-weight: 700; color: var(--text-dim);
    text-transform: uppercase; letter-spacing: .4px;
}
.qq-pipeline-go {
    font-size: 10px; color: var(--c); margin-top: 4px;
    font-weight: 700; opacity: 0; transition: opacity .15s;
}
.qq-pipeline-link:hover .qq-pipeline-go { opacity: 1; }
.qq-pipeline-arrow {
    align-self: center; color: var(--text-faint); font-size: 16px; user-select: none;
}

/* QA banner */
.qq-qa-banner {
    display: flex; align-items: center; gap: 12px;
    background: linear-gradient(90deg, rgba(245,158,11,.06), rgba(245,158,11,.02));
    border: 1px solid rgba(245,158,11,.25);
    border-radius: var(--radius-sm); padding: 12px 16px;
    margin-bottom: 22px;
    text-decoration: none; color: inherit;
    transition: border-color .15s;
}
.qq-qa-banner:hover { border-color: rgba(245,158,11,.5); }
.qq-qa-banner-icon {
    width: 30px; height: 30px; border-radius: var(--radius-sm);
    background: rgba(245,158,11,.14); color: #f59e0b;
    display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.qq-qa-banner-text { flex: 1; font-size: 13px; }
.qq-qa-banner-text strong { color: #f59e0b; font-weight: 700; }
.qq-qa-banner-sub { display: block; font-size: 11px; color: var(--text-faint); margin-top: 2px; }
.qq-qa-banner-go {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 12px; font-weight: 600; color: #f59e0b;
}

/* Sections by status */
.qq-section { margin-bottom: 24px; }
.qq-section-head {
    display: flex; align-items: center; gap: 10px;
    padding: 0 4px 10px;
    border-bottom: 1px solid var(--border); margin-bottom: 10px;
}
.qq-section-dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: var(--c); flex-shrink: 0;
    box-shadow: 0 0 0 3px var(--bg);
}
.qq-section-title {
    font-size: 13px; font-weight: 700; color: var(--c);
    text-transform: uppercase; letter-spacing: .5px; margin: 0;
}
.qq-section-count {
    font-size: 11px; font-weight: 700; color: var(--text-faint);
    background: var(--bg-elevated); padding: 2px 8px; border-radius: var(--radius-sm);
}

.qq-section-list { display: flex; flex-direction: column; gap: 8px; }

/* Item card */
.qq-card {
    display: flex; align-items: stretch;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-sm); overflow: hidden;
    transition: border-color .15s, transform .15s, box-shadow .15s;
}
.qq-card:hover {
    border-color: var(--border-light);
    box-shadow: 0 4px 14px rgba(0,0,0,.18);
}
.qq-card-stripe {
    width: 3px; flex-shrink: 0; background: #f59e0b;
}
.qq-card-body {
    flex: 1; min-width: 0;
    padding: 12px 16px 12px 14px;
    display: flex; flex-direction: column; gap: 6px;
}
.qq-card-head {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    font-size: 11px; color: var(--text-faint);
}
.qq-card-spacer { flex: 1; }
.qq-card-vote {
    display: inline-flex; align-items: center; gap: 3px;
    color: var(--text-faint); font-weight: 600;
}
.qq-card-vote.positive { color: var(--accent); }
.qq-card-by { font-weight: 500; color: var(--text-dim); }
.qq-card-sep { opacity: .4; }
.qq-card-time { font-weight: 500; }

.qq-card-title {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 14px; font-weight: 700; color: var(--text);
    text-decoration: none; line-height: 1.35;
    transition: color .12s;
}
.qq-card-title:hover { color: var(--accent); }
.qq-card-ext { color: var(--text-faint); opacity: 0; transition: opacity .12s; }
.qq-card-title:hover .qq-card-ext { opacity: 1; }

.qq-card-desc {
    font-size: 12.5px; line-height: 1.5; color: var(--text-dim);
    margin: 0;
    display: -webkit-box; -webkit-box-orient: vertical;
    -webkit-line-clamp: 2; overflow: hidden;
}

.qq-card-foot {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    margin-top: 4px; flex-wrap: wrap;
}
.qq-card-attrs { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.qq-card-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

.qq-version-chip {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 4px 9px; border-radius: var(--radius-sm);
    background: rgba(167,139,250,.1);
    border: 1px solid rgba(167,139,250,.25);
    color: #a78bfa; font-size: 11px; font-weight: 700;
    font-family: ui-monospace, Menlo, monospace;
    text-decoration: none; transition: filter .12s;
}
.qq-version-chip:hover { filter: brightness(1.15); }
.qq-version-chip-mini { padding: 2px 7px; font-size: 10px; }

.qq-action-btn {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 6px 11px; border-radius: var(--radius-sm);
    font-size: 12px; font-weight: 600;
    border: 1px solid transparent; cursor: pointer;
    font-family: inherit; transition: all .12s;
    background: transparent; white-space: nowrap;
}
.qq-action-blue {
    background: rgba(59,130,246,.1); color: #3b82f6;
    border-color: rgba(59,130,246,.25);
}
.qq-action-blue:hover { background: rgba(59,130,246,.18); }
.qq-action-amber {
    background: rgba(245,158,11,.1); color: #f59e0b;
    border-color: rgba(245,158,11,.25);
}
.qq-action-amber:hover { background: rgba(245,158,11,.18); }
.qq-action-purple {
    background: rgba(167,139,250,.1); color: #a78bfa;
    border-color: rgba(167,139,250,.25);
}
.qq-action-purple:hover { background: rgba(167,139,250,.2); }
.qq-action-archive {
    color: var(--text-faint); border-color: var(--border);
    padding: 6px 8px;
}
.qq-action-archive:hover { color: var(--text-dim); border-color: var(--border-light); background: var(--bg-elevated); }

/* Released archive */
.qq-archive {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-sm); margin-top: 28px;
}
.qq-archive-toggle {
    display: flex; align-items: center; gap: 8px;
    padding: 12px 16px; cursor: pointer;
    font-size: 12px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .5px; color: var(--text-dim);
    list-style: none; user-select: none;
}
.qq-archive-toggle::-webkit-details-marker { display: none; }
.qq-archive-toggle:hover { color: var(--text); }
.qq-archive-chevron { transition: transform .15s; }
.qq-archive[open] .qq-archive-chevron { transform: rotate(90deg); }
.qq-archive-count {
    margin-left: auto;
    font-size: 11px; font-weight: 700; color: var(--text-faint);
    background: var(--bg-elevated); padding: 2px 8px; border-radius: var(--radius-sm);
}
.qq-archive-list {
    display: flex; flex-direction: column;
    border-top: 1px solid var(--border); padding: 6px;
}
.qq-archive-row {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 10px; border-radius: var(--radius-sm);
    text-decoration: none; color: inherit;
    font-size: 13px; transition: background .12s;
}
.qq-archive-row:hover { background: var(--bg-elevated); }
.qq-archive-title { color: var(--text); font-weight: 500; flex-shrink: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qq-archive-spacer { flex: 1; min-width: 8px; }
.qq-archive-when { font-size: 11px; color: var(--text-faint); }

@media (max-width: 720px) {
    .qq-pipeline-arrow { display: none; }
    .qq-card-foot { flex-direction: column; align-items: stretch; gap: 8px; }
    .qq-card-actions { justify-content: flex-end; }
}

/* ──────────────────────────────────────────────────────────────────────────
   QA BOARD v2 (qb-*)
   Focus-mode triage: one item in the spotlight, the rest in a sidebar queue.
   ─────────────────────────────────────────────────────────────────────── */

/* ── Stat strip ─────────────────────────────────────────────────────────── */
.qb-stats {
    display: flex; align-items: center; gap: 14px;
    margin-bottom: 18px;
}
.qb-stat {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 14px;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}
.qb-stat-dot { width: 8px; height: 8px; border-radius: 50%; }
.qb-stat-num { font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; }
.qb-stat-lbl {
    font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .4px;
    color: var(--text-dim);
}
.qb-stat-amber .qb-stat-dot { background: #f59e0b; }
.qb-stat-amber .qb-stat-num { color: #f59e0b; }
.qb-stat-red .qb-stat-dot   { background: #ef4444; }
.qb-stat-red .qb-stat-num   { color: #ef4444; }

.qb-stat-spacer { flex: 1; }
.qb-stat-hint {
    font-size: 11px; color: var(--text-faint);
    display: inline-flex; align-items: center; gap: 6px;
}
.qb-stat-hint kbd {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 18px; height: 18px; padding: 0 5px;
    background: var(--bg-elevated); border: 1px solid var(--border);
    border-bottom-width: 2px;
    border-radius: var(--radius-sm); font-size: 10px; font-weight: 700;
    font-family: ui-monospace, Menlo, monospace; color: var(--text);
}

/* ── Total empty state ──────────────────────────────────────────────────── */
.qb-empty-all {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-sm); padding: 64px 32px; text-align: center;
}
.qb-empty-icon {
    width: 72px; height: 72px; margin: 0 auto 16px;
    background: rgba(251,44,98,.08); color: var(--accent);
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
}
.qb-empty-all h2 { font-size: 20px; font-weight: 700; margin: 0 0 6px; }
.qb-empty-all p { color: var(--text-dim); margin: 0 0 16px; font-size: 13px; }
.qb-empty-cta {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 9px 18px; background: var(--accent); color: #0a0a0b;
    border-radius: var(--radius-sm); font-size: 13px; font-weight: 700; text-decoration: none;
    transition: filter .12s;
}
.qb-empty-cta:hover { filter: brightness(1.08); }

/* ── Board layout ───────────────────────────────────────────────────────── */
.qb-board {
    display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px;
    align-items: start;
}

/* ── Focus pane (left, large) ───────────────────────────────────────────── */
.qb-focus {
    position: relative;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-sm); padding: 28px 32px;
    min-height: 360px;
    overflow: hidden;
}
.qb-focus::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, #f59e0b, rgba(245,158,11,0));
}

.qb-focus-tag {
    display: inline-flex; align-items: center; gap: 7px;
    font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px;
    color: #f59e0b; margin-bottom: 16px;
}
.qb-focus-tag-dot {
    width: 7px; height: 7px; border-radius: 50%; background: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245,158,11,.18);
    animation: qb-pulse 2s ease-in-out infinite;
}
@keyframes qb-pulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(245,158,11,.18); }
    50%      { box-shadow: 0 0 0 5px rgba(245,158,11,.05); }
}

.qb-focus-meta {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    margin-bottom: 12px;
    font-size: 11px;
}
.qb-focus-meta-spacer { flex: 1; }
.qb-focus-time { color: var(--text-faint); font-weight: 500; }

.qb-focus-title {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 22px; font-weight: 700; color: var(--text);
    text-decoration: none; line-height: 1.25;
    margin-bottom: 12px;
    transition: color .12s;
}
.qb-focus-title:hover { color: var(--accent); }
.qb-focus-title svg { color: var(--text-faint); opacity: 0; transition: opacity .12s; }
.qb-focus-title:hover svg { opacity: 1; }

.qb-focus-desc {
    font-size: 14px; line-height: 1.6; color: var(--text-dim);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    margin-bottom: 18px;
    max-height: 240px; overflow-y: auto;
}

.qb-focus-trail {
    font-size: 12px; color: var(--text-faint); margin-bottom: 20px;
}
.qb-focus-trail strong { color: var(--text-dim); font-weight: 600; }

.qb-focus-actions {
    display: flex; gap: 12px;
    padding-top: 18px; border-top: 1px solid var(--border);
}
.qb-action {
    flex: 1;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 14px 20px;
    border: 1px solid transparent; border-radius: var(--radius-sm);
    font-size: 14px; font-weight: 700; font-family: inherit;
    cursor: pointer; transition: all .12s;
    position: relative;
}
.qb-action-pass {
    background: var(--accent); color: #0a0a0b;
}
.qb-action-pass:hover { filter: brightness(1.08); transform: translateY(-1px); }
.qb-action-fail {
    background: rgba(239,68,68,.1); color: #ef4444;
    border-color: rgba(239,68,68,.3);
}
.qb-action-fail:hover { background: rgba(239,68,68,.2); transform: translateY(-1px); }
.qb-action-kbd {
    margin-left: 4px;
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 20px; height: 20px; padding: 0 6px;
    border-radius: var(--radius-sm);
    font-size: 10px; font-weight: 800;
    font-family: ui-monospace, Menlo, monospace;
}
.qb-action-pass .qb-action-kbd { background: rgba(10,10,11,.18); color: #0a0a0b; }
.qb-action-fail .qb-action-kbd { background: rgba(239,68,68,.18); color: #ef4444; }

.qb-focus-empty {
    text-align: center; padding: 48px 16px; color: var(--text-faint);
}
.qb-focus-empty svg { color: var(--accent); opacity: .4; margin-bottom: 12px; }
.qb-focus-empty p { margin: 4px 0; font-size: 14px; }
.qb-focus-empty-sub { font-size: 12px; opacity: .7; }

/* ── Sidebar search ─────────────────────────────────────────────────────── */
.qb-search {
    position: relative;
    display: flex; align-items: center;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0 10px;
    transition: border-color .12s, background .12s;
}
.qb-search:focus-within {
    border-color: var(--accent);
    background: var(--bg-elevated);
}
.qb-search-icon {
    color: var(--text-faint); flex-shrink: 0;
}
.qb-search-input {
    flex: 1; min-width: 0;
    background: transparent; border: none; outline: none;
    color: var(--text); font-family: inherit;
    font-size: 13px;
    padding: 10px 8px;
}
.qb-search-input::placeholder { color: var(--text-faint); }
.qb-search-kbd {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 18px; height: 18px; padding: 0 5px;
    background: var(--bg-elevated); border: 1px solid var(--border);
    border-bottom-width: 2px;
    border-radius: var(--radius-sm); font-size: 10px; font-weight: 700;
    font-family: ui-monospace, Menlo, monospace; color: var(--text-faint);
    flex-shrink: 0;
}
.qb-search:focus-within .qb-search-kbd { display: none; }
.qb-search-clear {
    display: none;
    align-items: center; justify-content: center;
    width: 18px; height: 18px;
    background: transparent; border: none; cursor: pointer;
    color: var(--text-faint); border-radius: var(--radius-sm);
    flex-shrink: 0; padding: 0;
    transition: color .12s, background .12s;
}
.qb-search-clear:hover { color: var(--text); background: var(--bg-elevated); }
.qb-search-clear.is-visible { display: inline-flex; }
.qb-search:focus-within .qb-search-kbd { display: none; }

.qb-search-empty {
    background: var(--bg-card); border: 1px dashed var(--border);
    border-radius: var(--radius-sm); padding: 24px 16px;
    text-align: center; font-size: 12px; color: var(--text-faint);
}

/* ── Sidebar (right, narrow) ────────────────────────────────────────────── */
.qb-side {
    display: flex; flex-direction: column; gap: 14px;
    position: sticky; top: 20px;
}
.qb-side-section {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-sm); overflow: hidden;
}
.qb-side-head {
    display: flex; align-items: center; gap: 8px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
}
.qb-side-dot {
    width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
}
.qb-side-head-amber .qb-side-dot { background: #f59e0b; }
.qb-side-head-red   .qb-side-dot { background: #ef4444; }
.qb-side-head h3 {
    font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
    margin: 0; color: var(--text-dim); flex: 1;
}
.qb-side-count {
    font-size: 11px; font-weight: 700; color: var(--text-faint);
    background: var(--bg-elevated); padding: 2px 8px; border-radius: var(--radius-sm);
}

.qb-side-list { padding: 6px; display: flex; flex-direction: column; gap: 2px; }

.qb-side-row {
    display: flex; align-items: center; gap: 9px;
    padding: 9px 10px; border-radius: var(--radius-sm);
    text-decoration: none; color: inherit;
    transition: background .1s;
    border-left: 3px solid transparent;
    cursor: pointer;
}
.qb-side-row:hover { background: var(--bg-elevated); }
.qb-side-row.is-active {
    background: var(--bg-elevated);
    border-left-color: #f59e0b;
}
.qb-side-row.is-active .qb-side-title { color: var(--text); }

.qb-side-type {
    display: inline-flex; align-items: center; justify-content: center;
    width: 18px; height: 18px; flex-shrink: 0;
    border-radius: var(--radius-sm);
    font-size: 9px; font-weight: 800; line-height: 1;
}
.qb-side-type-suggestion { background: rgba(59,130,246,.14); color: #60a5fa; }
.qb-side-type-bug        { background: rgba(239,68,68,.14);  color: #f87171; }
.qb-side-type-idea       { background: rgba(167,139,250,.14);color: #a78bfa; }

.qb-side-title {
    flex: 1; min-width: 0;
    font-size: 12.5px; font-weight: 500; color: var(--text-dim);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.qb-side-ref {
    font-size: 10px; color: var(--text-faint);
    font-family: ui-monospace, Menlo, monospace;
    flex-shrink: 0;
}

/* Failed-QA rows: red tint + inline retest button */
.qb-side-row-failed { border-left-color: rgba(239,68,68,.4); }
.qb-side-row-failed .qb-side-title { color: var(--text-dim); }
.qb-side-retest {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 4px 8px; border-radius: var(--radius-sm);
    background: rgba(245,158,11,.1); color: #f59e0b;
    border: 1px solid rgba(245,158,11,.25);
    font-size: 10px; font-weight: 600; font-family: inherit;
    cursor: pointer; transition: all .12s; flex-shrink: 0;
}
.qb-side-retest:hover { background: rgba(245,158,11,.2); }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 980px) {
    .qb-board { grid-template-columns: 1fr; }
    .qb-side { position: static; }
    .qb-stat-hint { display: none; }
}
@media (max-width: 560px) {
    .qb-focus { padding: 20px; }
    .qb-focus-title { font-size: 18px; }
    .qb-focus-actions { flex-direction: column; }
}


.rl-edit-required {
    font-size: 9px; font-weight: 700; letter-spacing: .5px;
    text-transform: uppercase;
    color: #ef4444; opacity: .85;
    margin-left: 4px;
}

/* ──────────────────────────────────────────────────────────────────────────
   AI-GENERATED RELEASE NOTES
   ─────────────────────────────────────────────────────────────────────── */

.rl-edit-label-row {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    margin-bottom: 6px;
}
.rl-edit-label-row .rl-edit-label { margin-bottom: 0; }

.rl-ai-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 10px; border-radius: var(--radius-sm);
    font-size: 11px; font-weight: 600; font-family: inherit;
    background: rgba(167,139,250,.08); color: #a78bfa;
    border: 1px solid rgba(167,139,250,.25);
    cursor: pointer; transition: all .12s;
}
.rl-ai-btn:hover {
    background: rgba(167,139,250,.16);
    border-color: rgba(167,139,250,.4);
    transform: translateY(-1px);
}

.ai-tone-grid {
    display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px;
    margin-top: 6px;
}
.ai-tone-opt input { position: absolute; opacity: 0; pointer-events: none; }
.ai-tone-card {
    display: flex; flex-direction: column; gap: 3px;
    padding: 10px 12px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer; transition: all .12s;
    text-align: left;
}
.ai-tone-opt input:checked + .ai-tone-card {
    border-color: #a78bfa;
    background: rgba(167,139,250,.06);
    box-shadow: 0 0 0 1px rgba(167,139,250,.3) inset;
}
.ai-tone-card strong { font-size: 12px; color: var(--text); }
.ai-tone-sub { font-size: 10px; color: var(--text-faint); line-height: 1.3; }

.ai-spinner {
    display: inline-block; width: 11px; height: 11px;
    border: 2px solid rgba(10,10,11,.3);
    border-top-color: #0a0a0b;
    border-radius: 50%;
    animation: ai-spin .7s linear infinite;
}
@keyframes ai-spin {
    to { transform: rotate(360deg); }
}

.rl-edit-input-flash {
    animation: rl-flash 1s ease-out;
}
@keyframes rl-flash {
    0%   { box-shadow: 0 0 0 0 rgba(167,139,250,.5); }
    100% { box-shadow: 0 0 0 8px rgba(167,139,250,0); }
}

/* ──────────────────────────────────────────────────────────────────────────
   PER-ITEM RELEASE NOTES
   ─────────────────────────────────────────────────────────────────────── */

.rl-note-toggle.has-note {
    background: rgba(251,44,98,.12);
    border-color: rgba(251,44,98,.3);
    color: var(--accent);
}
.rl-note-toggle.has-note:hover { background: rgba(251,44,98,.2); }

.rl-item-note-row {
    flex-basis: 100%;
    margin-top: 8px; padding: 8px 10px 8px 12px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-left: 2px solid var(--accent);
    border-radius: var(--radius-sm);
    display: flex; align-items: center; gap: 8px;
    font-size: 12px;
}
.rl-item-note-icon { color: var(--accent); flex-shrink: 0; }
.rl-item-note-input {
    flex: 1; min-width: 0;
    background: transparent; border: none; outline: none;
    font-family: inherit; font-size: 12.5px; color: var(--text);
    padding: 2px 0;
}
.rl-item-note-input::placeholder { color: var(--text-faint); }
.rl-item-note-count {
    font-size: 10px; color: var(--text-faint);
    font-variant-numeric: tabular-nums;
    flex-shrink: 0; min-width: 26px; text-align: right;
}
.rl-item-note-status {
    font-size: 10px; color: var(--text-faint);
    flex-shrink: 0;
    transition: color .15s;
}
.rl-item-note-status.is-saved { color: var(--accent); }
.rl-item-note-readonly {
    flex: 1; font-size: 12.5px; color: var(--text-dim);
    font-style: italic;
}

/* ── LonexRelay refinement layer ───────────────────────────────────────────
   Signature treatments layered on top of the base components: the heartbeat
   brand mark, monospace for all machine data, the live pulse dot, and a
   restrained accent glow. Appended last so it wins on equal specificity. */

/* Ambient accent wash, kept very subtle so surfaces stay flat. */
body {
    background-image: radial-gradient(1100px 560px at 82% -12%, rgba(251,44,98,.06), transparent 60%);
    background-attachment: fixed;
}

/* Brand: heartbeat mark + wordmark. */
.brand-mark { color: var(--accent); flex-shrink: 0; }
.nav-wordmark {
    font-weight: 700;
    font-size: 16px;
    letter-spacing: -.02em;
    color: var(--text);
    white-space: nowrap;
}

/* Machine data set in mono with lined-up digits. */
.ref-code,
.vote-score,
.hero-stats .stat-item strong,
.stat-item strong,
.footer-meta,
.rl-version,
.rl-ver,
.badge-staff {
    font-family: var(--mono);
    font-variant-numeric: tabular-nums;
    letter-spacing: 0;
}

/* Live "pulse" dot on the hero eyebrow. */
.hero-eyebrow-dot {
    background: var(--accent) !important;
    box-shadow: 0 0 0 0 rgba(251,44,98,.5);
    animation: lp-beat 1.8s infinite;
}
@keyframes lp-beat {
    0%   { box-shadow: 0 0 0 0 rgba(251,44,98,.5); }
    70%  { box-shadow: 0 0 0 8px rgba(251,44,98,0); }
    100% { box-shadow: 0 0 0 0 rgba(251,44,98,0); }
}

/* Primary action stays flat, consistent with the rest of the surfaces. */
.btn-primary:hover { background: var(--accent-dim); }

/* Focus visibility for keyboard users. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .hero-eyebrow-dot { animation: none; }
    html { scroll-behavior: auto; }
}

.brand-logo{height:30px;width:auto;display:block;max-width:200px}
.avatar-fallback{display:inline-flex;align-items:center;justify-content:center;background:var(--accent-soft);color:var(--accent);font-weight:700;text-transform:uppercase;line-height:1;font-size:10px;border:1px solid var(--accent-line,rgba(251,44,98,.25));overflow:hidden}

/* ── Footer: customisable left text + LonexLabs "Product made by" credit ── */
.footer-left{color:var(--text-faint)}
.footer-right{display:flex;align-items:center;gap:10px}
.footer-right a{margin-left:0}
.footer-sep{color:var(--text-faint);opacity:.55}
.footer-brand{display:inline-flex;align-items:center;gap:7px;color:var(--text-faint)!important}
.footer-brand:hover{color:var(--text-dim)!important}
.footer-brand span{font-size:11.5px}
.lonexlabs-logo{height:28px;width:auto;display:block;opacity:.95}
@media(max-width:560px){.footer-inner{flex-direction:column;gap:10px;text-align:center}.footer-right{flex-wrap:wrap;justify-content:center}}

/* ── Corner style toggle (Settings): square mode zeroes the radius tokens ── */
:root[data-corners="square"]{--radius:0;--radius-sm:0;--radius-lg:0}
