:root{color-scheme:light;--background:#f7f9fa;--button-text:#fff;--secondary-line:#b4cdca;--field-line:#b9cccf;--hero-start:#e7f2ee;--hero-end:#edf3f8;--hero-line:#d6e5e2;--error-background:#fff0f1;--input-muted:#f8fafb;--badge-background:#eef2f5;--yes-background:#e1f3e9;--yes-text:#1b6040;--maybe-background:#fff2d8;--maybe-text:#805409;--no-background:#f4e8ea;--no-text:#823a45;--success-line:#badac8;--error-line:#e4bdc5;--focus:#d28a23;--danger:#9c2739;--danger-hover:#7e1e2d;--ink:#18313c;--muted:#526b75;--accent:#146c63;--accent-dark:#0b5149;--line:#dce5e6;--wash:#f0f6f5;--paper:#fff;--error:#9c2739;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:16px;background:var(--background);color:var(--ink)}
*{box-sizing:border-box}body{margin:0;line-height:1.6}a{color:var(--accent);text-underline-offset:4px}a:hover{color:var(--accent-dark)}button,input,select,textarea{font:inherit}button,a,input,select,textarea{touch-action:manipulation}button{cursor:pointer}h1,h2,h3,p{margin-top:0}h1{font-size:clamp(2rem,5vw,3.6rem);line-height:1.12;letter-spacing:-.045em;margin-bottom:1rem;font-weight:750}h2{font-size:1.4rem;line-height:1.3;letter-spacing:-.02em;margin-bottom:1rem}h3{font-size:1.1rem;line-height:1.4;margin-bottom:.5rem}p{margin-bottom:1rem}.site-header{background:var(--paper);border-bottom:1px solid var(--line)}.header-inner{max-width:1180px;margin:auto;min-height:80px;padding:1rem 2rem;display:flex;align-items:center;justify-content:space-between;gap:1rem}.brand{text-decoration:none;color:var(--ink);font-weight:750;font-size:1.2rem;letter-spacing:-.035em}.brand:before{content:"";display:inline-block;width:13px;height:13px;background:var(--accent);border-radius:4px;margin-right:.6rem;transform:rotate(-12deg)}nav{display:flex;gap:1.2rem;align-items:center;flex-wrap:wrap}nav a{font-size:.9rem;text-decoration:none}nav form{margin:0}main{max-width:1180px;margin:0 auto;padding:3rem 2rem 5rem;min-height:75vh}footer{padding:1.5rem;text-align:center;color:var(--muted);font-size:.875rem;border-top:1px solid var(--line)}.eyebrow{font-size:.8rem;font-weight:750;letter-spacing:.14em;color:var(--accent);margin-bottom:1rem}.lead{font-size:1.12rem;line-height:1.7;color:var(--muted);max-width:700px}.muted,.help{color:var(--muted)}.help{font-size:.875rem;line-height:1.5;margin:.4rem 0 0}.help ul{padding-left:1.2rem}.narrow{max-width:690px;margin:0 auto}.welcome{padding:5rem 0}.panel{background:var(--paper);border:1px solid var(--line);border-radius:16px;padding:1.7rem;margin-bottom:1.25rem;box-shadow:0 3px 12px #18313c03}.subtle{background:var(--wash)}.button{display:inline-flex;align-items:center;justify-content:center;gap:.4rem;text-decoration:none;border:1px solid var(--accent);border-radius:9px;padding:.7rem 1.15rem;min-height:46px;background:var(--accent);color:var(--button-text);font-weight:650;font-size:.95rem;white-space:normal}.button:hover{background:var(--accent-dark);color:var(--button-text);border-color:var(--accent-dark)}.button.secondary{background:var(--paper);color:var(--accent);border-color:var(--secondary-line)}.button.secondary:hover{background:var(--wash)}.text-button{border:0;background:none;padding:.3rem 0;color:var(--accent);font-size:.9rem;text-decoration:underline;text-underline-offset:4px}.text-link{font-size:.95rem;font-weight:600}.event-hero{background:linear-gradient(120deg,var(--hero-start),var(--hero-end));border:1px solid var(--hero-line);border-radius:20px;padding:2.5rem;margin-bottom:2rem;position:relative;overflow:hidden}.event-facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:2rem;margin:2rem 0}.event-facts>div{display:flex;flex-direction:column;align-items:start}.fact-label{font-size:.75rem;font-weight:750;letter-spacing:.1em;color:var(--accent);margin-bottom:.6rem}.event-facts strong{font-weight:650}.prose{overflow-wrap:anywhere}.invite-columns{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(0,1fr);gap:1.5rem;align-items:start}.stack{display:flex;flex-direction:column;align-items:stretch;gap:1.25rem}.stack>.button{align-self:flex-start;min-width:160px}.field{min-width:0}.field>label,label[for="private-link"],label[for="event-link"]{display:block;font-weight:650;font-size:.95rem;margin-bottom:.5rem}.field input:not([type="checkbox"]):not([type="radio"]),.field textarea,.field select,.copy-row input,#manual-token{width:100%;border:1px solid var(--field-line);background:var(--paper);border-radius:8px;padding:.7rem .85rem;color:var(--ink);min-height:46px}.field textarea{resize:vertical}.field input[type="checkbox"],.field input[type="radio"]{width:1.1rem;height:1.1rem;accent-color:var(--accent);vertical-align:middle;margin-right:.5rem}.field select{padding-right:2.5rem}.field div[id^="id_status"]{display:flex;gap:.6rem;flex-wrap:wrap}.field div[id^="id_status"]>div{border:1px solid var(--line);border-radius:8px;padding:.55rem .8rem}.field div[id^="id_status"] label{cursor:pointer}.field-errors,.form-errors{color:var(--error);font-size:.9rem}.field-errors ul,.form-errors ul{margin:.5rem 0;padding-left:1.3rem}.invalid input,.invalid textarea{border-color:var(--error)!important}.form-errors{padding:1rem;background:var(--error-background);border-radius:8px}.copy-row{display:flex;gap:.6rem}.copy-row input{min-width:0;font-size:.875rem;background:var(--input-muted)}.copy-row .button{flex-shrink:0}.private-link{padding:1rem;background:var(--wash);border-radius:10px;margin:1.5rem 0}.new-response{border-top:1px solid var(--line);padding-top:1rem;margin-top:1.5rem}.new-response .help{margin-top:0}.small-note{padding:.4rem 1rem;color:var(--muted);font-size:.95rem}.small-note h3{color:var(--ink)}.stats{display:flex;flex-wrap:wrap;gap:2rem}.stats>div{display:flex;flex-direction:column}.stats strong{font-size:2rem;line-height:1.3;letter-spacing:-.04em;font-weight:700}.stats span{font-size:.875rem;color:var(--muted)}.stats.compact{gap:1.5rem}.stats.compact strong{font-size:1.6rem}.attendees,.question-list{padding:0;margin:1.2rem 0 0;list-style:none}.attendees li,.question-list li{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1rem 0;border-top:1px solid var(--line)}.badge{display:inline-block;background:var(--badge-background);border-radius:30px;padding:.25rem .7rem;font-size:.8rem;font-weight:650;white-space:nowrap}.badge.yes{background:var(--yes-background);color:var(--yes-text)}.badge.maybe{background:var(--maybe-background);color:var(--maybe-text)}.badge.no{background:var(--no-background);color:var(--no-text)}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:1.5rem;margin-bottom:1.6rem}.page-heading p{margin-bottom:0}.section-gap{margin-top:2.5rem}.event-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,310px),1fr));gap:1.25rem}.event-card{margin:0}.event-card h3{font-size:1.5rem;margin:.9rem 0}.event-card h3 a{text-decoration:none;color:var(--ink)}.card-top{display:flex;align-items:center;justify-content:space-between;gap:.5rem}.date-label{font-size:.85rem;font-weight:600}.event-card>.help{margin:1.25rem 0 .5rem}.empty{width:100%;padding:2rem}.empty p{margin-bottom:0}.share-panel{display:grid;grid-template-columns:1.5fr 1fr;gap:2rem;align-items:center}.share-panel .text-link{display:inline-block;margin-top:.7rem}.share-panel form{margin-top:.5rem}.response-heading{display:flex;gap:1rem;align-items:center;flex-wrap:wrap}.response-heading h3{margin:0}.response-heading .text-link{margin-left:auto}.answers{margin:1.2rem 0 0;border-top:1px solid var(--line);padding-top:1rem}.answers>div{margin-bottom:.8rem}.answers>div:last-child{margin:0}.answers dt{font-size:.875rem;color:var(--muted);font-weight:600}.answers dd{margin:.2rem 0 0}.messages{margin-bottom:1.5rem}.message{background:var(--yes-background);border:1px solid var(--success-line);border-radius:9px;padding:.9rem 1.1rem;margin-bottom:.7rem}.message.error{background:var(--error-background);border-color:var(--error-line);color:var(--error)}.notice{padding:1.2rem;background:var(--wash);border-radius:10px}.notice p{margin:0}:focus-visible{outline:3px solid var(--focus);outline-offset:3px}.login{padding-top:2rem}
@media(max-width:760px){main{padding:2rem 1rem 3rem}.header-inner{padding:1rem;flex-direction:column;align-items:flex-start;gap:.8rem}nav{gap:.8rem}.event-hero{padding:1.5rem;border-radius:14px}.event-facts{gap:1.2rem}.invite-columns,.share-panel{grid-template-columns:1fr}.panel{padding:1.25rem}.page-heading{align-items:flex-start;flex-direction:column}.page-heading>.button{align-self:flex-start}.copy-row{flex-wrap:wrap}.copy-row input{flex:1 1 180px}.stats{gap:1.5rem}.response-heading .text-link{margin-left:0}.welcome{padding:3rem 0}}
.field fieldset{border:0;padding:0;margin:0;min-width:0}.field legend{font-size:.95rem;font-weight:650;margin-bottom:.5rem;padding:0}
.calendar-picker{max-width:420px}.calendar-picker>summary{cursor:pointer;list-style:none}.calendar-picker>summary::-webkit-details-marker{display:none}.calendar-choices{margin-top:.75rem;padding:.9rem;background:var(--paper);border:1px solid var(--line);border-radius:10px;display:grid;gap:.35rem}.calendar-choices>.help{margin:0 0 .35rem}.calendar-choices>a{display:block;padding:.55rem .65rem;text-decoration:none;font-weight:600;border-radius:6px}.calendar-choices>a:hover{background:var(--wash)}

.event-actions{display:flex;align-items:center;flex-wrap:wrap;gap:1rem}.event-actions form{margin:0}.button.danger{background:var(--danger);border-color:var(--danger);color:#fff}.button.danger:hover{background:var(--danger-hover);border-color:var(--danger-hover)}.danger-link{color:var(--error)}

[hidden]{display:none!important}.detail-chips{display:flex;flex-wrap:wrap;gap:.5rem;margin:1rem 0}.detail-chips .button{border-radius:999px;padding:.45rem .85rem}.detail-chips button:disabled{opacity:.5;cursor:default}.invitation-details{display:grid;gap:1rem;margin:1.5rem 0}.invitation-details dt{font-weight:700}.invitation-details dd{margin:.25rem 0 0}

/* Follow the device without JavaScript; an explicit choice overrides it. */
@media(prefers-color-scheme:dark){:root:not([data-theme="light"]){color-scheme:dark;--background:#101b22;--ink:#e2ecef;--muted:#b0c3cc;--accent:#83d4c4;--accent-dark:#a7e6d8;--line:#354b56;--wash:#20343b;--paper:#192a32;--error:#ffb3c0;--button-text:#102721;--secondary-line:#567e7b;--field-line:#58717d;--hero-start:#1b3535;--hero-end:#213240;--hero-line:#3d5d60;--error-background:#442832;--input-muted:#14232b;--badge-background:#2d424e;--yes-background:#1d4033;--yes-text:#a7e6bd;--maybe-background:#493b20;--maybe-text:#ffdb8c;--no-background:#482d38;--no-text:#ffc1ce;--success-line:#42735a;--error-line:#905465;--focus:#f7bd62;--danger:#a52f45;--danger-hover:#872439;}}
:root[data-theme="dark"]{color-scheme:dark;--background:#101b22;--ink:#e2ecef;--muted:#b0c3cc;--accent:#83d4c4;--accent-dark:#a7e6d8;--line:#354b56;--wash:#20343b;--paper:#192a32;--error:#ffb3c0;--button-text:#102721;--secondary-line:#567e7b;--field-line:#58717d;--hero-start:#1b3535;--hero-end:#213240;--hero-line:#3d5d60;--error-background:#442832;--input-muted:#14232b;--badge-background:#2d424e;--yes-background:#1d4033;--yes-text:#a7e6bd;--maybe-background:#493b20;--maybe-text:#ffdb8c;--no-background:#482d38;--no-text:#ffc1ce;--success-line:#42735a;--error-line:#905465;--focus:#f7bd62;--danger:#a52f45;--danger-hover:#872439;}
.message{color:var(--yes-text)}.message.error{color:var(--error)}.header-controls,.theme-controls{display:flex;align-items:center;flex-wrap:wrap;gap:1rem}.header-controls{justify-content:flex-end}.theme-toggle{min-height:44px;font-size:.85rem;padding:.45rem .75rem}.theme-toggle[aria-pressed="true"]{background:var(--wash);border-color:var(--accent)}@media(max-width:760px){.header-controls{justify-content:flex-start}.theme-controls{gap:.75rem}}
