/* ===== REMINDERS PLUGIN STYLES ===== */
/* Clean, compact design — neutral badges, inline stats */

.rem-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 16px 100px;
}

/* ===== Dashboard Header Panel ===== */
.rem-dashboard-panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0 16px 10px;
    margin-bottom: 16px;
    overflow: hidden;
}

.rem-progress-track {
    height: 3px;
    background: var(--border);
    margin: 0 -16px 10px;
    position: relative;
    overflow: hidden;
}

.rem-progress-fill {
    height: 100%;
    background: #34C759;
    border-radius: 0 2px 2px 0;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Stats Strip (inline) ===== */
.rem-stats-strip {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 12px;
    color: var(--text-secondary);
}

.rem-weekly-label {
    font-size: 12px;
    color: var(--text-secondary);
}

.rem-weekly-pct {
    font-weight: 700;
    color: #34C759;
    font-size: 12px;
}

.rem-stats-divider {
    width: 1px;
    height: 14px;
    background: var(--border);
    flex-shrink: 0;
}

.rem-stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 100px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}

.rem-stat-pill:hover {
    background: rgba(0, 0, 0, 0.04);
}

.rem-stat-pill.active {
    background: rgba(0, 122, 255, 0.08);
    color: var(--apple-blue);
}

.rem-stat-value {
    font-weight: 700;
    color: var(--text);
    font-size: 13px;
}

.rem-stat-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

.dot-total { background: var(--apple-blue); }
.dot-overdue { background: #FF3B30; }
.dot-today { background: #5AC8FA; }
.dot-done { background: #34C759; }

/* ===== Controls (Filters + Search) ===== */
.rem-controls {
    margin-bottom: 16px;
}

.rem-filter-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 10px;
}

.rem-filter-row {
    display: flex;
    gap: 5px;
    overflow-x: auto;
    flex: 1;
    min-width: 0;
    -webkit-overflow-scrolling: touch;
}

.rem-new-btn {
    flex-shrink: 0;
    padding: 7px 14px;
    border-radius: 100px;
    border: 1px solid var(--apple-blue);
    background: transparent;
    color: var(--apple-blue);
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}

.rem-new-btn:hover {
    background: var(--apple-blue);
    color: #fff;
}

.rem-new-btn:active {
    transform: scale(0.96);
}

.rem-filter-btn {
    padding: 7px 14px;
    border: 1px solid var(--border);
    border-radius: 100px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s ease;
    font-family: inherit;
}

.rem-filter-btn:hover {
    color: var(--text);
    border-color: var(--text-secondary);
}

.rem-filter-btn.active {
    background: var(--apple-blue);
    color: #fff;
    border-color: var(--apple-blue);
    font-weight: 600;
}

.rem-filter-btn:active {
    transform: scale(0.96);
}

.rem-search-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rem-search {
    flex: 1;
    min-width: 0;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg-input);
    color: var(--text);
    font-size: 13px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.rem-search::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

.rem-search:focus {
    border-color: var(--apple-blue);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.12);
}

.rem-category-filter {
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg-input);
    color: var(--text);
    font-size: 13px;
    font-family: inherit;
    min-width: 140px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.rem-category-filter:focus {
    border-color: var(--apple-blue);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.12);
}

/* ===== Task List ===== */
.rem-task-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* ===== Task Card ===== */
.rem-task-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    transition: background 0.15s ease, border-color 0.15s ease;
    animation: remCardIn 0.25s ease both;
}

@keyframes remCardIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.rem-task-card:hover {
    border-color: var(--text-secondary);
}

.rem-task-card.rem-status-overdue {
    border-left: 3px solid #FF3B30;
}

.rem-task-card.rem-status-due-today {
    border-left: 3px solid #5AC8FA;
}

.rem-task-card.rem-status-due-soon {
    border-left: 3px solid var(--apple-blue);
}

.rem-task-card.rem-status-upcoming {
    border-left: 3px solid var(--border);
}

.rem-task-card.rem-status-completed {
    border-left: 3px solid #34C759;
    opacity: 0.55;
}

.rem-task-card.rem-status-no-date {
    border-left: 3px solid var(--text-secondary);
}

/* Staggered entrance animation */
.rem-task-card:nth-child(1) { animation-delay: 0.02s; }
.rem-task-card:nth-child(2) { animation-delay: 0.04s; }
.rem-task-card:nth-child(3) { animation-delay: 0.06s; }
.rem-task-card:nth-child(4) { animation-delay: 0.08s; }
.rem-task-card:nth-child(5) { animation-delay: 0.10s; }
.rem-task-card:nth-child(6) { animation-delay: 0.12s; }
.rem-task-card:nth-child(7) { animation-delay: 0.14s; }
.rem-task-card:nth-child(8) { animation-delay: 0.16s; }

.rem-task-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
}

/* Check Button */
.rem-check-btn {
    width: 22px;
    height: 22px;
    min-width: 22px;
    border-radius: 50%;
    border: 2px solid var(--border);
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all 0.2s ease;
    margin-top: 1px;
    color: transparent;
}

.rem-check-btn:hover {
    border-color: #34C759;
    color: #34C759;
}

.rem-check-btn.checked {
    background: #34C759;
    border-color: #34C759;
    color: #fff;
}

/* Task Content */
.rem-task-content {
    flex: 1;
    min-width: 0;
}

.rem-task-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 4px;
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: -0.1px;
}

.rem-task-title.rem-done {
    text-decoration: line-through;
    opacity: 0.5;
}

.rem-priority-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.rem-priority-dot.high { background: #FF3B30; }
.rem-priority-dot.normal { background: var(--apple-blue); }
.rem-priority-dot.low { background: var(--text-secondary); }

.rem-task-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 0;
}

/* ===== Badges — Neutral palette ===== */
.rem-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 8px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.1px;
}

/* Category: teal | Frequency: purple | Daily/weekdays: blue */
.rem-cat {
    background: rgba(90, 200, 250, 0.1);
    color: #32ADE6;
}

.rem-freq {
    background: rgba(88, 86, 214, 0.1);
    color: #5856D6;
}

.rem-freq-daily {
    background: rgba(0, 122, 255, 0.1);
    color: var(--apple-blue);
}

/* Status badges keep subtle colors */
.rem-badge-overdue {
    background: rgba(255, 59, 48, 0.1);
    color: #FF3B30;
}

.rem-badge-due-today {
    background: rgba(90, 200, 250, 0.1);
    color: #5AC8FA;
}

.rem-badge-due-soon,
.rem-badge-upcoming {
    background: rgba(0, 122, 255, 0.08);
    color: var(--apple-blue);
}

.rem-badge-completed {
    background: rgba(52, 199, 89, 0.08);
    color: #34C759;
}

.rem-badge-no-date {
    background: rgba(0, 0, 0, 0.04);
    color: var(--text-secondary);
}

.rem-badge-snoozed {
    background: rgba(142, 142, 147, 0.1);
    color: #8E8E93;
}

.rem-task-notes {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 6px;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
}

/* Task Actions */
.rem-task-actions {
    display: flex;
    gap: 1px;
    flex-shrink: 0;
}

.rem-action-btn {
    width: 30px;
    height: 30px;
    border: none;
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--text-secondary);
    transition: background 0.15s, color 0.15s;
}

.rem-action-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text);
}

.rem-action-btn:active {
    transform: scale(0.92);
}

/* ===== Empty State ===== */
.rem-empty {
    text-align: center;
    padding: 48px 24px;
    color: var(--text-secondary);
}

.rem-empty-icon {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.4;
}

.rem-empty p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

/* ===== FAB ===== */
.rem-fab {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--apple-blue);
    color: #fff;
    font-size: 24px;
    border: none;
    box-shadow: 0 2px 12px rgba(0, 122, 255, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    z-index: 50;
}

.rem-fab:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 122, 255, 0.4);
}

.rem-fab:active {
    transform: scale(0.92);
}

/* ===== Modal ===== */
.rem-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.rem-modal {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    width: 100%;
    max-width: 440px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    animation: remModalIn 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes remModalIn {
    from { opacity: 0; transform: scale(0.95) translateY(16px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.rem-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 20px 0;
}

.rem-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.2px;
}

.rem-modal-close {
    width: 30px;
    height: 30px;
    border: none;
    background: rgba(0, 0, 0, 0.05);
    font-size: 16px;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}

.rem-modal-close:hover {
    background: rgba(0, 0, 0, 0.1);
}

.rem-modal-body {
    padding: 20px;
}

.rem-field {
    margin-bottom: 14px;
}

.rem-field label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.rem-field input,
.rem-field select,
.rem-field textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg-input);
    color: var(--text);
    font-size: 14px;
    font-family: inherit;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.rem-field input:focus,
.rem-field select:focus,
.rem-field textarea:focus {
    border-color: var(--apple-blue);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.12);
}

.rem-field textarea {
    resize: vertical;
    min-height: 60px;
}

.rem-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.rem-field-row .rem-field {
    margin-bottom: 14px;
}

.rem-modal-footer {
    padding: 0 20px 20px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* ===== Snoozed Task Card State ===== */
.rem-task-card.rem-snoozed {
    opacity: 0.5;
    border-left: 3px solid #8E8E93;
}

.rem-task-card.rem-snoozed:hover {
    opacity: 0.75;
}

.rem-task-card.rem-status-snoozed {
    border-left: 3px solid #8E8E93;
}

/* Snooze indicator inside task title */
.rem-snooze-indicator {
    font-size: 13px;
    opacity: 0.7;
    flex-shrink: 0;
}

/* Snooze clock button in task actions */
.rem-snooze-btn {
    width: 30px;
    height: 30px;
    border: none;
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--text-secondary);
    transition: background 0.15s, color 0.15s;
}

.rem-snooze-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text);
}

.rem-snooze-btn:active {
    transform: scale(0.92);
}

/* ===== Snooze Overlay (Action Sheet) ===== */
.rem-snooze-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: remSnoozeOverlayIn 0.2s ease;
}

@keyframes remSnoozeOverlayIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.rem-snooze-menu {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    width: 100%;
    max-width: 380px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: remSnoozeMenuIn 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    margin-bottom: env(safe-area-inset-bottom, 0);
}

@keyframes remSnoozeMenuIn {
    from { opacity: 0; transform: translateY(30px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.rem-snooze-header {
    padding: 16px 20px 10px;
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    text-align: center;
    letter-spacing: -0.2px;
    border-bottom: 1px solid var(--border);
}

.rem-snooze-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    cursor: pointer;
    transition: background 0.15s ease;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
    font-family: inherit;
}

.rem-snooze-option:hover {
    background: rgba(0, 122, 255, 0.06);
}

.rem-snooze-option:active {
    background: rgba(0, 122, 255, 0.1);
}

.rem-snooze-option + .rem-snooze-option {
    border-top: 1px solid rgba(0, 0, 0, 0.04);
}

.rem-snooze-icon {
    font-size: 20px;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(0, 122, 255, 0.08);
}

.rem-snooze-text {
    flex: 1;
}

.rem-snooze-text strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 1px;
}

.rem-snooze-text span {
    font-size: 11px;
    color: var(--text-secondary);
}

.rem-snooze-complete .rem-snooze-icon {
    background: rgba(52, 199, 89, 0.1);
}

.rem-snooze-cancel {
    display: block;
    width: 100%;
    padding: 14px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--apple-blue);
    background: transparent;
    border: none;
    border-top: 1px solid var(--border);
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s ease;
}

.rem-snooze-cancel:hover {
    background: rgba(0, 122, 255, 0.06);
}

/* ===== Dark Mode ===== */
body.dark-mode .rem-dashboard-panel {
    box-shadow: none;
}

body.dark-mode .rem-progress-track {
    background: #38383A;
}

body.dark-mode .rem-weekly-pct {
    color: #32D74B;
}

body.dark-mode .rem-stat-pill:hover {
    background: #2C2C2E;
}

body.dark-mode .rem-stat-pill.active {
    background: rgba(10, 132, 255, 0.12);
    color: #0A84FF;
}

body.dark-mode .rem-task-card {
    background: #1C1C1E;
    border-color: #38383A;
}

body.dark-mode .rem-task-card:hover {
    background: #242426;
    border-color: #48484A;
}

body.dark-mode .rem-task-card.rem-snoozed {
    opacity: 0.45;
}

body.dark-mode .rem-filter-btn {
    background: transparent;
    border-color: #38383A;
    color: #98989D;
}

body.dark-mode .rem-filter-btn:hover {
    color: #fff;
    border-color: #48484A;
}

body.dark-mode .rem-filter-btn.active {
    background: #0A84FF;
    border-color: #0A84FF;
    color: #fff;
}

body.dark-mode .rem-new-btn {
    border-color: #0A84FF;
    color: #0A84FF;
}

body.dark-mode .rem-new-btn:hover {
    background: #0A84FF;
    color: #fff;
}

body.dark-mode .rem-search,
body.dark-mode .rem-category-filter {
    background: #2C2C2E;
    border-color: #38383A;
}

body.dark-mode .rem-search:focus,
body.dark-mode .rem-category-filter:focus {
    border-color: #0A84FF;
    box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.15);
}

body.dark-mode .rem-modal {
    background: #1C1C1E;
    border-color: #38383A;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

body.dark-mode .rem-modal-close {
    background: #2C2C2E;
}

body.dark-mode .rem-modal-close:hover {
    background: #3A3A3C;
}

body.dark-mode .rem-field input,
body.dark-mode .rem-field select,
body.dark-mode .rem-field textarea {
    background: #2C2C2E;
    border-color: #38383A;
    color: #fff;
}

body.dark-mode .rem-field input:focus,
body.dark-mode .rem-field select:focus,
body.dark-mode .rem-field textarea:focus {
    border-color: #0A84FF;
    box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.15);
}

body.dark-mode .rem-action-btn:hover {
    background: #2C2C2E;
    color: #fff;
}

body.dark-mode .rem-snooze-btn:hover {
    background: #2C2C2E;
    color: #fff;
}

/* Dark mode badges — cool-toned cat/freq */
body.dark-mode .rem-cat {
    background: rgba(100, 210, 255, 0.12);
    color: #64D2FF;
}

body.dark-mode .rem-freq {
    background: rgba(94, 92, 230, 0.12);
    color: #BF5AF2;
}

body.dark-mode .rem-freq-daily {
    background: rgba(10, 132, 255, 0.12);
    color: #0A84FF;
}

/* Dark mode status badges keep subtle colors */
body.dark-mode .rem-badge-overdue {
    background: rgba(255, 69, 58, 0.12);
    color: #FF453A;
}

body.dark-mode .rem-badge-due-today {
    background: rgba(90, 200, 250, 0.1);
    color: #64D2FF;
}

body.dark-mode .rem-badge-due-soon,
body.dark-mode .rem-badge-upcoming {
    background: rgba(10, 132, 255, 0.12);
    color: #0A84FF;
}

body.dark-mode .rem-badge-completed {
    background: rgba(50, 215, 75, 0.12);
    color: #32D74B;
}

body.dark-mode .rem-badge-no-date {
    background: #2C2C2E;
    color: #98989D;
}

body.dark-mode .rem-badge-snoozed {
    background: rgba(142, 142, 147, 0.1);
    color: #98989D;
}

body.dark-mode .rem-check-btn {
    border-color: #38383A;
}

body.dark-mode .rem-check-btn:hover {
    border-color: #32D74B;
    color: #32D74B;
}

body.dark-mode .rem-check-btn.checked {
    background: #32D74B;
    border-color: #32D74B;
}

body.dark-mode .rem-priority-dot.high {
    background: #FF453A;
}

body.dark-mode .rem-priority-dot.normal {
    background: #0A84FF;
}

body.dark-mode .rem-fab {
    background: #0A84FF;
    box-shadow: 0 4px 16px rgba(10, 132, 255, 0.35);
}

body.dark-mode .rem-fab:hover {
    box-shadow: 0 6px 24px rgba(10, 132, 255, 0.45);
}

body.dark-mode .rem-modal-overlay {
    background: rgba(0, 0, 0, 0.6);
}

body.dark-mode .rem-snooze-overlay {
    background: rgba(0, 0, 0, 0.65);
}

body.dark-mode .rem-snooze-menu {
    background: #1C1C1E;
    border-color: #38383A;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

body.dark-mode .rem-snooze-header {
    border-bottom-color: #38383A;
}

body.dark-mode .rem-snooze-option:hover {
    background: rgba(10, 132, 255, 0.08);
}

body.dark-mode .rem-snooze-option + .rem-snooze-option {
    border-top-color: #38383A;
}

body.dark-mode .rem-snooze-icon {
    background: rgba(10, 132, 255, 0.12);
}

body.dark-mode .rem-snooze-complete .rem-snooze-icon {
    background: rgba(50, 215, 75, 0.12);
}

body.dark-mode .rem-snooze-cancel {
    border-top-color: #38383A;
    color: #0A84FF;
}

body.dark-mode .rem-snooze-cancel:hover {
    background: rgba(10, 132, 255, 0.08);
}

body.dark-mode .dot-total { background: #0A84FF; }
body.dark-mode .dot-overdue { background: #FF453A; }
body.dark-mode .dot-today { background: #64D2FF; }
body.dark-mode .dot-done { background: #32D74B; }

body.dark-mode .rem-stats-divider {
    background: #38383A;
}

/* ===== Desktop Enhancements ===== */
@media (min-width: 960px) {
    .rem-container {
        padding: 0 24px 80px;
    }
    .rem-field-row {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 14px;
    }
    .rem-task-row {
        padding: 12px 18px;
    }
}

/* ===== Responsive ===== */
@media (max-width: 480px) {
    .rem-stats-strip {
        gap: 6px;
    }

    .rem-stat-pill {
        padding: 3px 8px;
        font-size: 11px;
    }

    .rem-field-row {
        grid-template-columns: 1fr;
    }

    .rem-fab {
        bottom: 20px;
        right: 20px;
        width: 46px;
        height: 46px;
        font-size: 22px;
    }

    .rem-container {
        padding: 0 12px 90px;
    }

    .rem-task-row {
        padding: 10px 12px;
    }
}

/* ══════════════════════════════════════════════════ */
/* ===  COMPLETION CELEBRATION                    === */
/* ══════════════════════════════════════════════════ */

/* Toast bounce on celebration */
.toast.celebrate {
    animation: celebratePop 0.5s var(--transition-spring) both;
}

/* Fixed overlay container at toast position */
.celebrate-container {
    position: fixed;
    top: 60px;
    left: 50%;
    width: 0;
    height: 0;
    z-index: 10001;
    pointer-events: none;
}

/* Base particle (inner ring — sparkles) */
.celebrate-particle {
    position: absolute;
    top: 0;
    left: 0;
    width: 14px;
    height: 14px;
    transform-origin: center;
    animation: celebrateInner 0.9s ease-out both;
    will-change: transform, opacity;
}
.celebrate-particle svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Outer ring — stars (larger, slower, further) */
.celebrate-particle.outer {
    width: 12px;
    height: 12px;
    animation: celebrateOuter 1.2s ease-out both;
}

/* Center flash bloom */
.celebrate-flash {
    position: absolute;
    top: -30px;
    left: -30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    animation: celebrateFlash 0.8s ease-out both;
    will-change: transform, opacity;
}

/* Snooze menu burst-out on "I did it!" */
.rem-snooze-menu-burst {
    animation: celebrateMenuBurst 0.3s ease-out both !important;
    pointer-events: none;
}
