/* OsMike web starter — service layer. Loads after tokens.css (canonical, vendored) and theme.css (dark).
   Rule: no colour literals below except the namespaced extension tokens in this first block (design lint). */
:root { --site-error:#C6402E; --site-sel:rgba(124,124,255,.12); --site-shadow:rgba(23,19,14,.25); --site-rest:rgba(23,19,14,.02); }
html[data-theme="dark"] { --site-error:#ff8f7a; --site-sel:rgba(124,124,255,.22); --site-shadow:rgba(0,0,0,.6); --site-rest:rgba(0,0,0,.2); }
:root { --site-ev:rgba(124,124,255,.14); --site-ev-line:#5b5bd6; --site-meet:rgba(255,138,91,.18); --site-g:rgba(60,150,90,.14); --site-today:rgba(255,138,91,.08); --site-now:#e8613a; }
:root { --site-backdrop:rgba(23,19,14,.35); } html[data-theme="dark"] { --site-backdrop:rgba(0,0,0,.6); }
html[data-theme="dark"] { --site-ev:rgba(124,124,255,.24); --site-ev-line:#9d9dff; --site-meet:rgba(255,138,91,.24); --site-g:rgba(120,190,140,.22); --site-today:rgba(255,138,91,.12); --site-now:#ff8a5b; }

@font-face { font-family:"Fraunces"; src:url("/static/fonts/fraunces.woff2") format("woff2"); font-weight:300 600; font-style:normal; font-display:swap; }
@font-face { font-family:"Manrope"; src:url("/static/fonts/manrope.woff2") format("woff2"); font-weight:400 700; font-style:normal; font-display:swap; }

*, *::before, *::after { box-sizing:border-box; }
html { -webkit-text-size-adjust:100%; }
body { margin:0; background:var(--bg); color:var(--ink); font:400 17px/1.6 var(--sans); min-height:100vh; display:flex; flex-direction:column; }
img, svg { max-width:100%; }
a { color:var(--ink); text-underline-offset:3px; }
h1, h2, h3 { font-family:var(--disp); font-weight:400; line-height:1.15; margin:0 0 12px; letter-spacing:-.01em; }
p { margin:0 0 12px; }
.muted { color:var(--muted); }
.small { font-size:15px; }
.lede { font-size:17px; max-width:62ch; }
.eyebrow { font-size:14px; font-weight:600; letter-spacing:.08em; text-transform:uppercase; color:var(--muted); margin:0 0 4px; }
.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
.skip { position:absolute; left:16px; top:-60px; background:var(--card); padding:8px 16px; border-radius:12px; z-index:10; }
.skip:focus { top:8px; }

:focus-visible { outline:2px solid var(--ink); outline-offset:2px; }

/* Header */
.top { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 16px; max-width:1120px; width:100%; margin:0 auto; }
.brand { display:inline-flex; align-items:center; gap:10px; text-decoration:none; font-weight:700; min-height:44px; min-width:0; }
.mark { width:22px; height:22px; border-radius:7px; background:var(--grad); flex:none; }
.wordmark { overflow-wrap:anywhere; }
.account { position:relative; }
.account summary { list-style:none; display:flex; align-items:center; gap:8px; min-height:44px; padding:4px 12px 4px 4px; border-radius:999px; border:1px solid var(--muted); cursor:pointer; font-weight:600; font-size:16px; max-width:60vw; }
.account summary::-webkit-details-marker { display:none; }
.who { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.avatar { width:34px; height:34px; border-radius:999px; display:grid; place-items:center; background:var(--ink); color:var(--bg); font-size:15px; flex:none; }
.menu { position:absolute; right:0; top:calc(100% + 8px); background:var(--card); border:1px solid var(--line); border-radius:16px; padding:8px; min-width:240px; box-shadow:0 26px 50px -34px var(--site-shadow); z-index:5; }
.menu a, .menu .linkish { display:flex; align-items:center; min-height:44px; padding:0 12px; border-radius:12px; text-decoration:none; width:100%; font:600 16px var(--sans); color:var(--ink); }
.menu a:hover, .menu .linkish:hover { background:var(--site-sel); }
.menu form { margin:0; }
.menu-id { padding:8px 12px; margin:0 0 4px; border-bottom:1px solid var(--line); display:flex; flex-direction:column; }
.menu-id span { color:var(--muted); font-size:15px; overflow-wrap:anywhere; }
.linkish { background:none; border:0; cursor:pointer; text-align:left; }

/* Layout */
.wrap { flex:1; width:100%; max-width:1120px; margin:0 auto; padding:16px 16px 48px; }
.page-title { font-size:clamp(32px,5vw,44px); }
.card-title { font-size:26px; }
.grid { display:grid; gap:24px; grid-template-columns:minmax(0,1fr); margin-top:24px; }
@media (min-width:850px) { .grid { grid-template-columns:minmax(0,1fr) minmax(0,1fr); } .wrap { padding:32px 24px 64px; } }
.grid > *, .row, .share-main { min-width:0; }
.card { background:var(--card); border:1px solid var(--line); border-radius:22px; padding:24px; box-shadow:0 1px 0 var(--site-rest); }
@media (min-width:600px) { .card { padding:32px; } }
.narrow { max-width:560px; }
.stack { display:flex; flex-direction:column; gap:8px; }
.stack .btn { align-self:flex-start; margin-top:8px; }
.crumbs { margin:0 0 12px; }
.crumbs a { display:inline-flex; min-height:44px; align-items:center; }
.content { white-space:pre-wrap; overflow-wrap:anywhere; margin:12px 0 24px; }
.actions { display:flex; flex-wrap:wrap; gap:12px; align-items:center; margin:0; }
.actions form { margin:0; }

/* Controls */
label { font-weight:600; font-size:16px; }
input, textarea, select { font:400 16px/1.5 var(--sans); color:var(--ink); background:var(--card); border:1px solid var(--muted); border-radius:12px; padding:12px 16px; width:100%; min-height:44px; }
textarea { resize:vertical; }
input[aria-invalid="true"] { border-color:var(--site-error); }
.btn { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:44px; padding:12px 28px; border-radius:999px; font:600 16px/1.2 var(--sans); text-decoration:none; cursor:pointer; border:1px solid var(--ink); }
.btn.primary { background:var(--ink); color:var(--bg); box-shadow:0 10px 30px -12px var(--site-shadow); }
.btn.secondary { background:transparent; color:var(--ink); }
.btn.danger { color:var(--site-error); border-color:var(--site-error); }
.btn.wide { width:100%; margin:12px 0 16px; }
.btn[aria-busy="true"], .btn:disabled { opacity:.65; cursor:progress; }
.error { color:var(--site-error); font-weight:600; display:flex; gap:8px; align-items:baseline; }
.error span { display:inline-grid; place-items:center; width:20px; height:20px; border-radius:999px; border:2px solid currentColor; font-size:13px; flex:none; }
.notice { background:var(--site-sel); border-radius:12px; padding:12px 16px; }
.badge { display:inline-block; font-size:14px; font-weight:600; padding:2px 10px; border-radius:999px; border:1px solid var(--muted); color:var(--muted); }
.badge.live { color:var(--ink); border-color:var(--ink); }

/* Lists */
.rows { list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:8px; }
.row { display:flex; flex-direction:column; gap:2px; padding:12px 16px; border-radius:16px; border:1px solid var(--line); text-decoration:none; min-height:44px; }
a.row:hover { background:var(--site-sel); }
.row-title { font-weight:600; overflow-wrap:anywhere; }
.share { gap:12px; }
.share.revoked { opacity:.75; }
.share-main { display:flex; flex-direction:column; gap:6px; align-items:flex-start; }
.share-actions { display:flex; gap:12px; flex-wrap:wrap; }
.share-actions form { margin:0; }
.url { font-size:15px; }
@media (min-width:850px) { .share { flex-direction:row; align-items:flex-end; justify-content:space-between; } .share-main { flex:1; } }
.empty { padding:24px 0 8px; }
.stats { display:grid; grid-template-columns:repeat(auto-fit,minmax(160px,1fr)); gap:16px; margin:0; }
.stats dt { color:var(--muted); font-size:15px; } .stats dd { margin:0; font:400 40px/1.1 var(--disp); }

/* Login composition (account-style, warm) */
.auth { max-width:420px; margin:48px auto 0; position:relative; box-shadow:0 26px 50px -34px var(--site-shadow); }
.auth h1 { font-size:32px; }
.dawn { position:fixed; inset:-30vh -10vw auto; height:70vh; background:radial-gradient(60% 60% at 30% 40%, color-mix(in srgb, var(--coral) 22%, transparent), transparent 70%), radial-gradient(50% 50% at 75% 30%, color-mix(in srgb, var(--peri) 18%, transparent), transparent 70%); pointer-events:none; z-index:-1; }

.foot { max-width:1120px; width:100%; margin:0 auto; padding:16px; color:var(--muted); font-size:15px; }
.foot a { color:var(--muted); }

@media (prefers-reduced-motion:reduce) { *, *::before, *::after { animation:none !important; transition:none !important; scroll-behavior:auto !important; } }


/* ---- OsMike Calendar ---- */
.top { max-width:none; flex-wrap:wrap; }
.toolbar { display:flex; flex-wrap:wrap; align-items:center; gap:8px; min-width:0; flex:1; }
.btn.sm { min-height:40px; padding:8px 16px; font-size:15px; }
.pager { display:inline-flex; gap:2px; }
.icon-btn { display:inline-grid; place-items:center; width:40px; height:40px; border-radius:999px; text-decoration:none; font-size:22px; color:var(--ink); }
.icon-btn:hover { background:var(--site-sel); }
.period { font-size:22px; margin:0 8px 0 4px; white-space:nowrap; }
.views { display:inline-flex; border:1px solid var(--line); border-radius:999px; padding:2px; }
.views a { padding:8px 14px; border-radius:999px; text-decoration:none; font-weight:600; font-size:15px; color:var(--muted); min-height:36px; display:inline-flex; align-items:center; }
.views a[aria-current="page"] { background:var(--ink); color:var(--bg); }
.find input { min-height:40px; padding:6px 14px; border-radius:999px; width:200px; }
.find.wide input { width:min(520px, 70vw); }
.wrap { max-width:none; padding:8px 16px 32px; }
.tzline { margin:0 0 8px; }
.page-title.sm, .card-title.sm { font-size:22px; }
/* week / day time grid */
.tgrid { display:flex; flex-direction:column; border:1px solid var(--line); border-radius:18px; background:var(--card); overflow:hidden; }
.tg-head, .tg-allday { padding-right:var(--sbw, 0px); display:grid; grid-template-columns:56px repeat(var(--ndays), minmax(0,1fr)); border-bottom:1px solid var(--line); }
.tg-day { text-align:center; padding:8px 4px; text-decoration:none; color:var(--muted); font-weight:600; }
.tg-day .dn { font-size:20px; color:var(--ink); }
.tg-day.is-today .dn { background:var(--site-now); color:var(--bg); border-radius:999px; padding:0 8px; }
.tg-adcell { padding:4px; border-left:1px solid var(--line); display:flex; flex-direction:column; gap:3px; min-height:30px; }
.tg-gutter { padding:6px 4px; font-size:13px; }
.tg-body { display:grid; grid-template-columns:56px repeat(var(--ndays), minmax(0,1fr)); height:min(70vh, 1200px); overflow-y:auto; position:relative; }
.tg-hours, .tg-col { height:1440px; position:relative; }
.tg-h { height:60px; font-size:12px; color:var(--muted); text-align:right; padding-right:6px; }
.tg-h span { position:relative; top:-8px; }
.tg-col { border-left:1px solid var(--line); background:repeating-linear-gradient(to bottom, transparent 0 59px, var(--line) 59px 60px); }
.tg-col.is-today { background-color:var(--site-today); }
.tg-slot { display:block; height:60px; }
.tg-slot:hover { background:var(--site-sel); }
.tg-ev { position:absolute; margin-left:2px; padding:3px 6px; border-radius:8px; background:var(--site-ev); border-left:3px solid var(--site-ev-line); overflow:hidden; text-decoration:none; color:var(--ink); font-size:13px; line-height:1.25; display:flex; flex-direction:column; min-height:22px; }
.tg-ev .tm { color:var(--muted); font-size:12px; }
.tg-ev.meet, .ev.meet { background:var(--site-meet); border-left-color:var(--site-now); }
.tg-ev.g, .ev.g { background:var(--site-g); border-left-color:var(--muted); }
.now { position:absolute; left:0; right:0; height:2px; background:var(--site-now); z-index:2; }
.ev { display:block; padding:3px 8px; border-radius:8px; background:var(--site-ev); border-left:3px solid var(--site-ev-line); text-decoration:none; color:var(--ink); font-size:14px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.ev .tm { color:var(--muted); font-variant-numeric:tabular-nums; }
/* month */
.mgrid { display:grid; grid-template-columns:repeat(7, minmax(0,1fr)); gap:4px; }
.mg-wd { text-align:center; font-size:13px; font-weight:600; color:var(--muted); padding:4px; }
.mg-day { position:relative; min-height:112px; border:1px solid var(--line); border-radius:12px; background:var(--card); padding:4px; display:flex; flex-direction:column; gap:3px; overflow:hidden; }
.mg-day.other { opacity:.5; }
.mg-day.is-today { border-color:var(--site-now); background:var(--site-today); }
.mg-dn { align-self:flex-end; font-weight:700; text-decoration:none; color:var(--ink); padding:2px 6px; border-radius:999px; position:relative; z-index:1; }
.mg-day .ev, .mg-day .more { position:relative; z-index:1; }
.mg-add { position:absolute; inset:0; }
.dots { display:none; }
/* lists */
.list, .phone-list { display:flex; flex-direction:column; gap:12px; max-width:760px; }
.phone-list { display:none; }
.pl-day h2 { font-size:18px; margin:0 0 6px; }
.pl-day h2 a { text-decoration:none; color:var(--ink); }
.pl-day.is-today h2 a { color:var(--site-now); }
.pl-day .ev { white-space:normal; margin-bottom:4px; padding:8px 10px; font-size:15px; }
.pl-empty { display:inline-flex; min-height:36px; align-items:center; }
.sr { display:grid; grid-template-columns:100px minmax(0,1fr); gap:8px; align-items:center; }
/* event + form */
.event .when { font-size:18px; font-weight:600; }
.people { padding-left:18px; }
.del { display:flex; gap:8px; align-items:center; }
.del select { min-height:44px; }
.row2 { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:12px; }
.row2 > div { display:flex; flex-direction:column; gap:6px; }
.check { display:flex; gap:10px; align-items:center; min-height:44px; font-weight:600; }
.check input, .day-pick input { width:22px; height:22px; min-height:0; margin:0; flex:none; }
.repeat { border:1px solid var(--line); border-radius:14px; padding:10px 14px; display:flex; flex-direction:column; gap:8px; }
.byday { display:flex; flex-wrap:wrap; gap:6px; align-items:center; }
.day-pick { display:inline-flex; gap:4px; align-items:center; min-height:40px; padding:0 8px; border:1px solid var(--line); border-radius:999px; }
@media (max-width:760px) {
  .tgrid.week, .mgrid .ev, .mgrid .more, .find { display:none; }
  .tgrid.week + .phone-list { display:flex; }
  .mg-day { min-height:52px; }
  .dots { display:flex; gap:3px; justify-content:center; }
  .dots i { width:6px; height:6px; border-radius:999px; background:var(--site-ev-line); }
  .period { font-size:19px; flex-basis:100%; order:-1; margin:0; }
  .views a { padding:6px 10px; font-size:14px; }
  .row2 { grid-template-columns:minmax(0,1fr); }
}

/* the event form: a small pop-up over the calendar; as a page a narrow centred card */
.evform { max-width:560px; gap:6px; }
.evform:not(.in-modal) { margin:0 auto; }
.form-title { max-width:560px; margin-left:auto; margin-right:auto; }
.evform label { font-size:15px; }
.evform input, .evform select, .evform textarea { min-height:40px; }
.more-fields { border-top:1px solid var(--line); padding-top:6px; }
.more-fields summary { cursor:pointer; min-height:40px; display:flex; align-items:center; font-weight:600; font-size:15px; color:var(--muted); }
.more-fields[open] { display:flex; flex-direction:column; gap:6px; }
.form-actions { display:flex; justify-content:flex-end; gap:8px; margin-top:8px; }
.form-actions .btn { margin:0; }
dialog.modal { width:min(520px, calc(100vw - 32px)); max-height:calc(100dvh - 32px); padding:0; border:1px solid var(--line); border-radius:22px;
  background:var(--card); color:var(--ink); box-shadow:0 30px 80px -30px var(--site-shadow); overflow:auto; }
dialog.modal::backdrop { background:var(--site-backdrop); }
.modal-head { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:14px 16px 0 20px; }
.modal-head h2 { font-size:22px; margin:0; overflow-wrap:anywhere; }
dialog.modal .evform { border:0; box-shadow:none; padding:8px 20px 18px; max-width:none; margin:0; background:transparent; }
dialog.modal .error, dialog.modal .notice { margin:8px 20px 0; }

[hidden] { display:none !important; }
.row3 { display:grid; grid-template-columns:minmax(0,1.4fr) minmax(0,1fr) minmax(0,1fr); gap:8px; }
.row3 > div { display:flex; flex-direction:column; gap:4px; min-width:0; }
.evform .allday-only { display:none; }
.evform.all-day .allday-only { display:flex; }
.evform.all-day .timed { display:none; }
.evform.all-day .row3 { grid-template-columns:minmax(0,1fr) minmax(0,1fr); }
.evform input, .evform select { padding:6px 12px; font-size:16px; }
.evform textarea { padding:8px 12px; min-height:56px; }
.evform .check { min-height:36px; }
.repeat { gap:6px; padding:8px 12px; }
.repeat input[type=number] { max-width:110px; }
.day-pick { min-height:34px; padding:0 6px; font-size:14px; }
@media (max-width:420px) { .row3 { grid-template-columns:minmax(0,1fr) minmax(0,1fr); } .row3 .d { grid-column:1 / -1; } }

/* moving events */
@media (hover:hover) and (pointer:fine) { .tg-ev[data-id] { cursor:grab; touch-action:none; } }
.tg-ev.dragging { cursor:grabbing; opacity:.85; z-index:5; box-shadow:0 10px 30px -12px var(--site-shadow); }
.tg-ev .rs { position:absolute; left:0; right:0; bottom:0; height:8px; cursor:ns-resize; }
.mg-day.drop, .tg-adcell.drop { outline:2px dashed var(--site-ev-line); outline-offset:-2px; }
.ev[draggable="true"] { cursor:grab; }
dialog.ask { padding:20px; width:min(380px, calc(100vw - 32px)); }
dialog.ask p { margin:0 0 8px; font-weight:600; font-size:18px; }

/* invitations */
.ev.inv, .tg-ev.inv { border-left-style:dashed; }
.ev.inv.st-needs, .tg-ev.inv.st-needs { background:transparent; outline:1px dashed var(--site-ev-line); outline-offset:-1px; }
.invite-banner a { font-weight:700; }
.answer { display:flex; gap:8px; flex-wrap:wrap; }
.people li { margin:6px 0; display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.badge.ans-yes { color:var(--site-ok, var(--ink)); }
.badge.ans-no { color:var(--site-error); border-color:var(--site-error); }

/* event details (page or pop-up): small icon actions instead of big buttons */
.event .when { font-size:16px; }
.ev-actions { display:flex; flex-wrap:wrap; gap:6px; align-items:center; margin-top:14px; padding-top:12px; border-top:1px solid var(--line); }
.ev-actions .del { display:flex; gap:6px; align-items:center; margin:0; }
.ev-actions select { min-height:36px; padding:4px 10px; font-size:14px; }
.act { display:inline-flex; align-items:center; gap:6px; min-height:36px; padding:6px 12px; border-radius:999px; border:1px solid var(--line);
  background:transparent; color:var(--ink); font:600 14px var(--sans); text-decoration:none; cursor:pointer; }
.act:hover { background:var(--site-sel); }
.act.danger { color:var(--site-error); }
dialog.modal article.event { border:0; box-shadow:none; padding:8px 20px 18px; margin:0; background:transparent; }
dialog.modal article.event .page-title { display:none; }

/* ---- pop-ups (OsMike Design Pattern: white card, 22px radius, line border, account shadow; line icons) ---- */
.i { width:20px; height:20px; flex:none; fill:none; stroke:currentColor; stroke-width:1.75; stroke-linecap:round; stroke-linejoin:round; }
.pop { position:fixed; z-index:50; width:min(420px, calc(100vw - 32px)); max-height:min(80vh, 720px); overflow:auto;
  background:var(--card); color:var(--ink); border:1px solid var(--line); border-radius:22px;
  box-shadow:0 26px 50px -34px var(--site-shadow), 0 8px 24px -16px var(--site-shadow); padding:8px 20px 20px;
  animation:pop-in .12s ease-out; }
@keyframes pop-in { from { opacity:0; transform:translateY(4px); } to { opacity:1; transform:none; } }
.pop:focus { outline:none; }
.pop.sheet { left:0 !important; right:0; bottom:0; top:auto !important; width:100%; max-height:88vh; border-radius:22px 22px 0 0; padding:6px 16px calc(16px + env(safe-area-inset-bottom)); }
.pop.sheet::before { content:""; display:block; width:40px; height:4px; border-radius:999px; background:var(--line); margin:4px auto 2px; }
.pop-scrim { position:fixed; inset:0; z-index:49; background:var(--site-backdrop); }
.pk-bar { display:flex; justify-content:flex-end; gap:2px; margin:0 -10px 0 0; }
.ib { display:inline-grid; place-items:center; width:40px; height:40px; border-radius:999px; border:0; background:transparent; color:var(--muted);
  cursor:pointer; text-decoration:none; font:600 20px/1 var(--sans); padding:0; }
.ib:hover { background:var(--site-sel); color:var(--ink); }
.ib.sm { width:32px; height:32px; }
.ib.sm .i { width:16px; height:16px; }
.ib.done { color:var(--site-ok); }
.pk-title { font:400 24px/1.2 var(--disp); margin:2px 0 14px; display:flex; gap:12px; align-items:baseline; overflow-wrap:anywhere; }
.pk-title .sq { width:12px; height:12px; border-radius:4px; background:var(--site-ev-line); flex:none; transform:translateY(-2px); }
.pk-title .sq.meet { background:var(--site-now); }
.pk-rows { display:flex; flex-direction:column; gap:12px; }
.pk-row { display:grid; grid-template-columns:24px minmax(0,1fr); gap:14px; align-items:start; font-size:16px; line-height:1.45; }
.pk-row > .i { color:var(--muted); margin-top:1px; }
.pk-row .muted .i { width:14px; height:14px; vertical-align:-2px; }
.pk-row .btn.sm { min-height:36px; padding:6px 18px; }
.link-text { overflow-wrap:anywhere; margin-top:4px; }
.desc { white-space:pre-wrap; overflow-wrap:anywhere; }
.guests { list-style:none; padding:0; margin:8px 0 0; display:flex; flex-direction:column; gap:4px; }
.guests li { display:grid; grid-template-columns:28px minmax(0,1fr) auto auto auto; gap:8px; align-items:center; min-height:34px; }
.av { width:28px; height:28px; border-radius:999px; display:grid; place-items:center; background:var(--site-sel); color:var(--ink); font-size:13px; font-weight:700; }
.gname { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.gst { font-size:13px; color:var(--muted); }
.gst.st-yes { color:var(--site-ok); font-weight:600; }
.gst.st-no { color:var(--site-error); }
.add-guest { display:flex; gap:6px; margin-top:8px; }
.add-guest input { flex:1; min-width:0; min-height:40px; padding:6px 12px; font-size:16px; }
.add-guest .ib { border:1px solid var(--line); color:var(--ink); }
.add-msg:empty { display:none; }
.pk-confirm { background:var(--bg); border:1px solid var(--line); border-radius:16px; padding:12px 14px; margin:0 0 12px; }
.pk-confirm p { margin:0 0 8px; font-weight:600; }
.pk-btns { display:flex; flex-wrap:wrap; gap:8px; }
.btn.danger-fill { background:var(--site-error); border-color:var(--site-error); color:var(--card); }
.pk-rsvp { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin-top:16px; padding-top:14px; border-top:1px solid var(--line); }
.pk-rsvp .muted { margin-right:auto; }
.chip { display:inline-flex; align-items:center; gap:6px; min-height:36px; padding:6px 14px; border-radius:999px; border:1px solid var(--muted);
  background:transparent; color:var(--ink); font:600 14px var(--sans); cursor:pointer; }
.chip .i { width:16px; height:16px; }
.chip.on { background:var(--ink); color:var(--bg); border-color:var(--ink); }
.pk-pad { margin-top:12px; }
/* quick add */
.quick { display:flex; flex-direction:column; gap:12px; }
.q-title { border:0; border-bottom:2px solid var(--line); border-radius:0; padding:6px 2px; font:400 24px var(--disp); background:transparent; min-height:44px; }
.q-title:focus { outline:none; border-bottom-color:var(--ink); }
.q-when { display:flex; flex-wrap:wrap; gap:6px; align-items:center; }
.q-when input { min-height:38px; padding:4px 10px; font-size:16px; }
.q-when .timed { display:inline-flex; gap:4px; align-items:center; }
.check.sm { min-height:32px; font-size:15px; }
.q-people .pchips { list-style:none; display:flex; flex-wrap:wrap; gap:6px; padding:0; margin:0 0 6px; }
.q-people .pchips:empty { display:none; }
.pchips li { display:inline-flex; align-items:center; gap:2px; padding:2px 2px 2px 12px; border-radius:999px; background:var(--site-sel); font-size:14px; overflow-wrap:anywhere; }
.q-email { width:100%; min-height:40px; padding:6px 12px; font-size:16px; }
.q-more textarea, .q-more input { width:100%; min-height:40px; padding:6px 12px; font-size:16px; }
.q-chips { display:flex; flex-wrap:wrap; gap:6px; padding-left:38px; }
.q-chips .chip { border-color:var(--line); color:var(--muted); }
.pk-foot { display:flex; justify-content:space-between; align-items:center; gap:8px; margin-top:4px; }
.more-opt { font-weight:600; font-size:15px; color:var(--ink); }
.tg-ev.ghost { background:var(--site-sel); border-left-style:dashed; pointer-events:none; z-index:4; }
/* full editor: two columns */
.editor { display:grid; grid-template-columns:minmax(0,1.4fr) minmax(0,1fr); gap:16px 32px; max-width:1040px; margin:0 auto; }
.editor .ed-side { border-left:1px solid var(--line); padding-left:32px; }
.editor .ed-foot { grid-column:1 / -1; }
.form-title { max-width:1040px; }
@media (max-width:900px) { .editor { grid-template-columns:minmax(0,1fr); } .editor .ed-side { border-left:0; padding-left:0; border-top:1px solid var(--line); padding-top:16px; } }
@media (prefers-reduced-motion:reduce) { .pop { animation:none; } }
.evform.editor { max-width:1040px; }
