/*
 * Sesami / Deposita Dashboard — Design System
 *
 * Brand: Sesami
 * Font:  Neue Haas Unica
 * Colors derived from Brand/color assets (sesami-rgb-250805.ase)
 *
 * Structure:
 *   1. Font faces
 *   2. CSS variables (design tokens)
 *   3. Reset & base
 *   4. Layout
 *   5. Navigation & tabs
 *   6. Cards (KPI summary)
 *   7. Filter bar
 *   8. Tables
 *   9. Expandable cells
 *  10. Column filters
 *  11. Column picker
 *  12. Utilities
 */

/* ==========================================================================
   1. FONT FACES
   ========================================================================== */

@font-face {
    font-family: 'Neue Haas Unica';
    src: url('/static/fonts/NeueHaasUnica-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Neue Haas Unica';
    src: url('/static/fonts/NeueHaasUnica-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Neue Haas Unica';
    src: url('/static/fonts/NeueHaasUnica-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Neue Haas Unica';
    src: url('/static/fonts/NeueHaasUnica-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Neue Haas Unica';
    src: url('/static/fonts/NeueHaasUnica-Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
}

/* ==========================================================================
   2. CSS VARIABLES (DESIGN TOKENS)
   ========================================================================== */

:root {
    /* Primary — Aqua */
    --aqua-dark:    #00B2A4;
    --aqua:         #52CCBF;
    --aqua-light:   #5CE5DB;

    /* Secondary — Citron */
    --citron-dark:  #76800A;
    --citron:       #D6E017;
    --citron-light: #E7F218;

    /* Secondary — Lilac */
    --lilac-dark:   #6969BF;
    --lilac:        #8A8AE5;
    --lilac-light:  #A6A6FF;

    /* Neutrals */
    --white:        #FFFFFF;
    --gray-50:      #F6F6F7;
    --gray-100:     #E1E1E5;
    --gray-200:     #D3D3D5;
    --gray-400:     #929296;
    --gray-700:     #3F3F46;
    --gray-800:     #36363E;
    --gray-900:     #25252D;
    --black:        #19191F;

    /* Semantic */
    --bg-primary:   var(--white);
    --bg-secondary: var(--gray-50);
    --text-primary: var(--gray-900);
    --text-secondary: var(--gray-400);
    --accent:       var(--aqua-dark);
    --accent-bright: var(--aqua-light);
    --accent-light: var(--aqua);
    --border:       var(--gray-100);

    /* Spacing */
    --space-xs:  0.25rem;
    --space-sm:  0.5rem;
    --space-md:  1rem;
    --space-lg:  1.5rem;
    --space-xl:  2rem;
    --space-2xl: 3rem;

    /* Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;

    /* Shadows */
    --shadow-sm:  0 1px 2px rgba(25, 25, 31, 0.06);
    --shadow-md:  0 2px 8px rgba(25, 25, 31, 0.08);
    --shadow-lg:  0 4px 16px rgba(25, 25, 31, 0.1);

    /* Typography */
    --font-family: 'Neue Haas Unica', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ==========================================================================
   3. RESET & BASE
   ========================================================================== */

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

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-family);
    font-weight: 400;
    color: var(--text-primary);
    background: var(--bg-secondary);
    line-height: 1.5;
    min-height: 100vh;
}

/* ==========================================================================
   4. LAYOUT
   ========================================================================== */

.app-header {
    background: var(--gray-900);
    color: var(--white);
    padding: var(--space-md) var(--space-xl);
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 3px solid var(--aqua-light);
    background-image:
        linear-gradient(135deg, rgba(92, 229, 219, 0.08) 0%, transparent 50%);
}

.app-header__logo {
    height: 32px;
    width: auto;
}

.app-header__title {
    font-size: 1.125rem;
    font-weight: 500;
    margin-left: var(--space-lg);
}

.app-header__left {
    display: flex;
    align-items: center;
}

.app-header__right {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

/* App body — sidebar + main side by side */
.app-body {
    display: flex;
    min-height: calc(100vh - 60px);
}

/* Sidebar */
.sidebar {
    width: 64px;
    min-width: 64px;
    background: var(--gray-900);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--space-md) 0;
    gap: var(--space-xs);
    position: sticky;
    top: 60px;
    height: calc(100vh - 60px);
    overflow-y: auto;
}

.sidebar__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: var(--space-sm) var(--space-xs);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: background 0.15s;
    width: 56px;
    position: relative;
    border-left: 3px solid transparent;
}

.sidebar__item:hover {
    background: rgba(255, 255, 255, 0.06);
}

.sidebar__item--active {
    background: rgba(92, 229, 219, 0.1);
    border-left-color: var(--aqua-light);
}

.sidebar__icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

.sidebar__label {
    font-size: 0.5625rem;
    font-weight: 500;
    color: var(--gray-400);
    text-align: center;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 52px;
}

.sidebar__item--active .sidebar__label {
    color: var(--aqua-light);
}

.sidebar__item--active .sidebar__icon {
    box-shadow: 0 0 0 2px var(--aqua-light);
}

.main-content {
    flex: 1;
    max-width: 1920px;
    margin: 0 auto;
    padding: var(--space-xl);
    min-width: 0;
}

/* ==========================================================================
   5. NAVIGATION & TABS
   ========================================================================== */

.tab-nav {
    display: flex;
    gap: var(--space-xs);
    border-bottom: 2px solid var(--border);
    margin-bottom: var(--space-xl);
}

.tab-nav__item {
    padding: var(--space-sm) var(--space-lg);
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color 0.15s, border-color 0.15s;
    cursor: pointer;
}

.tab-nav__item:hover {
    color: var(--text-primary);
}

.tab-nav__item--active {
    color: var(--accent);
    border-bottom-color: var(--accent-bright);
}

/* ==========================================================================
   6. CARDS (KPI SUMMARY)
   ========================================================================== */

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.card {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.15s;
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card__label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: var(--space-xs);
}

.card__value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.card__icon {
    width: 36px;
    height: 36px;
    margin-bottom: var(--space-sm);
    object-fit: contain;
}

/* ==========================================================================
   7. FILTER BAR
   ========================================================================== */

.filter-bar {
    display: flex;
    gap: var(--space-md);
    align-items: center;
    margin-bottom: var(--space-lg);
    flex-wrap: wrap;
}

.filter-bar__search {
    flex: 1;
    min-width: 200px;
    padding: var(--space-sm) var(--space-md);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-family: var(--font-family);
    font-size: 0.875rem;
    outline: none;
    transition: border-color 0.15s;
}

.filter-bar__search::placeholder {
    color: var(--text-secondary);
}

.filter-bar__search:focus {
    border-color: var(--accent);
}

.filter-bar__btn {
    padding: var(--space-sm) var(--space-lg);
    background: var(--accent);
    color: var(--white);
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-family);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s;
}

.filter-bar__btn:hover {
    background: var(--aqua-dark);
}

/* Query Panel */
.query-panel {
    margin-bottom: var(--space-md);
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.query-panel__main {
    padding: var(--space-md);
}

.query-panel__expand {
    border-top: 1px solid var(--border);
}

.query-panel__toggle {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    background: none;
    border: none;
    font-family: var(--font-family);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    text-align: left;
    transition: color 0.15s;
}

.query-panel__toggle:hover {
    color: var(--text-primary);
}

.query-panel__arrow {
    font-size: 0.5rem;
    transition: transform 0.2s;
}

.query-panel__advanced {
    padding: var(--space-sm) var(--space-md) var(--space-md);
}

.query-panel__row {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.query-panel__field {
    flex: 1;
    min-width: 100px;
    max-width: 180px;
    padding: var(--space-sm) var(--space-sm);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-family: var(--font-family);
    font-size: 0.8125rem;
    outline: none;
    transition: border-color 0.15s;
}

.query-panel__field::placeholder {
    color: var(--text-secondary);
}

.query-panel__field:focus {
    border-color: var(--accent);
}

.query-panel__select {
    padding: var(--space-sm) var(--space-sm);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-family: var(--font-family);
    font-size: 0.8125rem;
    color: var(--text-primary);
    background: var(--bg-primary);
    outline: none;
    cursor: pointer;
    transition: border-color 0.15s;
}

.query-panel__select:focus {
    border-color: var(--accent);
}

.query-panel__label {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    font-weight: 500;
    white-space: nowrap;
}

.query-panel__date {
    padding: var(--space-sm) var(--space-sm);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-family: var(--font-family);
    font-size: 0.875rem;
    outline: none;
    transition: border-color 0.15s;
    color: var(--text-primary);
    background: var(--bg-primary);
}

.query-panel__date:focus {
    border-color: var(--accent);
}

.query-panel__divider {
    width: 1px;
    height: 24px;
    background: var(--border);
    margin: 0 var(--space-xs);
}

.query-panel__search {
    flex: 1;
    min-width: 180px;
    padding: var(--space-sm) var(--space-md);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-family: var(--font-family);
    font-size: 0.875rem;
    outline: none;
    transition: border-color 0.15s;
}

.query-panel__search::placeholder {
    color: var(--text-secondary);
}

.query-panel__search:focus {
    border-color: var(--accent);
}

.query-panel__search--wide {
    min-width: 350px;
}

.filter-bar__btn--secondary {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.filter-bar__btn--secondary:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

/* ==========================================================================
   8. TABLES
   ========================================================================== */

.table-container {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid var(--border);
}

.table-header__title {
    font-size: 1rem;
    font-weight: 600;
}

.table-header__count {
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.table-scroll-top {
    overflow-x: auto;
    overflow-y: hidden;
    height: 12px;
}

.table-scroll-top__spacer {
    height: 1px;
}

.table-scroll-wrapper {
    overflow-x: auto;
    overflow-y: auto;
    max-height: calc(100vh - 280px);
}

/* Scrollbar styling */
.table-scroll-top,
.table-scroll-wrapper {
    scrollbar-color: var(--gray-200) var(--gray-50);
}

.table-scroll-top::-webkit-scrollbar,
.table-scroll-wrapper::-webkit-scrollbar {
    height: 10px;
}

.table-scroll-top::-webkit-scrollbar-track,
.table-scroll-wrapper::-webkit-scrollbar-track {
    background: var(--gray-50);
}

.table-scroll-top::-webkit-scrollbar-thumb,
.table-scroll-wrapper::-webkit-scrollbar-thumb {
    background: var(--gray-200);
    border-radius: 5px;
}

.table-scroll-top::-webkit-scrollbar-thumb:hover,
.table-scroll-wrapper::-webkit-scrollbar-thumb:hover {
    background: var(--gray-400);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.data-table thead {
    position: sticky;
    top: 0;
    z-index: 10;
}

.data-table th {
    text-align: left;
    padding: var(--space-sm) var(--space-lg);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
    cursor: pointer;
    user-select: none;
}

.data-table th:hover {
    color: var(--text-primary);
}

.data-table td {
    padding: var(--space-sm) var(--space-lg);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.data-table tbody tr {
    transition: background-color 0.15s;
}

.data-table tbody tr:hover {
    background: var(--bg-secondary);
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: var(--space-2xl);
    color: var(--text-secondary);
}

.empty-state__message {
    font-size: 1rem;
    margin-top: var(--space-sm);
}

/* ==========================================================================
   9. EXPANDABLE CELLS
   ========================================================================== */

.expandable-cell {
    cursor: pointer;
    max-width: 220px;
    white-space: normal;
    word-break: break-word;
}

.expandable-cell .cell-full {
    display: none;
}

.expandable-cell.expanded .cell-truncated {
    display: none;
}

.expandable-cell.expanded .cell-full {
    display: block;
    font-size: 0.75rem;
    line-height: 1.4;
    white-space: pre-wrap;
    max-width: 350px;
    max-height: 200px;
    overflow-y: auto;
}

.expandable-cell .cell-truncated {
    color: var(--text-primary);
    font-size: 0.75rem;
}

.expandable-cell:hover .cell-truncated {
    color: var(--accent);
}

/* ==========================================================================
   10. COLUMN FILTERS
   ========================================================================== */

.data-table__filter-row th {
    background: var(--bg-primary);
    padding: var(--space-xs) var(--space-sm);
    border-bottom: 2px solid var(--border);
}

.col-filter-wrap {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
    position: relative;
}

.col-filter-wrap .col-filter-input {
    flex: 1;
    min-width: 0;
}

.col-filter-input {
    width: 100%;
    padding: 3px 6px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font-family);
    font-size: 0.75rem;
    outline: none;
    transition: border-color 0.15s;
    box-sizing: border-box;
}

.col-filter-input::placeholder {
    color: var(--gray-200);
}

.col-filter-input:focus {
    border-color: var(--accent);
}

.col-filter-input--active {
    border-color: var(--accent);
    background: rgba(0, 178, 164, 0.06);
}

.col-filter-select {
    padding: 3px 4px;
    font-family: var(--font-family);
    font-size: 0.6875rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    background: var(--bg-primary);
    cursor: pointer;
    outline: none;
    transition: border-color 0.15s, background 0.15s;
    width: 100%;
}

.col-filter-select--active {
    border-color: var(--accent);
    background: rgba(0, 178, 164, 0.06);
    color: var(--accent);
}

.col-filter-select:focus {
    border-color: var(--accent);
}

.col-filter-select option {
    background: var(--bg-primary);
}

/* Multi-select column filter */
.col-multiselect-btn {
    width: 100%;
    padding: 3px 6px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font-family);
    font-size: 0.6875rem;
    color: var(--text-secondary);
    background: var(--bg-primary);
    cursor: pointer;
    text-align: left;
    outline: none;
    transition: border-color 0.15s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.col-multiselect-btn:hover {
    border-color: var(--gray-400);
}

.col-multiselect-btn--active {
    border-color: var(--accent);
    background: rgba(0, 178, 164, 0.06);
    color: var(--accent);
}

.col-multiselect-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 2px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: var(--space-xs);
    z-index: 60;
    min-width: 140px;
    max-height: 250px;
    overflow-y: auto;
}

.col-multiselect-dropdown.open {
    display: block;
}

.col-multiselect-item {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 3px var(--space-xs);
    font-size: 0.75rem;
    font-weight: 400;
    cursor: pointer;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    color: var(--text-primary);
}

.col-multiselect-item:hover {
    background: var(--bg-secondary);
}

.col-multiselect-item input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    min-width: 14px;
    border: 1.5px solid var(--gray-200);
    border-radius: 3px;
    background: var(--bg-primary);
    margin: 0;
    cursor: pointer;
    transition: background 0.1s, border-color 0.1s;
}

.col-multiselect-item input[type="checkbox"]:checked {
    background: var(--accent);
    border-color: var(--accent);
}

.col-multiselect-item--all {
    font-weight: 500;
    color: var(--text-secondary);
}

.col-multiselect-item--empty {
    color: var(--text-secondary);
    font-style: italic;
}

/* Empty toggle for text columns */
.col-empty-toggle {
    width: 14px;
    height: 14px;
    min-width: 14px;
    border: 1.5px solid var(--border);
    border-radius: 50%;
    background: var(--bg-primary);
    cursor: pointer;
    transition: all 0.15s;
    padding: 0;
    flex-shrink: 0;
}

.col-empty-toggle:hover {
    border-color: var(--gray-400);
    background: var(--gray-50);
}

.col-empty-toggle--active {
    border-color: var(--aqua);
    background: rgba(82, 204, 191, 0.2);
}

.col-multiselect-divider {
    height: 1px;
    background: var(--border);
    margin: var(--space-xs) 0;
}

/* ==========================================================================
   11. COLUMN PICKER
   ========================================================================== */

.column-picker {
    position: relative;
}

.column-picker__dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: var(--space-xs);
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: var(--space-sm);
    z-index: 50;
    min-width: 200px;
    max-height: 300px;
    overflow-y: auto;
}

.column-picker__dropdown.open {
    display: block;
}

.column-picker__item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-xs) var(--space-sm);
    font-size: 0.8125rem;
    cursor: pointer;
    border-radius: var(--radius-sm);
    white-space: nowrap;
}

.column-picker__item:hover {
    background: var(--bg-secondary);
}

.column-picker__item input[type="checkbox"] {
    accent-color: var(--accent);
}

/* ==========================================================================
   12. UTILITIES
   ========================================================================== */

.text-muted { color: var(--text-secondary); }
.text-accent { color: var(--accent); }
.text-sm { font-size: 0.8125rem; }
.mb-lg { margin-bottom: var(--space-lg); }

/* Modal */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(25, 25, 31, 0.5);
    z-index: 200;
    align-items: center;
    justify-content: center;
}

.modal-overlay.open {
    display: flex;
}

.modal {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 480px;
    margin: var(--space-xl);
}

.modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-lg);
    border-bottom: 1px solid var(--border);
}

.modal__title {
    font-size: 1rem;
    font-weight: 600;
}

.modal__close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

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

.modal__body {
    padding: var(--space-lg);
}

.modal__textarea {
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-family: var(--font-family);
    font-size: 0.875rem;
    resize: vertical;
    outline: none;
    transition: border-color 0.15s;
}

.modal__textarea:focus {
    border-color: var(--accent);
}

.modal__footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-sm) var(--space-lg) var(--space-lg);
}

.modal__status {
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

/* Limit Banner */
.limit-banner {
    padding: var(--space-sm) var(--space-md);
    margin-bottom: var(--space-md);
    background: rgba(214, 224, 23, 0.12);
    border: 1px solid var(--citron-dark);
    border-radius: var(--radius-md);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--citron-dark);
}

/* Sort indicators */
.sort-asc::after { content: " \2191"; }
.sort-desc::after { content: " \2193"; }

/* Loading spinner */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .main-content {
        padding: var(--space-md);
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .tab-nav {
        overflow-x: auto;
    }

    .app-header__title {
        display: none;
    }

    .sidebar {
        width: 48px;
        min-width: 48px;
    }

    .sidebar__label {
        display: none;
    }

    .sidebar__item {
        width: 40px;
    }

    .sidebar__icon {
        width: 28px;
        height: 28px;
    }
}
