:root{--bg:#f4f6f7;--surface:#fff;--surface-2:#eef2f3;--text:#172026;--muted:#5a6771;--border:#d9e0e4;--line:#e6ebee;--accent:#0f766e;--accent-hover:#0c5f58;--accent-ink:#fff;--accent-soft:#d9f0ec;--danger:#b42318;--free:#17a589;--maybe:#f2b33d;--none:repeating-linear-gradient(45deg, transparent 0 4px, #0000000d 4px 6px);--h1:#dff2ee;--h2:#ade0d6;--h3:#6ec6b6;--h4:#2ea592;--h5:#0d7a69;--focus:#2563eb;--radius:14px;--shadow:0 1px 2px #1018200f, 0 4px 16px #1018200d;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light dark}@media (prefers-color-scheme:dark){:root{--lightningcss-light: ;--lightningcss-dark:initial;--bg:#0e1215;--surface:#161c20;--surface-2:#1d252a;--text:#e5ebee;--muted:#97a4ad;--border:#2b353b;--line:#232c31;--accent:#2cc5ae;--accent-hover:#4fd6c1;--accent-ink:#062521;--accent-soft:#12332e;--danger:#ff8a7a;--free:#2cc5ae;--maybe:#e8a93a;--none:repeating-linear-gradient(45deg, transparent 0 4px, #ffffff0d 4px 6px);--h1:#1c4741;--h2:#17534a;--h3:#1b7768;--h4:#229e8a;--h5:#3fd2b9;--focus:#7aa7ff;--shadow:none}}*{box-sizing:border-box}html{-webkit-text-size-adjust:100%}body{background:var(--bg);color:var(--text);-webkit-tap-highlight-color:transparent;margin:0;font:16px/1.45 system-ui,-apple-system,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif}a{color:var(--accent)}h1,h2,h3{margin:0;line-height:1.2}button,input,select{font:inherit;color:inherit}:focus-visible{outline:2px solid var(--focus);outline-offset:2px}.sr-only{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}[hidden]{display:none!important}.muted{color:var(--muted)}.hint{color:var(--muted);margin:.5rem 0 0;font-size:.875rem}.error{color:var(--danger);margin:.5rem 0 0;font-size:.9rem}.error:empty{display:none}.icon{fill:none;stroke:currentColor;stroke-width:2px;stroke-linecap:round;stroke-linejoin:round;flex:none;width:1.15em;height:1.15em}.btn{border:1px solid var(--border);background:var(--surface);cursor:pointer;border-radius:10px;justify-content:center;align-items:center;gap:.45rem;min-height:44px;padding:.55rem 1rem;font-weight:600;text-decoration:none;display:inline-flex}.btn.primary{background:var(--accent);border-color:var(--accent);color:var(--accent-ink)}.btn.primary:hover{background:var(--accent-hover)}.btn.big{width:100%;min-height:52px;font-size:1.05rem}.btn:disabled{opacity:.6;cursor:default}.link-btn{color:var(--accent);cursor:pointer;background:0 0;border:0;align-items:center;gap:.35rem;min-height:36px;padding:.35rem .1rem;font-weight:600;display:inline-flex}.link-btn.danger{color:var(--danger)}.icon-btn{border:1px solid var(--border);background:var(--surface);cursor:pointer;border-radius:10px;place-items:center;width:44px;height:44px;display:inline-grid}.icon-btn:disabled{opacity:.35;cursor:default}input[type=text],select{border:1px solid var(--border);background:var(--surface);border-radius:10px;width:100%;min-height:46px;padding:.55rem .75rem}input[type=text]:focus,select:focus{border-color:var(--accent);outline:2px solid color-mix(in srgb, var(--accent) 30%, transparent);outline-offset:0}.tabs,.seg{background:var(--surface-2);border-radius:12px;gap:4px;padding:4px;display:flex}.tabs>button,.seg>button{min-height:40px;color:var(--muted);cursor:pointer;background:0 0;border:0;border-radius:9px;flex:1;justify-content:center;align-items:center;gap:.4rem;padding:.4rem .6rem;font-weight:600;display:inline-flex}.tabs>[aria-selected=true],.seg>[aria-checked=true]{background:var(--surface);color:var(--text);box-shadow:0 1px 3px #0000001f}.chips{grid-template-columns:repeat(7,1fr);gap:6px;display:grid}.chip{border:1px solid var(--border);background:var(--surface);cursor:pointer;border-radius:10px;min-height:44px;font-weight:600}.chip[aria-pressed=true]{background:var(--accent);border-color:var(--accent);color:var(--accent-ink)}.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);padding:1rem}.row-between{justify-content:space-between;align-items:center;gap:1rem;display:flex}.tag{background:var(--accent-soft);color:var(--accent);border-radius:99px;margin-left:.5rem;padding:.1rem .45rem;font-size:.75rem;font-weight:600}.home,.event{max-width:560px;padding:max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) 2rem max(1rem, env(safe-area-inset-left));margin:0 auto}.brand{color:var(--accent);align-items:center;gap:.45rem;font-size:1.05rem;font-weight:700;text-decoration:none;display:inline-flex}.brand .icon{width:1.4em;height:1.4em}.brand.small{font-size:.95rem}.hero{margin:.5rem 0 1.25rem}.hero h1{letter-spacing:-.01em;margin:1rem 0 .5rem;font-size:clamp(1.75rem,7vw,2.4rem)}.lede{color:var(--muted);margin:0}.create{gap:1.25rem;display:grid}.field{gap:.5rem;display:grid}.label{font-weight:650}.between{grid-template-columns:1fr auto 1fr;align-items:center;gap:.5rem;display:grid}.cal{margin-top:.25rem}.cal-head{justify-content:space-between;align-items:center;margin-bottom:.5rem;display:flex}.cal-title{font-weight:650}.cal-grid{touch-action:none;-webkit-user-select:none;user-select:none;grid-template-columns:repeat(7,1fr);gap:4px;display:grid}.cal-dow{text-align:center;color:var(--muted);padding:.2rem 0;font-size:.75rem;font-weight:600}.cal-day{aspect-ratio:1;background:var(--surface-2);cursor:pointer;font-variant-numeric:tabular-nums;border:1px solid #0000;border-radius:10px;min-height:40px;font-weight:600}.cal-day.today{border-color:var(--accent)}.cal-day.on{background:var(--accent);color:var(--accent-ink)}.cal-day:disabled{color:var(--muted);opacity:.45;cursor:default;background:0 0}.recent{margin-top:1.5rem}.recent h2{margin-bottom:.5rem;font-size:1rem}.recent ul{gap:.25rem;margin:0;padding:0;list-style:none;display:grid}.recent a{font-weight:600}.foot{color:var(--muted);text-align:center;margin-top:2rem;font-size:.875rem}.foot p{margin:.35rem 0}.gone .card{margin-top:1.5rem}.gone h1{margin-bottom:.5rem}.ev-head{margin-bottom:1rem}.ev-top{justify-content:space-between;align-items:center;margin-bottom:.75rem;display:flex}.ev-title{overflow-wrap:anywhere;font-size:clamp(1.5rem,6vw,2rem)}.ev-meta{color:var(--muted);margin:.35rem 0 .75rem}.ev-actions{gap:.5rem;display:flex}.ev-actions .btn{flex:1}.zone{color:var(--muted);grid-template-columns:auto 1fr;align-items:start;gap:.1rem .4rem;margin-top:.75rem;font-size:.875rem;display:grid}.zone .icon{margin-top:.15em}.zone .link-btn{grid-column:2;justify-self:start;min-height:0;padding:0;font-size:.875rem}.live{color:var(--muted);align-items:center;gap:.35rem;font-size:.8rem;display:inline-flex}.live:before{content:"";background:var(--maybe);border-radius:50%;width:8px;height:8px}.live.live:before{background:var(--free)}.best h2{margin-bottom:.6rem;font-size:1.05rem}.best .empty{color:var(--muted);margin:0}.best-list{gap:.5rem;margin:0;padding:0;list-style:none;display:grid}.best-item{text-align:left;border:1px solid var(--line);background:var(--surface-2);cursor:pointer;border-radius:10px;grid-template-columns:1fr auto;gap:.15rem .75rem;width:100%;padding:.65rem .75rem;display:grid}.best-item.all{border-color:var(--free);background:var(--accent-soft)}.best-when{flex-direction:column;display:flex}.best-day{font-weight:700}.best-time{font-variant-numeric:tabular-nums}.best-count{white-space:nowrap;text-align:right;font-size:.875rem}.best-names{color:var(--muted);overflow-wrap:anywhere;grid-column:1/-1;font-size:.875rem}.ev-tabs{margin-top:1.25rem}.pager{justify-content:space-between;align-items:center;gap:.5rem;margin-top:.75rem;display:flex}.pager-label{text-align:center;font-size:.9rem;font-weight:600}.panels{margin-top:.75rem}.panels[data-tab=mine] .panel-all,.panels[data-tab=all] .panel-mine{display:none}.panel-h{margin-bottom:.25rem;font-size:1.05rem}.panel-mine>.muted{margin:0 0 .75rem;font-size:.9rem}.join-row{gap:.5rem;display:flex}.join-row input{flex:1;min-width:0}.grid-preview{opacity:.45;pointer-events:none;margin-top:1rem}.me-bar{gap:.5rem;display:grid}.me-row{flex-wrap:wrap;align-items:center;gap:0 .75rem;display:flex}.me-row>span{margin-right:auto}.me-name{overflow-wrap:anywhere}.me-tools{align-items:center;gap:.75rem;display:flex}.me-tools .seg{flex:1;max-width:320px}.swatch{border-radius:4px;width:14px;height:14px}.swatch.s1{background:var(--free)}.swatch.s2{background:var(--maybe)}.save-status{color:var(--muted);white-space:nowrap;font-size:.85rem}.save-status.bad{color:var(--danger);white-space:normal}.touch-only{display:none}@media (pointer:coarse){.touch-only{display:inline}}.grid-host{margin-top:.75rem}.grid{background:var(--surface);border:1px solid var(--border);-webkit-user-select:none;user-select:none;--row:22px;border-radius:10px;display:grid;overflow:hidden}.grid.slot-15{--row:16px}.grid.slot-60{--row:34px}.grid:focus-visible{outline-offset:3px}.corner,.colhead{z-index:1;background:var(--surface);border-bottom:1px solid var(--border);position:sticky;top:0}.colhead{text-align:center;border-left:1px solid var(--line);flex-direction:column;align-items:center;padding:.35rem .1rem;font-size:.75rem;line-height:1.2;display:flex}.colhead .dow{text-transform:uppercase;letter-spacing:.03em;color:var(--muted);font-weight:700}.colhead .dom{white-space:nowrap;font-weight:650}.rowhead{height:var(--row);color:var(--muted);text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums;touch-action:pan-y;padding-right:6px;font-size:.7rem;line-height:1;transform:translateY(-.35em)}.rowhead.first{padding-top:2px;transform:none}.cell{height:var(--row);border-left:1px solid var(--line);border-top:1px dashed var(--line);background:var(--surface)}.cell.hour{border-top:1px solid var(--border)}.cell.none{background:var(--none), var(--surface-2)}.grid.paint .cell:not(.none){cursor:pointer;touch-action:none}.grid.paint .cell.s1{background:var(--free)}.grid.paint .cell.s2{background:var(--maybe)}.grid-host.locked .cell{touch-action:auto}.cell.past{opacity:.55}.cell.cursor{outline:2px solid var(--focus);outline-offset:-2px}.grid.heat .cell:not(.none){cursor:pointer}.cell.h1{background:var(--h1)}.cell.h2{background:var(--h2)}.cell.h3{background:var(--h3)}.cell.h4{background:var(--h4)}.cell.h5{background:var(--h5)}.cell.all{box-shadow:inset 0 0 0 2px color-mix(in srgb, var(--text) 35%, transparent)}.cell.sel{outline:3px solid var(--focus);outline-offset:-3px}@media (hover:hover){.grid.heat .cell:not(.none):hover{outline:2px solid var(--text);outline-offset:-2px}}.legend{flex-wrap:wrap;align-items:center;gap:4px;font-size:.8rem;display:flex}.legend .sw{border:1px solid var(--line);border-radius:3px;width:22px;height:14px}.legend .sw.h1{background:var(--h1)}.legend .sw.h2{background:var(--h2)}.legend .sw.h3{background:var(--h3)}.legend .sw.h4{background:var(--h4)}.legend .sw.h5{background:var(--h5)}.legend-hint{flex-basis:100%;margin-top:.15rem}.detail{z-index:2;border:1px solid var(--border);background:var(--surface);padding:.75rem .9rem;padding-bottom:max(.75rem, env(safe-area-inset-bottom));border-radius:12px;margin-top:.75rem;font-size:.9rem;position:sticky;bottom:0;box-shadow:0 -4px 16px #00000014}.detail p{overflow-wrap:anywhere;margin:.15rem 0}.detail-when{margin-bottom:.3rem!important}.who-label{min-width:7.5rem;font-weight:650;display:inline-block}.who.yes .who-label{color:var(--accent)}.who.maybe .who-label{color:color-mix(in srgb, var(--maybe) 70%, var(--text))}.who.no{color:var(--muted)}.people{margin-top:1.25rem}.people h3{margin-bottom:.5rem;font-size:.95rem}.people-list{gap:.35rem;margin:0;padding:0;list-style:none;display:grid}.people-list li{align-items:center;gap:.6rem;min-height:44px;display:flex}.avatar{border-radius:50%;flex:none;place-items:center;width:32px;height:32px;font-size:.9rem;font-weight:700;display:inline-grid}.p-name{overflow-wrap:anywhere;font-weight:600}.p-count{white-space:nowrap;margin-left:auto;font-size:.85rem}.people-list .icon-btn{width:36px;height:36px}.toast{left:50%;bottom:max(1rem, env(safe-area-inset-bottom));background:var(--text);max-width:calc(100vw - 2rem);color:var(--bg);opacity:0;pointer-events:none;z-index:10;overflow-wrap:anywhere;border-radius:10px;padding:.7rem 1rem;font-weight:600;transition:opacity .2s,transform .2s;position:fixed;transform:translate(-50%,1rem)}.toast.show{opacity:1;transform:translate(-50%)}@media (min-width:900px){.event{max-width:1100px}.ev-head{grid-template-columns:1fr auto;align-items:end;gap:0 1rem;display:grid}.ev-head>.ev-top,.ev-head>.ev-title,.ev-head>.ev-meta,.ev-head>.zone{grid-column:1}.ev-head>.ev-actions{grid-area:2/2/span 2;align-self:center}.ev-tabs{display:none}.best-list{grid-template-columns:repeat(auto-fit,minmax(240px,1fr))}.best-item{align-content:start;height:100%}.panels{grid-template-columns:1fr 1fr;align-items:start;gap:1.5rem;display:grid}.panels[data-tab] .panel-all,.panels[data-tab] .panel-mine{display:block}.panel .panel-h.sr-only{clip-path:none;white-space:normal;width:auto;height:auto;position:static}.panel{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);padding:1rem}.detail{box-shadow:none}.home{padding-top:2rem}}@media (prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
