:root {
    /* Colors - Pursuit Brand */
    --primary: #3B38D4;
    --primary-ink: #2A28A1;
    --bg: #f5f5f7;
    --panel: #ffffff;
    --panel-2: #f0f1f3;
    --ink: #111827;
    --muted: #6b7280;

    --ink-subtle: rgba(17, 24, 39, 0.72);
    --ink-faint: rgba(17, 24, 39, 0.55);
    --border-strong: rgba(17, 24, 39, 0.16);
    --hover-bg: rgba(17, 24, 39, 0.06);
    --scrollbar-thumb: rgba(17, 24, 39, 0.18);
    --scrollbar-track: rgba(17, 24, 39, 0.06);
    --progress-track: rgba(17, 24, 39, 0.10);
    --pill-bg: rgba(255, 255, 255, 0.75);
    --border: rgba(17, 24, 39, 0.12);
    --danger: #ff3b81;
    --danger-ink: #5a0026;
    --required: #ef4444;
    --recommended: #f59e0b;
    --optional: #9ca3af;
}

body {
    font-family: 'Avenir Next', 'Avenir', 'Century Gothic', 'Futura', -apple-system, BlinkMacSystemFont, 'Trebuchet MS', sans-serif;
    background-color: var(--bg);
    color: var(--ink);
    margin: 0;
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1000;
    background: var(--sidebar-bg);
    border-right: 1px solid var(--sidebar-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
}

.sidebar-top {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 14px 0;
    background: var(--primary);
}

.content {
    margin-left: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width));
    padding: 18px 28px 40px;
    position: relative;
    z-index: 1;
}

.nav-icons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    padding-top: 18px;
}

.icon-btn {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    border: 0;
    background: transparent;
    color: var(--sidebar-icon);
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
    font-size: 18px;
}

.icon-btn[aria-current="page"] {
    background: rgba(63, 68, 245, 0.95);
    color: rgba(255, 255, 255, 0.98);
}

.icon-btn:hover {
    transform: translateY(-1px);
    background: var(--sidebar-icon-hover);
}

.theme-toggle {
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.9);
    color: var(--ink);
    border-radius: 999px;
    padding: 8px 10px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 900;
    font-size: 12px;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
    margin-right: 10px;
}

:root[data-theme="dark"] .theme-toggle {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.92);
}

.theme-toggle:hover {
    transform: translateY(-1px);
}

.theme-toggle:active {
    transform: translateY(0);
}

.theme-toggle-icon {
    font-size: 14px;
    line-height: 1;
}

.icon {
    width: 22px;
    height: 22px;
    display: block;
}

.sidebar-bottom {
    margin-top: auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 12px 0;
}

.icon-divider {
    width: 28px;
    height: 1px;
    background: rgba(255, 255, 255, 0.15);
}

.icon-btn.ghost {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(255, 255, 255, 0.03);
    display: grid;
    place-items: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.topbar {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    box-shadow: var(--shadow-soft);
    position: relative;
    z-index: 5;
}

.topbar-left,
.topbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.topbar-left {
    flex: 1;
}

.topbar-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.topbar-search {
    position: relative;
    width: min(360px, 44vw);
}

.search-input {
    width: 100%;
    height: 36px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--panel-2);
    color: var(--ink);
    padding: 0 12px;
    font-weight: 700;
    font-size: 13px;
    outline: none;
}

.search-input::placeholder {
    color: var(--muted);
    font-weight: 700;
}

.search-input:focus {
    border-color: rgba(63, 68, 245, 0.55);
    box-shadow: 0 0 0 3px rgba(63, 68, 245, 0.16);
}

.search-results {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow-soft);
    padding: 6px;
    z-index: 40;
    max-height: 360px;
    overflow: auto;
}

.search-option {
    width: 100%;
    border: 0;
    background: transparent;
    color: var(--ink);
    border-radius: 12px;
    padding: 10px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    cursor: pointer;
    text-align: left;
}

.search-option:hover,
.search-option[aria-selected="true"] {
    background: var(--hover-bg);
}

.search-option-main {
    min-width: 0;
}

.search-option-title {
    font-weight: 900;
    font-size: 12.5px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-option-meta {
    font-size: 11px;
    color: var(--muted);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-empty {
    padding: 10px 10px;
    color: var(--muted);
    font-weight: 800;
    font-size: 12px;
}

.topbar-title {
    font-size: 18px;
    margin: 0;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.alert-pill {
    background: linear-gradient(90deg, var(--danger), #ff4df0);
    color: #fff;
    border-radius: 999px;
    padding: 6px 10px;
    font-weight: 600;
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.test-pill {
    background: rgba(124, 92, 255, 0.14);
    border: 1px solid rgba(124, 92, 255, 0.35);
    color: rgba(245, 246, 255, 0.95);
    border-radius: 999px;
    padding: 7px 10px;
    font-weight: 700;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: 10px;
}

.alert-pill--pulse {
    animation: alertPulse 1.2s ease-in-out infinite;
}

@keyframes alertPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(255, 59, 129, 0.0);
    }

    50% {
        transform: scale(1.03);
        box-shadow: 0 0 0 8px rgba(255, 59, 129, 0.18);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(255, 59, 129, 0.0);
    }
}

.alert-dot {
    filter: saturate(1.2);
}

.hero {
    margin-top: 20px;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.hero-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--space-lg) var(--space-lg);
    box-shadow: var(--shadow);
}

.hero-eyebrow {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.hero-text {
    margin: 6px 0 0;
    font-size: 15px;
    color: var(--ink);
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.btn {
    border: 0;
    cursor: pointer;
    border-radius: var(--radius-pill);
    padding: var(--space-sm) var(--space-md);
    font-weight: 600;
    font-size: 13px;
    transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
    box-shadow: var(--shadow-sm);
}

.btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
    box-shadow: var(--shadow);
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-ink);
    border: 1.5px solid rgba(63, 68, 245, 0.25);
}

.btn-start {
    margin-top: 14px;
    padding: 10px 22px;
    font-size: 14px;
}

/* Sidebar Logo & Icons */
.logo {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.0);
    color: rgba(255, 255, 255, 0.98);
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    letter-spacing: -0.02em;
}

.logo-mark {
    transform: translateY(-1px);
    text-transform: lowercase;
}

.weekly-view {
    margin-top: 32px;
}

.week-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin: 0 0 14px;
}

.week-kicker {
    color: var(--primary);
    font-weight: 700;
    letter-spacing: -0.01em;
    font-size: 14px;
}

.week-subtitle {
    margin-top: 4px;
    font-size: 15px;
    line-height: 1.25;
    letter-spacing: -0.01em;
    max-width: 920px;
}

.week-controls {
    display: flex;
    align-items: center;
    gap: 6px;
    padding-top: 4px;
}

.ctrl-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid rgba(63, 68, 245, 0.55);
    background: var(--panel);
    color: var(--primary-ink);
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
}

:root[data-theme="dark"] .ctrl-btn {
    color: var(--ink);
}

.week-dropdown {
    height: 36px;
    border-radius: 10px;
    padding: 0 12px;
    border: 1px solid rgba(63, 68, 245, 0.65);
    background: var(--panel);
    color: var(--ink);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.week-progress {
    margin-top: 14px;
    max-width: 520px;
}

.progress-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 12px;
    color: var(--muted);
    font-weight: 700;
}

.progress {
    margin-top: var(--space-xs);
    height: 10px;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.10);
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(17, 24, 39, 0.08);
}

.progress--on-dark {
    background: rgba(255, 255, 255, 0.20);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.15);
}

.progress-fill {
    height: 100%;
    width: 0%;
    border-radius: var(--radius-pill);
    background: linear-gradient(90deg, var(--primary), #7c3aed);
    box-shadow: 0 0 8px rgba(63, 68, 245, 0.4);
    transition: width 0.3s ease, box-shadow 0.3s ease;
}

.dashboard-scroll {
    --day-card-width: 360px;
    position: relative;
    isolation: isolate;
}

.dashboard-scroll-viewport {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    scroll-behavior: smooth;
    padding: 2px 56px 14px;
}

.dashboard-scroll-viewport::-webkit-scrollbar {
    height: 10px;
}

.dashboard-scroll-viewport::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 999px;
}

.dashboard-scroll-viewport::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
    border-radius: 999px;
}

.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: 1px solid rgba(63, 68, 245, 0.35);
    background: rgba(255, 255, 255, 0.92);
    color: var(--primary-ink);
    font-weight: 900;
    font-size: 18px;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
    transition: transform 0.12s ease, filter 0.12s ease, opacity 0.12s ease;
    z-index: 6;
}

.scroll-btn[data-scroll-left] {
    left: 8px;
}

.scroll-btn[data-scroll-right] {
    right: 8px;
}

.scroll-btn:hover {
    transform: translateY(calc(-50% - 1px));
    filter: brightness(1.02);
}

.scroll-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    transform: translateY(-50%);
}

.dashboard-scroll--expanded .scroll-btn {
    display: none;
}

.dashboard-scroll--expanded .dashboard-scroll-viewport {
    overflow: visible;
    padding-bottom: 0;
}

.dashboard-scroll {
    --day-card-width: 360px;
    position: relative;
    isolation: isolate;
}

.dashboard-scroll-viewport {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    scroll-behavior: smooth;
    padding: 2px 56px 14px;
}

.dashboard-scroll-viewport::-webkit-scrollbar {
    height: 10px;
}

.dashboard-scroll-viewport::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 999px;
}

.dashboard-scroll-viewport::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
    border-radius: 999px;
}

.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: 1px solid rgba(63, 68, 245, 0.35);
    background: rgba(255, 255, 255, 0.92);
    color: var(--primary-ink);
    font-weight: 900;
    font-size: 18px;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
    transition: transform 0.12s ease, filter 0.12s ease, opacity 0.12s ease;
    z-index: 6;
}

.scroll-btn[data-scroll-left] {
    left: 8px;
}

.scroll-btn[data-scroll-right] {
    right: 8px;
}

.scroll-btn:hover {
    transform: translateY(calc(-50% - 1px));
    filter: brightness(1.02);
}

.scroll-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    transform: translateY(-50%);
}

.dashboard-scroll--expanded .scroll-btn {
    display: none;
}

.dashboard-scroll--expanded .dashboard-scroll-viewport {
    overflow: visible;
    padding-bottom: 0;
}

.dashboard-grid {
    display: flex;
    gap: 12px;
    align-items: stretch;
}

.day-card {
    background: var(--card-bg);
    border-radius: 14px;
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow-soft);
    padding: 10px 10px 8px;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    flex: 0 0 var(--day-card-width);
    scroll-snap-align: start;
}

/* Click-to-highlight state */
.day-card--selected {
    border-color: rgba(63, 68, 245, 0.55);
    box-shadow: 0 22px 36px rgba(17, 24, 39, 0.18);
    outline: 2px solid rgba(63, 68, 245, 0.55);
    outline-offset: 2px;
    transform: translateY(-2px);
    z-index: 2;
}

.day-card--today.day-card--selected {
    outline-color: rgba(255, 255, 255, 0.55);
}

.day-card--today {
    background: var(--primary);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow: 0 18px 24px rgba(63, 68, 245, 0.25);
}

.day-card--today .day-date {
    color: rgba(255, 255, 255, 0.92);
}

.day-card--today .day-chip {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(255, 255, 255, 0.35);
    color: var(--primary-ink);
}

.day-card--today .day-section-title {
    color: rgba(255, 255, 255, 0.88);
}

.day-card--today .task-title {
    color: rgba(255, 255, 255, 0.96);
}

.day-card--today .task-muted {
    color: rgba(255, 255, 255, 0.70);
}

.day-card--today .task-check {
    accent-color: #fff;
}

.day-card--today .tag {
    background: rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.95);
    border-color: rgba(255, 255, 255, 0.25);
}

.day-card--today .task-toggle {
    color: rgba(255, 255, 255, 0.85);
}

.day-card--today .task-toggle:hover {
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.95);
}

.day-card--today .task-desc {
    color: rgba(255, 255, 255, 0.82);
}

.day-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.day-head-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.expand-btn {
    width: 28px;
    height: 28px;
    border-radius: 10px;
    border: 1px solid rgba(63, 68, 245, 0.55);
    background: rgba(255, 255, 255, 0.65);
    color: var(--primary-ink);
    cursor: pointer;
    display: grid;
    place-items: center;
    font-weight: 900;
    transition: transform 0.12s ease, filter 0.12s ease;
}

.expand-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
}

.day-card--today .expand-btn {
    border-color: rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.95);
}

.dashboard-grid--expanded {
    grid-template-columns: 92px 1fr;
    align-items: start;
}

.dashboard-grid--expanded .day-card {
    min-height: 64px;
}

.day-card--expanded {
    grid-column: 2;
    min-height: 620px;
    padding: 18px 18px 14px;
}

.day-card--minimized {
    grid-column: 1;
    padding: 10px;
    opacity: 0.78;
    box-shadow: none;
}

.day-card--minimized .today-focus,
.day-card--minimized .day-section-title,
.day-card--minimized .task-list,
.day-card--minimized .day-footer {
    display: none;
}

.day-card--minimized .day-head {
    margin-bottom: 0;
}

.day-card--minimized .day-date {
    font-size: 11px;
}

.day-card--minimized .day-chip {
    display: none;
}

.day-date {
    font-weight: 700;
    letter-spacing: -0.01em;
    font-size: 11px;
    text-transform: uppercase;
    color: var(--ink-subtle);
}



.today-label {
    letter-spacing: 0.02em;
    margin-right: var(--space-xs);
    color: var(--primary);
    font-weight: 700;
    text-shadow: 0 0 12px rgba(63, 68, 245, 0.3);
}

.day-chip {
    width: 28px;
    height: 20px;
    border-radius: 8px;
    border: 1px solid rgba(63, 68, 245, 0.65);
    display: grid;
    place-items: center;
    color: var(--primary-ink);
    background: rgba(255, 255, 255, 0.65);
    font-weight: 900;
}



.day-section-title {
    font-size: 10px;
    font-weight: 700;
    color: var(--ink-subtle);
    margin: 3px 0 6px;
    transition: opacity 0.3s ease, visibility 0.3s ease, max-height 0.3s ease;
}



.task-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: opacity 0.3s ease, visibility 0.3s ease, max-height 0.3s ease;
}

.task {
    border-radius: 10px;
    padding: 6px 8px;
    background: var(--task-bg);
    border: 1px solid var(--task-border);
}

.task--highlight {
    animation: taskGlow 1.2s ease-out;
}

@keyframes taskGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.0);
        transform: translateY(0);
    }

    25% {
        box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.22);
        transform: translateY(-1px);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.0);
        transform: translateY(0);
    }
}



.task-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    column-gap: 10px;
    row-gap: 6px;
}

.task-checkwrap {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    flex: 1;
    min-width: 0;
}

.task-check {
    margin-top: 2px;
    width: 14px;
    height: 14px;
    accent-color: var(--primary);
}



.task-title {
    font-size: 12px;
    line-height: 1.2;
    font-weight: 600;
    color: var(--ink);
    overflow-wrap: break-word;
    word-break: normal;
}



.task-muted {
    font-weight: 500;
    font-size: 11px;
    color: var(--muted);
}



.task-right {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    justify-content: flex-end;
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border-radius: 999px;
    padding: 4px 8px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: var(--ink);
    background: var(--tag-bg);
    border: 1px solid var(--tag-border);
    text-transform: capitalize;
}



.tag--required {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.25);
    color: #b91c1c;
    box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.15), var(--shadow-sm);
}

.tag--recommended {
    background: rgba(245, 158, 11, 0.08);
    border-color: rgba(245, 158, 11, 0.25);
    color: #b45309;
    box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.15), var(--shadow-sm);
}

.tag--optional {
    background: rgba(156, 163, 175, 0.06);
    border-color: rgba(156, 163, 175, 0.20);
    color: #6b7280;
    box-shadow: 0 0 0 1px rgba(156, 163, 175, 0.12), var(--shadow-sm);
}

.task-toggle {
    border: 0;
    background: transparent;
    color: var(--ink-subtle);
    font-weight: 900;
    font-size: 11.5px;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 10px;
}



.task-toggle:hover {
    background: var(--hover-bg);
}



.task-detail {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed var(--border-strong);
}



.task-desc {
    margin: 0;
    font-size: 12px;
    line-height: 1.35;
    color: var(--ink-subtle);
}



.task-actions {
    margin-top: 10px;
}

.task--separator {
    padding: 0;
    background: transparent;
    border: 0;
}

.task-separator {
    padding: 8px 6px;
    font-weight: 900;
    font-size: 11px;
    color: var(--ink-faint);
    border-top: 1px solid var(--border);
}

.task-separator[data-lunch-timer] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-top-style: solid;
}

.lunch-left {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.lunch-label {
    font-weight: 1000;
    letter-spacing: 0.01em;
}

.lunch-countdown {
    font-variant-numeric: tabular-nums;
    font-size: 12px;
    color: var(--ink-subtle);
}



.lunch-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.lunch-btn {
    border-radius: 999px;
    border: 1px solid var(--border-strong);
    background: var(--pill-bg);
    color: var(--ink);
    font-weight: 900;
    font-size: 11px;
    padding: 8px 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.lunch-btn:hover:not(:disabled) {
    background: var(--primary-ink);
    border-color: var(--primary-ink);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}



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

.task-separator.lunch--done {
    color: rgba(16, 185, 129, 0.9);
}

.toast-stack {
    position: fixed;
    right: 16px;
    bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
    max-width: min(380px, calc(100vw - 24px));
}

.toast {
    background: rgba(17, 24, 39, 0.92);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    padding: 12px 12px 10px;
    box-shadow: 0 14px 22px rgba(17, 24, 39, 0.20);
    position: relative;
    animation: toastIn 160ms ease-out;
}

.toast--good {
    border-color: rgba(16, 185, 129, 0.35);
}

.toast--warn {
    border-color: rgba(245, 158, 11, 0.35);
}

.toast-title {
    font-weight: 900;
    font-size: 13px;
    margin-bottom: 4px;
}

.toast-message {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.86);
    line-height: 1.3;
}

.toast-close {
    position: absolute;
    top: 8px;
    right: 10px;
    width: 26px;
    height: 26px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    font-weight: 900;
}

.toast--hide {
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 180ms ease, transform 180ms ease;
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

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

@media (prefers-reduced-motion: reduce) {
    .alert-pill--pulse {
        animation: none;
    }

    .toast {
        animation: none;
    }
}



.today-focus {
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 16px;
    padding: 10px 10px 8px;
    margin: 6px 0 10px;
}

.today-focus-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.today-focus-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.next-action-btn {
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.96);
    font-weight: 900;
    font-size: 11px;
    padding: 6px 10px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: transform 0.12s ease, filter 0.12s ease;
}

.next-action-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
}

.next-action-btn:active {
    transform: translateY(0);
}

.today-focus-title {
    font-weight: 900;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.95);
}

.status-pill {
    border-radius: 999px;
    padding: 5px 10px;
    font-weight: 900;
    font-size: 11px;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.status-pill--good {
    background: rgba(16, 185, 129, 0.22);
}

.status-pill--mid {
    background: rgba(245, 158, 11, 0.22);
}

.status-pill--warn {
    background: rgba(239, 68, 68, 0.25);
}

.today-focus-list {
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.today-focus-item {
    display: grid;
    grid-template-columns: 14px 1fr auto;
    gap: 10px;
    align-items: center;
    font-size: 12.5px;
    padding: 6px 8px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.focus-check {
    font-weight: 900;
    opacity: 0.9;
}

.focus-title {
    font-weight: 800;
    letter-spacing: -0.01em;
}

.focus-tag {
    font-weight: 900;
    text-transform: capitalize;
    opacity: 0.85;
}

.day-footer {
    margin-top: auto;
    padding-top: 12px;
}

/* Keep the “Today’s Focus” panel out of the default card view so
   Activities stays near the top like the reference screenshot. */
.day-card--today .today-focus {
    display: none;
}

/* ===== CARD EXPANSION STATES ===== */

/* Add cursor pointer and transition to day cards */
.day-card {
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

/* Hide hero section when card is expanded */
.hero--hidden {
    transform: translateY(-120%) scaleY(0);
    opacity: 0;
    margin-bottom: -180px;
    pointer-events: none;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero {
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: top;
}

/* Keep weekly view properly spaced when card is expanded */
.content.card-expanded .weekly-view {
    margin-top: 24px;
}

/* Change grid layout when a card is expanded */
.content.card-expanded .dashboard-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Create a container for minimized cards */
.content.card-expanded .dashboard-grid::before {
    content: '';
    display: none;
}

/* Expanded card styling */
.day-card.expanded {
    order: 2;
    width: 100%;
    min-height: 600px;
    transform: scale(1.0);
    box-shadow: 0 30px 60px rgba(63, 68, 245, 0.45);
    z-index: 10;
    padding: 20px;
}

/* Minimized cards - kept in a neat row */
.day-card.minimized {
    order: 1;
    min-height: 100px;
    max-width: 180px;
    flex: 0 0 auto;
    transform: scale(0.95);
    opacity: 0.6;
    z-index: 1;
    padding: 12px;
    cursor: pointer;
    display: inline-block;
}

/* Create a flex container for minimized cards */
.content.card-expanded .dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 180px));
    grid-auto-flow: dense;
    gap: 12px;
    align-items: start;
}

/* Expanded card takes full width */
.day-card.expanded {
    grid-column: 1 / -1;
    order: 2;
    background: var(--primary);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.22);
    max-width: 70%;
    margin-left: auto;
    margin-right: auto;
}

/* When expanded, allow the Today Focus panel to appear. */
.day-card.expanded .today-focus {
    display: block;
}

/* When expanded, allow the Today Focus panel to appear. */
.day-card.expanded .today-focus {
    display: block;
}

/* Apply white text to all content in expanded cards */
.day-card.expanded .day-date {
    color: rgba(255, 255, 255, 0.92);
}

.day-card.expanded .day-chip {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(255, 255, 255, 0.35);
    color: var(--primary-ink);
}

.day-card.expanded .day-section-title {
    color: rgba(255, 255, 255, 0.88);
}

.day-card.expanded .task-title {
    color: rgba(255, 255, 255, 0.96);
}

.day-card.expanded .task-muted {
    color: rgba(255, 255, 255, 0.70);
}

.day-card.expanded .task-check {
    accent-color: #fff;
}

.day-card.expanded .tag {
    background: rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.95);
    border-color: rgba(255, 255, 255, 0.25);
}

.day-card.expanded .task-toggle {
    color: rgba(255, 255, 255, 0.85);
    border-color: rgba(255, 255, 255, 0.25);
}

.day-card.expanded .task-toggle:hover {
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.95);
}

.day-card.expanded .task-desc {
    color: rgba(255, 255, 255, 0.82);
}

.day-card.expanded .btn {
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary);
    border-color: rgba(255, 255, 255, 0.35);
}

.day-card.expanded .btn:hover {
    background: #fff;
}

.day-card.expanded .progress {
    background: rgba(255, 255, 255, 0.20);
}

.day-card.expanded .progress-fill {
    background: rgba(255, 255, 255, 0.85);
}

.day-card.expanded .progress-label,
.day-card.expanded .progress-count {
    color: rgba(255, 255, 255, 0.88);
}

.day-card.expanded .lunch-countdown {
    color: rgba(255, 255, 255, 0.95);
}

.day-card.expanded .lunch-btn {
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.92);
    border-color: rgba(255, 255, 255, 0.25);
}

.day-card.expanded .lunch-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

.day-card.expanded .task-separator {
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.88);
}

/* Minimized cards stay in first row */
.day-card.minimized {
    order: 1;
}

.day-card.minimized:hover {
    opacity: 0.85;
    transform: scale(0.98);
}

/* Hide most content in minimized cards */
.day-card.minimized .day-section-title,
.day-card.minimized .task-list,
.day-card.minimized .day-progress,
.day-card.minimized .today-focus {
    opacity: 0;
    visibility: hidden;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, max-height 0.3s ease;
}

/* Keep day header visible in minimized cards */
.day-card.minimized .day-head {
    margin-bottom: 0;
}

.day-card.minimized .day-date {
    font-size: 11px;
}

/* Enhanced expanded card content */
.day-card.expanded .day-date {
    font-size: 16px;
}

/* ===== DAY VIEW (day.html) ===== */

.day-view .content {
    padding: 18px 28px 56px;
}

.dayview {
    margin-top: 18px;
}

.dayview-shell {
    max-width: 920px;
    margin: 0 auto;
    background: transparent;
}

.dayview-kicker {
    font-weight: 900;
    letter-spacing: -0.01em;
    color: rgba(63, 68, 245, 0.95);
    font-size: 16px;
    margin-top: 8px;
}

.dayview-title {
    margin: 18px 0 0;
    font-size: 40px;
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.dayview-section {
    margin-top: 24px;
}

.dayview-section-title {
    font-weight: 900;
    color: var(--ink);
    margin-bottom: 10px;
}

.dayview-list {
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 1px solid var(--border);
}

.dayview-item,
.dayview-sep {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.dayview-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
}

.dayview-checkwrap {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.dayview-check {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
}

.dayview-item-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--ink);
    overflow-wrap: break-word;
}

.dayview-sep {
    font-weight: 900;
    color: var(--ink-faint);
}

.dayview-actions {
    margin-top: 22px;
}

.dayview-go {
    min-width: 160px;
    padding: 12px 22px;
    font-size: 15px;
    box-shadow: 0 14px 28px rgba(63, 68, 245, 0.22);
}

.dayview-back {
    padding: 8px 12px;
}

.dayview-empty {
    margin-top: 24px;
    padding: 18px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 14px;
}

@media (max-width: 1200px) {
    .dashboard-scroll {
        --day-card-width: 330px;
    }

    .scroll-btn {
        width: 40px;
        height: 40px;
        border-radius: 12px;
    }

    .week-subtitle {
        font-size: 22px;
    }

    /* Adjust expansion layout for smaller screens */
    .content.card-expanded .dashboard-grid {
        grid-template-columns: 80px 1fr;
        gap: 10px;
    }

    .day-card.minimized:nth-child(n) {
        grid-column: 1;
    }

    .day-card.expanded {
        grid-column: 2;
    }
}

@media (max-width: 740px) {
    .content {
        padding: 14px;
    }

    .dashboard-scroll {
        --day-card-width: 300px;
    }

    .scroll-btn {
        width: 36px;
        height: 36px;
        border-radius: 11px;
        font-size: 16px;
    }

    /* Stack layout for mobile */
    .content.card-expanded .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .day-card.minimized {
        display: none;
    }

    .day-card.expanded {
        grid-column: 1;
    }
}