/* HOST EVENTS (14 Nov 2026; features/host-events.js). #hesheet and #hlsheet are Host an experience's sheet (#hsheet,
   host.css in index.html) in every class: .hs-head, .hs-scroll, .hs-lab, .nfield, .hs-seg, .hs-photos, .hs-th, .hs-bar.
   Only what #hsheet scopes to its own id, and the few pieces it never had, are here. */

#hesheet,#hlsheet,#rqsheet{position:absolute;left:0;right:0;bottom:0;top:max(40px,calc(env(safe-area-inset-top) + 8px));z-index:189;border-radius:16px 16px 0 0;background:rgba(30,30,30,.97);backdrop-filter:blur(30px) saturate(170%);-webkit-backdrop-filter:blur(30px) saturate(170%);border-top:1px solid var(--bone12);display:flex;flex-direction:column;padding-top:12px;transform:translateY(105%);visibility:hidden;transition:transform .42s var(--spring),visibility 0s linear .42s}
#hesheet.on,#hlsheet.on,#rqsheet.on{transform:none;visibility:visible;transition:transform .42s var(--spring),visibility 0s}
#hesheet .grab,#hlsheet .grab,#rqsheet .grab{flex:none;width:36px;height:5px;border-radius:2.5px;background:var(--bone35);margin:0 auto var(--s2)}
#hesheet:focus,#hlsheet:focus,#rqsheet:focus{outline:none}
#hesheet .nfield,#rqsheet .nfield{margin-top:var(--s1);font-size:16px}
#hesheet textarea.nfield{min-height:96px}
#hesheet textarea.nfield.he-short{min-height:64px}
@media (prefers-reduced-motion: reduce){
  #hesheet,#hlsheet,#rqsheet{transform:none!important;opacity:0;transition:opacity .18s var(--ease),visibility 0s linear .18s!important}
  #hesheet.on,#hlsheet.on,#rqsheet.on{opacity:1;transition:opacity .18s var(--ease),visibility 0s!important}
}

/* what Omertá said, at the top of a "needs changes" form */
.he-review{margin-top:var(--s1);padding:12px 14px;border-radius:var(--r-tile);background:var(--blu-soft);border:1px solid var(--blu-line);font-size:var(--t-sub);line-height:1.45;color:var(--bone)}
.he-review[hidden]{display:none}

/* six kinds: the segmented pill, wrapped to two rows of three */
.hs-seg.he-wrap{flex-wrap:wrap;border-radius:var(--r-tile)}
.hs-seg.he-wrap button{flex:1 1 calc(33.33% - 4px)}

/* what members get: toggles, any number on */
.he-chips{display:flex;flex-wrap:wrap;gap:var(--s1);margin-top:var(--s1)}
.he-chips button{min-height:44px;padding:0 16px;border-radius:var(--r-pill);border:1px solid var(--bone12);background:rgba(30,30,30,.5);color:var(--bone60);font-family:var(--mono);font-size:var(--t-cap2);letter-spacing:-.02em;text-transform:uppercase;transition:transform var(--hig-press) var(--ease),background-color .2s var(--ease),color .2s var(--ease)}
.he-chips button[aria-pressed="true"]{background:var(--blu-soft);color:var(--blu);border-color:var(--blu-line)}
.he-chips button:active{transform:scale(.97)}
.he-chips button:focus-visible{outline:2px solid var(--blu);outline-offset:2px}

/* photos: move earlier (bottom right), and the lifted tile while dragging */
.he-th{touch-action:pan-x}
.he-th .he-left{position:absolute;right:0;bottom:0;width:44px;height:44px;display:flex;align-items:flex-end;justify-content:flex-end;padding:6px}
.he-th .he-left i{width:24px;height:24px;border-radius:50%;background:rgba(30,30,30,.82);border:1px solid var(--bone12);display:flex;align-items:center;justify-content:center;color:var(--bone)}
.he-th .he-left svg{width:12px;height:12px;display:block}
.he-th.lift{z-index:2;border-color:var(--blu-line);box-shadow:0 10px 30px rgba(0,0,0,.45);transition:none}

/* the rights tick */
.he-tick{display:flex;gap:12px;align-items:flex-start;margin-top:var(--s3);font-size:var(--t-sub);line-height:1.45;color:var(--bone)}
.he-tick input{flex:none;width:22px;height:22px;margin:1px 0 0;accent-color:var(--blu)}

/* Your events, on You */
#he-you[hidden]{display:none}
.he-list{display:flex;flex-direction:column;gap:var(--s1);margin:12px 20px 0}
.he-row{display:flex;align-items:center;gap:12px;width:100%;min-height:60px;padding:10px 14px;border-radius:var(--r-tile);background:var(--ink2);border:1px solid var(--bone07);text-align:left;color:var(--bone);transition:transform var(--hig-press) var(--ease)}
.he-row:active{transform:scale(.98)}
.he-row:focus-visible{outline:2px solid var(--blu);outline-offset:2px}
.he-row .tx{flex:1 1 auto;min-width:0}
.he-row .tx b{display:block;font-weight:600;font-size:var(--t-sub);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.he-row .tx span{display:block;font-size:var(--t-fn);color:var(--bone60);margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.he-row .badge{flex:none}
.he-row.he-changes .badge{color:#FAF8F3;border-color:rgba(250,248,243,.45)}
.he-row.he-off,.he-row.he-past{opacity:.6}
.he-empty{font-size:var(--t-fn);color:var(--bone60);margin:0}

/* the host's request inbox: one card per request, Approve / Decline under it */
.he-reqs{list-style:none;margin:var(--s1) 0 0;padding:0;display:flex;flex-direction:column;gap:var(--s1)}
.he-reqs li.he-wait{color:var(--bone60);font-size:var(--t-sub);padding:10px 0}
.he-req{padding:12px 14px;border-radius:var(--r-tile);background:var(--ink2);border:1px solid var(--bone07)}
.he-req .who{display:flex;align-items:center;justify-content:space-between;gap:10px}
.he-req .who b{font-weight:600;font-size:var(--t-sub);min-width:0;overflow-wrap:anywhere}
.he-req .who .badge{flex:none}
.he-req.he-approved{border-color:var(--blu-line)}
.he-req.he-declined{opacity:.6}
.he-req dl{display:grid;grid-template-columns:auto 1fr;gap:4px 12px;margin:10px 0 0;font-size:var(--t-fn)}
.he-req dt{color:var(--bone35);font-family:var(--mono);font-size:var(--t-cap2);text-transform:uppercase;letter-spacing:-.02em;align-self:center}
.he-req dd{margin:0;color:var(--bone);overflow-wrap:anywhere;user-select:text;-webkit-user-select:text}
.he-req .acts{display:flex;gap:var(--s1);margin-top:12px}
.he-req .acts .ncta{flex:1 1 0;min-height:44px}
.he-req .acts .ncta.ghost{background:transparent;color:var(--bone);box-shadow:inset 0 0 0 1px var(--bone12)}
#he-pub[hidden]{display:none}
#rqsheet .he-review{margin-top:var(--s3)}
#hlsheet .hs-bar{display:flex;gap:var(--s1)}
#hlsheet .hs-bar .ncta{flex:1 1 0}
#hlsheet .hs-bar .ncta.ghost{background:transparent;color:var(--bone);box-shadow:inset 0 0 0 1px var(--bone12)}

/* the member, as one tappable card: photo, name, phone, email; opens their profile */
#rq-me[hidden], #rq-mine[hidden] { display: none; }
#rq-me .rq-card { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 14px; width: 100%;
  min-height: 72px; padding: 12px 14px; border-radius: 18px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.04); }
#rq-me .rq-card:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
#rq-me .rq-seal { flex: none; display: flex; }
#rq-me .rq-who { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
#rq-me .rq-who b { font-weight: 600; }
#rq-me .rq-who span { opacity: .7; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#rq-me .rq-chev { flex: none; opacity: .5; }
#rq-me-edit { all: unset; cursor: pointer; display: inline-block; min-height: 44px; line-height: 44px; font-size: 14px; opacity: .7; text-decoration: underline; text-underline-offset: 3px; }
#rq-me-edit:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

/* a host event's page: who's going lists approved members only; spots show once, as the bar */
#esheet.host-ev .e-goingrow, #esheet.host-ev .e-names, #esheet.host-ev .e-count { display: none; }   /* who's going: the approved members, in the app's own list */

/* the inbox: Approve is the one solid button; Decline is a quiet outline */
.he-req .he-no { background: transparent !important; color: inherit !important; border: 1px solid rgba(255,255,255,.22) !important; box-shadow: none !important; }
.hs-help.he-small { font-size: 12px; opacity: .6; margin-top: 6px; }

/* a public event's official ticket page: venue, lineup and hours live there */
#esheet .e-ticket { display: inline-flex; align-items: center; min-height: 44px; margin: 4px 0 8px; text-decoration: underline; text-underline-offset: 3px; }
#esheet .e-ticket[hidden] { display: none; }
