:root {
  --bg: #f7f5f0; --card: #fffdf8; --on-color: #fff; --ink: #1b1a2e; --muted: #6b6a7a; --line: #e4e1d8;
  --body: var(--ink); --accent: #c9802b; --accent-ink: #fff; --new: #2b8a6e; --soft: #efe9dc; --danger: #b3423c;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  /* Dark mode (Elo, 0.4.81): neutral grays with soft pastels, like his budget app, instead of the old purple-blue. */
  :root { --bg: #232323; --card: #2b2b2b; --ink: #c7c7c7; --body: #b4b4b4; --on-color: #d9d9d9; --muted: #9a9a9a; --line: #3b3b3b; --accent: #eda03f; --accent-ink: #1e1e1e; --new: #7fd1a5; --soft: #353535; --danger: #e0707a; }
  body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } /* light text on dark looks heavier on a Mac: this thins it */
  /* The kinds of event: a pastel on a soft tint of itself, not a pale block */
  html .pill.k-ecstatic-dance { background: color-mix(in srgb, #e9b45e 20%, transparent); color: #ebbd6f; }
  html .pill.k-contact-improv { background: color-mix(in srgb, #7fd1b0 20%, transparent); color: #8fd9bb; }
  html .pill.k-ci-adjacent { background: color-mix(in srgb, #8ab8e8 20%, transparent); color: #9cc4ed; }
  html .pill.k-soft-acrobatics { background: color-mix(in srgb, #aa9cf0 20%, transparent); color: #b9adf3; }
  html .pill.k-somatic { background: color-mix(in srgb, #e98fa8 20%, transparent); color: #ee9fb5; }
  html .pill.k-movement-other { background: color-mix(in srgb, #b4b4b4 18%, transparent); color: #c4c4c4; }
  /* A picked chip: a soft tint and a thin outline, not a bright block (the kinds in their own pastel) */
  html .chip.on { background: color-mix(in srgb, var(--accent) 20%, transparent); color: #f0b660; border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
  html .chip.on[data-kind="ecstatic-dance"] { background: color-mix(in srgb, #e9b45e 20%, transparent); color: #ebbd6f; border-color: color-mix(in srgb, #e9b45e 55%, transparent); }
  html .chip.on[data-kind="contact-improv"] { background: color-mix(in srgb, #7fd1b0 20%, transparent); color: #8fd9bb; border-color: color-mix(in srgb, #7fd1b0 55%, transparent); }
  html .chip.on[data-kind="ci-adjacent"] { background: color-mix(in srgb, #8ab8e8 20%, transparent); color: #9cc4ed; border-color: color-mix(in srgb, #8ab8e8 55%, transparent); }
  html .chip.on[data-kind="soft-acrobatics"] { background: color-mix(in srgb, #aa9cf0 20%, transparent); color: #b9adf3; border-color: color-mix(in srgb, #aa9cf0 55%, transparent); }
  html .chip.on[data-kind="somatic"] { background: color-mix(in srgb, #e98fa8 20%, transparent); color: #ee9fb5; border-color: color-mix(in srgb, #e98fa8 55%, transparent); }
  html .chip.on[data-kind="movement-other"] { background: color-mix(in srgb, #b4b4b4 18%, transparent); color: #c4c4c4; border-color: color-mix(in srgb, #b4b4b4 50%, transparent); }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
body { padding-bottom: 96px; }
h1 { font-size: 1.35rem; margin: 0; } h2 { font-size: 1.2rem; margin: 0 0 8px; } h3 { margin: 0; font-size: 1.05rem; }
p { margin: 0 0 10px; }
.muted { color: var(--muted); } .small { font-size: .85rem; }
.top { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 6px; position: sticky; top: 0; z-index: 4; background: var(--bg); }
.top-right { display: flex; align-items: center; gap: 8px; }
.version { padding: 10px 6px; margin: -10px -6px; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; cursor: default; font-size: .72rem; color: var(--muted); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.pin { font-size: 1.1em; }
.profile { padding: 4px 16px 10px; display: flex; flex-direction: column; gap: 8px; background: var(--bg); } /* scrolls away under the top bar (Elo, 0.4.92); only the top bar stays */
.row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
/* Pills 3px slimmer all round (Elo, 0.4.63) */
.chip { border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 999px; padding: 3px 9px; font-size: .9rem; cursor: pointer; }
.chip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip.ghost { background: transparent; border-style: dashed; color: var(--muted); }
.chip.karma { border-color: var(--accent); color: var(--accent); background: transparent; }
.chip .x { margin-left: 6px; opacity: .6; }
.list { padding: 0 16px; display: flex; flex-direction: column; gap: 10px; }
.day { margin: 12px 0 2px; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.card { display: grid; grid-template-columns: 84px 1fr; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px; cursor: pointer; position: relative; }
.card img, .card .noimg { width: 84px; height: 84px; object-fit: cover; border-radius: 10px; background: var(--soft); display: grid; place-items: center; font-size: 1.6rem; }
.card .meta { color: var(--muted); font-size: .9rem; }
.card .pills { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.pill { font-size: .72rem; padding: 0 5px; border-radius: 999px; background: var(--soft); color: var(--ink); }
.pill.place { background: var(--card); border: 1px solid var(--line); color: var(--muted); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pill.k-ecstatic-dance { background: #f6d9a8; color: #4a2f05; } .pill.k-contact-improv { background: #bfe6da; color: #0f3d31; } .pill.k-ci-adjacent { background: #cfe3f5; color: #14395c; } .pill.k-somatic { background: #f5d0dc; color: #5a1830; } .pill.k-soft-acrobatics { background: #d9d4f5; color: #2d2560; }
.badge { position: absolute; top: -6px; right: 10px; background: var(--new); color: var(--on-color); font-size: .7rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; }
.fab { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 999px; padding: 14px 20px; font-size: 1rem; font-weight: 600; box-shadow: 0 6px 20px rgba(0,0,0,.25); cursor: pointer; z-index: 3; }
dialog { border: 0; padding: 0; background: transparent; max-width: 100vw; width: 100%; margin: auto auto 0; }
dialog:focus { outline: none; }
dialog::backdrop { background: rgba(0,0,0,.45); }
.sheet { background: var(--card); color: var(--ink); border-radius: 18px 18px 0 0; padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); max-height: 92vh; overflow: auto; width: 100%; }
@media (min-width: 640px) { dialog { margin: auto; max-width: 560px; } .sheet { border-radius: 18px; } body { max-width: 720px; margin: 0 auto; } #circle-dialog { max-width: 980px; } #circle-dialog .sheet { max-height: 94vh; } }
label { display: block; font-size: .85rem; color: var(--muted); margin: 10px 0; }
input, textarea { display: block; width: 100%; margin-top: 4px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); font: inherit; }
label.missing input, label.missing textarea, fieldset.missing { border-color: var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 30%, transparent); }
label.missing::after { content: " · couldn't read this, please fill it in"; color: var(--accent); }
/* In the narrow date/time pairs the words got in the way: the orange outline alone marks the field there. */
.two label.missing::after { content: none; }
label.missing.soft::after { content: ""; } /* (the orange outline is enough - Elo, 0.4.20) */
fieldset { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; margin: 10px 0; } legend { font-size: .85rem; color: var(--muted); padding: 0 4px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
button { font: inherit; cursor: pointer; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--ink); padding: 10px 14px; }
button.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 600; }
button.ghost { background: transparent; } button.small { padding: 6px 10px; font-size: .85rem; }
button:disabled { opacity: .5; cursor: default; }
.big-btn { display: block; text-align: center; padding: 18px; border: 2px dashed var(--line); border-radius: 14px; font-size: 1.05rem; color: var(--ink); cursor: pointer; margin: 8px 0; }
.or { text-align: center; color: var(--muted); font-size: .85rem; margin: 6px 0; }
.link-row { display: flex; gap: 8px; } .link-row input { margin: 0; flex: 1; }
.note { background: var(--soft); border-radius: 10px; padding: 10px 12px; font-size: .9rem; }
.draft-picture { max-height: 220px; width: 100%; object-fit: contain; border-radius: 10px; background: var(--soft); margin: 6px 0; }
.event img.hero { width: 100%; max-height: 320px; object-fit: contain; border-radius: 12px; background: var(--soft); margin-bottom: 10px; }
.event .line { display: flex; gap: 8px; margin: 6px 0; } .event .line .ico { width: 1.5em; text-align: center; }
.event .desc { white-space: pre-wrap; margin-top: 10px; }
/* Body text on an event: softer than the titles, so long descriptions don't tire the eyes in the dark (Elo, 0.4.81) */
.event .line, .event .desc { color: var(--body); }
.event .desc { font-weight: 400; line-height: 1.55; }
.toast { position: fixed; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 999px; font-size: .95rem; z-index: 5; box-shadow: 0 6px 20px rgba(0,0,0,.3); max-width: 90vw; }
.empty { text-align: center; padding: 40px 16px; color: var(--muted); }
a { color: var(--accent); }

/* Recording the announcements */
.record-btn { border-style: solid; border-color: var(--accent); }
.big-btn.small-btn { padding: 12px; font-size: .95rem; }
.rec-wrap { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 0 8px; }
.rec-button { width: 88px; height: 88px; border-radius: 50%; border: 3px solid var(--danger); background: var(--card); display: grid; place-items: center; padding: 0; cursor: pointer; transition: transform .15s; }
.rec-button:active { transform: scale(.95); }
.rec-dot { width: 54px; height: 54px; border-radius: 50%; background: var(--danger); transition: border-radius .2s, width .2s, height .2s; }
.rec-button.on .rec-dot { width: 34px; height: 34px; border-radius: 6px; animation: rec-pulse 1.4s ease-in-out infinite; }
@keyframes rec-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
.rec-time { font-size: 1.6rem; font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.banner { margin: 4px 16px 6px; background: var(--soft); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; cursor: pointer; }
.banner .pill { background: var(--accent); color: var(--accent-ink); }
.heard { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin: 8px 0; }
.heard.done { opacity: .55; }
.heard h3 { font-size: 1rem; margin: 0 0 2px; }
.heard .meta { color: var(--muted); font-size: .9rem; }
.heard .quote { font-size: .88rem; color: var(--muted); font-style: italic; margin: 6px 0; border-left: 3px solid var(--line); padding-left: 8px; }
.heard .status { display: inline-block; font-size: .75rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; margin: 4px 0; }
.status.ready { background: color-mix(in srgb, var(--new) 22%, transparent); color: var(--new); }
.status.needs { background: color-mix(in srgb, var(--accent) 22%, transparent); color: var(--accent); }
.status.duplicate, .status.maybe-duplicate { background: var(--soft); color: var(--muted); }
.status.added { background: var(--new); color: var(--on-color); } .status.skipped { background: var(--soft); color: var(--muted); }
.heard .actions { justify-content: flex-start; margin-top: 8px; flex-wrap: wrap; }
.heard .actions button { padding: 7px 11px; font-size: .9rem; }
.transcript { margin-top: 12px; } .transcript summary { color: var(--muted); font-size: .9rem; cursor: pointer; }
.transcript .desc { max-height: 240px; overflow: auto; margin-top: 6px; color: var(--muted); }
.tools .chip.tool { border-style: solid; color: var(--ink); background: var(--soft); }
.tools .chip.tool.on { background: var(--new); color: var(--on-color); border-color: var(--new); }
.steps { padding-left: 18px; margin: 8px 0 12px; } .steps li { margin: 6px 0; } .steps .ico { margin-right: 6px; }
.qr { display: block; width: 220px; height: 220px; margin: 10px auto; background: #fff; border-radius: 12px; padding: 8px; }
a.big-btn { text-decoration: none; }
.flyer-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.flyer-row .big-btn { margin: 8px 0; padding: 16px 10px; font-size: 1rem; }
.remind { margin-top: 10px; }

.notify-how label.opt { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; padding: 8px 4px; margin: 0; cursor: pointer; font-size: 1rem; color: var(--ink); }
.notify-how label.opt input { width: 20px; height: 20px; margin: 2px 0 0; padding: 0; accent-color: var(--accent); }
.notify-how label.opt b { display: block; }
.notify-how p { margin: 6px 4px 2px; }

/* iPhone date and time fields have a width of their own that pushed them over their neighbour: let grid columns shrink,
   keep fields inside them, and line the text up with the others. */
.two > * { min-width: 0; }
input, textarea { min-width: 0; max-width: 100%; }
/* (radio buttons and tick boxes never shrink: in a row with long text the min-width: 0 above squashed them to a dot) */
input[type=radio], input[type=checkbox] { flex: none; min-width: 1em; min-height: 1em; }
input[type=date], input[type=time] { -webkit-appearance: none; appearance: none; min-height: 44px; text-align: left; }
input[type=date]::-webkit-date-and-time-value, input[type=time]::-webkit-date-and-time-value { text-align: left; margin: 0; }

.near-row { display: flex; flex-direction: column; gap: 2px; background: var(--soft); border-radius: 12px; padding: 8px 12px; }
.near-row label { margin: 0; color: var(--ink); font-size: .9rem; }
/* The distance slider (0.4.30: easier to grab): a 44px-tall touch area, a big thumb, a track that fills up to it. */
/* The bar keeps clear of the phone's edges (0.4.65): at the very edge a touch is the phone's own back-swipe, not ours, and the
   thumb at either end was hard to catch. (Its touch-action stays as 0.4.63 set it below: the page moves it by touch itself.) */
.near-row input[type=range] { -webkit-appearance: none; appearance: none; display: block; width: calc(100% - 28px); height: 44px; margin: 0 14px; padding: 0; border: 0; background: transparent; cursor: pointer; --fill: 50%; }
.near-row input[type=range]:focus { outline: none; }
.near-row input[type=range]::-webkit-slider-runnable-track { height: 8px; border-radius: 4px; background: linear-gradient(to right, var(--accent) var(--fill), var(--line) var(--fill)); }
.near-row input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; margin-top: -11px; border-radius: 50%; background: var(--card); border: 3px solid var(--accent); box-shadow: 0 1px 6px rgba(0,0,0,.25); }
.near-row input[type=range]::-moz-range-track { height: 8px; border-radius: 4px; background: var(--line); }
.near-row input[type=range]::-moz-range-progress { height: 8px; border-radius: 4px; background: var(--accent); }
.near-row input[type=range]::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: var(--card); border: 3px solid var(--accent); box-shadow: 0 1px 6px rgba(0,0,0,.25); }
.near-row input[type=range]:focus-visible::-webkit-slider-thumb { outline: 2px solid var(--ink); outline-offset: 2px; }
/* The ⓘ before "Within", and its pop-up */
.near-head { display: flex; align-items: center; gap: 8px; }
.info-i { flex: none; width: 22px; height: 22px; padding: 0; border-radius: 50%; border: 1.5px solid var(--muted); background: transparent; color: var(--muted); font: italic 700 .8rem/1 Georgia, serif; display: grid; place-items: center; cursor: pointer; touch-action: manipulation; position: relative; }
.info-i::after { content: ''; position: absolute; inset: -11px; } /* (a 44px touch area around the little circle) */
.info-i[aria-expanded="true"] { background: var(--ink); color: var(--card); border-color: var(--ink); }
.info-pop { background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; margin-top: 6px; font-size: .85rem; box-shadow: 0 4px 14px rgba(0,0,0,.15); }

.hosts-field { margin: 10px 0; } .hosts-field > label { margin: 0 0 4px; }
.host-box { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); padding: 6px 8px; }
.host-box #host-pills { display: contents; }
.host-box input { flex: 1; min-width: 8em; border: 0; background: transparent; margin: 0; padding: 6px 4px; }
.host-box input:focus { outline: none; }
.host-box:focus-within { border-color: var(--accent); }
.pill.host { background: var(--ink); color: var(--bg); font-size: .85rem; padding: 1px 7px; text-decoration: none; display: inline-block; }
.pill.host.plain { background: var(--soft); color: var(--ink); }
.pill.host button { background: none; border: 0; color: inherit; opacity: .7; margin-left: 4px; padding: 0; cursor: pointer; font: inherit; }
.hosts-line { display: flex; flex-wrap: wrap; gap: 6px; }

.near-now { padding: 0 16px; }
.tools .chip.tool.near { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 600; }
.tools .chip.tool.near:disabled { opacity: .7; }
.near-now:has(.near-on:not([hidden])) { padding: 0 16px 6px; }
.near-on { font-size: .9rem; color: var(--muted); }
/* The bottom button: save the picks */
.bottom-bar { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; padding: 18px 16px 6px; }
.bottom-bar .chip { padding: 7px 13px; font-size: .95rem; }
.toast.big { font-size: 1.05rem; padding: 14px 20px; }

[data-studio-hidden] { display: none !important; }
/* Lines and spaces the Studio can put between sections (public/layout.js) */
.studio-divider { border: 0; border-top: 1px solid var(--line); margin: 10px 16px; }
.studio-divider.thick { border-top-width: 3px; } .studio-divider.accent { border-top-color: var(--accent); }
.studio-spacer { height: 16px; } .studio-spacer.tall { height: 40px; }
.verify { display: flex; align-items: center; gap: 10px; margin: 6px 0 4px; }
.verify button.pinned { border-color: var(--new); color: var(--new); }
.actions.tight { margin-top: 8px; }
.tiny { font-size: .72rem; margin-top: 6px; }
.pin-exact { color: var(--new); } .pin-rough { color: var(--accent); }
.empty .other-kinds { margin-top: 14px; color: var(--ink); background: var(--soft); border-radius: 12px; padding: 10px 12px; font-size: .95rem; }

.tiny { font-size: .75rem; }

/* The developer version of the page (a device with the admin key): purple instead of the usual amber, and a toolbar. */
body.dev { --accent: #8b5cf6; --accent-ink: #fff; padding-bottom: 150px; }
body.dev .top { border-bottom: 3px solid #8b5cf6; }
body.dev .version { color: #8b5cf6; font-weight: 700; }
body.dev .fab { bottom: calc(76px + env(safe-area-inset-bottom)); }
.devbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; display: flex; gap: 8px; align-items: center; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: #2a1a5e; color: #fff; box-shadow: 0 -4px 16px rgba(0,0,0,.35); }
.devbar .dev-tag { font-weight: 800; letter-spacing: .08em; font-size: .8rem; background: #8b5cf6; color: #fff; border-radius: 6px; padding: 3px 8px; }
.devbar button { border: 1px solid #8b5cf6; background: transparent; color: #fff; border-radius: 999px; padding: 8px 14px; font: inherit; font-size: .9rem; cursor: pointer; }
.devbar button.on { background: #8b5cf6; }
.devbar button.ghost { margin-left: auto; border-color: #5b4a9a; color: #cfc6ee; }
.dev-note { background: #ede9fe; color: #2a1a5e; border-radius: 10px; padding: 8px 12px; font-size: .85rem; margin: 6px 0; }
@media (prefers-color-scheme: dark) { .dev-note { background: #2a1a5e; color: #ede9fe; } }
.pill.dev { background: #8b5cf6; color: #fff; }
/* An event missing something people can fill in (0.4.10): a red corner tab with a ? on the card */
.card .gap-tab { position: absolute; top: -1px; right: 14px; width: 18px; height: 24px; background: var(--danger); color: var(--on-color); font-size: .8rem; font-weight: 700; text-align: center; line-height: 22px; clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 78%, 0 100%); }
.card.has-badge .gap-tab { right: 60px; }
.banner { display: flex; flex-direction: column; gap: 6px; background: color-mix(in srgb, var(--danger) 10%, var(--card)); border: 1px solid color-mix(in srgb, var(--danger) 40%, transparent); border-radius: 12px; padding: 10px 12px; margin: 0 0 12px; font-size: .92rem; }
.banner .row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; width: 100%; }
.banner input[type=time] { width: auto; margin: 0; padding: 6px 8px; }
.by { color: var(--muted); font-size: .85rem; }

/* No double-tap zoom on things you tap (Elo, 0.4.13: seven taps on the version zoomed the page in and out). Pinch zoom
   still works everywhere, for anyone who needs the text bigger. */
button, a, label, input, select, textarea, .chip, .card, .version { touch-action: manipulation; }
.version { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; cursor: default; }
/* Already on the map? (0.4.12) */
.dupe { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin: 8px 0; background: var(--bg); }
.dupe .why { color: var(--muted); font-size: .85rem; } .dupe .adds { font-size: .9rem; margin: 6px 0; }
.dupe .actions { justify-content: flex-start; margin-top: 8px; }
/* The history at the bottom of an event */
.history { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 10px; }
.history h4 { margin: 0 0 6px; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.history li { font-size: .85rem; color: var(--muted); margin: 4px 0; } .history li b { color: var(--ink); font-weight: 500; }
.history ul { padding-left: 16px; margin: 0; }

/* The ✕ that closes a sheet without doing anything, top right (Elo, 0.4.16). */
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; position: sticky; top: -18px; background: var(--card); padding-top: 4px; z-index: 2; }
.sheet-head h2 { margin: 0; }
.sheet-x { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--soft); color: var(--ink); font-size: 1.1rem; line-height: 1; cursor: pointer; }

/* The picture cropper (public/crop.js) */
.crop-stage { position: relative; display: inline-block; max-width: 100%; margin: 6px 0; line-height: 0; touch-action: none; overflow: hidden; border-radius: 8px; }
.crop-stage img { display: block; max-width: 100%; max-height: 52vh; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.crop-box { position: absolute; border: 2px solid #fff; box-shadow: 0 0 0 9999px rgba(0, 0, 0, .55); cursor: move; touch-action: none; box-sizing: border-box; }
.crop-box i { position: absolute; width: 34px; height: 34px; background: transparent; touch-action: none; }
.crop-box i::after { content: ""; position: absolute; width: 14px; height: 14px; background: var(--accent); border: 2px solid #fff; border-radius: 50%; }
.crop-box i[data-h="nw"] { left: -2px; top: -2px; cursor: nwse-resize; } .crop-box i[data-h="nw"]::after { left: 4px; top: 4px; }
.crop-box i[data-h="ne"] { right: -2px; top: -2px; cursor: nesw-resize; } .crop-box i[data-h="ne"]::after { right: 4px; top: 4px; }
.crop-box i[data-h="sw"] { left: -2px; bottom: -2px; cursor: nesw-resize; } .crop-box i[data-h="sw"]::after { left: 4px; bottom: 4px; }
.crop-box i[data-h="se"] { right: -2px; bottom: -2px; cursor: nwse-resize; } .crop-box i[data-h="se"]::after { right: 4px; bottom: 4px; }
.crop-ratios { margin: 6px 0; }

.pic-tools { margin: 4px 0 8px; }

/* The ✕ on an event, top right, floating over the picture and staying there as it scrolls (Elo, 0.4.20). */
.sheet-x-bar { position: sticky; top: -18px; height: 0; display: flex; justify-content: flex-end; z-index: 3; }
.sheet-x-bar .sheet-x { margin: 0; box-shadow: 0 2px 10px rgba(0,0,0,.25); }
.sheet-x:focus:not(:focus-visible) { outline: none; }

/* Scrolling and zoom (Elo, 0.4.20: zooming in made scrolling stick).
   - Fields at 16px: an iPhone zooms the page in whenever a smaller field is tapped, and leaves it zoomed.
   - While a sheet is open the page behind it doesn't scroll, and the sheet's own scrolling doesn't spill over to it.
   - Sheets size to the screen as it really is (dvh: with the browser's bars and the keyboard), so their end is reachable.
   Pinch zoom stays on, for people who need bigger text. */
input, textarea, select { font-size: 16px; }
body:has(dialog[open]) { overflow: hidden; }
.sheet { max-height: 92dvh; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
@supports not (height: 1dvh) { .sheet { max-height: 92vh; } }

/* The refresh button next to the version (Elo, 0.4.21). */
.refresh { border: 0; background: none; color: var(--muted); font-size: 1rem; line-height: 1; padding: 8px 6px; margin: -8px -6px -8px 0; cursor: pointer; touch-action: manipulation; }
.refresh.spin { animation: cg-spin .8s linear infinite; }
@keyframes cg-spin { to { transform: rotate(360deg); } }
.differs { margin: 6px 0; } .differ { border-top: 1px dashed var(--line); padding-top: 6px; margin-top: 6px; }
.differ-field { font-size: .85rem; color: var(--muted); margin-bottom: 4px; }
.choice { display: flex; gap: 8px; align-items: flex-start; margin: 4px 0; font-size: .9rem; color: var(--ink); } .choice input { margin-top: 3px; width: auto; }
.pill.host.mine { cursor: pointer; border: 1px solid var(--new); } .pill.host.mine .x { opacity: .7; margin-left: 2px; }

/* The event sheet: room between the kind pills and the banner under them */
.event .pills { margin-bottom: 4px; }
.event .banner { margin-top: 16px; }
/* The crop icon over the picture: a square with only its corners, bottom right, faded gray */
.hero-wrap { position: relative; margin-bottom: 10px; }
.event .hero-wrap img.hero { display: block; margin-bottom: 0; }
.crop-fab { position: absolute; right: 8px; bottom: 8px; width: 36px; height: 36px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 10px; background: rgba(0, 0, 0, .28); color: rgba(232, 232, 232, .85); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.crop-fab:hover, .crop-fab:active { background: rgba(0, 0, 0, .45); color: #fff; }
.crop-fab:disabled { opacity: .5; }

/* Replace the event's picture (hosts and facilitators), bottom left, faded like the crop icon (Elo, 0.4.24). */
.replace-fab { position: absolute; left: 8px; bottom: 8px; height: 36px; padding: 0 12px; border: 0; border-radius: 10px; background: rgba(0, 0, 0, .28); color: rgba(232, 232, 232, .9); font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.replace-fab:hover, .replace-fab:active { background: rgba(0, 0, 0, .45); color: #fff; }
.replace-fab:disabled { opacity: .5; }
.no-hero { margin-bottom: 10px; }
/* Privacy, terms and text sign-up pages */
.legal { max-width: 640px; margin: 0 auto; padding: 16px 16px 40px; }
.legal h1 { font-size: 1.5rem; margin: 8px 0; } .legal h2 { font-size: 1.05rem; margin: 22px 0 6px; }
.legal ul { padding-left: 20px; } .legal li { margin: 6px 0; }
.legal .sms-form { display: flex; flex-direction: column; gap: 12px; margin: 16px 0; }
.legal .consent, #verify-dialog .consent { display: flex; gap: 10px; align-items: flex-start; color: var(--ink); font-size: .9rem; }
.legal .consent input, #verify-dialog .consent input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; }
.legal-links { text-align: center; margin: 24px 0 8px; font-size: .8rem; color: var(--muted); }
.legal-links a { color: var(--muted); }
body.legal-page { padding-bottom: 24px; }

/* Several pictures being read together (0.4.28) */
.reading-strip { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 10px; }
.reading-strip img { height: 140px; width: auto; border-radius: 10px; flex: none; background: var(--soft); }

/* The kinds of an event, with the edit button beside them (event sheet) */
.kinds-row { display: flex; align-items: flex-start; gap: 8px; }
.kinds-row .pills { flex: 1; }
.kinds-edit { flex: none; width: 28px; height: 28px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--muted); font-size: .9rem; line-height: 1; cursor: pointer; }
.kinds-edit:hover { color: var(--ink); border-color: var(--muted); }
.kinds-editor { width: 100%; } .kinds-editor .actions { margin-top: 8px; }

/* The Filters bar at the top: an arrow and FILTERS, with a line under it; the kinds, areas and distance sit beneath it and fold away */
.filters-head { display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); padding: 4px 0 8px; margin: 0 0 2px; }
.filters-bar { border-radius: 0; min-height: 44px; display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; background: none; border: 0; padding: 0; margin: 0; font: inherit; color: var(--accent); cursor: pointer; text-align: left; -webkit-tap-highlight-color: transparent; }
.filters-arrow { flex: none; width: 22px; height: 22px; transition: transform .18s; }
.profile.filters-collapsed .filters-arrow { transform: rotate(-90deg); }
.filters-title { font-weight: 700; font-size: .95rem; letter-spacing: .09em; }
.filters-sum { flex: 1; min-width: 0; text-align: right; color: var(--muted); font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.profile:not(.filters-collapsed) .filters-sum { display: none; }
.profile.filters-collapsed [data-section="kinds"], .profile.filters-collapsed [data-section="areas"], .profile.filters-collapsed [data-section="distance"] { display: none !important; }

/* The pop-up messages (Elo, 0.4.37): centred text, more room inside, rounded corners rather than a pill (a pill
   goes lumpy over several lines), and kept off the screen's edges. */
.toast { text-align: center; padding: 16px 24px; border-radius: 18px; width: max-content; max-width: min(420px, calc(100vw - 48px)); box-sizing: border-box; line-height: 1.4; }
.toast.big { padding: 18px 26px; }

/* Suggestions under the area box as you type (0.4.44) */
.suggest { margin: 6px 0 4px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--card); }
.suggest-row { display: block; width: 100%; text-align: left; padding: 12px 14px; border: 0; border-top: 1px solid var(--line); background: none; color: var(--ink); font: inherit; font-size: .95rem; cursor: pointer; touch-action: manipulation; }
.suggest-row:first-child { border-top: 0; }
.suggest-row.search { color: var(--muted); }
.suggest-row:active { background: var(--soft); }

/* A working button: faded, with a spinner and "Please wait…" (verify, and anywhere else it's wanted) */
@keyframes cg-spin { to { transform: rotate(360deg); } }
.btn-spin { display: inline-block; width: 1em; height: 1em; margin-right: .5em; vertical-align: -.15em; border: .15em solid currentColor; border-right-color: transparent; border-radius: 50%; animation: cg-spin .8s linear infinite; }
@media (prefers-reduced-motion: reduce) { .btn-spin { animation-duration: 2.4s; } }
button.busy, button.busy:disabled { opacity: .75; cursor: progress; }
#verify-dialog .actions button:active:not(:disabled), #notice-dialog .actions button:active { transform: scale(.96); }
.notice-sheet h2 { margin-bottom: 6px; } .notice-sheet p { margin: 0 0 4px; }

/* The top bar stays at the top; once verified, the pin turns into a profile icon (0.5.1) */
.pin-btn { all: unset; display: inline-grid; place-items: center; width: 1.6em; height: 1.6em; vertical-align: middle; border-radius: 50%; }
.pin-btn.verified { cursor: pointer; border: 1.5px solid var(--accent); color: var(--accent); -webkit-tap-highlight-color: transparent; }
.pin-btn.verified:active { transform: scale(.94); }
.pin-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pin-btn svg { width: 1.15em; height: 1.15em; }
.pin-btn.has-photo { border: 0; width: 1.7em; height: 1.7em; overflow: hidden; }
.pin-btn .avatar-sm { width: 1.7em; height: 1.7em; border-radius: 50%; object-fit: cover; display: block; }
.pin-btn.has-photo.verified { border: 1.5px solid var(--accent); }
/* the profile sheet */
.profile-sheet h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin: 20px 0 8px; }
.avatar-row { display: flex; align-items: center; gap: 14px; margin: 6px 0 10px; }
.avatar { width: 84px; height: 84px; border-radius: 50%; background: var(--soft); color: var(--muted); display: grid; place-items: center; overflow: hidden; flex: none; border: 1px solid var(--line); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.photo-pick { cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.profile-phone { margin: 8px 0; } .profile-phone #profile-phone { font-size: 1.1rem; font-weight: 600; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.stat { background: var(--soft); border-radius: 12px; padding: 10px 12px; } .stat b { display: block; font-size: 1.4rem; line-height: 1.1; } .stat span { font-size: .8rem; color: var(--muted); }
.activity { list-style: none; margin: 0; padding: 0; } .activity li { padding: 7px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.activity li .when { color: var(--muted); font-size: .8rem; display: block; } .activity a { color: var(--ink); font-weight: 600; text-decoration: none; border-bottom: 1px dotted var(--muted); cursor: pointer; }


/* A line between the kinds of event and the areas */
.filters-rule { border: 0; border-top: 1px solid var(--line); margin: 6px 0 4px; width: 100%; }
.profile.filters-collapsed .filters-rule { display: none; }
/* The distance slider: no special touch-action (0.4.63). On iPhone, Safari kept the slider's touch area where it was before
   the page scrolled, so once scrolled the slider couldn't be touched; the page now works the slider out itself (app.js). */
#near-km { touch-action: auto; }

/* Single day event: the checkbox hides the end date, leaving only the end time */
.check-row { display: flex; align-items: center; gap: 10px; color: var(--ink); font-size: .95rem; margin: 6px 0; }
.check-row input { width: 22px; height: 22px; margin: 0; flex: none; }
#end-row.single #end-date-label { display: none; }
.working::before { content: ""; display: inline-block; width: .7em; height: .7em; margin-right: 6px; border: 2px solid var(--muted); border-right-color: transparent; border-radius: 50%; animation: cg-spin .9s linear infinite; vertical-align: -1px; }

/* ✎ after the host pills, for hosts and facilitators (0.4.60) */
.host-edit { border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 999px; width: 30px; height: 26px; padding: 0; font-size: .9rem; cursor: pointer; vertical-align: middle; touch-action: manipulation; }

/* The person icon, top left (0.4.71): not verified yet, a small gold dot asks for a tap; verified, the photo. */
.pin-btn { cursor: pointer; position: relative; color: var(--ink); -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.pin-btn.to-verify { border: 1.5px solid var(--line); }
.pin-btn.to-verify::after { content: ''; position: absolute; top: -1px; right: -1px; width: .42em; height: .42em; border-radius: 50%; background: var(--accent); border: 2px solid var(--bg); }
.pin-btn.to-verify:active { transform: scale(.94); }

/* Past events that are still shown (ended within 48 hours): a grey title, and a faded picture under a "Past Event" overlay */
.card .thumb { position: relative; width: 84px; height: 84px; }
.card .thumb img, .card .thumb .noimg { display: grid; }
.card.past h3 { color: var(--muted); font-weight: 600; }
.card.past .thumb img, .card.past .thumb .noimg { opacity: .55; filter: grayscale(.4); }
.past-overlay { position: absolute; inset: 0; border-radius: 10px; display: grid; place-items: center; text-align: center; background: color-mix(in srgb, var(--card) 40%, transparent); color: var(--ink); font-size: .64rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; line-height: 1.2; pointer-events: none; }
.pill.past { background: var(--soft); color: var(--muted); }

/* Going / Interested (0.4.75) */
.attend { display: flex; gap: 8px; margin: 12px 0 4px; }
.att { flex: 1; padding: 10px 12px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; touch-action: manipulation; }
.att.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
#att-going.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.pill.att-mark { background: var(--ink); color: var(--bg); }
.pill.att-mark.going { background: var(--accent); color: var(--accent-ink); }

/* Info | Questions, folder tabs on an event (0.4.76): the chosen one opens into the page below it */
.ev-tabs { display: flex; gap: 6px; margin: 14px 0 0; padding: 0 4px; border-bottom: 2px solid var(--accent); }
.ev-tab { position: relative; top: 2px; padding: 8px 18px; border: 2px solid transparent; border-bottom: 0; border-radius: 12px 12px 0 0; background: none; color: var(--muted); font: inherit; font-weight: 600; cursor: pointer; touch-action: manipulation; }
.ev-tab.on { border-color: var(--accent); background: var(--card); color: var(--accent); }
.ev-tab.on::after { content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--card); }
.q-count { font-weight: 500; }
.tab-pane { padding-top: 10px; }
/* the questions: a box to ask, then threads like a little chat (hosts' messages to the right, in the accent) */
.q-ask textarea { margin: 0; }
.q-ask-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 6px 0 12px; }
.q-thread { border: 1px solid var(--line); border-radius: 14px; padding: 10px; margin: 10px 0; display: flex; flex-direction: column; gap: 6px; }
.q-thread.lit { border-color: var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 25%, transparent); }
.bubble { max-width: 88%; align-self: flex-start; background: var(--soft); border-radius: 14px 14px 14px 4px; padding: 8px 12px; }
.bubble.host { align-self: flex-end; background: color-mix(in srgb, var(--accent) 18%, var(--card)); border-radius: 14px 14px 4px 14px; }
.bubble .who { font-size: .75rem; color: var(--muted); margin-bottom: 2px; }
.bubble .said { white-space: normal; overflow-wrap: anywhere; }
.q-reply { display: flex; gap: 6px; margin-top: 2px; }
.q-reply input { margin: 0; flex: 1; }
.empty-q { text-align: center; padding: 14px 0; }
/* the pills on an event: more room inside and between (Elo, 0.4.76) */
.event .pills { display: flex; flex-wrap: wrap; gap: 8px; }
.event .pill { padding: 4px 11px; font-size: .8rem; }
.event .pill.host { padding: 5px 12px; }
.event .hosts-line { display: inline-flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* Add yourself: a plain dashed pill at the end of the host names (once someone has claimed the event) */
.pill.add-self { all: unset; box-sizing: border-box; display: inline-flex; align-items: center; padding: 4px 14px; border-radius: 999px; border: 1px dashed var(--muted); background: transparent; color: var(--ink); font-size: .85rem; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.pill.add-self:disabled { opacity: .5; }
.hosts-line { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }

/* The host names, under a label instead of a hands icon (Elo, 0.4.79) */
.line.hosts-block { display: block; }
.hosts-label { display: block; font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 5px; }

/* The log of past events */
.archive-list { margin-top: 10px; }
.archive-row { display: grid; grid-template-columns: 62px 1fr; gap: 12px; padding: 10px 2px; border-bottom: 1px solid var(--line); cursor: pointer; }
.archive-row .when { font-size: .78rem; color: var(--muted); text-align: center; line-height: 1.2; }
.archive-row .when b { display: block; font-size: 1.2rem; color: var(--ink); }
.archive-row h3 { margin: 0 0 2px; font-size: 1rem; } .archive-row .sub { font-size: .85rem; color: var(--muted); }
.archive-row .went { font-size: .8rem; color: var(--muted); }
.archive-empty { text-align: center; color: var(--muted); padding: 24px 0; }
.attendees { font-size: .85rem; color: var(--muted); }
.devbar #dev-log { margin-left: 0; }

/* Report a wrong reading: small, bottom left of the add-event form */
.form-actions { align-items: center; }
.report-btn { margin-right: auto; color: var(--muted); border-style: dashed; }
.report-btn:disabled { opacity: .6; }

/* The event page (0.4.88): going on the date's line, far right; thin bars between the hosts and the address, and the link and the description */
.event .when-line { align-items: baseline; } .event .when-text { flex: 1; min-width: 0; }
.event .place-line { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 10px; }
.event .desc { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px; }
/* The Circle (0.4.88) */
.circle-head { display: flex; align-items: center; gap: 10px; } .circle-head .mark { font-size: 1.6rem; }
.circle-state { color: var(--muted); font-size: .9rem; margin: 2px 0 10px; }
.circle-join { display: block; width: 100%; padding: 16px; border-radius: 14px; border: 0; background: var(--accent); color: var(--accent-ink); font: inherit; font-size: 1.1rem; font-weight: 600; cursor: pointer; margin: 10px 0; }
.circle-section { margin-top: 16px; } .circle-section h3 { font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 8px; display: flex; justify-content: space-between; align-items: center; }
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.photo-grid .ph { position: relative; aspect-ratio: 1; background: var(--soft); border-radius: 8px; overflow: hidden; }
.photo-grid .ph img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: zoom-in; }
.photo-grid .ph .rm { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(0,0,0,.55); color: #fff; padding: 0; font-size: .9rem; }
.photo-view { background: #000; } .photo-view img { max-width: 100vw; max-height: 100vh; display: block; margin: auto; }
.people { display: flex; flex-direction: column; gap: 8px; }
.person { display: grid; grid-template-columns: 40px 1fr; gap: 10px; align-items: start; }
.person .face { width: 40px; height: 40px; border-radius: 50%; background: var(--soft); display: grid; place-items: center; overflow: hidden; font-size: 1.1rem; } .person .face img { width: 100%; height: 100%; object-fit: cover; }
.person .pname { font-weight: 600; } .person .card-line { font-size: .88rem; color: var(--muted); } .person .card-line b { color: var(--ink); font-weight: 500; }
.circle-host { background: var(--soft); border-radius: 12px; padding: 10px 12px; margin: 8px 0; }
.circle-host .big-code { font-family: ui-monospace, Menlo, monospace; font-size: 1.5rem; letter-spacing: .14em; margin: 4px 0; }
.circle-host .row-btns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.circle-host details { margin-top: 8px; } .circle-host summary { cursor: pointer; color: var(--muted); font-size: .9rem; }
.circle-host .wifi { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 6px; } .circle-host .wifi label { margin: 0; }
.coming { color: var(--muted); font-size: .9rem; border: 1px dashed var(--line); border-radius: 10px; padding: 8px 10px; }

/* The room (0.4.90) */
.room-list { display: flex; flex-direction: column; gap: 8px; max-height: 46vh; overflow: auto; padding: 4px 2px; }
.pinned { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
/* Messages as in a phone's messages app (Elo's reference, 0.4.94): others on the left with picture and name, yours on
   the right in the accent; a hover shows the time; the rail of replies curves in from under the sender. */
.rmsg { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 8px; align-items: end; max-width: 92%; }
.rmsg.mine { grid-template-columns: minmax(0, 1fr); margin-left: auto; justify-items: end; }
.rmsg .face { width: 30px; height: 30px; border-radius: 50%; background: var(--soft); display: grid; place-items: center; overflow: hidden; font-size: .95rem; align-self: end; } .rmsg .face img { width: 100%; height: 100%; object-fit: cover; }
.rmsg .bubble-col { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; } .rmsg.mine .bubble-col { align-items: flex-end; }
.rmsg .who { font-size: .78rem; color: var(--muted); margin: 0 0 2px 10px; }
.rmsg .bubble { position: relative; background: var(--soft); border-radius: 18px; padding: 8px 12px; min-width: 0; max-width: 100%; }
.rmsg:not(.mine) .bubble { border-bottom-left-radius: 6px; } .rmsg.mine .bubble { background: var(--accent); color: var(--accent-ink); border-bottom-right-radius: 6px; }
.rmsg.ann .bubble { background: color-mix(in srgb, var(--new) 16%, var(--card)); color: var(--ink); border: 1px solid color-mix(in srgb, var(--new) 50%, transparent); }
.rmsg .rm-msg { position: absolute; top: -8px; right: -8px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: var(--card); color: var(--muted); box-shadow: 0 1px 4px rgba(0,0,0,.2); padding: 0; font-size: .75rem; opacity: 0; transition: opacity .15s; }
.rmsg:hover .rm-msg, .rmsg:focus-within .rm-msg { opacity: 1; } @media (hover: none) { .rmsg .rm-msg { opacity: .7; } }
.rmsg .said { white-space: pre-wrap; word-break: break-word; }
.when-mark { text-align: center; color: var(--muted); font-size: .78rem; margin: 10px 0 6px; }
.room-form textarea { margin-top: 8px; } .room-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 6px; } .room-row > span, .room-row > label { flex: 1 1 auto; min-width: 0; margin: 0; color: var(--ink); } .room-row > button { flex: 0 0 auto; }

/* The ring (0.4.92): shown at the top left while this device is in a circle whose room is open. A spinning gradient
   ring that doesn't quite close, after the loader Elo liked; still for people who've asked for less motion. */
.ring-btn { border: 0; background: none; padding: 0; margin: 0 8px 0 -4px; width: 30px; height: 30px; display: grid; place-items: center; cursor: pointer; }
.ring { width: 26px; height: 26px; border-radius: 50%; background: conic-gradient(from 0deg, rgba(0,0,0,0) 0deg, #c4237f 40deg, #e94b7a 150deg, #f6a04d 300deg, #fbc26a 350deg, rgba(0,0,0,0) 360deg); -webkit-mask: radial-gradient(circle at center, transparent 7px, #000 7.5px); mask: radial-gradient(circle at center, transparent 7px, #000 7.5px); animation: ring-spin 1.6s linear infinite; filter: drop-shadow(0 1px 2px rgba(0,0,0,.2)); }
.ring-btn.live .ring { animation-duration: 1.1s; }
@keyframes ring-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ring { animation: none; } }
.mine-group { margin-top: 14px; } .mine-group h3 { font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 8px; }
.mine-group .card { margin-bottom: 8px; }

/* The circle's chat as a small community (0.4.93) */
.circle-settings { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 6px 0 2px; }
.chat { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--bg); min-height: 200px; }
.chat.wide { display: grid; grid-template-columns: 280px 1fr; min-height: 460px; } .chat.wide .rooms-pane { border-right: 1px solid var(--line); }
/* The rooms list, after a community in a messaging app (Elo's reference, 0.4.95) */
.community-head { display: flex; gap: 14px; align-items: center; padding: 14px 14px 12px; background: var(--soft); } .community-head img, .community-head .noimg { width: 60px; height: 60px; border-radius: 14px; object-fit: cover; background: var(--card); display: grid; place-items: center; font-size: 1.6rem; flex: none; }
.community-name { font-weight: 700; font-size: 1.2rem; line-height: 1.2; }
.rooms-list { display: flex; flex-direction: column; background: var(--card); }
.rooms-label { font-size: .95rem; font-weight: 600; color: var(--muted); padding: 14px 14px 4px; }
.room-row { display: grid; grid-template-columns: 48px 1fr; gap: 12px; align-items: center; text-align: left; padding: 10px 14px; border: 0; border-radius: 0; background: transparent; color: var(--ink); }
.room-row + .room-row .rbody { border-top: 1px solid var(--line); padding-top: 10px; margin-top: -10px; }
.room-row.on { background: var(--soft); } .room-row .ricon { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-size: 1.4rem; background: var(--soft); }
.room-row.r-announcements .ricon { background: color-mix(in srgb, var(--new) 22%, var(--card)); } .room-row.r-needs .ricon { background: color-mix(in srgb, var(--accent) 22%, var(--card)); } .room-row.r-custom .ricon { font-weight: 700; color: var(--muted); }
.room-row .rbody { min-width: 0; } .room-row .rtop { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; } .room-row .rname { font-weight: 600; font-size: 1.02rem; display: flex; align-items: center; gap: 6px; } .room-row .rtime { color: var(--muted); font-size: .8rem; flex: none; }
.room-row .rlast { color: var(--muted); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rooms-add { padding: 12px 14px 14px; background: var(--card); } .add-room { display: block; width: 100%; padding: 14px; border-radius: 999px; border: 0; background: var(--accent); color: var(--accent-ink); font: inherit; font-size: 1.05rem; font-weight: 700; cursor: pointer; }
.badge-n { background: var(--danger); color: #fff; font-size: .72rem; font-weight: 700; border-radius: 999px; padding: 0 6px; min-width: 18px; text-align: center; }
.room-pane { display: flex; flex-direction: column; min-height: 320px; }
.room-head { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-bottom: 1px solid var(--line); } .room-head .ricon { font-size: 1.2rem; } .room-head .back { border: 0; background: var(--soft); border-radius: 50%; width: 32px; height: 32px; font-size: 1.3rem; line-height: 1; padding: 0; }
.room-pane .room-list { flex: 1; max-height: 50vh; padding: 10px; } .chat.wide .room-pane .room-list { max-height: 56vh; }
.room-pane #room-compose { padding: 8px 10px 10px; border-top: 1px solid var(--line); background: var(--card); }
.thread { margin-bottom: 12px; } .thread-foot { display: flex; gap: 14px; margin: 3px 0 0 48px; } .link-btn { border: 0; background: none; color: var(--accent); padding: 2px 0; font-size: .85rem; font-weight: 600; }
.replies { position: relative; margin: 6px 0 0 14px; padding-left: 26px; display: flex; flex-direction: column; gap: 8px; }
.replies::before { content: ''; position: absolute; left: 0; top: -4px; bottom: 16px; width: 16px; border-left: 2px solid var(--line); border-bottom: 2px solid var(--line); border-bottom-left-radius: 16px; }
.reply { display: flex; flex-direction: column; } .reply .rmsg { max-width: 100%; }
.reply .helped { margin: 4px 0 0 38px; align-self: flex-start; }
.rmsg.need:not(.mine) .bubble { box-shadow: inset 3px 0 0 var(--accent); } .rmsg.met .bubble { box-shadow: inset 3px 0 0 var(--new); } .met-line { color: var(--new); font-size: .85rem; margin-top: 4px; font-weight: 600; } .rmsg.mine .met-line { color: var(--accent-ink); }
.reply-bar { display: flex; align-items: center; gap: 6px; background: var(--soft); border-radius: 8px; padding: 6px 8px; font-size: .85rem; color: var(--muted); } .reply-bar b { color: var(--ink); } .reply-bar .x { margin-left: auto; border: 0; background: none; color: var(--muted); padding: 0 4px; }
/* photos as a wall, each at its own shape (0.4.93) */
.photo-wall { columns: 3 150px; column-gap: 6px; } .photo-wall .ph { position: relative; break-inside: avoid; margin-bottom: 6px; border-radius: 8px; overflow: hidden; background: var(--soft); }
.photo-wall .ph img { width: 100%; height: auto; display: block; cursor: zoom-in; } .photo-wall .ph .rm { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(0,0,0,.55); color: #fff; padding: 0; font-size: .9rem; }
.rooms-edit { display: flex; flex-direction: column; gap: 6px; margin: 8px 0; } .room-edit { display: flex; gap: 6px; align-items: center; } .room-edit input { margin: 0; } .room-edit .x { border: 0; background: none; color: var(--muted); }

/* The developer account's test event (0.4.95) */
.devbar { flex-wrap: wrap; } .devbar button.strong { background: #8b5cf6; border-color: #b79cff; font-weight: 700; } .devbar button[hidden] { display: none; }
.test-banner { background: #2a1a5e; color: #fff; border-radius: 12px; padding: 10px 12px; margin: 8px 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.test-banner b { flex: 1 1 100%; } .test-banner button { border: 1px solid #b79cff; background: #8b5cf6; color: #fff; border-radius: 999px; padding: 8px 14px; font: inherit; font-weight: 700; cursor: pointer; }
.test-banner button.ghost { background: transparent; }
.test-banner { padding-right: 60px; }
.devices-h { margin: 14px 0 4px; font-size: 1rem; }
