@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Fraunces:opsz,wght@9..144,600&display=swap');

:root { --ink:#19383b; --muted:#617679; --teal:#225658; --teal-dark:#173f42; --mint:#dceee9; --mint-strong:#b9ddd3; --paper:#fbfcf8; --line:#dfe9e6; --coral:#eead8d; --cream:#fff7ed; --shadow:0 16px 50px rgba(24,64,65,.08); }
* { box-sizing:border-box; }
html { scroll-behavior:smooth; }
body { margin:0; background:var(--paper); color:var(--ink); font-family:'DM Sans',system-ui,sans-serif; font-size:16px; line-height:1.5; overflow-x:hidden; }
button,input,select,textarea { font:inherit; }
button,a { -webkit-tap-highlight-color:transparent; }
button { cursor:pointer; }
.app-shell { max-width:1180px; margin:auto; padding:0 34px; }
.topbar { height:88px; display:flex; align-items:center; justify-content:space-between; border-bottom:1px solid var(--line); }
.brand { display:flex; align-items:center; gap:10px; color:var(--ink); text-decoration:none; font-weight:700; letter-spacing:-.02em; }
.brand-mark { display:grid; place-items:center; width:29px; height:29px; border-radius:10px; background:var(--teal); color:#fff; font-size:15px; }
.admin-link, footer a { color:var(--teal); font-weight:600; text-decoration:none; }
.admin-link:hover, footer a:hover { text-decoration:underline; }
.hero { display:flex; justify-content:space-between; align-items:flex-end; gap:36px; padding:70px 0 46px; }
.eyebrow { color:var(--teal); font-size:12px; font-weight:700; letter-spacing:.12em; text-transform:uppercase; margin:0 0 12px; }
h1,h2 { font-family:Fraunces,Georgia,serif; font-weight:600; letter-spacing:-.04em; margin:0; }
h1 { font-size:clamp(2.45rem,6vw,4.8rem); line-height:1.02; max-width:720px; }
h2 { font-size:clamp(1.8rem,3vw,2.4rem); }
.hero-copy { color:var(--muted); max-width:450px; margin:21px 0 0; font-size:18px; }
.streak-card { flex:0 0 225px; background:var(--teal); color:white; border-radius:24px; padding:22px 24px 24px; box-shadow:var(--shadow); }
.streak-label { display:block; color:#bfe0d9; font-size:13px; font-weight:600; }
.streak-card #days-count { display:block; font-size:74px; line-height:1; letter-spacing:-.08em; margin:11px 0 2px; }.streak-number-wrap { position:relative; display:flex; align-items:center; width:max-content; }.celebration-icon { display:none; position:absolute; font-size:24px; }.celebration-left { left:-32px; transform:rotate(-16deg); }.celebration-right { right:-34px; transform:rotate(14deg); }.streak-card.celebrating { background:linear-gradient(145deg,var(--teal),#317276); box-shadow:0 18px 45px rgba(34,86,88,.28); }.streak-card.celebrating .streak-number-wrap { margin-left:21px; }.streak-card.celebrating #days-count { font-size:82px; }.streak-card.celebrating .celebration-icon { display:block; animation:celebrate-float 2.8s ease-in-out infinite; }.streak-card.celebrating .celebration-right { animation-delay:.4s; }.streak-celebration { display:flex; align-items:center; justify-content:center; gap:9px; margin-top:18px; color:#fff; font-size:14px; }.streak-celebration strong { margin:0; font-size:14px; letter-spacing:normal; }.streak-celebration span { font-size:20px; animation:celebrate-pop 1.7s ease-in-out infinite; }.streak-celebration span:last-child { animation-delay:.25s; }
.streak-card span:last-child { color:#d4ebe5; font-size:14px; }.streak-card .milestone-message { display:block; margin-top:15px; padding-top:12px; border-top:1px solid rgba(212,235,229,.25); color:#fff; font-size:12px; font-weight:600; }
.stats-row { display:grid; grid-template-columns:repeat(5,1fr); gap:16px; margin-bottom:72px; }
.stat-card { display:flex; align-items:center; gap:16px; border-top:1px solid var(--line); padding:22px 10px 0 0; }
.stat-icon { display:grid; place-items:center; width:42px; height:42px; border-radius:14px; font-weight:700; font-size:23px; flex:none; }
.sun-icon { background:#ffeedc; color:#ad7651; }.count-icon { background:#e8e1f4; color:#705b93; }.smile-icon { background:#dceee9; color:var(--teal); }.record-icon { background:#f8e7b8; color:#98722d; }.saves-icon { background:#e4eff7; color:#39718c; }
.stat-label { display:block; color:var(--muted); font-size:13px; margin-bottom:2px; }.stat-card strong { font-size:15px; }
.stat-card strong em { font-style:italic; font-weight:700; }
.section-heading { display:flex; align-items:flex-end; justify-content:space-between; gap:25px; margin-bottom:25px; }
.month-controls { display:flex; align-items:center; gap:12px; color:var(--teal); font-weight:700; }
.month-controls span { min-width:150px; text-align:center; }
.icon-button,.today-button { background:transparent; border:1px solid var(--line); color:var(--teal); border-radius:10px; }
.icon-button { font-size:25px; line-height:1; width:36px; height:36px; }.today-button { height:36px; padding:0 13px; font-size:13px; font-weight:700; }
.icon-button:hover,.today-button:hover { background:var(--mint); border-color:var(--mint-strong); }
.primary-button,.secondary-button { border:0; border-radius:10px; padding:11px 16px; font-weight:700; white-space:nowrap; }.primary-button { background:var(--teal); color:#fff; box-shadow:0 8px 18px rgba(34,86,88,.16); }.primary-button:hover { background:var(--teal-dark); }.secondary-button { background:var(--mint); color:var(--teal-dark); }.secondary-button:hover { background:var(--mint-strong); }
input,select,textarea { width:100%; border:1px solid var(--line); border-radius:10px; background:#fff; color:var(--ink); padding:11px 12px; }.form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }.form-actions { display:flex; justify-content:flex-end; gap:8px; margin-top:20px; }.optional { color:var(--muted); font-weight:400; }.form-error,.form-success { min-height:1.5em; margin:10px 0 0; font-size:13px; }.form-error { color:#a34d43; }.form-success { color:var(--teal); }.modal textarea { min-height:96px; resize:vertical; }
.event-actions { display:flex; justify-content:flex-end; gap:8px; margin-top:22px; }.danger-button { border:1px solid #e3b8ad; border-radius:10px; background:#fff7f4; color:#a34d43; padding:10px 14px; font:inherit; font-weight:700; }.danger-button:hover { background:#fbe5df; }
.calendar-card { background:white; border:1px solid var(--line); border-radius:24px; box-shadow:var(--shadow); overflow:hidden; }
.weekday-row,.calendar-grid { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)) minmax(0,.72fr) minmax(0,.72fr); }
.weekday-row { padding:20px 22px 12px; color:var(--muted); font-size:12px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; }
.calendar-grid { border-top:1px solid var(--line); }
.day-cell { display:flex; flex-direction:column; min-height:130px; border-right:1px solid var(--line); border-bottom:1px solid var(--line); padding:12px; position:relative; }
.day-cell:nth-child(7n) { border-right:0; }.day-cell.muted { background:#fcfdfb; color:#a9b8b5; }.day-cell.today { background:#f0f8f5; }
.day-cell.weekend,.day-cell.public-holiday { background:#f5f6f4; color:#9aa9a6; }.day-cell.public-holiday { background:#f1f3f1; }.holiday-label { margin-top:7px; color:#83928f; font-size:10px; line-height:1.2; font-weight:600; }
.day-number { display:flex; align-items:center; justify-content:space-between; font-size:13px; font-weight:700; }.today .day-number span:first-child { display:grid; place-items:center; width:25px; height:25px; border-radius:50%; background:var(--teal); color:#fff; }
.event-list { display:flex; flex-direction:column; gap:7px; margin-top:13px; }.single-event .event-list { flex:1; }.event-chip { display:flex; align-items:center; gap:6px; width:100%; padding:5px 6px; background:var(--cream); color:var(--ink); border:0; border-radius:8px; font-size:12px; line-height:1.2; text-align:left; }.single-event .event-chip { flex:1; flex-direction:column; align-items:center; justify-content:center; gap:8px; padding:12px 6px; font-size:12px; text-align:center; }.event-chip:hover { background:#ffead8; }.event-chip span:first-child { font-size:17px; }.single-event .event-chip span:first-child { font-size:25px; }.event-chip span:last-child { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }.single-event .event-chip span:last-child { max-width:100%; }
.legend { display:flex; flex-wrap:wrap; gap:14px 20px; padding:18px 22px 20px; color:var(--muted); font-size:13px; }.legend span { display:flex; align-items:center; gap:6px; }.legend i { font-style:normal; font-size:17px; }
footer { display:flex; justify-content:space-between; border-top:1px solid var(--line); margin-top:70px; padding:24px 0 34px; color:var(--muted); font-size:13px; }
.modal-backdrop { position:fixed; inset:0; display:grid; place-items:center; padding:22px; background:rgba(20,55,57,.36); z-index:5; }.hidden { display:none !important; }
.modal { position:relative; width:min(100%,490px); background:var(--paper); border-radius:24px; padding:38px; box-shadow:0 24px 80px rgba(12,45,47,.25); }.close-button { position:absolute; top:17px; right:20px; border:0; background:transparent; color:var(--muted); font-size:28px; line-height:1; }.modal h2 { margin-bottom:12px; }.modal-copy { color:var(--muted); margin:0 0 26px; font-size:14px; }.modal label { display:block; font-size:13px; font-weight:700; margin:16px 0 7px; }.password-row { display:flex; gap:8px; }.password-input-wrap { position:relative; min-width:0; flex:1; }.password-input-wrap input { width:100%; padding-right:46px; }.password-toggle { position:absolute; top:50%; right:4px; display:grid; place-items:center; width:36px; height:36px; transform:translateY(-50%); border:0; border-radius:8px; background:transparent; color:var(--teal); padding:0; }.password-toggle:hover { background:var(--mint); }.eye-icon { width:20px; height:20px; fill:none; stroke:currentColor; stroke-linecap:round; stroke-linejoin:round; stroke-width:1.8; }.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.event-detail-date { color:var(--muted); margin:8px 0 22px; }.notes-box { background:var(--mint); border-radius:12px; padding:15px 16px; }.notes-box p { margin:4px 0 0; white-space:pre-wrap; }.incident-vote-panel { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-top:18px; padding:14px 15px; border:1px solid var(--line); border-radius:12px; background:#fff; }.incident-vote-panel strong,.incident-vote-panel span { display:block; }.incident-vote-panel span { margin-top:3px; color:var(--muted); font-size:12px; }.incident-vote-panel .vote-controls { flex:none; }
.recap-button { white-space:nowrap; }.recap-modal { width:min(100%,560px); }.recap-celebration { position:relative; display:flex; align-items:flex-start; gap:12px; margin-top:20px; padding:16px 18px; border:1px solid #f0d28e; border-radius:16px; background:linear-gradient(135deg,#fff4d8,#ffe9c7); color:var(--teal-dark); box-shadow:0 8px 18px rgba(166,116,45,.08); }.recap-celebration::after { content:''; position:absolute; left:22px; bottom:-7px; width:13px; height:13px; background:#ffe9c7; border-right:1px solid #f0d28e; border-bottom:1px solid #f0d28e; transform:rotate(45deg); }.recap-message-icon { flex:none; display:grid; place-items:center; width:36px; height:36px; border-radius:12px; background:#fff; font-size:20px; }.recap-celebration strong,.recap-celebration span { display:block; }.recap-message-label { margin-bottom:2px; color:#a87938; font-size:11px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; }.recap-celebration div > span:last-child { margin-top:3px; color:var(--muted); font-size:13px; }.recap-stats { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin-top:14px; }.recap-stat { min-width:0; padding:15px 16px; border:1px solid var(--line); border-radius:14px; background:var(--mint); }.recap-stat:nth-child(1) { background:#fff1d6; border-color:#f1d49a; }.recap-stat:nth-child(2) { background:#eee8fa; border-color:#d7c8ee; }.recap-stat:nth-child(3) { background:#e5f0f8; border-color:#c5dce9; }.recap-stat:nth-child(4) { background:#fde9e4; border-color:#efc8be; }.recap-stat:nth-child(5) { background:#e2f2ec; border-color:#bfdfd1; }.recap-stat-wide,.recap-favourite { grid-column:1 / -1; }.recap-stat strong { display:block; margin-top:6px; font-size:19px; line-height:1.2; }.recap-stat > span:not(.stat-label),.recap-stat em { display:block; margin-top:6px; color:var(--muted); font-size:13px; font-style:normal; }.recap-stat em { color:var(--teal); }.vote-controls { display:flex; align-items:center; gap:8px; }.vote-controls strong { min-width:22px; text-align:center; font-size:15px; }.vote-adjust { display:grid; place-items:center; width:34px; height:34px; border:1px solid var(--mint-strong); border-radius:10px; background:var(--mint); color:var(--teal-dark); font-size:22px; line-height:1; }.vote-adjust:hover:not(:disabled) { background:var(--mint-strong); }.vote-adjust:disabled { cursor:not-allowed; opacity:.38; }
.recap-stat:nth-child(1) { background:#e4eff7; border-color:#c8dfe9; }
.recap-stat:nth-child(2) { background:#e8e1f4; border-color:#d2c5e7; }
.recap-stat:nth-child(3) { background:#dceee9; border-color:#b9ddd3; }
.recap-stat:nth-child(4) { background:#ffeedc; border-color:#f1d2b8; }
.recap-stat:nth-child(5) { background:#f8e7b8; border-color:#ead49a; }
.recap-celebration { background:linear-gradient(135deg,#fde8f2,#f3d9eb); border-color:#e8bdd8; }
.recap-celebration::after { display:none; }
.password-row { align-items:center; }.password-input-wrap { width:100%; }
input:focus-visible,select:focus-visible,textarea:focus-visible,button:focus-visible,a:focus-visible { outline:3px solid #f3b878; outline-offset:2px; }
@keyframes celebrate-float { 0%,100% { transform:translateY(0) rotate(-16deg); } 50% { transform:translateY(-5px) rotate(-8deg); } }.celebration-right { animation-name:celebrate-float-right !important; } @keyframes celebrate-float-right { 0%,100% { transform:translateY(0) rotate(14deg); } 50% { transform:translateY(-5px) rotate(22deg); } } @keyframes celebrate-pop { 0%,100% { transform:scale(1); } 50% { transform:scale(1.18); } }
.day-cell.muted { color:#667b78; }.day-cell.weekend,.day-cell.public-holiday { color:#647a76; }.holiday-label { color:#5c716d; }.recap-message-label { color:#7b4a70; }
.auth-status { max-width:42vw; overflow:hidden; color:var(--muted); font-size:12px; text-overflow:ellipsis; white-space:nowrap; }.sync-status { min-height:20px; margin:12px 2px 0; color:var(--muted); font-size:12px; }.sync-status[data-state="error"] { color:#8a4d5f; }.sync-status[data-state="ready"] { color:#50756f; }
@media (max-width:700px) { .recap-stats { grid-template-columns:1fr; }.recap-stat-wide,.recap-favourite { grid-column:auto; }.incident-vote-panel { align-items:flex-start; flex-direction:column; }.incident-vote-panel .vote-controls { align-self:flex-end; } }
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { animation-duration:.01ms !important; animation-iteration-count:1 !important; scroll-behavior:auto !important; } }
@media (max-width:700px) { .app-shell { padding:0 14px; }.topbar { height:68px; }.brand { font-size:15px; }.admin-link { font-size:13px; }.hero { display:block; padding:38px 0 28px; }.hero h1 { font-size:clamp(2.15rem,11vw,3.2rem); }.hero-copy { font-size:16px; }.streak-card { width:100%; margin-top:24px; }.streak-card strong { font-size:62px; }.stats-row { grid-template-columns:1fr; gap:16px; margin-bottom:48px; }.stat-card { padding-top:14px; }.section-heading { align-items:flex-start; flex-direction:column; }.section-heading h2 { font-size:30px; }.month-controls { width:100%; justify-content:space-between; gap:6px; flex-wrap:wrap; }.month-controls span { min-width:0; font-size:14px; }.recap-button { width:100%; }.calendar-card { width:100%; border-radius:18px; }.weekday-row { padding:13px 4px 9px; font-size:9px; }.day-cell { min-height:82px; padding:7px 3px; }.day-number { font-size:11px; }.day-number small { display:none; }.event-chip { background:transparent; padding:3px 0; justify-content:center; }.event-chip span:last-child { display:none; }.single-event .event-chip { padding:7px 0; gap:3px; }.single-event .event-chip span:first-child { font-size:20px; }.single-event .event-chip span:last-child { display:block; font-size:clamp(8px,2.4vw,10px); letter-spacing:-.04em; }.event-list { gap:2px; margin-top:8px; }.legend { padding:14px 12px; gap:8px 11px; font-size:11px; }.modal { padding:32px 20px 24px; }.password-row { flex-direction:column; }.password-row .primary-button { width:100%; }.form-grid { gap:8px; }.event-actions { flex-direction:column; }.event-actions button { width:100%; }.vote-heading { align-items:flex-start; flex-direction:column; } footer { flex-direction:column; margin-top:45px; gap:7px; } }
