:root{--color-bg:#f9f9f8;--color-surface:#fff;--color-border:#e5e5e3;--color-text:#1a1a1a;--color-muted:#9a9a96;--color-weekend:#6b7280;--color-today-bg:#1d4ed8;--color-today-text:#fff;--color-holiday-bg:#fef2f2;--color-holiday-text:#b91c1c;--color-holiday-dot:#dc2626;--color-nav:#1d4ed8;--radius-cell:6px;--radius-card:12px;--cell-size:2.75rem;--font-base:system-ui, -apple-system, sans-serif;--color-popover-bg:#1a1a1a;--color-popover-text:#fff}[data-theme=dark]{--color-bg:#111827;--color-surface:#1f2937;--color-border:#374151;--color-text:#f9fafb;--color-muted:#6b7280;--color-weekend:#9ca3af;--color-today-bg:#3b82f6;--color-today-text:#fff;--color-holiday-bg:#3b1515;--color-holiday-text:#f87171;--color-holiday-dot:#ef4444;--color-nav:#60a5fa;--color-popover-bg:#f9fafb;--color-popover-text:#111827}*,:before,:after{box-sizing:border-box;margin:0;padding:0}body{font-family:var(--font-base);background:var(--color-bg);color:var(--color-text);touch-action:manipulation;min-height:100dvh}.calendar-app{max-width:480px;margin:0 auto;padding:0 0 3rem}.app-header{z-index:10;background:var(--color-surface);border-bottom:1px solid var(--color-border);justify-content:space-between;align-items:center;padding:.875rem 1rem;display:flex;position:sticky;top:0}.today-btn{font-family:var(--font-base);color:var(--color-nav);border:1.5px solid var(--color-nav);cursor:pointer;-webkit-tap-highlight-color:transparent;background:0 0;border-radius:999px;padding:.3rem .875rem;font-size:.875rem;font-weight:600;transition:background .15s,color .15s}.today-btn:hover,.today-btn:focus-visible{background:#eff6ff;outline:none}.today-btn:disabled{color:var(--color-muted);border-color:var(--color-border);cursor:default;background:0 0}.nav-btn{width:2.25rem;height:2.25rem;color:var(--color-nav);cursor:pointer;-webkit-tap-highlight-color:transparent;background:0 0;border:none;border-radius:50%;justify-content:center;align-items:center;font-size:1.1rem;transition:background .15s;display:flex}.nav-btn:hover,.nav-btn:focus-visible{background:#eff6ff;outline:none}.nav-btn.lang-btn{letter-spacing:.05em;font-size:.7rem;font-weight:700}[data-theme=dark] .nav-btn:hover,[data-theme=dark] .nav-btn:focus-visible{background:#1e3a5f}.months-list{flex-direction:column;gap:1.5rem;padding:1.25rem 1rem;display:flex}.month{background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-card);overflow:hidden}.month-title{letter-spacing:.01em;border-bottom:1px solid var(--color-border);padding:.75rem 1rem .625rem;font-size:1rem;font-weight:700}.calendar-grid{background:var(--color-border);border-top:none;grid-template-columns:repeat(7,1fr);gap:1px;display:grid}.day-header{background:var(--color-bg);text-align:center;text-transform:uppercase;letter-spacing:.05em;color:var(--color-muted);padding:.5rem 0;font-size:.7rem;font-weight:600}.day,.holiday{background:var(--color-surface);aspect-ratio:1;cursor:default;-webkit-user-select:none;user-select:none;flex-direction:column;justify-content:center;align-items:center;display:flex;position:relative}.day.empty{background:var(--color-bg)}.day-number{font-size:.875rem;font-weight:500;line-height:1}.day.weekend .day-number{color:var(--color-weekend)}.day.today .day-number,.holiday.today .day-number{background:var(--color-today-bg);width:1.875rem;height:1.875rem;color:var(--color-today-text);border-radius:50%;justify-content:center;align-items:center;font-weight:700;display:flex}.holiday{background:var(--color-holiday-bg);cursor:pointer;-webkit-tap-highlight-color:transparent}.day.holiday .day-number{color:var(--color-holiday-text);font-weight:700}.holiday:after{content:"";background:var(--color-holiday-dot);border-radius:50%;width:4px;height:4px;margin-top:3px;display:block}.holiday.today:after{background:var(--color-today-text);opacity:.7}.popover{z-index:100;background:var(--color-popover-bg);color:var(--color-popover-text);font-family:var(--font-base);white-space:nowrap;pointer-events:none;border-radius:6px;padding:.35rem .65rem;font-size:.78rem;font-weight:500;position:absolute;box-shadow:0 4px 12px #0000002e}.popover:before{content:"";top:-5px;left:var(--arrow-left,50%);border-left:5px solid #0000;border-right:5px solid #0000;border-bottom:5px solid var(--color-popover-bg);position:absolute;transform:translate(-50%)}@media (width>=520px){.calendar-app{padding-bottom:4rem}.months-list{gap:2rem;padding:1.5rem 1.25rem}.month-title{padding:.875rem 1.25rem .75rem;font-size:1.05rem}.day-number{font-size:.925rem}}
