/* ── Vote Panel (Detail Page) ────────────── */
.vote-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 16px 8px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    min-width: 60px;
}

.vote-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.3rem;
    transition: all 0.2s;
    padding: 4px;
    min-height: 44px;
    min-width: 44px;
}

.vote-btn:hover {
    transform: scale(1.2);
}

.vote-score {
    font-size: 1.2rem;
    font-weight: 700;
}

/* ── Detail Sidebar ──────────────────────── */
.detail-sidebar-wrapper {
    position: sticky;
    top: 80px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
}

.detail-sidebar-wrapper::-webkit-scrollbar {
    width: 3px;
}

.detail-sidebar-wrapper::-webkit-scrollbar-thumb {
    background: var(--color-brand-border-soft);
    border-radius: var(--radius-md);
}

.detail-sidebar {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 20px;
}

/* ── Vote Panel Inline (inside sidebar) ─── */
.vote-panel-inline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: 12px;
    background: var(--color-surface-subtle);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-2);
}

.vote-panel-inline .vote-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.4rem;
    transition: all 0.2s;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
}

.vote-panel-inline .vote-btn:hover {
    transform: scale(1.15);
    background: var(--color-brand-faint);
}

.vote-panel-inline .vote-score {
    font-size: 1.3rem;
    font-weight: 700;
    min-width: 40px;
    text-align: center;
}

/* ── Comment Section ─────────────────────── */
.comment-form-wrapper {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: var(--space-3);
}

.comment-login-prompt {
    text-align: center;
    padding: 20px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-3);
    color: var(--color-text-muted);
}

.no-comments-msg {
    color: var(--color-text-muted);
    text-align: center;
    padding: 20px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
}

.no-comments-msg p {
    margin-top: var(--space-1);
}

/* ── Community Toolbar ───────────────────── */
.community-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: var(--space-3);
    padding: 12px 20px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
}

.sort-tabs {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.sort-tab {
    padding: 8px 18px;
    border-radius: var(--radius-pill);
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    background: transparent;
    text-decoration: none;
    border: 1px solid transparent;
    transition: all 0.2s;
}

.sort-tab:hover {
    color: var(--color-text);
    background: var(--color-brand-soft);
}

.sort-tab.active {
    color: var(--color-brand-strong);
    background: var(--color-brand-soft-strong);
    border-color: var(--color-brand);
}

/* ── Reddit-Style Cards ──────────────────── */
.community-feed {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.community-hub-layout {
    align-items: start;
    display: grid;
    gap: 28px;
    grid-template-columns: minmax(0, 1fr) 280px;
}

.community-hub-main {
    min-width: 0;
}

.community-guide,
.contribution-guide {
    border-top: 2px solid var(--color-brand);
    position: sticky;
    top: 86px;
}

.community-guide {
    padding-top: 18px;
}

.community-guide__eyebrow,
.contribution-guide__eyebrow {
    color: var(--color-brand-strong);
    display: block;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    margin-bottom: 7px;
    text-transform: uppercase;
}

.community-guide h2,
.contribution-guide h2 {
    color: var(--color-text);
    font-size: 1.08rem;
    line-height: 1.35;
    margin-bottom: 16px;
}

.community-guide__steps {
    counter-reset: community-step;
    list-style: none;
    margin: 0 0 18px;
    padding: 0;
}

.community-guide__steps li {
    border-bottom: 1px solid var(--color-border);
    display: grid;
    gap: 2px 10px;
    grid-template-columns: 24px 1fr;
    padding: 11px 0;
}

.community-guide__steps li::before {
    color: var(--color-brand);
    content: counter(community-step, decimal-leading-zero);
    counter-increment: community-step;
    font-size: 0.7rem;
    font-weight: 800;
    grid-row: 1 / 3;
    padding-top: 2px;
}

.community-guide__steps strong {
    font-size: 0.82rem;
}

.community-guide__steps span,
.contribution-guide p {
    color: var(--color-text-muted);
    font-size: 0.76rem;
    line-height: 1.5;
}

.community-guide__action {
    align-items: center;
    color: var(--color-brand-strong);
    display: inline-flex;
    font-size: 0.8rem;
    font-weight: 750;
    gap: 6px;
    min-height: 44px;
    text-decoration: none;
}

.reddit-card {
    display: flex;
    gap: 0;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.2s;
}

.community-entry {
    border-radius: var(--radius-md);
    display: grid;
    grid-template-columns: minmax(0, 1fr) 58px;
}

.reddit-card:hover {
    border-color: var(--color-brand);
    box-shadow: none;
}

.reddit-vote-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 16px 10px;
    background: var(--color-surface-subtle);
    min-width: 52px;
    border-right: 1px solid var(--color-border);
}

.community-entry__vote {
    border-left: 1px solid var(--color-border);
    border-right: 0;
    grid-column: 2;
    grid-row: 1;
    min-width: 58px;
    padding: 10px 6px;
}

.community-entry__content {
    grid-column: 1;
    grid-row: 1;
}

.vote-btn-community {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 4px;
    min-height: 44px;
    min-width: 44px;
    transition: all 0.15s;
}

.vote-btn-community:hover {
    transform: scale(1.25);
}

.vote-score-community {
    font-size: 1rem;
    font-weight: 700;
}

.reddit-content-col {
    flex: 1;
    padding: 16px 20px;
    min-width: 0;
}

.community-entry__content {
    padding: 16px 18px;
}

.community-entry .reddit-title {
    font-size: 1rem;
    margin-bottom: 8px;
}

.community-entry .reddit-prompt-preview {
    background: var(--color-surface-subtle);
    border-left: 2px solid var(--color-brand-border-soft);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 10px 12px;
}

.contribution-workspace {
    align-items: start;
    display: grid;
    gap: clamp(28px, 5vw, 64px);
    grid-template-columns: minmax(0, 760px) minmax(240px, 300px);
    justify-content: center;
}

.contribution-workspace__form {
    min-width: 0;
}

.prompt-composer {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.prompt-composer__author {
    align-items: center;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    gap: 12px;
    padding: 18px 22px;
}

.prompt-composer__avatar {
    align-items: center;
    background: var(--color-brand-soft);
    border-radius: 50%;
    color: var(--color-brand-strong);
    display: flex;
    flex: 0 0 46px;
    height: 46px;
    justify-content: center;
    overflow: hidden;
    width: 46px;
}

.prompt-composer__avatar img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.prompt-composer__author strong,
.prompt-composer__author span {
    display: block;
}

.prompt-composer__author span {
    color: var(--color-text-muted);
    font-size: 0.76rem;
}

.prompt-composer__body {
    padding: 22px;
}

.prompt-composer__title-input {
    border: 0;
    border-bottom: 1px solid var(--color-border);
    border-radius: 0;
    font-size: clamp(1.05rem, 2vw, 1.3rem);
    font-weight: 700;
    padding-inline: 0;
}

.prompt-composer__title-input:focus {
    border-bottom-color: var(--color-brand);
    box-shadow: none;
}

.prompt-composer__prompt-input {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    line-height: 1.65;
}

.prompt-composer__section {
    border-top: 1px solid var(--color-border);
    margin-top: 20px;
    padding-top: 20px;
}

.prompt-composer__section-heading {
    align-items: flex-start;
    display: flex;
    gap: 10px;
    justify-content: space-between;
    margin-bottom: 12px;
}

.prompt-composer__section-heading h2,
.prompt-composer__section-heading h3 {
    font-size: 0.94rem;
    margin: 0;
}

.prompt-composer__section-heading p {
    color: var(--color-text-muted);
    font-size: 0.75rem;
    margin: 3px 0 0;
}

.prompt-field-builder {
    display: grid;
    gap: 10px;
}

.prompt-field-row {
    align-items: start;
    background: var(--color-surface-subtle);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(130px, 0.8fr) minmax(160px, 1.2fr) minmax(130px, 0.8fr) 92px;
    padding: 12px;
}

.prompt-field-row .form-control {
    min-width: 0;
}

.prompt-field-row__actions {
    display: flex;
    gap: 4px;
}

.prompt-field-remove,
.prompt-field-insert {
    align-items: center;
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-text-muted);
    display: flex;
    height: 44px;
    justify-content: center;
    width: 44px;
}

.prompt-field-insert:hover {
    border-color: var(--color-brand);
    color: var(--color-brand-strong);
}

.prompt-field-remove:hover {
    border-color: var(--color-danger);
    color: var(--color-danger);
}

.prompt-field-empty {
    color: var(--color-text-muted);
    font-size: 0.78rem;
    margin: 0;
    padding: 10px 0;
}

.prompt-composer__attachments {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.prompt-composer__footer {
    align-items: center;
    background: var(--color-surface-subtle);
    border-top: 1px solid var(--color-border);
    display: flex;
    gap: 16px;
    justify-content: space-between;
    padding: 16px 22px;
}

.prompt-composer__publish-note {
    color: var(--color-text-muted);
    font-size: 0.75rem;
    line-height: 1.45;
    margin: 0;
    max-width: 440px;
}

.community-composer-modal {
    align-items: center;
    background: var(--color-backdrop-strong);
    display: none;
    inset: 0;
    justify-content: center;
    padding: 20px;
    position: fixed;
    z-index: var(--z-modal, 1050);
}

.community-composer-modal.is-open {
    display: flex;
}

.community-composer-modal__dialog {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    width: min(920px, 100%);
}

.community-composer-modal__topbar,
.community-composer-modal__topbar > div {
    align-items: center;
    display: flex;
}

.community-composer-modal__topbar {
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    justify-content: space-between;
    padding: 16px 20px;
    position: sticky;
    top: 0;
    z-index: 3;
}

.community-composer-modal__topbar > div {
    gap: 11px;
}

.community-composer-modal__topbar h2 {
    font-size: 1rem;
    margin: 0;
}

.community-composer-modal__topbar p {
    color: var(--color-text-muted);
    font-size: 0.72rem;
    margin: 2px 0 0;
}

.community-composer-modal__icon {
    align-items: center;
    background: var(--color-brand-soft);
    border-radius: 10px;
    color: var(--color-brand-strong);
    display: flex;
    height: 40px;
    justify-content: center;
    width: 40px;
}

.community-composer-modal__close {
    background: transparent;
    border: 0;
    border-radius: var(--radius-sm);
    color: var(--color-text-muted);
    height: 44px;
    width: 44px;
}

.community-composer-modal__close:hover {
    color: var(--color-text);
}

.prompt-composer--modal {
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.prompt-composer--modal .prompt-composer__author {
    padding: 15px 20px;
}

.prompt-composer--modal .prompt-composer__body {
    padding: 20px;
}

.prompt-composer__optional {
    color: var(--color-text-muted);
    font-size: 0.68rem;
    font-weight: 500;
    margin-left: 5px;
}

.contribution-form-card {
    border-radius: var(--radius-lg);
    padding: clamp(20px, 3vw, 30px);
}

.contribution-guide {
    padding-top: 18px;
}

.contribution-guide ul {
    display: grid;
    gap: 0;
    list-style: none;
    margin: 0 0 14px;
    padding: 0;
}

.contribution-guide li {
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text-secondary);
    display: grid;
    font-size: 0.78rem;
    gap: 8px;
    grid-template-columns: 18px 1fr;
    line-height: 1.5;
    padding: 11px 0;
}

.contribution-guide li i {
    color: var(--color-brand);
}

.reddit-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: var(--space-1);
    font-size: 0.8rem;
}

.reddit-author {
    color: var(--color-text-muted);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
}

.reddit-author:hover {
    color: var(--color-brand-strong);
}

.reddit-avatar {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    object-fit: cover;
}

.reddit-time {
    color: var(--color-text-muted);
}

.reddit-title {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.reddit-title a {
    color: var(--color-text);
    text-decoration: none;
}

.reddit-title a:hover {
    color: var(--color-brand-strong);
}

.reddit-purpose {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-1);
}

.reddit-prompt-preview {
    margin-bottom: 10px;
}

.reddit-image-preview {
    margin-bottom: 10px;
    border-radius: var(--radius-md);
    overflow: hidden;
    max-height: 300px;
}

.reddit-image-preview img {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: cover;
    border-radius: var(--radius-md);
}

.reddit-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    padding-top: var(--space-1);
    border-top: 1px solid var(--color-border);
}

.reddit-action-btn {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    min-height: 44px;
    border-radius: var(--radius-sm);
    transition: all 0.15s;
}

.reddit-action-btn:hover,
.reddit-action-btn:focus-visible {
    color: var(--color-text);
    background: transparent;
    box-shadow: none;
}

.reddit-action-btn.prompt-template-action {
    color: var(--color-brand-strong);
    font-weight: 750;
}

.reddit-action-btn.prompt-template-action:hover,
.reddit-action-btn.prompt-template-action:focus-visible {
    background: transparent;
    box-shadow: none;
    color: var(--color-brand);
}

.reddit-action-btn.copied,
.reddit-action-btn.copied:hover,
.reddit-action-btn.copied:focus-visible {
    background: transparent;
    box-shadow: none;
    color: var(--color-success);
    transform: none;
}

.prompt-template-field-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 14px;
}

.prompt-template-field-list span {
    background: var(--color-brand-soft);
    border: 1px solid var(--color-brand-border-soft);
    border-radius: 999px;
    color: var(--color-brand-strong);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 5px 9px;
}

.prompt-copy-modal {
    align-items: center;
    background: var(--color-backdrop-strong);
    display: none;
    inset: 0;
    justify-content: center;
    padding: 20px;
    position: fixed;
    z-index: var(--z-modal, 1050);
}

.prompt-copy-modal.is-open {
    display: flex;
}

.prompt-copy-modal__dialog {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    width: min(680px, 100%);
}

.prompt-copy-modal__header,
.prompt-copy-modal__header > div,
.prompt-copy-modal__footer {
    align-items: center;
    display: flex;
}

.prompt-copy-modal__header {
    border-bottom: 1px solid var(--color-border);
    justify-content: space-between;
    padding: 20px 22px;
}

.prompt-copy-modal__header > div {
    gap: 12px;
}

.prompt-copy-modal__header h2 {
    font-size: 1.05rem;
    margin: 0;
}

.prompt-copy-modal__header p {
    color: var(--color-text-muted);
    font-size: 0.72rem;
    margin: 3px 0 0;
}

.prompt-copy-modal__icon {
    align-items: center;
    background: var(--color-brand-soft);
    border-radius: 10px;
    color: var(--color-brand-strong);
    display: flex;
    flex: 0 0 42px;
    height: 42px;
    justify-content: center;
}

.prompt-copy-modal__close {
    background: transparent;
    border: 0;
    border-radius: var(--radius-sm);
    color: var(--color-text-muted);
    height: 44px;
    width: 44px;
}

.prompt-copy-modal__body {
    padding: 22px;
}

.prompt-copy-fields {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.prompt-copy-field label,
.prompt-copy-preview label {
    color: var(--color-text);
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.prompt-copy-field input,
.prompt-copy-preview textarea {
    background: var(--color-surface);
    border: 1px solid var(--color-control-border);
    border-radius: var(--radius-sm);
    color: var(--color-text);
    min-height: 44px;
    padding: 10px 12px;
    width: 100%;
}

.prompt-copy-field small {
    color: var(--color-text-muted);
    display: block;
    font-size: 0.68rem;
    margin-top: 5px;
}

.prompt-copy-preview {
    border-top: 1px solid var(--color-border);
    margin-top: 20px;
    padding-top: 18px;
}

.prompt-copy-preview textarea {
    background: var(--color-surface-subtle);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.78rem;
    line-height: 1.55;
    resize: vertical;
}

.prompt-copy-modal__footer {
    background: var(--color-surface-subtle);
    border-top: 1px solid var(--color-border);
    gap: 10px;
    justify-content: flex-end;
    padding: 16px 22px;
}

/* ── Image Upload Zone ───────────────────── */
.image-upload-zone {
    border: 2px dashed var(--color-control-border);
    border-radius: var(--radius-lg);
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--color-surface-subtle);
}

.image-upload-zone:hover,
.image-upload-zone.dragover {
    border-color: var(--color-brand);
    background: var(--color-brand-faint);
}

.upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.upload-preview {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.upload-preview img {
    max-height: 250px;
    max-width: 100%;
    border-radius: var(--radius-md);
    object-fit: contain;
}

.upload-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--color-danger-action);
    color: var(--color-on-brand);
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.upload-remove:hover {
    background: var(--color-danger-action);
    transform: scale(1.1);
}

/* ── Favorite Button ─────────────────────── */
.btn-fav {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.15rem;
    color: var(--color-text-muted);
    padding: 6px;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    min-width: 44px;
}

.btn-fav:hover {
    color: var(--color-danger);
    transform: scale(1.15);
}

.btn-fav.favorited {
    color: var(--color-danger);
}

.btn-fav.favorited i {
    animation: heartBeat 0.4s ease;
}

@keyframes heartBeat {
    0% {
        transform: scale(1);
    }

    25% {
        transform: scale(1.3);
    }

    50% {
        transform: scale(0.95);
    }

    100% {
        transform: scale(1);
    }
}

/* ── Animations ───────────────────────────── */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeInUp 0.5s ease forwards;
}

/* ── Mobile Menu ─────────────────────────── */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-backdrop);
    backdrop-filter: blur(4px);
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100%;
    background: var(--color-surface);
    z-index: 201;
    transition: right 0.3s ease;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid var(--color-border);
}

.mobile-menu-body {
    padding: 12px 16px;
}

.mobile-nav-group {
    border-bottom: 1px solid var(--color-divider-faint);
}

.mobile-nav-group__toggle {
    align-items: center;
    appearance: none;
    background: transparent;
    border: 0;
    color: var(--color-text-secondary);
    cursor: pointer;
    display: flex;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 650;
    justify-content: space-between;
    min-height: 48px;
    padding: 10px 8px;
    text-align: left;
    width: 100%;
}

.mobile-nav-group__toggle > span {
    align-items: center;
    display: inline-flex;
    gap: 10px;
}

.mobile-nav-group__toggle > span > i {
    font-size: 0.95rem;
    text-align: center;
    width: 18px;
}

.mobile-nav-group__toggle:hover,
.mobile-nav-group__toggle:focus-visible,
.mobile-nav-group__toggle.active,
.mobile-nav-group__toggle[aria-expanded='true'] {
    color: var(--color-brand);
}

.mobile-nav-group__chevron {
    font-size: 0.72rem;
    transition: transform 0.2s ease;
}

.mobile-nav-group__toggle[aria-expanded='true'] .mobile-nav-group__chevron {
    transform: rotate(180deg);
}

.mobile-nav-group__panel {
    background: var(--color-surface-muted);
    border-radius: var(--radius-md);
    margin-bottom: 8px;
    padding: 4px;
}

.mobile-nav-group__panel[hidden] {
    display: none;
}

.mobile-nav-group__panel .mobile-nav-link {
    border-bottom: 0;
    min-height: 44px;
    padding-left: 10px;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 8px;
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    border-bottom: 1px solid var(--color-divider-faint);
    border-radius: var(--radius-sm);
    transition: all 0.2s;
    flex-wrap: wrap;
    min-height: 44px;
}

.mobile-nav-link--standalone {
    border-bottom: 1px solid var(--color-divider-faint);
}

.mobile-nav-link small {
    color: var(--color-text-muted);
    flex-basis: calc(100% - 28px);
    font-size: 0.75rem;
    font-weight: 400;
    line-height: 1.35;
    margin-left: 28px;
    margin-top: -6px;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: var(--color-brand);
    background: var(--color-brand-faint);
}

.mobile-nav-link i {
    width: 18px;
    text-align: center;
    font-size: 0.95rem;
}

.mobile-theme-toggle {
    appearance: none;
    background: transparent;
    border-left: 0;
    border-right: 0;
    border-top: 0;
    cursor: pointer;
    text-align: left;
    width: 100%;
}

.mobile-search {
    display: flex;
    gap: 0;
    margin-bottom: 12px;
}

.mobile-search input {
    flex: 1;
    background: var(--color-surface-subtle);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    padding: 8px 12px;
    color: var(--color-text);
    outline: none;
    font-size: 0.85rem;
    min-height: 44px;
    min-width: 0;
}

.mobile-search input:focus {
    border-color: var(--color-brand);
}

.mobile-search button {
    background: var(--color-brand-action);
    border: none;
    color: var(--color-on-brand);
    flex: 0 0 44px;
    min-height: 44px;
    min-width: 44px;
    padding: 0;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background 0.2s;
}

.mobile-search button:hover {
    background: var(--color-brand-action-hover);
}

/* ── View All Button (Minimal) ──────────── */
.btn-view-all {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 8px;
    font-size: var(--font-size-caption);
    font-weight: 500;
    color: var(--color-text-muted);
    text-decoration: none;
    border: 0;
    border-radius: var(--radius-pill);
    transition: all 0.2s;
    white-space: nowrap;
    min-height: 40px;
}

.btn-view-all:hover {
    color: var(--color-brand);
    background: var(--color-brand-faint);
}

.btn-view-all i {
    font-size: var(--font-size-caption);
    transition: transform 0.2s;
}

.btn-view-all:hover i {
    transform: translateX(2px);
}
