/* 有光 (zion4life.faith). Phone first: top bar, content, bottom tab bar within thumb reach.
   Nothing here loads from outside the site, so pages open in mainland China. */
:root {
  --sky: #eaf6ff;
  --sky2: #f3f9fe;
  --paper: #ffffff;
  --ink: #1b2a38;
  --mute: #5a6d80;
  --line: #d3e4f0;
  --water: #2a8fc4;
  --water-ink: #1f6f99;
  --glass: #ffffff;
  --mix: #ffffff;
  --sun: #ffc23d;
  --blush: #ffb4bd;
  --deep: #16375e;
  --t-aqua: #4fc0ec;
  --t-mint: #45c9ae;
  --t-sky: #7ea6ff;
  --t-lilac: #a48cf0;
  --t-peach: #ff9b86;
  --t-sun: #ffbf33;
  --highlight: rgba(255, 194, 61, 0.34);
  --display: "WenKai", "Kaiti SC", "STKaiti", "KaiTi", serif;
  --body: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", system-ui, sans-serif;
  --verse: "WenKai", "Songti SC", "STSong", "Noto Serif CJK SC", serif;
  --gap: 10px;
  /* names used by the 搭子 pages */
  --life: var(--water); --life-ink: var(--water-ink); --mist: var(--sky2); --stone: var(--mute);
  --night: var(--deep); --dawn: var(--sun); --dawn-deep: #c98a12; --serif: var(--display);
  --on-night: #f2f8fd; --on-night-2: rgba(242, 248, 253, 0.76);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --sky: #0c1824; --sky2: #10202e; --paper: #13263a; --ink: #e6f1fa; --mute: #93a9bd; --line: #223b50;
    --water: #63c8f3; --water-ink: #8ad6f7; --glass: #b9e3ff; --mix: #13263a; --deep: #0b2340;
    --highlight: rgba(255, 194, 61, 0.22); --dawn-deep: #e9b14d;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--sky); color: var(--ink); font: 400 17px/1.8 var(--body); letter-spacing: 0.01em; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
:lang(zh) body, body:lang(zh) { letter-spacing: 0.02em; }
img { max-width: 100%; height: auto; }
a { color: var(--water); }
button, input, textarea, select { font: inherit; color: inherit; letter-spacing: inherit; }
:focus-visible { outline: 2px solid var(--water); outline-offset: 3px; border-radius: 10px; }
[hidden] { display: none !important; }
.wrap { max-width: 720px; margin: 0 auto; padding-inline: 16px; }
.muted { color: var(--mute); }

/* top bar */
.topbar { position: sticky; top: 0; z-index: 20; padding-top: env(safe-area-inset-top, 0px); background: var(--sky); }
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .topbar { background: color-mix(in srgb, var(--sky) 86%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
}
.topbar-in { display: flex; align-items: center; gap: 10px; height: 58px; }
.brand { display: flex; align-items: center; gap: 9px; margin-right: auto; min-width: 0; color: var(--ink); text-decoration: none; }
.brand .logo { width: 36px; height: 36px; flex: none; }
.brand b { display: block; font-family: var(--display); font-weight: 400; font-size: 23px; line-height: 1.1; letter-spacing: 0.1em; white-space: nowrap; }
.brand b:lang(en) { letter-spacing: 0.02em; }
.brand small { display: block; font-size: 11px; line-height: 1.2; color: var(--mute); letter-spacing: 0.02em; }
.lang { display: flex; flex: none; padding: 2px; border-radius: 999px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.lang a { padding: 2px 10px; border-radius: 999px; font-size: 13px; line-height: 1.6; color: var(--mute); text-decoration: none; }
.lang a[aria-current] { background: var(--water); color: #fff; }

/* bottom tab bar */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding-bottom: env(safe-area-inset-bottom, 0px); background: var(--paper); box-shadow: 0 -1px 0 var(--line); }
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .tabbar { background: color-mix(in srgb, var(--paper) 92%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
}
.tabbar-in { display: grid; grid-template-columns: repeat(4, 1fr); max-width: 520px; margin: 0 auto; }
.tabbar a { display: grid; justify-items: center; gap: 1px; padding: 7px 0 6px; color: var(--mute); font-size: 12px; line-height: 1.4; text-decoration: none; }
.tabbar svg { width: 25px; height: 25px; }
.tabbar a[aria-current] { color: var(--water); }
.tab-space { height: calc(70px + env(safe-area-inset-bottom, 0px)); }

/* greeting */
.hello { padding-block: 6px 12px; }
.hello h1 { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(27px, 7.6vw, 36px); line-height: 1.3; letter-spacing: 0.06em; text-wrap: balance; }
.hello h1:lang(en) { letter-spacing: 0.01em; }
.hello p { margin: 4px 0 0; color: var(--mute); font-size: 15px; }

/* tile grid (粮仓) */
.grid { container-type: inline-size; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 112px; grid-auto-rows: calc((100cqw - 2 * var(--gap)) / 3); grid-auto-flow: dense; gap: var(--gap); }
.tile {
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px;
  min-width: 0; padding: 12px 12px 11px; border-radius: 22px; color: var(--ink); text-decoration: none;
  background:
    radial-gradient(90% 70% at 18% 8%, color-mix(in srgb, var(--glass) 70%, transparent) 0 18%, transparent 60%),
    linear-gradient(165deg, color-mix(in srgb, var(--tint) 16%, var(--mix)) 0%, color-mix(in srgb, var(--tint) 46%, var(--mix)) 100%);
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--glass) 80%, transparent), inset 0 -10px 18px -12px color-mix(in srgb, var(--tint) 70%, transparent), 0 8px 16px -12px color-mix(in srgb, var(--tint) 90%, transparent);
  transition: transform .18s ease;
}
.tile:active { transform: scale(.97); }
.tile::after { content: ""; position: absolute; left: 12px; top: 12px; width: 13px; height: 16px; border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%; background: color-mix(in srgb, var(--tint) 70%, var(--mix)); opacity: .9; }
.tile .name { font-family: var(--display); font-size: 20px; line-height: 1.25; letter-spacing: 0.04em; overflow-wrap: anywhere; }
.tile .name:lang(en) { letter-spacing: 0.01em; font-size: 18px; }
.tile .sub { font-size: 12.5px; line-height: 1.45; color: var(--mute); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tile .num { position: absolute; right: 10px; top: 10px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: color-mix(in srgb, var(--paper) 85%, transparent); font: 600 12px/22px var(--body); color: var(--mute); text-align: center; }
.tile.w2 { grid-column: span 2; }
.tile.h2 { grid-row: span 2; }
.tile.big .name { font-size: 30px; }
.tile.big .name:lang(en) { font-size: 26px; }
.tile.big .sub { font-size: 14px; -webkit-line-clamp: 3; }
.tile.w2 .name { font-size: 22px; }
.tile .ico { position: absolute; right: 12px; top: 12px; width: 30px; height: 30px; }
.tile .mascot { position: absolute; right: 8%; top: 12%; width: 34%; height: auto; }
.tile.person::after { display: none; }
.tile .avatar { position: absolute; right: 12px; top: 12px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); font-family: var(--display); font-size: 20px; box-shadow: 0 0 0 3px color-mix(in srgb, var(--tint) 35%, transparent); }
.ring { position: absolute; width: 300px; height: 300px; margin: -150px 0 0 -150px; border-radius: 50%; border: 2.5px solid color-mix(in srgb, var(--tint, var(--water)) 75%, var(--ink)); pointer-events: none; transform: scale(0); opacity: .9; animation: ring .9s ease-out forwards; }
.ring.soft { border-width: 1.5px; opacity: .6; }
@keyframes ring { to { transform: scale(1); opacity: 0; } }

/* banners (top of tag, 呼吸, 搭子, 我的 pages) */
.page { padding-block: 6px 28px; }
.back { display: inline-block; padding: 4px 0; font-size: 15px; text-decoration: none; }
.banner { position: relative; overflow: hidden; margin: 6px 0 14px; padding: 18px 18px 16px; border-radius: 24px; background: linear-gradient(165deg, color-mix(in srgb, var(--tint, var(--t-aqua)) 18%, var(--mix)), color-mix(in srgb, var(--tint, var(--t-aqua)) 50%, var(--mix))); }
.banner h1 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 34px; line-height: 1.25; letter-spacing: 0.05em; text-wrap: balance; }
.banner h1:lang(en) { letter-spacing: 0.01em; }
.banner p { margin: 2px 0 0; color: var(--mute); font-size: 14.5px; }
.banner .mascot { position: absolute; right: 16px; bottom: -14px; width: 64px; height: auto; opacity: .95; }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.chips button, .chiplink { border: 0; padding: 4px 13px; border-radius: 999px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; line-height: 1.7; color: var(--mute); cursor: pointer; text-decoration: none; }
.chips button[aria-pressed="true"] { background: var(--ink); color: var(--paper); box-shadow: none; }
.chiplink { display: inline-block; background: color-mix(in srgb, var(--tint, var(--t-aqua)) 16%, var(--paper)); box-shadow: none; color: var(--ink); }

/* cards */
.cards { display: grid; gap: 12px; }
@media (min-width: 620px) { .cards { grid-template-columns: 1fr 1fr; } }
.card { display: block; min-width: 0; overflow: hidden; border-radius: 20px; background: var(--paper); box-shadow: 0 0 0 1px var(--line); color: inherit; text-decoration: none; }
.card-body { padding: 14px 16px 16px; }
.kind { display: inline-block; padding: 0 9px; border-radius: 999px; font-size: 12px; line-height: 22px; background: color-mix(in srgb, var(--tint, var(--t-aqua)) 20%, var(--paper)); }
.card h2, .card h3 { margin: 8px 0 4px; font-family: var(--display); font-weight: 400; font-size: 21px; line-height: 1.4; letter-spacing: 0.03em; text-wrap: balance; }
.card p { margin: 0; color: var(--mute); font-size: 15px; line-height: 1.7; }
.meta { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 10px; color: var(--mute); font-size: 13px; }
.meta .other { padding: 0 8px; border-radius: 999px; background: var(--sky); }
.tag-s { display: inline-block; margin-left: 6px; padding: 0 7px; border-radius: 999px; background: var(--highlight); color: var(--ink); font: 500 11px/1.8 var(--body); vertical-align: .2em; }
.poster { position: relative; display: block; aspect-ratio: 16 / 9; max-width: 100%; overflow: hidden; background: linear-gradient(165deg, color-mix(in srgb, var(--tint, var(--t-sky)) 30%, var(--mix)), color-mix(in srgb, var(--tint, var(--t-sky)) 62%, var(--mix))); color: var(--ink); }
.poster .play { position: absolute; left: 16px; bottom: 14px; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); box-shadow: 0 4px 14px rgba(20, 40, 60, 0.18); }
.poster .play svg { width: 18px; height: 18px; margin-left: 3px; }
.poster .dur { position: absolute; left: 72px; bottom: 25px; font-size: 13px; font-weight: 600; }
.poster .ptitle { position: absolute; left: 16px; top: 14px; right: 30%; font-family: var(--display); font-size: 22px; line-height: 1.35; }
.poster .mascot { position: absolute; right: 7%; bottom: -16%; width: 22%; height: auto; }
.empty { padding: 26px 18px; border-radius: 20px; background: var(--paper); box-shadow: 0 0 0 1px var(--line); text-align: center; color: var(--mute); }
.empty .mascot { width: 54px; height: auto; }

/* article reading: like a well-set WeChat article */
.article { padding-block: 6px 28px; }
.a-title { margin: 6px 0 10px; font-family: var(--display); font-weight: 400; font-size: clamp(27px, 7.4vw, 34px); line-height: 1.4; letter-spacing: 0.04em; text-wrap: balance; }
.a-title:lang(en) { letter-spacing: 0; }
.a-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-bottom: 12px; color: var(--mute); font-size: 14px; }
.a-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.note-box { margin: 0 0 22px; padding: 10px 14px; border-radius: 12px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); color: var(--mute); font-size: 14px; line-height: 1.65; }
.prose p { margin: 0 0 1.2em; }
.prose h2 { margin: 1.9em 0 0.7em; font-family: var(--display); font-weight: 400; font-size: 23px; line-height: 1.5; letter-spacing: 0.05em; }
.prose h2:lang(en) { letter-spacing: 0.01em; }
.prose h2::before { content: ""; display: block; width: 13px; height: 16px; margin-bottom: 8px; border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%; background: var(--t-aqua); }
.prose h3 { margin: 1.6em 0 0.6em; font-size: 18px; line-height: 1.55; }
.prose strong { font-weight: 600; background: linear-gradient(transparent 58%, var(--highlight) 0); }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.3em; }
.prose li { margin: 0.5em 0; padding-left: 0.2em; }
.prose li::marker { color: var(--water); }
.prose img { display: block; margin: 1.5em auto; border-radius: 12px; }
.prose hr { width: 40px; margin: 2em auto; border: 0; border-top: 2px solid var(--line); }
.verse { margin: 1.6em 0; padding: 18px 20px; border-radius: 18px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); font-family: var(--verse); font-size: 18px; line-height: 1.9; }
.verse p { margin: 0; }
.verse cite { display: block; margin-top: 8px; text-align: right; font-family: var(--body); font-style: normal; font-size: 13.5px; color: var(--mute); }
.more { margin-top: 34px; }
.sec-h { margin: 0 0 12px; font-family: var(--display); font-weight: 400; font-size: 22px; letter-spacing: 0.05em; }
.sec-h:lang(en) { letter-spacing: 0.01em; }

/* share */
.share { margin: 30px 0 8px; padding: 18px; border-radius: 20px; background: var(--paper); box-shadow: 0 0 0 1px var(--line); text-align: center; }
.share p { margin: 0 0 12px; color: var(--mute); font-size: 15px; line-height: 1.7; }
.share .share-wx { margin: 12px 0 0; font-size: 14px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border: 0; border-radius: 999px; font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer; }
.btn-water, .btn-life { background: var(--water); color: #fff; }
.btn-line { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-dawn { background: var(--sun); color: #2b2312; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: default; }
.btn:active { transform: translateY(1px); }

/* video player */
.player { position: relative; aspect-ratio: 16 / 9; max-width: 100%; margin: 6px 0 0; overflow: hidden; border-radius: 20px; background: var(--deep); }
.player iframe, .player video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.player-start { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.player-start .poster { height: 100%; }
.player-start:disabled { cursor: default; }
.player-soon { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); margin: 0; padding: 6px 16px; border-radius: 999px; background: var(--paper); font-size: 15px; font-weight: 600; white-space: nowrap; }
.lines { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.lines button { padding: 5px 14px; border: 0; border-radius: 999px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; cursor: pointer; }
.lines button[aria-pressed="true"] { background: var(--water); color: #fff; box-shadow: none; }

/* 呼吸 (daily prayer) */
.day { padding: 18px 18px 6px; border-radius: 24px; background: var(--paper); box-shadow: 0 0 0 1px var(--line); }
.day-date { display: flex; align-items: baseline; gap: 12px; }
.day-date .d { font-family: var(--display); font-size: 40px; line-height: 1.2; }
.day-date .w { color: var(--mute); font-size: 15px; }
.day h2 { margin: 4px 0 14px; font-family: var(--display); font-weight: 400; font-size: 23px; line-height: 1.45; letter-spacing: 0.04em; }
.day h2:lang(en) { letter-spacing: 0; }
.arch { list-style: none; margin: 0; padding: 0; }
.arch a { display: flex; gap: 14px; padding: 13px 2px; border-top: 1px solid var(--line); color: inherit; text-decoration: none; }
.arch time { flex: none; width: 7em; color: var(--mute); font-size: 15px; }
.arch span { font-size: 16px; line-height: 1.6; }

/* ask box (有问题想问？) and simple forms */
.ask { margin-top: 22px; padding: 18px 16px; border-radius: 22px; background: var(--paper); box-shadow: 0 0 0 1px var(--line); }
.ask h2 { margin: 0 0 2px; font-family: var(--display); font-weight: 400; font-size: 22px; letter-spacing: 0.04em; }
.ask h2:lang(en) { letter-spacing: 0; }
.ask p { margin: 0 0 12px; color: var(--mute); font-size: 14px; line-height: 1.6; }
.ask textarea, .ask input { display: block; width: 100%; margin: 0 0 10px; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--sky2); font-size: 16px; line-height: 1.6; }
.ask textarea { min-height: 120px; resize: vertical; }
.ask textarea:focus, .ask input:focus { outline: none; border-color: var(--water); }
.ask .row { display: grid; gap: 0 10px; }
@media (min-width: 520px) { .ask .row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.ask-done { margin: 6px 0 0; padding: 10px 14px; border-radius: 12px; background: var(--sky2); font-size: 15px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.info { padding: 16px; border-radius: 20px; background: var(--paper); box-shadow: 0 0 0 1px var(--line); }
.info h2 { margin: 0 0 4px; font-family: var(--display); font-weight: 400; font-size: 21px; }
.info p { margin: 0; color: var(--mute); font-size: 15px; }

/* footer */
.foot { padding-block: 22px 8px; text-align: center; color: var(--mute); font-size: 13px; line-height: 1.8; }
.foot b { font-family: var(--display); font-weight: 400; font-size: 16px; color: var(--ink); letter-spacing: .08em; }
.foot .mail { user-select: all; }

.toast { position: fixed; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom, 0px)); z-index: 50; transform: translateX(-50%); max-width: calc(100% - 32px); padding: 9px 16px; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: 14px; text-align: center; }
@media (prefers-reduced-motion: reduce) { .ring { display: none; } .tile { transition: none; } }

/* legacy names still used by the 搭子 pages */
.page-title { margin: 6px 0 4px; font-family: var(--display); font-weight: 400; font-size: 30px; letter-spacing: 0.06em; }
.page-lead { margin: 0 0 18px; color: var(--mute); font-size: 15.5px; }
.form-error { margin: 0 0 14px; padding: 10px 14px; border-radius: 10px; background: rgba(176, 68, 47, 0.1); color: #9a3a27; font-size: 15px; }
@media (prefers-color-scheme: dark) { .form-error { color: #f0a08f; } }


/* ---------- 搭子 pages (plaza, new group form, group page, admin) ---------- */
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 8px; }
.btn-sm { min-height: 36px; padding: 0 16px; font-size: 14px; }
.link-btn { padding: 4px 0; border: 0; background: none; color: var(--life); font-size: 15px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.link-btn.danger { color: #b0442f; }
.sub-h { margin: 0 0 12px; font-family: var(--serif); font-weight: 600; font-size: 20px; letter-spacing: 0.06em; }
.sub-h3 { margin: 22px 0 8px; font-size: 16px; font-weight: 600; }
.hint { margin: 6px 0 0; color: var(--stone); font-size: 14px; line-height: 1.7; }
.pill { display: inline-block; margin-left: 8px; padding: 0 9px; border-radius: 999px; background: var(--mist); color: var(--stone); font-size: 13px; }

.gtag {
  display: inline-block; padding: 1px 10px; border-radius: 999px;
  font-size: 13px; font-weight: 600; line-height: 1.8; letter-spacing: 0.04em; text-decoration: none;
}
.gtag-read { background: rgba(46, 106, 91, 0.12); color: #24564a; }
.gtag-pray { background: rgba(240, 196, 106, 0.32); color: #6f5110; }
.gtag-feed { background: rgba(62, 106, 138, 0.14); color: #2f5774; }
@media (prefers-color-scheme: dark) {
  .gtag-read { background: rgba(140, 200, 180, 0.16); color: #a9dccb; }
  .gtag-pray { background: rgba(240, 196, 106, 0.18); color: #f0c46a; }
  .gtag-feed { background: rgba(140, 185, 220, 0.16); color: #a9cbe6; }
}
.kind-row { display: flex; flex-wrap: wrap; gap: 8px; margin: -6px 0 22px; }

.tabs { display: flex; gap: 6px; margin: 26px 0 14px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button {
  flex: none; padding: 6px 14px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--mist); color: var(--ink); font-size: 15px;
}
.tabs button[aria-selected="true"] { background: var(--night); color: var(--on-night); }
.mine { margin-top: 24px; }

.glist { display: grid; gap: 12px; }
.gcard {
  display: block; padding: 18px 18px 16px; border-radius: 16px; color: inherit; text-decoration: none;
  background: var(--paper); box-shadow: 0 0 0 1px var(--line);
}
.gcard h3 { margin: 10px 0 6px; font-family: var(--serif); font-weight: 600; font-size: 19px; line-height: 1.5; letter-spacing: 0.03em; }
.gcard h3 a { color: inherit; }
.gmeta { margin: 0; font-size: 15px; line-height: 1.7; }
.gplan { margin: 2px 0 0; color: var(--stone); font-size: 14px; line-height: 1.7; }
.gfoot { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 10px 0 0; color: var(--stone); font-size: 13px; }
.gfoot span:first-child { color: var(--life); font-weight: 600; }

/* Forms */
.form fieldset { margin: 0 0 22px; padding: 0; border: 0; min-width: 0; }
.form legend { padding: 0; margin: 0 0 12px; font-family: var(--serif); font-weight: 600; font-size: 19px; letter-spacing: 0.06em; }
.field { display: block; margin: 0 0 14px; }
.field > span, .field-label { display: block; margin: 0 0 6px; font-size: 15px; font-weight: 600; }
.field-label { margin-top: 12px; }
.field em { margin-left: 8px; color: var(--stone); font-style: normal; font-weight: 400; font-size: 13px; }
.field input, .field select, .field textarea {
  display: block; width: 100%; min-height: 48px; padding: 10px 14px;
  border: 1.5px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--ink);
  font: 400 16px/1.6 var(--sans); letter-spacing: 0.01em; -webkit-appearance: none; appearance: none;
}
.field select {
  padding-right: 36px;
  background-image: linear-gradient(45deg, transparent 50%, var(--stone) 50%), linear-gradient(135deg, var(--stone) 50%, transparent 50%);
  background-position: calc(100% - 20px) 21px, calc(100% - 14px) 21px; background-size: 6px 6px; background-repeat: no-repeat;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--life); }
.row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.row2 > *, .field input, .field select { min-width: 0; }
.check { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 10px; font-size: 16px; line-height: 1.6; cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--life); }
.radios { margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input, .kind-opt input { position: absolute; width: 1px; height: 1px; min-height: 0; padding: 0; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-grid; place-items: center; min-width: 52px; height: 40px; padding: 0 10px;
  border-radius: 999px; background: var(--mist); font-size: 15px; cursor: pointer;
}
.chip input:checked + span { background: var(--life); color: var(--paper); font-weight: 600; }
.chip input:focus-visible + span { outline: 2px solid var(--dawn-deep); outline-offset: 2px; }
.kind-pick { display: grid; gap: 10px; }
.kind-opt { position: relative; display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; padding: 14px 16px; border-radius: 14px; box-shadow: inset 0 0 0 1.5px var(--line); cursor: pointer; }

.kind-opt small { color: var(--stone); font-size: 14px; }
.kind-opt:has(input:checked) { box-shadow: inset 0 0 0 2px var(--life); background: var(--mist); }
.kind-opt:has(input:focus-visible) { outline: 2px solid var(--dawn-deep); outline-offset: 2px; }

.covenant-card { margin: 8px 0 22px; padding: 20px; border-radius: 16px; background: var(--night); color: var(--on-night); }
.covenant-card h2 { margin: 0 0 10px; font-family: var(--serif); font-weight: 600; font-size: 19px; letter-spacing: 0.08em; color: var(--dawn); }
.covenant-card p { margin: 0 0 14px; line-height: 1.8; color: var(--on-night); }
.covenant-card .check { margin: 0; color: var(--on-night); }
.covenant-card .check input { accent-color: var(--dawn); }
.terms { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0; }
.terms dt { color: var(--on-night-2); font-size: 14px; line-height: 1.8; }
.terms dd { margin: 0; line-height: 1.8; }
.terms small { display: block; color: var(--on-night-2); font-size: 13px; }
.terms a { color: var(--dawn); }

/* Group page */
.g-title { margin: 12px 0 4px; font-family: var(--serif); font-weight: 600; font-size: clamp(1.55rem, 6.6vw, 2rem); line-height: 1.45; letter-spacing: 0.04em; }
.g-by { margin: 0 0 12px; color: var(--stone); font-size: 15px; }
.g-intro { margin: 0 0 18px; }
.now { margin: 0 0 22px; padding: 18px 20px; border-radius: 16px; box-shadow: 0 0 0 1.5px var(--line); }
.now-live { box-shadow: 0 0 0 2px var(--dawn); }
.now-h { margin: 0 0 4px; color: var(--stone); font-size: 14px; }
.now-live .now-h { color: var(--dawn-deep); font-weight: 600; }
.now-when { margin: 0 0 4px; font-family: var(--serif); font-weight: 600; font-size: 22px; }
.now-t { margin: 4px 0 0; color: var(--stone); font-size: 14px; }
.reading { display: flex; align-items: baseline; gap: 10px; margin: 2px 0 0; font-size: 17px; }
.reading span { flex: none; padding: 0 8px; border-radius: 6px; background: var(--highlight); font-size: 13px; }
.reading a { font-weight: 600; }
.notice { margin: 0 0 22px; padding: 16px 18px; border-radius: 14px; background: var(--mist); line-height: 1.75; }
.notice .btn { display: flex; margin-top: 12px; }
.join, .checkin, .tools, .records, .members, .owner { margin: 30px 0 0; }
.checkin-reading { margin: -4px 0 12px; }
.voice { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 16px; }
.voice audio { width: 100%; max-width: 360px; height: 40px; }
.voice .recording { box-shadow: inset 0 0 0 2px #b0442f; color: #b0442f; }
.voice-t { font-variant-numeric: tabular-nums; color: #b0442f; }
.tool-list { display: grid; gap: 10px; }
.tool {
  display: block; width: 100%; padding: 14px 16px; border: 0; border-radius: 14px; cursor: pointer;
  background: var(--mist); color: var(--ink); text-align: left; text-decoration: none; font: inherit;
}
.tool strong { display: block; font-size: 16px; }
.tool span { display: block; color: var(--stone); font-size: 14px; line-height: 1.6; }
.rec { padding: 14px 0; border-top: 1px solid var(--line); }
.rec header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; font-size: 14px; color: var(--stone); }
.rec header strong { color: var(--ink); font-size: 16px; }
.rec-reading { margin: 2px 0 6px; color: var(--stone); font-size: 14px; }
.rec-item { margin: 10px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--mist); }
.rec-who { margin: 0 0 4px; font-weight: 600; font-size: 15px; }
.rec-who time { margin-left: 10px; color: var(--stone); font-weight: 400; font-size: 13px; }
.rec-text { margin: 0; font-size: 16px; line-height: 1.8; }
.rec-item audio { width: 100%; height: 40px; margin-top: 8px; }
.count-list { list-style: none; margin: 0; padding: 0; }
.count-list li { display: flex; justify-content: space-between; padding: 10px 0; border-top: 1px solid var(--line); font-size: 15px; }
.mlist { list-style: none; margin: 0; padding: 0; }
.mlist li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.mlist em { margin-left: 8px; padding: 0 8px; border-radius: 999px; background: var(--mist); color: var(--stone); font-style: normal; font-size: 12px; }
.mlist small { display: block; color: var(--stone); font-size: 14px; }
.pend-act { display: flex; align-items: center; gap: 12px; flex: none; }
.leave { margin: 30px 0 0; }
.admin-key { display: flex; gap: 10px; align-items: flex-end; }
.admin-key .field { flex: 1; margin: 0; }
