/**
 * HYGIEIA — Stylesheet
 *
 * Theme: Bioluminescent DNA helix in deep space blue-black void.
 * Accent: Cyan (#00d4aa) — the color of life, health, bioluminescence.
 * Font: Plus Jakarta Sans — clean, modern, slightly rounded for warmth.
 *
 * Design philosophy: almost invisible UI. The helix and data are the experience.
 * Frosted glass panels. Soft, rounded corners. Subtle glow.
 * Mobile-first — all interactions are touch-based, minimum 44px targets.
 */

/* ═══════════════════════════════════════════════
   HYGIEIA THEME VARIABLES
   ═══════════════════════════════════════════════ */
:root {
    /* Background & atmosphere */
    --color-bg: #0a0a14;
    --color-bg-soft: #0d0d1a;

    /* Text */
    --color-text: #d0d0e0;
    --color-text-muted: #607080;

    /* Accent (bioluminescent cyan) */
    --color-accent: #00d4aa;
    --color-accent-soft: #009977;
    --color-accent-glow: rgba(0, 212, 170, 0.4);

    /* Status colors */
    --color-in-range: #2ecc71;
    --color-attention: #f39c12;
    --color-alert: #c0392b;

    /* UI surfaces — frosted glass */
    --color-border: rgba(0, 212, 170, 0.15);
    --color-ui-bg: rgba(10, 10, 20, 0.85);
    --color-glass: rgba(10, 15, 25, 0.7);

    /* Typography */
    --font-main: 'Plus Jakarta Sans', 'Inter', 'Segoe UI', sans-serif;

    /* Shadows */
    --shadow-dark: 0 4px 20px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 20px var(--color-accent-glow);
    --shadow-glow-subtle: 0 0 12px rgba(0, 212, 170, 0.2);
}

/* ═══════════════════════════════════════════════
   Reset & Base
   ═══════════════════════════════════════════════ */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-main);
    overflow: hidden;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    touch-action: none;
    overscroll-behavior: none;
    -webkit-overflow-scrolling: touch;
}

/* ═══════════════════════════════════════════════
   Canvas Container
   ═══════════════════════════════════════════════ */
#canvas-container {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1;
}

/* ═══════════════════════════════════════════════
   Intro Screen
   Deep space with cyan bioluminescent glow.
   ═══════════════════════════════════════════════ */
#intro-screen {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(8, 8, 18, 0.97);
    z-index: 200;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: opacity 1.5s ease-out;
    overflow: hidden;
}

#intro-screen.fade-out {
    opacity: 0;
    pointer-events: none;
}

#intro-screen.hidden {
    display: none;
}

.intro-vignette {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: radial-gradient(ellipse at center, transparent 40%, rgba(5, 5, 12, 0.8) 100%);
    pointer-events: none;
}

.intro-particles {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image:
        radial-gradient(1px 1px at 20% 30%, rgba(0, 212, 170, 0.3) 0%, transparent 50%),
        radial-gradient(1px 1px at 40% 70%, rgba(155, 89, 182, 0.2) 0%, transparent 50%),
        radial-gradient(1px 1px at 60% 20%, rgba(116, 185, 255, 0.25) 0%, transparent 50%),
        radial-gradient(2px 2px at 80% 60%, rgba(255, 179, 71, 0.15) 0%, transparent 50%),
        radial-gradient(1px 1px at 10% 80%, rgba(0, 212, 170, 0.2) 0%, transparent 50%),
        radial-gradient(1px 1px at 70% 40%, rgba(26, 188, 156, 0.15) 0%, transparent 50%),
        radial-gradient(2px 2px at 30% 50%, rgba(116, 185, 255, 0.1) 0%, transparent 50%),
        radial-gradient(1px 1px at 90% 10%, rgba(255, 250, 205, 0.2) 0%, transparent 50%);
    animation: intro-particles-drift 30s ease-in-out infinite;
    pointer-events: none;
    opacity: 0.7;
}

@keyframes intro-particles-drift {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(5px, -10px); }
    50% { transform: translate(-5px, 5px); }
    75% { transform: translate(8px, 8px); }
}

.intro-content {
    text-align: center;
    max-width: 90%;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.intro-title {
    font-family: var(--font-main);
    font-size: clamp(2.2rem, 8vw, 3.8rem);
    font-weight: 300;
    letter-spacing: 0.2em;
    color: #e0e8f0;
    margin-bottom: 2rem;
    opacity: 0;
    animation: intro-fade-in 2s ease-out 0.5s forwards;
    text-shadow: 0 0 40px var(--color-accent-glow), 0 0 80px rgba(0, 212, 170, 0.15), 0 2px 4px rgba(0, 0, 0, 0.8);
}

.intro-subtitle {
    font-family: var(--font-main);
    font-size: clamp(1.1rem, 4vw, 1.4rem);
    font-style: italic;
    font-weight: 300;
    line-height: 1.8;
    color: #b0b8c8;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: intro-fade-in 2s ease-out 2.5s forwards;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

.intro-translation {
    font-family: var(--font-main);
    font-size: clamp(0.85rem, 3vw, 1rem);
    font-style: italic;
    font-weight: 300;
    line-height: 1.7;
    color: #607080;
    margin-bottom: 2.5rem;
    opacity: 0;
    animation: intro-fade-in 1.5s ease-out 4.5s forwards;
}

.intro-enter {
    font-family: var(--font-main);
    font-size: clamp(0.9rem, 3vw, 1.1rem);
    font-style: italic;
    font-weight: 300;
    color: var(--color-accent);
    opacity: 0;
    animation:
        intro-fade-in 1.5s ease-out 6s forwards,
        intro-pulse 2.5s ease-in-out 7.5s infinite;
    text-shadow: 0 0 10px var(--color-accent-glow);
}

.intro-dedication {
    font-family: var(--font-main);
    font-size: clamp(0.85rem, 3vw, 1rem);
    font-style: italic;
    font-weight: 400;
    letter-spacing: 0.1em;
    color: #80a0b0;
    margin-top: 3rem;
    opacity: 0;
    animation: intro-fade-in 2s ease-out 7.5s forwards;
    text-shadow: 0 0 15px rgba(0, 212, 170, 0.2), 0 1px 3px rgba(0, 0, 0, 0.6);
}

@keyframes intro-fade-in {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes intro-pulse {
    0%, 100% { opacity: 1; text-shadow: 0 0 10px var(--color-accent-glow); }
    50%      { opacity: 0.6; text-shadow: 0 0 25px var(--color-accent-glow); }
}

/* ═══════════════════════════════════════════════
   Loading Screen
   ═══════════════════════════════════════════════ */
#loading-screen {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: radial-gradient(ellipse at center, #0a0a18 0%, #0a0a14 70%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 100;
    transition: opacity 0.8s ease;
}

.loader {
    width: 48px; height: 48px;
    border: 2px solid var(--color-accent-soft);
    border-top: 2px solid var(--color-accent);
    border-radius: 50%;
    animation: spin 1.2s ease-in-out infinite;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-glow-subtle);
}

#loading-screen p {
    font-size: 1rem;
    font-style: italic;
    font-weight: 300;
    color: var(--color-text-muted);
    letter-spacing: 2px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ═══════════════════════════════════════════════
   UI Container & Add Button
   ═══════════════════════════════════════════════ */
#ui-container {
    position: fixed;
    bottom: 2rem;
    right: 1.5rem;
    z-index: 10;
}

#add-verse-btn {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: var(--color-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--color-border);
    color: var(--color-accent);
    font-size: 1.8rem;
    font-weight: 300;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-dark);
    /* Minimum 44px touch target */
    min-width: 44px;
    min-height: 44px;
}

#add-verse-btn:active {
    transform: scale(0.95);
    background: rgba(0, 212, 170, 0.15);
    box-shadow: var(--shadow-glow), var(--shadow-dark);
    border-color: var(--color-accent);
}

/* ═══════════════════════════════════════════════
   Today Button (bottom-left)
   ═══════════════════════════════════════════════ */
#today-btn {
    position: fixed;
    bottom: 2rem;
    left: 1.5rem;
    z-index: 10;
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    background: var(--color-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--color-border);
    color: var(--color-accent);
    font-family: var(--font-main);
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-dark);
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#today-btn:active {
    transform: scale(0.95);
    background: rgba(0, 212, 170, 0.12);
    box-shadow: var(--shadow-glow-subtle);
}

/* ═══════════════════════════════════════════════
   Timeline Indicator (right edge)
   Thin vertical bar, appears on scroll, fades.
   ═══════════════════════════════════════════════ */
#timeline-indicator {
    position: fixed;
    top: 10%;
    right: 0;
    bottom: 10%;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    padding: 0 12px; /* Extra touch area */
}

#timeline-indicator.visible {
    opacity: 1;
    pointer-events: auto; /* Enable interaction when visible */
}

.timeline-track {
    flex: 1;
    width: 3px;
    background: rgba(0, 212, 170, 0.1);
    border-radius: 2px;
    position: relative;
    cursor: pointer;
    /* Wider invisible hit area via padding */
    padding: 0 15px;
    margin: 0 -15px;
    background-clip: content-box;
}

#timeline-dot {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--color-accent);
    box-shadow: 0 0 10px var(--color-accent-glow);
    transition: top 0.15s ease-out;
    /* 44px min touch target via pseudo-element */
}

#timeline-dot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
}

#timeline-indicator.dragging #timeline-dot {
    width: 18px;
    height: 18px;
    box-shadow: 0 0 16px var(--color-accent-glow), 0 0 30px var(--color-accent-glow);
    transition: none;
}

#timeline-indicator.dragging .timeline-track {
    background: rgba(0, 212, 170, 0.25);
    background-clip: content-box;
}

.timeline-label {
    font-family: var(--font-main);
    font-size: 0.6rem;
    font-weight: 300;
    letter-spacing: 1px;
    color: rgba(0, 212, 170, 0.4);
    text-transform: uppercase;
    pointer-events: none; /* Labels don't interfere with dragging */
}

/* ═══════════════════════════════════════════════
   Annotation Input Overlay — Full-Screen Frosted Glass
   Mobile-first: full-screen overlay with large touch targets.
   ═══════════════════════════════════════════════ */
#input-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(8, 8, 16, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 50;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 5vh;
    opacity: 1;
    transition: opacity 0.4s ease, transform 0.4s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

#input-overlay.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
}

#input-overlay.entering {
    opacity: 0;
    transform: translateY(20px);
}

.annotation-panel {
    width: 94%;
    max-width: 440px;
    padding: 2rem 1.5rem;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: var(--color-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-dark), var(--shadow-glow-subtle);
    margin-bottom: 5vh;
}

#close-input-btn {
    position: absolute;
    top: 0.75rem; right: 0.75rem;
    background: none;
    border: none;
    color: var(--color-text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.2s;
    border-radius: 4px;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#close-input-btn:active {
    color: var(--color-text);
    background: rgba(255, 255, 255, 0.05);
}

.annotation-panel h2 {
    font-weight: 300;
    font-style: italic;
    text-align: center;
    margin-bottom: 0.25rem;
    letter-spacing: 1px;
    color: var(--color-text-muted);
    font-size: 1.05rem;
}

/* ── Type Selector ── */
.type-selector {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.type-pill {
    flex: 1;
    min-width: 70px;
    min-height: 44px;
    padding: 0.5rem 0.5rem;
    border-radius: 22px;
    border: 1px solid rgba(0, 212, 170, 0.15);
    background: rgba(10, 10, 20, 0.5);
    color: var(--color-text-muted);
    font-family: var(--font-main);
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: center;
}

.type-pill.active {
    background: rgba(0, 212, 170, 0.15);
    border-color: var(--color-accent);
    color: var(--color-accent);
    box-shadow: 0 0 8px rgba(0, 212, 170, 0.15);
}

.type-pill:active {
    transform: scale(0.96);
}

/* ── Reading Fields (Value/Unit + Status) ── */
#reading-fields {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.reading-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

#annotation-value {
    flex: 1;
    min-height: 48px;
    padding: 0.75rem 1rem;
    background: rgba(10, 10, 20, 0.5);
    border: 1px solid rgba(0, 212, 170, 0.1);
    border-radius: 8px;
    color: var(--color-text);
    font-family: var(--font-main);
    font-size: 1.1rem;
    font-weight: 400;
    transition: border-color 0.3s, box-shadow 0.3s;
}

#annotation-value:focus {
    outline: none;
    border-color: rgba(0, 212, 170, 0.3);
    box-shadow: 0 0 12px rgba(0, 212, 170, 0.1);
}

#annotation-value::placeholder {
    color: var(--color-text-muted);
    font-weight: 300;
}

#annotation-unit {
    width: 90px;
    min-height: 48px;
    padding: 0.5rem;
    background: rgba(10, 10, 20, 0.5);
    border: 1px solid rgba(0, 212, 170, 0.1);
    border-radius: 8px;
    color: var(--color-text);
    font-family: var(--font-main);
    font-size: 0.9rem;
    -webkit-appearance: none;
    appearance: none;
}

#annotation-unit:focus {
    outline: none;
    border-color: rgba(0, 212, 170, 0.3);
}

/* ── Status Selector ── */
.status-selector {
    display: flex;
    gap: 0.5rem;
}

.status-pill {
    flex: 1;
    min-height: 44px;
    padding: 0.5rem;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(10, 10, 20, 0.5);
    color: var(--color-text-muted);
    font-family: var(--font-main);
    font-size: 0.78rem;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: center;
}

.status-pill[data-status="in_range"].active {
    background: rgba(46, 204, 113, 0.15);
    border-color: var(--color-in-range);
    color: var(--color-in-range);
}

.status-pill[data-status="attention"].active {
    background: rgba(243, 156, 18, 0.15);
    border-color: var(--color-attention);
    color: var(--color-attention);
}

.status-pill[data-status="alert"].active {
    background: rgba(192, 57, 43, 0.15);
    border-color: var(--color-alert);
    color: var(--color-alert);
}

.status-pill:active {
    transform: scale(0.96);
}

/* ── Note Textarea ── */
#annotation-note {
    width: 100%;
    min-height: 100px;
    max-height: 200px;
    background-color: rgba(10, 10, 20, 0.5);
    border: 1px solid rgba(0, 212, 170, 0.1);
    border-radius: 8px;
    color: var(--color-text);
    padding: 0.85rem 1rem;
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.6;
    resize: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}

#annotation-note::placeholder {
    color: var(--color-text-muted);
    font-style: italic;
    font-weight: 300;
}

#annotation-note:focus {
    outline: none;
    border-color: rgba(0, 212, 170, 0.3);
    box-shadow: 0 0 12px rgba(0, 212, 170, 0.1);
}

.char-counter {
    text-align: right;
    font-size: 0.8rem;
    font-weight: 300;
    color: var(--color-text-muted);
    margin-top: -0.5rem;
}

/* ── Timestamp ── */
.timestamp-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.timestamp-row label {
    font-size: 0.85rem;
    font-weight: 300;
    color: var(--color-text-muted);
    white-space: nowrap;
}

#annotation-timestamp {
    flex: 1;
    min-height: 44px;
    padding: 0.5rem 0.75rem;
    background: rgba(10, 10, 20, 0.5);
    border: 1px solid rgba(0, 212, 170, 0.1);
    border-radius: 8px;
    color: var(--color-text);
    font-family: var(--font-main);
    font-size: 0.9rem;
    color-scheme: dark;
}

#annotation-timestamp:focus {
    outline: none;
    border-color: rgba(0, 212, 170, 0.3);
}

/* ── Action Buttons ── */
.annotation-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.btn-primary {
    flex: 2;
    min-height: 48px;
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-soft) 100%);
    color: #0a0a14;
    border: none;
    padding: 0.9rem 1.5rem;
    border-radius: 8px;
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: var(--shadow-dark);
}

.btn-primary:active {
    transform: scale(0.97);
    box-shadow: var(--shadow-glow);
}

.btn-primary:disabled {
    background: rgba(96, 112, 128, 0.3);
    color: var(--color-text-muted);
    cursor: not-allowed;
    box-shadow: none;
}

.btn-secondary {
    flex: 1;
    min-height: 48px;
    background: rgba(96, 112, 128, 0.15);
    color: var(--color-text-muted);
    border: 1px solid rgba(96, 112, 128, 0.2);
    padding: 0.9rem 1rem;
    border-radius: 8px;
    font-family: var(--font-main);
    font-size: 0.9rem;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-secondary:active {
    transform: scale(0.97);
    background: rgba(96, 112, 128, 0.25);
}

.btn-danger {
    flex-basis: 100%;
    min-height: 48px;
    background: rgba(192, 57, 43, 0.1);
    color: rgba(192, 57, 43, 0.8);
    border: 1px solid rgba(192, 57, 43, 0.2);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-family: var(--font-main);
    font-size: 0.9rem;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-danger:active {
    transform: scale(0.97);
    background: rgba(192, 57, 43, 0.2);
}

#error-message {
    color: #e74c3c;
    text-align: center;
    font-size: 0.9rem;
    font-style: italic;
    font-weight: 300;
}

#error-message.hidden { display: none; }

/* ═══════════════════════════════════════════════
   Toast Notifications
   Frosted glass success/info feedback.
   ═══════════════════════════════════════════════ */
.hygieia-toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(0, 212, 170, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #d0d0e0;
    padding: 1rem 2rem;
    border-radius: 8px;
    border: 1px solid rgba(0, 212, 170, 0.3);
    z-index: 1000;
    font-family: var(--font-main);
    font-size: 0.95rem;
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
    pointer-events: none;
}

.hygieia-toast.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ═══════════════════════════════════════════════
   Mobile Adjustments
   ═══════════════════════════════════════════════ */
@media (max-width: 480px) {
    #ui-container { bottom: 1.5rem; right: 1rem; }
    #add-verse-btn { width: 52px; height: 52px; font-size: 1.6rem; }
    #today-btn { bottom: 1.5rem; left: 1rem; }
    .annotation-panel { padding: 1.5rem 1rem; }
    #annotation-note { min-height: 80px; font-size: 0.95rem; }
    .type-pill { font-size: 0.75rem; min-width: 60px; }
    .status-pill { font-size: 0.72rem; }
}

/* ═══════════════════════════════════════════════
   Fatal Error Fallback
   ═══════════════════════════════════════════════ */
.fatal-error {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-main);
    text-align: center;
    padding: 2rem;
}

.fatal-error-content h2 {
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
    color: var(--color-accent);
}

.fatal-error-content p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
}

.fatal-error-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    opacity: 0.6;
}

.fatal-error-hint {
    margin-top: 1rem;
    font-size: 0.85rem;
    opacity: 0.5;
}

/* Safe area insets for notched phones */
@supports (padding: max(0px)) {
    #ui-container {
        bottom: max(2rem, env(safe-area-inset-bottom));
        right: max(1.5rem, env(safe-area-inset-right));
    }
    #today-btn {
        bottom: max(2rem, env(safe-area-inset-bottom));
        left: max(1.5rem, env(safe-area-inset-left));
    }
    #input-overlay {
        padding-bottom: env(safe-area-inset-bottom);
    }
}
