/* ============================================================
   PLANLI – Global Stylesheet
   ============================================================ */

/* ── Design tokens ─────────────────────────────────────────── */
:root {
    /* backgrounds */
    --bg:             #0f1014;
    --bg-sidebar:     #13141a;
    --surface:        #1a1b26;
    --surface-hover:  #1e2030;
    --surface-input:  #12131c;

    /* borders */
    --border:         #252636;
    --border-subtle:  #1c1d2a;

    /* accent (sky-blue from designs) */
    --accent:         #4db8ff;
    --accent-hover:   #72caff;
    --accent-dim:     rgba(77, 184, 255, 0.12);
    --accent-dim2:    rgba(77, 184, 255, 0.20);

    /* text */
    --text:           #f0f2f5;
    --text-secondary: #c4cad6;
    --text-muted:     #8892a4;
    --text-faint:     #4a5568;

    /* status / priority */
    --p-today:        #ef4444;
    --p-today-dim:    rgba(239,  68,  68, 0.15);
    --p-week:         #f97316;
    --p-week-dim:     rgba(249, 115,  22, 0.15);
    --p-month:        #eab308;
    --p-month-dim:    rgba(234, 179,   8, 0.15);
    --p-anytime:      #22c55e;
    --p-anytime-dim:  rgba( 34, 197,  94, 0.15);

    /* misc */
    --radius-sm:  6px;
    --radius:     10px;
    --radius-lg:  14px;
    --shadow:     0 4px 24px rgba(0, 0, 0, 0.4);
}

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

html, body {
    height: 100%;
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

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

h1 { font-size: 1.75rem; font-weight: 700; color: var(--text); }
h2 { font-size: 1.25rem; font-weight: 600; color: var(--text); }
h3 { font-size: 1rem;    font-weight: 600; color: var(--text); }

h1:focus { outline: none; }

/* ── App shell ──────────────────────────────────────────────── */
.app-shell {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* ── Sidebar ────────────────────────────────────────────────── */
.sidebar {
    width: 220px;
    min-width: 220px;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar-header {
    display: flex;
    align-items: center;
    padding: 18px 16px 14px;
    border-bottom: 1px solid var(--border-subtle);
}

/* SVG wordmark — invert dark ink to white so it shows on the dark sidebar */
.sidebar-logo {
    height: 28px;
    width: auto;
    filter: brightness(0) invert(1);
    display: block;
}

.sidebar-section {
    padding: 16px 10px 4px;
}

.sidebar-section-label {
    font-size: 10.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.9px;
    color: var(--text-faint);
    padding: 0 8px 6px;
    display: block;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 7px 10px;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 13.5px;
    font-weight: 500;
    transition: background 0.15s, color 0.15s;
    cursor: pointer;
}

.nav-link:hover {
    background: var(--surface-hover);
    color: var(--text);
}

.nav-link.active {
    background: var(--accent-dim);
    color: var(--accent);
}

.nav-link .nav-icon {
    width: 17px;
    text-align: center;
    font-size: 15px;
    flex-shrink: 0;
}

.board-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.sidebar-boards-section {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar-boards-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px 8px;
}

.sidebar-hint {
    display: block;
    font-size: 12px;
    color: var(--text-faint);
    padding: 4px 10px;
    font-style: italic;
}

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

.sidebar-footer {
    margin-top: auto;
    border-top: 1px solid var(--border-subtle);
    padding: 12px 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-user-row {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 0 2px;
    overflow: hidden;
}

.sidebar-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent-dim2);
    border: 1px solid var(--accent);
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sidebar-user-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-signout {
    background: none;
    border: none;
    color: var(--text-faint);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    padding: 4px 2px;
    transition: color 0.15s;
    letter-spacing: 0.2px;
}

.sidebar-signout:hover { color: var(--p-today); }

/* ── Main content ───────────────────────────────────────────── */
.main-content {
    flex: 1;
    overflow-y: auto;
    padding: 28px 32px;
    background: var(--bg);
}

/* ── Cards ──────────────────────────────────────────────────── */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
}

.card-sm {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 16px;
}

/* ── Stat cards ─────────────────────────────────────────────── */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 14px;
    margin-bottom: 28px;
}

.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 20px;
}

.stat-label {
    font-size: 10.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}

.stat-value.danger { color: var(--p-today); }

/* ── Board cards ────────────────────────────────────────────── */
.board-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.board-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 20px 16px;
    cursor: pointer;
    transition: border-color 0.2s, transform 0.15s;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: block;
    color: var(--text);
}

.board-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--accent);
}

.board-card:hover {
    border-color: var(--border);
    transform: translateY(-2px);
    background: var(--surface-hover);
    color: var(--text);
}

.board-card-name {
    font-size: 14.5px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 2px;
}

.board-card-meta {
    font-size: 11.5px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 14px;
}

.board-card-new {
    background: var(--surface);
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    padding: 18px 20px 16px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 130px;
    color: var(--text-muted);
    text-decoration: none;
}

.board-card-new:hover {
    border-color: var(--accent);
    background: var(--accent-dim);
    color: var(--accent);
}

.board-card-new .plus-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid currentColor;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    line-height: 1;
}

/* ── Progress bar ───────────────────────────────────────────── */
.progress-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.progress-track {
    height: 4px;
    background: var(--border);
    border-radius: 99px;
    overflow: hidden;
    margin-bottom: 12px;
}

.progress-fill {
    height: 100%;
    background: var(--accent);
    border-radius: 99px;
    transition: width 0.3s ease;
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: background 0.15s, opacity 0.15s;
    text-decoration: none;
    white-space: nowrap;
}

.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-primary {
    background: var(--accent);
    color: #0f1014;
    font-weight: 600;
}
.btn-primary:hover { background: var(--accent-hover); color: #0f1014; }

.btn-secondary {
    background: var(--surface-hover);
    color: var(--text);
    border: 1px solid var(--border);
}
.btn-secondary:hover { background: var(--border); }

.btn-ghost {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--surface-hover); color: var(--text); }

.btn-danger {
    background: var(--p-today-dim);
    color: var(--p-today);
    border: 1px solid var(--p-today);
}
.btn-danger:hover { background: var(--p-today); color: #fff; }

.btn-full { width: 100%; }

.btn-lg { padding: 12px 24px; font-size: 15px; border-radius: var(--radius); }

/* ── Form inputs ────────────────────────────────────────────── */
.form-group { margin-bottom: 16px; }

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.form-input {
    width: 100%;
    background: var(--surface-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 14px;
    padding: 10px 14px;
    outline: none;
    transition: border-color 0.15s;
}

.form-input::placeholder { color: var(--text-faint); }
.form-input:focus { border-color: var(--accent); }

.form-input-icon {
    position: relative;
}
.form-input-icon .icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-faint);
    pointer-events: none;
    font-size: 15px;
}
.form-input-icon .form-input { padding-left: 36px; }

.form-select {
    width: 100%;
    background: var(--surface-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 14px;
    padding: 10px 14px;
    outline: none;
    cursor: pointer;
    transition: border-color 0.15s;
    appearance: none;
}
.form-select:focus { border-color: var(--accent); }

.form-error {
    font-size: 12.5px;
    color: var(--p-today);
    margin-top: 8px;
    padding: 8px 12px;
    background: var(--p-today-dim);
    border-radius: var(--radius-sm);
    border: 1px solid var(--p-today);
}

/* ── Priority badges ────────────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 99px;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.badge-today   { background: var(--p-today-dim);   color: var(--p-today);   }
.badge-week    { background: var(--p-week-dim);    color: var(--p-week);    }
.badge-month   { background: var(--p-month-dim);   color: var(--p-month);   }
.badge-anytime { background: var(--p-anytime-dim); color: var(--p-anytime); }

/* ── Page header ────────────────────────────────────────────── */
.page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 24px;
    gap: 16px;
    flex-wrap: wrap;
}

.page-header-left { display: flex; flex-direction: column; gap: 4px; }
.page-header-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.page-tag {
    display: inline-block;
    background: var(--accent-dim);
    color: var(--accent);
    font-size: 11.5px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 99px;
    margin-bottom: 4px;
}

.page-title { font-size: 1.6rem; font-weight: 700; color: var(--text); line-height: 1.2; }
.page-subtitle { font-size: 13.5px; color: var(--text-muted); }

/* ── Section header ─────────────────────────────────────────── */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.section-title {
    font-size: 14.5px;
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.count-chip {
    background: var(--surface-hover);
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 600;
    padding: 1px 7px;
    border-radius: 99px;
}

/* ── Kanban ─────────────────────────────────────────────────── */
.kanban-board {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    align-items: start;
}

.kanban-column {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.kanban-col-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-subtle);
}

.kanban-col-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: var(--text-muted);
}

/* ── Task cards ─────────────────────────────────────────────── */
.task-card {
    background: var(--bg-sidebar);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    cursor: pointer;
    transition: border-color 0.15s;
}

.task-card:hover { border-color: var(--accent); }

.task-card-title {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text);
    margin: 8px 0 10px;
    line-height: 1.4;
}

.task-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11.5px;
    color: var(--text-muted);
}

.add-task-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px;
    border: 1px dashed var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 13px;
    cursor: pointer;
    background: none;
    width: 100%;
    transition: border-color 0.15s, color 0.15s;
}
.add-task-btn:hover { border-color: var(--accent); color: var(--accent); }

/* ── Weekly timeline ────────────────────────────────────────── */
.timeline {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.day-cell {
    flex: 1;
    min-width: 70px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 8px;
    text-align: center;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    user-select: none;
}

.day-cell:hover { background: var(--surface-hover); }

.day-cell.today {
    background: var(--accent);
    border-color: var(--accent);
    color: #0f1014;
}

.day-cell .day-name {
    font-size: 10.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: inherit;
    opacity: 0.7;
}

.day-cell .day-num {
    font-size: 22px;
    font-weight: 700;
    color: inherit;
    line-height: 1.2;
}

/* ── Login page ─────────────────────────────────────────────── */
.login-page {
    min-height: 100vh;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.login-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
}

/* Branded wordmark on dark bg — sized for the login splash */
.login-logo-img {
    width: 220px;
    height: auto;
    border-radius: 12px;
    display: block;
}

.login-tagline {
    font-size: 13.5px;
    color: var(--text-muted);
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.tab-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid var(--border);
}

.tab-btn {
    padding: 14px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: color 0.15s;
}

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

.login-form { padding: 24px; }

.login-form-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

.login-form-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* ── Divider ────────────────────────────────────────────────── */
.divider {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-faint);
    font-size: 12px;
    margin: 16px 0;
}
.divider::before, .divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* ── Breadcrumb ─────────────────────────────────────────────── */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb .sep { color: var(--text-faint); }
.breadcrumb .current { color: var(--text); font-weight: 500; }

/* ── Utility ────────────────────────────────────────────────── */
.flex          { display: flex; }
.flex-col      { display: flex; flex-direction: column; }
.items-center  { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2         { gap: 8px; }
.gap-3         { gap: 12px; }
.gap-4         { gap: 16px; }
.mt-2          { margin-top: 8px; }
.mt-4          { margin-top: 16px; }
.mb-4          { margin-bottom: 16px; }
.mb-6          { margin-bottom: 24px; }
.text-muted    { color: var(--text-muted); }
.text-accent   { color: var(--accent); }
.text-sm       { font-size: 12.5px; }
.fw-600        { font-weight: 600; }

/* ── Blazor framework ───────────────────────────────────────── */
#blazor-error-ui {
    background: #1a1b26;
    border-top: 1px solid var(--p-today);
    color: var(--text);
    bottom: 0; left: 0;
    padding: 0.6rem 1.25rem 0.7rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
    display: none;
}
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: 0.75rem; top: 0.5rem; }

.blazor-error-boundary {
    background: var(--p-today-dim);
    border: 1px solid var(--p-today);
    border-radius: var(--radius);
    padding: 1rem 1.5rem;
    color: var(--p-today);
}
.blazor-error-boundary::after { content: "An error has occurred." }

.loading-progress {
    position: absolute;
    display: block;
    width: 8rem; height: 8rem;
    inset: 20vh 0 auto 0;
    margin: 0 auto;
}
.loading-progress circle {
    fill: none;
    stroke: var(--border);
    stroke-width: 0.6rem;
    transform-origin: 50% 50%;
    transform: rotate(-90deg);
}
.loading-progress circle:last-child {
    stroke: var(--accent);
    stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
    transition: stroke-dasharray 0.05s ease-in-out;
}
.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
    color: var(--text-muted);
}
.loading-progress-text:after { content: var(--blazor-load-percentage-text, "Loading"); }

/* ============================================================
   MOBILE — bottom nav & kanban slider
   ============================================================ */

/* ── Bottom nav: hidden by default (desktop) ─────────────────── */
.bottom-nav { display: none; }

/* ── Kanban column tabs: hidden by default (desktop) ─────────── */
.kanban-col-tabs {
    display: none;
    margin-bottom: 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.col-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 11px 6px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
    white-space: nowrap;
}

.col-tab.col-tab-active {
    color: var(--text);
    background: var(--surface-hover);
}

.col-tab-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* ── Explicit desktop lock (>768 px) ─────────────────────────── */
/* Guarantees mobile-only elements are never visible on larger screens,
   regardless of cascade order or browser quirks. */
@media (min-width: 641px) {
    .bottom-nav      { display: none !important; }
    .kanban-col-tabs { display: none !important; }
    .sidebar         { display: flex !important; }
}

/* ── Mobile breakpoint ────────────────────────────────────────── */
@media (max-width: 640px) {

    /* Shell: stack content above fixed bottom nav */
    .app-shell {
        flex-direction: column;
    }

    /* Hide desktop sidebar */
    .sidebar { display: none; }

    /* Main: full height, pad bottom so content clears the nav */
    .main-content {
        padding: 16px 14px 80px;
    }

    /* ── Bottom nav ──────────────────────────────────────────── */
    .bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0; left: 0; right: 0;
        height: 62px;
        background: var(--bg-sidebar);
        border-top: 1px solid var(--border-subtle);
        align-items: center;
        justify-content: space-around;
        z-index: 200;
        padding: 0 8px;
        /* safe area for iOS home indicator */
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }

    .bottom-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 3px;
        color: var(--text-muted);
        background: none;
        border: none;
        font-size: 11px;
        cursor: pointer;
        padding: 6px 20px;
        border-radius: var(--radius-sm);
        text-decoration: none;
        transition: color 0.15s;
        min-width: 64px;
    }

    .bottom-nav-item.active { color: var(--accent); }
    .bottom-nav-item:hover  { color: var(--text); }

    .bottom-nav-icon {
        font-size: 20px;
        line-height: 1;
    }

    .bottom-nav-label {
        font-size: 10px;
        font-weight: 500;
        letter-spacing: 0.3px;
    }

    .bottom-nav-brand {
        display: flex;
        align-items: center;
        justify-content: center;
        pointer-events: none;
        user-select: none;
    }

    .bottom-nav-logo {
        height: 22px;
        width: auto;
        display: block;
        /* dark-ink SVG on a light mobile nav background — no invert needed */
    }

    /* ── Kanban slider ───────────────────────────────────────── */
    .kanban-col-tabs { display: flex; }

    .kanban-board { display: block; }   /* override 3-col grid */

    .kanban-column { display: none; }   /* hide all by default  */

    .kanban-column.col-active { display: flex; } /* show active only */

    /* ── Page layout ─────────────────────────────────────────── */
    .page-header {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 16px;
    }

    .page-title { font-size: 1.3rem; }

    .page-header-right { width: 100%; }
    .page-header-right .btn { width: 100%; }

    /* ── Board grid: single column ───────────────────────────── */
    .board-grid {
        grid-template-columns: 1fr;
    }

    /* ── Stat grid: 2 columns ────────────────────────────────── */
    .stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* ── Backlog ─────────────────────────────────────────────── */
    .backlog-section { margin-top: 20px; }

    .backlog-item { gap: 8px; }

    /* ── Timeline: horizontal scroll ────────────────────────── */
    .timeline {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* ── Breadcrumb: hide on mobile ──────────────────────────── */
    .breadcrumb { display: none; }

    /* ── Login / auth pages ──────────────────────────────────── */
    .login-page  { padding: 16px; }
    .login-form  { padding: 18px; }
}
