/* Import IBM Plex fonts */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&family=IBM+Plex+Sans:wght@400;500;600&display=swap');

/* CSS Variables for theming */
:root {
    /* Light theme (default) */
    --bg-primary: #f5f5f5;
    --bg-secondary: #ffffff;
    --bg-tertiary: #ebebeb;
    --bg-hover: #e0e0e0;
    --bg-selected: #d8d8d8;
    --text-primary: #1a1a1a;
    --text-secondary: #4a4a4a;
    --text-muted: #8a8a8a;
    --border-color: #d4d4d4;
    --border-light: #e8e8e8;
    --accent-primary: #e67e22;
    --accent-primary-light: rgba(230, 126, 34, 0.1);
    --accent-hover: #d35400;
    --accent-success: #2d8a4e;
    --accent-danger: #c53030;
    --accent-danger-light: rgba(197, 48, 48, 0.1);
    --accent-warning: #b7791f;
    --accent-mercari: #2b6cb0;
    --accent-yahoo: #c53030;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 2px 8px rgba(0,0,0,0.08);
    --card-bg: #ffffff;
    --navbar-bg: #fafafa;
    --overlay-bg: rgba(0,0,0,0.4);
}

[data-theme="dark"] {
    --bg-primary: #121212;
    --bg-secondary: #1e1e1e;
    --bg-tertiary: #252525;
    --bg-hover: #2a2a2a;
    --bg-selected: #333333;
    --text-primary: #e8e8e8;
    --text-secondary: #b0b0b0;
    --text-muted: #707070;
    --border-color: #333333;
    --border-light: #282828;
    --accent-primary: #e67e22;
    --accent-primary-light: rgba(230, 126, 34, 0.15);
    --accent-hover: #d35400;
    --accent-success: #48bb78;
    --accent-danger: #fc8181;
    --accent-danger-light: rgba(252, 129, 129, 0.15);
    --accent-warning: #ecc94b;
    --accent-mercari: #63b3ed;
    --accent-yahoo: #fc8181;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.2);
    --shadow-md: 0 2px 8px rgba(0,0,0,0.3);
    --card-bg: #1e1e1e;
    --navbar-bg: #1a1a1a;
    --overlay-bg: rgba(0,0,0,0.6);
}

* { font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif; margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    transition: background 0.2s, color 0.2s;
}

code, kbd, pre, .mono {
    font-family: 'IBM Plex Mono', monospace;
}

/* SVG Icons */
.icon {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 1.5;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

/* Fixed LHS Navbar */
.navbar {
    position: fixed;
    left: 0;
    top: 0;
    width: 200px;
    height: 100vh;
    background: var(--navbar-bg);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    z-index: 100;
    transition: background 0.2s, border-color 0.2s;
}

.navbar-header {
    padding: 20px 16px;
    border-bottom: 1px solid var(--border-light);
}

.navbar-logo {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.5px;
}

.navbar-logo-icon {
    width: 28px;
    height: 28px;
    background: var(--text-primary);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar-logo-icon svg {
    width: 16px;
    height: 16px;
    stroke: var(--bg-primary);
}

.navbar-menu {
    flex: 1;
    padding: 8px;
    overflow-y: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 6px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.15s;
    margin-bottom: 2px;
    cursor: pointer;
}

.nav-item:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.nav-item.active {
    background: var(--bg-selected);
    color: var(--text-primary);
}

.nav-item.active:hover {
    background: var(--bg-selected);
}

.nav-icon {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-badge {
    margin-left: auto;
    background: var(--accent-danger);
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 8px;
    min-width: 18px;
    text-align: center;
    font-family: 'IBM Plex Mono', monospace;
}

.navbar-footer {
    padding: 12px;
    border-top: 1px solid var(--border-light);
}

/* Theme Toggle */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    background: var(--bg-tertiary);
    border-radius: 6px;
    font-size: 12px;
    color: var(--text-muted);
}

.theme-switch {
    position: relative;
    width: 36px;
    height: 20px;
    background: var(--border-color);
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s;
}

.theme-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    transition: transform 0.2s;
    box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .theme-switch {
    background: var(--text-muted);
}

[data-theme="dark"] .theme-switch::after {
    transform: translateX(16px);
}

/* Main content area - offset by navbar */
.main-wrapper {
    margin-left: 200px;
    min-height: 100vh;
}

/* Content area */
.content-area {
    padding: 0;
}

/* Topbar - sticky navigation bar */
.topbar {
    position: sticky;
    top: 0;
    height: 48px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    z-index: 50;
    padding: 0 20px;
}

.topbar-nav {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-secondary);
    transition: all 0.15s;
}

.topbar-nav:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.topbar-keyword-wrapper {
    position: relative;
}

.topbar-keyword {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 6px 12px;
    cursor: pointer;
    transition: all 0.15s;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
}

.topbar-keyword:hover {
    background: var(--bg-hover);
    border-color: var(--text-muted);
}

.topbar-keyword-count {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    color: var(--text-muted);
    background: var(--bg-primary);
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 4px;
}

.topbar-keyword-arrow {
    font-size: 10px;
    color: var(--text-muted);
    transition: transform 0.15s;
}

.topbar-keyword-wrapper.open .topbar-keyword-arrow {
    transform: rotate(180deg);
}

.topbar-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    min-width: 200px;
    max-height: 300px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition: all 0.15s;
    z-index: 100;
}

.topbar-keyword-wrapper.open .topbar-dropdown {
    opacity: 1;
    visibility: visible;
}

.topbar-dropdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    cursor: pointer;
    transition: background 0.1s;
    font-size: 13px;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-light);
}

.topbar-dropdown-item:last-child {
    border-bottom: none;
}

.topbar-dropdown-item:hover {
    background: var(--bg-hover);
}

.topbar-dropdown-item.active {
    background: var(--bg-selected);
}

.topbar-dropdown-count {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    color: var(--text-muted);
    background: var(--bg-tertiary);
    padding: 2px 6px;
    border-radius: 4px;
}

.topbar-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.topbar-skip-hint {
    font-size: 11px;
    color: var(--text-muted);
    margin-left: 8px;
}

.topbar-skip-hint kbd {
    font-size: 10px;
    padding: 1px 4px;
}

/* Cards */
.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.15s;
    box-shadow: var(--shadow-sm);
}

.card:hover {
    border-color: var(--text-muted);
    box-shadow: var(--shadow-md);
}

/* Source badges */
.source-badge {
    display: inline-block;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.source-badge.mercari {
    background: rgba(43, 108, 176, 0.12);
    color: var(--accent-mercari);
}

.source-badge.yahoo {
    background: rgba(197, 48, 48, 0.12);
    color: var(--accent-yahoo);
}

.source-badge.both {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
}

/* Auction indicator (hammer icon) */
.auction-indicator {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--accent-yahoo);
    font-size: 12px;
}

.auction-indicator svg {
    width: 14px;
    height: 14px;
}

/* Sold badge */
.sold-badge {
    display: inline-flex;
    align-items: center;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(248, 113, 113, 0.15);
    color: #f87171;
    vertical-align: middle;
}

/* Sold item card style */
.grid-card.sold, .review-card.sold {
    opacity: 0.5;
}

.grid-card.sold img, .review-card.sold img {
    filter: grayscale(40%);
}

/* Price with indicators row */
.price-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* Auction end time in detail view */
.auction-info {
    font-size: 12px;
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Monaco, Consolas, monospace;
    color: var(--text-muted);
    margin-top: 2px;
}

.auction-info.ending-soon {
    color: var(--accent-warning);
}

/* Buttons */
.btn {
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.btn:hover {
    background: var(--bg-hover);
    border-color: var(--text-muted);
}

.btn-primary {
    background: var(--text-primary);
    color: var(--bg-primary);
    border-color: var(--text-primary);
}

.btn-primary:hover {
    opacity: 0.85;
}

.btn-success {
    background: var(--accent-success);
    color: white;
    border-color: var(--accent-success);
}

.btn-ghost {
    background: transparent;
    border-color: transparent;
    color: var(--text-secondary);
}

.btn-ghost:hover {
    background: var(--bg-hover);
    border-color: transparent;
}

/* Keyboard hints */
kbd {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    color: var(--text-muted);
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: var(--overlay-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.15s;
}

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

.modal {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 20px;
    width: 100%;
    max-width: 400px;
    box-shadow: var(--shadow-md);
    transform: scale(0.96);
    transition: transform 0.15s;
}

.modal-overlay.active .modal {
    transform: scale(1);
}

.modal-header {
    margin-bottom: 16px;
}

.modal-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.modal-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

.modal-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 14px;
    transition: border-color 0.15s;
}

.form-input:focus {
    outline: none;
    border-color: var(--text-muted);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 14px;
    cursor: pointer;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 16px;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Preload hidden images */
.preload { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }

/* Empty state */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-muted);
}

.empty-state p {
    margin-bottom: 6px;
    font-size: 14px;
}

.empty-state a {
    color: var(--text-secondary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.empty-state a:hover {
    color: var(--text-primary);
}

/* Controls bar */
.controls-bar {
    display: flex;
    justify-content: center;
    gap: 16px;
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    margin-top: auto;
}

.controls-bar span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-muted);
}

/* Detail Modal (shared by Saved + Review) */
.detail-overlay {
    position: fixed;
    inset: 0;
    background: var(--overlay-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
}

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

.detail-modal {
    background: var(--card-bg);
    border-radius: 16px;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    display: flex;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    position: relative;
}

.detail-image-section {
    flex: 1;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 400px;
}

.detail-main-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.detail-thumbnails {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    background: var(--overlay-bg);
    padding: 8px;
    border-radius: 8px;
    max-width: calc(100% - 32px);
    width: fit-content;
    justify-content: center;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.detail-thumbnails::-webkit-scrollbar {
    display: none;
}

.detail-thumb {
    width: 48px;
    height: 48px;
    min-width: 48px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0.6;
    border: 2px solid transparent;
    transition: all 0.15s;
    flex-shrink: 0;
}

.detail-thumb:hover { opacity: 0.9; }
.detail-thumb.active { opacity: 1; border-color: var(--accent-primary); }

.detail-info-section {
    width: 350px;
    padding: 24px;
    overflow-y: auto;
    border-left: 1px solid var(--border-color);
}

.detail-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.detail-close:hover {
    background: var(--bg-hover);
}

.detail-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.4;
}


.detail-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.rating-section {
    margin-bottom: 20px;
}

.rating-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.rating-stars {
    display: flex;
    gap: 6px;
}

.star-btn {
    width: 40px;
    height: 40px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    position: relative;
}

.star-btn:hover {
    background: var(--bg-hover);
    border-color: var(--accent-warning);
}

.star-btn.active {
    background: rgba(245, 159, 0, 0.15);
    border-color: var(--accent-warning);
}

.star-btn .key-hint {
    position: absolute;
    bottom: 2px;
    right: 4px;
    font-size: 9px;
    color: var(--text-muted);
}

.detail-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    white-space: pre-wrap;
}

.detail-description-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-actions {
    display: flex;
    gap: 12px;
    margin-top: auto;
    padding-top: 20px;
}

.detail-link {
    flex: 1;
    text-align: center;
    padding: 12px;
    background: var(--accent-primary);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.15s;
}

.detail-link:hover {
    background: var(--accent-hover);
}

.detail-remove {
    flex: 1;
    padding: 12px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.15s;
}

.detail-remove:hover {
    background: rgba(248, 113, 113, 0.1);
    border-color: #f87171;
    color: #f87171;
}

.detail-nav {
    display: flex;
    gap: 8px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.detail-nav-btn {
    flex: 1;
    padding: 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s;
}

.detail-nav-btn:hover {
    background: var(--bg-hover);
    border-color: var(--accent-primary);
}

.detail-nav-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Topbar breadcrumb styles for deck > keyword */
.topbar-deck {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    margin-left: 8px;
}

.topbar-separator {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0 4px;
}

/* Fit score badges */
.fit-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 5;
}

.fit-badge.fit-4 {
    background: rgba(45, 138, 78, 0.9);
    color: white;
}

.fit-badge.fit-3 {
    background: rgba(183, 121, 31, 0.9);
    color: white;
}

.fit-badge.fit-2 {
    background: rgba(180, 83, 9, 0.85);
    color: white;
}

.fit-badge.fit-1 {
    background: rgba(197, 48, 48, 0.9);
    color: white;
}

/* Category options in modals */
.category-options {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.category-option {
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-primary);
    color: var(--text-secondary);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.category-option:hover {
    border-color: var(--accent-primary);
}

.category-option.selected {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
}

/* Sidebar deck navigation */
.nav-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 12px 8px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 8px;
    border-top: 1px solid var(--border-light);
}

.nav-section-add {
    width: 20px;
    height: 20px;
    border: none;
    background: var(--bg-tertiary);
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}

.nav-section-add:hover {
    background: var(--accent-primary);
    color: white;
}

.nav-decks-list {
    display: flex;
    flex-direction: column;
}

.nav-deck-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 6px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.15s;
    margin-bottom: 2px;
    cursor: pointer;
}

.nav-deck-item:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.nav-deck-item.active {
    background: var(--bg-selected);
    color: var(--text-primary);
}

.nav-deck-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-deck-count {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10px;
    color: var(--text-muted);
    background: var(--bg-tertiary);
    padding: 2px 6px;
    border-radius: 4px;
}