.ministry-icon { background: color-mix(in srgb, var(--band) 26%, transparent); color: var(--ink); }

.row--child { padding-left: 22px; }
.row--child .row__icon { width: 28px; height: 28px; border-radius: 8px; }
.row--child::before { content: ""; position: absolute; left: 8px; top: 0; bottom: 50%; width: 9px; border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); border-bottom-left-radius: 6px; }
.row__meta { display: block; margin-top: 4px; font-size: 0.7647rem; font-weight: 600; color: var(--ink-3); }
.mine-list { margin-top: 14px; }

.audience-tag { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 999px; font-size: 0.7059rem; font-weight: 700; white-space: nowrap; }
.audience-tag--members { background: color-mix(in srgb, var(--primary) 13%, transparent); color: var(--primary); }
.audience-tag--everyone { background: var(--sand); color: var(--ink-2); }
.row__body .audience-tag { margin-top: 6px; }

.posts { border-top: 1px solid var(--line); }
.post__head .icon { color: var(--ink-3); flex: none; }

.event-line { display: flex; align-items: flex-start; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.event-line__date { display: grid; justify-items: center; width: 44px; flex: none; padding: 4px 0 5px; border-radius: 10px; background: var(--sand); font-size: 0.7059rem; font-weight: 700; color: var(--ink-2); text-transform: uppercase; letter-spacing: 0.04em; }
.event-line__date b { font-size: 1.1765rem; line-height: 1.1; color: var(--ink); letter-spacing: 0; font-variant-numeric: tabular-nums; }
.event-line__body { flex: 1; min-width: 0; display: grid; gap: 2px; }
.event-line__body strong { font-size: 0.9118rem; font-weight: 600; }
.event-line__body span { font-size: 0.8235rem; color: var(--ink-2); }
.event-line__body .event-line__detail { color: var(--ink-3); }

.practice { display: grid; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.practice__label { display: flex; align-items: center; gap: 14px; }
.practice__label > .icon { display: grid; place-items: center; width: 34px; height: 34px; padding: 8px; border-radius: 10px; background: color-mix(in srgb, var(--live) 16%, transparent); color: var(--accent); flex: none; }
.practice__label strong { display: block; font-size: 0.9118rem; font-weight: 600; }
.practice__label small { display: block; margin-top: 2px; font-size: 0.8235rem; color: var(--ink-2); }

.chat-start { margin-top: 14px; }

.duty { display: grid; gap: 8px; padding: 14px 16px 16px; border-radius: var(--radius); background: var(--sand); }
.duty__head { display: flex; align-items: center; gap: 10px; }
.duty__head .icon { display: grid; place-items: center; width: 30px; height: 30px; padding: 6px; border-radius: 9px; background: color-mix(in srgb, var(--band) 30%, transparent); color: var(--ink); flex: none; }
.duty__head strong { font-size: 1.0588rem; }
.duty__head span { margin-left: auto; font-size: 0.8235rem; font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.duty > p { font-size: 0.8824rem; color: var(--ink-2); }
.duty__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.duty__actions .btn--quiet { background: var(--bg); }
.duty__status { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 0.8529rem; font-weight: 600; color: var(--accent); }
.link-btn { min-height: 44px; margin: -12px 0; padding: 0 4px; font-size: 0.8529rem; font-weight: 600; color: var(--accent); }

.sheet__form { margin-top: 16px; }
.sheet__actions { margin-top: 18px; }
.control-label { margin-bottom: 8px; font-size: 0.8235rem; font-weight: 600; color: var(--ink-2); }
.stack > .control-label { margin-bottom: -6px; }
.reach { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 12px; font-size: 0.8529rem; line-height: 1.45; }
.reach .icon { flex: none; margin-top: 1px; }
.reach--members { background: color-mix(in srgb, var(--primary) 12%, transparent); color: var(--ink); }
.reach--members .icon { color: var(--primary); }
.reach--everyone { background: var(--sand); color: var(--ink); }
.reach--everyone .icon { color: var(--accent); }
.sheet .theme-option .pill { margin-left: 6px; vertical-align: 1px; }

.hero-note { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: 18px; background: var(--masthead-chip); font-size: 0.8235rem; font-weight: 600; }

.teaser strong { display: flex; align-items: center; gap: 8px; }
.teaser strong .icon { color: var(--primary); }
.teaser span { color: var(--ink-2); font-size: 0.8529rem; }

.zone { margin-top: 30px; padding-bottom: 6px; }
.zone__head { display: flex; align-items: center; gap: 12px; padding: 0 var(--gutter); }
.zone__head > .icon { display: grid; place-items: center; width: 34px; height: 34px; padding: 8px; border-radius: 10px; flex: none; }
.zone__head > span { flex: 1; min-width: 0; display: grid; font-size: 0.8235rem; color: var(--ink-2); }
.zone__head strong { font-size: 1.1765rem; font-weight: 700; letter-spacing: -0.015em; color: var(--ink); }
.zone--public .zone__head > .icon { background: var(--sand); color: var(--accent); }
.zone--team { padding: 22px 0 26px; background: var(--sand); box-shadow: inset 0 1px 0 var(--line), inset 0 -1px 0 var(--line); }
.zone--team .zone__head > .icon { background: var(--primary); color: var(--on-primary); }
.zone--team .duty, .zone--team .reach, .zone--team .event-line__date, .zone--team .roster-glance { background: var(--bg); }
.zone--team .duty__actions .btn--quiet { background: var(--sand); }
.zone > .section:first-of-type { margin-top: 18px; }
.zone__locked { font-size: 0.8824rem; color: var(--ink-2); max-width: 46ch; }

.team-door { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--radius); background: color-mix(in srgb, var(--band) 18%, var(--masthead-deep)); color: var(--on-masthead); box-shadow: var(--lift); transition: transform 160ms var(--ease-out); }
.team-door:active { transform: scale(0.98); }
.team-door__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--masthead-chip); flex: none; }
.team-door__body { flex: 1; min-width: 0; display: grid; gap: 2px; }
.team-door__body strong { font-size: 1.0588rem; }
.team-door__body span { font-size: 0.8235rem; color: var(--on-masthead-2); }

.group-hero--team { background: color-mix(in srgb, var(--band) 20%, var(--masthead-deep)); }
.team-badge { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 5px 11px; border-radius: 999px; background: var(--masthead-chip); font-size: 0.7647rem; font-weight: 700; color: var(--on-masthead); }

.roster-glance { margin-bottom: 12px; padding: 14px 16px; border-radius: var(--radius); background: var(--sand); }
.roster-glance__when { font-size: 0.8235rem; font-weight: 600; color: var(--ink-2); }
.roster-glance dl { display: grid; gap: 6px; margin: 10px 0 0; }
.roster-glance dl > div { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 12px; font-size: 0.8529rem; }
.roster-glance dt { color: var(--ink-2); }
.roster-glance dd { margin: 0; font-weight: 600; }
.roster-glance--you dd { color: var(--marker-ink); }

.slot { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 10px 0; text-align: left; border-bottom: 1px solid var(--line); }
.slot--button:active { background: var(--line); }
.slot__body { flex: 1; min-width: 0; display: grid; gap: 2px; }
.slot__position { font-size: 0.8235rem; font-weight: 600; color: var(--ink-2); }
.slot__people { font-size: 0.9118rem; font-weight: 600; }
.slot__people--empty { color: var(--danger); }
.slot__assign { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 18px; background: var(--sand); color: var(--primary); flex: none; }

.songs-title { display: flex; align-items: center; gap: 8px; margin: 22px 0 12px; font-size: 0.9706rem; font-weight: 700; }
.songs-title .icon { color: var(--accent); }
.song { display: grid; gap: 2px; padding: 14px 16px 6px; border-radius: var(--radius); background: var(--sand); }
.song > strong { font-size: 0.9412rem; }
.song > span { font-size: 0.8235rem; color: var(--ink-2); }
.song .list { margin-top: 10px; }
.song .row:last-child, .song .practice:last-child { border-bottom: 0; }
.song .player { background: var(--bg); }

.chat { display: grid; align-content: start; gap: 4px; min-height: calc(100dvh - var(--sat) - 48px - var(--tab-h) - var(--sab) - 96px); padding: 14px var(--gutter) 18px; }
.shell--no-tabs .chat { min-height: calc(100dvh - var(--sat) - 48px - var(--sab) - 96px); }
.chat__notice { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 8px; padding: 10px 12px; border-radius: 12px; background: var(--sand); font-size: 0.8235rem; color: var(--ink-2); }
.chat__notice .icon { flex: none; margin-top: 3px; color: var(--primary); }
.chat__day { margin: 12px 0 4px; text-align: center; font-size: 0.7647rem; font-weight: 600; color: var(--ink-3); }
.bubble { justify-self: start; max-width: 82%; padding: 8px 12px 6px; border-radius: 16px 16px 16px 6px; background: var(--sand); }
.bubble--first { margin-top: 6px; }
.bubble__author { display: block; margin-bottom: 2px; font-size: 0.7647rem; font-weight: 700; color: var(--accent); }
.bubble p { font-size: 0.9118rem; line-height: 1.4; }
.bubble time { display: block; margin-top: 2px; font-size: 0.6471rem; color: var(--ink-3); text-align: right; font-variant-numeric: tabular-nums; }
.bubble--mine { justify-self: end; border-radius: 16px 16px 6px 16px; background: var(--primary); color: var(--on-primary); }
.bubble--mine time { color: color-mix(in srgb, var(--on-primary) 70%, transparent); }

.chat-compose { position: sticky; bottom: calc(var(--tab-h) + var(--sab)); display: flex; align-items: flex-end; gap: 10px; padding: 10px var(--gutter); background: var(--bar); -webkit-backdrop-filter: saturate(1.8) blur(18px); backdrop-filter: saturate(1.8) blur(18px); box-shadow: 0 -0.5px 0 var(--line); }
.shell--no-tabs .chat-compose { bottom: var(--sab); }
.chat-compose textarea { flex: 1; min-height: 44px; max-height: 140px; padding: 11px 14px; border: 0; border-radius: 22px; background: var(--sand); color: var(--ink); font: inherit; font-size: 0.9412rem; resize: none; }
.chat-compose textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--accent); }
.chat-compose textarea::placeholder { color: var(--ink-3); }
.chat-compose__send { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 22px; background: var(--primary); color: var(--on-primary); flex: none; transition: transform 140ms var(--ease-out); }
.chat-compose__send:active { transform: scale(0.94); }
.chat-compose__send[disabled] { background: var(--sand-strong); color: var(--ink-3); }
.chat-compose__closed { display: flex; align-items: center; gap: 8px; min-height: 44px; font-size: 0.8529rem; font-weight: 600; color: var(--ink-2); }

.toggle-row--locked { color: var(--ink-3); }
.toggle-row--locked .icon { color: var(--ink-3); }
.toggle-row--locked strong { color: var(--ink-2); }

.request, .member-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.request__actions { display: flex; gap: 8px; }
.request__actions .btn { min-height: 40px; padding: 0 14px; }

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--tab-h) + var(--sab) + 16px);
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  max-width: calc(100% - 32px);
  padding: 12px 18px;
  border-radius: 22px;
  background: var(--masthead);
  color: var(--on-masthead);
  box-shadow: 0 8px 28px rgb(0 0 0 / 0.25);
  font-size: 0.8529rem;
  font-weight: 600;
  transform: translateX(-50%);
  animation: toast-in 280ms var(--ease-out) both;
}
.shell--no-tabs .toast { bottom: calc(var(--sab) + 16px); }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 12px); } }

.event-line--past { opacity: 0.5; }
.event-line .pill { align-self: center; }
.event-line__body .event-line__detail--changed { font-weight: 600; color: var(--marker-ink); }
