/* =============================================
   THE WORLD IS YOURS v1.0
   Personal Life + Business Operating System
   Built by Jason Williams + Jerry
   ============================================= */

:root {
    /* THE WORLD IS YOURS - Metallic Chrome x Sacred Geometry */
    --accent: #c87941;          /* Burnished copper */
    --accent-light: #d4944f;    /* Warm copper glow */
    --accent-bg: rgba(200, 121, 65, 0.12);
    --green: #2dd4a8;           /* Chrome emerald */
    --green-bg: rgba(45, 212, 168, 0.1);
    --amber: #f59e0b;           /* Burnished gold */
    --amber-bg: rgba(245, 158, 11, 0.1);
    --red: #f87171;             /* Chrome red */
    --red-bg: rgba(248, 113, 113, 0.08);
    --gold: #d4a84b;            /* Polished brass */
    --blue-section: rgba(200, 121, 65, 0.15);  /* Copper tint header */

    /* Layout - Dark gunmetal forge */
    --sidebar-bg: #0d0f12;
    --sidebar-text: rgba(192, 197, 206, 0.6);
    --sidebar-active: #e8e6e3;
    --page-bg: #131619;
    --card-bg: #1a1d22;
    --border: rgba(255, 255, 255, 0.07);
    --text: #e8e6e3;
    --text-secondary: #8b8d93;
    --text-muted: #555860;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --radius: 10px;
    --sidebar-w: 250px;

    /* Metallic gradient palette */
    --chrome: linear-gradient(135deg, #c0c5ce, #8b9099, #c0c5ce);
    --copper-gradient: linear-gradient(135deg, #c87941, #a85d2e, #d4944f);
    --steel-gradient: linear-gradient(135deg, #1a1d22 0%, #22262d 50%, #1a1d22 100%);
    --gold-shimmer: linear-gradient(135deg, #d4a84b, #c29343, #e6c06e);
    --card-glow: 0 0 20px rgba(200, 121, 65, 0.05);
}

/* === LOGIN SCREEN === */
#login-screen {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #0a0c0f;
    background-image:
        radial-gradient(ellipse at 30% 50%, rgba(200, 121, 65, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 30%, rgba(212, 168, 75, 0.05) 0%, transparent 50%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}
#login-screen.hidden { display: none; }

.login-card {
    background: rgba(26, 29, 34, 0.9);
    border: 1px solid rgba(200, 121, 65, 0.2);
    border-radius: 16px;
    padding: 48px 40px;
    width: 380px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(200, 121, 65, 0.05);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
}
.login-logo {
    width: 72px; height: 72px;
    background: var(--copper-gradient);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 24px;
    color: #0a0c0f;
    margin: 0 auto 20px;
    box-shadow: 0 4px 20px rgba(200, 121, 65, 0.3);
}
.login-title {
    color: #e8e6e3;
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
    background: var(--gold-shimmer);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.login-subtitle {
    color: rgba(192, 197, 206, 0.4);
    font-size: 13px;
    font-style: italic;
    margin-bottom: 32px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 500;
}
#login-form { display: flex; flex-direction: column; gap: 12px; }
#login-form input {
    padding: 14px 16px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(200, 121, 65, 0.15);
    border-radius: 10px;
    color: #e8e6e3;
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: all 0.3s;
}
#login-form input:focus { border-color: var(--accent); box-shadow: 0 0 12px rgba(200, 121, 65, 0.15); }
#login-form input::placeholder { color: rgba(192, 197, 206, 0.25); }
#login-btn {
    padding: 14px;
    background: var(--copper-gradient);
    color: #0a0c0f;
    border: none;
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 8px;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 16px rgba(200, 121, 65, 0.25);
}
#login-btn:hover { filter: brightness(1.15); transform: translateY(-1px); box-shadow: 0 6px 24px rgba(200, 121, 65, 0.35); }
#login-btn:disabled { opacity: 0.6; cursor: not-allowed; }
#login-error {
    color: var(--red);
    font-size: 12px;
    min-height: 18px;
}

/* === RESET === */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--page-bg);
    background-image:
        radial-gradient(ellipse at 20% 80%, rgba(200, 121, 65, 0.03) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(212, 168, 75, 0.02) 0%, transparent 50%);
    color: var(--text);
    display: flex;
    min-height: 100vh;
    font-size: 14px;
}

/* === SIDEBAR (Dark forge) === */
#sidebar {
    width: var(--sidebar-w);
    background: var(--sidebar-bg);
    background-image: linear-gradient(180deg, rgba(200, 121, 65, 0.03) 0%, transparent 30%);
    position: fixed;
    top: 0; left: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    z-index: 100;
    overflow-y: auto;
    transition: transform 0.25s ease;
    border-right: 1px solid rgba(200, 121, 65, 0.1);
}

.sidebar-header {
    padding: 16px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    width: 30px; height: 30px;
    background: var(--copper-gradient);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 12px;
    color: #0a0c0f;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(200, 121, 65, 0.25);
}

.logo-title {
    color: var(--gold);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Nav Links */
.nav-links {
    list-style: none;
    padding: 4px 8px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    color: var(--sidebar-text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.15s;
}
.nav-link:hover { color: var(--text); background: rgba(200, 121, 65, 0.08); }
.nav-link.active { color: var(--accent); background: rgba(200, 121, 65, 0.1); font-weight: 600; border-left: 2px solid var(--accent); margin-left: -2px; }
.nav-icon { font-size: 16px; width: 20px; text-align: center; }

/* Sidebar Sections */
.sidebar-section {
    padding: 8px 8px 4px;
    border-top: 1px solid var(--border);
    margin-top: 4px;
}

.sidebar-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--text-muted);
    padding: 8px 10px 4px;
    text-transform: uppercase;
}

.domain-list, .area-list { list-style: none; }

.domain-link, .area-link {
    display: block;
    padding: 5px 10px;
    color: var(--sidebar-text);
    text-decoration: none;
    font-size: 13px;
    border-radius: 6px;
    transition: all 0.15s;
}
.domain-link:hover, .area-link:hover { color: var(--text); background: rgba(200, 121, 65, 0.06); }
.domain-link.active { color: var(--accent); font-weight: 600; }
.area-link.active { color: var(--accent); font-weight: 600; background: var(--accent-bg); }
.area-link .area-dot {
    display: inline-block;
    width: 8px; height: 8px;
    border-radius: 50%;
    margin-right: 8px;
}

.sidebar-footer {
    margin-top: auto;
    padding: 12px 14px;
    border-top: 1px solid var(--border);
}
.version { font-size: 10px; color: var(--text-muted); }

/* === MAIN CONTENT === */
#content {
    margin-left: var(--sidebar-w);
    flex: 1;
    min-height: 100vh;
}

/* Top Bar */
#topbar {
    background: rgba(26, 29, 34, 0.85);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    padding: 14px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(200, 121, 65, 0.08);
    position: sticky;
    top: 0;
    z-index: 50;
}
.topbar-left { display: flex; align-items: center; gap: 12px; }
#menu-toggle {
    display: none;
    background: none; border: none;
    font-size: 22px; cursor: pointer;
    color: var(--text);
}
#page-title { font-size: 16px; font-weight: 700; }
#current-date { font-size: 13px; color: var(--text-secondary); font-weight: 500; }

/* Quick Add */
#quick-add {
    padding: 12px 28px;
    background: rgba(26, 29, 34, 0.6);
    border-bottom: 1px solid rgba(200, 121, 65, 0.06);
    display: flex;
    gap: 10px;
}
#quick-add-input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid rgba(200, 121, 65, 0.12);
    border-radius: 10px;
    font-family: inherit;
    font-size: 13px;
    outline: none;
    transition: all 0.3s;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
}
#quick-add-input:focus { border-color: var(--accent); box-shadow: 0 0 12px rgba(200, 121, 65, 0.1); }
#quick-add-input::placeholder { color: var(--text-muted); }
#quick-add-btn {
    padding: 10px 20px;
    background: var(--copper-gradient);
    color: #0a0c0f;
    border: none;
    border-radius: 10px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(200, 121, 65, 0.2);
}
#quick-add-btn:hover { filter: brightness(1.1); transform: translateY(-1px); }

/* Sections */
.section { display: none; padding: 24px 28px; }
.section.active { display: block; }

/* === CARDS (Forged steel) === */
.card {
    background: var(--card-bg);
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    box-shadow: var(--card-glow);
    transition: border-color 0.3s, box-shadow 0.3s;
}
.card:hover {
    border-color: rgba(200, 121, 65, 0.12);
}
.card-header {
    padding: 10px 16px;
    background: rgba(200, 121, 65, 0.06);
    border-bottom: 1px solid rgba(200, 121, 65, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.card-header h3 {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.3px;
    text-transform: uppercase;
    font-size: 11px;
}
.card-count {
    font-size: 11px;
    font-weight: 700;
    color: var(--gold);
    background: rgba(212, 168, 75, 0.1);
    padding: 2px 10px;
    border-radius: 20px;
    border: 1px solid rgba(212, 168, 75, 0.15);
}
.card-body { padding: 14px 16px; }
.card.wide { grid-column: 1 / -1; }

/* === GREETING === */
.greeting {
    padding: 24px 0 20px;
}
.greeting h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}
.greeting p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* === TODAY GRID === */
.today-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 20px;
}
.today-left, .today-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* === TASK ITEMS === */
.task-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    cursor: default;
    border-radius: 6px;
    transition: background 0.15s;
}
.task-item:last-child { border-bottom: none; }

.task-check {
    width: 20px; height: 20px;
    border: 2px solid rgba(200, 121, 65, 0.25);
    border-radius: 6px;
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    font-size: 12px;
    color: transparent;
}
.task-check:hover { border-color: var(--accent); background: rgba(200, 121, 65, 0.1); }
.task-check.done {
    background: var(--green);
    border-color: var(--green);
    color: #0a0c0f;
}

.task-content { flex: 1; min-width: 0; }
.task-text {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    display: block;
}
.task-text.done {
    text-decoration: line-through;
    color: var(--text-muted);
}
.task-meta {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

.task-tag {
    font-size: 10px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    white-space: nowrap;
}
.tag-personal { background: var(--accent-bg); color: var(--accent); }
.tag-ductdudes { background: rgba(15, 123, 108, 0.1); color: var(--green); }
.tag-urgent { background: var(--red-bg); color: var(--red); }
.tag-waiting { background: var(--amber-bg); color: var(--amber); }
.task-status-todo { background: rgba(85, 88, 96, 0.2); color: #8b8d93; }
.task-status-progress { background: rgba(200, 121, 65, 0.15); color: var(--accent); }
.task-status-waiting { background: rgba(245, 158, 11, 0.12); color: var(--amber); }
.task-status-done { background: rgba(45, 212, 168, 0.1); color: var(--green); }

.task-delete {
    background: none; border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 16px;
    padding: 4px;
    opacity: 0;
    transition: opacity 0.15s;
}
.task-item:hover .task-delete { opacity: 1; }
.task-delete:hover { color: var(--red); }

/* === HABIT ITEMS === */
.habit-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}
.habit-item:last-child { border-bottom: none; }

.habit-check {
    width: 28px; height: 28px;
    border: 2px solid rgba(45, 212, 168, 0.25);
    border-radius: 8px;
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: transparent;
    transition: all 0.2s;
}
.habit-check:hover { border-color: var(--green); background: rgba(45, 212, 168, 0.1); }
.habit-check.done {
    background: var(--green);
    border-color: var(--green);
    color: #0a0c0f;
    box-shadow: 0 0 8px rgba(45, 212, 168, 0.2);
}

.habit-name {
    flex: 1;
    font-size: 13px;
    font-weight: 500;
}
.habit-streak {
    font-size: 11px;
    font-weight: 700;
    color: var(--amber);
}

/* === STREAK DISPLAY === */
.streak-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}
.streak-item:last-child { border-bottom: none; }
.streak-name { font-size: 13px; color: var(--text-secondary); }
.streak-count {
    font-size: 18px;
    font-weight: 800;
    color: var(--gold);
}
.streak-label {
    font-size: 10px;
    color: var(--text-muted);
    margin-left: 4px;
    font-weight: 500;
}

/* === STATS / METRICS === */
.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}
.stat-row:last-child { border-bottom: none; }
.stat-label { font-size: 13px; color: var(--text-secondary); }
.stat-value { font-size: 16px; font-weight: 700; color: var(--gold); }

/* === PROJECT CARDS === */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

.project-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.project-status {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 10px;
    border-radius: 20px;
}
.status-active { background: rgba(45, 212, 168, 0.1); color: var(--green); }
.status-urgent { background: rgba(248, 113, 113, 0.1); color: var(--red); }
.status-pending { background: rgba(245, 158, 11, 0.1); color: var(--amber); }
.status-waiting { background: rgba(85, 88, 96, 0.15); color: var(--text-muted); }
.status-wip { background: rgba(200, 121, 65, 0.12); color: var(--accent); }
.status-completed { background: rgba(45, 212, 168, 0.1); color: var(--green); }
.status-archived { background: rgba(85, 88, 96, 0.12); color: var(--text-muted); }

.project-meta {
    font-size: 12px;
    color: var(--text-muted);
    padding: 8px 0;
}
.project-tasks-list { padding-top: 4px; }

/* === COVEY MATRIX === */
.covey-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    min-height: calc(100vh - 200px);
}
.quadrant .card-header { padding: 10px 16px; }
.q1 .card-header { border-left: 4px solid var(--red); background: rgba(248, 113, 113, 0.06); }
.q2 .card-header { border-left: 4px solid var(--green); background: rgba(45, 212, 168, 0.06); }
.q3 .card-header { border-left: 4px solid var(--amber); background: rgba(245, 158, 11, 0.06); }
.q4 .card-header { border-left: 4px solid var(--text-muted); background: rgba(85, 88, 96, 0.06); }

/* View Toggle */
.view-toggle {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.03);
    padding: 4px;
    border-radius: 12px;
    width: fit-content;
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.view-btn {
    padding: 8px 18px;
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    background: transparent;
    color: var(--text-secondary);
    transition: all 0.15s;
}
.view-btn.active { background: var(--copper-gradient); color: #0a0c0f; box-shadow: 0 2px 8px rgba(200, 121, 65, 0.2); }
.view-btn:hover:not(.active) { background: rgba(200, 121, 65, 0.08); color: var(--text); }

/* Task Filter Tabs */
.task-filter-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}
.filter-tab {
    padding: 6px 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.15s;
    display: flex;
    align-items: center;
    gap: 6px;
}
.filter-tab:hover { border-color: var(--accent); color: var(--accent); }
.filter-tab.active {
    background: var(--copper-gradient);
    color: #0a0c0f;
    border-color: var(--accent);
}
.filter-tab.active .filter-count {
    background: rgba(255,255,255,0.25);
    color: white;
}
.filter-count {
    font-size: 10px;
    font-weight: 700;
    background: var(--page-bg);
    padding: 1px 7px;
    border-radius: 10px;
}

/* Task View Toggle */
.task-view { display: none; }
.task-view.active { display: block; }

/* Habits Layout */
.habits-layout {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Week Grid */
.week-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}
.week-day {
    text-align: center;
    padding: 8px;
}
.week-day-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}
.week-dot {
    width: 28px; height: 28px;
    border-radius: 50%;
    margin: 0 auto 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
}
.week-dot.completed { background: var(--green); color: white; }
.week-dot.missed { background: var(--red-bg); color: var(--red); }
.week-dot.future { background: var(--page-bg); color: var(--text-muted); }
.week-dot.today { border: 2px solid var(--accent); background: var(--accent-bg); color: var(--accent); }

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

/* === HABITS VIEWS === */
.habits-view { display: none; }
.habits-view.active { display: block; }

.habits-day-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}
.day-nav-btn {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    width: 32px; height: 32px;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.15s;
}
.day-nav-btn:hover { background: var(--accent-bg); color: var(--accent); border-color: var(--accent); }

/* Week Matrix */
.week-matrix { width: 100%; border-collapse: collapse; }
.week-matrix th {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    padding: 8px 4px;
    text-align: center;
}
.week-matrix th:first-child { text-align: left; padding-left: 0; }
.week-matrix td { padding: 6px 4px; text-align: center; }
.week-matrix td:first-child {
    text-align: left;
    font-size: 13px;
    font-weight: 500;
    padding-left: 0;
    white-space: nowrap;
}
.week-matrix tr { border-bottom: 1px solid var(--border); }
.week-matrix tr:last-child { border-bottom: none; }

.week-cell {
    width: 28px; height: 28px;
    border-radius: 6px;
    border: 2px solid var(--border);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: transparent;
    transition: all 0.15s;
}
.week-cell:hover { border-color: var(--green); background: var(--green-bg); }
.week-cell.done { background: var(--green); border-color: var(--green); color: white; }
.week-cell.future { opacity: 0.3; cursor: default; }
.week-cell.today-cell { border-color: var(--accent); }

/* Month Calendar */
.month-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}
.month-header-cell {
    text-align: center;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    padding: 8px 0;
}
.month-day {
    aspect-ratio: 1;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s;
    position: relative;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
}
.month-day:hover { background: var(--accent-bg); }
.month-day.today-cell { border: 2px solid var(--accent); color: var(--accent); font-weight: 700; }
.month-day.other-month { opacity: 0.25; }
.month-day.future { opacity: 0.4; cursor: default; }
.month-day .month-day-num { margin-bottom: 2px; }
.month-day .month-day-bar {
    width: 20px; height: 3px;
    border-radius: 2px;
    background: var(--border);
}
.month-day .month-day-bar.full { background: var(--green); }
.month-day .month-day-bar.partial { background: var(--amber); }
.month-day .month-day-bar.none { background: var(--red); }
.month-day.selected { background: var(--accent-bg); outline: 2px solid var(--accent); }

/* === CALENDAR === */
.cal-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.cal-add-btn {
    padding: 8px 18px;
    background: var(--copper-gradient);
    color: #0a0c0f;
    border: none;
    border-radius: 10px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(200, 121, 65, 0.2);
}
.cal-add-btn:hover { filter: brightness(1.1); }

.cal-view { display: none; }
.cal-view.active { display: block; }

/* Calendar Event Items */
.cal-event-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border-radius: 8px;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.02);
    cursor: pointer;
    transition: all 0.15s;
    border: 1px solid rgba(255, 255, 255, 0.03);
}
.cal-event-item:hover { background: rgba(200, 121, 65, 0.06); border-color: rgba(200, 121, 65, 0.1); }
.cal-event-item:last-child { margin-bottom: 0; }

.cal-event-time {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
    min-width: 70px;
    white-space: nowrap;
}
.cal-event-content { flex: 1; min-width: 0; }
.cal-event-title {
    font-size: 13px;
    font-weight: 600;
    display: block;
}
.cal-event-location {
    font-size: 11px;
    color: var(--text-muted);
    display: block;
    margin-top: 2px;
}
.cal-event-desc {
    font-size: 11px;
    color: var(--text-muted);
    display: block;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Calendar Task Items */
.cal-task-item { cursor: default; }
.cal-task-item .task-check { cursor: pointer; }

/* Calendar Week Grid */
.cal-week-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0;
}
.cal-week-header {
    text-align: center;
    padding: 8px 4px 12px;
    border-bottom: 1px solid var(--border);
}
.cal-week-header.today-col { background: var(--accent-bg); border-radius: 8px 8px 0 0; }
.cal-week-dayname {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    display: block;
}
.cal-week-daynum {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-secondary);
    display: block;
    margin-top: 2px;
}
.cal-week-daynum.today-num {
    color: var(--accent);
    background: var(--accent-bg);
    width: 28px; height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cal-week-col {
    min-height: 120px;
    padding: 8px 4px;
    border-right: 1px solid var(--border);
}
.cal-week-col:last-child { border-right: none; }

.cal-week-event {
    padding: 4px 6px;
    margin-bottom: 4px;
    border-radius: 6px;
    background: rgba(200, 121, 65, 0.1);
    cursor: pointer;
    transition: background 0.15s;
}
.cal-week-event:hover { background: rgba(200, 121, 65, 0.18); }
.cal-week-event-time {
    font-size: 9px;
    font-weight: 700;
    color: var(--text-muted);
    display: block;
}
.cal-week-event-title {
    font-size: 11px;
    font-weight: 500;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Calendar Month Grid */
.cal-month-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}
.cal-month-dots {
    display: flex;
    gap: 2px;
    margin-top: 2px;
    align-items: center;
}
.cal-event-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}
.cal-month-more {
    font-size: 8px;
    color: var(--text-muted);
    font-weight: 700;
}

/* Today Events Mini Cards */
.cal-event-item-mini {
    padding: 8px 12px;
    margin-bottom: 6px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background 0.15s;
}
.cal-event-item-mini:last-child { margin-bottom: 0; }
.cal-mini-time {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
    min-width: 55px;
}
.cal-mini-title {
    font-size: 13px;
    font-weight: 500;
}

/* === WEATHER WIDGET === */
.weather-current {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}
.weather-temp {
    font-size: 36px;
    font-weight: 800;
    color: var(--gold);
    line-height: 1;
}
.weather-condition {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}
.weather-icon {
    font-size: 32px;
    line-height: 1;
}
.weather-details {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 12px;
}
.weather-forecast {
    display: flex;
    gap: 0;
    border-top: 1px solid var(--border);
    padding-top: 10px;
}
.weather-day {
    flex: 1;
    text-align: center;
}
.weather-day-name {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    display: block;
}
.weather-day-icon {
    font-size: 18px;
    display: block;
    margin: 4px 0;
}
.weather-day-temps {
    font-size: 11px;
    color: var(--text-secondary);
}
.weather-day-high { font-weight: 700; }
.weather-day-low { color: var(--text-muted); }

/* === EVENT MODAL === */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    z-index: 300;
    display: none;
    align-items: center;
    justify-content: center;
}
.modal-overlay.open { display: flex; }

.modal-card {
    background: #1e2128;
    border-radius: 16px;
    width: 440px;
    max-width: 95vw;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 30px rgba(200, 121, 65, 0.05);
    border: 1px solid rgba(200, 121, 65, 0.1);
}
.modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.modal-header h3 {
    font-size: 16px;
    font-weight: 700;
}
#event-modal-close {
    background: none; border: none;
    font-size: 24px;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0 4px;
}
#event-modal-close:hover { color: var(--text); }

.modal-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.modal-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid rgba(200, 121, 65, 0.12);
    border-radius: 10px;
    font-family: inherit;
    font-size: 13px;
    outline: none;
    transition: all 0.3s;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
}
.modal-input:focus { border-color: var(--accent); }
.modal-textarea {
    resize: vertical;
    min-height: 60px;
}
.modal-row {
    display: flex;
    gap: 10px;
    align-items: center;
}
.modal-time-sep {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}
.modal-checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-secondary);
    white-space: nowrap;
    cursor: pointer;
}
.modal-checkbox input[type="checkbox"] { cursor: pointer; }
.modal-color {
    width: 36px;
    height: 36px;
    border: 2px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    padding: 2px;
}
.modal-section { margin-top: 4px; }
.modal-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

/* Reminder Chips */
.reminder-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}
.reminder-chip {
    padding: 5px 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    background: transparent;
    font-family: inherit;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.15s;
}
.reminder-chip:hover { border-color: var(--accent); color: var(--accent); }
.reminder-chip.active {
    background: var(--copper-gradient);
    border-color: var(--accent);
    color: #0a0c0f;
}

.reminder-custom-row {
    display: flex;
    gap: 6px;
    align-items: center;
}
.reminder-num-input { width: 60px; }
.reminder-unit-select { width: 100px; }
.reminder-add-btn {
    padding: 8px 14px;
    background: var(--page-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-secondary);
    white-space: nowrap;
}
.reminder-add-btn:hover { background: var(--accent-bg); color: var(--accent); }

.custom-reminder-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 10px;
    margin-top: 6px;
    background: var(--page-bg);
    border-radius: 6px;
    font-size: 12px;
}
.custom-reminder-remove {
    background: none; border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 16px;
}
.custom-reminder-remove:hover { color: var(--red); }

.modal-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.modal-btn-save {
    padding: 10px 24px;
    background: var(--copper-gradient);
    color: #0a0c0f;
    border: none;
    border-radius: 10px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    margin-left: auto;
    box-shadow: 0 2px 8px rgba(200, 121, 65, 0.2);
    transition: all 0.3s;
}
.modal-btn-save:hover { filter: brightness(1.1); }
.modal-btn-delete {
    padding: 10px 20px;
    background: var(--red-bg);
    color: var(--red);
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}
.modal-btn-delete:hover { background: rgba(239, 68, 68, 0.2); }

/* === EMAIL === */
.email-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}
.email-toolbar-right {
    margin-left: auto;
    display: flex;
    gap: 8px;
}
.email-toolbar-btn {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.15s;
}
.email-toolbar-btn:hover { background: rgba(200, 121, 65, 0.08); color: var(--accent); border-color: rgba(200, 121, 65, 0.2); }
.email-status {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

/* Email List */
.email-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background 0.15s;
    border-radius: 6px;
    padding-left: 8px;
    padding-right: 8px;
}
.email-item:hover { background: rgba(200, 121, 65, 0.06); }
.email-item:last-child { border-bottom: none; }
.email-unread { font-weight: 600; }
.email-unread .email-from { font-weight: 700; }
.email-unread .email-subject { font-weight: 600; color: var(--text); }

.email-item-left { flex-shrink: 0; }
.email-avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(200, 121, 65, 0.15);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.email-item-content { flex: 1; min-width: 0; }
.email-item-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2px;
}
.email-from {
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
}
.email-date {
    font-size: 11px;
    color: var(--text-muted);
    white-space: nowrap;
}
.email-subject {
    font-size: 13px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}
.email-snippet {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Email Connect Prompt */
.email-connect-prompt {
    text-align: center;
    padding: 40px 20px;
}
.email-connect-prompt p {
    color: var(--text-secondary);
    margin-bottom: 16px;
}
.email-connect-btn {
    display: inline-block;
    padding: 10px 24px;
    background: var(--copper-gradient);
    color: #0a0c0f;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 13px;
}
.email-connect-btn:hover { filter: brightness(1.1); }

/* Email Detail */
.email-detail-header {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}
.email-detail-subject {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
}
.email-detail-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.email-detail-from {
    display: flex;
    align-items: center;
    gap: 10px;
}
.email-from-full {
    font-size: 11px;
    color: var(--text-muted);
    display: block;
}

.email-detail-body { margin-top: 16px; }
.email-body-frame {
    width: 100%;
    min-height: 300px;
    border: none;
    background: #1e2128;
    border-radius: 8px;
}
.email-body-text {
    font-family: inherit;
    font-size: 13px;
    line-height: 1.6;
    color: var(--text);
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Email Actions */
.email-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    margin-bottom: 12px;
}
.email-action-btn {
    padding: 8px 20px;
    background: var(--copper-gradient);
    color: #0a0c0f;
    border: none;
    border-radius: 10px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}
.email-action-btn:hover { filter: brightness(1.1); }
.email-action-archive {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.email-action-archive:hover {
    background: rgba(245, 158, 11, 0.08);
    color: var(--amber);
    border-color: rgba(245, 158, 11, 0.2);
}

/* Reply Form */
.email-reply-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

/* Sent Indicator */
.email-sent-indicator {
    padding: 8px 16px;
    background: var(--green-bg);
    color: var(--green);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    margin-top: 12px;
    text-align: center;
}

/* === JERRY CHAT === */
#jerry-fab {
    position: fixed;
    bottom: 24px; right: 24px;
    width: 56px; height: 56px;
    background: var(--copper-gradient);
    color: #0a0c0f;
    border: none;
    border-radius: 50%;
    font-size: 22px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(200, 121, 65, 0.35);
    z-index: 200;
    transition: all 0.2s;
}
#jerry-fab:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(200, 121, 65, 0.45); }
#jerry-fab.hidden { display: none; }

#jerry-panel {
    position: fixed;
    bottom: 24px; right: 24px;
    width: 380px;
    height: 520px;
    background: #1a1d22;
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.5), 0 0 30px rgba(200, 121, 65, 0.05);
    z-index: 201;
    display: none;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(200, 121, 65, 0.12);
}
#jerry-panel.open { display: flex; }

.jerry-header {
    padding: 14px 16px;
    background: linear-gradient(135deg, rgba(200, 121, 65, 0.15), rgba(26, 29, 34, 0.95));
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(200, 121, 65, 0.1);
}
.jerry-header-left { display: flex; align-items: center; gap: 10px; }
.jerry-avatar {
    width: 32px; height: 32px;
    background: var(--copper-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 14px;
    color: #0a0c0f;
}
.jerry-title { font-size: 14px; font-weight: 700; }
#jerry-close {
    background: none; border: none;
    color: rgba(255,255,255,0.5);
    font-size: 24px;
    cursor: pointer;
    padding: 0 4px;
}
#jerry-close:hover { color: white; }

#jerry-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.jerry-msg {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.5;
    word-wrap: break-word;
}
.jerry-msg-bot {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.jerry-msg-user {
    background: var(--copper-gradient);
    color: #0a0c0f;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
    font-weight: 500;
}
.jerry-msg-typing {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    font-style: italic;
}
.jerry-thinking-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    margin-right: 2px;
    animation: jerryBounce 1.2s infinite;
}
.jerry-thinking-dot:nth-child(2) { animation-delay: 0.2s; }
.jerry-thinking-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes jerryBounce {
    0%, 80%, 100% { opacity: 0.3; transform: scale(0.8); }
    40% { opacity: 1; transform: scale(1.2); }
}
.jerry-msg-tools {
    align-self: flex-start;
    background: transparent;
    color: var(--accent);
    font-size: 11px;
    padding: 2px 12px;
    opacity: 0.7;
    font-style: italic;
    border-radius: 0;
}

.jerry-input-row {
    padding: 12px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 8px;
}
#jerry-input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid rgba(200, 121, 65, 0.15);
    border-radius: 10px;
    font-family: inherit;
    font-size: 13px;
    outline: none;
    transition: all 0.3s;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
}
#jerry-input:focus { border-color: var(--accent); box-shadow: 0 0 8px rgba(200, 121, 65, 0.1); }
#jerry-send {
    width: 40px; height: 40px;
    background: var(--copper-gradient);
    color: #0a0c0f;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(200, 121, 65, 0.2);
}
#jerry-send:hover { filter: brightness(1.15); }

/* === NOTES === */
.notes-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}
.notes-filter-tabs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.notes-filter-tab, .resources-filter-tab {
    padding: 6px 14px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.15s;
}
.notes-filter-tab:hover, .resources-filter-tab:hover {
    border-color: var(--accent);
    color: var(--accent);
}
.notes-filter-tab.active, .resources-filter-tab.active {
    background: var(--copper-gradient);
    color: #0a0c0f;
    border-color: var(--accent);
}
.notes-filter-tab.active .filter-count,
.resources-filter-tab.active .filter-count {
    background: rgba(255,255,255,0.25);
    color: white;
}

/* Notes Grid - Card Layout */
.notes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}
.note-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    cursor: pointer;
    transition: all 0.15s;
}
.note-card:hover {
    box-shadow: 0 4px 20px rgba(200, 121, 65, 0.08);
    border-color: rgba(200, 121, 65, 0.2);
}
.note-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.note-type-badge {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 8px;
    border-radius: 4px;
}
.note-date {
    font-size: 11px;
    color: var(--text-muted);
}
.note-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
    line-height: 1.3;
}
.note-snippet {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 8px;
}
.note-card-footer {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.note-meta-tag {
    font-size: 10px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    background: var(--accent-bg);
    color: var(--accent);
}

/* === RESOURCES === */
.resources-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}
.resource-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    cursor: pointer;
    transition: all 0.15s;
}
.resource-card:hover {
    box-shadow: 0 4px 20px rgba(200, 121, 65, 0.08);
    border-color: rgba(200, 121, 65, 0.2);
}
.resource-card-tags {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}
.resource-tag {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 8px;
    border-radius: 4px;
}
.resource-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}
.resource-snippet {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 8px;
}
.resource-url {
    font-size: 11px;
    color: var(--accent);
    display: block;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.resource-card-footer {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

/* Resource Tag Chips in Modal */
.resource-tag-chip {
    padding: 5px 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    background: transparent;
    font-family: inherit;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.15s;
}
.resource-tag-chip:hover { border-color: var(--accent); color: var(--accent); }
.resource-tag-chip.active {
    background: var(--copper-gradient);
    border-color: var(--accent);
    color: #0a0c0f;
}

/* === PILLAR LABELS in sidebar === */
.pillar-label {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-muted);
    padding: 6px 10px 2px;
    text-transform: uppercase;
    list-style: none;
}

/* === EXPANDED PROJECT STATUSES === */
.status-not-started { background: rgba(155,154,151,0.15); color: var(--text-muted); }
.status-in-progress { background: var(--accent-bg); color: var(--accent); }
.status-on-hold { background: rgba(233, 168, 176, 0.2); color: #c4554d; }

/* Expanded project card */
.project-expanded { border-color: var(--accent); box-shadow: var(--shadow-md); }
.project-card-toggle:hover { background: rgba(35,131,226,0.12); }
.project-more-tasks {
    font-size: 11px;
    color: var(--accent);
    font-weight: 600;
    padding: 6px 0;
    cursor: pointer;
}
.project-folder-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}
.project-folder-link:hover { text-decoration: underline; }
.project-clickable:hover { background: rgba(200, 121, 65, 0.06); }

/* === PROJECT DETAIL VIEW === */
.project-detail-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}
.project-detail-header h2 {
    font-size: 24px;
    font-weight: 700;
}

.project-detail-props {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin-bottom: 20px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.project-prop {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-bottom: 1px solid var(--border);
    border-right: 1px solid var(--border);
    min-width: 200px;
    flex: 1;
    font-size: 13px;
}
.project-prop-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    min-width: 70px;
}

.project-objective-card {
    margin-bottom: 20px;
}

.project-ops-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 20px;
}

.project-detail-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--border);
}
.project-tab, .project-note-tab {
    padding: 8px 16px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.15s;
}
.project-tab:hover, .project-note-tab:hover {
    color: var(--text);
}
.project-tab.active, .project-note-tab.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.project-add-btn {
    padding: 4px 12px;
    background: none;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-family: inherit;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.15s;
}
.project-add-btn:hover {
    background: rgba(200, 121, 65, 0.08);
    color: var(--accent);
    border-color: rgba(200, 121, 65, 0.2);
}

/* Resource mini cards in project detail */
.resource-mini-card {
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    margin-bottom: 8px;
    transition: all 0.15s;
}
.resource-mini-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow);
}
.resource-mini-card:last-child { margin-bottom: 0; }

/* Note mini rows in project detail */
.note-mini-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}
.note-mini-row:last-child { border-bottom: none; }
.note-mini-title {
    flex: 1;
    font-size: 13px;
    font-weight: 500;
}
.note-mini-date {
    font-size: 11px;
    color: var(--text-muted);
    white-space: nowrap;
}

/* === DAILY BRIEFING === */
.briefing-card {
    background:
        linear-gradient(135deg, rgba(200, 121, 65, 0.15) 0%, rgba(26, 29, 34, 0.95) 40%, rgba(212, 168, 75, 0.08) 100%);
    border-radius: 16px;
    padding: 32px 36px;
    margin-bottom: 24px;
    color: white;
    border: 1px solid rgba(200, 121, 65, 0.15);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(200, 121, 65, 0.1);
    position: relative;
    overflow: hidden;
}
.briefing-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(200, 121, 65, 0.06) 0%, transparent 70%);
    pointer-events: none;
}
.briefing-greeting h2 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 4px;
    background: linear-gradient(135deg, #e8e6e3, #d4a84b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.briefing-greeting p {
    font-size: 13px;
    color: rgba(192, 197, 206, 0.5);
    margin-bottom: 24px;
    letter-spacing: 0.3px;
}
.briefing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.briefing-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}
.briefing-label {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent);
}
.briefing-value {
    font-size: 13px;
    font-weight: 500;
    color: rgba(232, 230, 227, 0.85);
    line-height: 1.4;
}

/* === TASK ARCHIVE FADE-OUT === */
.task-item.completing {
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

/* === HABITS PROGRESS BAR === */
.habits-progress-bar {
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
}
.habits-progress-fill {
    height: 100%;
    background: var(--green);
    border-radius: 3px;
    transition: width 0.4s ease;
}
.habits-motivation {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 8px;
    font-style: italic;
}

/* === IDEAS QUICK CAPTURE === */
.ideas-quick-capture {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}
.ideas-quick-capture .modal-input {
    flex: 1;
}
.quick-capture-btn {
    padding: 10px 20px;
    background: var(--copper-gradient);
    color: #0a0c0f;
    border: none;
    border-radius: 10px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}
.quick-capture-btn:hover { filter: brightness(1.1); }

/* === BREADCRUMB BAR === */
.breadcrumb-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 28px 8px;
    font-size: 12px;
}
.breadcrumb-item {
    color: var(--accent);
    cursor: pointer;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}
.breadcrumb-item:hover { text-decoration: underline; }
.breadcrumb-active {
    color: var(--text);
    cursor: default;
    font-weight: 600;
}
.breadcrumb-active:hover { text-decoration: none; }
.breadcrumb-sep {
    color: var(--text-muted);
    font-size: 14px;
    flex-shrink: 0;
}

/* === CLICKABLE ITEMS === */
.task-item[data-id] { cursor: pointer; }
.task-item[data-id]:hover { background: rgba(200, 121, 65, 0.06); border-radius: 8px; }
.cal-event-item-mini[data-event-id] { cursor: pointer; }
.cal-event-item-mini[data-event-id]:hover { background: rgba(200, 121, 65, 0.08); border-radius: 8px; }
.note-mini-row { cursor: pointer; }
.note-mini-row:hover { background: rgba(200, 121, 65, 0.06); border-radius: 8px; }
.resource-mini-card { cursor: pointer; }
.resource-mini-card:hover { background: rgba(200, 121, 65, 0.06); border-radius: 8px; }
.briefing-item[data-briefing-nav] { cursor: pointer; border-radius: 10px; padding: 12px; margin: -12px; transition: all 0.2s; }
.briefing-item[data-briefing-nav]:hover { background: rgba(200, 121, 65, 0.08); border-color: rgba(200, 121, 65, 0.12); }

/* === TODAY VIEW-ALL LINK === */
.today-view-all {
    text-align: center;
    padding: 8px;
    cursor: pointer;
}
.today-view-all:hover span { text-decoration: underline; }

/* === EVENT DATE LABEL === */
.cal-mini-date {
    font-size: 10px;
    font-weight: 600;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* === EDITABLE TASK DETAIL VIEW === */
.task-detail-title-input {
    width: 100%;
    font-size: 22px;
    font-weight: 700;
    background: transparent;
    border: 2px solid transparent;
    border-radius: 10px;
    color: var(--text);
    padding: 8px 12px;
    margin-bottom: 16px;
    font-family: inherit;
}
.task-detail-title-input:focus {
    border-color: rgba(200, 121, 65, 0.3);
    background: rgba(255, 255, 255, 0.02);
    outline: none;
}

.task-status-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.task-status-chip {
    padding: 6px 16px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: transparent;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}
.task-status-chip:hover { border-color: rgba(200, 121, 65, 0.3); }
.task-status-chip.active[data-status="todo"] {
    background: rgba(85, 88, 96, 0.2);
    border-color: rgba(139, 141, 147, 0.3);
    color: #8b8d93;
}
.task-status-chip.active[data-status="progress"] {
    background: rgba(200, 121, 65, 0.15);
    border-color: rgba(200, 121, 65, 0.3);
    color: var(--accent);
}
.task-status-chip.active[data-status="waiting"] {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.25);
    color: var(--amber);
}
.task-status-chip.active[data-status="done"] {
    background: rgba(45, 212, 168, 0.1);
    border-color: rgba(45, 212, 168, 0.25);
    color: var(--green);
}

.task-detail-select {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(200, 121, 65, 0.12);
    border-radius: 10px;
    color: var(--text);
    padding: 6px 10px;
    font-family: inherit;
    font-size: 13px;
}
.task-detail-select:focus { border-color: var(--accent); outline: none; }
.task-detail-select option { background: #1e2128; color: var(--text); }

.task-detail-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
}
.task-detail-toggle input[type="checkbox"] { accent-color: var(--accent); }

.task-detail-textarea {
    width: 100%;
    min-height: 120px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(200, 121, 65, 0.1);
    border-radius: 10px;
    color: var(--text);
    font-family: inherit;
    font-size: 13px;
    line-height: 1.6;
    resize: vertical;
}
.task-detail-textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 12px rgba(200, 121, 65, 0.08); }

/* === SUBTASKS === */
.subtask-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    border-bottom: 1px solid var(--border);
    transition: background 0.15s;
}
.subtask-item:last-child { border-bottom: none; }
.subtask-item:hover { background: rgba(200, 121, 65, 0.06); }
.subtask-item .task-check {
    width: 18px; height: 18px;
    border-radius: 50%;
    border: 2px solid var(--text-muted);
    background: none;
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: transparent;
    transition: all 0.2s;
}
.subtask-item .task-check.checked {
    background: var(--green);
    border-color: var(--green);
    color: white;
}
.subtask-item .subtask-text {
    flex: 1;
    font-size: 13px;
    color: var(--text);
}
.subtask-item .subtask-text.done {
    text-decoration: line-through;
    color: var(--text-muted);
}
.subtask-item .subtask-delete {
    opacity: 0;
    background: none;
    border: none;
    color: var(--red);
    cursor: pointer;
    font-size: 14px;
    padding: 2px 6px;
    border-radius: 4px;
    transition: opacity 0.2s;
}
.subtask-item:hover .subtask-delete { opacity: 1; }
.subtask-empty {
    padding: 16px;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
}

/* === FOCUS MODE === */
.focus-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #0a0c0f;
    background-image: radial-gradient(ellipse at 50% 50%, rgba(200, 121, 65, 0.05) 0%, transparent 60%);
    z-index: 500;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
}
.focus-overlay.open { display: flex; }

.focus-close-btn {
    position: absolute;
    top: 20px; right: 24px;
    background: none; border: none;
    color: rgba(255,255,255,0.4);
    font-size: 32px;
    cursor: pointer;
    z-index: 10;
}
.focus-close-btn:hover { color: white; }

.focus-screen { display: none; flex-direction: column; align-items: center; width: 100%; max-width: 420px; padding: 20px; }
.focus-screen.active { display: flex; }

.focus-task-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.4);
    margin-bottom: 8px;
}
.focus-task-name {
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 32px;
    line-height: 1.3;
    max-width: 360px;
}

/* Timer Ring */
.focus-timer-ring {
    position: relative;
    width: 260px;
    height: 260px;
    margin-bottom: 32px;
}
.focus-svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.focus-ring-bg {
    fill: none;
    stroke: rgba(255,255,255,0.08);
    stroke-width: 6;
}
.focus-ring-progress {
    fill: none;
    stroke: var(--accent);
    stroke-width: 6;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.5s linear;
    stroke-dasharray: 753.98;
    stroke-dashoffset: 0;
}
.focus-time-display {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-size: 52px;
    font-weight: 800;
    letter-spacing: 2px;
    font-variant-numeric: tabular-nums;
}

/* Duration Chips */
.focus-duration-chips {
    display: flex;
    gap: 10px;
    margin-bottom: 32px;
}
.focus-duration-chip {
    padding: 8px 20px;
    border: 2px solid rgba(255,255,255,0.15);
    border-radius: 20px;
    background: transparent;
    color: rgba(255,255,255,0.6);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.focus-duration-chip:hover { border-color: var(--accent); color: white; }
.focus-duration-chip.active {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

/* Action Buttons */
.focus-action-btn {
    padding: 14px 40px;
    border: none;
    border-radius: 12px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}
.focus-start-btn {
    background: var(--accent);
    color: white;
}
.focus-start-btn:hover { background: var(--accent-light); transform: scale(1.02); }

/* Controls */
.focus-controls {
    display: flex;
    gap: 12px;
    margin-bottom: 40px;
}
.focus-control-btn {
    padding: 10px 28px;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 10px;
    background: transparent;
    color: white;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.focus-control-btn:hover { border-color: var(--accent); background: rgba(35,131,226,0.15); }
.focus-stop { border-color: rgba(224,62,62,0.3); }
.focus-stop:hover { border-color: var(--red); background: rgba(224,62,62,0.15); color: #ff6b6b; }

/* Distraction Capture */
.focus-distraction-area {
    width: 100%;
    max-width: 380px;
    margin-top: 8px;
}
.focus-distraction-label {
    font-size: 12px;
    color: rgba(255,255,255,0.4);
    text-align: center;
    margin-bottom: 10px;
}
.focus-distraction-row {
    display: flex;
    gap: 8px;
}
.focus-distraction-input {
    flex: 1;
    padding: 10px 14px;
    background: rgba(255,255,255,0.06);
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    color: white;
    font-family: inherit;
    font-size: 13px;
    outline: none;
}
.focus-distraction-input:focus { border-color: var(--accent); }
.focus-distraction-input::placeholder { color: rgba(255,255,255,0.25); }
.focus-distraction-btn {
    padding: 10px 18px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 10px;
    color: rgba(255,255,255,0.7);
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}
.focus-distraction-btn:hover { background: rgba(255,255,255,0.12); color: white; }

.focus-distraction-list {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.focus-distraction-item {
    font-size: 11px;
    color: rgba(255,255,255,0.5);
    padding: 4px 10px;
    background: rgba(255,255,255,0.04);
    border-radius: 6px;
    transition: opacity 0.5s;
}

/* Celebration Screen */
.focus-celebration {
    text-align: center;
    margin-bottom: 32px;
}
.focus-celebration-icon {
    width: 80px; height: 80px;
    background: var(--green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: white;
    margin: 0 auto 20px;
    animation: focusPop 0.5s ease;
}
@keyframes focusPop {
    0% { transform: scale(0); }
    60% { transform: scale(1.2); }
    100% { transform: scale(1); }
}
.focus-celebration h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}
.focus-celebration p {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    line-height: 1.5;
}

.focus-complete-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 300px;
}
.focus-done-btn {
    background: var(--green);
    color: white;
}
.focus-done-btn:hover { background: #0e9885; }
.focus-continue-btn {
    background: transparent;
    border: 2px solid rgba(255,255,255,0.2);
    color: white;
}
.focus-continue-btn:hover { border-color: var(--accent); background: rgba(35,131,226,0.1); }

/* Focus button in task detail */
.focus-btn {
    padding: 10px 24px;
    background: var(--copper-gradient);
    color: #0a0c0f;
    border: none;
    border-radius: 10px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(200, 121, 65, 0.2);
}
.focus-btn:hover { filter: brightness(1.1); transform: scale(1.02); }

/* === JERRY NUDGE MESSAGES === */
.jerry-msg-nudge {
    border-left: 3px solid var(--accent);
    background: var(--accent-bg);
    white-space: pre-line;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .breadcrumb-bar { padding: 0 16px 8px; }
    #sidebar { transform: translateX(-100%); box-shadow: 2px 0 20px rgba(0,0,0,0.5); width: 280px; }
    #sidebar.open { transform: translateX(0); }

    /* Bigger tap targets on mobile for domain and area links */
    .domain-link, .area-link {
        padding: 10px 12px;
        font-size: 14px;
        min-height: 40px;
        display: flex;
        align-items: center;
    }
    #content { margin-left: 0; }
    #menu-toggle { display: block; }
    .today-grid { grid-template-columns: 1fr; }
    .covey-grid { grid-template-columns: 1fr; }
    .section { padding: 16px; }
    #topbar { padding: 12px 16px; }
    #quick-add { padding: 10px 16px; }

    .task-status-bar { gap: 6px; }
    .task-status-chip { padding: 5px 12px; font-size: 12px; }
    .task-detail-title-input { font-size: 18px; padding: 6px 10px; }

    .project-ops-grid { grid-template-columns: 1fr; }
    .briefing-grid { grid-template-columns: repeat(2, 1fr); }
    .cal-week-grid { gap: 0; font-size: 10px; }
    .cal-week-col { min-height: 80px; padding: 4px 2px; }
    .cal-week-daynum { font-size: 13px; }
    .cal-top-row { flex-wrap: wrap; gap: 10px; }

    .modal-card { width: 100%; margin: 8px; }

    #jerry-panel {
        width: calc(100vw - 16px);
        height: calc(100vh - 80px);
        bottom: 8px; right: 8px;
    }
    #jerry-fab { bottom: 16px; right: 16px; width: 48px; height: 48px; font-size: 18px; }

    .area-detail-grid { grid-template-columns: 1fr; }
}

/* =============================================
   COMMAND CENTRE OVERHAUL - Feb 21, 2026
   Tasks on Today, Collapsible Habits, Area Detail
   ============================================= */

/* --- Overdue Task Highlighting --- */
.task-overdue {
    border-left: 3px solid var(--red);
    background: rgba(248, 113, 113, 0.05);
}
.task-overdue .task-meta::before {
    content: 'OVERDUE';
    color: var(--red);
    font-weight: 600;
    font-size: 0.7rem;
    letter-spacing: 0.04em;
    margin-right: 6px;
}

/* --- Toggle Arrow (Collapsible Sections) --- */
.toggle-arrow {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: inline-block;
    line-height: 1;
}

/* --- Habits Toggle Header --- */
.habits-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    -webkit-user-select: none;
    user-select: none;
    transition: background 0.15s ease;
    border-radius: var(--radius) var(--radius) 0 0;
    padding: 12px 16px;
}
.habits-toggle:hover,
.streaks-toggle:hover,
.snapshot-toggle:hover {
    background: rgba(200, 121, 65, 0.06);
}
.streaks-toggle,
.snapshot-toggle {
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
}

/* --- Collapsible Body Transition --- */
.habits-collapsible {
    overflow: hidden;
}

/* --- Area Detail View --- */
.area-detail-header h2 {
    color: var(--text);
    font-weight: 600;
}
.area-detail-header p {
    font-size: 0.875rem;
    line-height: 1.5;
}

.area-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.area-detail-grid .card.wide {
    grid-column: span 1;
}
.area-detail-grid .card.wide:first-child {
    grid-column: 1 / -1;
}

.area-dot {
    flex-shrink: 0;
}

/* Area back button styling */
#area-back-btn {
    font-size: 0.875rem;
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius);
    padding: 6px 14px;
    cursor: pointer;
    transition: all 0.15s ease;
}
#area-back-btn:hover {
    color: var(--accent);
    border-color: rgba(200, 121, 65, 0.2);
    background: rgba(200, 121, 65, 0.06);
}

/* =============================================
   LIFE EXPANSION - Feb 21, 2026
   Journal, Scoreboard, People, Review, Health
   ============================================= */

/* --- Nav Group Labels --- */
.nav-group-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    padding: 16px 20px 4px;
    text-transform: uppercase;
    list-style: none;
}
.nav-group-label:first-child { padding-top: 8px; }

/* --- JOURNAL --- */
.journal-nav { text-align: center; margin-bottom: 20px; }
.journal-mood-row {
    display: flex; gap: 24px; flex-wrap: wrap;
    margin-bottom: 20px; align-items: flex-start;
}
.journal-mood-group { flex: 1; min-width: 200px; }
.journal-label { font-size: 13px; font-weight: 600; color: var(--text-secondary); display: block; margin-bottom: 8px; }
.journal-mood-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.journal-mood-chip {
    padding: 8px 16px; border-radius: 20px; border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.03); color: var(--text); cursor: pointer;
    font-size: 13px; transition: all 0.15s ease;
}
.journal-mood-chip:hover { border-color: var(--accent); }
.journal-mood-chip.active { background: var(--accent); color: white; border-color: var(--accent); }
.journal-mood-chip[data-mood="great"].active { background: #10b981; border-color: #10b981; }
.journal-mood-chip[data-mood="good"].active { background: #6366f1; border-color: #6366f1; }
.journal-mood-chip[data-mood="okay"].active { background: #f59e0b; border-color: #f59e0b; }
.journal-mood-chip[data-mood="low"].active { background: #f97316; border-color: #f97316; }
.journal-mood-chip[data-mood="rough"].active { background: #ef4444; border-color: #ef4444; }

.journal-slider { width: 100%; accent-color: var(--accent); }
.journal-energy-val { font-size: 24px; font-weight: 700; color: var(--accent); display: block; text-align: center; }
.journal-hint { font-size: 12px; color: var(--text-muted); font-weight: 400; }
.journal-line-input {
    width: 100%; padding: 10px 12px; border: 1px solid var(--border);
    border-radius: var(--radius); background: var(--bg); color: var(--text);
    font-size: 14px; margin-bottom: 8px; box-sizing: border-box;
}
.journal-line-input:focus { border-color: var(--accent); outline: none; }
.journal-textarea {
    width: 100%; padding: 12px; border: 1px solid var(--border);
    border-radius: var(--radius); background: var(--bg); color: var(--text);
    font-size: 14px; min-height: 80px; resize: vertical; box-sizing: border-box;
    font-family: inherit;
}
.journal-textarea:focus { border-color: var(--accent); outline: none; }
.journal-freeform { min-height: 120px; }
.journal-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.journal-save-row { display: flex; justify-content: flex-end; align-items: center; gap: 12px; margin-top: 16px; }
.journal-save-status { font-size: 13px; }

/* --- SCOREBOARD --- */
.scorecard-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.scorecard-table th {
    text-align: left; padding: 10px 12px; font-weight: 600; font-size: 12px;
    text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted);
    border-bottom: 2px solid var(--border);
}
.scorecard-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); }
.scorecard-category-row td {
    font-weight: 700; font-size: 12px; text-transform: uppercase;
    letter-spacing: 0.06em; color: var(--accent); padding-top: 16px;
    border-bottom: 1px solid var(--accent);
}
.scorecard-owner { color: var(--text-muted); font-size: 13px; }
.scorecard-actual { font-weight: 600; }
.scorecard-status {
    display: inline-block; padding: 3px 10px; border-radius: 12px;
    font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em;
}
.score-green { background: #10b98120; color: #10b981; }
.score-yellow { background: #f59e0b20; color: #f59e0b; }
.score-red { background: #ef444420; color: #ef4444; }
.score-pending { background: var(--bg); color: var(--text-muted); }

/* --- ROCKS --- */
.rock-card { margin-bottom: 16px; padding: 20px; }
.rock-card.rock-on-track { border-left: 4px solid #10b981; }
.rock-card.rock-at-risk { border-left: 4px solid #f59e0b; }
.rock-card.rock-off-track { border-left: 4px solid #ef4444; }
.rock-card.rock-completed { border-left: 4px solid var(--accent); }
.rock-header { margin-bottom: 12px; }
.rock-title-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.rock-number { font-size: 12px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; }
.rock-title { font-size: 18px; font-weight: 600; margin: 0; }
.rock-meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.rock-committed { font-size: 11px; padding: 3px 10px; border-radius: 12px; background: #10b98120; color: #10b981; font-weight: 600; }
.rock-aspirational { font-size: 11px; padding: 3px 10px; border-radius: 12px; background: #6366f120; color: #6366f1; font-weight: 600; }
.rock-status-badge { font-size: 11px; padding: 3px 10px; border-radius: 12px; font-weight: 600; }
.rock-status-badge.rock-on-track { background: #10b98120; color: #10b981; }
.rock-status-badge.rock-at-risk { background: #f59e0b20; color: #f59e0b; }
.rock-status-badge.rock-off-track { background: #ef444420; color: #ef4444; }
.rock-score { font-size: 14px; font-weight: 700; color: var(--text); }
.rock-objective { font-size: 14px; color: var(--text-secondary); margin-bottom: 16px; line-height: 1.5; }
.rock-kr-table { width: 100%; border-collapse: collapse; font-size: 13px; margin-bottom: 12px; }
.rock-kr-table th { text-align: left; padding: 6px 8px; font-size: 11px; color: var(--text-muted); border-bottom: 1px solid var(--border); }
.rock-kr-table td { padding: 6px 8px; border-bottom: 1px solid var(--border); }
.rock-why { font-size: 13px; color: var(--text-muted); font-style: italic; margin-top: 12px; }

/* --- HEALTH --- */
.health-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.health-mini-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; text-align: center; }
.health-mini-stat { padding: 8px 4px; }
.health-mini-value { display: block; font-size: 16px; font-weight: 700; color: var(--text); }
.health-mini-label { display: block; font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.health-stat-big { font-size: 28px; font-weight: 700; color: var(--text); }
.health-stat-unit { font-size: 14px; font-weight: 400; color: var(--text-muted); }
.health-stat-trend { font-size: 13px; margin-top: 4px; }
.health-trend-good { color: #10b981; }
.health-trend-bad { color: #ef4444; }
.health-stat-target { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.health-stat-sub { font-size: 13px; color: var(--text-secondary); margin-top: 4px; }
.health-workout-list { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.health-workout-tag { font-size: 12px; padding: 4px 10px; border-radius: 12px; background: var(--accent-bg); color: var(--accent); }
.health-recovery-items { display: flex; flex-direction: column; gap: 8px; }
.health-recovery-item { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.health-recovery-count { font-weight: 700; font-size: 18px; color: var(--accent); }
.health-log-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.health-log-field label { display: block; font-size: 12px; font-weight: 600; color: var(--text-muted); margin-bottom: 4px; }
.health-log-field input, .health-log-field select {
    width: 100%; padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--radius);
    background: var(--bg); color: var(--text); font-size: 14px; box-sizing: border-box;
}
.health-log-checks {
    display: flex; gap: 16px; margin-top: 12px; font-size: 14px;
}
.health-log-checks label { display: flex; align-items: center; gap: 6px; cursor: pointer; }

/* --- PEOPLE --- */
.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.person-card {
    display: flex; align-items: flex-start; gap: 12px; padding: 16px;
    background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius);
    cursor: pointer; transition: all 0.15s ease;
}
.person-card:hover { border-color: rgba(200, 121, 65, 0.2); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,0,0,0.3); }
.person-card.person-overdue { border-left: 3px solid #f59e0b; }
.person-avatar {
    width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center;
    justify-content: center; font-weight: 700; font-size: 14px; color: white; flex-shrink: 0;
}
.person-info { flex: 1; min-width: 0; }
.person-name { font-weight: 600; font-size: 14px; color: var(--text); }
.person-meta { display: flex; gap: 8px; align-items: center; margin-top: 4px; flex-wrap: wrap; }
.person-rel-tag { font-size: 11px; padding: 2px 8px; border-radius: 10px; font-weight: 600; text-transform: capitalize; }
.person-company { font-size: 12px; color: var(--text-muted); }
.person-last-contact { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.person-contact-overdue { color: #f59e0b; font-weight: 600; }
.person-birthday { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* --- WEEKLY REVIEW --- */
.review-summary-grid {
    display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 20px;
}
.review-score-card { text-align: center; padding: 16px 8px; }
.review-score-ring { margin-bottom: 8px; }
.review-score-number { font-size: 32px; font-weight: 700; color: var(--accent); }
.review-mini-score { font-size: 28px; font-weight: 700; color: var(--text); display: block; margin-bottom: 4px; }
.review-score-label { font-size: 12px; color: var(--text-muted); font-weight: 500; }
.review-score-great { color: #10b981 !important; }
.review-score-good { color: #6366f1 !important; }
.review-score-okay { color: #f59e0b !important; }
.review-score-low { color: #ef4444 !important; }
.review-reflection-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.review-scoring-grid { display: flex; flex-direction: column; gap: 16px; }
.review-score-row { display: flex; align-items: center; gap: 12px; }
.review-score-row label { width: 140px; font-size: 14px; font-weight: 500; color: var(--text); flex-shrink: 0; }
.review-slider { flex: 1; accent-color: var(--accent); }
.review-slider-val { font-size: 18px; font-weight: 700; color: var(--accent); width: 30px; text-align: center; }
.review-habits-list { display: flex; flex-direction: column; gap: 8px; }
.review-habit-row { display: flex; align-items: center; gap: 10px; }
.review-habit-name { width: 120px; font-size: 13px; font-weight: 500; flex-shrink: 0; }
.review-habit-bar { flex: 1; height: 8px; background: var(--bg); border-radius: 4px; overflow: hidden; }
.review-habit-fill { height: 100%; background: var(--accent); border-radius: 4px; transition: width 0.3s ease; }
.review-habit-count { font-size: 13px; color: var(--text-muted); width: 30px; text-align: right; }

/* --- Responsive for new sections --- */
@media (max-width: 768px) {
    .journal-two-col { grid-template-columns: 1fr; }
    .journal-mood-row { flex-direction: column; }
    .health-grid { grid-template-columns: 1fr; }
    .health-log-grid { grid-template-columns: 1fr 1fr; }
    .health-mini-grid { grid-template-columns: repeat(2, 1fr); }
    .review-summary-grid { grid-template-columns: repeat(3, 1fr); }
    .review-reflection-grid { grid-template-columns: 1fr; }
    .review-score-row { flex-wrap: wrap; }
    .review-score-row label { width: 100%; }
    .people-grid { grid-template-columns: 1fr; }
    .scorecard-table { font-size: 12px; }
    .scorecard-table th, .scorecard-table td { padding: 8px 6px; }
    .rock-kr-table { font-size: 12px; }
    .habits-stats-banner { gap: 8px; }
    .habit-stat-pill { min-width: 70px; padding: 8px 8px; }
    .habit-detail-stats-grid { grid-template-columns: 1fr 1fr; }
}

/* ============================================
   SAVE TOAST
   ============================================ */
.save-toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(12px);
    background: rgba(20, 22, 28, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 8px 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 9999;
    white-space: nowrap;
}
.save-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.save-toast.toast-saved {
    border-color: rgba(45, 212, 168, 0.3);
    color: var(--green);
}
.save-toast.toast-error {
    border-color: rgba(248, 113, 113, 0.3);
    color: var(--red);
}

/* ============================================
   HABIT STATS BANNER
   ============================================ */
.habits-stats-banner {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.habit-stat-pill {
    flex: 1;
    min-width: 75px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 10px;
    text-align: center;
}
.habit-stat-pill .stat-value {
    font-size: 18px;
    font-weight: 800;
    color: var(--accent);
    display: block;
    line-height: 1.2;
}
.habit-stat-pill .stat-label {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-top: 3px;
    display: block;
}
.habit-stat-pill.green .stat-value { color: var(--green); }
.habit-stat-pill.amber .stat-value { color: var(--amber); }

/* ============================================
   HABIT ITEM ENHANCED
   ============================================ */
.habit-item-stats {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1px;
    flex-shrink: 0;
}
.habit-best-streak {
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 500;
}
.habit-name-clickable {
    cursor: pointer;
    transition: color 0.15s;
}
.habit-name-clickable:hover {
    color: var(--accent);
}

/* ============================================
   HABIT TIMER BUTTON
   ============================================ */
.habit-timer-btn {
    background: none;
    border: 1px solid rgba(200, 121, 65, 0.3);
    border-radius: 8px;
    color: var(--accent);
    font-size: 11px;
    padding: 5px 10px;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
    white-space: nowrap;
}
.habit-timer-btn:hover {
    background: var(--accent-bg);
    border-color: var(--accent);
}

/* ============================================
   HABIT DETAIL VIEW
   ============================================ */
.habit-detail-header {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 4px;
    color: var(--text);
}
.habit-detail-meta {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 20px;
    text-transform: capitalize;
}
.habit-detail-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
}
.habit-heatmap {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
}
.heatmap-cell {
    aspect-ratio: 1;
    border-radius: 3px;
    background: var(--surface);
    border: 1px solid var(--border);
}
.heatmap-cell.done {
    background: var(--green);
    border-color: var(--green);
}
.heatmap-cell.today {
    border-color: var(--accent);
    border-width: 2px;
}
.heatmap-cell.future {
    opacity: 0.15;
}

/* ============ CALI BEAR DASHBOARD ============ */

.cali-phase-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: var(--card-bg);
    border-radius: var(--radius);
    margin-bottom: 16px;
    border: 1px solid var(--border);
}
.cali-phase-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}
.cali-phase-banner strong {
    color: var(--text);
    font-size: 0.95rem;
}
.cali-phase-note {
    display: block;
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-top: 2px;
}

/* Quick stats grid */
.cali-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}
.cali-stat-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px;
    background: var(--card-bg);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}
.cali-stat-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}
.cali-stat-value {
    display: block;
    color: var(--text);
    font-weight: 600;
    font-size: 1rem;
}
.cali-stat-label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.75rem;
}

/* Schedule timeline */
.cali-schedule {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.cali-task {
    display: grid;
    grid-template-columns: 70px 36px 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 6px;
    transition: background 0.15s;
}
.cali-task:hover {
    background: rgba(255, 255, 255, 0.03);
}
.cali-task-past {
    opacity: 0.45;
}
.cali-task-current {
    background: var(--accent-bg);
    border-left: 3px solid var(--accent);
}
.cali-task-upcoming {
    opacity: 0.85;
}
.cali-task-time {
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}
.cali-task-icon {
    font-size: 1.2rem;
    text-align: center;
}
.cali-task-name {
    color: var(--text);
    font-weight: 500;
    font-size: 0.88rem;
}
.cali-task-detail {
    color: var(--text-secondary);
    font-size: 0.75rem;
    margin-top: 2px;
}
.cali-task-duration {
    color: var(--text-muted);
    font-size: 0.75rem;
    white-space: nowrap;
}

/* Two-column info grid */
.cali-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 16px;
}

/* Medication items */
.cali-med-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}
.cali-med-item:last-of-type {
    border-bottom: none;
}
.cali-med-item strong {
    color: var(--text);
    font-size: 0.85rem;
}
.cali-med-item span {
    color: var(--text-secondary);
    font-size: 0.78rem;
}
.cali-med-until {
    color: var(--text-muted) !important;
    font-size: 0.72rem !important;
    font-style: italic;
}
.cali-section-divider {
    height: 1px;
    background: var(--border);
    margin: 12px 0;
}
.cali-sub-header {
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

/* Condition items */
.cali-condition-item {
    padding: 6px 0;
    color: var(--text-secondary);
    font-size: 0.82rem;
    border-bottom: 1px solid var(--border);
}
.cali-condition-item:last-of-type {
    border-bottom: none;
}
.cali-vet-info {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.6;
}
.cali-vet-info strong {
    color: var(--text);
}

/* Exercise rules */
.cali-rules-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.cali-rule {
    padding: 12px;
    border-radius: 8px;
}
.cali-rule strong {
    display: block;
    margin-bottom: 8px;
    font-size: 0.85rem;
}
.cali-rule ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.cali-rule li {
    padding: 3px 0;
    font-size: 0.78rem;
    color: var(--text-secondary);
}
.cali-rule li::before {
    margin-right: 6px;
}
.cali-rule-yes {
    background: rgba(45, 212, 168, 0.06);
    border: 1px solid rgba(45, 212, 168, 0.15);
}
.cali-rule-yes strong { color: var(--green); }
.cali-rule-yes li::before { content: '\2713'; color: var(--green); }
.cali-rule-no {
    background: rgba(248, 113, 113, 0.06);
    border: 1px solid rgba(248, 113, 113, 0.15);
}
.cali-rule-no strong { color: var(--red); }
.cali-rule-no li::before { content: '\2717'; color: var(--red); }

/* Responsive - Cali */
@media (max-width: 768px) {
    .cali-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .cali-info-grid { grid-template-columns: 1fr; }
    .cali-rules-grid { grid-template-columns: 1fr; }
    .cali-task { grid-template-columns: 60px 30px 1fr; }
    .cali-task-duration { display: none; }
}

/* =============================================
   GUITAR Section - Rock Theme
   ============================================= */

/* Quote banner */
.guitar-quote-banner {
    text-align: center;
    padding: 20px 24px;
    margin-bottom: 16px;
    background: linear-gradient(135deg, rgba(200, 50, 50, 0.08) 0%, rgba(200, 121, 65, 0.06) 100%);
    border: 1px solid rgba(200, 50, 50, 0.15);
    border-radius: var(--radius);
    border-left: 4px solid #c83232;
}
.guitar-quote-text {
    color: var(--text);
    font-style: italic;
    font-size: 0.95rem;
    line-height: 1.6;
}
.guitar-quote-author {
    color: #c83232;
    font-size: 0.8rem;
    margin-top: 6px;
    font-weight: 600;
}

/* Stats grid */
.guitar-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}
.guitar-stat-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px;
    background: var(--card-bg);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}
.guitar-stat-icon { font-size: 1.4rem; flex-shrink: 0; }
.guitar-stat-value {
    display: block;
    color: var(--text);
    font-weight: 700;
    font-size: 1.1rem;
}
.guitar-stat-value.guitar-streak-active { color: #c83232; }
.guitar-stat-label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.75rem;
}
.guitar-today-card { transition: all 0.2s; }
.guitar-today-done {
    border-color: rgba(45, 212, 168, 0.3);
    background: rgba(45, 212, 168, 0.06);
}
.guitar-today-done .guitar-stat-value { color: var(--green); }
.guitar-today-done .guitar-stat-icon { color: var(--green); }

/* Practice timer */
.guitar-timer-card {
    border: 1px solid rgba(200, 50, 50, 0.2);
}
.guitar-timer-body { text-align: center; padding: 24px 16px; }
.guitar-timer-display {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: 4px;
    font-variant-numeric: tabular-nums;
    transition: color 0.3s;
}
.guitar-timer-running { color: #c83232; }
.guitar-timer-done {
    color: var(--green);
    animation: guitar-pulse 1s infinite;
}
@keyframes guitar-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}
.guitar-timer-target {
    font-size: 0.8rem;
    color: var(--text-secondary);
}
.guitar-timer-bar {
    width: 100%;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    margin: 16px 0 20px;
    overflow: hidden;
}
.guitar-timer-fill {
    height: 100%;
    background: linear-gradient(90deg, #c83232, #e04040);
    border-radius: 2px;
    transition: width 1s linear;
}
.guitar-timer-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
}
.guitar-btn {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 10px 28px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.15s;
}
.guitar-btn-start {
    background: #c83232;
    color: #fff;
    box-shadow: 0 3px 12px rgba(200, 50, 50, 0.3);
}
.guitar-btn-start:hover { background: #d43d3d; transform: translateY(-1px); }
.guitar-btn-pause {
    background: #333;
    color: #fff;
}
.guitar-btn-pause:hover { background: #444; }
.guitar-btn-reset {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}
.guitar-btn-reset:hover { color: var(--text); border-color: var(--text-secondary); }
.guitar-btn-done {
    background: var(--green);
    color: #000;
    font-weight: 700;
    box-shadow: 0 3px 12px rgba(45, 212, 168, 0.3);
}
.guitar-btn-done:hover { transform: translateY(-1px); }

/* Two column layout */
.guitar-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 0;
}

/* Current focus */
.guitar-focus-title {
    color: var(--text);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 4px;
}
.guitar-focus-detail {
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-bottom: 10px;
}
.guitar-positions { display: flex; flex-direction: column; gap: 4px; margin-bottom: 8px; }
.guitar-position {
    display: flex;
    justify-content: space-between;
    padding: 6px 10px;
    background: rgba(200, 50, 50, 0.04);
    border-radius: 4px;
    font-size: 0.8rem;
}
.guitar-position-name { color: var(--text); font-weight: 500; }
.guitar-position-frets { color: var(--text-muted); }
.guitar-section-divider {
    height: 1px;
    background: var(--border);
    margin: 12px 0;
}

/* Songs */
.guitar-song-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}
.guitar-song-item:last-of-type { border-bottom: none; }
.guitar-song-title { color: var(--text); font-weight: 500; font-size: 0.9rem; }
.guitar-song-artist { color: var(--text-secondary); font-size: 0.75rem; margin-top: 2px; }
.guitar-song-status {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 8px;
    border-radius: 4px;
}
.guitar-status-in-progress { background: rgba(200, 50, 50, 0.15); color: #e05050; }
.guitar-status-up-next { background: var(--amber-bg); color: var(--amber); }
.guitar-sub-header {
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}
.guitar-wishlist { display: flex; flex-direction: column; gap: 4px; }
.guitar-wishlist-item {
    padding: 6px 10px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 4px;
}

/* Lessons */
.guitar-lesson-item {
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}
.guitar-lesson-item:last-child { border-bottom: none; }
.guitar-lesson-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}
.guitar-lesson-number {
    font-weight: 600;
    color: #c83232;
    font-size: 0.85rem;
}
.guitar-lesson-date {
    color: var(--text-muted);
    font-size: 0.8rem;
}
.guitar-lesson-topics { display: flex; flex-direction: column; gap: 3px; }
.guitar-lesson-topic {
    padding-left: 12px;
    position: relative;
    font-size: 0.82rem;
    color: var(--text-secondary);
}
.guitar-lesson-topic::before {
    content: '';
    position: absolute;
    left: 0;
    top: 7px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--text-muted);
}
.guitar-lesson-materials {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}
.guitar-material-tag {
    font-size: 0.7rem;
    padding: 2px 8px;
    background: rgba(200, 50, 50, 0.1);
    color: #c83232;
    border-radius: 4px;
    font-family: monospace;
}
.guitar-lesson-notes {
    margin-top: 8px;
    padding: 8px 12px;
    background: rgba(200, 121, 65, 0.06);
    border-left: 3px solid var(--accent);
    border-radius: 0 4px 4px 0;
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-style: italic;
}

/* Curriculum */
.guitar-curriculum-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.guitar-curriculum-section {
    padding: 12px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
}
.guitar-curriculum-title {
    color: #c83232;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.guitar-curriculum-item {
    font-size: 0.8rem;
    color: var(--text-secondary);
    padding: 3px 0;
}

/* Quick links */
.guitar-links { display: flex; flex-direction: column; gap: 8px; }
.guitar-link-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(200, 50, 50, 0.04);
    border: 1px solid rgba(200, 50, 50, 0.1);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.15s;
}
.guitar-link-item:hover {
    background: rgba(200, 50, 50, 0.08);
    border-color: rgba(200, 50, 50, 0.2);
}
.guitar-link-icon { font-size: 1.4rem; }
.guitar-link-name { color: var(--text); font-weight: 500; font-size: 0.9rem; }
.guitar-link-detail { color: var(--text-secondary); font-size: 0.75rem; }

/* Instructor bar */
.guitar-instructor-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--card-bg);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    margin-top: 16px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}
.guitar-instructor-bar strong { color: var(--text); }
.guitar-instructor-contact { color: var(--text-muted); }

/* Responsive - Guitar */
@media (max-width: 768px) {
    .guitar-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .guitar-two-col { grid-template-columns: 1fr; }
    .guitar-curriculum-grid { grid-template-columns: 1fr; }
    .guitar-timer-display { font-size: 2.5rem; }
}
