:root {
    --cell-size: 14px;
    --cell-gap: 2px;
    --cell-radius: 3px; /* changed by shape selector */
    --half-gap: 20px;
    --year-num-w: 28px;
    --year-num-margin: 6px;
    --years-vert-w: 20px;
    --shade-color: #888888;
    --bg: #f7f7f5;
    --border: #e0e0dc;
    --text: #1a1a1a;
    --muted: #999;
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.15);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html {
    scroll-behavior: smooth;
}

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

/* ── TOPBAR ─────────────────────────────────── */
.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    z-index: 1000;
    pointer-events: none;
}
.topbar > * {
    pointer-events: all;
}

.home-btn {
    width: 42px;
    height: 42px;
    background: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    color: #555;
    transition: background 0.15s;
}
.home-btn:hover {
    background: #f0f0ee;
}

.right-controls {
    display: flex;
    align-items: center;
    gap: 2px;
    background: white;
    border-radius: 100px;
    padding: 5px 8px;
    box-shadow: var(--shadow);
}
.ctrl-btn {
    width: 34px;
    height: 34px;
    background: transparent;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: all 0.15s;
}
.ctrl-btn:hover {
    background: #f0f0ee;
    color: #222;
}
.ctrl-btn.active {
    background: #1a1a1a;
    color: white;
}

/* ── ZOOM ────────────────────────────────────── */
.zoom-controls {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 500;
}
.zoom-btn {
    width: 38px;
    height: 38px;
    background: white;
    border: 1px solid #e0e0dc;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    font-weight: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    color: #555;
    transition: all 0.15s;
    user-select: none;
    line-height: 1;
}
.zoom-btn:hover {
    background: #f0f0ee;
    color: #222;
}

/* ── SHAPE PICKER POPOVER ────────────────────── */
.shape-picker {
    position: fixed;
    z-index: 4000;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    padding: 6px;
    display: flex;
    gap: 2px;
    animation: modal-in 0.15s ease-out;
}
.shape-picker.hidden {
    display: none;
}
.shape-opt {
    width: 44px;
    height: 44px;
    background: none;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}
.shape-opt:hover {
    background: #f5f5f3;
}
.shape-opt.active {
    border-color: #1a1a1a;
    background: #f0f0ee;
}

/* ── CALENDAR DROPDOWN ───────────────────────── */
.cal-dropdown {
    position: fixed;
    z-index: 4000;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    padding: 6px;
    animation: modal-in 0.15s ease-out;
}
.cal-dropdown.hidden {
    display: none;
}
.cal-dropdown-list {
    padding-bottom: 2px;
}
.cal-dropdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text);
    transition: background 0.15s;
}
.cal-dropdown-item:hover {
    background: #f5f5f3;
}
.cal-dropdown-item.active {
    font-weight: 600;
}
.cal-dropdown-check {
    color: #1a1a1a;
    font-size: 12px;
}
.cal-dropdown-divider {
    height: 1px;
    background: #f0f0ee;
    margin: 4px 0;
}
.cal-dropdown-new {
    width: 100%;
    background: none;
    border: none;
    padding: 9px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #0288d1;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.15s;
}
.cal-dropdown-new:hover {
    background: #f0f8ff;
}

/* ── SLIDE PANEL ─────────────────────────────── */
.slide-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.18);
    z-index: 1999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}
.slide-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.slide-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 340px;
    background: white;
    z-index: 2000;
    box-shadow: -4px 0 32px rgba(0, 0, 0, 0.12);
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}
.slide-panel.open {
    transform: translateX(0);
}

.sp-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 24px 20px 16px;
    border-bottom: 1px solid #f0f0ee;
    flex-shrink: 0;
}
.sp-week {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 2px;
}
.sp-dates {
    font-size: 12px;
    color: #888;
}

.sp-existing {
    padding: 12px 20px;
    border-bottom: 1px solid #f0f0ee;
    flex-shrink: 0;
}
.sp-event-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    font-size: 13px;
}
.sp-event-row svg {
    flex-shrink: 0;
}
.sp-no-events {
    font-size: 13px;
    color: #bbb;
    text-align: center;
    padding: 8px 0;
}

.sp-divider {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #aaa;
    flex-shrink: 0;
}
.sp-divider::before,
.sp-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #f0f0ee;
}

.sp-form {
    padding: 4px 20px 24px;
    flex: 1;
}
.sp-row-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #999;
    margin-bottom: 8px;
}
.sp-syms {
    max-height: 90px;
}

/* ── CALENDAR PAGE ── 2D free scroll ─────────── */
.calendar-page {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: auto; /* scroll both axes freely */
    padding: 16px 32px 80px 32px;
    background: var(--bg);
}
/* prevent ghost body scrollbars */
body {
    overflow: hidden;
}

.calendar-wrapper {
    display: inline-flex;
    flex-direction: column;
    min-width: max-content;
    position: relative;

    /* A4-like page styling */
    background: #fff;

    /* more inner space on left & right for event labels */
    padding: 50px 200px; /* top/bottom 40px, left/right 160px */

    /* slight extra space on the right so labels don’t hit page edge */
    margin: 0 auto 0 auto; /* still centered */

    box-shadow: var(--shadow-lg);
}

/* Header */
.cal-header {
    display: flex;
    align-items: flex-end;
    margin-bottom: 8px;
}
.cal-header-corner {
    flex-shrink: 0;
    width: calc(
        var(--years-vert-w) + var(--year-num-w) + var(--year-num-margin)
    );
    display: flex;
    align-items: flex-end;
    padding-bottom: 2px;
}
.weeks-main-label {
    /* bigger, darker */
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #888;
    white-space: nowrap;
}
.week-nums {
    display: flex;
    gap: var(--cell-gap);
}
.wk-n {
    /* bigger, darker */
    width: var(--cell-size);
    text-align: center;
    font-size: 7.5px;
    color: #888;
    flex-shrink: 0;
    line-height: 1;
}
.header-half-gap {
    width: var(--half-gap);
    flex-shrink: 0;
}

/* Body */
.cal-body {
    display: flex;
}

/* ── CALENDAR HEADING (top-centred, black) ────── */
.cal-heading {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center; /* ← centred horizontally */
    gap: 12px;
    padding: 4px 0 20px 0;
    font-size: 30px;
    font-weight: 800;
    letter-spacing: 8px;
    color: #1a1a1a; /* ← black */
    text-transform: uppercase;
    user-select: none;
}
.cal-heading-icon {
    display: flex;
    align-items: center;
    color: #1a1a1a;
}

/* YEARS label */
.years-vert {
    width: var(--years-vert-w);
    flex-shrink: 0;
    padding-top: 2px;
}
.years-vert-text {
    writing-mode: vertical-lr;
    font-size: 9px;
    letter-spacing: 3px; /* bigger */
    color: #888;
    text-transform: uppercase;
    white-space: nowrap;
}

.cal-rows {
    flex: 1;
}

/* Year rows */
.year-row {
    display: flex;
    align-items: center;
    margin-bottom: var(--cell-gap);
}
.year-num {
    /* darker */
    width: var(--year-num-w);
    margin-right: var(--year-num-margin);
    text-align: right;
    font-size: 8px;
    color: #888;
    flex-shrink: 0;
    height: var(--cell-size);
    display: flex;
    align-items: center;
    justify-content: flex-end;
}
.weeks-half {
    display: flex;
    gap: var(--cell-gap);
}
.row-gap {
    width: var(--half-gap);
    flex-shrink: 0;
}
.decade-gap {
    height: 12px;
}

/* ── WEEK CELL ───────────────────────────────── */
.week-cell {
    width: var(--cell-size);
    height: var(--cell-size);
    border-radius: var(--cell-radius);
    border: 1px solid rgba(0, 0, 0, 0.18); /* subtle dark outline on all cells */
    background: transparent;
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition:
        filter 0.12s,
        background 0.12s,
        border-color 0.12s;
}
/* Hover: darken in place — NO scale transform */
.week-cell:hover {
    filter: brightness(0.78);
}
/* Empty cells need a bg tint on hover since they're transparent */
.week-cell:not(.lived):not(.has-event):hover {
    filter: none;
    background: rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.32);
}

.week-cell.lived {
    background: var(--shade-color);
}
.week-cell.current-week {
    outline: 2px solid #ff3b30;
    outline-offset: 1px;
}
.week-cell.has-event {
    border-width: 2px;
}

.cell-icon {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    user-select: none;
}
.cell-icon svg {
    width: 74%;
    height: 74%;
}

/* ── MODALS ──────────────────────────────────── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5000;
    padding: 16px;
}
.modal-overlay.hidden {
    display: none;
}

.modal {
    background: white;
    border-radius: 16px;
    padding: 24px;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    animation: modal-in 0.2s ease-out;
}
.compact-modal {
    max-width: 360px;
}
.event-modal {
    max-width: 520px;
}

@keyframes modal-in {
    from {
        opacity: 0;
        transform: scale(0.96) translateY(8px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-icon {
    font-size: 44px;
    text-align: center;
    margin-bottom: 12px;
}
.modal h2 {
    font-size: 22px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 6px;
}
.modal-subtitle {
    font-size: 14px;
    color: #888;
    text-align: center;
    margin-bottom: 24px;
}
.modal-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
.modal-topbar h3 {
    font-size: 16px;
    font-weight: 600;
}
.event-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
}
.event-color-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #333;
    flex-shrink: 0;
}
.modal-crumb {
    font-size: 14px;
    color: #555;
    font-weight: 500;
}

.close-btn {
    width: 28px;
    height: 28px;
    background: none;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    color: #999;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}
.close-btn:hover {
    background: #f5f5f3;
    color: #333;
}

/* ── FORM ────────────────────────────────────── */
.form-group {
    margin-bottom: 16px;
}
.form-group > label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 6px;
}
.form-input {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    background: #fafafa;
    color: var(--text);
    transition:
        border-color 0.15s,
        background 0.15s;
}
.form-input:focus {
    border-color: #333;
    background: white;
}

/* ── BUTTONS ─────────────────────────────────── */
.btn-primary {
    background: #1a1a1a;
    color: white;
    border: none;
    border-radius: 10px;
    padding: 11px 20px;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background 0.15s;
}
.btn-primary:hover {
    background: #333;
}
.btn-secondary {
    background: #f2f2f0;
    color: #333;
    border: none;
    border-radius: 10px;
    padding: 11px 20px;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s;
}
.btn-secondary:hover {
    background: #e8e8e6;
}
.full-width {
    width: 100%;
}

.modal-footer {
    display: flex;
    gap: 8px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #f0f0ee;
}
.modal-footer .btn-primary,
.modal-footer .btn-secondary {
    flex: 1;
}

/* ── DATE PICKER ─────────────────────────────── */
.dp-host {
    position: relative;
    width: 100%;
}
.dp-trigger {
    width: 100%;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    gap: 8px;
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    background: #fafafa;
    color: var(--text);
    transition: border-color 0.15s;
}
.dp-trigger:hover {
    border-color: #aaa;
    background: white;
}
.dp-trigger:focus {
    outline: none;
    border-color: #333;
}
.dp-placeholder {
    color: #aaa;
}
.dp-trigger-val {
    flex: 1;
}

.dp-popup {
    position: fixed;
    z-index: 6000;
    background: white;
    border-radius: 14px;
    box-shadow: 0 8px 36px rgba(0, 0, 0, 0.18);
    padding: 16px;
    min-width: 280px;
    animation: modal-in 0.15s ease-out;
}
.dp-popup.hidden {
    display: none;
}
.dp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}
.dp-nav {
    width: 30px;
    height: 30px;
    background: #f5f5f3;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    transition: background 0.15s;
    line-height: 1;
}
.dp-nav:hover {
    background: #eaeae8;
}
.dp-sel-wrap {
    display: flex;
    gap: 6px;
}
.dp-sel {
    background: #f5f5f3;
    border: none;
    border-radius: 8px;
    padding: 5px 8px;
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    outline: none;
    color: var(--text);
}
.dp-sel:hover {
    background: #eaeae8;
}
.dp-wd-row {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    margin-bottom: 4px;
}
.dp-wd {
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    color: #bbb;
    padding: 4px 0;
}
.dp-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}
.dp-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 12px;
    cursor: pointer;
    color: var(--text);
    transition: background 0.1s;
}
.dp-day:not(.disabled):not(.dp-blank):hover {
    background: #f0f0ee;
}
.dp-day.selected {
    background: #1a1a1a;
    color: white;
}
.dp-day.today {
    font-weight: 700;
    color: #0288d1;
}
.dp-day.today.selected {
    color: white;
}
.dp-day.disabled {
    color: #ddd;
    cursor: default;
}
.dp-day.dp-blank {
    cursor: default;
}

/* ── EVENT MODAL ─────────────────────────────── */
.event-options-row {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}
.option-card {
    flex: 1;
    background: #f8f8f6;
    border-radius: 12px;
    padding: 12px;
}
.option-card-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 10px;
}
.swatch-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.swatch {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.15s;
    flex-shrink: 0;
}
.swatch:hover {
    transform: scale(1.12);
}
.swatch.selected {
    border-color: white;
    box-shadow: 0 0 0 2px #1a1a1a;
}
.swatch-grid.large .swatch {
    width: 34px;
    height: 34px;
}
/* ── SHADE COLOUR BLOCKED IN EVENT PICKER ──────── */
.swatch.swatch-shade {
    opacity: 0.22;
    cursor: not-allowed;
    pointer-events: none;
    filter: grayscale(1);
}

.symbol-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    max-height: 116px;
    overflow-y: auto;
}
.sym-btn {
    width: 36px;
    height: 36px;
    background: white;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    flex-shrink: 0;
}
.sym-btn svg {
    width: 18px;
    height: 18px;
}
.sym-btn:hover {
    background: #eeeeec;
    color: #333;
}
.sym-btn.selected {
    border-color: #1a1a1a;
    background: #f0f0ee;
    color: #1a1a1a;
}
.date-range-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}
.date-field {
    flex: 1;
}
.end-date-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}
.end-date-wrap.hidden {
    display: none;
}
.date-arrow {
    color: #aaa;
    font-size: 14px;
    flex-shrink: 0;
}
.toggle-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #666;
    cursor: pointer;
}
.toggle-row input {
    cursor: pointer;
    accent-color: #1a1a1a;
}

/* ── MISC MODAL COMPONENTS ───────────────────── */
.hint {
    font-size: 13px;
    color: #888;
    margin-bottom: 14px;
}
.auth-tabs {
    display: flex;
    background: #f0f0ee;
    border-radius: 8px;
    padding: 3px;
    margin-bottom: 16px;
}
.auth-tab {
    flex: 1;
    background: none;
    border: none;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: #888;
    transition: all 0.15s;
    font-family: inherit;
}
.auth-tab.active {
    background: white;
    color: var(--text);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.auth-error {
    font-size: 13px;
    color: #e44;
    padding: 8px 12px;
    background: #fee;
    border-radius: 8px;
    margin-bottom: 12px;
}
.auth-error.hidden {
    display: none;
}
.or-divider {
    text-align: center;
    color: #ccc;
    font-size: 12px;
    margin: 14px 0;
    position: relative;
}
.or-divider::before,
.or-divider::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 42%;
    height: 1px;
    background: #eee;
}
.or-divider::before {
    left: 0;
}
.or-divider::after {
    right: 0;
}
.user-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 24px 16px;
    background: #f8f8f6;
    border-radius: 12px;
    margin-bottom: 16px;
}
.user-avatar {
    font-size: 40px;
}
.user-email {
    font-size: 14px;
    color: #555;
}

/* ── EVENTS LIST ─────────────────────────────── */
.events-list {
    min-height: 50px;
    max-height: 50vh;
    overflow-y: auto;
    margin-bottom: 4px;
}
.event-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    margin-bottom: 6px;
    cursor: pointer;
    transition: background 0.15s;
}
.event-item:hover {
    background: #f5f5f3;
}
.event-item-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}
.event-item-sym {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.event-item-sym svg {
    width: 20px;
    height: 20px;
}
.event-item-body {
    flex: 1;
    min-width: 0;
}
.event-item-name {
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.event-item-dates {
    font-size: 12px;
    color: #888;
}
.event-item-del {
    background: none;
    border: none;
    cursor: pointer;
    color: #ccc;
    font-size: 14px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.15s;
}
.event-item-del:hover {
    background: #fee;
    color: #e44;
}
.no-events-msg {
    text-align: center;
    color: #bbb;
    padding: 32px 16px;
    font-size: 14px;
}
.add-event-from-list {
    margin-top: 8px;
}

/* ── TOOLTIP & TOAST ─────────────────────────── */
.cell-tooltip {
    position: fixed;
    background: rgba(20, 20, 20, 0.9);
    color: white;
    font-size: 12px;
    line-height: 1.5;
    padding: 8px 12px;
    border-radius: 8px;
    pointer-events: none;
    z-index: 9000;
    max-width: 220px;
}
.cell-tooltip.hidden {
    display: none;
}
.toast {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(20, 20, 20, 0.92);
    color: white;
    padding: 10px 20px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    z-index: 9999;
    pointer-events: none;
    white-space: nowrap;
    animation: toast-in 0.2s ease-out;
}
.toast.hidden {
    display: none;
}
@keyframes toast-in {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #bbb;
}
