/* HOUSE CHURCH (housechurch/housechurch.js): a living room in the evening, made modern. The site's color mode, whichever
   is chosen, for its surfaces and words; terracotta, with sage and honey, for its warmth; a lamp's soft glow in the
   corners. The gathering itself is the same room, lit by the lamp. */
.hc, .hc-tile-art {
  /* (its surfaces and words: the site's color mode, whichever is chosen (index.html's setSiteTheme); its own warmth:
     terracotta, sage, and honey) */
  --hc-bg: var(--bg); --hc-card: var(--bg-raised); --hc-soft: color-mix(in srgb, var(--ink) 6%, var(--bg-raised)); --hc-ink: var(--ink); --hc-muted: var(--muted); --hc-line: var(--rule);
  --hc-accent: #D46F4B; --hc-accent-2: #E79267; --hc-on-accent: #FFFFFF; --hc-sage: #7E9A82; --hc-honey: #E9AE4C; --hc-peach: color-mix(in srgb, #D46F4B 10%, var(--bg-raised));
  --hc-shadow: 0 1px 2px color-mix(in srgb, var(--ink) 5%, transparent), 0 10px 28px -14px color-mix(in srgb, var(--ink) 24%, transparent);
  /* (the drawing's: the room in the mode's own colors, warmed by the lamp) */
  --hc-wall: color-mix(in srgb, #F2C98A 16%, var(--bg-raised)); --hc-floor: color-mix(in srgb, #C9A47E 32%, var(--bg)); --hc-wood: color-mix(in srgb, #CFAE88 80%, var(--bg)); --hc-wood-d: color-mix(in srgb, var(--ink) 85%, var(--bg));
  --hc-lamp: #F2BE5C; --hc-cream: #FFFDF8; --hc-night: #33405B; --hc-sofa: #8EA591; --hc-sofa-d: #73897A; --hc-rust: #D46F4B; --hc-mustard: #E9AE4C;
}
/* (what's the same as Devotions together's, live/live.css, in House Church's colors) */
.hc { --lt-bg: var(--hc-bg); --lt-card: var(--hc-card); --lt-soft: var(--hc-soft); --lt-ink: var(--hc-ink); --lt-muted: var(--hc-muted); --lt-line: var(--hc-line); --lt-accent: var(--hc-accent);
  --lt-honey: var(--hc-honey); --lt-sage: var(--hc-sage); --lt-peach: var(--hc-peach); --lt-shadow: var(--hc-shadow); }
body.site-dark .hc, body.site-dark .hc-tile-art {
  --hc-accent: #E8865F; --hc-accent-2: #F0A27A; --hc-on-accent: #1B1A1F; --hc-sage: #9DB4A0; --hc-honey: #F0BE62; --hc-peach: color-mix(in srgb, #E8865F 14%, var(--bg-raised));
  --hc-shadow: 0 1px 2px rgba(0, 0, 0, 0.2), 0 12px 30px -14px rgba(0, 0, 0, 0.55);
  --hc-wall: color-mix(in srgb, #F2C98A 7%, var(--bg-raised)); --hc-floor: color-mix(in srgb, #C9A47E 14%, var(--bg)); --hc-wood: color-mix(in srgb, #CFAE88 55%, var(--bg)); --hc-wood-d: color-mix(in srgb, var(--bg) 70%, #000);
  --hc-cream: #EFE7DD; --hc-night: #1B2233; --hc-sofa: #74897A; --hc-sofa-d: #5F7266;
}
.hc {
  position: fixed; inset: 0; z-index: 58; display: flex; align-items: center; justify-content: center; padding: 16px;
  background: rgba(24, 22, 26, 0.42); opacity: 0; transition: opacity 0.2s ease; color: var(--hc-ink);
}
.hc.open { opacity: 1; }
.hc[hidden] { display: none; }
html.hc-open, html.hc-open body { overflow: hidden; }
.hc svg:not(.hc-art) { width: 18px; height: 18px; flex: none; }
.hc-box { position: relative; display: flex; flex-direction: column; width: min(760px, 100%); height: min(920px, 100%); overflow: hidden; border-radius: 28px; background: var(--hc-bg);
  box-shadow: 0 30px 80px -24px rgba(24, 22, 26, 0.45); transform: translateY(10px) scale(0.99); transition: transform 0.22s ease; }
.hc.open .hc-box { transform: none; }
@media (max-width: 700px) { .hc { padding: 0; } .hc-box { width: 100%; height: 100%; border-radius: 0; } }
/* (on a computer, the site's window sizes: Comfort, Wide, Full screen, from the Size button in its head (index.html's
   applyAppSize), what's in it a little larger with each, and wider) */
@media (min-width: 561px) {
  html[data-app-size="md"] .hc-box { width: min(1280px, 94vw); height: min(94vh, 100%); }
  html[data-app-size="lg"] .hc { padding: 0; }
  html[data-app-size="lg"] .hc-box { width: 100%; height: 100%; border-radius: 0; box-shadow: none; }
  html[data-app-size="md"] .hc-body, html[data-app-size="lg"] .hc-body { zoom: var(--app-zoom); }
  html[data-app-size="md"] .hc-body > *, html[data-app-size="lg"] .hc-body > * { max-width: 760px; }
}

/* the head: light, with the lamp's glow in the corner */
.hc-head { flex: none; display: flex; align-items: center; gap: 10px; padding: 14px 14px 10px 20px; padding-top: max(14px, env(safe-area-inset-top));
  background: radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--hc-honey) 26%, transparent), transparent 46%), radial-gradient(circle at 0% 0%, color-mix(in srgb, var(--hc-accent) 10%, transparent), transparent 40%), var(--hc-bg); }
.hc-titles { flex: 1; min-width: 0; }
.hc-kicker { display: flex; align-items: center; gap: 6px; font: 800 10.5px var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--hc-accent); }
.hc-kicker::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--hc-honey); box-shadow: 0 0 10px var(--hc-honey); }
.hc-title { font-family: var(--serif); font-style: italic; font-size: 24px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hc-back { display: grid; place-items: center; width: 38px; height: 38px; margin-left: -8px; border: none; border-radius: 50%; background: var(--hc-soft); color: var(--hc-ink); cursor: pointer; }
.hc-back[hidden] { display: none; }
.hc-tabs { flex: none; display: flex; gap: 4px; margin: 4px 16px 10px; padding: 4px; border-radius: 16px; background: var(--hc-soft); }
.hc-tabs[hidden] { display: none; }
.hc-tabs button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 6px; border: none; border-radius: 12px; background: transparent;
  color: var(--hc-muted); font: 700 13.5px var(--sans); cursor: pointer; transition: background 0.15s ease, color 0.15s ease; }
.hc-tabs button.is-on { background: var(--hc-card); color: var(--hc-ink); box-shadow: 0 1px 2px rgba(38, 34, 31, 0.08), 0 4px 12px -6px rgba(38, 34, 31, 0.2); }
.hc-tabs button svg { width: 17px; height: 17px; }

.hc-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 8px 16px calc(32px + env(safe-area-inset-bottom)); background: var(--hc-bg); }
.hc-body > * { max-width: 640px; margin-left: auto; margin-right: auto; }
.hc-wait { padding: 40px 0; text-align: center; font: 15px var(--sans); color: var(--hc-muted); }
.hc-err { padding: 10px 14px; border-radius: 12px; background: color-mix(in srgb, var(--hc-accent) 12%, transparent); color: var(--hc-accent); font: 600 14px var(--sans); }

/* the living room, drawn */
.hc-hero { position: relative; overflow: hidden; border-radius: 24px; background: var(--hc-wall); }
.hc-art { display: block; width: 100%; height: auto; }
.hc-art.is-live { max-width: 360px; margin: 0 auto 18px; border-radius: 24px; }
.hc-hero-t { padding: 6px 22px 20px; }
.hc-hero h2 { margin: 0 0 6px; font: italic 27px/1.2 var(--serif); }
.hc-hero p { margin: 0; font: 15px/1.6 var(--sans); color: var(--hc-muted); }
.hc-hero.is-small { display: flex; flex-direction: row-reverse; align-items: center; }
.hc-hero.is-small .hc-art { flex: none; width: 46%; max-width: 300px; }
.hc-hero.is-small .hc-hero-t { flex: 1; min-width: 0; padding: 14px 4px 14px 22px; }
.hc-hero.is-small h2 { font-size: clamp(21px, 4.6vw, 28px); margin: 6px 0 0; }
/* (a small mark of the room's three colors, between the room and what's in it) */
.hc-rug { display: flex; justify-content: center; gap: 5px; width: fit-content; height: 4px; margin: 16px auto 18px; }
.hc-rug::before, .hc-rug::after { content: ""; width: 26px; border-radius: 4px; background: var(--hc-accent); }
.hc-rug::after { background: var(--hc-sage); }
.hc-rug { padding: 0 31px; background: linear-gradient(var(--hc-honey), var(--hc-honey)) center / 26px 100% no-repeat; border-radius: 4px; }
.hc-rug::before { margin-left: -31px; }
.hc-rug::after { margin-right: -31px; }
.hc-eyebrow { font: 800 10.5px var(--sans); letter-spacing: 0.15em; text-transform: uppercase; color: var(--hc-accent); }

/* cards */
.hc-card { position: relative; margin-bottom: 14px; padding: 18px 20px; border-radius: 22px; background: var(--hc-card); box-shadow: var(--hc-shadow); }
.hc-card.is-week { background: radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--hc-honey) 22%, transparent), transparent 55%), var(--hc-card); }
.hc-card.is-quiet { background: transparent; box-shadow: inset 0 0 0 1.5px var(--hc-line); }
.hc-card h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; font: 700 16px var(--sans); }
.hc-card h3 svg { box-sizing: content-box; padding: 7px; border-radius: 11px; background: color-mix(in srgb, var(--hc-honey) 20%, transparent); color: color-mix(in srgb, var(--hc-honey) 55%, var(--hc-ink)); }
.hc-card.is-sage h3 svg { background: color-mix(in srgb, var(--hc-sage) 20%, transparent); color: var(--hc-sage); }
.hc-card.is-rust h3 svg { background: color-mix(in srgb, var(--hc-accent) 14%, transparent); color: var(--hc-accent); }
.hc-card.is-quiet h3 svg { background: var(--hc-soft); color: var(--hc-muted); }
.hc-card h3.hc-big, .hc-big { display: block; margin: 4px 0 4px; font: italic 24px/1.25 var(--serif); }
.hc-card p { margin: 0 0 12px; font: 14.5px/1.55 var(--sans); color: var(--hc-muted); }
.hc-meta { font: 14px/1.5 var(--sans) !important; color: var(--hc-muted); }
.hc-small { font: 13px/1.5 var(--sans) !important; color: var(--hc-muted); margin: 8px 0 0 !important; }
.hc-note { font: 14px/1.55 var(--sans); color: var(--hc-muted); margin: 4px 0 12px; }
.hc-two { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .hc-two { grid-template-columns: 1fr 1fr; margin-bottom: 14px; } .hc-two .hc-card { margin: 0; } }
.hc-card input, .hc-card select, .hc-field input, .hc-field select, .hc-field textarea, .hc-joinf input, .hc-own input {
  display: block; width: 100%; margin: 0 0 8px; padding: 12px 14px; border: 1.5px solid transparent; border-radius: 14px; background: var(--hc-soft); color: var(--hc-ink); font: 16px var(--sans); transition: border-color 0.15s ease, background 0.15s ease; }
.hc-field textarea { resize: vertical; line-height: 1.5; }
/* (an iPhone's date box keeps its own width, whatever it's given, and runs over the box beside it: drawn plain, it fits) */
.hc-field input, .hc-field select { min-width: 0; }
.hc-field input[type="date"] { -webkit-appearance: none; appearance: none; min-height: 48px; text-align: left; }
.hc-field input[type="date"]::-webkit-date-and-time-value { text-align: left; }
/* (every box to type in, 16px or more: smaller, an iPhone zooms in as it's tapped, and in a window over the page the
   cursor then lands outside the box) */
.hc input, .hc textarea, .hc select { font-size: max(16px, 1em); }
.hc input:focus, .hc select:focus, .hc textarea:focus { outline: none; border-color: color-mix(in srgb, var(--hc-accent) 60%, transparent); background: var(--hc-card); }
.hc-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.hc-acts.is-top { margin: 6px auto 14px; }
.hc-acts.is-end { justify-content: center; margin: 20px auto 8px; }
.hc-saved { display: flex; align-items: flex-start; justify-content: center; gap: 6px; margin: 18px auto 0; max-width: 440px; font: 500 13px/1.45 var(--sans); color: var(--muted); text-align: center; } /* (it's kept as it's made: said so, and when) */
.hc-saved svg { flex: none; width: 15px; height: 15px; margin-top: 2px; color: var(--hc-sage); }
.hc-saved.is-busy svg { opacity: 0.35; }
.hc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 10px 20px; border: none; border-radius: 999px;
  background: linear-gradient(135deg, var(--hc-accent), var(--hc-accent-2)); color: var(--hc-on-accent); font: 700 14.5px var(--sans); cursor: pointer;
  box-shadow: 0 6px 16px -8px color-mix(in srgb, var(--hc-accent) 80%, transparent); transition: transform 0.12s ease, filter 0.12s ease; }
.hc-btn:active { transform: scale(0.97); }
.hc-btn.soft { background: var(--hc-soft); color: var(--hc-ink); box-shadow: none; }
.hc-btn.danger { background: color-mix(in srgb, var(--hc-accent) 12%, transparent); color: var(--hc-accent); box-shadow: none; }
.hc-btn svg { width: 17px; height: 17px; }
.hc-wide { width: 100%; margin-top: 14px; }
.hc-link { display: inline-flex; align-items: center; gap: 6px; padding: 4px 0; border: none; background: none; color: var(--hc-accent); font: 700 14px var(--sans); cursor: pointer; }
.hc-link.is-danger { color: var(--hc-muted); }
.hc-card > .hc-link { position: absolute; right: 18px; top: 16px; }
.hc-foot { text-align: center; margin: 18px auto 0; }
.hc-mini { display: inline-flex; align-items: center; gap: 5px; min-height: 36px; padding: 6px 12px; border: none; border-radius: 999px; background: var(--hc-soft); color: var(--hc-ink); font: 700 13px var(--sans); cursor: pointer; }
.hc-mini svg { width: 15px; height: 15px; }
.hc-mini.is-icon { padding: 6px; width: 36px; justify-content: center; }
.hc-mini.is-danger { color: var(--hc-accent); }
.hc-mini:disabled { opacity: 0.35; cursor: default; }
.hc-badge { display: inline-block; padding: 2px 9px; border-radius: 999px; background: color-mix(in srgb, var(--hc-honey) 24%, transparent); color: color-mix(in srgb, var(--hc-honey) 45%, var(--hc-ink)); font: 700 11px var(--sans); font-style: normal; }
.hc-badge.is-sage { background: color-mix(in srgb, var(--hc-sage) 20%, transparent); color: var(--hc-sage); }
.hc-picks { display: grid; gap: 8px; }
.hc-pick { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 13px 15px; border: 1.5px solid transparent; border-radius: 16px; background: var(--hc-soft); color: var(--hc-ink); text-align: left; cursor: pointer; font: 15px var(--sans); }
.hc-pick b { font-weight: 700; }
.hc-pick span { font-size: 13px; color: var(--hc-muted); }
.hc-pick.is-quiet { background: transparent; border-color: var(--hc-line); }
@media (hover: hover) { .hc-pick:hover { border-color: color-mix(in srgb, var(--hc-accent) 50%, transparent); } .hc-btn:hover { filter: brightness(1.05); } }

/* someone meeting now */
.hc-livebar { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; padding: 14px 14px 14px 16px; border-radius: 20px; color: #fff;
  background: radial-gradient(circle at 0% 0%, rgba(255, 214, 140, 0.55), transparent 55%), linear-gradient(120deg, var(--hc-accent), var(--hc-accent-2)); box-shadow: 0 12px 26px -14px color-mix(in srgb, var(--hc-accent) 90%, transparent); }
body.site-dark .hc-livebar { color: #1B1A1F; }
.hc-livebar > div { flex: 1; min-width: 0; display: flex; flex-direction: column; font: 13px/1.4 var(--sans); }
.hc-livebar b { font-size: 15px; }
.hc-livebar span:not(.hc-pulse) { opacity: 0.85; }
.hc-livebar .hc-btn { background: #fff; color: #D46F4B; box-shadow: none; }
.hc-livebar.is-mine { background: radial-gradient(circle at 0% 0%, color-mix(in srgb, var(--hc-honey) 30%, transparent), transparent 60%), var(--hc-card); color: var(--hc-ink); box-shadow: var(--hc-shadow), inset 0 0 0 1.5px color-mix(in srgb, var(--hc-honey) 45%, transparent); }
.hc-livebar.is-mine .hc-btn { background: var(--hc-honey); color: #1B1A1F; }
.hc-pulse { flex: none; width: 11px; height: 11px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.6); animation: hc-pulse 2s infinite; }
.hc-livebar.is-mine .hc-pulse { background: var(--hc-honey); }
@keyframes hc-pulse { 70% { box-shadow: 0 0 0 10px rgba(255, 255, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); } }

/* sessions */
.hc-slist { display: grid; gap: 10px; }
.hc-srow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 20px; background: var(--hc-card); box-shadow: var(--hc-shadow); }
.hc-srow.is-draft { background: transparent; box-shadow: inset 0 0 0 1.5px var(--hc-line); }
.hc-srow-main { flex: 1 1 260px; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 2px; border: none; background: none; color: inherit; text-align: left; cursor: pointer; }
.hc-srow-day { flex: none; width: 74px; padding: 9px 4px; border-radius: 14px; background: var(--hc-peach); text-align: center; font: 700 12px/1.3 var(--sans); color: var(--hc-accent); }
.hc-srow-t { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.hc-srow-t b { font: italic 18px/1.25 var(--serif); }
.hc-srow-t small { font: 13px var(--sans); color: var(--hc-muted); }
.hc-srow-acts { display: flex; gap: 6px; flex-wrap: wrap; margin-left: auto; }

/* people and house churches */
.hc-sub { margin: 26px auto 10px; font: 800 11px var(--sans); letter-spacing: 0.15em; text-transform: uppercase; color: var(--hc-muted); }
.hc-sub small { margin-left: 4px; letter-spacing: 0; }
.hc-code { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 12px 0; padding: 12px 16px; border-radius: 16px; background: var(--hc-soft); font: 13px var(--sans); color: var(--hc-muted); }
.hc-code b { font: 800 22px ui-monospace, Menlo, monospace; letter-spacing: 0.08em; color: var(--hc-ink); }
.hc-groups { display: grid; gap: 10px; }
.hc-group { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 20px; background: var(--hc-card); box-shadow: var(--hc-shadow); }
.hc-group.is-mine { box-shadow: var(--hc-shadow), inset 0 0 0 2px color-mix(in srgb, var(--hc-sage) 55%, transparent); }
.hc-group-t { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 2px; font: 14px var(--sans); }
.hc-group-t b { font: italic 19px var(--serif); }
.hc-group-t span, .hc-group-t small { color: var(--hc-muted); }
.hc-group-acts { display: flex; gap: 6px; align-items: center; }
.hc-card.is-form h3 { margin-bottom: 12px; }
.hc-field { display: block; margin-bottom: 12px; }
.hc-field > span { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; font: 700 13px var(--sans); color: var(--hc-ink); }
.hc-field > small { display: block; margin: -2px 0 6px; font: 12.5px var(--sans); color: var(--hc-muted); }
.hc-field i { font-weight: 400; color: var(--hc-muted); }
.hc-people { display: grid; gap: 8px; }
.hc-person { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px; background: var(--hc-card); box-shadow: var(--hc-shadow); }
.hc-av { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, color-mix(in srgb, var(--hc-honey) 45%, var(--hc-card)), color-mix(in srgb, var(--hc-accent) 30%, var(--hc-card))); color: var(--hc-ink); font: 800 15px var(--sans); }
.hc-person-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; font: 15px var(--sans); }
.hc-person-t small { color: var(--hc-muted); font-weight: 400; }
.hc-person-sel { display: flex; flex-wrap: wrap; gap: 6px; }
.hc-person-sel select { flex: 1 1 130px; width: auto; margin: 0; padding: 8px 10px; border-radius: 12px; border: none; background: var(--hc-soft); color: var(--hc-ink); font-size: 16px; }

/* the pastor's editor */
.hc-ed .hc-field.is-title input { font: italic 21px var(--serif); }
.hc-row3, .hc-row2 { display: grid; gap: 0 10px; grid-template-columns: 1fr; }
.hc-row3 > *, .hc-row2 > * { min-width: 0; }
@media (min-width: 560px) { .hc-row3 { grid-template-columns: 1fr 1fr 150px; } .hc-row2 { grid-template-columns: 1fr 110px; } }
.hc-parts { display: grid; gap: 12px; }
.hc-part { min-width: 0; padding: 16px; border-radius: 22px; background: var(--hc-card); box-shadow: var(--hc-shadow); }
.hc-partqs { margin: 0 0 14px; }
.hc-partqs > span { display: block; font: 700 14px var(--sans); color: var(--hc-ink); }
.hc-partqs > small { display: block; margin: 2px 0 8px; font: 13px/1.4 var(--sans); color: var(--muted); }
.hc-partqs ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.hc-partqs button { display: flex; align-items: flex-start; gap: 8px; width: 100%; padding: 10px 12px; border: 1px solid color-mix(in srgb, var(--hc-sage) 30%, var(--rule)); border-radius: 14px; background: color-mix(in srgb, var(--hc-sage) 8%, transparent); color: var(--hc-ink); font: 15px/1.4 var(--sans); text-align: left; cursor: pointer; }
.hc-partqs button svg { flex: none; width: 16px; height: 16px; margin-top: 2px; color: var(--hc-sage); }
.hc-qrow.is-lit { animation: hc-qlit 1.4s ease; }
@keyframes hc-qlit { 0%, 30% { box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 55%, transparent); } 100% { box-shadow: none; } }
.hc-part-h { display: flex; align-items: center; gap: 6px; margin-bottom: 12px; }
.hc-part-h input { flex: 1; min-width: 0; margin: 0; padding: 10px 12px; border: 1.5px solid transparent; border-radius: 14px; background: var(--hc-soft); color: var(--hc-ink); font: 700 16px var(--sans); }
.hc-part-n { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--hc-sage); color: #fff; font: 800 13px var(--sans); }
.hc-field.is-lead textarea { background: color-mix(in srgb, var(--hc-honey) 12%, var(--hc-soft)); }
.hc-field.is-mins input { text-align: center; }
.hc-qs { display: grid; gap: 8px; }
.hc-qrow { padding: 12px; border-radius: 18px; background: var(--hc-card); box-shadow: var(--hc-shadow); }
.hc-qrow textarea { display: block; width: 100%; margin: 0 0 8px; padding: 10px 12px; border: 1.5px solid transparent; border-radius: 14px; background: var(--hc-soft); color: var(--hc-ink); font: 16px/1.5 var(--sans); resize: vertical; }
.hc-qrow-b { display: flex; gap: 8px; }
.hc-qrow-b select { flex: 1; min-width: 0; padding: 8px 10px; border: none; border-radius: 12px; background: var(--hc-soft); color: var(--hc-ink); font: 16px var(--sans); }
.hc-edbar { position: sticky; bottom: calc(-32px - env(safe-area-inset-bottom)); z-index: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 22px -16px 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: var(--hc-bg); border-top: 1px solid var(--hc-line); }
.hc-edstate { flex: 1 1 100%; font: 12.5px var(--sans); color: var(--hc-muted); }
@media (min-width: 560px) { .hc-edstate { flex: 1 1 auto; } }

/* preparing, and looking ahead */
.hc-prep-top h2 { margin: 6px 0 8px; font: italic 29px/1.2 var(--serif); }
.hc-intro { margin: 12px 0; padding: 16px 18px; border-radius: 18px; background: var(--hc-peach); font: 16px/1.6 var(--serif); }
.hc-ref { display: inline-flex; align-items: center; gap: 6px; margin: 2px 0 6px; padding: 6px 12px; border: none; border-radius: 999px; background: color-mix(in srgb, var(--hc-sage) 16%, transparent); color: color-mix(in srgb, var(--hc-sage) 70%, var(--hc-ink)); font: 700 13.5px var(--sans); cursor: pointer; }
.hc-ref svg { width: 15px; height: 15px; }
.hc-pcard { margin-top: 14px; padding: 18px; border-radius: 22px; background: var(--hc-card); box-shadow: var(--hc-shadow); }
.hc-pcard-h { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; font: 17px var(--sans); }
.hc-pcard-h small { margin-left: auto; padding: 3px 10px; border-radius: 999px; background: var(--hc-soft); font: 700 12px var(--sans); color: var(--hc-muted); }
.hc-pcard.is-pray { background: radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--hc-honey) 20%, transparent), transparent 60%), var(--hc-card); }
.hc-pcard.is-pray .hc-pcard-h svg { color: var(--hc-honey); }
.hc-pcard.is-pray p { margin: 6px 0 0; font: 15.5px/1.6 var(--serif); }
.hc-pcard.is-loose:not(:has(.hc-pq)) { background: transparent; box-shadow: inset 0 0 0 1.5px var(--hc-line); }
.hc-points { margin: 8px 0; padding-left: 20px; font: 15.5px/1.6 var(--serif); }
.hc-points li { margin: 4px 0; }
.hc-points li::marker { color: var(--hc-accent); }
.hc-leadnote { margin: 12px 0; padding: 12px 14px; border-radius: 14px; background: color-mix(in srgb, var(--hc-honey) 14%, transparent); font: 14px/1.55 var(--sans); white-space: pre-line; }
.hc-leadnote b { display: block; margin-bottom: 2px; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: color-mix(in srgb, var(--hc-honey) 50%, var(--hc-ink)); }
.hc-pqs { margin-top: 12px; display: grid; gap: 6px; }
.hc-pq { display: flex; align-items: flex-start; gap: 10px; padding: 8px 10px; border-radius: 14px; font: 15px/1.5 var(--sans); color: var(--hc-muted); transition: background 0.15s ease; }
.hc-pq > span:not(.hc-tick) { flex: 1; padding-top: 4px; }
.hc-pq.is-on { background: color-mix(in srgb, var(--hc-sage) 12%, transparent); color: var(--hc-ink); }
.hc-tick { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border: 2px solid var(--hc-line); border-radius: 10px; background: var(--hc-card); color: transparent; cursor: pointer; }
.hc-pq.is-on .hc-tick { background: var(--hc-sage); border-color: var(--hc-sage); color: #fff; }
.hc-tick.is-own { border: none; background: color-mix(in srgb, var(--hc-honey) 22%, transparent) !important; color: color-mix(in srgb, var(--hc-honey) 50%, var(--hc-ink)) !important; cursor: default; }
.hc-own { display: flex; gap: 6px; margin-top: 4px; }
.hc-own input { margin: 0; flex: 1; min-width: 0; padding: 9px 12px; font-size: 16px; }
.hc-field.is-mynote { margin: 14px 0 0; }
.hc-field.is-mynote span { color: var(--hc-accent); }

/* the panel */
.hc-scrim { position: absolute; inset: 0; z-index: 5; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(18, 17, 22, 0.45); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.hc-scrim[hidden] { display: none; }
.hc-panel { position: relative; width: min(440px, 100%); max-height: 100%; overflow-y: auto; padding: 24px 22px 22px; border-radius: 26px; background: var(--hc-card); color: var(--hc-ink); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.45); }
.hc-px { position: absolute; right: 12px; top: 12px; }
.hc-panel .hc-kicker { padding-right: 70px; }
.hc-h { margin: 8px 0 8px; font: italic 25px/1.2 var(--serif); }
.hc-h3 { margin: 20px 0 8px; font: 800 11px var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--hc-muted); }
.hc-p { margin: 0 0 12px; font: 14.5px/1.55 var(--sans); color: var(--hc-muted); }
.hc-joinf input[name="code"] { text-align: center; font: 800 30px ui-monospace, Menlo, monospace; letter-spacing: 0.2em; text-transform: uppercase; }

/* ---------------------------------------------------------------- the gathering: the room at night, by lamplight */
.hc-live { --lv-ink: var(--hc-ink); --lv-dim: var(--hc-muted); --lv-hi: var(--hc-accent); --lv-glass: color-mix(in srgb, var(--hc-ink) 6%, transparent); --lv-glass-2: color-mix(in srgb, var(--hc-ink) 10%, transparent);
  position: fixed; inset: 0; z-index: 4; display: flex; flex-direction: column; color: var(--lv-ink);
  background: radial-gradient(ellipse 65% 45% at 92% -5%, color-mix(in srgb, var(--hc-honey) 30%, transparent), transparent 70%), radial-gradient(ellipse 60% 45% at -5% 105%, color-mix(in srgb, var(--hc-accent) 14%, transparent), transparent 70%), var(--hc-bg); }
body.site-dark .hc-live { --lv-hi: var(--hc-lamp);
  background: radial-gradient(ellipse 65% 45% at 92% -5%, color-mix(in srgb, var(--hc-honey) 24%, transparent), transparent 70%), radial-gradient(ellipse 60% 45% at -5% 105%, color-mix(in srgb, var(--hc-accent) 18%, transparent), transparent 70%), var(--hc-bg); }
.hc-live[hidden] { display: none; }
.hc.is-live .hc-box { visibility: hidden; }
.hc-live .hc-eyebrow { color: var(--lv-hi); }
.hc-ltop { flex: none; position: relative; z-index: 4; display: flex; align-items: center; gap: 10px; padding: 10px 14px; padding-top: max(10px, env(safe-area-inset-top)); }
.hc-lmin { display: inline-flex; align-items: center; gap: 4px; padding: 8px 13px 8px 9px; border: none; border-radius: 999px; background: var(--lv-glass); color: var(--lv-ink); font: 700 13px var(--sans); cursor: pointer; }
.hc-lmid { flex: 1; min-width: 0; text-align: center; font: italic 15px var(--serif); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--lv-dim); }
.hc-lroom { display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border: none; border-radius: 999px; background: var(--lv-glass); color: var(--lv-ink); font: 600 12.5px var(--sans); cursor: pointer; }
.hc-lroom:empty { display: none; }
.hc-code-s { font: 800 13px ui-monospace, Menlo, monospace; letter-spacing: 0.1em; color: var(--lv-hi); }
.hc-lbody { flex: 1; min-height: 0; overflow-y: auto; padding: 8px 22px 24px; }
.hc-lstep { max-width: 680px; margin: 0 auto; padding-top: 10px; animation: hc-in 0.35s ease; }
@keyframes hc-in { from { opacity: 0; transform: translateY(8px); } }
.hc-lstep h1 { margin: 8px 0 12px; font: italic clamp(32px, 7vw, 52px)/1.1 var(--serif); }
.hc-lstep h2 { margin: 8px 0 12px; font: italic clamp(28px, 5.6vw, 42px)/1.15 var(--serif); }
.hc-ref.is-live { background: var(--lv-glass); color: var(--lv-ink); }
.hc-bigidea { margin: 20px 0; padding: 20px 22px; border-radius: 22px; background: var(--lv-glass); }
.hc-bigidea p { margin: 6px 0 0; font: clamp(17px, 2.6vw, 21px)/1.6 var(--serif); }
.hc-tonight { margin: 18px 0; padding: 0; list-style: none; counter-reset: t; }
.hc-tonight li { counter-increment: t; display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid color-mix(in srgb, var(--hc-ink) 8%, transparent); font: 16px var(--sans); }
.hc-tonight li::before { content: counter(t); flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: rgba(242, 190, 92, 0.16); color: var(--lv-hi); font: 800 12px var(--sans); }
.hc-tonight span { flex: 1; }
.hc-tonight small { color: var(--lv-dim); font-size: 13px; }
.hc-lhint { margin: 18px 0 0; font: 14px var(--sans); color: var(--lv-dim); }
/* the leader's first screen: wait for everyone */
.hc-lwait { margin: 14px 0 6px; padding: 18px 20px; border-radius: 22px; background: color-mix(in srgb, var(--hc-honey) 14%, var(--hc-card)); box-shadow: var(--hc-shadow), inset 0 0 0 1.5px color-mix(in srgb, var(--hc-honey) 45%, transparent); }
.hc-lwait-h { display: flex; align-items: center; gap: 10px; font: 700 17px var(--sans); }
.hc-lwait-h .hc-pulse { background: var(--hc-honey); }
.hc-lwait p { margin: 8px 0 10px; font: 15px/1.55 var(--sans); }
.hc-lwait-n { margin-bottom: 12px; font: 600 14px/1.5 var(--sans); color: var(--lv-dim); }
.hc-lpoints { margin: 14px 0; padding-left: 22px; font: clamp(18px, 2.8vw, 23px)/1.55 var(--serif); }
.hc-lpoints li { margin: 8px 0; }
.hc-lpoints li::marker { color: var(--lv-hi); }
.hc-lqs { margin-top: 22px; display: grid; gap: 10px; }
.hc-lq { display: flex; align-items: flex-start; gap: 10px; padding: 15px 16px; border-radius: 20px; background: var(--hc-card); color: var(--hc-ink); font: clamp(16px, 2.4vw, 19px)/1.5 var(--sans); box-shadow: var(--hc-shadow); }
.hc-lq svg { color: var(--hc-accent); margin-top: 3px; }
.hc-lq span { flex: 1; }
.hc-lq.is-up { box-shadow: 0 0 0 3px var(--hc-lamp), 0 12px 32px -10px rgba(242, 190, 92, 0.55); }
.hc-lq-up { flex: none; align-self: center; padding: 7px 11px; border: none; border-radius: 999px; background: var(--hc-soft); color: var(--hc-ink); font: 700 12px var(--sans); cursor: pointer; }
.hc-lmore { margin-top: 14px; }
.hc-lmore summary { cursor: pointer; font: 700 14px var(--sans); color: var(--lv-dim); padding: 6px 0; }
.hc-lmore .hc-lq { margin-top: 8px; background: color-mix(in srgb, var(--hc-card) 80%, transparent); box-shadow: none; }
.hc-priv { margin-top: 22px; padding: 14px 16px; border-radius: 18px; background: rgba(242, 190, 92, 0.09); box-shadow: inset 0 0 0 1px rgba(242, 190, 92, 0.25); font: 14.5px/1.55 var(--sans); }
.hc-priv-h { margin-bottom: 4px; font: 800 10.5px var(--sans); letter-spacing: 0.15em; text-transform: uppercase; color: var(--lv-hi); }
.hc-priv p { margin: 6px 0 0; white-space: pre-line; }
.hc-lstep.is-pray { text-align: center; padding-top: 30px; }
.hc-lpray { display: inline-grid; place-items: center; width: 66px; height: 66px; border-radius: 50%; background: rgba(242, 190, 92, 0.15); box-shadow: 0 0 70px 24px rgba(242, 190, 92, 0.14); }
.hc-lpray svg { width: 30px; height: 30px; color: var(--lv-hi); }
.hc-lprayer { margin: 14px auto; max-width: 560px; font: clamp(18px, 2.8vw, 22px)/1.6 var(--serif); white-space: pre-line; }
.hc-lsoft { font: 15px/1.6 var(--sans); color: var(--lv-dim); }
.hc-lstep.is-wait { text-align: center; padding-top: 6vh; }
/* the timer */
.hc-timer { flex: none; position: relative; z-index: 4; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 0 14px 6px; }
.hc-timer[hidden] { display: none; }
.hc-tbar { display: inline-flex; align-items: center; gap: 8px; padding: 5px 6px 5px 13px; border-radius: 999px; background: var(--lv-glass); font: 700 15px var(--sans); }
.hc-tlamp { width: 9px; height: 9px; border-radius: 50%; background: var(--hc-sage); box-shadow: 0 0 8px var(--hc-sage); }
.hc-timer.is-soon .hc-tlamp { background: var(--hc-lamp); box-shadow: 0 0 10px var(--hc-lamp); }
.hc-timer.is-up .hc-tlamp { background: var(--hc-accent); box-shadow: 0 0 10px var(--hc-accent); }
.hc-tbar b { font-variant-numeric: tabular-nums; min-width: 44px; }
.hc-tbtn { display: grid; place-items: center; min-width: 32px; height: 32px; padding: 0 9px; border: none; border-radius: 999px; background: var(--lv-glass-2); color: var(--lv-ink); font: 700 12.5px var(--sans); cursor: pointer; }
.hc-tbtn svg { width: 15px; height: 15px; }
.hc-twait { font: 600 12.5px var(--sans); color: var(--lv-dim); }
.hc-ask { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; padding: 10px 14px; border-radius: 18px; background: rgba(242, 190, 92, 0.13); font: 14px var(--sans); }
.hc-ask .hc-btn { min-height: 34px; padding: 6px 14px; }
.hc-live .hc-btn, .hc-live .ui-btn { background: var(--hc-lamp); color: #1B1A1F; box-shadow: none; }
.hc-live .hc-btn.soft, .hc-live .ui-btn.is-soft { background: var(--lv-glass-2); color: var(--lv-ink); }
.hc-live { --lt-glass: var(--lv-glass); }
/* Back, where we are, Next: floating, like glass */
.hc-lbar { flex: none; position: relative; z-index: 4; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 12px calc(12px + env(safe-area-inset-bottom)); padding: 10px; border-radius: 28px;
  background: color-mix(in srgb, var(--hc-card) 72%, transparent); box-shadow: var(--hc-shadow); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.hc-lnav { display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding: 10px 18px; border: none; border-radius: 999px; background: var(--lv-glass); color: var(--lv-ink); font: 700 15px var(--sans); cursor: pointer; }
.hc-lnav.is-next { background: linear-gradient(135deg, #F2BE5C, #E9A04E); color: #1B1A1F; padding-left: 22px; box-shadow: 0 8px 22px -10px rgba(242, 190, 92, 0.7); }
.hc-lnav.is-quiet { width: 44px; min-height: 44px; padding: 0; justify-content: center; }
.hc-lnav:disabled { opacity: 0.3; cursor: default; }
.hc-dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; min-width: 0; }
.hc-dots i { width: 7px; height: 7px; border-radius: 50%; background: color-mix(in srgb, var(--hc-ink) 20%, transparent); transition: width 0.2s ease; }
.hc-dots i.is-past { background: color-mix(in srgb, var(--hc-honey) 55%, transparent); }
.hc-dots i.is-on { width: 22px; border-radius: 4px; background: var(--hc-lamp); }
.hc-follow { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.hc-follow small { font: 12px var(--sans); color: var(--lv-dim); }
/* on the TV: bigger, with nothing to tap */
html.hc-tv .hc-ltop .hc-lmin { display: none; }
html.hc-tv .hc-lstep { max-width: 1100px; }
html.hc-tv .hc-lstep h1 { font-size: clamp(48px, 6vw, 90px); }
html.hc-tv .hc-lstep h2 { font-size: clamp(40px, 5vw, 72px); }
html.hc-tv .hc-lpoints, html.hc-tv .hc-lq { font-size: clamp(24px, 2.6vw, 38px); }
/* a phone on its side: the timer up in the top bar, and the bars thinner, to leave room for what's said */
@media (max-height: 500px) {
  .hc-timer { position: absolute; z-index: 5; top: max(10px, env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); padding: 0; }
  .hc-live:has(.hc-timer:not([hidden])) .hc-lmid { visibility: hidden; }
  .hc-lbar { padding: 6px; margin-bottom: max(8px, env(safe-area-inset-bottom)); }
  .hc-lnav { min-height: 40px; }
  .hc-lstep { padding-top: 0; }
}

/* the chip, while a gathering goes on with the window closed; and word of what's happened */
.hc-toast { position: fixed; left: 50%; bottom: calc(var(--bnav-h, 0px) + 24px + env(safe-area-inset-bottom)); z-index: 90; max-width: calc(100vw - 32px); padding: 12px 18px; border-radius: 16px; background: var(--ink); color: var(--bg);
  font: 600 14px/1.4 var(--sans); transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: opacity 0.2s ease, transform 0.2s ease; box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.45); }
.hc-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* the home page's tile */
.hc-tile-art { display: block; margin: 10px 0 2px; border-radius: 18px; overflow: hidden; }
.hc-tile-art .hc-art { width: 100%; height: auto; }

/* ---- a session from a document (#546): what it was built from; your own sessions, no church needed; Undo */
.hc-imported { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 16px; padding: 12px 14px; border-radius: 16px; background: color-mix(in srgb, var(--gold) 12%, var(--hc-card, var(--bg-raised))); border: 1px solid color-mix(in srgb, var(--gold) 35%, transparent); }
.hc-imported svg { flex: none; width: 20px; height: 20px; margin-top: 1px; color: var(--gold); }
.hc-imported p { margin: 0; font: 14px/1.5 var(--sans); color: var(--ink); }
.hc-owncard .hc-btn { margin-top: 4px; } /* (its own name: .hc-own is the row to add a question of your own, side by side, and the card took its layout) */
.hc-ownlist { margin: 14px 0 0; padding: 0; list-style: none; border-radius: 14px; overflow: hidden; border: 1px solid var(--rule); }
.hc-ownlist > li + li { border-top: 1px solid var(--rule); }
.hc-orow { display: flex; flex-direction: column; gap: 2px; padding: 11px 14px; border: none; background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.hc-orow b { font: 700 15px/1.3 var(--sans); }
.hc-orow small { font: 13px/1.35 var(--sans); color: var(--hc-muted, var(--muted)); }
.hc-toast { z-index: 2147483500; } /* (over its window, however high the window's been lifted: nav/layers.js) */
.hc-toast-act { pointer-events: auto; margin-left: 14px; padding: 0; border: none; background: none; color: var(--gold); font: 800 14px var(--sans); cursor: pointer; }

/* ---- your own notes, following (only yours, kept in Yours), and a raised hand */

/* ---- a question to everyone: asked, answered on each phone, and the answers on every screen together */

/* ---- activities: the leader's tiles, and each one's card */
.hc-acti { display: inline-grid; place-items: center; width: 22px; height: 22px; color: var(--hc-accent); font: 800 16px/1 var(--sans); }

/* ---- to begin with: the icebreakers; the quick check's own buttons; a leader's prayer requests */

/* ---- activities made ready on the Prepare page, and offered while leading */
.hc-pacts { display: grid; gap: 8px; margin: 10px 0 12px; padding: 0; list-style: none; }
.hc-pacts li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--hc-soft); }
.hc-pacts li > span { flex: 1; min-width: 0; font: 14.5px/1.4 var(--sans); }
.hc-pacts li b { color: var(--hc-accent); font-weight: 700; margin-right: 4px; }
.hc-pacts li small { display: block; font-size: 12px; color: var(--hc-muted); }
.hc-pcard.is-acts .hc-pcard-h .hc-acti { width: 22px; height: 22px; }
/* ---- joining a gathering, first on House Church's page, its code's own box */
.hc-gjoin { margin-bottom: 14px; }
.hc-gjoin-row { display: flex; gap: 8px; margin-top: 10px; }
.hc-gjoin-row input { flex: 1; min-width: 0; padding: 11px 14px; border: 1px solid color-mix(in srgb, var(--hc-ink) 16%, transparent); border-radius: 14px; background: var(--hc-bg); color: var(--hc-ink); font: 700 18px var(--sans); letter-spacing: 0.14em; text-transform: uppercase; }

/* the session's activity to start with, in the editor: which one, a word on writing a good one, and its own form */
.hc-icepick { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.hc-iceform { padding: 14px; border: 1px solid var(--rule); border-radius: 16px; background: var(--bg-raised); }
.hc-iceform > .hc-note:first-child { margin-top: 0; }
.hc-icetip { margin: 0 0 14px; padding: 10px 12px; border-left: 3px solid var(--gold); border-radius: 0 10px 10px 0; background: color-mix(in srgb, var(--gold) 8%, var(--bg)); }
.hc-icetip b { display: block; font: 800 10.5px var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.hc-icetip p { margin: 4px 0 0; font: 14px/1.5 var(--sans); color: var(--ink); }
.hc-icesay { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; }
