/* ═══════════════════════════════════════
   FOCUS DASHBOARD — Khio Study
   ═══════════════════════════════════════ */

/* View container */
#view-focus { overflow: hidden !important; }

/* Background */
.focus-dashboard {
    position: relative; width: 100%; height: 100%; overflow: hidden;
    background: #0a0a0a; flex: 1;
}
.focus-dashboard.focus-bg-plain {
    background: #111315;
}
.focus-bg {
    position: absolute; inset: 0; z-index: 0;
    background-size: cover; background-position: center; background-repeat: no-repeat;
    transition: opacity 0.6s ease;
}
.focus-dashboard.focus-bg-plain .focus-bg {
    background: none !important;
    background-image: none !important;
}
.focus-bg video {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.focus-bg-overlay {
    position: absolute; inset: 0; z-index: 1;
    background: rgba(0,0,0,0.25);
    pointer-events: none;
    transition: background 0.6s ease;
}
.focus-dashboard.focus-bg-plain .focus-bg-overlay {
    background: transparent !important;
    opacity: 0 !important;
}
.focus-dashboard.focus-studying .focus-bg-overlay { background: rgba(0,0,0,0.08); }

.khio-day.focus-bg-plain {
    background: #f7f5f2;
}
.focus-theme-dark.focus-bg-plain {
    background: #16181d;
}
.focus-theme-blue.focus-bg-plain {
    background: #0f1b27;
}
.focus-theme-slate.focus-bg-plain {
    background: #171c22;
}

/* Layout — absolute positioning matched to C&C (base: 1920x992) */
.focus-layout {
    position: relative; z-index: 2;
    width: 100%; height: 100%;
    text-shadow: 0 1px 3px rgba(0,0,0,0.6), 0 0 8px rgba(0,0,0,0.3);
}
.focus-left, .focus-center, .focus-right { display: contents; }
.focus-layout [data-widget] {
    position: absolute;
    z-index: 10;
}
/* Stats: 163,84 → 388x134 */
.focus-layout [data-widget="stats"]     { left: 8.5%; top: 8.5%; width: 20.2%; height: 13.5%; }
/* Quote: equal gap below stats */
.focus-layout [data-widget="quote"]     { left: 8.5%; top: 23%; width: 20.4%; height: 11%; }
/* Schedule: equal gap below quote */
.focus-layout [data-widget="schedule"]  { left: 8.5%; top: 35%; width: 20.5%; height: 28%; overflow: hidden; }
/* Timer: 565,83 → 789x493 */
.focus-layout [data-widget="timer"]     { left: 29.5%; top: 8.4%; width: 41.2%; height: 49.7%; }
/* Deadlines: 1366,88 → 383x186 */
.focus-layout [data-widget="deadlines"] { left: 71.2%; top: 8.9%; width: 20%; height: 18.7%; }
/* Tasks: 1365,284 → 387x338 */
.focus-layout [data-widget="tasks"]     { left: 71.2%; top: 28.6%; width: 20.2%; height: auto; max-height: 60%; overflow-y: auto; overflow-x: hidden; }

.focus-timer-card {
    background: rgba(10,10,10,0.3);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 18px;
    box-shadow: 0 0 0 0.5px rgba(255,255,255,0.06), 0 8px 32px rgba(0,0,0,0.3);
    padding: 40px 60px 36px;
    display: flex; flex-direction: column; align-items: center;
    justify-content: center;
    width: 100%; height: 100%;
}

/* Glass Cards */
.focus-card {
    background: rgba(20,20,20,0.4);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 16px;
    padding: 18px;
    color: #e5e5e5;
    box-shadow: 0 0 0 0.5px rgba(255,255,255,0.06), 0 8px 32px rgba(0,0,0,0.3);
}
.focus-card-title {
    font-size: 12px; font-weight: 900; text-transform: uppercase;
    letter-spacing: 0.06em; color: #fff;
    margin-bottom: 14px; display: flex; align-items: center; gap: 6px;
    text-shadow: 2px 2px 0 rgba(0,0,0,0.4), 0 4px 10px rgba(0,0,0,0.2);
    -webkit-text-stroke: 0.5px rgba(0,0,0,0.2);
    paint-order: stroke fill;
}
.focus-card-title i { width: 14px; height: 14px; }

/* ── Timer ── */
/* Stopwatch toggle uses .focus-timer-settings styling, just add active state */
#focusModeToggle.active { background: rgba(249,115,22,0.2); color: #f97316; }
.focus-timer-display {
    font-size: clamp(80px, 12vw, 140px);
    font-weight: 900; color: #fff;
    letter-spacing: -0.02em;
    line-height: 1;
    text-shadow: 4px 4px 0 rgba(0,0,0,0.4), 0 8px 20px rgba(0,0,0,0.3);
    -webkit-text-stroke: 2px rgba(0,0,0,0.25);
    paint-order: stroke fill;
    user-select: none;
    font-variant-numeric: tabular-nums;
}
.focus-timer-controls {
    display: flex; align-items: center; gap: 10px;
    margin-top: 24px;
}
.focus-timer-start {
    padding: 14px 48px;
    border-radius: 14px;
    border: none;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: 16px; font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
}
.focus-timer-start:hover { background: rgba(255,255,255,0.2); }
.focus-timer-start.running { background: rgba(239,68,68,0.3); }
.focus-timer-start.running:hover { background: rgba(239,68,68,0.45); }
.focus-timer-start.on-break { background: rgba(34,197,94,0.3); }
.focus-timer-settings {
    width: 40px; height: 40px; border-radius: 10px;
    border: none;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.6);
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: all 0.15s;
}
.focus-timer-settings:hover { background: rgba(255,255,255,0.15); color: #fff; }
.focus-timer-settings i { width: 16px; height: 16px; }

/* ── Stats Card ── */
.focus-stats-row {
    display: flex; gap: 16px; justify-content: space-around; text-align: center;
}
.focus-stat-item {}
.focus-stat-value {
    font-size: 28px; font-weight: 800; color: #fff;
    line-height: 1.1;
}
.focus-stat-value .unit { font-size: 14px; font-weight: 600; color: rgba(255,255,255,0.5); }
.focus-stat-label {
    font-size: 10px; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.04em; color: rgba(255,255,255,0.4);
    margin-top: 4px;
}

/* ── Quote Card ── */
.focus-quote-text {
    font-size: 15px; font-style: italic; line-height: 1.5;
    color: rgba(255,255,255,0.85);
    margin-bottom: 10px;
}
.focus-quote-footer {
    display: flex; align-items: center; justify-content: space-between;
}
.focus-quote-author {
    font-size: 12px; color: rgba(255,255,255,0.4);
}
.focus-quote-new {
    font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.5);
    background: none; border: none; cursor: pointer; font-family: inherit;
    transition: color 0.15s;
}
.focus-quote-new:hover { color: #fff; }

/* ── Schedule Card ── */
.focus-schedule-week {
    display: flex; flex-direction: column; gap: 3px;
    flex: 1; overflow-y: auto;
}
.focus-schedule-day {
    display: flex; align-items: center; gap: 8px;
    padding: 5px 8px; border-radius: 6px;
    font-size: 12px; color: rgba(255,255,255,0.5);
}
.focus-schedule-day.today {
    background: rgba(255,255,255,0.06);
    color: #fff;
}
.focus-schedule-day-label {
    width: 32px; font-weight: 700; font-size: 11px;
    text-transform: uppercase; flex-shrink: 0;
}
.focus-schedule-day-date {
    width: 20px; font-size: 12px; font-weight: 600; flex-shrink: 0;
    text-align: center;
}
.focus-schedule-day-events {
    flex: 1; font-size: 11px; color: rgba(255,255,255,0.4);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.focus-schedule-day.today .focus-schedule-day-events { color: rgba(255,255,255,0.7); }
.focus-schedule-day-dot {
    width: 5px; height: 5px; border-radius: 50%;
    background: var(--study-accent, #e8853a);
    flex-shrink: 0;
}

/* ── Deadlines ── */
.focus-deadline-empty {
    text-align: center; padding: 16px 0;
    font-size: 13px; color: rgba(255,255,255,0.4); font-style: italic;
}
#focusDeadlineList::-webkit-scrollbar { display: none; }
.focus-deadline-add {
    width: 100%; padding: 10px;
    border-radius: 10px; border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.06);
    color: #fff; font-size: 13px; font-weight: 600;
    cursor: pointer; font-family: inherit;
    display: flex; align-items: center; justify-content: center; gap: 6px;
    transition: all 0.15s;
}
.focus-deadline-add:hover { background: rgba(255,255,255,0.12); }
.focus-deadline-item {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.05);
}
.focus-deadline-item:last-child { border-bottom: none; }
.focus-deadline-name { flex: 1; font-size: 13px; font-weight: 500; }
.focus-deadline-countdown {
    font-size: 11px; font-weight: 700; padding: 3px 8px;
    border-radius: 6px; background: rgba(239,68,68,0.15); color: #ef4444;
}
.focus-deadline-countdown.soon { background: rgba(234,179,8,0.15); color: #eab308; }
.focus-deadline-countdown.later { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.5); }
.focus-deadline-delete {
    background: none; border: none; color: rgba(255,255,255,0.2);
    cursor: pointer; padding: 2px; display: flex; align-items: center; justify-content: center;
}
.focus-deadline-delete:hover { color: #ef4444; }
.focus-deadline-delete i { width: 12px; height: 12px; }

/* ── Tasks ── */
.focus-tasks-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 12px;
}
.focus-tasks-counter {
    font-size: 11px; color: rgba(255,255,255,0.35);
}
.focus-task-input-row {
    display: flex; gap: 8px; margin-bottom: 12px;
}
.focus-task-input {
    flex: 1; padding: 8px 12px;
    border-radius: 8px; border: 1.5px solid rgba(255,255,255,0.35);
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    color: #fff; font-size: 13px; font-family: inherit;
    outline: none; text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
.focus-task-input::placeholder { color: #fff !important; text-shadow: 1px 1px 0 rgba(0,0,0,0.6), 0 2px 6px rgba(0,0,0,0.4); font-weight: 600; }
.focus-task-input { color: #fff !important; }
.focus-task-input:focus { border-color: rgba(255,255,255,0.5); background: rgba(0,0,0,0.65); }
.focus-task-add-btn {
    padding: 8px 14px; border-radius: 10px; border: 1.5px solid rgba(255,255,255,0.3);
    background: rgba(0,0,0,0.45); color: #fff;
    font-size: 12px; font-weight: 800; cursor: pointer; font-family: inherit;
    transition: all 0.15s; text-shadow: 1px 1px 0 rgba(0,0,0,0.5), 0 2px 6px rgba(0,0,0,0.3);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.focus-task-add-btn:hover { background: rgba(0,0,0,0.6); border-color: rgba(255,255,255,0.5); }
.focus-task-list { display: flex; flex-direction: column; gap: 4px; overflow: visible; }
.focus-task-item {
    display: flex; align-items: center; gap: 8px;
    padding: 6px 0; font-size: 13px;
}
.focus-task-check {
    width: 18px; height: 18px; border-radius: 5px;
    border: 2px solid rgba(255,255,255,0.25);
    background: transparent; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; transition: all 0.15s; color: transparent;
}
.focus-task-check.done {
    background: #22c55e; border-color: #22c55e; color: #fff;
}
.focus-task-check i { width: 11px; height: 11px; }
.focus-task-text { flex: 1; }
.focus-task-text.done { text-decoration: line-through; opacity: 0.4; }
.focus-task-delete {
    background: none; border: none; color: rgba(255,255,255,0.5);
    cursor: pointer; padding: 2px; display: flex;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
.focus-task-delete:hover { color: #ef4444; }
.focus-task-delete i { width: 12px; height: 12px; }
.focus-task-empty {
    text-align: center; padding: 20px 0;
    font-size: 13px; color: rgba(255,255,255,0.3);
}

/* ── Floating Side Icons ── */
.focus-side-icons {
    position: absolute; display: flex; flex-direction: column; gap: 8px;
    padding: 8px; border-radius: 14px;
    background: rgba(20,20,20,0.5); backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.06);
    z-index: 5;
    align-items: center;
    justify-content: center;
}
.focus-side-icons.left { left: 10px; top: 50%; transform: translateY(-50%); }
.focus-side-icons.right { right: 10px; top: 50%; transform: translateY(-50%); }
.focus-side-icon {
    width: 36px; height: 36px; border-radius: 8px;
    border: none; background: transparent;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: all 0.15s;
}
.focus-side-icon i { width: 18px; height: 18px; }
.focus-side-icon.icon-settings,
.focus-side-icon.icon-alarm,
.focus-side-icon.icon-bell,
.focus-side-icon.icon-font,
.focus-side-icon.icon-music,
.focus-side-icon.icon-eye,
.focus-side-icon.icon-bg { color: rgba(255,255,255,0.5); }
.focus-side-icon:hover { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.8); }

/* ── Bottom Toolbar ── */
.focus-toolbar {
    position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
    display: flex; align-items: center; gap: 4px;
    padding: 8px 12px; border-radius: 16px;
    background: rgba(15,15,20,0.7); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.08);
    z-index: 15; box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    transition: opacity 0.3s, transform 0.3s;
}
.focus-tb-btn {
    width: 40px; height: 40px; border-radius: 10px;
    border: none; background: transparent;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: all 0.15s;
    color: rgba(255,255,255,0.5);
}
.focus-tb-btn i { width: 18px; height: 18px; }
.focus-tb-btn:hover { background: rgba(255,255,255,0.1); color: #fff; }
.focus-tb-btn.active { background: rgba(249,115,22,0.15); color: #f97316; }
.focus-tb-divider { width: 1px; height: 24px; background: rgba(255,255,255,0.1); margin: 0 4px; }
.focus-tb-time { font-size: 13px; font-weight: 700; color: rgba(255,255,255,0.6); padding: 0 8px; min-width: 70px; text-align: center; letter-spacing: 0.02em; }
.focus-tb-vol-wrap { display: flex; align-items: center; position: relative; }
.focus-tb-volume { -webkit-appearance: none; appearance: none; width: 0; height: 4px; background: rgba(255,255,255,0.15); border-radius: 2px; outline: none; cursor: pointer; transition: width 0.2s, opacity 0.2s; opacity: 0; margin-left: 0; }
.focus-tb-vol-wrap:hover .focus-tb-volume { width: 80px; opacity: 1; margin-left: 6px; }
.focus-tb-volume::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: #fff; cursor: pointer; box-shadow: 0 1px 4px rgba(0,0,0,0.3); }

/* Toolbar hidden by default, shown by CSS when studying */
.focus-toolbar { display: none !important; }
.focus-dashboard.focus-studying .focus-toolbar { display: flex !important; }

/* Toolbar hides in zen mode */
.focus-dashboard.zen .focus-toolbar { opacity: 0 !important; pointer-events: none; transform: translateX(-50%) translateY(20px); }

/* ── Spawned Floating Panels (during study) ── */
#focusFloatContainer { position: absolute; inset: 0; z-index: 50; pointer-events: none; overflow: visible; }
.focus-float-panel {
    position: absolute; z-index: 50; pointer-events: all;
    background: rgba(15,15,20,0.85); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,0.1); border-radius: 14px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    transition: box-shadow 0.15s;
}
.focus-float-panel .focus-card { margin: 0; width: 100%; height: auto !important; overflow: visible !important; }
.focus-float-panel [data-widget] { position: static !important; width: 100% !important; height: auto !important; overflow: visible !important; }
.focus-float-panel { background: none !important; border: none !important; box-shadow: none !important; overflow: visible !important; }
/* Audio float uses .focus-card class for consistent theming */
.focus-float-panel.fp-dragging { z-index: 200 !important; box-shadow: 0 20px 60px rgba(0,0,0,0.6); }
.fp-header {
    display: flex; align-items: center; gap: 6px;
    padding: 8px 12px; border-bottom: 1px solid rgba(255,255,255,0.06);
    cursor: grab; user-select: none;
}
.fp-header:active { cursor: grabbing; }
.fp-title {
    font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em;
    color: #fff; display: flex; align-items: center; gap: 5px; flex: 1;
    text-shadow: 1px 1px 0 rgba(0,0,0,0.4);
}
.fp-title i { width: 13px; height: 13px; }
.fp-close {
    width: 24px; height: 24px; border-radius: 6px; border: none;
    background: transparent; color: rgba(255,255,255,0.6); cursor: pointer;
    display: flex; align-items: center; justify-content: center; transition: all 0.15s;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
.fp-close:hover { background: rgba(255,255,255,0.15); color: #fff; }
.fp-body { padding: 12px; overflow-y: auto; max-height: 350px; }

/* Light theme floating panels */
.khio-day .focus-float-panel { background: rgba(255,255,255,0.25); border-color: rgba(255,255,255,0.4); }
/* Floating panel task input placeholder — always white */
.focus-float-panel .focus-task-input::placeholder { color: #fff !important; }
/* Floating panel X close buttons — always white */
.focus-float-panel .fp-close { color: #fff !important; }
.focus-float-panel .focus-task-del { color: rgba(255,255,255,0.8) !important; }
/* Floating panel task item text — always white */
.focus-float-panel .focus-task-item label { color: #fff !important; }
.focus-float-panel .focus-task-empty { color: rgba(255,255,255,0.5) !important; }
/* Floating panel calendar — white text with shadow */
.focus-float-panel .focus-schedule-day { color: #fff; text-shadow: 1px 1px 0 rgba(0,0,0,0.3); }
.focus-float-panel .focus-schedule-day-events { color: rgba(255,255,255,0.7); }
.focus-float-panel .focus-card-title { color: #fff !important; text-shadow: 1px 1px 0 rgba(0,0,0,0.3); }
.focus-float-panel .khio-overlay-link { color: #fff !important; }
/* Floating panel grab cursor */
.focus-float-panel { cursor: grab; }
.focus-float-panel:active { cursor: grabbing; }
.focus-float-panel input, .focus-float-panel button { cursor: pointer; }
.focus-float-panel input[type="text"], .focus-float-panel input.focus-task-input { cursor: text; }

/* ── Draggable Cards ── */
.focus-card[data-draggable],
.focus-timer-card[data-draggable] { cursor: grab; user-select: none; }
.focus-card[data-draggable]:active,
.focus-timer-card[data-draggable]:active { cursor: grabbing; }
.focus-card.dragging,
.focus-timer-card.dragging { z-index: 100; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }

/* Light theme toolbar */
.khio-day .focus-toolbar { background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.3); }
.khio-day .focus-tb-btn { color: rgba(255,255,255,0.6); }
.khio-day .focus-tb-btn:hover { background: rgba(255,255,255,0.15); color: #fff; }
.khio-day .focus-tb-divider { background: rgba(255,255,255,0.15); }

/* ── Background Picker Modal ── */
.focus-modal-overlay {
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(0,0,0,0.35); backdrop-filter: blur(8px);
    display: flex; align-items: center; justify-content: center;
    animation: fadeIn .15s ease;
}
.focus-modal {
    width: min(720px, 92vw); max-height: 80vh;
    background: rgba(20,20,25,0.85); backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 18px; overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    display: flex; flex-direction: column;
}
.focus-modal-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 22px; border-bottom: 1px solid rgba(255,255,255,0.06);
}
.focus-modal-header h3 {
    font-size: 16px; font-weight: 700; color: #fff;
    display: flex; align-items: center; gap: 8px; margin: 0;
}
.focus-modal-header h3 i { width: 18px; height: 18px; }
.focus-modal-close {
    background: none; border: none; color: rgba(255,255,255,0.4);
    cursor: pointer; padding: 4px; border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
}
.focus-modal-close:hover { color: #fff; background: rgba(255,255,255,0.08); }
.focus-modal-close i { width: 18px; height: 18px; }
.focus-modal-body { padding: 18px 22px; overflow-y: auto; flex: 1; }

/* BG Picker Tabs */
.focus-bg-tabs {
    display: flex; gap: 6px; margin-bottom: 16px; flex-wrap: wrap;
}
.focus-bg-tab {
    padding: 6px 14px; border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.08);
    background: transparent; color: rgba(255,255,255,0.5);
    font-size: 12px; font-weight: 600; cursor: pointer;
    font-family: inherit; transition: all 0.15s;
}
.focus-bg-tab:hover { color: #fff; background: rgba(255,255,255,0.06); }
.focus-bg-tab.active { background: rgba(255,255,255,0.1); color: #fff; border-color: rgba(255,255,255,0.2); }
.focus-bg-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
}
.focus-bg-thumb {
    aspect-ratio: 16/10; border-radius: 10px; overflow: hidden;
    cursor: pointer; border: 2px solid transparent;
    transition: all 0.2s; position: relative;
}
.focus-bg-thumb:hover { border-color: rgba(255,255,255,0.3); transform: scale(1.03); }
.focus-bg-thumb.selected { border-color: #22c55e; }
.focus-bg-thumb.selected::after {
    content: ''; position: absolute; top: 6px; right: 6px;
    width: 20px; height: 20px; border-radius: 50%;
    background: #22c55e; display: flex; align-items: center; justify-content: center;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: center;
}
.focus-bg-thumb img {
    width: 100%; height: 100%; object-fit: cover;
}

/* ── Music Modal ── */
.focus-music-tabs {
    display: flex; flex-direction: column; gap: 4px;
    padding: 10px 0;
    border-right: 1px solid rgba(255,255,255,0.06);
    width: 50px; flex-shrink: 0;
}
.focus-music-tab {
    width: 40px; height: 40px; border-radius: 10px;
    border: none; background: transparent;
    color: rgba(255,255,255,0.4); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.15s;
}
.focus-music-tab:hover { color: #fff; background: rgba(255,255,255,0.06); }
.focus-music-tab.active { color: #fff; background: rgba(249,115,22,0.2); border: 1px solid rgba(249,115,22,0.4); }
.focus-music-tab i { width: 18px; height: 18px; }
.focus-music-layout { display: flex; min-height: 350px; }
.focus-music-content { flex: 1; padding: 18px; }
.focus-music-content h3 { font-size: 18px; font-weight: 700; color: #fff; margin: 0 0 4px; }
.focus-music-content p { font-size: 13px; color: rgba(255,255,255,0.4); margin: 0 0 16px; }
.focus-sound-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}
.focus-sound-card {
    padding: 14px; border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.06);
    background: rgba(255,255,255,0.03);
    cursor: pointer; transition: all 0.15s;
}
.focus-sound-card:hover { background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.12); }
.focus-sound-card.playing { border-color: rgba(249,115,22,0.5); background: rgba(249,115,22,0.08); }
.focus-sound-icon {
    width: 32px; height: 32px; border-radius: 8px;
    background: rgba(255,255,255,0.06);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 8px; color: rgba(255,255,255,0.5);
}
.focus-sound-card.playing .focus-sound-icon { color: #f97316; background: rgba(249,115,22,0.15); }
.focus-sound-icon i { width: 16px; height: 16px; }
.focus-sound-name { font-size: 13px; font-weight: 600; color: #fff; }
.focus-sound-sub { font-size: 11px; color: rgba(255,255,255,0.35); }
.focus-sound-volume {
    width: 100%; height: 4px; margin-top: 8px;
    -webkit-appearance: none; appearance: none;
    background: rgba(255,255,255,0.1); border-radius: 2px; outline: none;
}
.focus-sound-volume::-webkit-slider-thumb {
    -webkit-appearance: none; width: 12px; height: 12px;
    border-radius: 50%; background: #fff; cursor: pointer;
}
.focus-yt-input-row {
    display: flex; gap: 8px; margin-bottom: 12px;
    padding: 12px; border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.06);
    background: rgba(255,255,255,0.03);
}
.focus-yt-input {
    flex: 1; background: transparent; border: none;
    color: #fff; font-size: 13px; font-family: inherit; outline: none;
}
.focus-yt-input::placeholder { color: rgba(255,255,255,0.3); }
.focus-yt-play {
    padding: 6px 16px; border-radius: 8px; border: none;
    background: #ef4444; color: #fff; font-size: 12px; font-weight: 700;
    cursor: pointer; font-family: inherit; display: flex; align-items: center; gap: 5px;
}

/* ── Leaderboard Modal ── */
.focus-lb-tabs {
    display: flex; gap: 4px; justify-content: center;
    margin-bottom: 20px; padding: 4px;
    background: rgba(255,255,255,0.05); border-radius: 10px;
}
.focus-lb-tab {
    padding: 8px 20px; border-radius: 8px; border: none;
    background: transparent; color: rgba(255,255,255,0.5);
    font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit;
}
.focus-lb-tab.active { background: rgba(255,255,255,0.1); color: #fff; }
.focus-lb-podium {
    display: flex; align-items: flex-end; justify-content: center;
    gap: 8px; margin-bottom: 20px; padding: 0 20px;
}
.focus-lb-podium-item {
    display: flex; flex-direction: column; align-items: center;
    flex: 1; max-width: 160px;
}
.focus-lb-avatar {
    width: 60px; height: 60px; border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; margin-bottom: 6px;
    border: 3px solid transparent;
}
.focus-lb-podium-item.gold .focus-lb-avatar { border-color: #eab308; }
.focus-lb-podium-item.silver .focus-lb-avatar { border-color: #94a3b8; }
.focus-lb-podium-item.bronze .focus-lb-avatar { border-color: #cd7f32; }
.focus-lb-time-badge {
    font-size: 10px; font-weight: 700; padding: 2px 8px;
    border-radius: 10px; background: rgba(255,255,255,0.1);
    color: #fff; margin-bottom: 4px;
}
.focus-lb-name { font-size: 13px; font-weight: 600; color: #fff; margin-bottom: 6px; }
.focus-lb-place {
    padding: 10px 0; border-radius: 10px;
    font-size: 18px; font-weight: 800; width: 100%;
    text-align: center;
}
.focus-lb-podium-item.gold .focus-lb-place { background: #eab308; color: #000; }
.focus-lb-podium-item.silver .focus-lb-place { background: #64748b; color: #fff; }
.focus-lb-podium-item.bronze .focus-lb-place { background: #cd7f32; color: #000; }
.focus-lb-podium-item.gold { order: 2; }
.focus-lb-podium-item.silver { order: 1; }
.focus-lb-podium-item.bronze { order: 3; }
.focus-lb-podium-item.gold .focus-lb-avatar { width: 72px; height: 72px; }
.focus-lb-list { display: flex; flex-direction: column; gap: 6px; }
.focus-lb-row {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 14px; border-radius: 12px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.04);
}
.focus-lb-rank { font-size: 15px; font-weight: 700; color: rgba(255,255,255,0.5); width: 24px; text-align: center; }
.focus-lb-row-avatar {
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(255,255,255,0.08);
    display: flex; align-items: center; justify-content: center;
    font-size: 16px;
}
.focus-lb-row-name { flex: 1; font-size: 14px; font-weight: 600; color: #fff; }
.focus-lb-row-time { font-size: 12px; color: rgba(255,255,255,0.4); display: flex; align-items: center; gap: 4px; }
.focus-lb-streak {
    display: flex; align-items: center; gap: 4px;
    font-size: 11px; font-weight: 700; color: #ef4444;
    padding: 3px 8px; border-radius: 8px;
    background: rgba(239,68,68,0.1);
}

/* ── Settings Modal ── */
.focus-settings-duration {
    display: flex; align-items: center; justify-content: center;
    gap: 16px; margin: 20px 0;
}
.focus-settings-duration button {
    width: 36px; height: 36px; border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.15);
    background: transparent; color: #fff;
    font-size: 18px; cursor: pointer; display: flex;
    align-items: center; justify-content: center;
}
.focus-settings-duration button:hover { background: rgba(255,255,255,0.08); }
.focus-settings-duration-value {
    font-size: 42px; font-weight: 800; color: #fff;
    min-width: 80px; text-align: center;
}
.focus-settings-duration-label {
    text-align: center; font-size: 12px; color: rgba(255,255,255,0.35);
}

/* ── Neko Pet ── */
.study-pet {
    position: absolute; z-index: 50; pointer-events: auto;
    cursor: pointer;
    width: 48px; height: 48px;
}
.study-pet-sprite {
    width: 48px; height: 48px; /* 32px scaled up 1.5x */
    image-rendering: pixelated; image-rendering: crisp-edges;
    -ms-interpolation-mode: nearest-neighbor;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}
.study-pet-fallback {
    position: relative;
    display: block;
    background: transparent;
    box-shadow: none;
    overflow: visible;
}
.study-pet-svg {
    width: 48px;
    height: 48px;
    overflow: visible;
}
.study-pet-svg .neko-body,
.study-pet-svg .neko-head {
    fill: #d88652;
    stroke: #2f2118;
    stroke-width: 2.4;
    stroke-linejoin: round;
}
.study-pet-svg .neko-ear-inner {
    fill: #f7d4be;
}
.study-pet-svg .neko-tail,
.study-pet-svg .neko-paw,
.study-pet-svg .neko-whisker,
.study-pet-svg .neko-mouth {
    fill: none;
    stroke: #2f2118;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.study-pet-svg .neko-tail {
    stroke: #2f2118;
}
.study-pet-svg .neko-eye {
    fill: #2f2118;
}
.study-pet-svg .neko-nose {
    fill: #9d5a63;
}
.study-pet-cat {
    position: relative;
    width: 48px;
    height: 48px;
    transform-origin: center bottom;
    user-select: none;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.22));
}
.study-pet-head,
.study-pet-body,
.study-pet-tail,
.study-pet-paw,
.study-pet-ear,
.study-pet-eye,
.study-pet-nose,
.study-pet-mouth,
.study-pet-whisker {
    position: absolute;
    display: block;
    box-sizing: border-box;
}
.study-pet-body {
    left: 8px;
    top: 18px;
    width: 28px;
    height: 20px;
    border-radius: 14px 16px 12px 12px;
    background: linear-gradient(180deg, #efb06d 0%, #d18045 78%, #b96a35 100%);
    border: 2px solid #2e2015;
}
.study-pet-head {
    left: 16px;
    top: 6px;
    width: 18px;
    height: 16px;
    border-radius: 10px 10px 9px 9px;
    background: linear-gradient(180deg, #f7c48b 0%, #db884a 90%);
    border: 2px solid #2e2015;
    transform-origin: center 70%;
}
.study-pet-ear {
    top: -5px;
    width: 8px;
    height: 9px;
    background: #dc8a4f;
    border: 2px solid #2e2015;
    border-bottom: none;
    clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
.study-pet-ear-left { left: -1px; transform: rotate(-10deg); }
.study-pet-ear-right { right: -1px; transform: rotate(10deg); }
.study-pet-face {
    position: absolute;
    inset: 0;
    display: block;
}
.study-pet-eye {
    top: 6px;
    width: 3px;
    height: 4px;
    border-radius: 999px;
    background: #20150d;
}
.study-pet-eye-left { left: 4px; }
.study-pet-eye-right { right: 4px; }
.study-pet-nose {
    left: 50%;
    top: 9px;
    width: 4px;
    height: 3px;
    transform: translateX(-50%);
    border-radius: 50% 50% 60% 60%;
    background: #9d4e4e;
}
.study-pet-mouth {
    left: 50%;
    top: 12px;
    width: 6px;
    height: 4px;
    transform: translateX(-50%);
    border-bottom: 2px solid #2e2015;
    border-radius: 0 0 8px 8px;
}
.study-pet-whisker {
    top: 10px;
    width: 8px;
    height: 1px;
    background: rgba(46,32,21,0.72);
}
.study-pet-whisker-left { left: -5px; transform: rotate(-10deg); }
.study-pet-whisker-right { right: -5px; transform: rotate(10deg); }
.study-pet-tail {
    right: 3px;
    top: 14px;
    width: 14px;
    height: 18px;
    border: 3px solid #2e2015;
    border-left: none;
    border-bottom: none;
    border-radius: 0 14px 0 0;
    transform-origin: bottom left;
}
.study-pet-paw {
    top: 32px;
    width: 7px;
    height: 10px;
    border-radius: 0 0 6px 6px;
    background: #f5c68d;
    border: 2px solid #2e2015;
    border-top: none;
}
.study-pet-paw-left { left: 14px; }
.study-pet-paw-right { left: 24px; }
.study-pet[data-neko-dir="left"] .study-pet-cat { transform: scaleX(-1); }
.study-pet[data-neko-dir="left"] .study-pet-svg { transform: scaleX(-1); transform-origin: center; }
.study-pet[data-neko-state="idle"] .study-pet-cat { animation: nekoIdleBob 2.4s ease-in-out infinite; }
.study-pet[data-neko-state="idle"] .study-pet-svg { animation: nekoIdleBob 2.4s ease-in-out infinite; transform-origin: center bottom; }
.study-pet[data-neko-state="idle"] .study-pet-sprite { animation: nekoIdleBob 2.4s ease-in-out infinite; transform-origin: center bottom; }
.study-pet[data-neko-state="sleep"] .study-pet-cat { animation: nekoSleepDrift 2.2s ease-in-out infinite; }
.study-pet[data-neko-state="sleep"] .study-pet-svg { animation: nekoSleepDrift 2.2s ease-in-out infinite; transform-origin: center bottom; }
.study-pet[data-neko-state="sleep"] .study-pet-sprite { animation: nekoSleepDrift 2.2s ease-in-out infinite; transform-origin: center bottom; }
.study-pet[data-neko-state="wash"] .study-pet-cat { animation: nekoWash 0.7s ease-in-out infinite; }
.study-pet[data-neko-state="wash"] .study-pet-svg { animation: nekoWash 0.7s ease-in-out infinite; transform-origin: center bottom; }
.study-pet[data-neko-state="wash"] .study-pet-sprite { animation: nekoWash 0.7s ease-in-out infinite; transform-origin: center bottom; }
.study-pet[data-neko-state="scratch"] .study-pet-cat { animation: nekoScratch 0.18s linear infinite; }
.study-pet[data-neko-state="scratch"] .study-pet-svg { animation: nekoScratch 0.18s linear infinite; transform-origin: center bottom; }
.study-pet[data-neko-state="scratch"] .study-pet-sprite { animation: nekoScratch 0.18s linear infinite; transform-origin: center bottom; }
.study-pet[data-neko-state="yawn"] .study-pet-cat { animation: nekoYawn 0.9s ease-in-out infinite; }
.study-pet[data-neko-state="yawn"] .study-pet-svg { animation: nekoYawn 0.9s ease-in-out infinite; transform-origin: center bottom; }
.study-pet[data-neko-state="yawn"] .study-pet-sprite { animation: nekoYawn 0.9s ease-in-out infinite; transform-origin: center bottom; }
.study-pet[data-neko-state="right"] .study-pet-cat,
.study-pet[data-neko-state="left"] .study-pet-cat { animation: nekoWalk 0.32s ease-in-out infinite; }
.study-pet[data-neko-state="right"] .study-pet-svg,
.study-pet[data-neko-state="left"] .study-pet-svg { animation: nekoWalk 0.32s ease-in-out infinite; transform-origin: center bottom; }
.study-pet[data-neko-state="right"] .study-pet-sprite,
.study-pet[data-neko-state="left"] .study-pet-sprite { animation: nekoWalk 0.32s ease-in-out infinite; transform-origin: center bottom; }
.study-pet[data-neko-state="up"] .study-pet-cat { animation: nekoJumpUp 0.3s ease-out infinite; }
.study-pet[data-neko-state="up"] .study-pet-svg { animation: nekoJumpUp 0.3s ease-out infinite; transform-origin: center bottom; }
.study-pet[data-neko-state="down"] .study-pet-cat { animation: nekoFallDown 0.25s ease-in infinite; }
.study-pet[data-neko-state="down"] .study-pet-svg { animation: nekoFallDown 0.25s ease-in infinite; transform-origin: center bottom; }
.study-pet[data-neko-state="sleep"] .study-pet-eye {
    height: 1px;
    top: 8px;
}
.study-pet[data-neko-state="sleep"] .study-pet-mouth {
    width: 4px;
    top: 11px;
}
.study-pet[data-neko-state="yawn"] .study-pet-mouth {
    width: 8px;
    height: 6px;
    top: 11px;
    background: rgba(157,78,78,0.18);
    border: 2px solid #2e2015;
    border-top: none;
    border-radius: 0 0 8px 8px;
}
.study-pet[data-neko-state="wash"] .study-pet-paw-left {
    transform: translateY(-5px) rotate(-18deg);
}
.study-pet[data-neko-state="scratch"] .study-pet-paw-right {
    transform: translateY(-3px) rotate(16deg);
}
.study-pet[data-neko-state="right"] .study-pet-tail,
.study-pet[data-neko-state="left"] .study-pet-tail {
    animation: nekoTailSwish 0.36s ease-in-out infinite;
}
.study-pet[data-neko-state="idle"] .study-pet-tail,
.study-pet[data-neko-state="sleep"] .study-pet-tail {
    animation: nekoTailIdle 2s ease-in-out infinite;
}
.study-pet.sleeping .study-pet-sprite { filter: brightness(0.8) drop-shadow(0 2px 4px rgba(0,0,0,0.3)); }
.study-pet-zzz {
    position: absolute; top: -14px; right: -6px;
    font-size: 14px; font-weight: 700; line-height: 1;
    color: rgba(255,255,255,0.92);
    text-shadow: 0 1px 6px rgba(0,0,0,0.3);
    opacity: 0; pointer-events: none;
}
.study-pet.sleeping .study-pet-zzz { animation: petZzz 2s infinite; }
@keyframes petZzz {
    0%,100% { opacity: 0; transform: translateY(0); }
    50% { opacity: 0.8; transform: translateY(-10px); }
}
@keyframes nekoIdleBob {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 0; }
}
@keyframes nekoSleepDrift {
    0%, 100% { translate: 0 0; scale: 1; }
    50% { translate: 0 0; scale: 0.98; }
}
@keyframes nekoWash {
    0%, 100% { rotate: 0deg; scale: 1; }
    50% { rotate: 8deg; scale: 1.04; }
}
@keyframes nekoScratch {
    0%, 100% { translate: -1px 0; }
    50% { translate: 1px 0; }
}
@keyframes nekoYawn {
    0%, 100% { scale: 1; }
    50% { scale: 1.12; }
}
@keyframes nekoWalk {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 0; }
}
@keyframes nekoJumpUp {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -5px; }
}
@keyframes nekoFallDown {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 4px; }
}
@keyframes nekoTailIdle {
    0%, 100% { transform: rotate(12deg); }
    50% { transform: rotate(24deg); }
}
@keyframes nekoTailSwish {
    0%, 100% { transform: rotate(6deg); }
    50% { transform: rotate(30deg); }
}

/* ── Theme buttons ── */
.focus-theme-btn {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 14px; border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.04);
    color: rgba(255,255,255,0.7); font-size: 12px; font-weight: 600;
    cursor: pointer; font-family: inherit; transition: all 0.15s;
}
.focus-theme-btn:hover:not([disabled]) { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.15); }
.focus-theme-btn.active {
    background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.25);
    color: #fff; box-shadow: 0 0 0 1px rgba(255,255,255,0.1);
}

/* ── Profile card ── */
.focus-profile-card {
    background: rgba(30,30,35,0.7); border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px; padding: 24px; backdrop-filter: blur(12px);
}
.focus-profile-header { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.focus-profile-avatar {
    width: 80px; height: 80px; border-radius: 50%; border: 3px solid rgba(255,255,255,0.15);
    object-fit: cover; background: rgba(255,255,255,0.05);
}
.focus-profile-name { font-size: 20px; font-weight: 700; color: #fff; }
.focus-profile-stats {
    display: flex; gap: 12px; background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06); border-radius: 12px; padding: 14px;
}
.focus-profile-stat {
    flex: 1; display: flex; align-items: center; gap: 8px;
}
.focus-profile-stat-icon {
    width: 36px; height: 36px; border-radius: 10px; display: flex;
    align-items: center; justify-content: center; flex-shrink: 0;
}
.focus-profile-stat-label { font-size: 10px; color: rgba(255,255,255,0.45); text-transform: uppercase; font-weight: 600; letter-spacing: 0.5px; }
.focus-profile-stat-value { font-size: 16px; font-weight: 700; color: #fff; }

/* ── Heatmap ── */
.focus-heatmap-card {
    background: rgba(30,30,35,0.7); border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px; padding: 20px; backdrop-filter: blur(12px); margin-top: 10px;
}
.focus-heatmap-title { font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.6); margin-bottom: 12px; }
.focus-heatmap-grid {
    display: grid; grid-template-columns: repeat(31, 1fr); gap: 3px;
}
.focus-heatmap-cell {
    aspect-ratio: 1; border-radius: 3px; background: rgba(255,255,255,0.06);
    transition: background 0.15s; position: relative;
}
.focus-heatmap-cell[data-level="1"] { background: rgba(74, 222, 128, 0.2); }
.focus-heatmap-cell[data-level="2"] { background: rgba(74, 222, 128, 0.4); }
.focus-heatmap-cell[data-level="3"] { background: rgba(74, 222, 128, 0.6); }
.focus-heatmap-cell[data-level="4"] { background: rgba(74, 222, 128, 0.85); }
.focus-heatmap-cell:hover { outline: 1px solid rgba(255,255,255,0.3); }
.focus-heatmap-legend {
    display: flex; align-items: center; gap: 4px; justify-content: flex-end;
    margin-top: 8px; font-size: 10px; color: rgba(255,255,255,0.35);
}
.focus-heatmap-legend-cell {
    width: 12px; height: 12px; border-radius: 2px;
}

/* ── Focus Mode (panels hidden) ── */
.focus-dashboard.zen .focus-left,
.focus-dashboard.zen .focus-right,
.focus-dashboard.zen .focus-side-icons.left,
.focus-dashboard.zen .focus-side-icons.right,
.focus-dashboard.zen .focus-bottom-btns { display: none; }
.focus-dashboard.zen .focus-layout { padding: 0; }
.focus-dashboard.zen .focus-timer-card { background: transparent; border-color: transparent; backdrop-filter: none; }
.focus-dashboard.zen .focus-zen-corners { display: flex; }

.focus-zen-corners {
    display: none; position: absolute; inset: 0; z-index: 3;
    pointer-events: none;
}
.focus-zen-corner {
    position: absolute; pointer-events: auto;
}
.focus-zen-corner.top-left { top: 16px; left: 16px; }
.focus-zen-corner.top-right { top: 16px; right: 16px; }
.focus-zen-corner.bottom-left { bottom: 16px; left: 16px; }
.focus-zen-corner.bottom-right { bottom: 16px; right: 16px; }
.focus-zen-btn {
    width: 36px; height: 36px; border-radius: 10px;
    border: none; background: rgba(20,20,20,0.5);
    backdrop-filter: blur(8px);
    color: rgba(255,255,255,0.5); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.15s;
}
.focus-zen-btn:hover { background: rgba(20,20,20,0.7); color: #fff; }
.focus-zen-btn i { width: 16px; height: 16px; }

/* ── Deadline Add Modal ── */
.focus-deadline-form { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.focus-deadline-form input {
    padding: 8px 12px; border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.05);
    color: #fff; font-size: 13px; font-family: inherit; outline: none;
}
.focus-deadline-form input:focus { border-color: rgba(255,255,255,0.25); }
.focus-deadline-form-btns { display: flex; gap: 8px; justify-content: flex-end; }
.focus-deadline-form-btns button {
    padding: 6px 16px; border-radius: 8px; border: none;
    font-size: 12px; font-weight: 600; cursor: pointer; font-family: inherit;
}
.focus-deadline-save { background: #22c55e; color: #000; }
.focus-deadline-cancel { background: rgba(255,255,255,0.08); color: #fff; }

/* ── Layout Editor ── */
.focus-editor-panel {
    position: fixed; top: 0; right: 0; width: 340px; height: 100vh;
    background: rgba(15,15,15,0.95); backdrop-filter: blur(16px);
    border-left: 1px solid rgba(255,255,255,0.08);
    z-index: 10000; overflow-y: auto; padding: 16px;
    transform: translateX(100%); transition: transform 0.25s ease;
}
.focus-editor-panel.open { transform: translateX(0); }
.focus-editor-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 16px; padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.focus-editor-header h3 { font-size: 15px; font-weight: 700; color: #fff; margin: 0; }
.focus-editor-close {
    background: none; border: none; color: rgba(255,255,255,0.4);
    cursor: pointer; padding: 4px; border-radius: 6px;
}
.focus-editor-close:hover { color: #fff; background: rgba(255,255,255,0.08); }
.focus-editor-close i { width: 16px; height: 16px; }
.focus-editor-section {
    margin-bottom: 16px; padding: 12px;
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px;
}
.focus-editor-section-title {
    font-size: 12px; font-weight: 700; color: var(--study-accent, #e8853a);
    margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.04em;
}
.focus-editor-row {
    display: flex; align-items: center; gap: 8px; margin-bottom: 8px;
}
.focus-editor-row:last-child { margin-bottom: 0; }
.focus-editor-label {
    font-size: 11px; font-weight: 600; color: rgba(255,255,255,0.5);
    width: 50px; flex-shrink: 0;
}
.focus-editor-slider {
    flex: 1; height: 4px; -webkit-appearance: none; appearance: none;
    background: rgba(255,255,255,0.1); border-radius: 2px; outline: none;
}
.focus-editor-slider::-webkit-slider-thumb {
    -webkit-appearance: none; width: 14px; height: 14px;
    border-radius: 50%; background: #fff; cursor: pointer;
    box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.focus-editor-value {
    font-size: 11px; font-weight: 600; color: rgba(255,255,255,0.4);
    width: 36px; text-align: right; flex-shrink: 0;
}
.focus-editor-reset {
    width: 100%; padding: 8px; margin-top: 12px;
    border-radius: 8px; border: 1px solid rgba(255,255,255,0.1);
    background: transparent; color: rgba(255,255,255,0.5);
    font-size: 12px; font-weight: 600; cursor: pointer; font-family: inherit;
}
.focus-editor-reset:hover { color: #ef4444; border-color: rgba(239,68,68,0.3); }
/* Widget being edited highlight */
.focus-card.editing-highlight, .focus-timer-card.editing-highlight {
    outline: 2px dashed var(--study-accent, #e8853a) !important;
    outline-offset: 4px;
}

/* ── Bottom Buttons (Leaderboard / Back To Study) ── */
.focus-bottom-btns {
    position: absolute;
    z-index: 10;
    left: 50%; top: 60%;
    transform: translateX(-50%);
    display: flex; gap: 16px;
    justify-content: center;
}
.focus-bottom-btn {
    background: rgba(20,20,20,0.65);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    padding: 12px 32px;
    min-width: 180px;
    flex: 1;
    color: #e5e5e5;
    font: 600 14px Inter, sans-serif;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    transition: background 0.2s, border-color 0.2s;
}
.focus-bottom-btn:hover {
    background: rgba(30,30,30,0.8);
    border-color: rgba(255,255,255,0.2);
}
.focus-bottom-btn i { width: 16px; height: 16px; }

/* ── Alarm Sound Modal ── */
.focus-alarm-modal {
    position: fixed; inset: 0; z-index: 10000;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
}
.focus-alarm-panel {
    background: rgba(20,20,25,0.85); backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 20px;
    padding: 28px;
    width: 380px; max-height: 80vh;
    overflow-y: auto;
}
.focus-alarm-panel h3 {
    color: #fff; font-size: 18px; font-weight: 700;
    margin: 0 0 20px; display: flex; align-items: center; gap: 10px;
}
.focus-alarm-panel h3 i { width: 20px; height: 20px; }
.focus-alarm-option {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 16px; border-radius: 12px;
    cursor: pointer; transition: background 0.15s;
    margin-bottom: 4px;
}
.focus-alarm-option:hover { background: rgba(255,255,255,0.05); }
.focus-alarm-option.selected { background: rgba(255,255,255,0.08); }
.focus-alarm-option input[type="radio"] {
    appearance: none; -webkit-appearance: none;
    width: 20px; height: 20px; border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.3);
    flex-shrink: 0;
}
.focus-alarm-option input[type="radio"]:checked {
    border-color: #fff;
    background: #fff;
    box-shadow: inset 0 0 0 4px #1a1a1a;
}
.focus-alarm-option-text { flex: 1; }
.focus-alarm-option-text .name { color: #fff; font-weight: 600; font-size: 14px; }
.focus-alarm-option-text .desc { color: rgba(255,255,255,0.4); font-size: 12px; margin-top: 2px; }
.focus-alarm-preview {
    background: none; border: none; color: rgba(255,255,255,0.4);
    cursor: pointer; padding: 8px; border-radius: 8px;
    transition: color 0.15s;
}
.focus-alarm-preview:hover { color: #fff; }
.focus-alarm-preview i { width: 18px; height: 18px; }
.focus-alarm-volume {
    margin-top: 20px; padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.08);
    display: flex; align-items: center; gap: 12px;
}
.focus-alarm-volume i { width: 18px; height: 18px; color: rgba(255,255,255,0.5); }
.focus-alarm-volume input[type="range"] {
    flex: 1; accent-color: #f97316; height: 4px;
}
.focus-alarm-volume span { color: rgba(255,255,255,0.5); font-size: 13px; min-width: 40px; text-align: right; }
.focus-alarm-btns {
    display: flex; gap: 10px; margin-top: 20px;
}
.focus-alarm-btns button {
    flex: 1; padding: 12px; border-radius: 12px;
    font: 600 14px Inter, sans-serif; cursor: pointer;
}
.focus-alarm-btns .cancel {
    background: rgba(255,255,255,0.08); border: none; color: #fff;
}
.focus-alarm-btns .save {
    background: #fff; border: none; color: #000;
    display: flex; align-items: center; justify-content: center; gap: 6px;
}

/* ── Font Picker Modal ── */
.focus-font-modal {
    position: fixed; inset: 0; z-index: 10000;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
}
.focus-font-panel {
    background: #1a1a1a;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 28px;
    width: 380px; max-height: 80vh;
    overflow-y: auto;
}
.focus-font-panel h3 {
    color: #fff; font-size: 18px; font-weight: 700;
    margin: 0 0 20px; display: flex; align-items: center; justify-content: space-between;
}
.focus-font-option {
    padding: 14px 16px; border-radius: 12px;
    cursor: pointer; transition: background 0.15s;
    margin-bottom: 4px;
}
.focus-font-option:hover { background: rgba(255,255,255,0.05); }
.focus-font-option.selected { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); }
.focus-font-option .font-name { color: #fff; font-weight: 600; font-size: 15px; }
.focus-font-option .font-preview { color: rgba(255,255,255,0.4); font-size: 13px; margin-top: 4px; }

/* Layout edit button — bottom-left corner */
.focus-layout-edit-btn {
    position: absolute; z-index: 20;
    bottom: 16px; left: 16px;
    width: 36px; height: 36px;
    background: rgba(20,20,20,0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    color: rgba(255,255,255,0.4);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: color 0.2s, border-color 0.2s;
}
.focus-layout-edit-btn:hover { color: #fff; border-color: rgba(255,255,255,0.25); }
.focus-layout-edit-btn i { width: 16px; height: 16px; }

/* ═══════════════════════════════════════
   STUDY MODE — Zoom Animation
   ═══════════════════════════════════════ */
/* Base transitions on all elements — include position + size for smooth animation */
.focus-layout [data-widget] { transition: opacity 0.8s ease, transform 0.8s ease, left 0.8s ease, top 0.8s ease, width 0.8s ease, height 0.8s ease; }
.focus-side-icons, .focus-bottom-btns { transition: opacity 0.6s ease; }

/* When studying: cards fade out, timer moves to center at same size, blur shrinks */
.focus-dashboard.focus-studying .focus-layout [data-widget]:not([data-widget="timer"]) {
    opacity: 0 !important; pointer-events: none; transform: scale(0.92);
}
.focus-dashboard.focus-studying .focus-layout [data-widget="timer"] {
    left: 33% !important; top: 28% !important;
    width: 34% !important; height: 36% !important;
    z-index: 20;
}
.focus-dashboard.focus-studying .focus-side-icons { opacity: 0 !important; pointer-events: none; }
.focus-dashboard.focus-studying .focus-bottom-btns { opacity: 0 !important; pointer-events: none; }
/* Pet stays visible during study */

/* Zen mode corner buttons — bigger icons */
.focus-zen-btn {
    width: 44px !important; height: 44px !important;
    border-radius: 12px !important;
}
.focus-zen-btn i { width: 20px !important; height: 20px !important; }

/* Clear view — remove blur/backgrounds from cards, keep content visible */
.focus-dashboard.clear-view .focus-bg-overlay { opacity: 0 !important; transition: opacity 0.4s ease; }
.focus-dashboard.clear-view .focus-card,
.focus-dashboard.clear-view .focus-timer-card,
.focus-dashboard.clear-view .focus-bottom-btn,
.focus-dashboard.clear-view .focus-side-icons,
.focus-dashboard.clear-view .focus-profile-card {
    background: transparent !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
    border-color: transparent !important; box-shadow: none !important;
    transition: background 0.4s, border-color 0.4s;
}

/* ═══════════════════════════════════════
   LIGHT THEME OVERRIDES
   ═══════════════════════════════════════ */
.khio-day .focus-modal { background: rgba(255,255,255,0.12); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,0.5); box-shadow: 0 20px 60px rgba(0,0,0,0.08); }
.khio-day .focus-modal-header { border-bottom-color: rgba(255,255,255,0.15); }
.khio-day .focus-modal-header h3 { color: #fff; }
.khio-day .focus-modal-close { color: rgba(255,255,255,0.6); }
.khio-day .focus-modal-close:hover { color: #fff; background: rgba(255,255,255,0.1); }

/* BG picker */
.khio-day .focus-bg-tab { border-color: rgba(255,255,255,0.2); color: rgba(255,255,255,0.6); }
.khio-day .focus-bg-tab:hover { color: #fff; background: rgba(255,255,255,0.1); }
.khio-day .focus-bg-tab.active { background: rgba(255,255,255,0.15); color: #fff; border-color: rgba(255,255,255,0.4); }

/* Music modal */
.khio-day .focus-music-tabs { border-right-color: rgba(255,255,255,0.1); }
.khio-day .focus-music-tab { color: rgba(255,255,255,0.5); }
.khio-day .focus-music-tab:hover { color: #fff; background: rgba(255,255,255,0.1); }
.khio-day .focus-music-tab.active { color: #f97316; background: rgba(249,115,22,0.15); border-color: rgba(249,115,22,0.4); }
.khio-day .focus-music-content h3 { color: #fff; }
.khio-day .focus-music-content p { color: rgba(255,255,255,0.5); }

/* Sound cards */
.khio-day .focus-sound-card { border-color: rgba(255,255,255,0.2); background: rgba(255,255,255,0.08); }
.khio-day .focus-sound-card:hover { background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.35); }
.khio-day .focus-sound-card.playing { border-color: rgba(249,115,22,0.6); background: rgba(249,115,22,0.12); }
.khio-day .focus-sound-icon { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.7); }
.khio-day .focus-sound-name { color: #fff; }
.khio-day .focus-sound-sub { color: rgba(255,255,255,0.45); }

/* YouTube input */
.khio-day .focus-yt-input-row { background: rgba(0,0,0,0.03); border-color: rgba(0,0,0,0.08); }
.khio-day .focus-yt-input-row input { background: #fff; border-color: rgba(0,0,0,0.15); color: #1a1a1a; }

/* Alarm modal */
.khio-day .focus-alarm-modal { background: rgba(0,0,0,0.3); }
.khio-day .focus-alarm-panel { background: rgba(255,255,255,0.12); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,0.5); }
.khio-day .focus-alarm-panel h3 { color: #fff; }
.khio-day .focus-alarm-panel h3 button { color: rgba(255,255,255,0.5) !important; }
.khio-day .focus-alarm-option:hover { background: rgba(255,255,255,0.1); }
.khio-day .focus-alarm-option.selected { background: rgba(249,115,22,0.15); }
.khio-day .focus-alarm-option input[type="radio"] { border-color: rgba(255,255,255,0.3); }
.khio-day .focus-alarm-option-text .name { color: #fff; }
.khio-day .focus-alarm-option-text .desc { color: rgba(255,255,255,0.5); }
.khio-day .focus-alarm-preview { color: rgba(255,255,255,0.4); }
.khio-day .focus-alarm-preview:hover { color: #fff; }
.khio-day .focus-alarm-volume i { color: rgba(255,255,255,0.5); }
.khio-day .focus-alarm-volume span { color: rgba(255,255,255,0.5); }
.khio-day .focus-alarm-btns .cancel { background: rgba(255,255,255,0.1); color: #fff; border-color: rgba(255,255,255,0.2); }
.khio-day .focus-alarm-btns .save { background: rgba(255,255,255,0.9); color: #1a1a1a; }

/* Leaderboard — keep white text since modal is transparent */
.khio-day .focus-lb-tab { color: rgba(255,255,255,0.5); }
.khio-day .focus-lb-tab.active { background: rgba(255,255,255,0.12); color: #fff; }

/* Profile glass card */
.focus-profile-card-glass {
    width: 100%; max-width: 700px; border-radius: 16px;
    background: rgba(30,30,35,0.7); backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.08);
}
.khio-day .focus-profile-card-glass {
    background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.5);
}

/* Profile — transparent with white border like dashboard cards */
.khio-day .focus-profile-overlay { background: transparent; }
.khio-day .focus-profile-card { background: rgba(255,255,255,0.12); backdrop-filter: blur(8px); border-color: rgba(255,255,255,0.4); }
.khio-day .focus-profile-card h2 { color: #fff; }
.khio-day .focus-profile-stat-label { color: rgba(255,255,255,0.6); }
.khio-day .focus-profile-stat-value { color: #fff; }

/* Focus cards on dashboard — transparent with white border */
.khio-day .focus-card { background: rgba(255,255,255,0.22); backdrop-filter: blur(8px); border-color: rgba(255,255,255,0.5); }
.khio-day .focus-card h4,
.khio-day .focus-card .focus-card-title { color: #fff; }
.khio-day .focus-timer-card { background: rgba(255,255,255,0.25); backdrop-filter: blur(6px); border-color: rgba(255,255,255,0.5); }
.khio-day .focus-timer-display { color: #fff; }
.khio-day .focus-timer-btn { background: rgba(255,255,255,0.15); color: #fff; }
.khio-day .focus-timer-btn:hover { background: rgba(255,255,255,0.25); }

/* Side icon panels */
.khio-day .focus-side-icons { background: rgba(255,255,255,0.12); backdrop-filter: blur(8px); border-color: rgba(255,255,255,0.4); }
.khio-day .focus-side-icon { color: rgba(255,255,255,0.7); }
.khio-day .focus-side-icon:hover { color: #fff; background: rgba(255,255,255,0.15); }

/* Sound player floating card — inherits from .focus-card for theming */
.focus-sound-player { box-shadow: 0 8px 32px rgba(0,0,0,0.4); }
.focus-sound-player-btn { background: rgba(249,115,22,0.15); color: #f97316; }
.focus-sound-player-name { color: #fff; text-shadow: 1px 1px 0 rgba(0,0,0,0.3); }
.focus-sound-player-sub { color: rgba(255,255,255,0.5); }
.focus-sound-player-vol-icon { stroke: rgba(255,255,255,0.5); }
.focus-player-resize:hover { opacity: 0.7 !important; }
.focus-player-drag:active { cursor: grabbing !important; }

/* Bottom buttons */
.khio-day .focus-bottom-btn { background: rgba(255,255,255,0.12); backdrop-filter: blur(8px); border-color: rgba(255,255,255,0.4); color: #fff; }
.khio-day .focus-bottom-btn:hover { background: rgba(255,255,255,0.2); }

/* Settings modal */
.khio-day .focus-settings-duration button { color: #fff; border-color: rgba(255,255,255,0.25); }
.khio-day .focus-settings-duration button:hover { background: rgba(255,255,255,0.1); }
.khio-day .focus-settings-duration-value { color: #fff; }
.khio-day .focus-settings-duration-label { color: rgba(255,255,255,0.45); }

/* Theme picker — keep white text since modal is now transparent */

/* Cards already use white text from dark base styles — no overrides needed for transparent theme */

/* ══════════════ Laptop / small screen responsive ══════════════ */
/* Dark focus theme */
.focus-theme-dark .focus-bg-overlay {
    background:
        radial-gradient(1100px 620px at 18% 14%, rgba(255,255,255,0.06), transparent 56%),
        linear-gradient(180deg, rgba(6,8,12,0.2), rgba(6,8,12,0.36));
}
.focus-theme-dark.focus-studying .focus-bg-overlay {
    background:
        radial-gradient(1100px 620px at 18% 14%, rgba(255,255,255,0.07), transparent 56%),
        linear-gradient(180deg, rgba(4,6,10,0.28), rgba(4,6,10,0.44));
}
.focus-theme-dark .focus-card,
.focus-theme-dark .focus-timer-card,
.focus-theme-dark .focus-side-icons,
.focus-theme-dark .focus-bottom-btn,
.focus-theme-dark .focus-toolbar,
.focus-theme-dark .focus-modal,
.focus-theme-dark .focus-profile-card,
.focus-theme-dark .focus-profile-card-glass,
.focus-theme-dark .focus-alarm-panel {
    background: rgba(14, 16, 22, 0.58);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.34);
}
.focus-theme-dark .focus-theme-btn {
    background: rgba(20, 24, 31, 0.76);
    border-color: rgba(255, 255, 255, 0.08);
}
.focus-theme-dark .focus-theme-btn:hover {
    background: rgba(28, 32, 41, 0.86);
    border-color: rgba(255, 255, 255, 0.14);
}
.focus-theme-dark .focus-theme-btn.active {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.18);
}
.focus-theme-dark .focus-side-icon,
.focus-theme-dark .focus-tb-btn,
.focus-theme-dark .focus-modal-close,
.focus-theme-dark .focus-bottom-btn {
    color: rgba(243, 244, 246, 0.9);
}
.focus-theme-dark .focus-side-icon:hover,
.focus-theme-dark .focus-tb-btn:hover,
.focus-theme-dark .focus-modal-close:hover,
.focus-theme-dark .focus-bottom-btn:hover {
    background: rgba(255,255,255,0.08);
    color: #ffffff;
}

/* Blue focus theme */
.focus-theme-blue .focus-bg-overlay {
    background:
        radial-gradient(1200px 600px at 20% 15%, rgba(111,183,255,0.16), transparent 58%),
        radial-gradient(900px 500px at 82% 18%, rgba(84,124,255,0.18), transparent 52%),
        linear-gradient(180deg, rgba(7,17,31,0.14), rgba(7,17,31,0.26));
}
.focus-theme-blue.focus-studying .focus-bg-overlay {
    background:
        radial-gradient(1200px 600px at 20% 15%, rgba(111,183,255,0.18), transparent 58%),
        radial-gradient(900px 500px at 82% 18%, rgba(84,124,255,0.2), transparent 52%),
        linear-gradient(180deg, rgba(6,14,28,0.22), rgba(6,14,28,0.36));
}
.focus-theme-blue .focus-card,
.focus-theme-blue .focus-timer-card,
.focus-theme-blue .focus-side-icons,
.focus-theme-blue .focus-bottom-btn,
.focus-theme-blue .focus-toolbar,
.focus-theme-blue .focus-modal,
.focus-theme-blue .focus-profile-card,
.focus-theme-blue .focus-profile-card-glass,
.focus-theme-blue .focus-alarm-panel {
    background: rgba(11, 28, 54, 0.54);
    border-color: rgba(111, 183, 255, 0.22);
    box-shadow: 0 16px 34px rgba(5, 12, 24, 0.34);
}
.focus-theme-blue .focus-theme-btn {
    background: rgba(14, 32, 61, 0.72);
    border-color: rgba(111, 183, 255, 0.18);
}
.focus-theme-blue .focus-theme-btn:hover {
    background: rgba(18, 38, 72, 0.82);
    border-color: rgba(111, 183, 255, 0.3);
}
.focus-theme-blue .focus-theme-btn.active {
    background: rgba(111, 183, 255, 0.18);
    border-color: rgba(111, 183, 255, 0.5);
}
.focus-theme-blue .focus-side-icon,
.focus-theme-blue .focus-tb-btn,
.focus-theme-blue .focus-modal-close,
.focus-theme-blue .focus-bottom-btn {
    color: rgba(229, 240, 255, 0.88);
}
.focus-theme-blue .focus-side-icon:hover,
.focus-theme-blue .focus-tb-btn:hover,
.focus-theme-blue .focus-modal-close:hover,
.focus-theme-blue .focus-bottom-btn:hover {
    background: rgba(111, 183, 255, 0.14);
    color: #ffffff;
}
.focus-theme-blue .focus-progress-fill,
.focus-theme-blue .focus-accent-bar,
.focus-theme-blue .focus-calendar-cell.active,
.focus-theme-blue .focus-schedule-day-dot,
.focus-theme-blue .focus-task-check.done {
    background: linear-gradient(90deg, #6fb7ff, #7aa2f7);
}
.focus-theme-blue .focus-accent,
.focus-theme-blue .focus-link,
.focus-theme-blue .focus-stat-value.highlight {
    color: #8ec5ff;
}

/* Slate focus theme */
.focus-theme-slate .focus-bg-overlay {
    background:
        radial-gradient(1000px 560px at 18% 18%, rgba(178,192,204,0.12), transparent 56%),
        radial-gradient(820px 500px at 82% 20%, rgba(121,139,154,0.14), transparent 50%),
        linear-gradient(180deg, rgba(18,21,26,0.16), rgba(18,21,26,0.28));
}
.focus-theme-slate.focus-studying .focus-bg-overlay {
    background:
        radial-gradient(1000px 560px at 18% 18%, rgba(178,192,204,0.14), transparent 56%),
        radial-gradient(820px 500px at 82% 20%, rgba(121,139,154,0.16), transparent 50%),
        linear-gradient(180deg, rgba(18,21,26,0.22), rgba(18,21,26,0.34));
}
.focus-theme-slate .focus-card,
.focus-theme-slate .focus-timer-card,
.focus-theme-slate .focus-side-icons,
.focus-theme-slate .focus-bottom-btn,
.focus-theme-slate .focus-toolbar,
.focus-theme-slate .focus-modal,
.focus-theme-slate .focus-profile-card,
.focus-theme-slate .focus-profile-card-glass,
.focus-theme-slate .focus-alarm-panel {
    background: rgba(35, 42, 49, 0.5);
    border-color: rgba(178, 192, 204, 0.18);
    box-shadow: 0 16px 34px rgba(11, 13, 17, 0.32);
}
.focus-theme-slate .focus-theme-btn {
    background: rgba(41, 47, 54, 0.68);
    border-color: rgba(178, 192, 204, 0.16);
}
.focus-theme-slate .focus-theme-btn:hover {
    background: rgba(50, 57, 66, 0.78);
    border-color: rgba(178, 192, 204, 0.28);
}
.focus-theme-slate .focus-theme-btn.active {
    background: rgba(178, 192, 204, 0.16);
    border-color: rgba(178, 192, 204, 0.42);
}
.focus-theme-slate .focus-side-icon,
.focus-theme-slate .focus-tb-btn,
.focus-theme-slate .focus-modal-close,
.focus-theme-slate .focus-bottom-btn {
    color: rgba(239, 243, 247, 0.88);
}
.focus-theme-slate .focus-side-icon:hover,
.focus-theme-slate .focus-tb-btn:hover,
.focus-theme-slate .focus-modal-close:hover,
.focus-theme-slate .focus-bottom-btn:hover {
    background: rgba(178, 192, 204, 0.12);
    color: #ffffff;
}
.focus-theme-slate .focus-progress-fill,
.focus-theme-slate .focus-accent-bar,
.focus-theme-slate .focus-calendar-cell.active,
.focus-theme-slate .focus-schedule-day-dot,
.focus-theme-slate .focus-task-check.done {
    background: linear-gradient(90deg, #b2c0cc, #8da4b7);
}
.focus-theme-slate .focus-accent,
.focus-theme-slate .focus-link,
.focus-theme-slate .focus-stat-value.highlight {
    color: #d7e2eb;
}

@media (max-height: 820px) {
    /* Shrink left column cards and move them up */
    .focus-layout [data-widget="stats"]     { top: 5%; height: 13%; }
    .focus-layout [data-widget="quote"]     { top: 19%; height: 10%; }
    .focus-layout [data-widget="schedule"]  { top: 30%; height: 28%; }

    /* Shrink right column */
    .focus-layout [data-widget="deadlines"] { top: 5%; height: 17%; }
    .focus-layout [data-widget="tasks"]     { top: 23%; height: 35%; }

    /* Timer — slightly higher */
    .focus-layout [data-widget="timer"]     { top: 5%; height: 50%; }

    /* Bottom buttons — push down */
    .focus-bottom-btns { top: 57%; }

    /* Smaller text in cards */
    .focus-card { padding: 14px; }
    .focus-card-title { font-size: 10px; margin-bottom: 10px; }
    .focus-stat-value { font-size: 22px !important; }
    .focus-stat-label { font-size: 9px !important; }
    .focus-timer-card { padding: 24px 40px 20px; }
}

@media (max-height: 700px) {
    .focus-layout [data-widget="stats"]     { top: 3%; height: 14%; }
    .focus-layout [data-widget="quote"]     { top: 18%; height: 10%; }
    .focus-layout [data-widget="schedule"]  { top: 29%; height: 30%; }
    .focus-layout [data-widget="deadlines"] { top: 3%; height: 16%; }
    .focus-layout [data-widget="tasks"]     { top: 20%; height: 38%; }
    .focus-layout [data-widget="timer"]     { top: 3%; height: 52%; }
    .focus-bottom-btns { top: 58%; }
    .focus-card { padding: 10px; }
    .focus-card-title { font-size: 9px; margin-bottom: 6px; }
}

@media (max-width: 1200px) {
    /* Widen center timer, narrow side columns */
    .focus-layout [data-widget="stats"],
    .focus-layout [data-widget="quote"],
    .focus-layout [data-widget="schedule"]  { left: 3%; width: 23%; }
    .focus-layout [data-widget="timer"]     { left: 27%; width: 44%; }
    .focus-layout [data-widget="deadlines"],
    .focus-layout [data-widget="tasks"]     { left: 73%; width: 24%; }
}
