/* ─── Variables ─────────────────────────────────── */
:root {
    --navy: #1a3a6b;
    --navy-dark: #122850;
    --navy-light: #2a5298;
    --gold: #c9a84c;
    --gold-light: #e8c96d;
    --gold-pale: #f9f3e3;
    --white: #ffffff;
    --bg: #f7f6f2;
    --bg-2: #f0ede6;
    --border: #e4dfd6;
    --text: #1a1a2e;
    --text-muted: #7a7a8a;
    --text-light: #a8a8b8;
    --sidebar-w: 280px;
    --header-h: 60px;
    --radius: 10px;
    --radius-lg: 16px;
    --shadow: 0 2px 12px rgba(26, 58, 107, 0.08);
    --shadow-lg: 0 8px 32px rgba(26, 58, 107, 0.14);
    --transition: 0.2s ease;
}

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

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

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

a {
    color: var(--navy);
    text-decoration: none;
}

a:hover {
    color: var(--gold);
}

/* ─── Login Page ─────────────────────────────────── */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: stretch;
}

.login-wrap {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

.login-left {
    width: 55%;
    background: var(--navy);
    background-image:
        radial-gradient(circle at 20% 50%, rgba(201, 168, 76, 0.15) 0%, transparent 60%),
        radial-gradient(circle at 80% 20%, rgba(42, 82, 152, 0.4) 0%, transparent 50%);
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.login-left::after {
    content: '';
    position: absolute;
    bottom: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    border: 1px solid rgba(201, 168, 76, 0.2);
    border-radius: 50%;
    pointer-events: none;
}

.login-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-mark {
    width: 32px;
    height: 32px;
    background: var(--gold);
    border-radius: 8px;
    position: relative;
}

.brand-mark::after {
    content: '';
    position: absolute;
    inset: 4px;
    background: var(--navy);
    border-radius: 4px;
}

.brand-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--white);
    letter-spacing: 0.02em;
}

.login-hero h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3.5rem;
    font-weight: 600;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 20px;
}

.login-hero p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 1rem;
    max-width: 380px;
    line-height: 1.7;
}

.login-stats {
    display: flex;
    gap: 40px;
}

.stat-num {
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 600;
    color: var(--gold);
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 2px;
}

.login-right {
    width: 45%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
    background: var(--white);
}

.login-form-wrap {
    width: 100%;
    max-width: 360px;
}

.login-form-wrap h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 6px;
}

.login-sub {
    color: var(--text-muted);
    margin-bottom: 32px;
    font-size: 0.9rem;
}

.login-error {
    background: #fff0f0;
    border: 1px solid #ffcccc;
    color: #cc3333;
    padding: 10px 14px;
    border-radius: var(--radius);
    font-size: 0.85rem;
    margin-bottom: 20px;
}

.login-form .form-group {
    margin-bottom: 20px;
}

.login-form label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--navy);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.login-form input {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    color: var(--text);
    background: var(--bg);
    transition: border-color var(--transition);
    outline: none;
}

.login-form input:focus {
    border-color: var(--navy);
    background: var(--white);
}

/* ─── Buttons ─────────────────────────────────────── */
.btn-primary {
    background: var(--navy);
    color: var(--white);
    border: none;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: background var(--transition), transform var(--transition);
}

.btn-primary:hover {
    background: var(--navy-dark);
    transform: translateY(-1px);
}

.btn-full {
    width: 100%;
}

.btn-gold {
    background: var(--gold);
    color: var(--navy);
    border: none;
    padding: 10px 20px;
    border-radius: var(--radius);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background var(--transition);
}

.btn-gold:hover {
    background: var(--gold-light);
}

.btn-outline {
    background: transparent;
    color: var(--navy);
    border: 1.5px solid var(--border);
    padding: 8px 16px;
    border-radius: var(--radius);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-outline:hover {
    border-color: var(--navy);
    background: var(--bg);
}

/* ─── App Layout ──────────────────────────────────── */
.app-layout {
    display: flex;
    min-height: 100vh;
}

/* ─── Sidebar ─────────────────────────────────────── */
.sidebar {
    width: var(--sidebar-w);
    background: var(--white);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 100;
    overflow: hidden;
}

.sidebar-brand {
    padding: 20px 20px 16px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.sidebar-brand .brand-mark {
    width: 28px;
    height: 28px;
}

.sidebar-brand .brand-name {
    color: var(--navy);
    font-size: 1.1rem;
}

.sidebar-nav {
    padding: 12px 12px 0;
    flex-shrink: 0;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius);
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--transition);
    margin-bottom: 2px;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background: var(--bg);
    color: var(--navy);
}

.sidebar-nav a.active {
    background: var(--gold-pale);
    color: var(--navy);
}

.sidebar-nav .nav-icon {
    width: 18px;
    text-align: center;
    font-size: 1rem;
}

.sidebar-section-title {
    padding: 16px 16px 6px;
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-light);
    flex-shrink: 0;
}

.sidebar-sessions {
    flex: 1;
    overflow-y: auto;
    padding: 0 12px 12px;
}

.sidebar-sessions::-webkit-scrollbar {
    width: 4px;
}

.sidebar-sessions::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-sessions::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 2px;
}

.session-item {
    display: block;
    padding: 10px 12px;
    border-radius: var(--radius);
    margin-bottom: 2px;
    cursor: pointer;
    transition: all var(--transition);
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

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

.session-item.active {
    background: var(--gold-pale);
}

.session-title {
    font-size: 0.85rem;
    color: var(--text);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.session-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.sidebar-new-chat {
    padding: 12px;
    border-top: 1px solid var(--border);
    flex-shrink: 0;
}

.btn-new-chat {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px;
    background: var(--navy);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background var(--transition);
}

.btn-new-chat:hover {
    background: var(--navy-dark);
}

/* ─── Header ──────────────────────────────────────── */
.app-header {
    position: fixed;
    top: 0;
    left: var(--sidebar-w);
    right: 0;
    height: var(--header-h);
    background: var(--white);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    z-index: 90;
}

.header-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--navy);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-badge {
    background: var(--gold-pale);
    color: var(--navy);
    border: 1px solid var(--gold);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* ─── Main Content ────────────────────────────────── */
.app-main {
    margin-left: var(--sidebar-w);
    margin-top: var(--header-h);
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - var(--header-h));
}

/* ─── Chat Interface ──────────────────────────────── */
.chat-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: calc(100vh - var(--header-h));
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

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

.chat-welcome {
    text-align: center;
    padding: 60px 20px;
}

.chat-welcome-icon {
    width: 64px;
    height: 64px;
    background: var(--gold-pale);
    border: 2px solid var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
}

.chat-welcome h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    color: var(--navy);
    margin-bottom: 10px;
}

.chat-welcome p {
    color: var(--text-muted);
    max-width: 420px;
    margin: 0 auto 32px;
    font-size: 0.95rem;
}

.chat-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.suggestion-chip {
    background: var(--white);
    border: 1.5px solid var(--border);
    color: var(--text);
    padding: 10px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--transition);
    font-family: 'DM Sans', sans-serif;
}

.suggestion-chip:hover {
    border-color: var(--gold);
    background: var(--gold-pale);
    color: var(--navy);
}

/* ─── Message Bubbles ─────────────────────────────── */
.message {
    display: flex;
    gap: 12px;
    max-width: 820px;
    animation: fadeUp 0.3s ease;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

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

.message.user {
    flex-direction: row-reverse;
    margin-left: auto;
}

.message-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.message.ai .message-avatar {
    background: var(--navy);
    color: var(--white);
}

.message.user .message-avatar {
    background: var(--gold);
    color: var(--navy);
}

.message-content {
    flex: 1;
}

.message-bubble {
    padding: 14px 18px;
    border-radius: var(--radius-lg);
    font-size: 0.92rem;
    line-height: 1.65;
}

.message.ai .message-bubble {
    background: var(--white);
    border: 1px solid var(--border);
    border-top-left-radius: 4px;
    color: var(--text);
    box-shadow: var(--shadow);
}

.message.user .message-bubble {
    background: var(--navy);
    color: var(--white);
    border-top-right-radius: 4px;
}

.message-time {
    font-size: 0.72rem;
    color: var(--text-light);
    margin-top: 5px;
    padding: 0 4px;
}

.message.user .message-time {
    text-align: right;
}

/* ─── Candidate Cards in Chat ─────────────────────── */
.chat-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
}

.chat-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 16px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    transition: border-color var(--transition);
}

.chat-card:hover {
    border-color: var(--gold);
}

.chat-card-rank {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--gold);
    min-width: 32px;
    line-height: 1;
    padding-top: 2px;
}

.chat-card-body {
    flex: 1;
}

.chat-card-name {
    font-weight: 500;
    color: var(--navy);
    font-size: 0.92rem;
    margin-bottom: 2px;
}

.chat-card-role {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.chat-card-reason {
    font-size: 0.82rem;
    color: var(--text);
    line-height: 1.5;
}

.chat-card-score {
    text-align: center;
    min-width: 44px;
}

.score-num {
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--navy);
    line-height: 1;
}

.score-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.chat-card-link {
    display: inline-block;
    margin-top: 8px;
    font-size: 0.78rem;
    color: var(--gold);
    font-weight: 500;
}

.chat-card-link:hover {
    color: var(--navy);
}

/* ─── Processing Steps ────────────────────────────── */
.processing-steps {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.processing-step {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--text-muted);
    padding: 8px 12px;
    background: var(--bg);
    border-radius: var(--radius);
    transition: all var(--transition);
}

.processing-step.done {
    color: var(--navy);
    background: var(--gold-pale);
}

.processing-step.active {
    color: var(--navy);
    background: var(--bg-2);
}

.step-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.processing-step.done .step-icon {
    background: var(--gold);
    color: var(--white);
}

.processing-step.active .step-icon {
    background: var(--navy);
    color: var(--white);
}

.processing-step .step-spinner {
    width: 12px;
    height: 12px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* ─── Chat Input ──────────────────────────────────── */
.chat-input-wrap {
    padding: 16px 24px 24px;
    background: var(--white);
    border-top: 1px solid var(--border);
}

.chat-input-inner {
    display: flex;
    gap: 10px;
    align-items: flex-end;
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 10px 14px;
    transition: border-color var(--transition);
}

.chat-input-inner:focus-within {
    border-color: var(--navy);
    background: var(--white);
}

.chat-input-inner textarea {
    flex: 1;
    border: none;
    background: none;
    outline: none;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.92rem;
    color: var(--text);
    resize: none;
    line-height: 1.5;
    max-height: 140px;
    min-height: 24px;
}

.chat-input-inner textarea::placeholder {
    color: var(--text-light);
}

.chat-send-btn {
    width: 36px;
    height: 36px;
    background: var(--navy);
    border: none;
    border-radius: 8px;
    color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background var(--transition);
}

.chat-send-btn:hover {
    background: var(--gold);
    color: var(--navy);
}

.chat-send-btn:disabled {
    background: var(--border);
    cursor: not-allowed;
}

.chat-input-hint {
    font-size: 0.72rem;
    color: var(--text-light);
    text-align: center;
    margin-top: 8px;
}

/* ─── Mandate List Page ───────────────────────────── */
.page-wrap {
    padding: 32px;
    max-width: 1100px;
}

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

.page-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 600;
    color: var(--navy);
}

.mandate-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
}

.mandate-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    cursor: pointer;
    transition: all var(--transition);
    display: block;
    color: var(--text);
}

.mandate-card:hover {
    border-color: var(--gold);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
    color: var(--text);
}

.mandate-card-title {
    font-weight: 600;
    color: var(--navy);
    font-size: 1rem;
    margin-bottom: 4px;
}

.mandate-card-client {
    font-size: 0.85rem;
    color: var(--gold);
    font-weight: 500;
    margin-bottom: 10px;
}

.mandate-card-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    gap: 12px;
}

.mandate-card-tag {
    background: var(--bg);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
}

/* ─── Mandate Record Page ─────────────────────────── */
.mandate-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 20px;
    padding: 24px;
    align-items: start;
}

.mandate-panel {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.mandate-panel-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mandate-panel-title {
    font-weight: 600;
    color: var(--navy);
    font-size: 0.95rem;
}

.mandate-panel-body {
    padding: 20px;
}

/* ─── Result Cards ────────────────────────────────── */
.result-card {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

.result-card:last-child {
    border-bottom: none;
}

.result-rank {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--gold);
    min-width: 28px;
}

.result-info {
    flex: 1;
}

.result-name {
    font-weight: 600;
    color: var(--navy);
    font-size: 0.92rem;
    margin-bottom: 2px;
}

.result-role {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.result-reason {
    font-size: 0.82rem;
    color: var(--text);
    line-height: 1.55;
}

.result-score {
    text-align: center;
    min-width: 44px;
}

.result-score .score-num {
    font-size: 1.5rem;
}

/* ─── Benchmark Profiles ──────────────────────────── */
.bench-profile {
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.bench-profile:last-of-type {
    border-bottom: none;
}

.bench-name {
    font-weight: 600;
    color: var(--navy);
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.bench-title {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.bench-detail {
    font-size: 0.78rem;
    color: var(--text);
    margin-bottom: 3px;
}

.bench-dna {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

.bench-dna-label {
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-light);
    margin-bottom: 8px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag {
    background: var(--bg);
    color: var(--navy);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.tag-gold {
    background: var(--gold-pale);
    color: var(--navy);
    border: 1px solid rgba(201, 168, 76, 0.3);
}

.tag-navy {
    background: var(--navy);
    color: var(--white);
}

/* ─── Typing Indicator ────────────────────────────── */
.typing-indicator {
    display: flex;
    gap: 4px;
    align-items: center;
    padding: 14px 18px;
}

.typing-dot {
    width: 7px;
    height: 7px;
    background: var(--text-muted);
    border-radius: 50%;
    animation: typingBounce 1.2s infinite;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingBounce {

    0%,
    60%,
    100% {
        transform: translateY(0);
        opacity: 0.4;
    }

    30% {
        transform: translateY(-6px);
        opacity: 1;
    }
}

/* ─── Utilities ───────────────────────────────────── */
.text-gold {
    color: var(--gold);
}

.text-navy {
    color: var(--navy);
}

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

.mt-12 {
    margin-top: 12px;
}

.mb-12 {
    margin-bottom: 12px;
}

/* ─── Mobile ──────────────────────────────────────── */
@media (max-width: 768px) {
    .login-left {
        display: none;
    }

    .login-right {
        width: 100%;
        padding: 32px 24px;
    }

    .sidebar {
        transform: translateX(-100%);
        transition: transform var(--transition);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .app-header {
        left: 0;
    }

    .app-main {
        margin-left: 0;
    }

    .mandate-layout {
        grid-template-columns: 1fr;
        padding: 16px;
    }

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

    .chat-messages {
        padding: 16px;
    }

    .chat-input-wrap {
        padding: 12px 16px 20px;
    }

    .page-wrap {
        padding: 16px;
    }

    .mobile-menu-btn {
        display: flex;
    }
}

@media (min-width: 769px) {
    .mobile-menu-btn {
        display: none;
    }

    .sidebar-overlay {
        display: none !important;
    }
}

.mobile-menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--navy);
    font-size: 1.2rem;
}

.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 99;
    display: none;
}

.sidebar-overlay.show {
    display: block;
}

.session-item-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.session-item-wrap .session-item {
    flex: 1;
    padding-right: 28px;
}

.session-delete-btn {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.7rem;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.15s, color 0.15s;
    line-height: 1;
}

.session-item-wrap:hover .session-delete-btn {
    opacity: 1;
}

.session-delete-btn:hover {
    color: #c0392b;
    background: rgba(192, 57, 43, 0.08);
}