* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg: #0f1117;
    --surface: #1a1d27;
    --surface2: #252837;
    --border: #2e3147;
    --text: #e8eaf0;
    --muted: #7c7f96;
    --accent: #6c63ff;
    --green: #43d9a2;
    --red: #ff6584;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    padding: 16px;
}

/* ── HEADER ───────────────────────────────────── */
.header {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 10px 18px;
    margin-bottom: 10px;
    position: relative;
}
.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
}
.brand { font-size: 22px; font-weight: 700; color: var(--accent); }
.brand-sub { font-size: 13px; color: var(--muted); margin-top: 3px; }
.clock-wrap { text-align: right; flex-shrink: 0; }
.clock-row { display: flex; align-items: baseline; gap: 6px; justify-content: flex-end; }
#clock { font-size: 28px; font-weight: 200; letter-spacing: 2px; }
#ampm { font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: 1px; }
#date-label { font-size: 11px; color: var(--muted); margin-top: 2px; }

/* ── WEATHER PILL STRIP (inside header) ────────── */
.hw-strip {
    display: flex; gap: 5px;
    justify-content: flex-end; align-items: center;
    flex-wrap: nowrap; overflow-x: auto;
    position: relative;
}
.hw-pill {
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    padding: 5px 9px; border-radius: 10px;
    border: 1px solid var(--border); background: var(--surface2);
    cursor: pointer; flex-shrink: 0;
    transition: border-color 0.15s, background 0.15s;
    min-width: 48px;
}
.hw-pill:hover { border-color: var(--muted); }
.hw-pill.today { border-color: var(--accent); background: rgba(108,99,255,0.13); }
.hw-pill.selected { border-color: #e8eaf0 !important; background: rgba(255,255,255,0.08) !important; }
.hw-name { font-size: 9px; font-weight: 700; text-transform: uppercase; color: var(--muted); letter-spacing: 0.5px; }
.hw-icon { font-size: 16px; line-height: 1; }
.hw-rain { font-size: 9px; font-weight: 700; padding: 1px 5px; border-radius: 10px; }

/* ── WEATHER DETAIL DROPDOWN (floats below pill strip) ─── */
.hw-strip-wrap {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    padding-right: 18px;
    position: relative;
}
#weather-detail {
    display: none;
    position: absolute;
    top: 100%;
    z-index: 200;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.35);
    margin-top: 6px;
    /* left & width set dynamically by JS to match #hw-strip exactly */
}
#weather-detail.open { display: block; }
.detail-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 8px;
}
.detail-title { font-size: 11px; font-weight: 700; }
.detail-note { font-size: 9px; color: var(--muted); }
.detail-close {
    background: none; border: none; color: var(--muted);
    font-size: 14px; cursor: pointer; padding: 0 2px; line-height: 1;
}
.detail-close:hover { color: var(--text); }
.detail-slots { display: flex; gap: 5px; justify-content: space-between; }
.detail-slot {
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    background: var(--surface2); border: 1px solid var(--border);
    border-radius: 10px; padding: 5px 9px; text-align: center;
    flex: 1;
}
.slot-time { font-size: 9px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; }
.slot-icon { font-size: 16px; line-height: 1; }
.slot-temp { font-size: 9px; font-weight: 700; }
.slot-rain {
    display: inline-flex; align-items: center; gap: 2px;
    font-size: 9px; font-weight: 700;
    padding: 1px 5px; border-radius: 10px;
}
.slot-desc { display: none; }
.rain-low  { background: rgba(67,217,162,0.15); color: #43d9a2; }
.rain-med  { background: rgba(255,179,71,0.15);  color: #ffb347; }
.rain-high { background: rgba(255,101,132,0.18); color: #ff6584; }

/* ── TASK EDIT MODAL ─────────────────────────── */
.modal-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,0.55); z-index: 500;
    align-items: flex-start; justify-content: center;
    padding-top: 60px;
}
.modal-overlay.open { display: flex; }
.modal {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 14px; padding: 20px 22px;
    width: 480px; max-width: 95vw; max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 16px 48px rgba(0,0,0,0.5);
}
.modal-title {
    font-size: 13px; font-weight: 700; margin-bottom: 16px;
    display: flex; justify-content: space-between; align-items: center;
}
.modal-close {
    background: none; border: none; color: var(--muted);
    font-size: 18px; cursor: pointer; line-height: 1; padding: 0 2px;
}
.modal-close:hover { color: var(--text); }
.modal-field { margin-bottom: 13px; }
.modal-label { font-size: 10px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 5px; }
.modal-input {
    width: 100%; background: var(--surface2); border: 1px solid var(--border);
    border-radius: 8px; padding: 7px 10px; color: var(--text);
    font-size: 12px; box-sizing: border-box;
}
.modal-input:focus { outline: none; border-color: var(--accent); }
.modal-cat-pills { display: flex; gap: 5px; flex-wrap: wrap; }
.modal-cat-pill {
    font-size: 10px; font-weight: 700; padding: 3px 10px;
    border-radius: 20px; border: 1px solid transparent;
    cursor: pointer; opacity: 0.45; transition: opacity 0.15s;
}
.modal-cat-pill.active { opacity: 1; border-color: currentColor; }
.modal-pri-pills { display: flex; gap: 6px; }
.modal-pri-pill {
    font-size: 10px; font-weight: 700; padding: 3px 12px;
    border-radius: 20px; border: 1px solid var(--border);
    cursor: pointer; background: var(--surface2); color: var(--muted);
}
.modal-pri-pill.active-high  { background: rgba(255,101,132,0.2); color: #ff6584; border-color: #ff6584; }
.modal-pri-pill.active-medium{ background: rgba(255,179,71,0.2);  color: #ffb347; border-color: #ffb347; }
.modal-pri-pill.active-low   { background: rgba(67,217,162,0.2);  color: #43d9a2; border-color: #43d9a2; }
/* Subtasks inside modal */
.modal-sub-list { display: flex; flex-direction: column; gap: 5px; margin-bottom: 8px; }
.modal-sub-row {
    display: flex; align-items: center; gap: 7px;
    background: var(--surface2); border: 1px solid var(--border);
    border-radius: 8px; padding: 5px 8px;
}
.modal-sub-check {
    width: 14px; height: 14px; border-radius: 50%;
    border: 2px solid var(--border); flex-shrink: 0; cursor: pointer;
    background: transparent;
}
.modal-sub-check.done { background: var(--accent); border-color: var(--accent); }
.modal-sub-text {
    flex: 1; background: none; border: none; color: var(--text);
    font-size: 11px; padding: 0;
}
.modal-sub-text:focus { outline: none; }
.modal-sub-text.done-text { text-decoration: line-through; color: var(--muted); }
.modal-sub-del {
    background: none; border: none; color: var(--muted);
    font-size: 14px; cursor: pointer; line-height: 1; padding: 0 2px;
}
.modal-sub-del:hover { color: #ff6584; }
.modal-add-sub-row {
    display: flex; gap: 6px;
}
.modal-add-sub-inp {
    flex: 1; background: var(--surface2); border: 1px solid var(--border);
    border-radius: 8px; padding: 5px 9px; color: var(--text); font-size: 11px;
}
.modal-add-sub-inp:focus { outline: none; border-color: var(--accent); }
.modal-add-sub-btn {
    background: var(--accent); border: none; border-radius: 8px;
    color: #fff; font-size: 11px; font-weight: 700;
    padding: 5px 12px; cursor: pointer;
}
.modal-save-btn {
    width: 100%; background: var(--accent); border: none; border-radius: 8px;
    color: #fff; font-size: 12px; font-weight: 700;
    padding: 9px; cursor: pointer; margin-top: 16px;
}
.modal-save-btn:hover { opacity: 0.9; }

/* ── STATS BAR ────────────────────────────────── */
.stats-bar { display: flex; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.chip {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 20px; padding: 4px 12px;
    font-size: 11px; color: var(--muted);
    display: flex; align-items: center; gap: 4px;
}
.chip b { color: var(--text); font-weight: 700; }


/* ── MAIN GRID ────────────────────────────────── */
.main-grid {
    display: grid;
    grid-template-columns: 1fr 2.2fr;
    gap: 12px;
    align-items: start;
}
.left-col { display: flex; flex-direction: column; gap: 12px; }
.panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px;
    display: flex;
    flex-direction: column;
}
.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}
.panel-title { font-size: 13px; font-weight: 700; }
.panel-sub { font-size: 10px; color: var(--muted); margin-top: 2px; }
.panel-icon { font-size: 18px; }
.sort-select {
    background: var(--surface2); border: 1px solid var(--border);
    border-radius: 6px; color: var(--muted);
    font-size: 10px; font-family: inherit;
    padding: 3px 6px; cursor: pointer; outline: none;
}
.sort-select:focus { border-color: var(--accent); color: var(--text); }

/* ── STREAK CHIP ──────────────────────────────── */
.streak-chip { transition: border-color 0.4s, box-shadow 0.4s; cursor: default; }

/* ── RECURRING TASK INDICATOR ─────────────────── */
.recur-badge {
    font-size: 9px; color: var(--muted); flex-shrink: 0;
    margin-top: 3px; opacity: 0.7;
}
.recur-check {
    width: 16px; height: 16px; border-radius: 50%;
    border: 2px solid var(--border); flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 9px; margin-top: 2px; color: var(--muted);
}

/* ── VIEW TABS ────────────────────────────────── */
.view-tabs {
    display: flex; gap: 3px;
    background: var(--surface2);
    border-radius: 8px; padding: 3px;
    margin-bottom: 10px;
}
.view-tab {
    flex: 1; padding: 5px 0;
    font-size: 12px; font-weight: 600;
    border: none; border-radius: 6px;
    background: transparent; color: var(--muted);
    cursor: pointer; font-family: inherit;
    transition: all 0.15s;
}
.view-tab.active { background: var(--surface); color: var(--text); }

/* ── TASK INPUT ───────────────────────────────── */
.input-row { display: flex; gap: 6px; margin-bottom: 10px; }
.task-input {
    flex: 1;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px 11px;
    color: var(--text);
    font-size: 13px;
    font-family: inherit;
    outline: none;
}
.task-input:focus { border-color: var(--accent); }
.task-input::placeholder { color: var(--muted); }
.time-input {
    width: 58px; flex-shrink: 0;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px 6px;
    color: var(--text);
    font-size: 12px; font-family: inherit;
    outline: none; text-align: center;
}
.time-input:focus { border-color: var(--accent); }
.time-input::placeholder { color: var(--muted); font-size: 11px; }

.btn-add {
    width: 34px; height: 34px;
    background: var(--accent);
    border: none; border-radius: 8px;
    color: #fff; font-size: 22px;
    cursor: pointer; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.15s;
}
.btn-add:hover { opacity: 0.8; }

/* ── CATEGORY TABS ────────────────────────────── */
.cat-tabs { display: flex; gap: 5px; margin-bottom: 10px; flex-wrap: wrap; }
.cat-tab {
    font-size: 11px; font-weight: 600;
    padding: 3px 10px; border-radius: 20px;
    border: 1.5px solid var(--border);
    background: transparent; color: var(--muted);
    cursor: pointer; font-family: inherit;
    transition: all 0.15s; white-space: nowrap;
}
.cat-tab:hover { color: var(--text); border-color: var(--text); }
.cat-tab.active { color: #0f1117 !important; border-color: transparent !important; }

/* ── TASK LIST ────────────────────────────────── */
.task-list { flex: 1; overflow-y: auto; max-height: 520px; }
.win-list  { overflow-y: auto; }

.task-item {
    display: flex; align-items: flex-start;
    gap: 6px; padding: 6px 8px;
    border-radius: 8px; margin-bottom: 2px;
    transition: background 0.12s;
}
.task-item:hover { background: var(--surface2); }

/* depth indentation */
.task-item[data-depth="1"] { padding-left: 22px; }
.task-item[data-depth="2"] { padding-left: 36px; }
.task-item[data-depth="1"] .t-text { font-size: 12px; color: var(--muted); }
.task-item[data-depth="2"] .t-text { font-size: 11px; color: var(--muted); }
.task-item[data-depth="1"].done .t-text,
.task-item[data-depth="2"].done .t-text { color: #555; }

/* expand toggle */
.expand-btn {
    width: 13px; height: 13px; flex-shrink: 0;
    background: none; border: none; color: var(--muted);
    font-size: 8px; cursor: pointer; padding: 0;
    display: flex; align-items: center; justify-content: center;
    transition: transform 0.15s, color 0.15s;
    margin-top: 3px;
}
.expand-btn:hover { color: var(--text); }
.expand-btn.open { transform: rotate(90deg); }
.expand-ph { width: 13px; flex-shrink: 0; }

/* check circle color set inline via category color */

.t-check {
    width: 16px; height: 16px;
    border-radius: 50%;
    border: 2px solid var(--border);
    flex-shrink: 0; cursor: pointer; margin-top: 2px;
    display: flex; align-items: center; justify-content: center;
    transition: border-color 0.15s, background 0.15s;
}
.t-check:hover { border-color: var(--green); }
.task-item.done .t-check { background: var(--green); border-color: var(--green) !important; }
.task-item.done .t-check::after { content: '✓'; font-size: 9px; color: #0f1117; font-weight: 800; }

.t-text { flex: 1; font-size: 13px; line-height: 1.4; min-width: 0; word-break: break-word; }
.task-item.done .t-text { text-decoration: line-through; color: var(--muted); }

/* hover tooltip */
#task-tooltip {
    position: fixed; z-index: 400;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 9px; padding: 8px 11px;
    font-size: 11px; color: var(--text);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
    max-width: 260px; pointer-events: none;
    display: none;
}
#task-tooltip .tt-header { display: flex; align-items: center; gap: 7px; margin-bottom: 4px; }
#task-tooltip .tt-cat  { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
#task-tooltip .tt-pri  { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
#task-tooltip .tt-desc { color: var(--muted); font-size: 11px; line-height: 1.4; }
#task-tooltip .tt-due  { font-size: 10px; color: var(--muted); margin-top: 4px; }

/* badges */
.time-badge {
    font-size: 10px; font-weight: 600; color: var(--muted);
    background: var(--surface2); border: 1px solid var(--border);
    border-radius: 20px; padding: 1px 7px;
    flex-shrink: 0; white-space: nowrap; margin-top: 2px;
}
.progress-badge {
    font-size: 10px; font-weight: 700; color: var(--muted);
    padding: 1px 5px; flex-shrink: 0; white-space: nowrap; margin-top: 2px;
}

/* add subtask & delete */
.add-sub-btn {
    opacity: 0; width: 17px; height: 17px; flex-shrink: 0;
    background: var(--surface2); border: 1px solid var(--border);
    border-radius: 50%; color: var(--muted); font-size: 12px;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    padding: 0; transition: opacity 0.12s, color 0.12s, border-color 0.12s;
    margin-top: 1px;
}
.task-item:hover .add-sub-btn { opacity: 1; }
.add-sub-btn:hover { color: var(--accent); border-color: var(--accent); }

.move-today-btn {
    opacity: 0; background: none; border: none;
    color: var(--muted); font-size: 12px; cursor: pointer;
    flex-shrink: 0; padding: 0 1px;
    transition: opacity 0.12s, color 0.12s;
    margin-top: 2px;
}
.task-item:hover .move-today-btn { opacity: 1; }
.move-today-btn:hover { color: var(--accent); }

.t-del {
    opacity: 0; background: none; border: none;
    color: var(--muted); cursor: pointer;
    font-size: 15px; padding: 0 2px; flex-shrink: 0;
    transition: opacity 0.12s, color 0.12s; margin-top: 1px;
}
.task-item:hover .t-del { opacity: 1; }
.t-del:hover { color: var(--red); }

/* inline subtask add row */
.inline-add {
    display: flex; gap: 5px; align-items: center;
    padding: 4px 8px 4px; margin-bottom: 2px;
}
.inline-input {
    flex: 1; background: var(--surface2);
    border: 1px solid var(--accent); border-radius: 6px;
    padding: 5px 9px; color: var(--text);
    font-size: 12px; font-family: inherit; outline: none;
}
.inline-time {
    width: 50px; background: var(--surface2);
    border: 1px solid var(--border); border-radius: 6px;
    padding: 5px 6px; color: var(--text);
    font-size: 12px; font-family: inherit; outline: none; text-align: center;
}
.inline-ok {
    background: var(--accent); border: none; border-radius: 6px;
    color: #fff; font-size: 13px; width: 26px; height: 26px;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.inline-cancel {
    background: none; border: none; color: var(--muted);
    font-size: 16px; cursor: pointer; padding: 0 2px; flex-shrink: 0;
}
.inline-cancel:hover { color: var(--red); }

/* ── DRAG TO REORDER ─────────────────────────── */
.drag-handle {
    width: 12px; flex-shrink: 0;
    color: var(--muted); font-size: 13px; line-height: 1;
    cursor: grab; display: none;
    align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.12s;
    margin-top: 1px; user-select: none;
}
.task-item:hover .drag-handle { opacity: 0.5; }
.drag-handle:hover { opacity: 1 !important; color: var(--text); }
.drag-handle:active { cursor: grabbing; }
.task-list.drag-mode .task-item[data-depth="0"]:not(.done) .drag-handle { display: flex; }
.task-item.drag-over-top    { box-shadow: inset 0 2px 0 var(--accent); }
.task-item.drag-over-bottom { box-shadow: inset 0 -2px 0 var(--accent); }
.task-item.dragging { opacity: 0.35; background: var(--surface2); }

/* ── WINS ─────────────────────────────────────── */
.win-item {
    display: flex; align-items: flex-start;
    gap: 10px; padding: 7px 8px;
    border-radius: 8px; margin-bottom: 3px;
}
.win-dot {
    width: 6px; height: 6px;
    border-radius: 50%; background: var(--green);
    flex-shrink: 0; margin-top: 6px;
}
.win-text { font-size: 13px; line-height: 1.45; color: var(--muted); }

/* ── SHOPPING LIST ───────────────────────────── */
.shop-tabs { display: flex; gap: 4px; margin-bottom: 8px; flex-wrap: wrap; }
.shop-tab {
    font-size: 10px; font-weight: 700; padding: 3px 10px; border-radius: 20px;
    border: 1.5px solid var(--border); background: transparent; color: var(--muted);
    cursor: pointer; font-family: inherit; transition: all 0.15s;
}
.shop-tab:hover { color: var(--text); border-color: var(--text); }
.shop-tab.active { color: #0f1117 !important; border-color: transparent !important; }
.shop-input-row { display: flex; gap: 6px; margin-bottom: 8px; }
.shop-list { overflow-y: auto; }
.shop-item {
    display: flex; align-items: center; gap: 7px;
    padding: 5px 8px; border-radius: 8px; margin-bottom: 2px;
    transition: background 0.12s;
}
.shop-item:hover { background: var(--surface2); }
.shop-check {
    width: 15px; height: 15px; border-radius: 50%;
    border: 2px solid var(--border); flex-shrink: 0; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: border-color 0.15s, background 0.15s;
}
.shop-check:hover { border-color: var(--green); }
.shop-item.done .shop-check { background: var(--green); border-color: var(--green); }
.shop-item.done .shop-check::after { content: '✓'; font-size: 8px; color: #0f1117; font-weight: 800; }
.shop-text { flex: 1; font-size: 12px; line-height: 1.4; }
.shop-item.done .shop-text { text-decoration: line-through; color: var(--muted); }
.shop-clear {
    display: none; width: 100%; background: none; border: none;
    font-size: 10px; color: var(--muted); cursor: pointer;
    padding: 4px 0 2px; text-align: left;
}
.shop-clear.visible { display: block; }
.shop-clear:hover { color: var(--red); }

/* ── EMPTY ────────────────────────────────────── */
.empty {
    text-align: center; color: var(--muted);
    font-size: 12px; padding: 28px 12px;
    opacity: 0.7; line-height: 1.7;
}

/* ── SCROLLBARS ───────────────────────────────── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

/* ── LOGIN OVERLAY ──────────────────────────────── */
.login-overlay {
    position: fixed; inset: 0; background: var(--bg);
    z-index: 10000; display: flex;
    align-items: center; justify-content: center;
    padding: 16px;
}
.login-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 14px; padding: 28px 24px;
    width: min(360px, 100%);
    box-shadow: 0 16px 48px rgba(0,0,0,0.4);
}
.login-title { font-size: 22px; font-weight: 700; color: var(--accent); text-align: center; }
.login-sub   { font-size: 13px; color: var(--muted); text-align: center; margin: 4px 0 18px; }
.login-card input {
    width: 100%; padding: 10px 12px; margin-bottom: 10px;
    background: var(--surface2); border: 1px solid var(--border);
    border-radius: 8px; color: var(--text); font-size: 14px;
    font-family: inherit;
}
.login-card input:focus { outline: none; border-color: var(--accent); }
#login-btn {
    width: 100%; padding: 10px; margin-top: 6px;
    background: var(--accent); border: 0; border-radius: 8px;
    color: white; font-size: 14px; font-weight: 600; cursor: pointer;
    font-family: inherit;
}
#login-btn:hover:not(:disabled) { filter: brightness(1.1); }
#login-btn:disabled { opacity: 0.6; cursor: default; }
.login-err { color: var(--red); font-size: 12px; margin-top: 10px; text-align: center; min-height: 16px; }

/* ── LOGOUT BUTTON ──────────────────────────────── */
#logout-btn {
    margin-top: 4px; background: none; border: 1px solid var(--border);
    border-radius: 6px; color: var(--muted); font-size: 9px; padding: 2px 7px;
    cursor: pointer; font-family: inherit;
}
#logout-btn:hover { border-color: var(--muted); color: var(--text); }

/* ── TOAST ────────────────────────────────────── */
#toast-container {
    position: fixed;
    bottom: 16px; right: 16px;
    display: flex; flex-direction: column; gap: 8px;
    z-index: 9999; max-width: 420px;
    pointer-events: none;
}
.toast {
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: 10px;
    padding: 10px 14px;
    color: var(--text);
    font-size: 12px;
    line-height: 1.4;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.25s, transform 0.25s;
    pointer-events: auto;
    word-break: break-word;
}
.toast.toast-in  { opacity: 1; transform: translateX(0); }
.toast.toast-out { opacity: 0; transform: translateX(20px); }
.toast-error { border-left-color: var(--red); }
.toast-ok    { border-left-color: var(--green); }
.toast-info  { border-left-color: var(--accent); }

/* ── RESPONSIVE ───────────────────────────────── */
@media (max-width: 960px) {
    .main-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    body { padding: 8px; }
    .main-grid { grid-template-columns: 1fr; }
    #clock { font-size: 22px; }
    .detail-slots { grid-template-columns: repeat(2, 1fr); }
}
