/* Connect CMS look: Avenir, a warm cream page, a dark menu on the left, white cards with soft icon tiles, orange highlights.
   Loaded after cms-app.css so it only has to say what is different. A church's own colour (theme.css) loads after this and
   replaces --action, --action-soft and --accent. */
:root {
  --paper: #f7f5f1;
  --surface: #ffffff;
  --ink: #292929;
  --ink-soft: #6b625b;
  --line: #e6e0d6;
  --action: #cf4710;
  --action-ink: #ffffff;
  --action-soft: #fff0e7;
  --accent: #e8531c;
  --radius: 10px;
  --tap: 2.9rem;
  --side: #171717;
  --side-ink: #c8c8c8;
  --side-hover: #282828;
  --side-active-bg: color-mix(in srgb, var(--action) 22%, #171717);
  --side-active-ink: color-mix(in srgb, var(--accent) 62%, #ffffff);
  --card-shadow: 0 4px 15px rgb(28 20 7 / .05);
  --sans: Avenir, "Avenir Next", "Helvetica Neue", "Nunito Sans", "Segoe UI", Roboto, Arial, sans-serif;
  font-family: var(--sans);
}
@media (prefers-color-scheme: dark) {
:root:not([data-theme="light"]) { --paper: #151311; --surface: #201d1a; --ink: #f2ede7; --ink-soft: #b8ada1; --line: #3a3530;
    --action: #ff8a57; --action-ink: #1d0e05; --action-soft: #3b2519; --accent: #ff8a57;
    --side: #0e0d0c; --card-shadow: none; }
}
:root[data-theme="dark"] { --paper: #151311; --surface: #201d1a; --ink: #f2ede7; --ink-soft: #b8ada1; --line: #3a3530;
    --action: #ff8a57; --action-ink: #1d0e05; --action-soft: #3b2519; --accent: #ff8a57;
    --side: #0e0d0c; --card-shadow: none; }
html { font-size: 16px; }
body, button, input, select, textarea { font-family: var(--sans); }
body { font-size: .95rem; line-height: 1.55; }
h1, h2, h3 { font-weight: 600; letter-spacing: .01em; }
h1 { font-size: clamp(1.65rem, 3.2vw, 2.15rem); letter-spacing: .02em; }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.05rem; }
a { color: var(--action); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* controls */
button, .button { border-width: 1px; border-color: var(--line); font-weight: 600; font-size: .9rem; border-radius: 9px; transition: border-color .15s, background .15s; }
button:hover:not(:disabled), a.button:hover { border-color: var(--accent); }
button.primary { background: var(--action); border-color: var(--action); color: var(--action-ink); }
button.primary:hover:not(:disabled) { filter: brightness(1.06); }
input:not([type]), input[type="number"], input[type="text"], input[type="email"], input[type="password"], input[type="search"], input[type="tel"], input[type="date"], input[type="time"], textarea, select {
  border-width: 1px; border-color: #d9d1c5; font-size: .95rem;
}
@media (prefers-color-scheme: dark) {
:root:not([data-theme="light"]) input:not([type]), :root:not([data-theme="light"]) input[type="number"], :root:not([data-theme="light"]) input[type="text"], :root:not([data-theme="light"]) input[type="email"], :root:not([data-theme="light"]) input[type="password"], :root:not([data-theme="light"]) input[type="search"], :root:not([data-theme="light"]) input[type="tel"], :root:not([data-theme="light"]) input[type="date"], :root:not([data-theme="light"]) input[type="time"], :root:not([data-theme="light"]) textarea, :root:not([data-theme="light"]) select { border-color: #4a443d; }
}
:root[data-theme="dark"] input:not([type]), :root[data-theme="dark"] input[type="number"], :root[data-theme="dark"] input[type="text"], :root[data-theme="dark"] input[type="email"], :root[data-theme="dark"] input[type="password"], :root[data-theme="dark"] input[type="search"], :root[data-theme="dark"] input[type="tel"], :root[data-theme="dark"] input[type="date"], :root[data-theme="dark"] input[type="time"], :root[data-theme="dark"] textarea, :root[data-theme="dark"] select { border-color: #4a443d; }
label { font-size: .88rem; font-weight: 600; }

/* the frame: menu on the left, page on the right */
.app-shell { display: flex; min-height: 100vh; }
.sidebar { width: 260px; flex: none; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; padding: 24px 14px; background: var(--side); color: var(--side-ink); }
.side-brand { display: flex; align-items: center; gap: 12px; padding: 0 10px 26px; }
.side-brand strong { display: block; color: #fff; font-size: .95rem; letter-spacing: .03em; line-height: 1.25; }
.side-brand small { display: block; color: #b4a99c; font-size: .72rem; margin-top: 3px; }
.side-brand .brandmark { height: 2.6rem; max-width: 3.4rem; flex: none; }
.side-brand .brandmark.badge { min-width: 2.6rem; height: 2.6rem; border-radius: 12px; }
.nav-label { margin: 0; padding: 8px 13px 10px; color: #938f89; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; }
.side-nav { display: grid; gap: 3px; }
.nav-item, .nav-row { border-radius: 10px; }
.nav-item { display: flex; align-items: center; gap: 13px; min-height: 2.75rem; padding: 0 13px; color: var(--side-ink); text-decoration: none; font-size: .9rem; font-weight: 500; flex: 1; min-width: 0; }
.nav-item:hover { background: var(--side-hover); color: #fff; }
.nav-item.selected, .nav-row.selected { background: var(--side-active-bg); color: var(--side-active-ink); }
.nav-item.selected { font-weight: 700; }
.nav-row { display: flex; align-items: center; }
.nav-row.selected .nav-item { color: var(--side-active-ink); font-weight: 700; background: transparent; }
.nav-row:not(.selected):hover { background: var(--side-hover); }
.nav-row .nav-item:hover { background: transparent; }
.nav-icon { display: inline-flex; width: 22px; height: 22px; flex: none; }
.nav-icon svg { width: 20px; height: 20px; }
.nav-chevron { min-height: 2.5rem; width: 2.5rem; padding: 0; border: 0; background: transparent; color: #b9afa7; display: grid; place-items: center; }
.nav-chevron svg { width: 17px; height: 17px; transition: transform .15s; }
.nav-chevron[aria-expanded="true"] svg { transform: rotate(90deg); }
.nav-chevron:hover { color: #fff; border-color: transparent; }
.subpages { margin: 3px 0 9px 23px; padding: 3px 0 3px 13px; border-left: 1px solid #644335; display: grid; gap: 2px; }
.subpages[hidden] { display: none; }
.subpage { display: block; padding: 9px 11px; border-radius: 7px; color: #cfc7bf; text-decoration: none; font-size: .82rem; font-weight: 500; }
.subpage:hover { background: #292929; color: #fff; }
.subpage.active { background: color-mix(in srgb, var(--action) 24%, #171717); color: var(--side-active-ink); font-weight: 700; }
.side-foot { margin-top: auto; padding: 26px 13px 4px; color: #ded5c9; font-size: .8rem; line-height: 1.6; }
.side-foot span { display: block; color: #888; }
.side-foot strong { font-weight: 600; overflow-wrap: anywhere; }

.main { flex: 1; min-width: 0; }
.topbar { position: static; display: flex; align-items: center; gap: .25rem 1rem; height: 72px; padding: 0 36px; background: var(--surface); border-bottom: 1px solid var(--line); flex-wrap: nowrap; }
.breadcrumb { margin-right: auto; font-size: .88rem; font-weight: 600; display: flex; align-items: center; min-width: 0; }
.breadcrumb .crumb-church { color: var(--ink-soft); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.breadcrumb .crumb-sep { color: #b7afa5; padding: 0 8px; }
.breadcrumb .where { margin: 0; white-space: nowrap; }
.topbar .who { font-size: .82rem; color: var(--ink-soft); white-space: nowrap; }
.topbar button.quiet { min-height: 2.5rem; }
.menu-toggle { display: none; min-height: 2.5rem; width: 2.5rem; padding: 0; border: 0; background: transparent; color: var(--ink); place-items: center; }
.menu-toggle svg { width: 24px; height: 24px; }
.scrim { display: none; }
.frame { max-width: 1250px; padding: 32px 36px 64px; }
.pagehead { padding: .25rem 0 1.25rem; }

/* the big welcome band */
.hero { border-radius: 18px; background: linear-gradient(115deg, #262626 0%, #171717 66%, #392218 100%); color: #fff; padding: 34px 40px; margin-bottom: 28px; }
.hero h1 { color: #fff; margin: 0 0 .4rem; font-size: clamp(1.7rem, 3.4vw, 2.5rem); letter-spacing: -.01em; }
.hero p { color: #d8d0c6; max-width: 36rem; margin: 0; font-size: 1rem; }

/* cards: soft icon tile, name, one line, arrow */
.spaces { gap: 16px; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); margin-top: 0; }
.space { position: relative; gap: 0; min-height: 11rem; padding: 22px; border: 1px solid var(--line); border-left-width: 1px; border-radius: 15px; background: var(--surface); box-shadow: var(--card-shadow); transition: transform .15s, border-color .15s; }
a.space:hover { transform: translateY(-3px); border-color: var(--accent); }
.tile-icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 16px; border-radius: 12px; background: var(--action-soft); color: var(--action); }
.tile-icon svg { width: 24px; height: 24px; }
.space strong { font-size: 1.05rem; font-weight: 600; }
.tile-text { font-size: .82rem; color: var(--ink-soft); line-height: 1.5; margin-top: 6px; }
.tile-arrow { margin-top: auto; padding-top: 12px; color: var(--accent); }
.tile-arrow svg { width: 18px; height: 18px; }
.space[aria-disabled="true"] { opacity: 1; background: transparent; box-shadow: none; border-style: dashed; }
.space[aria-disabled="true"] .tile-icon { background: #efebe4; color: #9a9189; }
.space[aria-disabled="true"] strong { color: var(--ink-soft); }

/* panels, tables, tags */
.panel-plain, .settings-block, .form-panel, .panel, .note, .register, .people, .prefs { border-width: 1px; border-radius: 14px; box-shadow: var(--card-shadow); }
.card-grid { gap: 16px; }
.card-grid .panel-plain:nth-child(4n+1) { border-top: 4px solid #e8531c; }
.card-grid .panel-plain:nth-child(4n+2) { border-top: 4px solid #343434; }
.card-grid .panel-plain:nth-child(4n+3) { border-top: 4px solid #f5ad42; }
.card-grid .panel-plain:nth-child(4n+4) { border-top: 4px solid #b64a2a; }
.panel-plain h2 { font-size: 1.05rem; }
.people thead th, .register th { font-size: .8rem; letter-spacing: .02em; background: var(--paper); }
.people th, .people td { padding: .6rem 1rem; }
.people tbody tr:hover { background: color-mix(in srgb, var(--action-soft) 55%, var(--surface)); }
.tag { border-width: 1px; font-weight: 600; }
.notice { background: var(--action-soft); border-left-color: var(--accent); }
.tabs button[aria-selected="true"] { border-bottom-color: var(--accent); color: var(--action); }

/* reports */
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 16px; margin-bottom: 20px; }
.metric { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: 12px; padding: 14px 18px 16px; box-shadow: var(--card-shadow); display: grid; gap: 2px; }
.metric-label { font-size: .8rem; color: var(--ink-soft); }
.metric strong { font-size: 1.9rem; font-weight: 600; line-height: 1.15; }
.chart-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(22rem, 1fr)); gap: 16px; }
.chart-panel .soft { font-size: .85rem; margin-bottom: 1rem; }
.donut-layout { display: flex; flex-wrap: wrap; gap: 18px 24px; align-items: center; justify-content: center; }
.donut-layout { container-type: inline-size; }
/* The ring is half as wide as its card: the ring fills 182/220 of the drawing and the card is the layout plus 42px of padding. */
.donut { width: calc(60.5cqw + 25.4px); flex: none; height: auto; }
.donut-legend { flex: 1 1 12rem; min-width: 0; }
.donut-total { font-size: 34px; font-weight: 600; fill: var(--ink); }
.donut-unit { font-size: 13px; fill: var(--ink-soft); }
.donut-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.donut-legend li { display: flex; align-items: center; gap: 8px; min-height: 30px; padding: 3px 8px; border-radius: 6px; background: color-mix(in srgb, var(--paper) 70%, var(--surface)); font-size: .82rem; }
.donut-legend i { width: 10px; height: 10px; border-radius: 2px; flex: none; }
.donut-legend span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.donut-legend b { font-weight: 600; text-align: right; }
.donut-legend small { display: block; font-size: .68rem; font-weight: 400; color: var(--ink-soft); line-height: 1.1; }

/* before sign-in */
.auth-card { border-width: 1px; border-top-width: 6px; border-radius: 16px; box-shadow: 0 6px 24px rgb(48 40 32 / .06); }
.auth-card h1 { font-size: 1.6rem; }

/* phones and small tablets: the menu slides in */
@media (max-width: 1000px) {
  .sidebar { position: fixed; z-index: 30; left: 0; top: 0; transform: translateX(-100%); transition: transform .2s; }
  .sidebar.open { transform: none; }
  .scrim.show { display: block; position: fixed; inset: 0; z-index: 20; background: rgb(0 0 0 / .5); border: 0; border-radius: 0; min-height: 0; padding: 0; }
  .menu-toggle { display: grid; }
  .topbar { padding: 0 16px; gap: .25rem .5rem; }
  .topbar .who, .breadcrumb .crumb-church, .breadcrumb .crumb-sep { display: none; }
  .frame { padding: 20px 16px 48px; }
  .hero { padding: 26px 22px; }
}
@media (prefers-reduced-motion: reduce) { .sidebar, .space, .nav-chevron svg { transition: none; } a.space:hover { transform: none; } }

/* ---- type: Avenir, light large headings, calm body text ---- */
:root { --ink-body: #4d4d4d; --peach: color-mix(in srgb, var(--action) 6%, #ffffff); --peach-line: color-mix(in srgb, var(--action) 22%, #ffffff); --orange-text: color-mix(in srgb, var(--action) 80%, #000000); }
body { color: var(--ink-body); }
@media (prefers-color-scheme: dark) {
:root:not([data-theme="light"]) { --ink-body: #e0d8cf; --peach: color-mix(in srgb, var(--action) 14%, #1d1a17); --peach-line: color-mix(in srgb, var(--action) 38%, #1d1a17); --orange-text: color-mix(in srgb, var(--accent) 80%, #ffffff); }
}
:root[data-theme="dark"] { --ink-body: #e0d8cf; --peach: color-mix(in srgb, var(--action) 14%, #1d1a17); --peach-line: color-mix(in srgb, var(--action) 38%, #1d1a17); --orange-text: color-mix(in srgb, var(--accent) 80%, #ffffff); }
h1, h2, h3 { color: var(--ink); }
h1 { font-weight: 400; }
h2 { font-weight: 500; }

/* page heading: church / page, big light title, one line underneath */
.page-title { text-align: center; padding: 6px 0 22px; }
.eyebrow { margin: 0 0 6px; max-width: none; font-size: .72rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--orange-text); }
.page-title h1 { margin: 0; font-size: clamp(2rem, 4.6vw, 2.9rem); font-weight: 400; letter-spacing: .01em; line-height: 1.15; }
.page-sub { margin: 10px auto 0; max-width: 40rem; color: var(--ink-soft); font-size: 1rem; }
.page-title h1 .tag { vertical-align: middle; font-size: .9rem; }

/* toolbar: a white panel of buttons */
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: flex-end; padding: 10px 14px; margin-bottom: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--card-shadow); }
.toolbar > * { margin: 0; }
.toolbar h1 { display: none; }
.toolbar .button, .toolbar button { min-height: 2.4rem; padding: 0 1rem; font-size: .85rem; }

/* coloured sections */
.help { margin: 0 0 22px; background: var(--peach); border: 1px solid var(--peach-line); border-left: 5px solid var(--accent); border-radius: 12px; padding: 14px 18px; }
.help-head { display: flex; align-items: center; gap: 10px; }
.help-head strong { color: var(--orange-text); font-size: .88rem; }
.help-head .soft { font-size: .78rem; margin-right: auto; }
.help-icon { display: inline-flex; color: var(--accent); }
.help-icon svg { width: 18px; height: 18px; }
.help-toggle { min-height: 2rem; width: 2rem; padding: 0; border: 0; background: transparent; font-size: 1.2rem; line-height: 1; color: var(--ink-soft); }
.help-body { padding-top: 8px; }
.help-intro { margin: 0 0 8px; font-size: .85rem; color: var(--ink-soft); max-width: none; }
.help-topics { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 2px; }
.help-q { min-height: 2rem; padding: 2px 0; border: 0; background: transparent; text-align: left; color: var(--orange-text); font-size: .85rem; font-weight: 500; }
.help-q:hover { text-decoration: underline; border: 0; }
.help-a { margin: 2px 0 8px 14px; font-size: .85rem; max-width: 60rem; color: var(--ink-body); }
.help-search label { font-size: .75rem; color: var(--ink-soft); margin-bottom: 4px; }
.help-row { display: flex; gap: 8px; max-width: 34rem; }
.help-row input { min-height: 2.4rem; }
.help-row button { min-height: 2.4rem; background: #303030; border-color: #303030; color: #fff; white-space: nowrap; }
.help-answers { font-size: .85rem; color: var(--ink-soft); margin-top: 6px; }
.panel-plain, .settings-block { background: var(--surface); }
.notice { background: var(--peach); border: 1px solid var(--peach-line); border-left: 5px solid var(--accent); border-radius: 12px; }

/* the four status cards (open, in progress, overdue, completed), ready for the Tasks screens */
.counts-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 14px; margin-bottom: 18px; }
.count-card { display: flex; align-items: baseline; gap: 10px; padding: 16px 18px; border-radius: 14px; border: 1px solid; border-top-width: 3px; font-size: .9rem; }
.count-card strong { font-size: 1.7rem; font-weight: 500; }
.count-card.open { background: #eceffd; border-color: #c9d0f6; color: #3b4aa8; }
.count-card.progress { background: #fdeadd; border-color: #f6cfb4; color: #a8461a; }
.count-card.overdue { background: #fbe9ea; border-color: #f0c4c8; color: #9b2c3a; }
.count-card.done { background: #e6f3e9; border-color: #bfdfc8; color: #2c6a3f; }

/* dashboard-style cards: bigger icon tile and an "Open" line */
.tile-icon { width: 48px; height: 48px; }
.tile-arrow { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; font-weight: 600; color: var(--orange-text); }
.space strong { font-weight: 600; }

/* search boxes and drop-downs are dark, as in the ChatGPT version; typing forms stay light so long entries are easy to read */
input[type="search"], .toolbar select, .filters select, .help-row input { background: #303030; color: #fff4e8; border-color: #595959; color-scheme: dark; }
input[type="search"]::placeholder, .help-row input::placeholder { color: #d9c9b8; opacity: 1; }
input[type="search"]:focus-visible { outline: 3px solid var(--accent); }
@media (max-width: 1000px) { .toolbar { justify-content: stretch; } .page-title h1 { font-size: clamp(1.8rem, 8vw, 2.3rem); } }

/* ================= depth and motion =================
   Cards sit on soft layered shadows and rise towards you when you point at them; buttons dip when pressed; pages, menus,
   dialogs and messages glide in on a gentle spring. Everything that moves is switched off for people who ask their device
   for reduced motion (at the very end of this file). */
:root {
  --ease: cubic-bezier(.32, .72, 0, 1); /* the curve iOS uses for sheets and navigation */
  --spring: cubic-bezier(.3, 1.28, .5, 1);
  --shadow-1: 0 1px 2px rgb(60 40 20 / .06), 0 4px 12px rgb(60 40 20 / .07), 0 10px 24px rgb(60 40 20 / .04);
  --shadow-2: 0 2px 4px rgb(60 40 20 / .08), 0 10px 22px rgb(60 40 20 / .12), 0 24px 44px rgb(60 40 20 / .10);
  --shadow-press: 0 1px 2px rgb(60 40 20 / .10), 0 2px 6px rgb(60 40 20 / .08);
  --card-shadow: var(--shadow-1);
}
@media (prefers-color-scheme: dark) {
:root:not([data-theme="light"]) { --shadow-1: 0 1px 2px rgb(0 0 0 / .5), 0 6px 16px rgb(0 0 0 / .35); --shadow-2: 0 2px 4px rgb(0 0 0 / .5), 0 16px 36px rgb(0 0 0 / .5); --shadow-press: 0 1px 3px rgb(0 0 0 / .5); --card-shadow: var(--shadow-1); }
}
:root[data-theme="dark"] { --shadow-1: 0 1px 2px rgb(0 0 0 / .5), 0 6px 16px rgb(0 0 0 / .35); --shadow-2: 0 2px 4px rgb(0 0 0 / .5), 0 16px 36px rgb(0 0 0 / .5); --shadow-press: 0 1px 3px rgb(0 0 0 / .5); --card-shadow: var(--shadow-1); }

/* everything with a surface gets the shadow */
.space, .panel-plain, .metric, .count-card, .help, .toolbar, .settings-block, .form-panel, .panel, .note, .people, .register, .prefs, .sample, .auth-card, .dialog, .chart-panel { box-shadow: var(--shadow-1); }
.hero { box-shadow: 0 2px 4px rgb(0 0 0 / .18), 0 14px 34px rgb(30 15 5 / .22); }
.space, .panel-plain, .metric, .count-card, .help, .toolbar, .note, .rowbtn, .session {
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .2s, background-color .2s;
}

/* controls respond to a finger or pointer straight away */
button, .button, a.space, .nav-item, .subpage, .rowbtn, .help-q {
  transition: transform .18s var(--ease), box-shadow .25s var(--ease), background-color .2s, border-color .2s, color .2s, filter .2s;
  -webkit-tap-highlight-color: transparent;
}
button.primary, a.button.primary { box-shadow: 0 1px 2px rgb(150 50 10 / .25), 0 6px 14px rgb(207 71 16 / .22); }
.toolbar .button, .toolbar button:not(.primary) { box-shadow: 0 1px 2px rgb(60 40 20 / .06); }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { transition: outline-offset .15s var(--ease); }
input, select, textarea { transition: border-color .2s, box-shadow .25s var(--ease), background-color .2s; }
input:focus, select:focus, textarea:focus { box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
.people tbody tr { transition: background-color .2s; }
.donut-legend li { transition: transform .2s var(--ease), background-color .2s; }
.nav-item, .nav-chevron svg { transition: background-color .2s, color .2s, transform .25s var(--spring); }

@media (prefers-reduced-motion: no-preference) {
  /* pointing at a card lifts it; pressing it sinks it back */
  a.space:hover, .metric:hover, .card-grid .panel-plain:hover, .chart-panel:hover, .count-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
  a.space:active { transform: translateY(-1px) scale(.985); box-shadow: var(--shadow-press); transition-duration: .1s; }
  button:active:not(:disabled), a.button:active, .rowbtn:active { transform: scale(.965); box-shadow: var(--shadow-press); transition-duration: .08s; }
  button.primary:hover:not(:disabled), a.button.primary:hover { transform: translateY(-1px); box-shadow: 0 2px 4px rgb(150 50 10 / .25), 0 10px 20px rgb(207 71 16 / .28); }
  .toolbar .button:hover, .toolbar button:hover:not(:disabled) { transform: translateY(-1px); }
  .nav-item:hover .nav-icon svg { transform: scale(1.12); }
  .nav-icon svg { transition: transform .25s var(--spring); }
  .donut-legend li:hover { transform: translateX(3px); }
  .help-q:hover { transform: translateX(3px); }

  /* a page arrives: the heading, then the help box, then the content, one after another */
  @keyframes arrive { from { opacity: 0; transform: translateY(14px) scale(.992); } to { opacity: 1; transform: none; } }
  @keyframes arrive-soft { from { opacity: 0; } to { opacity: 1; } }
  .frame.enter > * { animation: arrive .5s var(--ease) backwards; }
  .frame.enter > :nth-child(2) { animation-delay: .06s; }
  .frame.enter > :nth-child(3) { animation-delay: .12s; }
  .frame.enter > :nth-child(n+4) { animation-delay: .18s; }
  .frame.enter .spaces > *, .frame.enter .metrics > *, .frame.enter .card-grid > *, .frame.enter .chart-grid > * { animation: arrive .55s var(--ease) backwards; }
  .frame.enter .spaces > :nth-child(1), .frame.enter .metrics > :nth-child(1), .frame.enter .card-grid > :nth-child(1), .frame.enter .chart-grid > :nth-child(1) { animation-delay: .18s; }
  .frame.enter .spaces > :nth-child(2), .frame.enter .metrics > :nth-child(2), .frame.enter .card-grid > :nth-child(2), .frame.enter .chart-grid > :nth-child(2) { animation-delay: .24s; }
  .frame.enter .spaces > :nth-child(3), .frame.enter .metrics > :nth-child(3), .frame.enter .card-grid > :nth-child(3) { animation-delay: .30s; }
  .frame.enter .spaces > :nth-child(4), .frame.enter .metrics > :nth-child(4), .frame.enter .card-grid > :nth-child(4) { animation-delay: .36s; }
  .frame.enter .spaces > :nth-child(n+5) { animation-delay: .42s; }
  .hero { animation: arrive .6s var(--ease) backwards; }

  /* the help box folds and unfolds; answers fade open; menu groups open smoothly */
  .help-wrap { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .4s var(--ease); }
  .help.collapsed .help-wrap { grid-template-rows: 0fr; }
  .help-wrap > .help-body { overflow: hidden; min-height: 0; transition: opacity .3s; }
  .help.collapsed .help-wrap > .help-body { opacity: 0; }
  .help-a:not([hidden]), .subpages:not([hidden]) { animation: arrive-soft .35s var(--ease) backwards; }
  .subpages:not([hidden]) .subpage { animation: arrive .4s var(--ease) backwards; }
  .subpages:not([hidden]) .subpage:nth-child(2) { animation-delay: .04s; }
  .subpages:not([hidden]) .subpage:nth-child(3) { animation-delay: .08s; }
  .help-toggle { transition: transform .35s var(--spring); }
  .help.collapsed .help-toggle { transform: rotate(90deg); }

  /* lists and results */
  .people tbody tr, .church-results li, .help-topics li, .inbox > li { animation: arrive .4s var(--ease) backwards; }
  .people tbody tr:nth-child(2), .church-results li:nth-child(2) { animation-delay: .03s; }
  .people tbody tr:nth-child(3), .church-results li:nth-child(3) { animation-delay: .06s; }
  .people tbody tr:nth-child(n+4), .church-results li:nth-child(n+4) { animation-delay: .09s; }

  /* ring charts draw in; menu on phones glides with a little spring; dialogs and messages float up */
  @keyframes ring-in { from { opacity: 0; transform: rotate(-70deg) scale(.82); } to { opacity: 1; transform: none; } }
  .donut { animation: ring-in .9s var(--ease) backwards; animation-delay: .25s; transform-origin: 50% 50%; }
  @keyframes pop-in { from { opacity: 0; transform: translateY(18px) scale(.94); } to { opacity: 1; transform: none; } }
  .dialog[open] { animation: pop-in .38s var(--spring) backwards; }
  .dialog[open]::backdrop { animation: arrive-soft .3s backwards; backdrop-filter: blur(6px); }
  @keyframes toast-in { from { opacity: 0; transform: translate(-50%, 24px) scale(.92); } to { opacity: 1; transform: translateX(-50%); } }
  @keyframes toast-out { to { opacity: 0; transform: translate(-50%, 12px) scale(.96); } }
  .toast { animation: toast-in .45s var(--spring) backwards; box-shadow: var(--shadow-2); }
  .toast.leaving { animation: toast-out .3s var(--ease) forwards; }
  .bell-count { animation: arrive .4s var(--spring) backwards; }
}
@media (max-width: 1000px) {
  .sidebar { transition: transform .45s var(--ease), box-shadow .45s var(--ease); box-shadow: none; }
  .sidebar.open { box-shadow: 12px 0 40px rgb(0 0 0 / .35); }
  .scrim, .scrim.show { display: block; position: fixed; inset: 0; z-index: 20; background: rgb(0 0 0 / .45); border: 0; border-radius: 0; min-height: 0; padding: 0; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .35s, visibility .35s; backdrop-filter: blur(3px); }
  .scrim.show { opacity: 1; visibility: visible; pointer-events: auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .help.collapsed .help-wrap { display: none; }
}

/* Calendar: a month of days, each holding short links to its events. */
.monthbar { display: flex; align-items: center; gap: 10px; margin: 6px 0 14px; }
.monthname { font-size: 1.25rem; font-weight: 500; min-width: 11rem; text-align: center; }
.month { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1px; background: #e4e0d8; border: 1px solid #e4e0d8; border-radius: 14px; overflow: hidden; margin-bottom: 20px; box-shadow: var(--shadow-1); }
.dayname { background: #f0ede6; padding: 8px 6px; font-size: .78rem; text-align: center; color: #6b6b6b; }
.day { background: var(--surface, #fff); min-height: 6.5rem; padding: 6px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.day.other { background: #faf8f4; color: #9a9a9a; }
.day.today .daynum { background: var(--action); color: var(--action-ink, #fff); border-radius: 999px; }
.daynum { align-self: flex-start; min-width: 1.6rem; height: 1.6rem; line-height: 1.6rem; text-align: center; font-size: .82rem; padding: 0 4px; }
.chip { display: block; font-size: .74rem; line-height: 1.3; padding: 2px 6px; border-radius: 6px; background: var(--action-soft, #fdeadd); color: var(--action); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip.cancelled { text-decoration: line-through; background: #eee; color: #777; }
.more { font-size: .72rem; }
.row { display: flex; gap: 14px; flex-wrap: wrap; }
.row .field { flex: 1 1 8rem; }
.wrap { white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 640px) { .day { min-height: 4.2rem; padding: 3px; } .chip { font-size: .66rem; padding: 1px 3px; } .monthname { min-width: 0; flex: 1; } }

/* "Continue with Google / Apple" under the sign-in form */
.outside { display: grid; gap: 10px; margin-top: 14px; }
.outside:empty { display: none; }
.outside .button { text-align: center; }

button.danger { color: #9b2c3a; border-color: #f0c4c8; }
button.danger:hover { background: #fbe9ea; }

.bars { display: flex; align-items: flex-end; gap: 8px; height: 190px; list-style: none; padding: 8px 0 0; margin: 12px 0 0; }
.bar { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; font-size: 12px; }
.bar-fill { display: block; width: 100%; max-width: 38px; background: #e8531c; border-radius: 6px 6px 0 0; }
.bar-n { font-weight: 700; }
.bar-d { color: #666; white-space: nowrap; }
.table-wrap { overflow-x: auto; }
.table-wrap table { border-collapse: collapse; width: 100%; }
.table-wrap th, .table-wrap td { text-align: left; padding: 8px 12px; border-bottom: 1px solid #ece8e4; }

@media (max-width: 600px) { .bar:nth-child(even) .bar-d { visibility: hidden; } .bar-n { font-size: 10px; } }

.media-player { width: 100%; max-width: 720px; display: block; margin: 8px 0; }
video.media-player { background: #000; border-radius: 10px; }
.big-idea { font-size: 1.15rem; }
.grow { flex: 1; }
.mini { width: 5rem; display: inline-block; }
.block { border-left: 4px solid #e8531c; }
.block-scripture { border-left-color: #343434; }
.block-illustration { border-left-color: #2f7f6f; }
.block-application { border-left-color: #b7791f; }
.preach { position: fixed; inset: 0; z-index: 100; background: #111; color: #fff4e8; display: flex; flex-direction: column; }
.preach-bar { display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: #1d1d1d; flex-wrap: wrap; }
.preach-body { flex: 1; overflow: auto; padding: 24px clamp(16px, 6vw, 80px); line-height: 1.45; }
.preach-kind { color: #f4a27a; font-size: .6em; margin: 0 0 .5em; }
.preach-text { white-space: pre-wrap; margin: 0; }
.preach-clock.over { color: #ff8a8a; font-weight: 700; }
.preach-nav { display: flex; gap: 12px; padding: 12px 16px; justify-content: space-between; background: #1d1d1d; }
.preach-nav button { min-width: 8rem; }

/* Presenter */
.pr-top { display: flex; gap: 1rem; flex-wrap: wrap; align-items: end; }
.pr-live { display: grid; grid-template-columns: minmax(10rem, 1fr) minmax(16rem, 2fr) minmax(14rem, 1.2fr); gap: 1rem; align-items: start; margin: 1rem 0; }
.pr-items { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.pr-item { width: 100%; text-align: left; padding: .5rem .6rem; border: 1px solid var(--line, #d7dce5); border-radius: 8px; background: transparent; font: inherit; cursor: pointer; }
.pr-item.on { border-color: var(--accent, #e8833a); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.pr-slides { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: .5rem; margin-bottom: .75rem; }
.pr-slide { text-align: left; padding: .6rem; border: 1px solid var(--line, #d7dce5); border-radius: 8px; background: transparent; font: inherit; cursor: pointer; display: grid; gap: .25rem; }
.pr-slide.live { border-color: #2e9e5b; box-shadow: 0 0 0 2px #2e9e5b inset; }
.pr-slide-text { white-space: pre-wrap; font-size: .85rem; opacity: .85; }
.pr-preview { position: relative; aspect-ratio: 16 / 9; width: 100%; border: 1px solid var(--line, #d7dce5); border-radius: 6px; overflow: hidden; background: #000; margin-bottom: .75rem; }
.pr-preview .scr { position: absolute; }
.pr-controls { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1rem; }
.pr-plan-items { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .4rem; }
.pr-plan-items li { display: flex; justify-content: space-between; gap: .5rem; align-items: center; padding: .4rem .6rem; border: 1px solid var(--line, #d7dce5); border-radius: 8px; }
@media (max-width: 1100px) { .st-canvases { flex-wrap:wrap; } }
@media (max-width: 900px) { .pr-live { grid-template-columns: 1fr; } }

/* Birthdays */
.bday-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.bday-row { display: flex; align-items: center; gap: .75rem; padding: .55rem .75rem; border: 1px solid var(--line, #ddd); border-radius: .6rem; background: var(--paper, #fff); }
.bday-row.today { border-color: var(--accent, #c2410c); background: color-mix(in srgb, var(--accent) 12%, var(--paper)); }
.bday-date { min-width: 4.5rem; font-weight: 700; }
.bday-name { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.bday-canvas { display: block; width: 100%; max-width: 26rem; height: auto; border-radius: .6rem; box-shadow: 0 6px 24px rgba(0,0,0,.18); }
.bday-poster { display: flex; flex-wrap: wrap; gap: 1.25rem; align-items: flex-start; }
.bday-wish { padding: .5rem 0; border-top: 1px solid var(--line, #ddd); }

/* eLearning (AIL) */
:root { --ail-good: #17895a; --ail-good-bg: #e3f5ec; --ail-bad: #c63d3d; --ail-bad-bg: #fbe8e8; --ail-gold: #f2a900; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --ail-good-bg: #12362a; --ail-bad-bg: #3d1b1b; } }
:root[data-theme="dark"] { --ail-good-bg: #12362a; --ail-bad-bg: #3d1b1b; }
.grow { flex: 1; min-width: 0; }
.ail-achieve { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: center; padding: 1rem 1.25rem; border: 1px solid var(--line); border-radius: 1rem; background: var(--surface, var(--paper)); margin-bottom: 1rem; }
.ail-level-badge { display: grid; place-items: center; width: 4rem; height: 4rem; border-radius: 50%; font-weight: 800; font-size: 1.15rem; color: #fff; background: conic-gradient(from 200deg, var(--accent), #7a2fbf, var(--accent)); box-shadow: 0 3px 10px rgba(0,0,0,.25); }
.ail-level-line { display: flex; justify-content: space-between; gap: .5rem; flex-wrap: wrap; }
.ail-bar { display: block; height: .7rem; border-radius: 99px; background: var(--line); overflow: hidden; margin: .4rem 0; }
.ail-bar.small { height: .45rem; }
.ail-bar-fill { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--accent), var(--ail-gold)); transition: width .6s ease; }
.ail-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin: .4rem 0; }
.ail-chip { padding: .2rem .65rem; border-radius: 99px; background: var(--line); font-size: .85rem; font-weight: 600; }
.ail-badges { grid-column: 1 / -1; }
.ail-badges summary { cursor: pointer; font-weight: 600; }
.ail-badge-list { list-style: none; margin: .75rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); gap: .5rem; }
.ail-badge { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .15rem; padding: .6rem .4rem; border: 1px dashed var(--line); border-radius: .75rem; opacity: .6; }
.ail-badge.earned { opacity: 1; border: 1px solid var(--ail-gold); background: color-mix(in srgb, var(--ail-gold) 12%, var(--paper)); }
.ail-badge-icon { font-size: 1.6rem; color: var(--ail-gold); line-height: 1; }
.ail-badge-name { font-weight: 700; font-size: .85rem; }
.ail-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 1rem; margin-top: 1rem; }
.ail-course { display: flex; flex-direction: column; gap: .5rem; padding: 1.1rem 1.1rem 1rem; border-radius: 1rem; text-decoration: none; color: inherit; background: var(--surface, var(--paper)); border: 1px solid var(--line); border-top: .6rem solid var(--course, var(--accent)); transition: transform .15s; }
.ail-course:hover, .ail-course:focus-visible { transform: translateY(-3px); }
.ail-course-top { display: flex; justify-content: space-between; gap: .5rem; align-items: start; }
.ail-course-title { font-size: 1.15rem; font-weight: 800; }
.ail-course-desc { color: var(--ink-soft); font-size: .92rem; min-height: 2.4em; }
.ail-course-foot { display: flex; justify-content: space-between; font-size: .85rem; color: var(--ink-soft); }
.ail-course-head { border-left: .5rem solid var(--accent); padding-left: 1rem; margin-bottom: 1rem; }
.ail-lessons { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: .6rem; }
.ail-lesson { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: .9rem; background: var(--surface, var(--paper)); }
.ail-lesson-num { display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--line); font-weight: 800; flex: none; }
.ail-lesson.done .ail-lesson-num { background: var(--ail-good); color: #fff; }
.ail-lesson-main { flex: 1; min-width: 10rem; }
.ail-lesson-main p { margin: 0; }
.ail-stars { letter-spacing: .1em; }
.ail-stars .on, .ail-bigstar.on { color: var(--ail-gold); }
.ail-stars .off, .ail-bigstar { color: var(--line); }

/* The lesson player: one card at a time, like a phone app */
.ail-player { position: fixed; inset: 0; z-index: 1000; display: flex; flex-direction: column; background: var(--paper); color: var(--ink); overflow-y: auto; }
.ail-top { display: flex; align-items: center; gap: .75rem; padding: .75rem 1rem; position: sticky; top: 0; background: transparent; z-index: 1; }
.ail-close { font-size: 1.3rem; }
.ail-segs { flex: 1; display: flex; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.ail-segs-full { flex: 1; }
.ail-seg { flex: 1; height: .5rem; border-radius: 99px; background: var(--line); }
.ail-seg.done { background: var(--ail-good); }
.ail-seg.now { background: var(--accent); }
.ail-score { font-weight: 800; min-width: 4.5rem; text-align: right; }
.ail-stage { width: 100%; max-width: 38rem; margin: 0 auto; padding: 1rem 1.25rem 3rem; display: flex; flex-direction: column; gap: 1rem; }
.ail-title { font-size: clamp(1.5rem, 5vw, 2.1rem); line-height: 1.2; margin: .5rem 0 0; font-weight: 800; letter-spacing: -.01em; }
.ail-done h1 { font-weight: 800; }
.ail-body { font-size: 1.15rem; line-height: 1.55; white-space: pre-wrap; margin: 0; }
.ail-options { display: grid; gap: .7rem; }
.ail-options.two { grid-template-columns: 1fr 1fr; }
.ail-option { display: flex; align-items: center; gap: .8rem; width: 100%; min-height: 3.6rem; padding: .8rem 1rem; text-align: left; font: inherit; font-size: 1.05rem; color: inherit; background: var(--surface, var(--paper)); border: 2px solid var(--line); border-radius: .95rem; cursor: pointer; box-shadow: 0 3px 0 var(--line); transition: transform .08s; }
.ail-option.big { justify-content: center; min-height: 5rem; font-size: 1.3rem; font-weight: 800; }
.ail-option:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 1px 0 var(--line); }
.ail-option.picked { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--paper)); box-shadow: 0 3px 0 var(--accent); }
.ail-option.right { border-color: var(--ail-good); background: var(--ail-good-bg); box-shadow: 0 3px 0 var(--ail-good); }
.ail-option.wrong { border-color: var(--ail-bad); background: var(--ail-bad-bg); box-shadow: 0 3px 0 var(--ail-bad); animation: ail-shake .4s; }
.ail-option:disabled { cursor: default; opacity: 1; color: var(--ink); }
.ail-key { display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: .5rem; background: var(--line); font-weight: 800; font-size: .9rem; flex: none; }
.ail-order { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.ail-option.order { cursor: default; }
.ail-text { width: 100%; font: inherit; font-size: 1.2rem; padding: .9rem 1rem; border: 2px solid var(--line); border-radius: .95rem; background: var(--surface, var(--paper)); color: inherit; }
.ail-text:focus { border-color: var(--accent); outline: none; }
.ail-hint { color: var(--ink-soft); font-style: italic; margin: 0; }
.ail-sheet { padding: 1rem 1.1rem; border-radius: 1rem; border: 2px solid; animation: ail-rise .25s ease-out; color: var(--ink); }
.ail-sheet strong { font-size: 1.15rem; }
.ail-sheet p { margin: .4rem 0 0; }
.ail-sheet.good { border-color: var(--ail-good); background: var(--ail-good-bg); }
.ail-sheet.bad { border-color: var(--ail-bad); background: var(--ail-bad-bg); }
.ail-plus { float: none; }
.ail-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .5rem; }
.ail-actions .big, .button.big, button.big { min-height: 3.2rem; padding: .6rem 1.4rem; font-size: 1.1rem; font-weight: 800; border-radius: .95rem; }
.ail-actions .primary.big { flex: 1; }
.ail-done { text-align: center; align-items: center; }
.ail-bigstars { display: flex; gap: .5rem; justify-content: center; }
.ail-bigstar { font-size: 4.5rem; line-height: 1; animation: ail-star .5s both; }
.ail-bigstar:not(.on) { animation: none; opacity: .6; }
.ail-result { display: flex; gap: 1.5rem; flex-wrap: wrap; justify-content: center; }
.ail-result div { display: flex; flex-direction: column; min-width: 7rem; }
.ail-result strong { font-size: 2rem; }
.ail-newbadges { border: 2px solid var(--ail-gold); border-radius: 1rem; padding: .75rem 1rem; background: color-mix(in srgb, var(--ail-gold) 12%, var(--paper)); text-align: left; }
.ail-newbadges ul { margin: 0; padding-left: 1.1rem; }
@keyframes ail-shake { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
@keyframes ail-rise { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes ail-pop { 0% { transform: scale(.4); } 70% { transform: scale(1.25); } 100% { transform: scale(1); } }
@keyframes ail-star { 0% { transform: scale(0) rotate(-40deg); } 70% { transform: scale(1.3) rotate(8deg); } 100% { transform: none; } }
@media (prefers-reduced-motion: reduce) { .ail-bigstar, .ail-sheet, .ail-plus, .ail-option.wrong, .ail-bar-fill { animation: none; transition: none; } }

/* The leaderboard */
.ail-podium { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; align-items: end; margin: 1.5rem 0 1rem; padding: 0; }
.place { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: .25rem; padding: .8rem .4rem; border-radius: 1rem 1rem 0 0; text-align: center; background: var(--line); overflow-wrap: anywhere; }
.place.p1 { min-height: 11rem; background: linear-gradient(var(--ail-gold), color-mix(in srgb, var(--ail-gold) 30%, var(--line))); color: #2a1f00; }
.place.p2 { min-height: 8.5rem; background: linear-gradient(#c8cdd4, color-mix(in srgb, #c8cdd4 30%, var(--line))); color: #20242a; }
.place.p3 { min-height: 7rem; background: linear-gradient(#d49a6a, color-mix(in srgb, #d49a6a 30%, var(--line))); color: #2a1a0c; }
.place.empty { background: none; }
.place.me { outline: 3px solid var(--accent); }
.ail-medal { display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: rgba(255,255,255,.65); font-weight: 800; }
.ail-ranks { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.ail-rank { display: flex; align-items: center; gap: .8rem; padding: .6rem .9rem; border: 1px solid var(--line); border-radius: .8rem; background: var(--surface, var(--paper)); }
.ail-rank.me { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--paper)); }
.ail-rank-n { font-weight: 800; min-width: 2rem; }
.ail-card-edit { margin: 1rem 0; }
.ail-card-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem; }
.ail-opt-row { display: flex; gap: .5rem; align-items: center; margin: .4rem 0; }
.ail-opt-row input[type="text"], .ail-opt-row input:not([type]) { flex: 1; }

/* Counselling and appointments */
.cn-results { margin: 0 0 8px; }
.cn-results .quiet { text-align: left; }
.cn-case { padding: 6px 0; border-bottom: 1px solid var(--line); }
.cn-slots { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.cn-slots .button[aria-pressed="true"] { background: var(--accent); color: #fff; border-color: var(--accent); }
.cn-hours { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 8px; }
.button.selected { background: var(--ink); color: var(--paper); }

/* LIVE */
.lv-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.lv-stage { position: relative; background: #000; border-radius: 8px; overflow: hidden; aspect-ratio: 16 / 9; }
.lv-frame, .lv-preview { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; object-fit: contain; }
.lv-wait { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; text-align: center; padding: 16px; }
.lv-wait .soft { color: #cfd6e4; }
.lv-wait-title { font-size: 1.2rem; font-weight: 600; margin: 0 0 6px; }
.lv-badge { background: #c0262d; color: #fff; padding: 2px 8px; border-radius: 4px; font-size: .8rem; }
.lv-card.is-live { border-left: 4px solid #c0262d; }
.lv-social { position: relative; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 8px; padding: 8px; min-height: 360px; max-height: 70vh; background: var(--panel, #fff); }
.lv-social-head { padding: 4px 4px 8px; font-weight: 600; }
.lv-chat { list-style: none; margin: 0; padding: 0; overflow-y: auto; flex: 1; min-height: 160px; }
.lv-msg { padding: 3px 4px; overflow-wrap: anywhere; }
.lv-reacts { display: flex; gap: 4px; flex-wrap: wrap; padding: 6px 0; }
.lv-react { font-size: 1.3rem; line-height: 1; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; background: transparent; cursor: pointer; }
.lv-react:disabled { opacity: .4; cursor: default; }
.lv-say { display: flex; gap: 6px; }
.lv-say input { flex: 1; min-width: 0; }
.lv-floats { position: absolute; right: 12px; bottom: 90px; width: 80px; height: 220px; pointer-events: none; overflow: hidden; }
.lv-float { position: absolute; bottom: 0; font-size: 1.6rem; animation: lv-rise 3s ease-out forwards; }
@keyframes lv-rise { from { transform: translateY(0); opacity: 1; } to { transform: translateY(-200px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .lv-float { animation: none; opacity: 0; } }
.lv-atem-inputs { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; margin: 8px 0; }
.lv-atem-in { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.lv-atem-in strong { flex-basis: 100%; }
.lv-ingest { margin-top: 8px; }
.lv-dest { padding: 4px 0; overflow-wrap: anywhere; }
@media (max-width: 860px) { .lv-layout { grid-template-columns: 1fr; } }

/* Quiz cards: one 3D roll. The old card tips back over the top, the new one tips up from below, on the same easing. */
.ail-player { perspective: 1400px; perspective-origin: 50% 40%; }
@media (prefers-reduced-motion: no-preference) {
  @keyframes roll-out { from { transform: none; opacity: 1; } to { transform: translateY(-14%) rotateX(68deg); opacity: 0; } }
  @keyframes roll-in { from { transform: translateY(26%) rotateX(-68deg); opacity: 0; } to { transform: none; opacity: 1; } }
  .ail-stage.roll-out { position: absolute; margin: 0; transform-origin: 50% 0; animation: roll-out .62s var(--ease) forwards; pointer-events: none; }
  .ail-stage.roll-in { transform-origin: 50% 100%; animation: roll-in .62s var(--ease) backwards; }
  .ail-option { transition: transform .2s var(--spring), border-color .2s, background-color .2s, box-shadow .25s var(--ease); }
  .ail-option:hover:not(:disabled) { transform: translateY(-2px); }
  .ail-option.right { animation: pop-in .4s var(--spring); }
  .ail-track-rest { transition: width .7s var(--ease); }
  .ail-plus { display: inline-block; animation: pop-in .5s var(--spring) backwards; }
}

/* The same motion language in the newer modules: counselling, appointments, LIVE, birthdays, giving. */
@media (prefers-reduced-motion: no-preference) {
  .lv-card, .cn-case, .panel-plain { transition: transform .25s var(--spring), box-shadow .25s var(--ease), border-color .2s; }
  .lv-card:hover, .cn-case:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
  .frame.enter .lv-card, .frame.enter .cn-case, .frame.enter .panel-plain { animation: arrive .5s var(--ease) backwards; }
  .frame.enter .lv-card:nth-child(2), .frame.enter .cn-case:nth-child(2) { animation-delay: .06s; }
  .frame.enter .lv-card:nth-child(n+3), .frame.enter .cn-case:nth-child(n+3) { animation-delay: .12s; }
  .lv-msg { animation: arrive .3s var(--ease) backwards; }
  .lv-react { transition: transform .18s var(--spring), background-color .2s; }
  .lv-react:hover:not(:disabled) { transform: translateY(-3px) scale(1.15); }
  .lv-react:active:not(:disabled) { transform: scale(.9); }
  .lv-badge { animation: lv-pulse 1.8s ease-in-out infinite; }
  @keyframes lv-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(192, 38, 45, .5); } 50% { box-shadow: 0 0 0 6px rgba(192, 38, 45, 0); } }
}

/* Apple-style movement: one easing everywhere, gentle springs, sheets that rise from the bottom, translucent blurred bars. */
html { scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media (prefers-reduced-motion: no-preference) {
  .topbar, .bar, .main > header { backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); }
  .dialog { transition: transform .5s var(--ease), opacity .3s; }
  @keyframes sheet-up { from { transform: translateY(100%); } to { transform: none; } }
  @keyframes sheet-fade { from { opacity: 0; transform: scale(.96) translateY(10px); } to { opacity: 1; transform: none; } }
  .dialog[open] { animation: sheet-fade .45s var(--ease) backwards; }
  @media (max-width: 640px) {
    .dialog[open] { animation: sheet-up .5s var(--ease) backwards; margin: auto 0 0; width: 100%; max-width: none; border-radius: 22px 22px 0 0; }
  }
  /* Pressing sinks a control slightly and letting go springs it back, like a touch on glass. */
  button:active:not(:disabled), a.button:active, .rowbtn:active, .ail-option:active:not(:disabled) { transform: scale(.97); transition-duration: .12s; }
  .people tbody tr:active, .inbox > li:active { background-color: color-mix(in srgb, var(--accent) 8%, transparent); }
  input[type="checkbox"], input[type="radio"] { transition: transform .25s var(--spring); }
  input[type="checkbox"]:active, input[type="radio"]:active { transform: scale(.85); }
  .sidebar { transition: transform .5s var(--ease); }
  .scrim { transition: opacity .4s var(--ease); }
  .frame.enter > * { animation-duration: .6s; }
}

/* Quiz look: a glass card with a large heading and rows with a circle, a title and a thin divider. Follows the device: dark in dark mode,
   and in light mode the page is plain white whatever the church's brand colour (buttons keep the brand colour). */
.ail-player {
  --q-bg: #ffffff; --q-card: #ffffff; --q-ink: #1b1b1f; --q-soft: #6a6a72; --q-line: rgba(0, 0, 0, .12);
  --q-ring: #9a9aa3; --q-btn: var(--accent); --q-btn-ink: #fff; --q-chrome: rgba(0, 0, 0, .06); --q-chrome-ink: #1b1b1f; --q-seg: rgba(0, 0, 0, .12);
  background: var(--q-bg); color: var(--q-ink); padding: 0 .75rem 1.5rem;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ail-player { --q-bg: radial-gradient(120% 80% at 50% 0, #2a2a2f, #121214); --q-card: rgba(44, 44, 48, .82); --q-ink: #f4f4f6; --q-soft: #a0a0a8; --q-line: rgba(255, 255, 255, .13); --q-ring: #8b8b93; --q-btn: #f4f4f6; --q-btn-ink: #121214; --q-chrome: rgba(255, 255, 255, .12); --q-chrome-ink: #f4f4f6; --q-seg: rgba(255, 255, 255, .2); } }
:root[data-theme="dark"] .ail-player { --q-bg: radial-gradient(120% 80% at 50% 0, #2a2a2f, #121214); --q-card: rgba(44, 44, 48, .82); --q-ink: #f4f4f6; --q-soft: #a0a0a8; --q-line: rgba(255, 255, 255, .13); --q-ring: #8b8b93; --q-btn: #f4f4f6; --q-btn-ink: #121214; --q-chrome: rgba(255, 255, 255, .12); --q-chrome-ink: #f4f4f6; --q-seg: rgba(255, 255, 255, .2); }
.ail-top { background: transparent; }
.ail-close { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; padding: 0; border-radius: 50%; border: 0; background: var(--q-chrome); color: var(--q-chrome-ink); }
.ail-score { padding: .35rem .8rem; border-radius: 99px; background: var(--q-chrome); color: var(--q-chrome-ink); min-width: 0; }
.ail-seg { background: var(--q-seg); }
.ail-seg.now { background: var(--q-card); }
.ail-seg.done { background: var(--ail-good); }
.ail-stage {
  background: var(--q-card); color: var(--q-ink); border: 1px solid var(--q-line); border-radius: 28px; margin-top: .5rem; padding: 1.6rem 1.4rem 1.4rem;
  backdrop-filter: blur(24px) saturate(160%); -webkit-backdrop-filter: blur(24px) saturate(160%); box-shadow: 0 18px 50px rgba(0, 0, 0, .22);
}
.ail-title { font-size: clamp(1.45rem, 5vw, 1.9rem); font-weight: 700; letter-spacing: -.015em; }
.ail-player .soft, .ail-hint { color: var(--q-soft); }
.ail-options { gap: 0; }
.ail-option { border: 0; border-bottom: 1px solid var(--q-line); border-radius: 0; background: transparent; box-shadow: none; min-height: 4.2rem; padding: .9rem .2rem; gap: 1rem; font-weight: 500; color: var(--q-ink); }
.ail-option:last-child { border-bottom: 0; }
.ail-option::before { content: ''; flex: none; width: 1.9rem; height: 1.9rem; border-radius: 50%; border: 2px solid var(--q-ring); box-sizing: border-box; background: transparent; transition: background-color .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease); }
.ail-option .ail-key { display: none; }
.ail-option.order::before { display: none; }
.ail-option.order .ail-key { display: grid; background: var(--q-line); color: var(--q-ink); }
.ail-options.two { gap: .6rem; }
.ail-options.two .ail-option { border: 1px solid var(--q-line); border-radius: 18px; justify-content: center; }
.ail-options.two .ail-option::before { display: none; }
.ail-option.picked { background: transparent; border-color: var(--q-line); box-shadow: none; }
.ail-option.picked::before { border-color: var(--accent); background: radial-gradient(circle, var(--accent) 0 45%, transparent 48%); }
.ail-options.two .ail-option.picked { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.ail-option.right { background: transparent; box-shadow: none; border-color: var(--q-line); }
.ail-option.right::before { border-color: var(--ail-good); background: var(--ail-good); box-shadow: inset 0 0 0 .32rem var(--q-card); }
.ail-option.wrong { background: transparent; box-shadow: none; border-color: var(--q-line); }
.ail-option.wrong::before { border-color: var(--ail-bad); background: var(--ail-bad); box-shadow: inset 0 0 0 .32rem var(--q-card); }
.ail-options.two .ail-option.right { border-color: var(--ail-good); background: var(--ail-good-bg); }
.ail-options.two .ail-option.wrong { border-color: var(--ail-bad); background: var(--ail-bad-bg); }
.ail-text { background: transparent; border: 1px solid var(--q-line); color: var(--q-ink); border-radius: 18px; }
.ail-actions { justify-content: flex-end; margin-top: 1rem; }
.ail-actions .big, .ail-actions .button.big, .ail-actions button.big { border-radius: 99px; min-height: 3.4rem; padding: .6rem 1.8rem; border: 1px solid var(--q-line); background: transparent; color: var(--q-ink); font-weight: 600; }
.ail-actions .primary.big { flex: 0 1 auto; background: var(--q-btn); color: var(--q-btn-ink); border-color: transparent; }
.ail-actions .primary.big:disabled { opacity: .4; }
.ail-sheet { border-width: 1px; border-radius: 18px; color: var(--q-ink); }
.ail-player .ail-close { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; padding: 0; border-radius: 50%; border: 0; background: var(--q-chrome); color: var(--q-chrome-ink); font-size: 1.1rem; }

/* Calendar layers */
.chip.christian { background: color-mix(in srgb, #7a2fbf 14%, transparent); color: inherit; border: 1px solid color-mix(in srgb, #7a2fbf 35%, transparent); font-style: italic; }
.chip.notice { background: color-mix(in srgb, var(--ail-gold, #f2a900) 20%, transparent); color: inherit; }
.chip.mine { background: color-mix(in srgb, var(--accent) 16%, transparent); color: inherit; border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); }
.cal-legend { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; margin: .25rem 0 .75rem; }

/* Form boxes: dark with light typing by default; "Boxes that match the page" in Notification settings turns this off for this device. */
:root:not([data-fields="page"]) input:not([type]), :root:not([data-fields="page"]) input[type="number"], :root:not([data-fields="page"]) input[type="text"], :root:not([data-fields="page"]) input[type="email"],
:root:not([data-fields="page"]) input[type="password"], :root:not([data-fields="page"]) input[type="search"], :root:not([data-fields="page"]) input[type="tel"], :root:not([data-fields="page"]) input[type="url"],
:root:not([data-fields="page"]) input[type="date"], :root:not([data-fields="page"]) input[type="time"], :root:not([data-fields="page"]) input[type="datetime-local"],
:root:not([data-fields="page"]) textarea, :root:not([data-fields="page"]) select { background: #303030; color: #fff4e8; border-color: #595959; color-scheme: dark; }
:root:not([data-fields="page"]) input::placeholder, :root:not([data-fields="page"]) textarea::placeholder { color: #d9c9b8; opacity: 1; }
:root:not([data-fields="page"]) .ail-text { background: #303030; color: #fff4e8; }

/* eLearning: the Visual Quiz Style Gallery and the newer kinds of question */
.dialog.wide { width: min(1080px, 96vw); max-width: 96vw; }
.ail-gal { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 1.2rem; align-items: start; margin-top: .8rem; }
.ail-gal-search { max-width: 18rem; margin-top: .4rem; }
.ail-gal-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7rem; }
.ail-gal-tile { display: grid; gap: .25rem; justify-items: center; text-align: center; padding: .9rem .6rem; min-height: 8.2rem; background: var(--surface); border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer; font: inherit; color: inherit; transition: transform .25s var(--spring), border-color .2s, background .2s, box-shadow .25s; }
.ail-gal-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-1); }
.ail-gal-tile.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--surface)); }
.ail-gal-tile strong { font-size: .92rem; }
.ail-gal-tile .soft { font-size: .76rem; line-height: 1.35; }
.ail-gal-glyph { display: grid; place-items: center; width: 2.2rem; height: 2.2rem; font-size: 1.5rem; color: var(--accent); }
.ail-gal-glyph.big { width: 3rem; height: 3rem; font-size: 2rem; border-radius: 50%; background: color-mix(in srgb, var(--accent) 14%, var(--surface)); }
.ail-gal-preview { position: sticky; top: 0; display: grid; gap: .8rem; padding: 1rem; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.ail-gal-head { display: flex; gap: .8rem; align-items: center; }
.ail-gal-head h3 { margin: 0; }
.ail-gal-sample { display: grid; gap: .6rem; padding: .8rem; border: 1px solid var(--line); border-radius: 12px; background: color-mix(in srgb, var(--paper) 60%, var(--surface)); }
.ail-gal-try { margin: 0; font-size: .72rem; font-weight: 700; letter-spacing: .04em; color: var(--accent); }
.ail-gal-q { margin: 0; font-weight: 700; }
.ail-gal-verdict.good { color: var(--ail-good); font-weight: 600; }
.ail-gal-verdict.bad { color: var(--ail-bad); font-weight: 600; }
@media (max-width: 760px) { .ail-gal { grid-template-columns: 1fr; } .ail-gal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ail-gal-preview { position: static; } }

.ail-ext { display: grid; gap: .8rem; }
.ail-picture { width: 100%; max-height: 320px; object-fit: contain; border-radius: 12px; background: var(--paper); }
.ail-picture.small { max-width: 14rem; }
.ail-sentence { font-size: 1.25rem; line-height: 2.6rem; }
.ail-gap { display: inline-block; width: auto; min-width: 7rem; margin: 0 .25rem; padding: .25rem .6rem; font: inherit; font-size: 1.05rem; }
.ail-word { margin: 0; text-align: center; font-size: 2rem; font-weight: 800; letter-spacing: .25em; min-height: 3rem; }
.ail-tiles { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }
.ail-tile { min-width: 3rem; min-height: 3.2rem; font-size: 1.4rem; font-weight: 800; text-transform: uppercase; border: 2px solid var(--line); border-radius: .8rem; background: var(--surface); box-shadow: 0 3px 0 var(--line); transition: transform .2s var(--spring); }
.ail-tile:disabled { opacity: .3; transform: scale(.9); }
.ail-listen { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }

.ail-match { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.ail-col { display: grid; gap: .55rem; align-content: start; }
.ail-chip { padding: .65rem .9rem; font: inherit; text-align: left; color: inherit; background: var(--surface); border: 2px solid var(--line); border-radius: .85rem; cursor: pointer; transition: transform .2s var(--spring), border-color .2s, background .2s; }
.ail-chip:disabled { cursor: default; opacity: .7; }
.ail-chip.picked { border-color: var(--accent); }
.ail-chip.pair-0 { border-color: #d9534f; background: color-mix(in srgb, #d9534f 12%, var(--surface)); }
.ail-chip.pair-1 { border-color: #2f7fc1; background: color-mix(in srgb, #2f7fc1 12%, var(--surface)); }
.ail-chip.pair-2 { border-color: #2e9d6b; background: color-mix(in srgb, #2e9d6b 12%, var(--surface)); }
.ail-chip.pair-3 { border-color: #c98a12; background: color-mix(in srgb, #c98a12 12%, var(--surface)); }
.ail-chip.pair-4 { border-color: #8a56c2; background: color-mix(in srgb, #8a56c2 12%, var(--surface)); }
.ail-chip.pair-5 { border-color: #2b9aa5; background: color-mix(in srgb, #2b9aa5 12%, var(--surface)); }

.ail-memory { display: grid; grid-template-columns: repeat(auto-fill, minmax(6.5rem, 1fr)); gap: .6rem; }
.ail-mem { min-height: 5rem; padding: .4rem; font: inherit; font-weight: 700; color: var(--ink); background: color-mix(in srgb, var(--accent) 16%, var(--surface)); border: 2px solid var(--line); border-radius: .9rem; cursor: pointer; transition: transform .35s var(--ease), background .25s; }
.ail-mem.up { background: var(--surface); transform: rotateY(0deg) scale(1.02); }
.ail-mem.found { border-color: var(--ail-good); background: var(--ail-good-bg); }

.ail-swipe-stage { display: grid; place-items: center; min-height: 11rem; overflow: hidden; }
.ail-swipe-card { width: min(26rem, 100%); padding: 1.6rem 1.2rem; text-align: center; font-size: 1.25rem; font-weight: 700; background: var(--surface); border: 2px solid var(--line); border-radius: 1.1rem; box-shadow: var(--shadow-1); touch-action: pan-y; cursor: grab; transition: transform .22s var(--ease), opacity .22s; }
.ail-swipe-card.fly-right { transform: translateX(120%) rotate(12deg); opacity: 0; }
.ail-swipe-card.fly-left { transform: translateX(-120%) rotate(-12deg); opacity: 0; }
.ail-swipe-card.done { cursor: default; font-weight: 600; }

.ail-sort { display: grid; gap: .6rem; }
.ail-sort-row { display: flex; gap: .8rem; align-items: center; flex-wrap: wrap; padding: .6rem .8rem; border: 1px solid var(--line); border-radius: .9rem; background: var(--surface); }
.ail-seg { display: flex; gap: .4rem; flex-wrap: wrap; }

.ail-hot { position: relative; display: block; cursor: crosshair; border-radius: 12px; overflow: hidden; }
.ail-hot .ail-picture { display: block; }
.ail-dot, .ail-ring { position: absolute; transform: translate(-50%, -50%); pointer-events: none; }
.ail-dot { width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--accent); border: 3px solid #fff; box-shadow: 0 1px 6px rgba(0, 0, 0, .4); animation: pop-in .3s var(--spring); }
.ail-ring { border: 3px dashed var(--ail-good); border-radius: 50%; background: color-mix(in srgb, var(--ail-good) 18%, transparent); }
@media (max-width: 600px) { .ail-match { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .ail-swipe-card, .ail-mem, .ail-tile, .ail-chip, .ail-gal-tile { transition: none; } .ail-dot { animation: none; } }
.ail-gal-sample .ail-option, .ail-gal-sample .ail-chip, .ail-gal-sample .ail-mem { background: var(--surface); border: 2px solid var(--line); color: var(--ink); }
.ail-gal-sample .ail-option.picked, .ail-gal-sample .ail-chip.picked { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--surface)); }
.ail-gal-sample .toolbar { box-shadow: none; border: 0; background: none; padding: 0; }
.ail-gal-sample .ail-option, .ail-gal-sample .ail-chip { border-radius: .95rem; }
.ail-gal-sample .ail-key { color: var(--ink-soft); background: transparent; }
.ail-range { width: 100%; accent-color: var(--accent); }
.ail-range-ends { text-align: center; margin: 0; }
.ail-built { margin: 0; min-height: 3rem; font-size: 1.3rem; font-weight: 700; text-align: center; }
.ail-tile.word { text-transform: none; font-size: 1.05rem; padding: 0 .9rem; }

/* Messages */
.dm-layout { display: grid; grid-template-columns: minmax(220px, 300px) 1fr; gap: 1rem; align-items: start; }
.dm-side, .dm-pane { background: var(--surface, #fff); border-radius: 1rem; padding: 1rem; }
.dm-log { max-height: 50vh; overflow-y: auto; display: flex; flex-direction: column; gap: .6rem; padding: .25rem; margin-bottom: .75rem; }
.dm-msg { max-width: 80%; align-self: flex-start; background: color-mix(in srgb, var(--accent) 8%, transparent); border-radius: 1rem; padding: .5rem .85rem; }
.dm-msg.mine { align-self: flex-end; background: color-mix(in srgb, var(--accent) 18%, transparent); }
.dm-msg p { margin: 0 0 .25rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.my-card h2 { margin-top: 0; }
@media (max-width: 720px) { .dm-layout { grid-template-columns: 1fr; } }

/* Address Book tags */
.tagchips { display: inline-flex; flex-wrap: wrap; gap: .3rem; margin: .15rem 0; }
.tagchip { display: inline-flex; align-items: center; gap: .35rem; padding: .1rem .55rem; border: 1px solid var(--line, #d7d2c8); border-radius: 999px; font-size: .85rem; background: var(--surface, #fff); }
.tagchip.auto { border-style: dotted; }
.tag-dot { width: .6rem; height: .6rem; border-radius: 50%; display: inline-block; flex: none; }
.tag-x { border: 0; background: none; padding: 0 .1rem; font-size: 1rem; line-height: 1; cursor: pointer; color: inherit; }
.filterbar { display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-end; }
.filterbar .field { flex: 1 1 14rem; }
.viewtoggle { display: inline-flex; gap: 0; }
.viewtoggle button { border-radius: 0; }
.viewtoggle button:first-child { border-radius: 8px 0 0 8px; }
.viewtoggle button:last-child { border-radius: 0 8px 8px 0; }
.viewtoggle button[aria-pressed="true"] { background: var(--accent, #d9531e); color: #fff; }
.people-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: 1rem; margin-top: 1rem; }
.person-card { border: 1px solid var(--line, #d7d2c8); border-radius: 12px; padding: 1rem; background: var(--surface, #fff); }
.person-card h3 { margin: 0 0 .25rem; font-size: 1.05rem; }
.taglist li { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: .4rem 0; }
.taglist input[type="text"] { flex: 1 1 10rem; }
.taggrid { display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-end; }
@media (max-width: 640px) { .filterbar { gap: .5rem; } }

/* Sign-in pages: the Connect wordmark above the card, a quiet line below it */
.auth { flex-direction: column; align-items: center; }
.auth-head { text-align: center; margin: 1vh 0 1.75rem; }
.auth-head p { margin: 0; }
.auth-word { font-size: clamp(2.6rem, 9vw, 4.4rem); font-weight: 700; letter-spacing: .04em; line-height: 1.05; color: var(--ink); }
.auth-sub { margin-top: .5rem !important; color: var(--action); font-size: clamp(.9rem, 2.4vw, 1.15rem); letter-spacing: .09em; text-transform: uppercase; }
.auth-tag { margin-top: .65rem !important; color: var(--ink-soft); font-size: .78rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; }
.auth-foot { margin: 1.5rem 0 0; color: var(--ink-soft); font-size: .8rem; text-align: center; }

/* One height for every button and every box you type or choose in (search bars, text boxes, drop-downs). Change it here only. */
:root { --control-h: 2.25rem; }
button, .button, a.button,
input:not([type]), input[type="number"], input[type="text"], input[type="email"], input[type="password"], input[type="search"], input[type="tel"], input[type="date"], input[type="time"], select {
  min-height: var(--control-h); height: var(--control-h); box-sizing: border-box;
}
button, .button, a.button { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: 0 1rem; line-height: 1.2; font-size: .9rem; }
button.small, button.quiet, .button.small, a.button.small { min-height: var(--control-h); height: var(--control-h); padding: 0 .85rem; }
input:not([type]), input[type="number"], input[type="text"], input[type="email"], input[type="password"], input[type="search"], input[type="tel"], input[type="date"], input[type="time"], select { padding-top: 0; padding-bottom: 0; }
textarea { min-height: 5rem; }
input[type="checkbox"], input[type="radio"], input[type="color"], input[type="range"], input[type="file"] { height: auto; min-height: 0; }
input[type="color"] { height: var(--control-h); }
.nav-chevron, .menu-toggle, .tag-x, .church-pick, .note-main, .rowbtn, .tabs button { height: auto; }
.church-pick { min-height: var(--control-h); }
.with-button button.reveal { height: calc(var(--control-h) - 6px); min-height: 0; }

/* Attendance reports */
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 1rem; margin: 1rem 0; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: .75rem 1.5rem; margin: .75rem 0 1.25rem; }
.stats .stat { border-top: 3px solid var(--line); padding-top: .4rem; }
.stats dt { color: var(--ink-soft); font-size: .85rem; }
.stats dd { margin: 0; font-size: 1.35rem; font-weight: 650; }
.stats small { display: block; }
.hbars { list-style: none; margin: .5rem 0 1rem; padding: 0; display: grid; gap: .45rem; }
.hbars li { display: grid; grid-template-columns: minmax(8rem, 14rem) 1fr 4.5rem; gap: .75rem; align-items: center; }
.hbar-track { background: var(--line); border-radius: 6px; height: .8rem; overflow: hidden; display: block; }
.hbar-fill { display: block; height: 100%; background: var(--accent); border-radius: 6px; transition: width .5s ease; }
.hbars b { text-align: right; }
@media (max-width: 640px) { .hbars li { grid-template-columns: 1fr 4rem; } .hbar-track { grid-column: 1 / -1; order: 3; } }
@media (prefers-reduced-motion: reduce) { .hbar-fill { transition: none; } }
.history li { margin: .5rem 0; }

/* Top bar icons */
button.icon-btn { width: var(--control-h); padding: 0; border-radius: 50%; border-color: transparent; background: transparent; }
button.icon-btn:hover { background: var(--line); }
button.icon-btn svg { width: 20px; height: 20px; }
.icon-btn.bell { position: relative; }
.icon-btn .bell-count { position: absolute; top: -.2rem; right: -.2rem; min-width: 1.15rem; margin: 0; padding: 0 .3rem; font-size: .7rem; line-height: 1.15rem; }
.topbar .who { display: none; }
.profile-wrap { position: relative; }
.profile-panel { position: absolute; right: 0; top: calc(100% + .4rem); min-width: 13rem; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.15); padding: .4rem; z-index: 20; display: grid; }
.profile-panel[hidden] { display: none; }
.profile-panel .profile-name { margin: 0; padding: .5rem .75rem; font-weight: 650; border-bottom: 1px solid var(--line); }
.profile-panel a, .profile-panel button { display: block; text-align: left; height: auto; min-height: 2.25rem; padding: .5rem .75rem; border: 0; background: transparent; border-radius: 8px; color: inherit; text-decoration: none; }
.profile-panel a:hover, .profile-panel button:hover { background: var(--line); }

/* No underlines on links; they keep the accent colour and change on hover and keyboard focus. */
a, a:hover, a:focus, a:visited { text-decoration: none; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.help-q:hover { text-decoration: none; }

/* Choose your workspace: a page of its own */
.auth.ws { position: relative; }
.ws-tools { position: absolute; top: 1rem; right: 1.5rem; display: flex; gap: .25rem; align-items: center; }
.ws-card { width: min(100%, 27.5rem); text-align: center; }
.ws-card h1 { font-size: 1.35rem; margin: .75rem 0 1rem; }
.ws-welcome { color: var(--ink-soft); font-size: .9rem; font-weight: 400; margin: 0 0 1.25rem; }
button.linklike { height: auto; min-height: 0; padding: 0; border: 0; background: transparent; color: var(--action); font-size: .8rem; box-shadow: none; }
.ws-option { display: flex; gap: 1rem; align-items: center; text-align: left; margin: .75rem 0; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: inherit; transition: border-color .15s, transform .15s; }
.ws-option:hover { border-color: var(--accent); transform: translateY(-2px); }
.ws-icon { flex: none; display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; background: var(--action-soft); color: var(--action); }
.ws-icon svg { width: 22px; height: 22px; }
.ws-option strong { display: block; font-size: 1rem; }
.ws-text { display: block; margin-top: .25rem; color: var(--ink-soft); font-size: .84rem; line-height: 1.5; }
.ws-signed { margin: 1.25rem 0 .75rem; font-size: .8rem; color: var(--ink-soft); }
.ws-same { margin: 0; padding-top: .9rem; border-top: 1px solid var(--line); font-size: .78rem; color: var(--ink-soft); }
@media (prefers-reduced-motion: reduce) { .ws-option { transition: none; } }
.topbar a.switch-ws { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); padding: 0 1rem; white-space: nowrap; }
.topbar a.switch-ws:hover { border-color: var(--accent); }
.hero { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.hero-logo { flex: none; }
.hero-logo .brandmark { height: 7rem; max-width: 11rem; border-radius: 0; }
.hero-logo .brandmark.badge { height: 5rem; min-width: 5rem; border-radius: 18px; font-size: 1.8rem; }
@media (max-width: 640px) { .hero-logo .brandmark { height: 4rem; } .hero-logo .brandmark.badge { height: 3.5rem; min-width: 3.5rem; } }
.ws-church { display: grid; justify-items: center; gap: .4rem; margin-bottom: .5rem; }
.ws-church .brandmark { height: 4rem; border-radius: 0; }
.card-grid { align-items: stretch; }
.my-card { display: flex; flex-direction: column; }
.my-card .card-actions { margin-top: auto; padding-top: 1rem; display: flex; gap: .5rem; flex-wrap: wrap; }
.hero { min-height: 15rem; padding-block: 3rem; }
.hero p.hero-welcome { margin: 0 0 .9rem; color: var(--accent); font-size: .85rem; font-weight: 650; letter-spacing: .14em; text-transform: uppercase; }
.hero-logo .brandmark { height: 9.5rem; max-width: 13rem; }
.hero-logo .brandmark.badge { height: 6.5rem; min-width: 6.5rem; font-size: 2.2rem; }
@media (max-width: 640px) { .hero { min-height: 11rem; padding-block: 2rem; } .hero-logo .brandmark { height: 5rem; } }
/* Tile icons: orange line icons with no square behind them */
.tile-icon { background: transparent; color: var(--accent); width: auto; height: auto; place-items: start; margin-bottom: 12px; }
.tile-icon svg { width: 30px; height: 30px; }
div.space .tile-icon { color: var(--ink-soft); }
.dash-greet { margin-bottom: 1rem; } .dash-greet h2 { margin: 0 0 .25rem; font-size: 1.3rem; }
.dash-head { display: flex; gap: .75rem; align-items: center; margin-bottom: .75rem; }
.dash-head h2 { margin: 0; font-size: 1rem; } .dash-head p { margin: 0; font-size: .8rem; }
.dash-icon { color: var(--accent); display: grid; place-items: center; } .dash-icon svg { width: 26px; height: 26px; }
.dash-body .plain-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.dash-card { display: flex; flex-direction: column; } .dash-card .card-actions { margin-top: auto; padding-top: 1rem; }
.bell-wrap { position: relative; }
.bell-panel { position: absolute; right: -4rem; top: calc(100% + .4rem); width: min(23rem, 94vw); max-height: 75vh; overflow: auto; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: 12px; box-shadow: 0 14px 40px rgba(0,0,0,.18); padding: .6rem .8rem; z-index: 30; text-align: left; }
.bell-panel[hidden] { display: none; }
.bell-head { display: flex; align-items: center; gap: .4rem; } .bell-head h2 { margin: 0; margin-right: auto; font-size: 1.05rem; }
.bell-list { list-style: none; margin: .2rem 0 0; padding: 0; } .bell-list li { padding: .4rem 0; border-bottom: 1px solid var(--line); display: grid; gap: .1rem; justify-items: start; font-size: .95rem; }
.bell-row { display: flex; justify-content: space-between; gap: .6rem; width: 100%; } .bell-row small { white-space: nowrap; }
.bell-list li p { margin: 0; line-height: 1.3; } .bell-list li a { color: var(--accent); } .bell-list li.unread strong, .bell-list li.unread a { font-weight: 700; }
.bell-panel .empty { margin: .5rem 0; }
.bell-prefs { margin-top: .4rem; } .bell-prefs summary { cursor: pointer; color: var(--accent); padding: .2rem 0; }
.bell-prefgrid { display: grid; grid-template-columns: 1fr repeat(3, auto); gap: .2rem .8rem; align-items: center; font-size: .88rem; padding: .3rem 0; } .bell-prefgrid b { font-weight: 600; text-align: center; } .bell-prefgrid input { justify-self: center; }
.notice-icon { display: inline-grid; color: var(--accent); margin-bottom: .4rem; } .notice-icon svg { width: 28px; height: 28px; }
.button.small svg { width: 19px; height: 19px; vertical-align: -5px; margin-right: .2rem; }
.datelist { list-style: none; margin: .75rem 0 1.5rem; padding: 0; display: grid; gap: .25rem; }
.dateline { display: flex; gap: 1rem; align-items: center; padding: .6rem 0; border-bottom: 1px solid var(--line); color: inherit; }
.datetile { flex: none; display: grid; justify-items: center; width: 3.2rem; padding: .35rem 0; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.datetile b { color: var(--accent); font-size: 1.25rem; line-height: 1; } .datetile small { color: var(--ink-soft); }

/* page headings: always centred, same width */
.page-title, .page-title h1, .page-title .eyebrow, .page-title .page-sub { text-align: center; margin-left: auto; margin-right: auto; }
.page-title h1 { max-width: none; }
.page-title .page-sub { max-width: 40rem; display: block; }
.pr-live > * { min-width: 0; }

/* tasks: list, board, calendar */
.view-switch { margin: .5rem 0; }
.task-filters { display: flex; gap: 1rem; flex-wrap: wrap; align-items: end; margin: .5rem 0 1rem; }
.task-board { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; align-items: start; }
.task-col { border-radius: 14px; padding: .75rem; background: var(--surface-2, rgba(0,0,0,.04)); min-height: 8rem; }
.task-col h3 { margin: 0 0 .6rem; font-size: 1rem; display: flex; justify-content: space-between; align-items: center; }
.task-col .count { font-size: .8rem; background: var(--surface, #fff); border-radius: 999px; padding: .1rem .55rem; }
.col-todo { background: rgba(110, 100, 220, .1); } .col-in_progress { background: color-mix(in srgb, var(--accent) 14%, transparent); } .col-blocked { background: rgba(214, 64, 69, .1); } .col-done { background: rgba(46, 158, 91, .1); }
.task-card { background: var(--surface, #fff); border: 1px solid var(--line); border-radius: 12px; padding: .7rem .8rem; margin-bottom: .6rem; display: grid; gap: .4rem; cursor: grab; box-shadow: var(--card-shadow); }
.task-card.overdue { border-left: 4px solid #d64045; }
.task-title { font-weight: 500; }
.task-meta { display: flex; gap: .6rem; align-items: center; font-size: .85rem; }
.task-who { font-size: .85rem; color: var(--ink-soft); }
.prio { font-size: .75rem; padding: .1rem .5rem; border-radius: 999px; background: rgba(0,0,0,.07); }
.prio-urgent { background: #fbdcdc; color: #8a1f24; } .prio-high { background: #fde7d3; color: #8a4a12; }
.task-cal { display: grid; gap: 1rem; }
.task-day h3 { margin: 0 0 .5rem; font-size: 1rem; }
.pr-live .toolbar, .pr-controls .toolbar { position: relative; z-index: 2; }
.pr-slides { position: relative; z-index: 0; }

/* password box: same width as the other boxes, with the eye inside it */
.pw-wrap { position: relative; }
.pw-wrap input { width: 100%; padding-right: 3rem; box-sizing: border-box; }
.pw-wrap .reveal { position: absolute; right: .35rem; top: 50%; transform: translateY(-50%); min-width: 0; width: 2.3rem; height: 2.3rem; min-height: 0; padding: 0; display: grid; place-items: center; background: transparent; border: 0; box-shadow: none; color: #fff4e8; }
.pw-wrap .reveal svg { width: 20px; height: 20px; }

/* birthday message box: emoji and a picture */
.wish-composer { display: grid; gap: .5rem; position: relative; }
.wish-composer textarea { width: 100%; box-sizing: border-box; }
.composer-bar { display: flex; gap: .75rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.picture-pick { font-size: .9rem; color: var(--ink-soft); display: inline-flex; gap: .4rem; align-items: center; }
.picture-pick input { max-width: 12rem; font-size: .8rem; }
.emoji-pop { display: grid; grid-template-columns: repeat(8, 1fr); gap: .15rem; padding: .4rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: var(--card-shadow); }
.emoji-pop[hidden] { display: none; }
.emoji-pick { min-height: 0; height: 2rem; padding: 0; font-size: 1.15rem; background: transparent; border: 0; box-shadow: none; }
.wish-img { max-width: 100%; max-height: 14rem; border-radius: 10px; }
.bday-inline { display: grid; gap: .35rem; margin-bottom: .75rem; }

/* Pastoral Care Reports */
.stat-number { font-size: 1.9rem; font-weight: 700; margin: .2rem 0 0; }
.bar-row { margin: .7rem 0; }
.bar-label { display: flex; justify-content: space-between; font-size: .9rem; }
.bar-track { background: var(--line); border-radius: 6px; height: .7rem; overflow: hidden; margin-top: .25rem; }
.bar-fill { display: block; height: 100%; background: var(--accent, #e8590c); border-radius: 6px; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: .8rem; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td { text-align: left; padding: .6rem .5rem; border-bottom: 1px solid var(--line); font-size: .9rem; }
.data-table th { font-weight: 600; }
@media (max-width: 640px) { .data-table { display: block; overflow-x: auto; } }
.dash-grid .dash-card { max-height: 22rem; overflow-y: auto; }
/* Answer buttons: shorter, with the words centred both ways. */
.ail-option { min-height: 2.8rem; padding: .45rem 1rem; justify-content: center; align-items: center; text-align: center; line-height: 1.25; }
.ail-option > * { margin: 0; }
.ail-option.big { min-height: 3.6rem; font-size: 1.2rem; }
/* Ordering rows: words sit away from the left edge, and the rows are shorter. */
.ail-option.order { justify-content: flex-start; text-align: left; min-height: 2.6rem; padding: .35rem .8rem .35rem 1.2rem; }
.ail-option.order .grow, .ail-option.order > span:not(.ail-key) { flex: 1 1 auto; text-align: left; }
.ail-option.order button.quiet { min-height: 2rem; padding: .1rem .6rem; }

/* Fill-in-the-blank gaps sit inside the sentence and grow as the learner types. */
:root .ail-sentence .ail-gap { display: inline-block; width: 7rem; max-width: 100%; min-height: 0; margin: 0 .25rem; padding: .2rem .6rem; vertical-align: baseline; box-sizing: content-box; line-height: 1.4; }
:root .ail-sentence select.ail-gap { width: auto; }

/* Dashboard: small buttons on each card appear when the mouse is over it (always visible on touch screens). */
.dash-bar { justify-content: flex-end; margin-bottom: .75rem; }
.dash-plus { min-width: 2.2rem; font-size: 1.2rem; line-height: 1; color: var(--accent); }
.dash-head .dash-tools, .dash-bday .dash-tools { margin-left: auto; display: flex; gap: .35rem; opacity: 0; transition: opacity .2s var(--ease); }
.dash-bday { position: relative; } .dash-bday .dash-tools { position: absolute; top: .75rem; right: .75rem; }
.dash-card:hover .dash-tools, .dash-card:focus-within .dash-tools { opacity: 1; }
@media (hover: none) { .dash-tools { opacity: 1 !important; } }
.dash-tool { width: 1.9rem; height: 1.9rem; padding: 0; display: grid; place-items: center; border: 1px solid var(--line, #d9d0c5); border-radius: .5rem; background: var(--paper, #fff); color: inherit; font-size: .95rem; cursor: pointer; }
.dash-tool svg { width: 15px; height: 15px; } .dash-tool.danger { color: #b3361a; }
.dash-modules { margin-bottom: 1rem; } .dash-module-list { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin: .75rem 0; }
.dash-module { display: inline-flex; align-items: center; gap: .5rem; }
.dash-edit { display: grid; gap: .5rem; align-content: start; }
.dash-module input { accent-color: var(--accent); }

/* Dashboard cards, second design: wide equal cards, a divider under each header, thin lines between items, and only the body scrolls. */
.dash-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 24rem), 1fr)); gap: 1.25rem; }
.dash-grid .dash-card { padding: 0; height: 18rem; max-height: none; overflow: hidden; border-top: 1px solid var(--line); border-radius: 14px; }
.dash-grid .dash-card:nth-child(n) { border-top: 1px solid var(--line); }
.dash-grid .dash-head { margin: 0; padding: .85rem 1rem; border-bottom: 1px solid var(--peach-line); gap: .75rem; }
.dash-grid .dash-head h2 { font-size: .95rem; } .dash-grid .dash-head p { font-size: .78rem; }
.dash-grid .dash-icon { width: 2.1rem; height: 2.1rem; border-radius: .6rem; background: var(--peach); } .dash-grid .dash-icon svg { width: 20px; height: 20px; }
.dash-grid .dash-body { flex: 1; min-height: 0; overflow-y: auto; padding: .35rem 1rem 1rem; }
.dash-body .plain-list { gap: 0; }
.dash-body .plain-list li { padding: .7rem 0; }
.dash-body .plain-list li + li { border-top: 1px solid var(--line); }
.dash-body .card-actions { padding-top: .75rem; }
.dash-grid .dash-bday { overflow-y: auto; }
.dash-grid .dash-bday > h2 { margin: 0; padding: .95rem 1rem; font-size: .95rem; border-bottom: 1px solid var(--peach-line); }
.dash-grid .dash-edit { padding: 1rem; height: auto; overflow: visible; }
.dash-grid .dash-bday > h2 { position: sticky; top: 0; z-index: 1; background: var(--surface, #fff); margin-left: 0; margin-right: 0; }
/* The Birthdays card scrolls inside, so its rounded corners stay round. */
.dash-grid .dash-bday { overflow: hidden; display: flex; flex-direction: column; }
.dash-grid .dash-bday > h2 { flex: none; }
.dash-grid .dash-card { clip-path: inset(0 round 14px); }
.dash-grid .dash-card:hover, .dash-grid .dash-card:focus-within { clip-path: none; }

/* On a phone the top bar is tight: the page name keeps its room (shortened with … if needed) and the workspace button shrinks. */
.topbar a.switch-ws .ws-short { display: none; }
.breadcrumb .where { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
@media (max-width: 640px) {
  .topbar a.switch-ws .ws-long { display: none; } .topbar a.switch-ws .ws-short { display: inline; }
  .topbar a.switch-ws { padding: 0 .7rem; min-height: 2.3rem; font-size: .85rem; }
  .topbar { gap: .25rem .4rem; } .topbar > * { flex-shrink: 0; } .topbar > .breadcrumb, .topbar > .menu-toggle + .breadcrumb { flex-shrink: 1; min-width: 0; }
}
/* Every dashboard card is exactly the same size, whatever it holds; long content scrolls inside. */
.dash-grid { grid-auto-rows: 18rem; }
.dash-grid > .dash-card, .dash-grid > .dash-edit, .dash-grid > .dash-bday { height: 18rem; width: 100%; min-width: 0; box-sizing: border-box; }
.dash-grid .dash-edit { overflow-y: auto; }

/* Under the Dashboard cards: the module cards, centred heading like the workspace page. */
.dash-workspace { margin-top: 2.5rem; text-align: center; }
.dash-workspace h2 { margin: 0 0 .25rem; font-size: 1.8rem; font-weight: 500; }
.dash-workspace > .soft { margin: 0 auto 1.5rem; max-width: none; }
.dash-workspace .spaces { text-align: left; }
.dash-workspace .spaces { grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); gap: 1rem; }
.dash-workspace .module-tile { gap: .35rem; padding: 1.1rem 1.2rem; }
.dash-workspace .module-tile .tile-icon { width: 2.4rem; height: 2.4rem; border-radius: .7rem; background: var(--peach); display: grid; place-items: center; margin-bottom: .6rem; color: var(--accent); }
.dash-workspace .module-tile .tile-icon svg { width: 20px; height: 20px; }
.dash-workspace .module-tile strong { font-size: 1rem; } .dash-workspace .module-tile .tile-text { font-size: .8rem; color: var(--ink-soft); }
.dash-workspace .module-tile .tile-arrow { color: var(--accent); font-size: .8rem; font-weight: 600; margin-top: .5rem; }

/* Three cards to a row on a desktop screen, two on a tablet, one on a phone. */
.dash-grid, .dash-workspace .spaces { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1100px) { .dash-grid, .dash-workspace .spaces { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .dash-grid, .dash-workspace .spaces { grid-template-columns: minmax(0, 1fr); } }

/* Lighter dashboard cards: a pure white face, a faint edge and divider, softer shadow and softer type. */
.dash-grid .dash-card, .dash-grid .dash-edit, .dash-grid .dash-bday { background: #fff; border: 1px solid #e0d8cb; box-shadow: 0 2px 8px rgba(60, 40, 20, .09); }
.dash-grid .dash-card:hover, .dash-grid .dash-card:focus-within { box-shadow: 0 6px 18px rgba(60, 40, 20, .09); }
.dash-grid .dash-head, .dash-grid .dash-bday > h2 { border-bottom-color: #f6ece2; }
.dash-body .plain-list li + li { border-top-color: #f1ede7; }
.dash-grid .dash-head h2, .dash-grid .dash-bday > h2 { font-weight: 500; color: #3c3733; }
.dash-grid .dash-icon { background: #fff4ec; }
.dash-grid .dash-tool { border-color: #eee8df; background: #fff; }
:root[data-theme="dark"] .dash-grid .dash-card, :root[data-theme="dark"] .dash-grid .dash-edit, :root[data-theme="dark"] .dash-grid .dash-bday { background: var(--surface); border-color: var(--line); }

/* Behind the Dashboard cards the page is a little darker, so the white cards stand out clearly. */
body:has(.dash-grid), body:has(.dash-grid) .main, body:has(.dash-grid) main { background: #ece8e0; }
:root[data-theme="dark"] body:has(.dash-grid), :root[data-theme="dark"] body:has(.dash-grid) .main { background: var(--paper); }

/* Birthday composer: Emoji, Picture and Send share one line; the file name text is hidden to save room (the button stays). */
.dash-grid .composer-bar, .wish-composer .composer-bar { flex-wrap: nowrap; gap: .5rem; }
.composer-bar .quiet, .composer-bar .primary { flex: none; white-space: nowrap; }
.picture-pick { flex: 1 1 auto; min-width: 0; white-space: nowrap; }
.picture-pick input { width: 6.4rem; max-width: 6.4rem; overflow: hidden; color: transparent; padding: 0; border: 0; background: none; }
.picture-pick input::file-selector-button { color: var(--ink); font: inherit; font-size: .8rem; margin-right: 0; }
.dash-grid .dash-bday { margin: 0; align-self: stretch; }
.dash-grid .dash-bday .dash-body { overflow-x: hidden; }
.dash-grid .dash-bday textarea, .dash-grid .dash-bday .wish-composer { width: 100%; max-width: 100%; box-sizing: border-box; }
.dash-grid .dash-bday .dash-body > form, .dash-grid .dash-bday .dash-body > .bday-inline { width: 100%; max-width: 100%; box-sizing: border-box; margin-left: 0; margin-right: 0; }
.dash-grid .dash-bday .wish-composer { margin: 0; }

/* LIVE: the TV screen at the top of the page. */
.lv-tv { max-width: 38rem; margin: 0 auto 1.5rem; }
.lv-tv-screen { position: relative; aspect-ratio: 16 / 9; background: radial-gradient(ellipse at 30% 20%, #2b2724, #141211 70%); border: 10px solid #1d1b19; border-radius: 18px; box-shadow: 0 10px 28px rgba(30, 20, 10, .25), inset 0 0 0 1px #3a3631; display: grid; place-items: center; text-align: center; color: #f4ede5; overflow: hidden; }
.lv-tv-body { padding: 1rem 1.5rem; } .lv-tv-body h2 { margin: 0 0 .35rem; font-size: clamp(1.1rem, 3vw, 1.8rem); font-weight: 500; color: #fff6ec; } .lv-tv-body .soft { color: #cdbfb0; margin: 0 0 1rem; }
.lv-tv-badge { position: absolute; top: .9rem; left: 1rem; font-size: .72rem; letter-spacing: .16em; font-weight: 700; color: #cdbfb0; border: 1px solid #5a534b; border-radius: 6px; padding: .2rem .5rem; }
.lv-tv.on .lv-tv-badge { color: #fff; background: #d63a1c; border-color: #d63a1c; }
.lv-tv-stand { width: 28%; height: 10px; margin: 0 auto; background: #1d1b19; border-radius: 0 0 10px 10px; }
.wish-composer { grid-template-columns: minmax(0, 1fr); }
.picture-pick input { width: 5.2rem; max-width: 5.2rem; }
.composer-bar { min-width: 0; }
.dash-grid .dash-bday { transform: none !important; }

/* Dashboard card buttons: every one is raised the same way, and sits at the bottom of its card */
.dash-grid .dash-card .card-actions a.button, .dash-grid .dash-card .card-actions button { box-shadow: 0 1px 2px rgb(150 50 10 / .25), 0 6px 14px rgb(207 71 16 / .22); border-color: #e7d9cc; background: #fff; }
.dash-grid .dash-card .card-actions a.button:hover, .dash-grid .dash-card .card-actions button:hover { transform: translateY(-1px); box-shadow: 0 2px 4px rgb(150 50 10 / .25), 0 10px 20px rgb(207 71 16 / .28); }
.dash-grid .dash-card .dash-body { display: flex; flex-direction: column; }
.dash-grid .dash-card .dash-body > .card-actions { margin-top: auto; padding: 1rem 0 .4rem; }
.dash-grid .dash-card .card-actions { display: flex; flex-wrap: wrap; gap: .5rem; }

/* Member home: sign in, household, pastoral care leader */
.dash-bar .dash-signin { margin-right: auto; }
.signin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1.2rem; align-items: start; }
.signin-grid h3 { margin: 0 0 .2rem; font-size: 1rem; } .signin-grid p { margin: 0 0 .6rem; }
.signin-qr { display: inline-block; padding: .5rem; background: #fff; border: 1px solid var(--line); border-radius: 12px; } .signin-qr svg { display: block; max-width: 100%; height: auto; }
.signin-tap { width: 100%; min-height: 3.2rem; font-size: 1.1rem; }
.signin-status { margin: .8rem 0 0; min-height: 1.2rem; } .signin-status.ok { color: var(--ok, #1d6b3a); font-weight: 600; }
.linklike { background: none; border: 0; box-shadow: none; padding: 0; min-height: 0; height: auto; color: var(--accent); font-weight: 600; text-decoration: none; cursor: pointer; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1rem; margin: 0 0 1rem; } .facts dt { color: var(--soft, #6b6359); } .facts dd { margin: 0; }
.dash-card .leader-id { margin: 0 0 .4rem; }
.leader-thread { display: grid; gap: .35rem; max-height: 6.5rem; overflow-y: auto; margin-bottom: .4rem; }
.lt-msg { padding: .3rem .55rem; border-radius: 10px; background: #f4efe8; justify-self: start; max-width: 92%; } .lt-msg.mine { background: var(--peach, #fdece1); justify-self: end; }
.lt-msg p { margin: 0; overflow-wrap: anywhere; } .lt-msg small { font-size: .72rem; } .lt-msg .wish-img { max-width: 100%; max-height: 6rem; border-radius: 8px; }
.dash-card .wish-composer textarea { min-height: 2.6rem; }
.pl-list table { width: 100%; } .pl-list select { min-width: 14rem; }
.hero h1 { color: #999; } /* 40% grey: softer than white on the dark banner */

/* Your Workspace heading: larger, lighter and set well apart from the dashboard cards */
.dash-workspace { margin-top: 4.5rem; }
.dash-workspace .eyebrow { font-size: .85rem; letter-spacing: .14em; margin: 0 0 .6rem; }
.dash-workspace h2 { font-size: clamp(2.2rem, 4vw, 2.9rem); font-weight: 400; letter-spacing: -.01em; margin: 0 0 .5rem; color: #444; }
.dash-workspace > .soft { font-size: 1.15rem; margin: 0 auto 2.2rem; }

/* Notices: the monthly board (warm page, white board, soft header, large date boxes) */
.notice-board { background: #fff; border: 1px solid #e6e0d6; border-radius: 22px; padding: 1.1rem 1.3rem 1.4rem; box-shadow: 0 2px 10px rgba(60, 40, 20, .06); margin-bottom: 1.5rem; }
.notice-controls { display: flex; flex-wrap: wrap; gap: .8rem 1rem; align-items: flex-end; margin-bottom: 1rem; }
.monthly { border: 1px solid #e6e0d6; border-radius: 14px; overflow: hidden; background: #fff; }
.monthly-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; background: #f7f5f0; border-left: 5px solid var(--accent); padding: 1.1rem 1.4rem; border-bottom: 1px solid #e6e0d6; }
.monthly-head .eyebrow { margin: 0 0 .25rem; } .monthly-head h2 { margin: 0 0 .5rem; font-size: 1.5rem; font-weight: 600; } .monthly-head p { margin: 0; }
.monthly-body { padding: 1.2rem 1.4rem 1.6rem; } .monthly-body h3 { margin: 1.3rem 0 .6rem; font-size: 1rem; } .monthly-body h3:first-child { margin-top: 0; }
.service-dates { list-style: none; margin: 0; padding: 0; }
.service-date { display: flex; gap: 1.2rem; align-items: flex-start; padding: 1.1rem 0; border-bottom: 1px solid #ece6dc; } .service-date:last-child { border-bottom: 0; }
.datebox { flex: none; display: grid; justify-items: center; align-content: center; gap: .15rem; width: 4.4rem; height: 4.9rem; border: 1px solid #e4ddd1; border-radius: 12px; background: #faf8f4; }
.datebox b { color: var(--accent); font-size: 1.7rem; font-weight: 500; line-height: 1; } .datebox small { color: #7a7268; font-size: .85rem; }
.service-info p { margin: .15rem 0 0; } .service-title { color: inherit; font-weight: 600; font-size: 1.05rem; text-decoration: none; }
.service-time { font-size: .95rem; } .service-length { color: var(--accent); font-weight: 600; }
.service-date.cancelled .service-title { text-decoration: line-through; }
.next-two { margin: 1rem 0; } .next-two summary { cursor: pointer; font-weight: 600; }

/* One heading for every page and for "Your Workspace": same sizes, same colours */
.page-title .eyebrow, .dash-workspace .eyebrow { font-size: .82rem; letter-spacing: .16em; margin: 0 0 .6rem; color: var(--orange-text); }
.page-title h1, .dash-workspace h2 { font-size: clamp(2.3rem, 5vw, 3.3rem); font-weight: 400; letter-spacing: .005em; line-height: 1.15; color: #3d3a36; margin: 0; }
.page-title .page-sub, .dash-workspace > .soft { font-size: 1.2rem; color: #6f6a63; margin: .7rem auto 0; max-width: 42rem; }
.page-title { padding: 10px 0 28px; }
.dash-workspace > .soft { margin-bottom: 2.4rem; }
@media (max-width: 1000px) { .page-title h1, .dash-workspace h2 { font-size: clamp(1.9rem, 8vw, 2.5rem); } }
:root[data-theme="dark"] .page-title h1, :root[data-theme="dark"] .dash-workspace h2 { color: var(--ink); }

/* Member Dashboard: the family and pastoral care leader panel under the banner */
.family-strip { padding: 1.4rem 1.6rem 1.6rem; margin-bottom: 1.4rem; border-radius: 16px; }
.family-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.family-head h2 { margin: 0 0 .3rem; font-size: 1.5rem; font-weight: 500; } .family-head p { margin: 0; }
.family-links { display: flex; align-items: center; gap: 1rem; } .family-links .linklike { font-size: 1rem; }
.family-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.family-col { padding: 0 1.6rem; min-width: 0; } .family-col:first-child { padding-left: 0; border-right: 1px solid var(--line); } .family-col:last-child { padding-right: 0; }
.family-col h3 { margin: 0 0 .8rem; font-size: 1.05rem; font-weight: 600; }
.family-col .leader-thread { max-height: 9rem; } .family-col .card-actions { margin-top: .8rem; }
@media (max-width: 760px) { .family-cols { grid-template-columns: 1fr; } .family-col, .family-col:first-child, .family-col:last-child { padding: 0 0 1rem; border-right: 0; } }
.family-col ul { list-style: none; margin: 0; padding: 0; } .family-col li { padding: .35rem 0; }

/* Quick people search (opens over the current page) */
.quick-results{margin-top:12px}
.quick-list{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.quick-list a{display:flex;flex-direction:column;gap:2px;padding:10px 12px;border-radius:10px;text-decoration:none}
.quick-list a:hover,.quick-list a:focus-visible{background:rgba(127,127,127,.15)}

/* Family panel: tighter height */
.family-strip { padding: .8rem 1.2rem .9rem; margin-bottom: 1rem; }
.family-strip h2, .family-strip .family-head { margin: 0; }
.family-strip p { margin: .15rem 0; }
.family-col h3 { margin: 0 0 .35rem; font-size: 1rem; }
.family-col { padding-top: 0; padding-bottom: 0; }
.family-col li { padding: .15rem 0; }
.family-col .card-actions { margin-top: .4rem; }
.family-col .empty, .family-col .soft { margin: 0 0 .4rem; }
.family-strip .family-col p.empty { padding: 0; margin: 0 0 .5rem; min-height: 0; text-align: left; border: 0; background: none; }
.family-strip .family-head { margin-bottom: .5rem; }

/* Settings hub */
.settings-group { margin: 0 0 1.6rem; } .settings-group h2 { font-size: 1.15rem; margin: 0 0 .7rem; }
.settings-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: .9rem; }
.settings-card { display: flex; flex-direction: column; gap: .35rem; padding: 1rem 1.1rem; background: var(--panel, #fff); border: 1px solid var(--line); border-radius: 12px; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.settings-card strong { color: var(--accent); font-size: 1rem; font-weight: 600; } .settings-card span { color: var(--soft, #6b6359); font-size: .85rem; line-height: 1.4; }
.settings-card:hover, .settings-card:focus-visible { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,.12); }
.settings-card.soon { opacity: .6; cursor: default; } .settings-card.soon:hover { transform: none; box-shadow: none; }
.whatsapp-join { background: #1f9d55; color: #fff; border-color: #1a8a4a; }
.whatsapp-join:hover, .whatsapp-join:focus-visible { background: #1a8a4a; color: #fff; }

/* Spacing and back button */
.conn-results { display: grid; gap: .9rem; margin-top: .8rem; } .conn-results li { display: flex; align-items: center; gap: .6rem; }
.field-hint { display: block; margin-top: .45rem; }
.back-to-settings { margin: 0 0 .9rem; }

/* Attendance: framed sections and figure cards */
.att-section { background: var(--surface, #fff); border: 1px solid var(--line); border-radius: 16px; padding: 1.2rem 1.4rem 1.3rem; margin: 0 0 1.3rem; box-shadow: var(--card-shadow, 0 1px 3px rgba(0,0,0,.06)); }
.att-section > h2 { margin: 0 0 .9rem; padding-bottom: .6rem; border-bottom: 1px solid var(--line); font-size: 1.15rem; }
.att-section .stats .stat { background: color-mix(in srgb, var(--paper, #f5f2ec) 75%, var(--surface, #fff)); border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: 12px; padding: .8rem 1rem .9rem; }
.att-section .stats .stat:nth-child(4n+2) { border-top-color: #343434; } .att-section .stats .stat:nth-child(4n+3) { border-top-color: #f5ad42; } .att-section .stats .stat:nth-child(4n+4) { border-top-color: #b64a2a; }
.att-section .stats { gap: 1rem; margin-bottom: 1rem; }
.svc-panel { background: color-mix(in srgb, var(--paper, #f5f2ec) 60%, var(--surface, #fff)); }
.svc-card { display: grid; justify-items: center; text-align: center; gap: .15rem; }
.svc-title { margin: 0 0 .5rem; font-size: 1.05rem; font-weight: 600; }
.svc-figure { display: grid; justify-items: center; line-height: 1.1; } .svc-figure span { font-size: .78rem; color: var(--ink-soft); margin-top: .15rem; }
.svc-total strong { font-size: 2.3rem; font-weight: 600; } .svc-average { margin-top: .5rem; } .svc-average strong { font-size: 1.45rem; font-weight: 500; }
.svc-note { margin: .4rem 0 .6rem; font-size: .8rem; }

/* Giving: plain amounts, and the note under My Gifts lined up with the message above it */
.plain-amount, .card-grid .panel-plain .plain-amount { font-weight: 400 !important; } .plain-amount * { font-weight: 400; } .gift-note, .gift-empty { padding: 0; margin: .4rem 0 1rem; text-align: left; }

/* Give page: the front-facing giving screen */
.give-wrap { display: flex; justify-content: center; padding: .5rem 0 2rem; }
.give-card { width: 100%; max-width: 30rem; background: var(--surface, #fff); border: 1px solid var(--line); border-radius: 16px; padding: 1.2rem 1.4rem 1.5rem; box-shadow: var(--card-shadow, 0 1px 3px rgba(0,0,0,.06)); }
.give-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: .7rem; border-bottom: 2px solid var(--ink, #222); margin-bottom: 1rem; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; }
.give-secure { background: color-mix(in srgb, var(--accent) 12%, var(--surface, #fff)); border-radius: 6px; padding: .15rem .55rem; font-size: .72rem; }
.give-box { border: 1px solid var(--line); border-radius: 10px; background: color-mix(in srgb, var(--paper, #f5f2ec) 70%, var(--surface, #fff)); overflow: hidden; margin-bottom: 1rem; }
.give-money { display: flex; align-items: center; justify-content: center; gap: .5rem; padding: 1.1rem 1rem; background: var(--surface, #fff); border-bottom: 1px solid var(--line); }
.give-money span { font-size: 1.6rem; color: var(--ink-soft); }
.give-money .give-amount { width: 9rem; font-size: 2.6rem; font-weight: 500; text-align: left; border: 0; background: transparent; box-shadow: none; padding: 0; color: var(--ink, #222); }
.give-row { display: grid; grid-template-columns: 6.5rem 1fr; align-items: center; gap: .6rem; padding: .55rem .9rem; border-bottom: 1px solid var(--line); } .give-row:last-child { border-bottom: 0; }
.give-row label { font-size: .85rem; color: var(--ink-soft); text-align: right; } .give-row select, .give-row input { width: 100%; }
.give-check { display: flex; align-items: flex-start; gap: .6rem; margin: .6rem 0; } .give-check label { font-size: .9rem; }
.give-who { font-size: .85rem; color: var(--ink-soft); margin: .6rem 0; }
.give-aid { border: 1px solid var(--line); border-radius: 10px; margin: .6rem 0; padding: .5rem 0; } .give-aid > p { padding: 0 .9rem; }
.give-go { width: 100%; background: #1c2146; color: #fff; border: 0; border-radius: 8px; padding: .8rem 1rem; font-size: 1rem; cursor: pointer; margin-top: .4rem; }
.give-go:hover, .give-go:focus-visible { background: #2a3066; } .give-go[disabled] { opacity: .6; cursor: default; }
.give-note { padding: .5rem 0; }
.give-banner { background: #e8f6ee; color: #1d6b3d; border-radius: 8px; padding: .7rem 1rem; margin-bottom: 1.2rem; font-size: .9rem; }
.give-prayer { border-left: 3px solid var(--line); padding: .2rem 1.1rem; margin: 0 0 1.2rem; font-size: 1rem; line-height: 1.6; white-space: pre-wrap; }

/* One Back button for every page: in the white bar under the title, on the left. */
.toolbar > .back-btn { margin-right: auto; }
.toolbar > .back-btn + * { margin-left: 0; }

/* Messages board: folders, conversations, the open conversation with its reply box. */
.board { display: grid; grid-template-columns: 190px minmax(240px, 320px) 1fr; gap: 14px; align-items: start; }
.board-folders, .board-list, .board-pane { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--card-shadow); padding: 12px; }
.board-folders { display: flex; flex-direction: column; gap: 6px; }
.board-new { width: 100%; margin-bottom: 6px; }
.board-folder { display: flex; justify-content: space-between; align-items: center; width: 100%; text-align: left; background: none; border: 0; border-radius: 10px; padding: 8px 10px; font: inherit; color: inherit; cursor: pointer; }
.board-folder.on { background: color-mix(in srgb, var(--accent) 12%, transparent); font-weight: 600; }
.board-count { font-size: .8rem; color: var(--muted, #7a6f66); }
.board-list { display: flex; flex-direction: column; gap: 4px; max-height: 70vh; overflow-y: auto; }
.board-row, .board-pick { display: flex; gap: 10px; align-items: flex-start; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); padding: 10px 6px; font: inherit; color: inherit; cursor: pointer; border-radius: 0; }
.board-row.on { background: none; }
.board-row .avatar, .board-head .avatar, .board-pick .avatar { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 16%, transparent); font-size: .8rem; font-weight: 600; }
.board-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.board-text .soft { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 230px; }
.board-row.unread strong { color: var(--accent); }
.board-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.board-head h2 { margin: 0; font-size: 1.1rem; }
.board-head .grow { flex: 1; }
.board-reply { border-top: 1px solid var(--line); padding-top: 10px; }
.board-reply textarea, .board-compose textarea { width: 100%; }
.board-compose .toolbar, .board-reply .toolbar { box-shadow: none; border: 0; padding: 8px 0 0; margin: 0; background: none; }
@media (max-width: 1100px) { .st-canvases { flex-wrap:wrap; } }
@media (max-width: 900px) { .board { grid-template-columns: 1fr; } .board-folders { flex-direction: row; flex-wrap: wrap; } }
/* Notifications: every message lines up on the left. */
.inbox .note-main { display: flex; flex-direction: column; align-items: flex-start; text-align: left; width: 100%; gap: 2px; }

/* Dashboard cards: the title is always larger than the text inside the box. */
.dash-grid .dash-head h2, .dash-grid .dash-bday > h2 { font-size: 1.12rem; font-weight: 600; }
.dash-grid .dash-head p { font-size: .8rem; }
.dash-grid .dash-body, .dash-grid .dash-body p, .dash-grid .dash-body a, .dash-grid .dash-body li, .dash-grid .dash-bday { font-size: .88rem; }
.dash-grid .dash-body strong, .dash-grid .dash-bday strong { font-size: .9rem; }

/* Address Book: list rows, contact pop-up, tags page, key dates (the owner's designs). */
.tagchip { display: inline-flex; align-items: center; gap: .25rem; border: 1px solid; border-radius: 999px; padding: .1rem .6rem; font-size: .76rem; background: transparent; }
.tagchip.auto { border-style: solid; }
.metric-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 16px; }
.metric-row .metric { padding: 16px 20px; display: flex; flex-direction: column; gap: 6px; }
.metric-row .metric strong { font-size: 2rem; font-weight: 500; }
.people-panel { padding: 16px; }
.people-filters { display: grid; grid-template-columns: minmax(180px, 2fr) 1fr 1fr auto; gap: 10px; align-items: center; }
.people-filters.has-branch { grid-template-columns: minmax(180px, 2fr) 1fr 1fr 1fr; }
.people-filters > .field { margin: 0; min-width: 0; }
.people-filters select, .people-filters input { width: 100%; min-width: 0; margin: 0; }
.people-filters.has-branch .viewtoggle { grid-column: 1 / -1; justify-self: start; }
.people-head, .people-row { display: grid; grid-template-columns: minmax(220px, 3fr) 1.2fr 1.2fr .6fr; gap: 10px; align-items: center; padding: 14px 8px; }
.people-head { background: color-mix(in srgb, var(--accent) 5%, var(--surface)); font-size: .8rem; font-weight: 600; border-radius: 8px; }
.people-row { border-bottom: 1px solid var(--line); }
.pr-contact { display: flex; gap: 12px; align-items: flex-start; }
.pr-contact .avatar, .cd-head .avatar { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 16%, transparent); font-size: .8rem; font-weight: 600; }
.pr-contact .tagchips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.person-link { color: inherit; font-weight: 600; font-size: 1rem; }
.status-pill { display: inline-block; padding: .25rem .8rem; border-radius: 999px; background: color-mix(in srgb, var(--accent) 10%, var(--surface)); font-size: .78rem; }
.list-count { margin: .5rem 0; font-size: .85rem; }
.cd-head { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; } .cd-head h3 { margin: 0; }
.cd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cd-field { background: color-mix(in srgb, var(--accent) 5%, var(--surface)); border-radius: 12px; padding: 12px 14px; min-height: 64px; }
.cd-field small { display: block; font-size: .72rem; color: var(--muted, #7a6f66); margin-bottom: 4px; }
.cd-field .tagchips { display: flex; flex-wrap: wrap; gap: 6px; }
.cd-dates { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; margin: 14px 4px; } .cd-dates dd { margin: 0; text-align: right; } .cd-dates dt { color: var(--muted, #7a6f66); }
@media (max-width: 720px) { .cd-grid, .people-filters, .metric-row { grid-template-columns: 1fr; } .people-head { display: none; } .people-row { grid-template-columns: 1fr; } }
.tags-layout { display: grid; grid-template-columns: minmax(260px, 1fr) 2fr; gap: 16px; align-items: start; }
.tag-create { display: grid; gap: 14px; } .tag-palette { border: 1px solid var(--line); border-radius: 12px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 12px; padding: 12px; }
.tag-head { display: flex; justify-content: space-between; align-items: center; }
.tag-rows { max-height: 60vh; overflow-y: auto; margin-top: 10px; }
.tag-row { display: grid; grid-template-columns: minmax(160px, 2fr) 1fr auto auto; gap: 10px; align-items: center; padding: 10px 4px; border-bottom: 1px solid var(--line); }
.tag-dot { display: inline-block; width: .7rem; height: .7rem; border-radius: 50%; }
@media (max-width: 800px) { .tags-layout { grid-template-columns: 1fr; } }
.kd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.kd-card { padding: 0; display: flex; flex-direction: column; border-top: 3px solid var(--kd, var(--accent)); }
.kd-0 { --kd: #e8590c; } .kd-1 { --kd: #2b2b2b; } .kd-2 { --kd: #b8860b; } .kd-3 { --kd: #b5472a; } .kd-4 { --kd: #8b7765; } .kd-5 { --kd: #2f6f5e; }
.kd-head { display: flex; gap: 12px; padding: 16px 16px 10px; } .kd-head h2 { margin: 0 0 2px; font-size: 1.05rem; } .kd-head p { margin: 0 0 4px; font-size: .82rem; }
.kd-icon { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--kd) 14%, var(--surface)); color: var(--kd); } .kd-icon svg { width: 20px; height: 20px; }
.kd-rows { padding: 0 16px; } .kd-row { display: flex; justify-content: space-between; gap: 8px; padding: 10px 0; border-top: 1px solid var(--line); color: inherit; font-size: .88rem; }
.kd-more { padding: 12px 16px; margin-top: auto; font-size: .85rem; }
.tags-layout { grid-template-columns: minmax(300px, 1fr) minmax(0, 2fr); } .tags-layout > * { min-width: 0; }
.tag-palette { grid-template-columns: repeat(2, 1fr); }

/* Task conversation */
.task-conversation { display: grid; gap: 14px; margin-top: 16px; }
.task-section { padding: 16px; } .task-section h2 { margin: 0 0 8px; font-size: 1.05rem; }
.task-update { border-top: 1px solid var(--line); padding: 10px 0; } .task-update header { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.task-update.tu-approval { border-left: 3px solid var(--accent); padding-left: 10px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* Full contact card uses the same labelled boxes as the pop-up */
.cd-page-head { margin: 4px 0 14px; } .cd-page-head h2 { margin: 0; font-size: 1.4rem; }
.cd-page-head .avatar.big { width: 56px; height: 56px; font-size: 1.1rem; }
.cd-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 18px; }
@media (max-width: 1100px) { .st-canvases { flex-wrap:wrap; } }
@media (max-width: 900px) { .cd-grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .cd-grid-3 { grid-template-columns: 1fr; } }
.board-list, .board-pane { min-height: 440px; }
.board-row { min-height: 72px; } .board-row .preview, .board-row .soft { white-space: normal; }
/* Tags page layout: compact coloured pills, count column, actions on the right */
.tag-rows { max-height: 68vh; padding-right: 6px; }
.tag-row { grid-template-columns: minmax(0, 1fr) 96px 150px; gap: 14px; padding: 12px 6px; }
.tag-row .tagchip { justify-self: start; max-width: 100%; padding: .22rem .75rem; font-size: .82rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tag-row > .soft:nth-child(2) { text-align: right; font-variant-numeric: tabular-nums; }
.tag-row .tag-auto { grid-column: 3; text-align: right; font-size: .78rem; }
.tag-row > button { justify-self: end; }
.tag-row:has(button + button) { grid-template-columns: minmax(0, 1fr) 96px auto auto; }
.tags-layout > .panel-plain { padding: 20px; }
.tag-create { gap: 18px; } .tag-palette { padding: 14px 16px; gap: 12px 16px; }
.tag-create .primary { width: 100%; padding: 12px; }
.tag-create, .tag-create > * { min-width: 0; max-width: 100%; box-sizing: border-box; } .tag-create input[type=text] { width: 100%; box-sizing: border-box; }
.tag-palette { min-width: 0; box-sizing: border-box; } .tag-create .check { flex-wrap: wrap; }
.tag-row { grid-template-columns: minmax(0, 1fr) 84px 72px; gap: 10px; }
.tag-row .tagchip { overflow: visible; white-space: normal; border-radius: 14px; }
.tags-layout { grid-template-columns: minmax(280px, 340px) minmax(0, 1fr); }
.tag-row { grid-template-columns: minmax(0, 1fr) 96px 78px; } .tag-row > .soft { white-space: nowrap; }
.tag-palette label.check { white-space: nowrap; }
/* Key Dates: icon on top, one neutral card style (no coloured borders) */
.kd-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1100px) { .st-canvases { flex-wrap:wrap; } }
@media (max-width: 900px) { .kd-grid { grid-template-columns: 1fr 1fr; } } @media (max-width: 560px) { .kd-grid { grid-template-columns: 1fr; } }
.kd-card, .kd-card[class*="kd-"] { --kd: var(--accent); border-top: 1px solid var(--line); }
.kd-card::before, .kd-card::after { display: none; content: none; }
.kd-head { flex-direction: column; gap: 10px; padding: 18px 18px 10px; }
.kd-icon { background: color-mix(in srgb, var(--accent) 12%, var(--surface)); color: var(--accent); }
.kd-rows { padding: 0 18px; } .kd-more { padding: 14px 18px; }
/* Key Dates: always three across on desktop and tablet, larger cards */
.kd-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 1100px) { .st-canvases { flex-wrap:wrap; } }
@media (max-width: 900px) { .kd-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .kd-grid { grid-template-columns: 1fr; } }
.kd-card { min-height: 460px; }
.kd-head { padding: 26px 26px 14px; gap: 14px; } .kd-icon { width: 48px; height: 48px; border-radius: 14px; } .kd-icon svg { width: 26px; height: 26px; }
.kd-head h2 { font-size: 1.3rem; } .kd-head p { font-size: .95rem; } .kd-head small { font-size: .85rem; }
.kd-rows { padding: 0 26px; } .kd-row { padding: 15px 0; font-size: 1rem; }
.kd-more { padding: 18px 26px; font-size: .95rem; }

/* Reports: Management Insights tiles and Report Library cards */
.rep-panel, .rep-library { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--card-shadow); padding: 22px; margin-bottom: 18px; }
.rep-panel h2, .rep-library h2 { margin: 0 0 6px; font-size: 1.05rem; }
.rep-controls { display: flex; flex-wrap: wrap; gap: 14px; margin: 14px 0; } .rep-controls label { display: grid; gap: 4px; font-size: .78rem; color: var(--muted, #7a6f66); min-width: 150px; flex: 1; }
.rep-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 8px; }
.rep-tile { position: relative; background: color-mix(in srgb, var(--accent) 3%, var(--surface)); border: 1px solid var(--line); border-radius: 14px; padding: 20px 18px 16px; overflow: hidden; }
.rep-tile::before, .rep-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, transparent, var(--rc, var(--accent)), transparent); }
.rep-a0 { --rc: #e8590c; } .rep-a1 { --rc: #2b2b2b; } .rep-a2 { --rc: #e8a317; } .rep-a3 { --rc: #b5472a; }
.rep-label { margin: 0 0 8px; font-size: .8rem; color: var(--muted, #7a6f66); } .rep-value { margin: 0; font-size: 2rem; font-weight: 600; } .rep-note { margin: 6px 0 0; font-size: .78rem; color: var(--muted, #7a6f66); }
.rep-foot { margin: 14px 0 0; font-size: .8rem; }
.rep-lib { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 14px 0 18px; }
.rep-card { position: relative; text-align: left; display: flex; flex-direction: column; gap: 6px; min-height: 96px; padding: 16px 14px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; cursor: pointer; font: inherit; color: inherit; overflow: hidden; }
.rep-card strong { color: var(--accent); font-size: .92rem; } .rep-card span { font-size: .78rem; color: var(--muted, #7a6f66); line-height: 1.35; }
.rep-card.on { background: color-mix(in srgb, var(--accent) 8%, var(--surface)); border-color: var(--accent); } .rep-card:hover { border-color: var(--accent); }
.rep-detail { background: color-mix(in srgb, var(--accent) 3%, var(--surface)); border: 1px solid var(--line); border-radius: 14px; padding: 18px; max-height: 520px; overflow: auto; } .rep-detail h3 { margin: 0 0 12px; font-size: 1rem; }
.rep-scroll { overflow-x: auto; } .rep-table { width: 100%; border-collapse: collapse; font-size: .88rem; } .rep-table th { text-align: left; font-size: .76rem; font-weight: 600; color: var(--muted, #7a6f66); padding: 8px 10px; border-bottom: 1px solid var(--line); } .rep-table td { padding: 10px; border-bottom: 1px solid var(--line); }
.rep-bar { display: block; height: 8px; border-radius: 4px; background: var(--accent); }
@media (max-width: 1100px) { .st-canvases { flex-wrap:wrap; } }
@media (max-width: 900px) { .rep-tiles, .rep-lib { grid-template-columns: repeat(2, minmax(0, 1fr)); } } @media (max-width: 520px) { .rep-tiles, .rep-lib { grid-template-columns: 1fr; } }

/* Attendance reports: one overview panel, compact service cards, tiles in the shared report style */
.att-controls-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; } .att-controls-head h2 { margin: 0; }
.att-controls .filterbar { background: none; border: 0; box-shadow: none; padding: 0; margin: 8px 0; }
.att-section .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; } @media (max-width: 1100px) { .st-canvases { flex-wrap:wrap; } }
@media (max-width: 900px) { .att-section .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } } @media (max-width: 560px) { .att-section .card-grid { grid-template-columns: 1fr; } }
.svc-panel { text-align: center; padding: 16px 14px; }
.att-section .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; } @media (max-width: 1100px) { .st-canvases { flex-wrap:wrap; } }
@media (max-width: 900px) { .att-section .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.att-section .stats .stat, .att-section .metrics .metric, .care-tiles > * { position: relative; background: color-mix(in srgb, var(--accent) 3%, var(--surface)); border: 1px solid var(--line); border-radius: 14px; padding: 18px 16px; overflow: hidden; }
.att-section .stats .stat::before, .att-section .metrics .metric::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, transparent, var(--accent), transparent); }
.att-section .stats .stat:nth-child(4n+2)::before { background: linear-gradient(90deg, transparent, #2b2b2b, transparent); } .att-section .stats .stat:nth-child(4n+3)::before { background: linear-gradient(90deg, transparent, #e8a317, transparent); } .att-section .stats .stat:nth-child(4n+4)::before { background: linear-gradient(90deg, transparent, #b5472a, transparent); }
.att-section .stats .stat { border-top: 1px solid var(--line); }
.rep-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; } .rep-two > .rep-panel { margin-bottom: 18px; } @media (max-width: 800px) { .rep-two { grid-template-columns: 1fr; } }
.rep-panel .data-table { width: 100%; border-collapse: collapse; font-size: .88rem; } .rep-panel .data-table th { text-align: left; font-size: .76rem; color: var(--muted, #7a6f66); padding: 8px 10px; background: color-mix(in srgb, var(--accent) 4%, var(--surface)); } .rep-panel .data-table td { padding: 10px; border-bottom: 1px solid var(--line); }
.rep-detail h3 + .chart-panel { margin-top: 0; } .rep-detail .chart-panel { border: 0; box-shadow: none; background: none; padding: 0; }
.rep-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; } .rep-grid > .rep-panel { margin-bottom: 0; } @media (max-width: 1100px) { .st-canvases { flex-wrap:wrap; } }
@media (max-width: 900px) { .rep-grid { grid-template-columns: 1fr; } }
.rep-bars { display: grid; gap: 12px; margin-top: 10px; } .rep-barlabel { display: flex; justify-content: space-between; gap: 8px; font-size: .82rem; margin-bottom: 4px; }
.rep-track { display: block; height: 8px; border-radius: 4px; background: color-mix(in srgb, var(--line) 70%, transparent); margin-bottom: 3px; } .rep-fill { display: block; height: 100%; border-radius: 4px; } .rep-fill.cur { background: linear-gradient(90deg, #e8590c, #e8a317); } .rep-fill.prev { background: #7a6f66; }
.rep-grid-wide { margin-top: 18px; }
.rep-top { margin-bottom: 18px; } .rep-grid { align-items: stretch; margin-bottom: 18px; }
.give-row[hidden], .give-aid[hidden] { display: none; }
.give-public { border: 0; box-shadow: none; padding: .6rem 0 0; max-width: none; } .give-quick { display: flex; gap: 8px; padding: 10px 12px; flex-wrap: wrap; }
.give-wrap-form .give-row select, .give-wrap-form .give-row input { min-width: 0; }

/* task flow: board, drawer, details, messages */
.task-filters { display: grid; grid-template-columns: 2fr repeat(5, 1fr); gap: .8rem; align-items: end; }
.task-filters .field { min-width: 0; }
.task-filters select, .task-filters input { width: 100%; box-sizing: border-box; }
.task-col h3 .count { margin-left: .5rem; }
.task-col h3 .plus { width: 1.9rem; height: 1.9rem; padding: 0; border-radius: 999px; font-size: 1.2rem; line-height: 1; }
.task-quick { display: flex; gap: .4rem; margin-bottom: .6rem; }
.task-quick input { flex: 1; min-width: 0; }
.task-top { display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; }
.task-area { font-size: .75rem; color: var(--ink-soft); }
.task-desc { margin: 0; font-size: .82rem; }
.task-who { display: flex; align-items: center; gap: .45rem; }
.avatar { display: inline-grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--action-soft); color: var(--accent); font-size: .68rem; font-weight: 700; flex: none; }
.task-due { margin: 0; font-size: .82rem; }
.task-counts { display: flex; gap: .8rem; font-size: .78rem; color: var(--ink-soft); }
.task-tags { display: flex; gap: .3rem; flex-wrap: wrap; }
.task-card .task-title { text-decoration: none; }
.task-card:hover { border-color: var(--accent); }

.drawer-shade { position: fixed; inset: 0; background: rgba(0,0,0,.35); opacity: 0; transition: opacity .25s ease; z-index: 80; }
.drawer-shade.open { opacity: 1; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(34rem, 100vw); background: var(--paper); box-shadow: -12px 0 40px rgba(0,0,0,.25); z-index: 81; overflow-y: auto; padding: 1.2rem 1.3rem 3rem; transform: translateX(100%); transition: transform .3s cubic-bezier(.32,.72,0,1); }
.drawer.open { transform: none; }
.td { display: grid; gap: 1rem; }
.td-head { display: flex; justify-content: space-between; gap: 1rem; align-items: start; }
.td-head h2 { margin: 0 0 .4rem; font-size: 1.35rem; }
.td-badges { display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; }
.td-badges .tag, .td-badges .prio { margin: 0; }
.td-desc { margin: 0; }
.td-links { display: flex; gap: 1.1rem; flex-wrap: wrap; align-items: center; }
.td .link, .td-links a { display: inline-flex; align-items: center; min-height: 0; height: auto; margin: 0; line-height: 1.3; box-shadow: none; background: none; border: 0; padding: 0; color: var(--accent); font-weight: 600; font-size: .9rem; cursor: pointer; text-decoration: none; }
.td-info { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem 1.2rem; margin: 0; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.td-info dt { font-size: .75rem; color: var(--ink-soft); margin: 0 0 .15rem; }
.td-info dd { margin: 0; font-weight: 600; }
.td-info select { width: 100%; }
.td-box { border: 1px solid var(--line); border-radius: 14px; padding: .95rem 1.1rem; background: var(--surface); }
.td-box h3 { margin: 0 0 .6rem; font-size: 1rem; display: flex; gap: .6rem; align-items: center; }
.td-box h3 .count { font-size: .78rem; font-weight: 500; color: var(--ink-soft); }
.td-box summary { cursor: pointer; font-weight: 600; }
.td-box details > summary { margin-bottom: .6rem; }
.td-subs { list-style: none; margin: 0 0 .6rem; padding: 0; display: grid; gap: .45rem; }
.td-subs label { display: flex; gap: .55rem; align-items: center; }
.done-text { text-decoration: line-through; color: var(--ink-soft); }
.edit-steps li { display: flex; justify-content: space-between; align-items: center; gap: .6rem; }
.td-add { display: flex; gap: .5rem; }
.td-add input { flex: 1; min-width: 0; }
.thread { display: grid; gap: .7rem; margin: .6rem 0; max-height: 20rem; overflow-y: auto; }
.bubble { display: flex; gap: .6rem; align-items: flex-start; }
.bubble-body { background: var(--paper); border: 1px solid var(--line); border-radius: 4px 14px 14px 14px; padding: .55rem .8rem; min-width: 0; }
.bubble.mine .bubble-body { background: var(--action-soft); border-radius: 14px 4px 14px 14px; }
.bubble header { font-size: .82rem; }
.bubble p { margin: .2rem 0 0; }
.bubble-img { display: block; max-width: 100%; max-height: 14rem; border-radius: 10px; margin-top: .45rem; }
.tcomp { display: grid; gap: .5rem; position: relative; margin-top: .6rem; }
.tcomp textarea { width: 100%; box-sizing: border-box; }
.tcomp-bar { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.tcomp-bar .primary { margin-left: auto; }
.file-chip { font-size: .8rem; color: var(--ink-soft); max-width: 10rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tcomp-pop { position: absolute; bottom: 3rem; left: 0; z-index: 5; }
.tcomp-pop[hidden] { display: none; }
.emoji-picker { width: min(21rem, 86vw); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 34px rgba(0,0,0,.28); padding: .7rem; display: grid; gap: .5rem; }
.emoji-picker input { width: 100%; box-sizing: border-box; }
.emoji-tabs { display: flex; gap: .3rem; flex-wrap: wrap; }
.emoji-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: .15rem; max-height: 11rem; overflow-y: auto; }
.emoji { font-size: 1.3rem; padding: .2rem; background: none; border: 0; border-radius: 8px; cursor: pointer; }
.emoji:hover { background: var(--action-soft); }
.td-full { max-width: 52rem; }
@media (max-width: 1100px) { .st-canvases { flex-wrap:wrap; } }
@media (max-width: 900px) { .task-filters { grid-template-columns: 1fr 1fr; } }

.prio-wait { background: #e8e4fb; color: #3b3a8a; }
.task-foot { display: flex; justify-content: space-between; gap: .5rem; align-items: center; }
.flow-step { margin-bottom: .8rem; border-left: 3px solid var(--accent); }
.flow-step-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .5rem; }

/* appointments, counselling and notices tidy-up */
.note { padding: 1rem 1.25rem; }
.panel-plain > .note { border: 0; box-shadow: none; background: transparent; padding: .6rem 0; border-radius: 0; }
.panel-plain > .note + .note { border-top: 1px solid var(--line); }
.toolbar .toolbar-lead { margin-right: auto; }
.notice-controls { align-items: flex-end; }
.notice-controls .field { display: grid; gap: .3rem; flex: 0 1 15rem; }
.notice-controls select, .notice-controls input, .notice-controls .button { height: 2.6rem; box-sizing: border-box; }
.notice-controls .button:last-child { margin-left: auto; }
.data-table td a { white-space: nowrap; }

/* self check-in */
.ci-methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 1rem 0; }
.ci-method { display: grid; gap: .5rem; text-align: left; align-content: start; padding: 1.1rem 1.2rem; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); cursor: pointer; font-weight: 400; min-height: 10rem; }
.ci-method.selected { border-color: var(--accent); background: var(--action-soft); box-shadow: 0 0 0 1px var(--accent); }
.ci-method strong { font-size: 1rem; }
.ci-icon { width: 2rem; height: 2rem; color: var(--accent); } .ci-icon svg { width: 100%; height: 100%; }
.ci-state { color: var(--accent); font-size: .85rem; margin-top: auto; }
.ci-today { display: flex; justify-content: space-between; align-items: end; gap: 1rem; flex-wrap: wrap; }
.ci-today .field { min-width: 14rem; }
.ci-where { display: flex; gap: 1.4rem; margin: .6rem 0 1rem; }
.ci-where label { display: flex; gap: .45rem; align-items: center; }
.ci-pastoral { border-left: 3px solid var(--accent); }
@media (max-width: 800px) { .ci-methods { grid-template-columns: 1fr; } }

/* pie chart cards: no coloured top edge; the ring sits under the heading and above a full-width legend */
.card-grid .panel-plain.svc-panel { border-top: 1px solid var(--line); }
.svc-panel { padding: 22px 20px; }
.svc-panel svg.donut { max-width: none; max-height: none; width: calc(60.5cqw + 25.4px); margin: 0 auto; }
.svc-panel .donut-layout { flex-direction: column; gap: 18px; width: 100%; }
.svc-panel .donut-legend { width: 100%; flex: none; }

/* month and week pickers look like every other form box (dark by default) */
input[type="month"], input[type="week"] { border-width: 1px; border-style: solid; border-radius: 8px; padding: .5rem .7rem; font: inherit; font-size: .95rem; background: #303030; color: #fff4e8; border-color: #595959; color-scheme: dark; }

/* notices bar: Show, Refresh, Month and Post a Notice share one line, one height, one style */
.notice-controls { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .8rem 1rem; padding: 14px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--card-shadow); }
.notice-controls .field { display: grid; gap: .3rem; flex: 0 1 15rem; margin: 0; }
.notice-controls .field label { font-size: .8rem; color: var(--ink-soft); }
.notice-controls select, .notice-controls input, .notice-controls .button { height: 2.6rem; box-sizing: border-box; margin: 0; }
.notice-controls .button { display: inline-flex; align-items: center; padding: 0 1rem; }
.notice-controls .button:last-child { margin-left: auto; }

/* pie chart cards: rings sit on one line across the row; the legend is a small tinted block */
.svc-panel { display: flex; flex-direction: column; align-items: stretch; }
.svc-panel .svc-card { flex: 1; align-content: start; }
.svc-panel .svc-title { min-height: 2.9rem; display: flex; align-items: center; justify-content: center; }
.svc-panel .svc-note { min-height: 1.3rem; }
.svc-panel .donut-legend { background: color-mix(in srgb, var(--ink) 5%, var(--surface)); border-radius: 10px; padding: 8px; gap: 3px; }
.svc-panel .donut-legend li { min-height: 24px; padding: 2px 8px; font-size: .74rem; background: var(--surface); border-radius: 6px; }
.svc-panel .donut-legend small { font-size: .62rem; }
.svc-panel .donut-legend b { font-size: .78rem; }
.card-grid { align-items: stretch; }
.svc-panel .donut-legend:empty { display: none; }
.notice-controls { background: none; border: 0; box-shadow: none; padding: 0; }
.notice-controls .button.small, .notice-controls a.button { height: 2.6rem; min-height: 2.6rem; line-height: 1; padding-top: 0; padding-bottom: 0; }

.task-viewrow { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.task-viewrow .view-switch { margin: .5rem 0; }
.task-archived { display: inline-flex; align-items: center; gap: .5rem; margin: 0; font-size: .9rem; white-space: nowrap; }
.task-archived input { margin: 0; }
.task-filter-foot { display: flex; align-items: center; gap: .8rem; margin: .4rem 0 1rem; }

.ci-switch { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1.2rem; }
.ci-switch-card { display: grid; gap: .3rem; padding: 1rem 1.3rem; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); text-decoration: none; box-shadow: var(--card-shadow); }
.ci-switch-card strong { font-size: 1.02rem; font-weight: 500; } .ci-switch-card span { font-size: .8rem; color: var(--ink-soft); }
.ci-switch-card.on { background: var(--accent); border-color: var(--accent); color: #fff; } .ci-switch-card.on span { color: rgba(255,255,255,.88); }
.ci-switch-card:hover { border-color: var(--accent); }
@media (max-width: 640px) { .ci-switch { grid-template-columns: 1fr; } }

/* Check-In: device settings, team access, session page */
.dev-form { display: grid; gap: 1rem; }
.dev-set { border: 0; padding: 0; margin: 0; display: grid; gap: .5rem; }
.dev-set legend { font-weight: 600; margin-bottom: .4rem; }
.dev-opts { display: grid; gap: .5rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.dev-opt { display: flex; gap: .6rem; align-items: flex-start; padding: .7rem .8rem; border: 1px solid var(--line, #2a3446); border-radius: 10px; cursor: pointer; }
.dev-opt span { display: grid; gap: .15rem; }
.dev-opt small { opacity: .7; }
.dev-opt:has(input:checked) { border-color: var(--accent, #6aa6ff); background: rgba(106,166,255,.1); }
.team-list { list-style: none; margin: .75rem 0 0; padding: 0; display: grid; gap: .4rem; }
.team-list label { display: flex; gap: .6rem; align-items: center; padding: .5rem .6rem; border: 1px solid var(--line, #2a3446); border-radius: 8px; }
.ci-session { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.ci-kiosk-head { display: flex; gap: .75rem; align-items: center; margin-bottom: .75rem; }
.ci-results { display: grid; gap: .5rem; margin: .75rem 0; }
.ci-row { display: grid; grid-template-columns: auto 1fr minmax(10rem, 16rem); gap: .8rem; align-items: center; padding: .6rem .8rem; border: 1px solid var(--line, #2a3446); border-radius: 10px; }
.ci-who { display: grid; gap: .1rem; }
.ci-sure { display: flex; gap: .5rem; align-items: center; margin: .5rem 0; }
.ci-label { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; padding: .6rem 0; border-top: 1px solid var(--line, #2a3446); }
.ci-serial { font-variant-numeric: tabular-nums; font-weight: 700; letter-spacing: .08em; }
.ci-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: .75rem; margin: .75rem 0; }
.ci-tile { display: grid; gap: .2rem; padding: .8rem 1rem; border: 1px solid var(--line, #2a3446); border-radius: 12px; }
.ci-tile strong { font-size: 1.6rem; }
.ci-filters { display: flex; flex-wrap: wrap; gap: 1rem; align-items: end; margin-bottom: .75rem; }
.ci-table .ci-class-row td { background: rgba(255,255,255,.04); }
.actions.tight { display: flex; gap: .4rem; flex-wrap: wrap; }
@media (max-width: 640px) { .ci-row { grid-template-columns: auto 1fr; } .ci-carer { grid-column: 1 / -1; } }
.ci-sure[hidden] { display: none; }
.edit-step { display: grid; gap: .4rem; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.edit-step input[type=search] { max-width: 22rem; }

/* Subtask cards in the task form */
.sub-cards { display: grid; gap: .75rem; margin-bottom: .5rem; }
.sub-card { border: 1px solid var(--line, #2a3446); border-radius: 12px; padding: .8rem 1rem; display: grid; gap: .6rem; }
.sub-card-head { display: flex; justify-content: space-between; align-items: center; }
.sub-meta { margin: .1rem 0 0 1.6rem; font-size: .85rem; } .sub-desc { margin: .1rem 0 0 1.6rem; }

/* Children module */
.kid-bar { align-items: center; flex-wrap: wrap; }
.kid-bar h2 { margin: 0; font-size: 1.15rem; }
.toolbar-gap { flex: 1 1 auto; }
.kid-bar .kid-search { margin-left: auto; min-width: 14rem; }
.kid-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); gap: 1rem; margin-top: 1rem; }
.kid-card { background: var(--panel, #fff); border: 1px solid var(--line, #e7e1d9); border-radius: 14px; display: grid; grid-template-rows: auto 1fr auto; overflow: hidden; }
.kid-card header { display: flex; gap: .75rem; align-items: center; padding: .9rem 1rem; border-bottom: 1px solid var(--line, #e7e1d9); }
.kid-card header > div { display: grid; }
.kid-card header .soft { font-size: .8rem; }
.kid-card-icon { width: 2rem; height: 2rem; border-radius: 8px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.kid-card-icon svg { width: 1.1rem; height: 1.1rem; }
.kid-card-body { padding: .9rem 1rem; max-height: 14rem; overflow: auto; }
.kid-card footer { padding: .7rem 1rem; border-top: 1px solid var(--line, #e7e1d9); display: flex; gap: 1rem; flex-wrap: wrap; font-size: .85rem; }
.kid-card footer a { text-decoration: none; }
.kid-stats { display: flex; gap: 1.5rem; flex-wrap: wrap; margin-bottom: .6rem; }
.kid-stats > div { display: grid; }
.kid-stats strong { font-size: 1.7rem; font-weight: 500; }
.kid-stats .soft { font-size: .78rem; }
.kid-rows { list-style: none; margin: 0; padding: 0; display: grid; }
.kid-rows li { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-bottom: 1px solid var(--line, #e7e1d9); }
.kid-rows li:last-child { border-bottom: 0; }
.kid-rows a { text-decoration: none; }
.kid-h2 { margin: 1.5rem 0 .2rem; font-size: 1.2rem; }
.kid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(11.5rem, 1fr)); gap: .8rem; margin: .6rem 0 1rem; }
.kid-cards.four { grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.kid-mini { background: var(--panel, #fff); border: 1px solid var(--line, #e7e1d9); border-radius: 12px; padding: .9rem 1rem; display: grid; gap: .35rem; align-content: start; }
.kid-mini h3 { margin: 0; font-size: 1.05rem; font-weight: 500; }
.kid-mini p { margin: 0; }
.kid-mini.kd { min-height: 15rem; }
.kid-points { margin: .4rem 0; padding-left: 1.1rem; display: grid; gap: .35rem; }
.pager { display: flex; gap: 1rem; align-items: center; margin-top: .8rem; }
.rep-filters { display: grid; gap: .5rem; margin: .5rem 0; }
.rep-filter { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.print-report h1 { font-size: 1.4rem; }
@media print { .print-report { display: block; } }
.kid-actions { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: auto; padding-top: .5rem; }
.kid-empty { grid-column: 1 / -1; }
.kid-cards.four { grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); }
.kid-mini.kd { display: flex; flex-direction: column; }

/* Rotas */
.rota-panel { margin-top: 1rem; }
.rota-panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: .6rem; }
.rota-panel-head h2 { margin: 0; font-size: 1.15rem; }
.rota-list { list-style: none; margin: 0; padding: 0; display: grid; }
.rota-list li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .75rem 0; border-bottom: 1px solid var(--line, #e7e1d9); }
.rota-list li:last-child { border-bottom: 0; }
.rota-list li > div:first-child { display: grid; gap: .15rem; min-width: 0; }
.rota-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.rota-form { display: grid; gap: .8rem; }
.rota-two { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.rota-form input:not([type="checkbox"]), .rota-form select { background: #303030; color: #fff4e8; border-color: #595959; color-scheme: dark; }
.rota-check { display: flex; gap: .6rem; align-items: flex-start; }
.rota-check input { margin-top: .25rem; }
.rota-check span { display: grid; }
.rota-day h3 { margin: .8rem 0 .3rem; font-size: 1rem; }
.rota-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.rota-bar { display: grid; grid-template-columns: 12rem 1fr 3rem; gap: .6rem; align-items: center; }
.rota-bar i { display: block; height: .7rem; border-radius: 6px; background: var(--orange, #e8743b); }
.rota-bar b { text-align: right; }
@media (max-width: 640px) { .rota-two { grid-template-columns: 1fr; } .rota-bar { grid-template-columns: 7rem 1fr 2.5rem; } }
.rota-tools { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.rota-tools .toolbar-gap { display: none; }
.rota-tools input[type="search"] { flex: 1 1 14rem; width: auto; min-width: 12rem; }
.rota-tools select { width: auto; flex: 0 0 auto; }

/* Attendance report */
.att-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); gap: .8rem; }
.att-tile { display: grid; gap: .2rem; padding: .8rem 1rem; border: 1px solid var(--line, #e7e1d9); border-radius: 12px; background: var(--surface, #fff); }
.att-tile-name { font-size: .85rem; color: var(--ink-soft, #6b6259); }
.att-tile strong { font-size: 1.6rem; line-height: 1.1; }
.att-tile-sub { font-size: .8rem; color: var(--ink-soft, #6b6259); }
.att-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); gap: 1rem; margin-top: 1rem; }
.att-card h3 { margin: 0 0 .6rem; font-size: 1.05rem; }

/* Small Groups pages */
.glabel { display: inline-block; margin: 0 .3rem .2rem 0; padding: .1rem .6rem; border-radius: 999px; font-size: .8rem; font-weight: 600; text-decoration: none; background: #eee; color: #333; }
.glabel.orange { background: #fde3d4; color: #8a3a12; } .glabel.blue { background: #d9e8fb; color: #1b4a85; } .glabel.green { background: #d8f0dd; color: #1f6a35; }
.glabel.purple { background: #e7dcf7; color: #5a2e8f; } .glabel.red { background: #f8d7d7; color: #8f1f1f; } .glabel.grey { background: #e6e2dc; color: #4a443d; } .glabel.gold { background: #f8ecc6; color: #7a5a06; }
.group-card h3 { display: flex; justify-content: space-between; gap: .6rem; align-items: baseline; margin: 0 0 .4rem; }
.group-card p { margin: .2rem 0; }
.role-yes { color: #1f6a35; font-weight: 700; } .role-own { color: #8a5a12; font-weight: 600; }

/* Attendance controls: service, period buttons and date arrows share one baseline and one height */
.att-controls .filterbar { align-items: flex-end; gap: .8rem; }
.att-controls .filterbar .field { flex: 0 1 16rem; margin: 0; }
.att-controls .filterbar > .toolbar { margin: 0; padding: 0; background: none; border: 0; box-shadow: none; flex-wrap: nowrap; }
.att-controls .filterbar select, .att-controls .filterbar .viewtoggle button, .att-controls .filterbar > .toolbar button { height: 2.6rem; min-height: 2.6rem; box-sizing: border-box; }
.att-controls .filterbar .viewtoggle { align-items: stretch; }
.att-controls .filterbar .viewtoggle button { padding: 0 1rem; }
.att-controls .filterbar > .toolbar #period-label { margin: 0 .3rem; white-space: nowrap; }
.att-controls .filterbar { gap: .6rem; flex-wrap: nowrap; }
.att-controls .filterbar .field { flex: 0 1 9.5rem; min-width: 8rem; }
.att-controls .filterbar .viewtoggle button { padding: 0 .7rem; font-size: .82rem; }
.att-controls .filterbar > .toolbar { gap: .4rem; }
.att-controls .filterbar > .toolbar button { padding: 0 .8rem; }
.att-controls .filterbar > .toolbar button[aria-label] { padding: 0; width: 2.6rem; }
.att-controls .filterbar > .toolbar #period-label { font-size: .82rem; margin: 0 .2rem; }
@media (max-width: 1100px) { .att-controls .filterbar { flex-wrap: wrap; } }
.att-controls .filterbar .viewtoggle button { white-space: nowrap; padding: 0 .6rem; }

/* Colour palette picker */
.colour-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(2.1rem, 1fr)); gap: .5rem; align-items: center; justify-items: center; }
.colour-swatch { width: 2rem; height: 2rem; min-height: 0; padding: 0; border-radius: 50%; border: 2px solid transparent; box-shadow: inset 0 0 0 2px #fff, 0 0 0 1px rgb(0 0 0 / .18); cursor: pointer; transition: transform .15s var(--ease, ease); }
.colour-swatch:hover { transform: scale(1.12); }
.colour-swatch.on { box-shadow: inset 0 0 0 2px #fff, 0 0 0 2px var(--ink, #222); transform: scale(1.1); }
.colour-swatch:focus-visible, .colour-custom:focus-visible { outline: 2px solid var(--accent, #d9531e); outline-offset: 3px; }
.colour-custom { width: 2rem; height: 2rem; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; }
.colour-custom.on { box-shadow: 0 0 0 2px var(--ink, #222); }
.tag-palette { display: block; }
.tag-palette .colour-picker { margin-top: .3rem; }

/* Attendance: coloured gradient highlight on top of each stat card */
.att-tile { position: relative; overflow: hidden; padding-top: 1rem; }
.att-tile::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, #e8531c, #f5ad42); }
.att-tiles .att-tile:nth-child(3n+2)::before { background: linear-gradient(90deg, #f5ad42, #d9a441); }
.att-tiles .att-tile:nth-child(3n)::before { background: linear-gradient(90deg, #8b7765, #e8531c); }
/* Service donut cards: calmer footer text */
.svc-panel .svc-fine { font-size: .72rem; line-height: 1.25; margin: .15rem 0 0; }
/* Compare Attendance Periods */
.att-compare { margin-top: .8rem; border-top: 1px solid var(--line, #e7e1d9); padding-top: .8rem; }
.att-compare > summary { cursor: pointer; font-weight: 600; margin-bottom: .6rem; }
.att-compare-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: .8rem; margin-bottom: 1rem; }
.att-compare-table { overflow-x: auto; }
.att-compare-table table { width: 100%; border-collapse: collapse; }
.att-compare-table th, .att-compare-table td { text-align: left; padding: .7rem .8rem; border-bottom: 1px solid var(--line, #e7e1d9); }
.att-compare-table thead th { background: color-mix(in srgb, var(--ink, #222) 4%, var(--surface, #fff)); font-weight: 600; }
.att-compare-table td.up { color: #2e7d4f; } .att-compare-table td.down { color: #b3361f; }
.att-card .svc-fine { margin: 0 0 .6rem; }

/* Notifications panel sits above the dashboard cards */
.topbar { position: relative; z-index: 40; }
.bell-panel { z-index: 50; }
/* Name column on people tables: wide enough to keep a full name on one line */
.people th[scope="row"], .people thead th:first-child { min-width: 11rem; white-space: nowrap; }
.people th[scope="row"] a { white-space: nowrap; }
/* Tag chips in forms */
.tagpick { display: flex; flex-wrap: wrap; gap: .5rem; }
.tagpick-item { display: inline-flex; align-items: center; gap: .45rem; cursor: pointer; padding: .3rem .7rem; }
.tagpick-item input { margin: 0; accent-color: currentColor; }
/* A single-card donut never grows past a sensible size */
.svc-panel svg.donut, .donut { max-width: 15rem; }
.svc-panel svg.donut { width: min(calc(60.5cqw + 25.4px), 15rem); }

/* Current / previous comparison bars */
.hbars.hbars-dual { gap: .9rem; }
.hbars.hbars-dual li.hbar-pair { display: grid; grid-template-columns: 1fr auto; gap: .25rem .75rem; align-items: center; }
.hbar-pair .hbar-label { font-size: .85rem; }
.hbar-pair .hbar-num { font-size: .8rem; font-weight: 700; text-align: right; }
.hbar-pair .hbar-track { grid-column: 1 / -1; height: .6rem; }
.hbar-pair .hbar-fill { background: linear-gradient(90deg, #e8531c, #f5ad42); }
.hbar-pair .hbar-fill.hbar-prev { background: #766a60; }
/* Named-statistics tiles with a Total and an Avg side by side */
.att-tiles.att-tiles-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .st-canvases { flex-wrap:wrap; } }
@media (max-width: 900px) { .att-tiles.att-tiles-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.att-duo-nums { display: grid; grid-template-columns: 1fr 1px 1fr; align-items: center; margin: .5rem 0; text-align: center; }
.att-duo-nums::before { content: ''; grid-column: 2; grid-row: 1; align-self: stretch; background: var(--line, #e7e1d9); }
.att-duo-nums > div:first-child { grid-column: 1; grid-row: 1; }
.att-duo-nums > div:last-child { grid-column: 3; grid-row: 1; }
.att-duo-nums small { display: block; margin-bottom: .2rem; font-size: .65rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft, #6b6259); }
.att-duo-nums strong { font-size: 1.5rem; }
.att-section > p.soft { margin: .9rem 0; }
.att-section > .att-tiles + .att-tiles { margin-top: .8rem; }
.growth-pick { max-width: 22rem; margin-bottom: .6rem; }
.growth-controls { display: flex; flex-wrap: wrap; gap: .8rem; align-items: end; margin-bottom: .6rem; }
.growth-controls .growth-pick { margin: 0; min-width: 12rem; }
.growth-controls input[hidden] { display: none; }
.growth-controls .field:has(input[hidden]) { display: none; }

/* Planning */
.plan-panel { margin-bottom: 1rem; }
.plan-panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.plan-tools { align-items: center; flex-wrap: wrap; }
.plan-tools input[type=search] { flex: 1 1 14rem; min-width: 12rem; }
.plan-list { list-style: none; margin: .6rem 0 0; padding: 0; display: grid; gap: .6rem; }
.plan-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem 1rem; border: 1px solid var(--line, #e7e1d9); border-radius: 12px; background: var(--surface, #fff); }
.plan-row-main { display: grid; gap: .15rem; text-decoration: none; color: inherit; flex: 1; min-width: 0; }
.plan-date { font-size: .8rem; color: var(--ink-soft, #6b6259); }
.plan-status { font-size: .75rem; font-weight: 600; padding: .2rem .6rem; border-radius: 999px; background: #eee9e1; color: #6b6259; white-space: nowrap; }
.plan-status.published { background: #dff1e5; color: #2e7d4f; }
.plan-dot { display: inline-block; width: .7rem; height: .7rem; border-radius: 50%; margin-right: .4rem; vertical-align: middle; }
.plan-type { display: inline-flex; align-items: center; font-size: .78rem; color: var(--ink-soft, #6b6259); }
.plan-timeline { display: flex; height: .9rem; border-radius: 999px; overflow: hidden; gap: 2px; margin: .8rem 0 1rem; }
.plan-seg { min-width: 6px; }
.plan-items { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.plan-item { display: grid; grid-template-columns: 4.2rem 1fr auto; gap: .8rem; align-items: start; padding: .8rem 1rem; border: 1px solid var(--line, #e7e1d9); border-left: 6px solid #6b7280; border-radius: 10px; background: var(--surface, #fff); }
.plan-item.dragging { opacity: .5; }
.plan-item[draggable=true] { cursor: grab; }
.plan-time { font-variant-numeric: tabular-nums; font-weight: 700; padding-top: .1rem; }
.plan-item-top { display: flex; flex-wrap: wrap; gap: .3rem .8rem; align-items: center; }
.plan-item-body p { margin: .25rem 0 0; }
.plan-notes, .plan-note { white-space: pre-wrap; }
.plan-people { display: flex; flex-wrap: wrap; gap: .35rem; }
.plan-person { font-size: .8rem; padding: .15rem .6rem; border-radius: 999px; background: color-mix(in srgb, var(--accent, #e8531c) 12%, var(--surface, #fff)); }
.plan-person small { color: var(--ink-soft, #6b6259); }
.plan-item-actions { display: flex; flex-wrap: wrap; gap: .3rem; justify-content: flex-end; }
.plan-people-list { display: grid; gap: .4rem; }
.plan-people-list li { display: flex; gap: .6rem; align-items: center; }
.plan-people-list li span { flex: 1; }
.plan-preview-list { list-style: none; padding: 0; display: grid; gap: .6rem; }
.plan-preview-list li { display: grid; grid-template-columns: 4rem 1fr; gap: .8rem; padding: .5rem .8rem; border-left: 6px solid #6b7280; }
@media (max-width: 640px) { .plan-item { grid-template-columns: 1fr; } .plan-item-actions { justify-content: flex-start; } }
@media print { .sidebar, .topbar, .plan-tools, dialog .toolbar { display: none; } }

/* Planning lists, popovers and editors (prefix pl-) */
.pl-req { color: #c0392b; }
.pl-label { display: block; font-size: .88rem; font-weight: 600; }
.pl-center { text-align: center; margin-top: .4rem; }
.pl-grow { flex: 1; }
.pl-block { display: block; }
.pl-split { display: inline-flex; }
.pl-split > * + * { margin-left: -1px; }
.pl-add-btn, .pl-menu-btn { display: inline-flex; align-items: center; gap: .25rem; min-height: 2.5rem; padding: 0 .9rem; background: var(--surface); }
.pl-plus { color: #2f9e44; font-weight: 700; }
.pl-caret { font-size: .8rem; color: var(--ink-soft); }
.pl-pop-wrap { position: relative; display: inline-block; }
.pl-pop { position: absolute; top: calc(100% + 6px); left: 0; z-index: 60; min-width: 14rem; max-width: 22rem; padding: .8rem; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 30px rgb(28 20 7 / .18); text-align: left; }
.pl-pop.right { left: auto; right: 0; }
.pl-pop h3 { margin: 0 0 .2rem; font-size: .95rem; }
.pl-pop-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: .5rem; font-weight: 600; }
.pl-link { background: none; border: 0; color: var(--ink-soft); font-weight: 500; padding: 0; min-height: 0; }
.pl-radios { display: grid; gap: .35rem; margin-bottom: .7rem; }
.pl-radio { display: flex; align-items: center; gap: .4rem; font-weight: 500; }
.pl-done { width: 100%; }
.pl-menu { list-style: none; margin: .4rem 0 0; padding: .3rem 0 0; border-top: 1px solid var(--line); display: grid; gap: .1rem; }
.pl-menu-item { width: 100%; text-align: left; background: none; border: 0; padding: .45rem .5rem; border-radius: 8px; font-weight: 500; }
.pl-menu-item:hover { background: var(--action-soft); }
.pl-menu-item.danger { color: #9b2c3a; }
.pl-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 1rem 0 .6rem; }
.pl-bar input[type=search] { min-width: 12rem; flex: 0 1 18rem; }
.pl-count { font-weight: 600; padding: 0 .4rem; }
.pl-bulk { display: inline-flex; align-items: center; gap: .15rem; min-height: 2.5rem; padding: 0 .9rem; background: var(--surface); }
.pl-bulk.on { background: #2b2b2b; border-color: #2b2b2b; color: #fff; }
.pl-bulk.on .pl-caret { color: #ddd; }
.pl-chip { display: inline-flex; align-items: center; gap: .2rem; min-height: 2.5rem; padding: 0 .8rem; background: var(--action-soft); border-color: transparent; }
.pl-tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.pl-table { width: 100%; border-collapse: collapse; }
.pl-table th, .pl-table td { padding: .65rem .8rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.pl-table thead th { background: color-mix(in srgb, var(--ink) 6%, var(--surface)); font-weight: 600; font-size: .85rem; white-space: nowrap; }
.pl-table tbody tr:last-child th, .pl-table tbody tr:last-child td { border-bottom: 0; }
.pl-table tbody tr:hover { background: color-mix(in srgb, var(--accent) 5%, var(--surface)); }
.pl-table tr.dragging { opacity: .45; }
.pl-table th[scope=row] { font-weight: 600; }
.pl-table .right { text-align: right; }
.pl-table a { text-decoration: none; }
.pl-sort { background: none; border: 0; padding: 0; min-height: 0; font: inherit; font-weight: 600; }
.pl-check { width: 2.4rem; }
.pl-handle { width: 4.5rem; text-align: center !important; color: var(--ink-soft); cursor: grab; }
.pl-rowmenu { width: 3rem; text-align: right !important; }
.pl-dots { font-size: 1.2rem; line-height: 1; min-height: 2rem; padding: 0 .5rem; }
.pl-badge { display: inline-block; min-width: 1.8rem; padding: .1rem .5rem; border-radius: 6px; background: color-mix(in srgb, var(--ink) 8%, var(--surface)); text-align: center; font-size: .85rem; }
.pl-pager { display: flex; align-items: center; justify-content: flex-end; gap: .5rem; margin-top: .8rem; }
.pl-pg { min-width: 2.4rem; }
.pl-empty { text-align: center; padding: 2.5rem 1rem; }
.pl-empty-icon { display: inline-grid; place-items: center; width: 4.5rem; height: 4.5rem; border-radius: 50%; background: color-mix(in srgb, var(--accent) 12%, var(--surface)); font-size: 2.2rem; color: var(--accent); }
.pl-empty h3 { margin: .8rem 0 .1rem; }
.pl-help { position: relative; margin: 1rem 0; padding: 1rem 3rem 1rem 1.2rem; border-radius: 12px; background: color-mix(in srgb, var(--accent) 8%, var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line)); }
.pl-help h2 { font-size: 1.05rem; margin: 0 0 .4rem; }
.pl-help p { margin: .3rem 0; max-width: 60rem; }
.pl-help-x { position: absolute; top: .6rem; right: .7rem; background: none; border: 0; font-size: 1.4rem; line-height: 1; min-height: 2rem; min-width: 2rem; }
.pl-cat-row { display: flex; align-items: center; gap: .5rem; margin-bottom: .45rem; }
.pl-cat-row input { flex: 1; }
.pl-grip { cursor: grab; color: var(--ink-soft); }
.pl-x { background: none; border: 0; color: #c0392b; font-size: 1.3rem; line-height: 1; min-height: 2rem; min-width: 2rem; }
.pl-add { background: none; border: 0; color: #2f9e44; font-weight: 600; }
.pl-duration { display: flex; align-items: center; gap: .4rem; }
.pl-duration input { width: 5rem; }
.pl-combo { position: relative; }
.pl-combo input { width: 100%; padding-right: 2rem; }
.pl-chev { position: absolute; right: .7rem; top: .55rem; color: var(--ink-soft); pointer-events: none; }
.pl-combo-list { position: absolute; z-index: 70; left: 0; right: 0; max-height: 14rem; overflow-y: auto; margin: 2px 0 0; padding: .3rem; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 30px rgb(28 20 7 / .18); }
.pl-combo-list li { padding: .4rem .6rem; border-radius: 6px; cursor: pointer; }
.pl-combo-list li:hover { background: var(--action-soft); }
.pl-multi { position: relative; display: grid; gap: .3rem; }
.pl-multi-head { display: flex; align-items: center; gap: .6rem; }
.pl-multi-head .soft { margin-left: auto; font-size: .8rem; }
.pl-chips { display: flex; flex-wrap: wrap; gap: .35rem; }
.pl-pill { display: inline-flex; align-items: center; gap: .2rem; padding: .1rem .2rem .1rem .65rem; border-radius: 999px; background: var(--action-soft); font-size: .85rem; }
.pl-pill button { background: none; border: 0; min-height: 1.6rem; min-width: 1.6rem; padding: 0; }
.pl-divider { display: flex; align-items: center; gap: .8rem; margin: 1rem 0 .4rem; color: var(--ink-soft); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; }
.pl-divider::before, .pl-divider::after { content: ""; flex: 1; border-top: 1px dashed var(--line); }
.pl-arr { border: 1px solid var(--line); border-radius: 12px; padding: .8rem 1rem; margin: 0 0 .8rem; position: relative; }
.pl-arr legend { padding: 0 .4rem; font-weight: 600; font-size: .85rem; }
.pl-arr-remove { position: absolute; top: .3rem; right: .5rem; }
.pl-tabs { display: flex; gap: .3rem; margin: .4rem 0 1rem; padding: .25rem; border-radius: 10px; background: color-mix(in srgb, var(--ink) 8%, var(--surface)); width: fit-content; }
.pl-tabs button { border: 0; background: transparent; padding: .45rem 1.2rem; min-height: 2.2rem; }
.pl-tabs button.on { background: var(--surface); box-shadow: 0 1px 3px rgb(0 0 0 / .12); }
.pl-song { display: inline-flex; align-items: center; gap: .7rem; }
.pl-avatar { display: inline-grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: color-mix(in srgb, var(--accent) 14%, var(--surface)); font-weight: 700; flex: none; }
.pl-pill-key, .pl-pill-tempo, .pl-pill-meter { display: inline-block; padding: .15rem .6rem; border-radius: 8px; font-size: .85rem; font-weight: 600; border: 1px solid; }
.pl-pill-key { background: #f6efe3; border-color: #e1d3b8; color: #6e5a2f; }
.pl-pill-tempo { background: #fff2dd; border-color: #f2d49b; color: #8a5a00; }
.pl-pill-tempo { white-space: nowrap; }
.pl-pill-tempo small { font-size: .7rem; font-weight: 500; }
.pl-table th[scope=row] { min-width: 12rem; }
.pl-pill-meter { background: #e5f6ea; border-color: #bfe3ca; color: #25653a; }
.pl-report-section h2 { margin: 1.4rem 0 .6rem; font-size: 1.1rem; }
.pl-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: .8rem; }
.pl-card { display: grid; gap: .3rem; padding: 1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: inherit; text-decoration: none; box-shadow: var(--card-shadow); }
.pl-card:hover { border-color: var(--accent); }
.pl-card strong { color: var(--action); }
.pl-card-icon { display: inline-grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--action-soft); color: var(--action); }
.pl-flags th, .pl-flags td { padding: .4rem .6rem; }
.pl-flag-head th { background: color-mix(in srgb, var(--ink) 6%, var(--surface)); font-size: .8rem; }
.pl-info { margin: 1rem 0; padding: .8rem 1rem; border-radius: 10px; background: color-mix(in srgb, var(--accent) 8%, var(--surface)); }
.pl-info p { margin: .2rem 0 0; }
.pl-setting { margin: 1.6rem 0; max-width: 56rem; }
.pl-setting-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.pl-setting-head h3 { margin: 0; }
.pl-setting-head p { margin: .1rem 0 0; }
.pl-setting-value { margin-top: .5rem; padding-top: .5rem; border-top: 1px solid var(--line); }
.pl-check-field { display: flex; align-items: flex-start; gap: .6rem; font-weight: 500; }
.pl-check-field small { display: block; }
.pl-changes li { padding: .5rem 0; border-bottom: 1px solid var(--line); }
.plan-notes-block { margin-bottom: 1rem; }
.plan-notes-block h3 { margin: 0 0 .3rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.plan-form input[type=time], .plan-form input[type=date] { width: 100%; }

/* =====================================================================================================================
   Sermon Hub (sm-): clean surfaces, one accent, soft depth and motion that follows the hand. Everything reads its colours
   from the app's own variables, so light and dark both work.
   ===================================================================================================================== */
.sm-page { display: grid; gap: 1.4rem; min-width: 0; }
@media (prefers-reduced-motion: no-preference) { .sm-page { animation: sm-in .55s var(--ease) both; } }
@keyframes sm-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.sm-row { display: flex; flex-wrap: wrap; gap: .55rem; align-items: center; }
.sm-two { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
@media (max-width: 640px) { .sm-two { grid-template-columns: 1fr; } }
.sm-h2 { margin: .4rem 0 0; }
.sm-sep { width: 1px; height: 1.4rem; background: var(--line); margin: 0 .3rem; }
.sm-check { display: inline-flex; gap: .5rem; align-items: center; font-weight: 500; }
.sm-more-link { display: inline-block; margin-top: .6rem; font-weight: 600; }
.sm-linkbtn { all: unset; cursor: pointer; font: inherit; font-weight: 700; color: inherit; }
.sm-linkbtn:hover { color: var(--action); }
.sm-dot { display: inline-block; width: .6rem; height: .6rem; border-radius: 50%; background: var(--c, #8e8e93); flex: none; }

/* the top bar: sections as a segmented control, and one box for a passage or a topic */
.sm-top { display: flex; flex-wrap: wrap; gap: .8rem 1rem; align-items: center; justify-content: space-between; }
.sm-seg { position: relative; display: inline-flex; padding: 4px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 8%, transparent); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.sm-seg::-webkit-scrollbar { display: none; }
.sm-seg-item { position: relative; z-index: 1; padding: .48rem 1.1rem; border-radius: 999px; color: var(--ink-soft); font-weight: 600; font-size: .9rem; text-decoration: none; white-space: nowrap; transition: color .25s; }
.sm-seg-item:hover { color: var(--ink); }
.sm-seg-item.on { color: var(--ink); }
.sm-thumb { position: absolute; top: 4px; bottom: 4px; left: 0; border-radius: 999px; background: var(--surface); box-shadow: 0 1px 2px rgb(0 0 0 / .14), 0 4px 10px rgb(0 0 0 / .08); opacity: 0; transition: transform .55s var(--ease), width .55s var(--ease); }
.sm-thumb.ready { opacity: 1; }
.sm-find-wrap { position: relative; display: block; flex: 0 1 17rem; }
.sm-find-wrap svg { position: absolute; left: .85rem; top: 50%; width: 1.05rem; height: 1.05rem; transform: translateY(-50%); color: #b9b2a8; pointer-events: none; }
input.sm-find { width: 100%; border-radius: 999px; padding: .55rem 1rem .55rem 2.4rem; }

/* cards and shared pieces */
.sm-card { background: var(--surface); border: 1px solid color-mix(in srgb, var(--line) 55%, transparent); border-radius: 22px; padding: 1.25rem 1.4rem; box-shadow: var(--shadow-1); min-width: 0; }
a.sm-card, .sm-card.hover { color: inherit; text-decoration: none; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
a.sm-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.sm-card h2, .sm-card h3 { margin: 0; }
.sm-card h3 a { color: inherit; text-decoration: none; }
.sm-card h3 a:hover { color: var(--action); }
.sm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); gap: 1rem; }
.sm-stack { display: grid; gap: .8rem; }
.sm-pill { display: inline-flex; align-items: center; gap: .4rem; padding: .16rem .62rem; border-radius: 999px; font-size: .74rem; font-weight: 700; color: var(--c, var(--action)); background: color-mix(in srgb, var(--c, var(--action)) 14%, transparent); white-space: nowrap; }
.sm-pill.quiet { --c: var(--ink-soft); }
.sm-chips { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; }
.sm-chip { display: inline-flex; align-items: center; gap: .45rem; padding: .38rem .85rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: .84rem; font-weight: 600; text-decoration: none; cursor: pointer; transition: background .2s, border-color .2s, transform .3s var(--ease); }
.sm-chip svg { width: 1rem; height: 1rem; }
.sm-chip:hover { border-color: var(--accent); }
.sm-chip:active { transform: scale(.97); }
.sm-chip[aria-pressed="true"] { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.sm-chip.link { color: var(--action); }
.sm-tag { font-size: .78rem; color: var(--ink-soft); font-weight: 600; }
.sm-series-tag { display: inline-flex; gap: .45rem; align-items: center; font-size: .82rem; font-weight: 600; color: var(--ink-soft); }
.sm-empty { display: grid; justify-items: center; gap: .5rem; text-align: center; padding: 2.4rem 1rem; }
.sm-empty h3 { margin: 0; font-size: 1.15rem; }
.sm-empty p { margin: 0; max-width: 28rem; }
.sm-empty-icon { display: grid; place-items: center; width: 3.4rem; height: 3.4rem; border-radius: 50%; background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); }
.sm-empty-icon svg { width: 1.5rem; height: 1.5rem; }
.sm-filterbar { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; }
.sm-filterbar input { flex: 1 1 14rem; max-width: 24rem; }
.sm-meter { height: 7px; border-radius: 6px; background: color-mix(in srgb, var(--ink) 10%, transparent); overflow: hidden; }
.sm-meter i { display: block; height: 100%; border-radius: 6px; background: var(--c, var(--accent)); transition: width .8s var(--ease); }
.sm-meter.over i { background: #d6453a; }
.sm-section { display: grid; gap: .8rem; }
.sm-section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.sm-section-head h2 { margin: 0; font-size: 1.25rem; }
.sm-section-head a { font-weight: 600; font-size: .9rem; text-decoration: none; }

/* home */
.sm-ask h2 { margin: 0 0 .8rem; font-size: 1.5rem; letter-spacing: -.01em; }
.sm-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(10.8rem, 1fr)); gap: .9rem; }
.sm-tile { display: grid; gap: .25rem; align-content: start; padding: 1.15rem 1.2rem 1.25rem; border-radius: 24px; color: var(--ink); text-decoration: none; background: linear-gradient(150deg, color-mix(in srgb, var(--c) 17%, var(--surface)), var(--surface) 70%); border: 1px solid color-mix(in srgb, var(--c) 22%, var(--line)); transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.sm-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.sm-tile:active { transform: scale(.985); }
.sm-tile strong { font-size: 1.05rem; margin-top: .55rem; }
.sm-tile small { color: var(--ink-soft); font-size: .84rem; line-height: 1.35; }
.sm-tile-icon { display: grid; place-items: center; width: 2.7rem; height: 2.7rem; border-radius: 15px; background: var(--c); color: #fff; box-shadow: 0 6px 14px color-mix(in srgb, var(--c) 40%, transparent); }
.sm-tile-icon svg { width: 1.35rem; height: 1.35rem; }
.sm-next { display: grid; grid-template-columns: minmax(9rem, 12rem) 1fr; gap: 1.6rem; align-items: center; }
.sm-next-when { display: grid; gap: .2rem; padding-right: 1.4rem; border-right: 1px solid var(--line); }
.sm-next-when small { color: var(--action); font-weight: 700; letter-spacing: .02em; }
.sm-next-when strong { font-size: 1.9rem; line-height: 1.1; letter-spacing: -.02em; }
.sm-next-body { display: grid; gap: .55rem; }
.sm-next-body h2 { font-size: 1.6rem; letter-spacing: -.015em; }
.sm-next-body h2 a { color: inherit; text-decoration: none; }
.sm-next-body p { margin: 0; }
.sm-next-empty { grid-template-columns: 1fr auto; }
.sm-idea { font-style: italic; color: var(--ink-soft); }
.sm-idea.big { font-size: 1.15rem; padding: 1rem 1.2rem; border-radius: 18px; background: color-mix(in srgb, var(--accent) 9%, var(--surface)); font-style: normal; color: var(--ink); display: grid; gap: .2rem; }
.sm-idea.big small { color: var(--action); font-weight: 700; }
@media (max-width: 760px) { .sm-next { grid-template-columns: 1fr; } .sm-next-when { border-right: 0; padding-right: 0; border-bottom: 1px solid var(--line); padding-bottom: .8rem; } .sm-next-empty { grid-template-columns: 1fr; } }
.sm-rail { display: flex; gap: .9rem; overflow-x: auto; padding: .3rem .2rem 1rem; margin: 0 -.2rem; scroll-snap-type: x proximity; scrollbar-width: thin; }
.sm-mini { flex: 0 0 15.5rem; scroll-snap-align: start; display: grid; gap: .3rem; align-content: start; padding: 1rem 1.1rem; border-radius: 20px; background: var(--surface); border: 1px solid color-mix(in srgb, var(--line) 55%, transparent); box-shadow: var(--shadow-1); color: inherit; text-decoration: none; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.sm-mini:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.sm-mini strong { font-size: 1.02rem; line-height: 1.25; }
.sm-mini-top { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-bottom: .3rem; }
.sm-series-card { flex: 0 0 13rem; scroll-snap-align: start; display: grid; gap: .3rem; align-content: end; min-height: 6.6rem; padding: 1rem 1.1rem; border-radius: 20px; color: #fff; text-decoration: none; background: linear-gradient(140deg, var(--c), color-mix(in srgb, var(--c) 55%, #000)); box-shadow: 0 8px 20px color-mix(in srgb, var(--c) 30%, transparent); transition: transform .4s var(--ease); }
.sm-series-card:hover { transform: translateY(-3px); }
.sm-series-card small { opacity: .85; }
.sm-list { display: grid; background: var(--surface); border-radius: 20px; border: 1px solid color-mix(in srgb, var(--line) 55%, transparent); box-shadow: var(--shadow-1); overflow: hidden; }
.sm-pass-card .sm-list { box-shadow: none; border-radius: 14px; }
.sm-row-item { display: flex; align-items: center; gap: 1rem; padding: .85rem 1.15rem; color: inherit; text-decoration: none; border-top: 1px solid color-mix(in srgb, var(--line) 60%, transparent); transition: background .2s; }
.sm-row-item:first-child { border-top: 0; }
.sm-row-item:hover { background: color-mix(in srgb, var(--ink) 4%, transparent); }
.sm-row-date { flex: none; min-width: 3.6rem; font-weight: 700; color: var(--action); font-size: .86rem; }
.sm-row-main { display: grid; flex: 1; min-width: 0; gap: .1rem; }
.sm-row-main strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sm-snippet { color: var(--ink-soft); white-space: normal; }
.sm-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr)); gap: .8rem; }
.sm-stats div { display: grid; gap: .1rem; padding: .9rem 1.1rem; border-radius: 18px; background: color-mix(in srgb, var(--ink) 5%, transparent); }
.sm-stats strong { font-size: 1.7rem; letter-spacing: -.02em; }
.sm-stats small { color: var(--ink-soft); font-weight: 600; }

/* forms: dark boxes */
input.sm-dark, select.sm-dark, textarea.sm-dark { border-radius: 12px; padding: .62rem .85rem; width: 100%; font-size: .95rem; line-height: 1.35; height: auto; transition: border-color .2s, box-shadow .25s; }
select.sm-dark { padding-right: 2rem; }
:root:not([data-fields="page"]) input.sm-dark, :root:not([data-fields="page"]) select.sm-dark, :root:not([data-fields="page"]) textarea.sm-dark { background: #303030; color: #fff4e8; border: 1px solid #595959; color-scheme: dark; }
:root[data-fields="page"] input.sm-dark, :root[data-fields="page"] select.sm-dark, :root[data-fields="page"] textarea.sm-dark { background: var(--surface); color: var(--ink); border: 1px solid #d9d1c5; }
input.sm-dark::placeholder, textarea.sm-dark::placeholder { color: #a79d90; }
input.sm-dark:focus, select.sm-dark:focus, textarea.sm-dark:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 28%, transparent); }
.sm-form { display: grid; gap: 1rem; }
.sm-field { display: grid; gap: .3rem; }
.sm-field label { font-weight: 600; }
.sm-sermon { display: grid; gap: .55rem; align-content: start; }
.sm-sermon-head { display: grid; gap: .7rem; }
.sm-sermon-head p { margin: 0; }
.sm-media { display: grid; gap: .6rem; }
.sm-media video, .sm-media audio { width: 100%; border-radius: 14px; }
.sm-outline { display: grid; gap: .9rem; }
.sm-section-card h3 { display: flex; align-items: center; gap: .7rem; margin-bottom: .6rem; }
.sm-num { display: inline-grid; place-items: center; flex: none; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--accent); color: #fff; font-size: .85rem; font-weight: 700; }
.sm-questions { margin-top: .8rem; padding: .9rem 1.1rem; border-radius: 16px; background: color-mix(in srgb, var(--accent) 8%, var(--surface)); }
.sm-questions h4 { margin: 0 0 .4rem; }

/* popover menu */
.sm-menu { position: relative; display: inline-block; }
.sm-iconbtn, .sm-plus { display: inline-grid; place-items: center; min-width: 2rem; height: 2rem; padding: 0 .5rem; border-radius: 999px; border: 0; background: transparent; color: var(--ink-soft); font-weight: 700; cursor: pointer; }
.sm-iconbtn:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); color: var(--ink); }
.sm-morebtn { padding: 0 1rem; height: auto; border-radius: 9px; }
.sm-pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 60; display: grid; min-width: 13rem; padding: .35rem; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-2); transform-origin: top right; }
@media (prefers-reduced-motion: no-preference) { .sm-pop:not([hidden]) { animation: sm-pop .28s var(--spring) backwards; } }
@keyframes sm-pop { from { opacity: 0; transform: scale(.92) translateY(-4px); } }
.sm-pop[hidden] { display: none; }
.sm-pop button { all: unset; box-sizing: border-box; display: block; width: 100%; padding: .55rem .8rem; border-radius: 10px; font-size: .9rem; font-weight: 600; color: var(--ink); cursor: pointer; }
.sm-pop button:hover:not(:disabled), .sm-pop button:focus-visible { background: color-mix(in srgb, var(--accent) 14%, transparent); }
.sm-pop button:disabled { opacity: .4; cursor: default; }
.sm-pop button.danger { color: #d6453a; }

/* the board */
.sm-board { display: grid; grid-template-columns: repeat(4, minmax(12.5rem, 1fr)); gap: .9rem; overflow-x: auto; padding-bottom: .5rem; align-items: start; }
.sm-col { display: grid; gap: .7rem; align-content: start; padding: .8rem; border-radius: 24px; background: color-mix(in srgb, var(--ink) 4.5%, transparent); min-height: 8rem; }
.sm-col > header { display: flex; align-items: center; gap: .5rem; padding: .1rem .3rem; }
.sm-col-empty { text-align: center; padding: 1.2rem .5rem; margin: 0; }
.sm-draft { display: grid; gap: .35rem; padding: 1rem 1.1rem; border-radius: 18px; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.sm-draft:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.sm-draft p { margin: 0; font-size: .88rem; }
.sm-draft-top { display: flex; justify-content: space-between; align-items: center; gap: .5rem; min-height: 2rem; }

/* the studio: outline, canvas, tools */
.sm-studio { display: grid; grid-template-columns: 15.5rem minmax(0, 1fr) 21.5rem; gap: 1.1rem; align-items: start; }
.sm-outlinepane, .sm-inspector { position: sticky; top: 1rem; max-height: calc(100vh - 2rem); overflow: auto; padding: 1rem; border-radius: 22px; background: var(--surface); border: 1px solid color-mix(in srgb, var(--line) 55%, transparent); box-shadow: var(--shadow-1); }
.sm-outlinepane h3 { margin: 0 0 .6rem; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.sm-nav-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .15rem; }
.sm-nav-item { display: flex; align-items: center; gap: .6rem; padding: .2rem .35rem; border-radius: 12px; cursor: grab; border: 1.5px solid transparent; transition: background .2s, border-color .2s; }
.sm-nav-item:hover { background: color-mix(in srgb, var(--ink) 5%, transparent); }
.sm-nav-item.dragging { opacity: .4; }
.sm-nav-item.over { border-color: var(--accent); }
.sm-nav-item button { all: unset; cursor: pointer; display: grid; flex: 1; min-width: 0; padding: .3rem 0; }
.sm-nav-item strong { font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sm-nav-add { display: flex; align-items: center; gap: .6rem; margin-top: .7rem; padding-top: .7rem; border-top: 1px solid var(--line); }
.sm-canvas { display: grid; gap: .3rem; min-width: 0; }
.sm-head { display: grid; gap: .9rem; margin-bottom: .8rem; }
:root:not([data-fields="page"]) .sm-head input.sm-title, .sm-head input.sm-title { width: 100%; border: 0; background: transparent; box-shadow: none; padding: .1rem 0; font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 700; letter-spacing: -.02em; color: var(--ink); border-radius: 0; }
:root:not([data-fields="page"]) .sm-head input.sm-title { background: transparent; color: var(--ink); border: 0; }
.sm-head input.sm-title:focus { outline: none; }
.sm-head input.sm-title::placeholder { color: color-mix(in srgb, var(--ink) 28%, transparent); }
.sm-timewrap { display: grid; gap: .45rem; }
.sm-timebar { position: relative; display: flex; gap: 2px; height: 10px; border-radius: 6px; background: color-mix(in srgb, var(--ink) 9%, transparent); }
.sm-timebar i { display: block; height: 100%; border-radius: 5px; background: var(--c); transition: width .6s var(--ease); }
.sm-timebar.over i:last-of-type { box-shadow: 0 0 0 2px #d6453a; }
.sm-target { position: absolute; top: -4px; bottom: -4px; width: 2px; border-radius: 2px; background: var(--ink); }
.sm-timebar-label { font-size: .84rem; font-weight: 600; color: var(--ink-soft); }
.sm-blockwrap { display: grid; }
.sm-block { display: grid; gap: .6rem; padding: 1rem 1.15rem 1.1rem; border-radius: 20px; background: var(--surface); border: 1px solid color-mix(in srgb, var(--line) 55%, transparent); box-shadow: inset 4px 0 0 var(--c), var(--shadow-1); transition: box-shadow .3s var(--ease); }
.sm-block:focus-within { box-shadow: inset 4px 0 0 var(--c), var(--shadow-2); }
.sm-block > header { display: flex; align-items: center; gap: .5rem; }
.sm-kindbtn { display: inline-flex; align-items: center; gap: .5rem; padding: .25rem .8rem .25rem .6rem; border-radius: 999px; border: 0; background: color-mix(in srgb, var(--c) 13%, transparent); color: var(--ink); font-size: .82rem; font-weight: 700; cursor: pointer; }
.sm-kindbtn:hover { background: color-mix(in srgb, var(--c) 22%, transparent); }
.sm-min { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; }
input.sm-mini-num { width: 3.6rem; padding: .3rem .4rem; text-align: center; border-radius: 10px; }
.sm-block input.sm-block-title { font-weight: 700; font-size: 1.05rem; }
.sm-block textarea.sm-block-text { resize: none; line-height: 1.55; min-height: 5.5rem; padding: .8rem 1rem; }
.sm-block-foot { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; }
.sm-insert { display: flex; justify-content: center; align-items: center; height: 1.5rem; position: relative; }
.sm-insert::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--accent); opacity: 0; transition: opacity .25s; }
.sm-plus { position: relative; z-index: 2; width: 1.5rem; min-width: 1.5rem; height: 1.5rem; padding: 0; background: var(--accent); color: #fff; font-size: 1.05rem; line-height: 1; opacity: 0; transform: scale(.7); transition: opacity .25s, transform .35s var(--spring); }
.sm-blockwrap:hover .sm-plus, .sm-blockwrap:focus-within .sm-plus, .sm-nav-add .sm-plus, .sm-plus[aria-expanded="true"] { opacity: 1; transform: none; }
.sm-blockwrap:hover .sm-insert::before { opacity: .45; }
.sm-insert .sm-pop { left: 50%; right: auto; transform: translateX(-50%); transform-origin: top center; }
@media (hover: none) { .sm-plus { opacity: .75; transform: none; } }
.sm-addrow { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .6rem; padding: 1rem; border-radius: 20px; border: 1.5px dashed var(--line); justify-content: center; }
.sm-actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; justify-content: flex-end; }
.sm-save { font-size: .85rem; min-width: 6.5rem; text-align: right; }
.sm-tabs { display: flex; padding: 3px; margin-bottom: 1rem; border-radius: 12px; background: color-mix(in srgb, var(--ink) 8%, transparent); }
.sm-tab { all: unset; box-sizing: border-box; flex: 1; text-align: center; padding: .4rem .2rem; border-radius: 9px; font-size: .84rem; font-weight: 700; color: var(--ink-soft); cursor: pointer; transition: background .25s, color .25s; }
.sm-tab[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgb(0 0 0 / .16); }
.sm-tab.narrow-only { display: none; }
@media (max-width: 1680px) { .sm-tab.narrow-only { display: block; } }
.sm-details, .sm-notes, .sm-ideas, .sm-pass, .sm-biblebox { display: grid; gap: .8rem; }
.sm-pass-head { margin: 0; }
.sm-pass-sec h4 { margin: .2rem 0 .3rem; font-size: .8rem; color: var(--ink-soft); }
.sm-link-row { all: unset; box-sizing: border-box; display: grid; width: 100%; gap: .1rem; padding: .5rem .6rem; border-radius: 10px; color: inherit; text-decoration: none; text-align: left; cursor: pointer; }
.sm-link-row strong { font-size: .92rem; }
.sm-link-row:focus-visible { outline: 3px solid var(--accent); }
.sm-biblebox { margin-top: .4rem; }
.sm-link-row:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.sm-note, .sm-idea-row { display: grid; gap: .5rem; padding: .8rem; border-radius: 16px; background: color-mix(in srgb, var(--ink) 4.5%, transparent); }
.sm-idea-row small { line-height: 1.4; }
.sm-idea-row button { justify-self: start; }
@media (max-width: 1680px) { .sm-studio { grid-template-columns: minmax(0, 1fr) 20rem; } .sm-outlinepane { display: none; } }
@media (max-width: 1100px) { .sm-studio { grid-template-columns: 1fr; } .sm-inspector { position: static; max-height: none; } }

/* preaching mode: dark, calm, big type */
.sm-preach { position: fixed; inset: 0; z-index: 1000; display: flex; flex-direction: column; background: radial-gradient(120% 90% at 50% 0%, #1d1a18, #0a0a0b 70%); color: #f5f5f7; font-family: -apple-system, "SF Pro Display", var(--sans); }
@media (prefers-reduced-motion: no-preference) { .sm-preach { animation: sm-fade .5s var(--ease) both; } .sm-preach-card { animation: sm-in .5s var(--ease) both; } }
@keyframes sm-fade { from { opacity: 0; } }
.sm-preach-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem 1rem; padding: .8rem 1.2rem; }
.sm-preach-bar strong { font-weight: 600; opacity: .9; }
.sm-preach-clock { font-variant-numeric: tabular-nums; font-weight: 600; padding: .2rem .8rem; border-radius: 999px; background: rgb(255 255 255 / .1); }
.sm-preach-clock.over { background: #d6453a; }
.sm-preach-pos { opacity: .6; font-size: .9rem; }
.sm-pbtn { border: 0; border-radius: 999px; padding: .5rem 1.1rem; background: rgb(255 255 255 / .12); color: #fff; font-weight: 600; cursor: pointer; transition: background .2s, transform .3s var(--ease); }
.sm-pbtn:hover { background: rgb(255 255 255 / .22); border-color: transparent; }
.sm-pbtn:active { transform: scale(.96); }
.sm-pbtn.go { background: var(--accent); color: #fff; }
.sm-preach-prog { height: 3px; background: rgb(255 255 255 / .1); }
.sm-preach-prog i { display: block; height: 100%; background: var(--accent); transition: width 1s linear; }
.sm-preach-body { flex: 1; overflow: auto; display: grid; align-items: center; padding: 2rem clamp(1.2rem, 7vw, 6rem); line-height: 1.42; cursor: pointer; outline: none; }
.sm-preach-card { max-width: 62rem; width: 100%; margin: 0 auto; }
.sm-preach-kind { display: flex; align-items: center; gap: .6rem; margin: 0 0 .6em; font-size: .42em; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .75; }
.sm-preach-card h2 { margin: 0 0 .35em; font-size: 1.15em; letter-spacing: -.02em; line-height: 1.15; color: #fff; }
.sm-preach-text { margin: 0; white-space: pre-wrap; font-size: .92em; }
.sm-preach mark.sm-key { background: rgb(232 83 28 / .32); color: #fff; border-radius: .2em; padding: 0 .14em; }
.sm-preach-nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 1.2rem 1.2rem; }
.sm-preach-dots { display: flex; gap: .45rem; flex-wrap: wrap; justify-content: center; }
.sm-preach-dots button { width: .55rem; height: .55rem; padding: 0; border-radius: 50%; border: 0; background: var(--c); opacity: .4; cursor: pointer; transition: transform .35s var(--spring), opacity .25s; }
.sm-preach-dots button.on { opacity: 1; transform: scale(1.5); }

/* handout */
.sm-print { position: fixed; inset: 0; z-index: 1000; overflow: auto; background: #ececf0; }
.sm-print-bar { position: sticky; top: 0; z-index: 2; display: flex; gap: .6rem; align-items: center; padding: .7rem 1.2rem; background: rgb(255 255 255 / .85); backdrop-filter: blur(16px); border-bottom: 1px solid #d8d8de; color: #1d1d1f; }
.sm-handout { max-width: 46rem; margin: 1.5rem auto; padding: 3rem 3.2rem; background: #fff; color: #1d1d1f; border-radius: 6px; box-shadow: 0 6px 30px rgb(0 0 0 / .12); font-family: Georgia, "Iowan Old Style", serif; line-height: 1.6; }
.sm-handout h1 { font-family: -apple-system, var(--sans); font-size: 2rem; margin: 0 0 .2rem; letter-spacing: -.02em; color: #1d1d1f; }
.sm-handout h2 { font-family: -apple-system, var(--sans); font-size: 1.1rem; margin: 1.4rem 0 .3rem; color: #1d1d1f; }
.sm-handout blockquote { margin: .3rem 0; padding-left: 1rem; border-left: 3px solid #e8531c; }
.sm-handout .soft, .sm-handout-note { color: #6e6e73; }
.sm-handout-note { margin-top: 2rem; font-size: .8rem; font-family: -apple-system, var(--sans); }
.sm-handout mark.sm-key { background: #fde6d8; color: #1d1d1f; padding: 0 .15em; border-radius: .2em; }
.sm-blank { display: inline-block; border-bottom: 1.5px solid #1d1d1f; min-width: 4em; }
@media print { body > *:not(.sm-print) { display: none !important; } .sm-print { position: static; background: #fff; overflow: visible; } .sm-print-bar { display: none; } .sm-handout { box-shadow: none; margin: 0; padding: 0; max-width: none; } }

/* calendar */
.sm-calwrap { display: grid; grid-template-columns: minmax(0, 1fr) 20rem; gap: 1.1rem; align-items: start; }
@media (max-width: 1100px) { .sm-calwrap { grid-template-columns: 1fr; } }
.sm-cal-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: .8rem; }
.sm-cal-head h2 { font-size: 1.5rem; letter-spacing: -.015em; }
.sm-cal-week, .sm-cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.sm-cal-week span { padding: .3rem .4rem; font-size: .78rem; font-weight: 700; color: var(--ink-soft); }
.sm-cal-grid { border-top: 1px solid var(--line); }
.sm-cal-day { position: relative; display: flex; flex-direction: column; gap: .25rem; min-height: 6.4rem; padding: .35rem .35rem .5rem; border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); border-right: 1px solid color-mix(in srgb, var(--line) 50%, transparent); }
.sm-cal-day:nth-child(7n) { border-right: 0; }
.sm-cal-day.out { opacity: .42; }
.sm-cal-day.sun { background: color-mix(in srgb, var(--accent) 6%, transparent); }
.sm-cal-n { align-self: flex-start; display: grid; place-items: center; min-width: 1.6rem; height: 1.6rem; border-radius: 50%; font-size: .8rem; font-weight: 600; }
.sm-cal-day.today .sm-cal-n { background: var(--accent); color: #fff; }
.sm-cal-chip { display: block; padding: .2rem .5rem; border-radius: 8px; font-size: .75rem; font-weight: 700; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: transform .3s var(--ease); }
.sm-cal-chip:hover { transform: scale(1.03); }
.sm-cal-chip.sermon { background: var(--c); color: #fff; }
.sm-cal-chip.draft { color: var(--ink); border: 1.5px dashed var(--c); background: color-mix(in srgb, var(--c) 8%, transparent); }
.sm-cal-add { position: absolute; right: .35rem; bottom: .35rem; width: 1.6rem; height: 1.6rem; padding: 0; border-radius: 50%; border: 0; background: var(--accent); color: #fff; font-size: 1.1rem; line-height: 1; opacity: 0; transform: scale(.7); transition: opacity .25s, transform .35s var(--spring); cursor: pointer; }
.sm-cal-day:hover .sm-cal-add, .sm-cal-add:focus-visible { opacity: 1; transform: none; }
.sm-cal-day.sun .sm-cal-add { opacity: .55; transform: none; }
.sm-cal-day.sun:hover .sm-cal-add { opacity: 1; }
@media (hover: none) { .sm-cal-add { opacity: .7; transform: none; } }
.sm-ahead { display: grid; gap: .3rem; }
.sm-ahead h2 { margin-bottom: .5rem; }
.sm-ahead-row { display: flex; justify-content: space-between; align-items: center; gap: .8rem; padding: .6rem 0; border-top: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.sm-ahead-row > div:first-child { display: grid; min-width: 4.4rem; }
.sm-ahead-items { display: grid; gap: .25rem; flex: 1; min-width: 0; }
.sm-ahead-note { margin: .6rem .3rem 0; }

/* series */
.sm-series-big { position: relative; display: grid; gap: .5rem; padding: 0 0 1.2rem; overflow: hidden; }
.sm-series-big > :not(.sm-series-band) { margin: 0 1.3rem; }
.sm-series-big.old { opacity: .6; }
.sm-series-band { height: 4.6rem; background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 55%, #000)); margin-bottom: .4rem; }
.sm-series-hero { display: grid; gap: .6rem; border-top: 6px solid var(--c); }
.sm-series-hero h2 { font-size: 1.8rem; letter-spacing: -.02em; }
.sm-series-hero p { margin: 0; }
.sm-slots { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.sm-slot { display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: center; padding: .9rem 1.1rem; border-radius: 18px; background: var(--surface); border: 1px solid color-mix(in srgb, var(--line) 55%, transparent); box-shadow: var(--shadow-1); }
.sm-slot > div { display: grid; min-width: 0; }
.sm-slot a { color: inherit; text-decoration: none; }
.sm-slot a:hover { color: var(--action); }
.sm-slot.empty { background: transparent; border-style: dashed; box-shadow: none; }
.sm-slot.empty .sm-num { background: color-mix(in srgb, var(--ink) 18%, transparent); }
.sm-swatches { display: flex; flex-wrap: wrap; gap: .6rem; }
.sm-swatch { width: 2rem; height: 2rem; padding: 0; border-radius: 50%; border: 3px solid transparent; background: var(--c); cursor: pointer; box-shadow: 0 0 0 1px rgb(0 0 0 / .15); transition: transform .3s var(--spring); }
.sm-swatch:hover { transform: scale(1.12); }
.sm-swatch[aria-checked="true"] { border-color: var(--surface); box-shadow: 0 0 0 2.5px var(--c); }

/* library, passage guide, search */
.sm-subseg { display: flex; gap: 1.4rem; border-bottom: 1px solid var(--line); }
.sm-subseg-item { padding: .5rem 0 .65rem; color: var(--ink-soft); font-weight: 700; text-decoration: none; border-bottom: 2.5px solid transparent; margin-bottom: -1px; transition: color .2s, border-color .3s var(--ease); }
.sm-subseg-item.on { color: var(--ink); border-color: var(--accent); }
.sm-ill { display: grid; gap: .6rem; align-content: start; }
.sm-ill-body { margin: 0; white-space: pre-wrap; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; color: var(--ink); }
.sm-passhead { display: grid; gap: .8rem; }
.sm-passhead .sm-row { flex-wrap: nowrap; }
input.sm-bigfind { flex: 1; font-size: 1.15rem; padding: .8rem 1.1rem; border-radius: 14px; }
.sm-pass-card h2 { display: flex; align-items: center; gap: .6rem; margin-bottom: .8rem; font-size: 1.15rem; }
.sm-pass-card h2 svg { width: 1.2rem; height: 1.2rem; color: var(--accent); }
.sm-verse { font-size: 1.1rem; line-height: 1.7; margin: .6rem 0; font-family: Georgia, "Iowan Old Style", serif; }
@media (max-width: 760px) { .sm-find-wrap { flex: 1 1 100%; } .sm-cal-day { min-height: 4.4rem; } .sm-cal-chip { font-size: .66rem; padding: .15rem .3rem; } .sm-handout { padding: 1.6rem 1.2rem; } }

/* Notifications on a phone: a panel pinned inside the screen, never spilling off either edge */
@media (max-width: 720px) {
  .bell-wrap { position: static; }
  .bell-panel { position: fixed; left: .75rem; right: .75rem; top: 4.25rem; width: auto; max-width: none; max-height: calc(100dvh - 5.5rem); box-sizing: border-box; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; z-index: 60; }
  .bell-panel * { min-width: 0; overflow-wrap: anywhere; }
  .bell-row { flex-wrap: wrap; }
  .bell-row small { white-space: normal; }
}

/* Notices on a phone: tidy, equal-sized controls */
@media (max-width: 720px) {
  .toolbar[aria-label="Notices pages"] { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem; }
  .toolbar[aria-label="Notices pages"] .button { width: 100%; min-width: 0; box-sizing: border-box; justify-content: center; text-align: center; padding-inline: .4rem; white-space: normal; line-height: 1.15; gap: .25rem; }
  .notice-controls { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; align-items: end; }
  .notice-controls .field { margin: 0; min-width: 0; }
  .notice-controls .field select, .notice-controls .field input { width: 100%; box-sizing: border-box; }
  .notice-controls .field:first-child { grid-column: 1 / -1; }
  .notice-controls .button { width: 100%; box-sizing: border-box; justify-content: center; text-align: center; }
}
@media (max-width: 720px) {
  .notice-controls .field:nth-of-type(2) { grid-column: 1 / -1; order: 2; }
  .notice-controls .field:first-child { order: 1; }
  .notice-controls .button { order: 3; }
  .notice-controls input[type="month"] { min-width: 0; max-width: 100%; -webkit-appearance: none; appearance: none; }
  .toolbar[aria-label="Notices pages"] .button svg { width: 1.1rem; height: 1.1rem; flex: none; }
}

/* Date, month and time boxes: the same width and height as every other box, on phones too (iOS draws them wider by default) */
input[type="date"], input[type="month"], input[type="time"], input[type="datetime-local"], input[type="week"] {
  -webkit-appearance: none; appearance: none; display: block; box-sizing: border-box; width: 100%; max-width: 100%; min-width: 0; min-height: 2.9rem; text-align: left; line-height: 1.3;
}
input[type="date"]::-webkit-date-and-time-value, input[type="month"]::-webkit-date-and-time-value, input[type="time"]::-webkit-date-and-time-value, input[type="datetime-local"]::-webkit-date-and-time-value { text-align: left; min-height: 1.3em; margin: 0; }

/* Plans: buttons side by side with a clear gap; pop-up menus are pinned on screen by script */
.pl-split { display: inline-flex; gap: .6rem; }
.pl-split > * + * { margin-left: 0; }
.pl-pop { z-index: 90; }
.plan-time { display: inline-grid; line-height: 1.15; } .plan-offset { font-size: .75rem; font-weight: 500; }

/* Birthday message box: emoji and picture on one line, the send button on its own line, nothing overlapping */
.composer-bar { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .5rem .75rem; align-items: center; }
.composer-bar .picture-pick { min-width: 0; }
.composer-bar .picture-pick input { min-width: 0; max-width: 100%; width: 100%; }
.composer-bar > button[type="submit"] { grid-column: 1 / -1; justify-self: end; }

/* Message list: a row grows with its text, so the divider line never cuts through it */
.board-row { height: auto; min-height: 72px; overflow: visible; }
.board-text { flex: 1 1 auto; }
.board-text .soft { max-width: 100%; overflow: visible; text-overflow: clip; white-space: normal; overflow-wrap: anywhere; }
/* Two boxes side by side in a form never push past each other or the edge */
.two-col > *, .filterbar > *, .filterbar .field { min-width: 0; }
.two-col input, .two-col select, .filterbar input, .filterbar select { max-width: 100%; box-sizing: border-box; }

/* Cancel and Save inside a pop-up: just the two buttons, on the right, without an empty bar around them */
dialog .form-panel > .toolbar, dialog .form-panel .toolbar:last-child { background: transparent; border: 0; box-shadow: none; padding: 0; justify-content: flex-end; margin-top: .5rem; }
.ci-welcome { margin: .75rem 0 0; padding: .8rem 1rem; border-radius: 12px; background: var(--action-soft, #fdeee6); color: var(--ink); font-size: 1.05rem; line-height: 1.45; }
.ci-welcome[hidden] { display: none; }

/* Total | Avg tiles: the figures sit on the same line across a row, whatever the length of each title */
.att-duo { display: grid; grid-template-rows: auto auto 1fr; align-content: start; }
.att-duo .att-tile-name { min-height: 2.6em; }
.att-duo .att-duo-nums { align-self: start; }
@media (min-width: 1100px) { .att-duo .att-tile-name { min-height: 0; } }

/* A row of buttons inside a card is just the buttons: no second bar drawn around them, nothing stretched, nothing over the text below */
.panel-plain .toolbar, .settings-block .toolbar, .form-panel .toolbar, .panel .toolbar, section.panel-plain > .toolbar {
  background: transparent; border: 0; box-shadow: none; padding: 0; height: auto; min-height: 0; margin: .6rem 0 0; flex-wrap: wrap; align-items: center; justify-content: flex-start;
}
.panel-plain .toolbar + p, .panel-plain .toolbar + small { margin-top: .75rem; }

/* The permissions grid stays a real grid on a phone: headings on top, one row per permission, never stacked into cards */
@media (max-width: 720px) {
  .people.matrix { display: table; width: 100%; table-layout: fixed; font-size: .8rem; }
  .people.matrix thead { display: table-header-group; position: static; left: auto; clip: auto; height: auto; }
  .people.matrix tbody { display: table-row-group; }
  .people.matrix tr { display: table-row; padding: 0; }
  .people.matrix th, .people.matrix td { display: table-cell; padding: .5rem .35rem; vertical-align: top; overflow-wrap: anywhere; }
  .people.matrix th[scope="row"] { width: 34%; }
  .people.matrix thead th { font-size: .7rem; }
}
@media (max-width: 720px) {
  .people.matrix th, .people.matrix td { white-space: normal; word-break: break-word; overflow: hidden; }
  .people.matrix thead th:first-child { width: 36%; }
}
@media (max-width: 720px) { .people.matrix thead th { font-size: .62rem; word-break: normal; overflow-wrap: normal; hyphens: none; padding-inline: .2rem; } }

/* The colour spectrum: the chosen colour in a circle, ringed by the whole rainbow. Tap it to pick any colour. */
input[type="color"], .colour-custom {
  -webkit-appearance: none; appearance: none; width: 2.5rem; height: 2.5rem; min-height: 0; padding: 3px; border: 0; border-radius: 50%; cursor: pointer; flex: none;
  background: conic-gradient(from 200deg, #ff5a5a, #ffb43c, #f2e233, #7bd957, #34c6a5, #3b9cff, #8a5cf6, #e052c9, #ff5a5a); box-shadow: none;
}
input[type="color"]::-webkit-color-swatch-wrapper { padding: 3px; border-radius: 50%; background: var(--surface, #fff); }
input[type="color"]::-webkit-color-swatch { border: 1px solid var(--line, #d8d8dc); border-radius: 50%; }
input[type="color"]::-moz-color-swatch { border: 1px solid var(--line, #d8d8dc); border-radius: 50%; }
input[type="color"]:focus-visible { outline: 2px solid var(--accent, #d9531e); outline-offset: 3px; }
.colour-custom.on { box-shadow: 0 0 0 2px var(--ink, #222); }

/* Clusters: the groups under a cluster, and a box to add a new subgroup */
.cl-groups { display: grid; gap: .1rem; max-height: 14rem; overflow-y: auto; padding: .25rem 0; }
.cl-groups .rota-check { padding: .35rem .25rem; }
.cl-new { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.cl-add { display: flex; gap: .5rem; } .cl-add input { flex: 1 1 auto; min-width: 0; }

/* Plan items on a phone: arrows, People, Change and Remove all on one line */
@media (max-width: 640px) {
  .plan-item-actions { flex-wrap: nowrap; justify-content: flex-start; gap: .3rem; }
  .plan-item-actions button { min-width: 0; padding-inline: .6rem; font-size: .85rem; flex: 0 1 auto; white-space: nowrap; }
  .plan-item-actions button.quiet { padding-inline: .45rem; }
}
.chip.bankhol { background: color-mix(in srgb, #1b7f5c 14%, transparent); color: inherit; border: 1px solid color-mix(in srgb, #1b7f5c 40%, transparent); font-weight: 700; }

/* Quiz answers: every word centred in its bar; markers sit at the left edge */
.ail-option { position: relative; justify-content: center; text-align: center; }
.ail-option::before, .ail-option .ail-key { position: absolute; left: .8rem; top: 50%; transform: translateY(-50%); }
.ail-option > span:not(.ail-key) { flex: 0 1 auto; text-align: center; padding-inline: 2.4rem; }
.ail-option.order { list-style: none; }
.ail-chip, .ail-ext button, .ail-ext select { text-align: center; }
.ail-sort-row { flex-direction: column; justify-content: center; text-align: center; gap: .5rem; }
.ail-sort-row .grow { flex: none; font-weight: 700; }
.ail-seg { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; width: 100%; }
.ail-word { text-align: center; }
.ail-tiles, .ail-actions { justify-content: center; }
.ail-hintbar { display: block; width: 100%; box-sizing: border-box; margin: .2rem 0 .6rem; padding: .7rem 1rem; text-align: center; border: 1px dashed var(--line); border-radius: .9rem; background: var(--surface, transparent); color: var(--ink-soft); font-style: italic; }
.ail-face { font-size: 3rem; line-height: 1; text-align: center; margin: .2rem 0; }
.ail-range-caps { display: flex; justify-content: space-between; gap: 1rem; font-weight: 700; }
.ail-range-caps span:last-child { text-align: right; }

/* Presenter Live: one workspace (toolbar, running order, slides, previews) */
.pw { --pw-bg:#1c1c1e; --pw-panel:#2a2a2d; --pw-bar:#3c3b3b; --pw-line:#0d0d0e; --pw-tx:#e8e8ea; --pw-mu:#a3a3ab; --pw-live:#e5484d;
  display: grid; grid-template-columns: 16.5rem minmax(0, 1fr) 21rem; grid-template-rows: auto minmax(0, 1fr); height: calc(100vh - 12rem); min-height: 36rem;
  border: 1px solid var(--pw-line); border-radius: 14px; overflow: hidden; background: var(--pw-bg); color: var(--pw-tx); margin-top: .8rem; }
.pw-top { grid-column: 1 / -1; display: flex; align-items: center; gap: .3rem; flex-wrap: wrap; padding: .4rem .7rem; background: var(--pw-bar); border-bottom: 1px solid var(--pw-line); }
.pw-bar { display: flex; align-items: center; gap: .2rem; flex-wrap: wrap; }
.pw-sep { width: 1px; height: 2.2rem; background: var(--pw-line); margin: 0 .4rem; }
.pw .pw-tb { display: grid; justify-items: center; gap: .1rem; min-width: 4.2rem; padding: .35rem .6rem; border: 0; border-radius: 8px; background: transparent; box-shadow: none; color: var(--pw-tx); font-size: .72rem; font-weight: 600; cursor: pointer; }
.pw .pw-tb:hover { background: #ffffff22; }
.pw .pw-tb .pw-ic { font-size: 1.25rem; line-height: 1.4rem; }
.pw .pw-tb.go { background: var(--accent, #d1470f); color: #fff; }
.pw .pw-tb.danger { color: #ff8a8d; }
.pw-open { margin-left: auto; display: flex; align-items: center; gap: .3rem; flex-wrap: wrap; font-size: .78rem; }
.pw-open .soft { color: var(--pw-mu); margin-right: .2rem; }
.pw .pw-link { padding: .3rem .65rem; border-radius: 7px; background: #ffffff14; color: var(--pw-tx); text-decoration: none; font-size: .78rem; font-weight: 600; }
.pw .pw-link:hover { background: #ffffff2a; }
.pw-left, .pw-right { background: var(--pw-panel); overflow: auto; min-height: 0; }
.pw-left { border-right: 1px solid var(--pw-line); }
.pw-right { border-left: 1px solid var(--pw-line); padding-bottom: 1rem; }
.pw-mid { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.pw-hd { padding: .6rem .8rem .3rem; font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--pw-mu); }
.pw-pad { padding: 0 .8rem .6rem; display: grid; gap: .3rem; }
.pw-lbl { font-size: .72rem; color: var(--pw-mu); margin-top: .3rem; }
.pw-title { padding: .55rem .9rem; border-bottom: 1px solid var(--pw-line); font-weight: 700; }
.pw-keys { margin: 0; padding: .45rem .9rem; border-top: 1px solid var(--pw-line); font-size: .72rem; color: var(--pw-mu); }
.pw .pr-slides { flex: 1; overflow: auto; margin: 0; padding: .9rem; align-content: start; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: .8rem; }
.pw .pr-slide { position: relative; aspect-ratio: 16 / 9; padding: 0; display: grid; place-items: center; border: 2px solid var(--pw-line); border-radius: 8px; overflow: hidden; background: linear-gradient(135deg, #0b1d4a, #2a0f4d); color: #fff; box-shadow: none; text-align: center; }
.pw .pr-slide:hover { border-color: #2f6fe0; }
.pw .pr-slide.live { border-color: var(--pw-live); box-shadow: 0 0 0 2px var(--pw-live); }
.pw .pr-slide-text { padding: .3rem .6rem 1.5rem; font-size: .8rem; font-weight: 700; text-transform: uppercase; line-height: 1.25; text-align: center; white-space: pre-wrap; text-shadow: 0 1px 4px #0009; }
.pw .pr-slide-tag { position: absolute; left: 0; right: 0; bottom: 0; padding: .15rem .5rem; background: #4a4a4e; color: #fff; font-size: .68rem; font-weight: 600; text-align: left; }
.pw .pr-items { padding: 0 .5rem .8rem; gap: 0; }
.pw .pr-item { border: 0; border-radius: 6px; padding: .5rem .6rem; color: var(--pw-tx); background: transparent; box-shadow: none; font-size: .85rem; }
.pw .pr-item:hover:not(.on) { background: #ffffff14; }
.pw .pr-item.on { background: #2f6fe0; color: #fff; }
.pw .pr-item .tag { margin-right: .3rem; font-size: .62rem; opacity: .75; background: transparent; color: inherit; padding: 0; }
.pw .empty { color: var(--pw-mu); padding: 1rem; grid-column: 1 / -1; }
.pw .pr-preview { margin: 0 .8rem .4rem; width: calc(100% - 1.6rem); border-color: var(--pw-line); }
.pw-panels { display: grid; gap: 0; margin-top: .6rem; border-top: 1px solid var(--pw-line); }
.pw-panel { border-bottom: 1px solid var(--pw-line); padding: .1rem .8rem .7rem; }
.pw-panel summary { cursor: pointer; padding: .55rem 0; font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--pw-mu); }
.pw-panel label { display: block; font-size: .75rem; color: var(--pw-mu); margin: .3rem 0 .1rem; }
.pw-panel .toolbar { display: flex; gap: .4rem; margin-top: .5rem; padding: 0; border: 0; background: none; box-shadow: none; }
.pw-panel .toolbar button { flex: 1; }
.pw-left select, .pw-panel select, .pw-panel input { width: 100%; }
@media (max-width: 1100px) { .st-canvases { flex-wrap:wrap; } }
@media (max-width: 900px) {
  .pw { display: flex; flex-direction: column; height: auto; overflow: visible; }
  .pw-top { position: sticky; top: 0; z-index: 5; }
  .pw-open { margin-left: 0; }
  .pw-right { order: 2; border-left: 0; } .pw-mid { order: 1; } .pw-left { order: 0; border-right: 0; max-height: 15rem; }
  .pw .pr-slides { grid-template-columns: repeat(2, 1fr); overflow: visible; }
  .pw .pw-tb { min-width: 3.4rem; padding: .3rem .4rem; }
}
.pw .pr-slide { width: 100%; min-width: 0; height: auto; justify-self: stretch; align-self: start; min-height: 0; }
.pw .pr-item { display: flex; align-items: center; gap: .4rem; text-align: left; justify-content: flex-start; width: 100%; }
.pw .pr-item .tag { display: inline-block; flex: none; width: 3.2rem; border: 0; border-radius: 0; text-align: left; text-transform: uppercase; letter-spacing: .04em; font-size: .62rem; font-weight: 800; opacity: .7; }
.pw .pw-open { flex-basis: 100%; margin-left: 0; padding-top: .35rem; border-top: 1px solid var(--pw-line); }
.pw .pw-tb { height: auto; min-height: 3.5rem; line-height: 1.15; align-content: center; padding-block: .4rem; overflow: visible; }
.pw .pw-tb span:last-child { white-space: nowrap; }
.pw-bar { padding-bottom: .2rem; }
@media (max-width: 1100px) { .st-canvases { flex-wrap:wrap; } }
@media (max-width: 900px) {
  .pw .pw-left { max-height: none; overflow: visible; }
  .pw .pr-slide-text { font-size: .62rem; padding-bottom: 1.3rem; }
  .pw .pw-top { padding: .3rem .4rem; }
}

/* Presenter lists (Songs, Services, Backgrounds) share the Live workspace look */
.pw-lite { border: 1px solid #0d0d0e; border-radius: 14px; overflow: hidden; background: #2a2a2d; color: #e8e8ea; margin-top: .8rem; }
.pw-lite .pw-top { display: flex; align-items: center; justify-content: space-between; padding: .6rem .9rem; background: #3c3b3b; border-bottom: 1px solid #0d0d0e; }
.pw-lite-title { font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #cfcfd6; }
.pw-rows { display: grid; }
.pw-row { display: flex; align-items: center; gap: .8rem; padding: .7rem .9rem; border-bottom: 1px solid #0d0d0e; flex-wrap: wrap; }
.pw-row:last-child { border-bottom: 0; }
.pw-row:hover { background: #ffffff0f; }
.pw-tag { flex: none; width: 4.6rem; font-size: .64rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: #a3a3ab; }
.pw-main { flex: 1; min-width: 8rem; font-weight: 600; }
.pw-main a { color: #fff; text-decoration: none; }
.pw-main a:hover { color: #8fb4ff; }
.pw-meta { color: #a3a3ab; font-size: .82rem; }

/* Presenter playlist, layers, stage settings, media */
.pw-left { display: flex; flex-direction: column; }
.pw-left .pr-items { flex: 1 1 auto; min-height: 6rem; overflow: auto; }
.pw-group { padding: .3rem .8rem; font-size: .72rem; font-weight: 800; letter-spacing: .04em; color: #fff; margin: .3rem -.5rem 0; }
.pw-hd-row { display: flex; align-items: center; justify-content: space-between; gap: .4rem; }
.pw-hd-row > span:nth-child(2) { font-weight: 600; letter-spacing: 0; text-transform: none; }
.pw .pw-mini { padding: .2rem .55rem; border-radius: 6px; border: 0; background: #ffffff1c; color: #e8e8ea; font-size: .7rem; font-weight: 700; text-decoration: none; cursor: pointer; margin-left: .25rem; text-transform: none; letter-spacing: 0; }
.pw .pw-mini:hover { background: #ffffff33; }
.pw-mediapanel { border-top: 1px solid #0d0d0e; max-height: 15rem; display: flex; flex-direction: column; min-height: 7rem; }
.pw-media { overflow: auto; padding: 0 .6rem .6rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(5rem, 1fr)); gap: .45rem; }
.pw .pw-thumb { display: grid; gap: .15rem; padding: 0; border: 2px solid #0d0d0e; border-radius: 6px; overflow: hidden; background: #000; color: #e8e8ea; font-size: .62rem; cursor: pointer; box-shadow: none; text-align: left; }
.pw .pw-thumb:hover { border-color: #2f6fe0; }
.pw .pw-thumb img, .pw .pw-thumb .pw-vid { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: grid; place-items: center; background: #111; }
.pw .pw-thumb span:last-child { padding: 0 .3rem .2rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pw-empty { grid-column: 1 / -1; margin: 0; padding: .3rem .2rem; font-size: .78rem; color: #a3a3ab; }
.pw-screens { display: grid; grid-template-columns: minmax(0, 1fr) 2.6rem; gap: .4rem; padding-right: .6rem; align-items: start; }
.pw-screens .pr-preview { margin-left: .8rem; width: calc(100% - .8rem); }
.pw-hd-in { padding-left: .8rem; }
.pw-layers { display: grid; gap: .3rem; padding-top: .2rem; }
.pw .pw-layer { width: 2.4rem; height: 2.4rem; padding: 0; display: grid; place-items: center; border: 1px solid #0d0d0e; border-radius: 8px; background: #3c3b3b; color: #e8e8ea; font-size: .95rem; font-weight: 700; cursor: pointer; box-shadow: none; }
.pw .pw-layer:hover { background: #55555a; border-color: #e5484d; }
.pw .pw-check { display: flex; align-items: center; gap: .5rem; font-size: .85rem; color: #e8e8ea; margin: .25rem 0; }
.pw .pw-check input { width: auto; }
@media (max-width: 1100px) { .st-canvases { flex-wrap:wrap; } }
@media (max-width: 900px) { .pw-mediapanel { max-height: none; } .pw-left .pr-items { max-height: 18rem; } }
.pw .pw-left { overflow: hidden; }
.pw .pw-left .pr-items { flex: 1 1 0; min-height: 5rem; overflow: auto; }
.pw .pw-left .pw-pad, .pw .pw-left .pw-hd { flex: none; }
.pw .pw-mediapanel { flex: none; max-height: 12rem; overflow: hidden; }
.pw .pw-hd-row .pw-mini { white-space: nowrap; }
.pw .pw-hd-row > span:first-child { white-space: nowrap; }
@media (max-width: 1100px) { .st-canvases { flex-wrap:wrap; } }
@media (max-width: 900px) { .pw .pw-left { overflow: visible; } .pw .pw-left .pr-items { flex: none; max-height: 18rem; } }
@media (max-width: 1100px) { .st-canvases { flex-wrap:wrap; } }
@media (max-width: 900px) { .pw .pw-top { position: static; } }
.task-board { align-items: stretch; }
.task-col h3 { min-height: 1.9rem; }

.care-nav { flex-wrap: wrap; align-items: center; }
.care-nav input[type="search"] { flex: 1 1 12rem; min-width: 9rem; max-width: 20rem; }
.care-nav select { flex: 0 1 11rem; min-width: 8rem; }

.dm-approve { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin: .35rem 0; }
.dm-approve .soft { margin-right: .3rem; }

.pw .pw-layer { color: #d9d9dd; }
.pw .pw-layer svg { display: block; }
.pw .pw-layer-all { margin-top: .35rem; border-radius: 50%; background: #1b1b1d; color: #fff; }
.pw .pw-layer-all:hover { background: #e5484d; }

.pw-found { display: grid; gap: .3rem; margin-top: .6rem; max-height: 50vh; overflow: auto; }
.pw-found h3 { margin: .4rem 0 0; font-size: .85rem; }
.pw-hit { display: grid; text-align: left; gap: .1rem; }
.pw-more { display: grid; gap: .5rem; }
.pw-more .button, .pw-more button { text-align: center; }

.month .daynum { border: 0; background: transparent; font-weight: 800; font-size: .95rem; color: inherit; cursor: pointer; box-shadow: none; }
.month .day.today .daynum { background: var(--action); color: var(--action-ink, #fff); }
.month .daynum:hover { background: color-mix(in srgb, var(--accent) 14%, transparent); }
.day-pop { display: grid; gap: .4rem; }
.day-pop .chip { font-size: .9rem; padding: .4rem .6rem; white-space: normal; }
@media (max-width: 640px) {
  .month .day { cursor: pointer; align-items: center; flex-direction: row; flex-wrap: wrap; align-content: flex-start; gap: 3px; }
  .month .daynum { flex: 0 0 100%; align-self: center; text-align: center; }
  .month .day .chip { pointer-events: none; width: .6rem; height: .6rem; padding: 0; border-radius: 50%; font-size: 0; line-height: 0; overflow: hidden; border-width: 0; background: var(--accent); }
  .month .day .chip.christian { background: #7a2fbf; } .month .day .chip.bankhol { background: #1b7f5c; } .month .day .chip.notice { background: #f2a900; }
  .month .day .more { display: none; }
  .day-pop .chip { width: auto; height: auto; border-radius: 6px; font-size: .9rem; line-height: 1.3; }
}

.notice-controls select, .notice-controls input[type=month] { height: 2.75rem; box-sizing: border-box; padding-block: 0; line-height: 1.2; }
.service-more { margin-top: .8rem; }
.filterbar.notice-controls .field select, .filterbar.notice-controls .field input[type=month] { height: 2.75rem !important; min-height: 2.75rem !important; box-sizing: border-box !important; padding-block: 0 !important; margin: 0; }

.pw-sizerow { display: flex; align-items: center; gap: .8rem; } .pw-sizerow input { flex: 1; }
.pw-libitem { gap: .3rem; padding: .5rem .6rem; border: 1px solid var(--line, #ddd); border-radius: 10px; }
.pw-libtabs { flex-wrap: wrap; margin: .5rem 0; }

.pw-themes { display: grid; grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); gap: .8rem; margin-bottom: 1rem; }
.pw-theme { display: grid; gap: .35rem; padding: .3rem; border: 2px solid transparent; border-radius: 10px; background: transparent; box-shadow: none; cursor: pointer; text-align: center; }
.pw-theme.on, .pw-theme:hover { border-color: var(--accent); }
.pw-theme-thumb { display: grid; place-items: center; aspect-ratio: 16 / 9; border-radius: 6px; padding: .4rem; font-size: .62rem; font-weight: 800; letter-spacing: .04em; border: 1px solid #0003; }
.pw-theme-name { font-size: .8rem; }

.pw-theme-wrap { display: grid; justify-items: center; }
.pw-style-thumb { display: grid; gap: 1px; align-content: center; justify-items: center; font-size: .5rem; font-weight: 600; letter-spacing: 0; }
.pw-style-line { background: rgba(0,0,0,.85); padding: 0 .3rem; }
.pw-folder { display: flex; justify-content: space-between; align-items: center; width: 100%; margin-top: .8rem; padding: .7rem .9rem; border-radius: 10px; font-weight: 600; }

.pw { position: relative; grid-template-columns: var(--pw-l, 16.5rem) minmax(0, 1fr) var(--pw-r, 21rem); }
.pw .pw-left, .pw .pw-right { position: relative; }
.pw .pw-left { overflow: hidden; }
.pw-split { position: absolute; z-index: 5; background: transparent; touch-action: none; }
.pw-split:hover, .pw-split.drag, .pw-split:focus-visible { background: var(--pw-live, #e5484d); opacity: .85; outline: 0; }
.pw-split-v { top: 0; bottom: 0; width: 7px; cursor: col-resize; }
.pw-split-l { right: -3px; } .pw-split-r { left: -3px; }
.pw-split-h { left: 0; right: 0; height: 7px; cursor: row-resize; bottom: calc(var(--pw-media-h, 12rem)); }
.pw-sizebar { display: flex; align-items: center; gap: .6rem; padding: .35rem .8rem; border-top: 1px solid var(--pw-line); }
.pw-sizebar input { width: 10rem; }
@media (max-width: 1100px) { .st-canvases { flex-wrap:wrap; } }
@media (max-width: 900px) { .pw-split, .pw-sizebar { display: none; } }
@media (min-width: 901px) {
  .pw .pw-top { flex-wrap: wrap; overflow-x: auto; }
  .pw .pw-top > .pw-bar { flex-wrap: nowrap; flex: 0 0 auto; }
  .pw .pw-bar .pw-tb { min-width: 3.3rem; padding-inline: .35rem; white-space: nowrap; }
  .pw .pw-bar .pw-sep { flex: none; }
}

.pw .pw-tools { display: flex; align-items: center; flex-wrap: nowrap; gap: .2rem; max-width: 100%; overflow-x: auto; }
.pw .pw-tools .pw-bar { flex-wrap: nowrap; flex: 0 0 auto; }
.pw .pw-tools .pw-tb { min-width: 3.1rem; padding-inline: .3rem; white-space: nowrap; }
@media (max-width: 1100px) { .st-canvases { flex-wrap:wrap; } }
@media (max-width: 900px) { .pw .pw-tools .pw-tb { min-width: 2.8rem; } }

.pw-themes .pw-theme, .pw-themes .pw-theme-wrap { height: auto !important; min-height: 0 !important; align-self: start; }
.pw-themes .pw-theme-thumb { width: 100%; box-sizing: border-box; }
.pw-plus { font-size: 2rem; font-weight: 300; line-height: 1; color: var(--accent); }
.pw-theme-plus .pw-theme-thumb { background: transparent; border: 2px dashed color-mix(in srgb, var(--accent) 55%, transparent); }

.pw .pw-tools { overflow: hidden !important; width: 100%; }
.pw .pw-tb[hidden] { display: none !important; }

/* ---- Meetings ---- */
.mt-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.mt-row { display: flex; gap: 1rem; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: .7rem .9rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.mt-row-main { display: grid; min-width: 0; }
.mt-row-title { font-weight: 600; text-decoration: none; }
.mt-row-actions { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.mt-live { background: #c62828; color: #fff; border-radius: 999px; padding: .1rem .6rem; font-size: .75rem; font-weight: 700; }
.mt-start .toolbar { margin-bottom: .8rem; }
.mt-joinbox { display: flex; gap: .5rem; flex-wrap: wrap; }
.mt-joinbox input { flex: 1 1 14rem; }
.mt-summary { white-space: pre-wrap; font-family: var(--sans); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem 1rem; margin: 0 0 .8rem; max-height: 28rem; overflow: auto; }
.mt-hidden { display: none; }
.mt-region { max-width: 100%; cursor: crosshair; border-radius: 8px; touch-action: none; }
.mt-settings h3 { margin: 1rem 0 .3rem; }
.mt-settings .field.check { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }

.mt-lobby { display: grid; grid-template-columns: minmax(0, 3fr) minmax(16rem, 2fr); gap: 1.5rem; align-items: start; }
.mt-preview-box { position: relative; background: #0d0f14; border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 9; }
.mt-preview { width: 100%; height: 100%; object-fit: cover; background: #0d0f14; }
.mt-preview.mirror { transform: scaleX(-1); }
.mt-preview-bar { position: absolute; left: 0; right: 0; bottom: .7rem; display: flex; gap: .6rem; justify-content: center; }
.mt-toggle { display: inline-flex; gap: .4rem; align-items: center; background: rgba(20, 22, 28, .8); color: #fff; border: 1px solid rgba(255, 255, 255, .25); border-radius: 999px; padding: .5rem .9rem; min-height: 2.6rem; }
.mt-lobby-side { display: grid; gap: .8rem; }
@media (max-width: 800px) { .mt-lobby { grid-template-columns: 1fr; } }

.mt-room { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; height: calc(100vh - 8.5rem); min-height: 30rem; background: #0b0d12; color: #f1f3f7; border-radius: 14px; overflow: hidden; position: relative; }
.mt-room.with-side { grid-template-columns: minmax(0, 1fr) minmax(17rem, 22rem); }
.mt-room.with-side .mt-top, .mt-room.with-side .mt-bar { grid-column: 1 / -1; }
.mt-top { display: flex; gap: 1rem; align-items: center; padding: .55rem 1rem; background: #12151c; border-bottom: 1px solid #232733; }
.mt-recdot { color: #ff5a5a; font-weight: 700; }
.mt-main { position: relative; min-height: 0; padding: .6rem; display: flex; }
.mt-stage { flex: 1; display: grid; gap: .5rem; min-height: 0; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); grid-auto-rows: 1fr; }
.mt-stage[data-count="1"] { grid-template-columns: 1fr; }
.mt-stage[data-count="2"], .mt-stage[data-count="3"], .mt-stage[data-count="4"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mt-stage[data-count="5"], .mt-stage[data-count="6"], .mt-stage[data-count="7"], .mt-stage[data-count="8"], .mt-stage[data-count="9"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mt-stage.has-share { grid-template-columns: minmax(0, 1fr) 13rem; grid-auto-rows: minmax(7rem, 1fr); }
.mt-stage.has-share .mt-tile.share { grid-column: 1; grid-row: 1 / span 6; }
.mt-stage.has-share .mt-tile:not(.share) { grid-column: 2; }
.mt-tile { position: relative; background: #171a23; border-radius: 12px; overflow: hidden; min-height: 0; min-width: 0; }
.mt-tile video { width: 100%; height: 100%; object-fit: cover; display: block; background: #000; }
.mt-tile.share video { object-fit: contain; }
.mt-tile.mirror video { transform: scaleX(-1); }
.mt-tile.hidden-self { display: none; }
.mt-tile .mt-avatar { position: absolute; inset: 0; margin: auto; width: 5rem; height: 5rem; border-radius: 50%; background: #2b3144; display: none; align-items: center; justify-content: center; font-size: 1.6rem; font-weight: 600; }
.mt-tile.no-cam video { visibility: hidden; }
.mt-tile.no-cam .mt-avatar { display: flex; }
.mt-avatar.sm { position: static; width: 2rem; height: 2rem; font-size: .8rem; border-radius: 50%; background: #2b3144; display: inline-flex; align-items: center; justify-content: center; }
.mt-name { position: absolute; left: .5rem; bottom: .5rem; background: rgba(0, 0, 0, .6); border-radius: 6px; padding: .1rem .5rem; font-size: .8rem; max-width: 80%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mt-name.hide { display: none; }
.mt-badges { position: absolute; right: .5rem; top: .5rem; display: flex; gap: .3rem; }
.mt-badge { background: rgba(0, 0, 0, .65); border-radius: 50%; width: 1.9rem; height: 1.9rem; display: inline-flex; align-items: center; justify-content: center; }
.mt-badge.hand { background: #f2b01e; color: #111; }
.mt-captions { position: absolute; left: 50%; bottom: 1rem; transform: translateX(-50%); max-width: 80%; background: rgba(0, 0, 0, .78); border-radius: 8px; padding: .5rem 1rem; font-size: 1.15rem; display: none; text-align: center; }
.mt-captions.on { display: block; }

.mt-side { background: #12151c; border-left: 1px solid #232733; padding: .8rem; overflow: auto; display: grid; align-content: start; gap: .7rem; min-height: 0; }
.mt-room:not(.with-side) .mt-side { display: none; }
.mt-side-head { display: flex; justify-content: space-between; align-items: center; }
.mt-side h2, .mt-side h3 { margin: 0; font-size: 1.05rem; color: #f1f3f7; }
.mt-side label, .mt-side p, .mt-side small { color: #cfd4df; }
.mt-side input, .mt-side textarea, .mt-side select { background: #0b0d12; color: #f1f3f7; border: 1px solid #2f3446; border-radius: 8px; padding: .5rem .6rem; width: 100%; }
.mt-people { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.mt-people li { display: flex; gap: .6rem; align-items: center; }
.mt-people .grow { flex: 1; }
.mt-people svg { opacity: .8; }
.mt-chatlog, .mt-transcript { max-height: 55vh; overflow: auto; display: grid; gap: .5rem; align-content: start; }
.mt-chatlog p, .mt-transcript p { margin: 0; display: grid; }
.mt-chatform { display: flex; gap: .4rem; }
.mt-poll { display: grid; gap: .4rem; padding-bottom: .6rem; border-bottom: 1px solid #232733; }
.mt-vote { position: relative; display: flex; justify-content: space-between; gap: .6rem; overflow: hidden; text-align: left; background: #0b0d12; color: #f1f3f7; border: 1px solid #2f3446; border-radius: 8px; padding: .5rem .7rem; }
.mt-vote .bar { position: absolute; left: 0; top: 0; bottom: 0; background: color-mix(in srgb, var(--accent) 30%, transparent); }
.mt-vote .lbl, .mt-vote .cnt { position: relative; }
.mt-vote.mine { border-color: var(--accent); }
.mt-hint { font-size: .8rem; color: #aeb5c4; margin: .4rem .2rem 0; max-width: 18rem; }

.mt-bar { display: flex; gap: .45rem; flex-wrap: wrap; align-items: center; padding: .55rem .7rem; background: #12151c; border-top: 1px solid #232733; }
.mt-gap { flex: 1; }
.mt-ctl, .mt-leave { position: relative; display: inline-flex; flex-direction: column; align-items: center; gap: .1rem; min-width: 4.2rem; min-height: 3.2rem; padding: .35rem .5rem; background: #1b1f2a; color: #e8ebf2; border: 1px solid #2a3042; border-radius: 10px; font-size: .72rem; }
.mt-ctl:hover { background: #262c3b; }
.mt-ctl.on { background: #2b3552; border-color: #6c8cff; }
.mt-ctl.alert, .mt-leave { background: #c62828; border-color: #e24a4a; color: #fff; }
.mt-leave { flex-direction: row; gap: .4rem; font-size: .85rem; padding: .35rem .9rem; }
.mt-count { position: absolute; top: .15rem; right: .25rem; background: #e24a4a; color: #fff; border-radius: 999px; min-width: 1.1rem; font-size: .7rem; text-align: center; }
.mt-split { display: inline-flex; }
.mt-split .mt-ctl { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.mt-chev { background: #1b1f2a; color: #e8ebf2; border: 1px solid #2a3042; border-left: 0; border-radius: 0 10px 10px 0; width: 1.6rem; display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.mt-chev svg { width: 14px; height: 14px; }
.mt-anchor { position: relative; }
.mt-split, .mt-anchor { position: relative; }
.mt-menu { position: absolute; bottom: calc(100% + .4rem); left: 0; z-index: 30; min-width: 16rem; max-width: 22rem; background: #1b1f2a; color: #f1f3f7; border: 1px solid #333a50; border-radius: 12px; padding: .4rem; display: grid; gap: .1rem; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); }
.mt-item { text-align: left; background: transparent; color: #f1f3f7; border: 0; border-radius: 8px; padding: .55rem .7rem; font-size: .9rem; }
.mt-item:hover, .mt-item:focus-visible { background: #2b3146; }
.mt-item.on { color: var(--accent); }
.mt-sep { height: 1px; background: #333a50; margin: .3rem 0; }
.mt-opt { display: flex; gap: .5rem; align-items: center; padding: .35rem .7rem; font-size: .88rem; }
.mt-opt.col { flex-direction: column; align-items: stretch; }
.mt-opt select { background: #0b0d12; color: #f1f3f7; border: 1px solid #2f3446; border-radius: 8px; padding: .4rem; }
@media (max-width: 800px) {
  .mt-room { height: calc(100vh - 6rem); }
  .mt-room.with-side { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr) auto auto; }
  .mt-room.with-side .mt-side { grid-column: 1; max-height: 45vh; border-left: 0; border-top: 1px solid #232733; }
  .mt-room.with-side .mt-main { min-height: 12rem; }
  .mt-stage.has-share { grid-template-columns: 1fr; }
  .mt-stage.has-share .mt-tile.share, .mt-stage.has-share .mt-tile:not(.share) { grid-column: 1; grid-row: auto; }
  .mt-ctl span { display: none; }
  .mt-ctl, .mt-leave { min-width: 2.9rem; }
  .mt-menu { left: auto; right: 0; }
}
.mt-room { height: calc(100vh - 11rem); }
.mt-ctl { min-width: 3.6rem; }
@media (max-width: 1250px) { .mt-ctl span { display: none; } .mt-ctl, .mt-leave { min-width: 2.9rem; } }
.mt-reactions { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.mt-react { position: absolute; bottom: 1rem; display: grid; justify-items: center; animation: mt-float 3.2s ease-out forwards; }
.mt-react-emoji { font-size: 2.6rem; line-height: 1; }
.mt-react small { background: rgba(0, 0, 0, .6); color: #fff; border-radius: 6px; padding: 0 .4rem; }
@keyframes mt-float { 0% { transform: translateY(0) scale(.6); opacity: 0; } 15% { opacity: 1; transform: translateY(-2rem) scale(1.1); } 100% { transform: translateY(-14rem) scale(1); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .mt-react { animation-duration: 3.2s; animation-name: mt-fade; } @keyframes mt-fade { 0%, 80% { opacity: 1; } 100% { opacity: 0; } } }
.mt-emojis { display: flex; gap: .2rem; padding: .2rem; }
.mt-emoji { background: transparent; border: 0; font-size: 1.6rem; border-radius: 8px; padding: .2rem .35rem; }
.mt-emoji:hover { background: #2b3146; }
.mt-bar { flex-wrap: nowrap; overflow-x: auto; gap: .3rem; scrollbar-width: thin; }
.mt-bar > *, .mt-split { flex: 0 0 auto; }
.mt-ctl { min-width: 3.3rem; padding: .3rem .35rem; }
.mt-menu { position: fixed; }
.mt-made input { width: 100%; }
.mt-id { display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; }
@media (max-width: 1400px) { .mt-ctl span { display: none; } .mt-ctl, .mt-leave { min-width: 2.9rem; } }
.mt-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .4rem; }
.mt-chip { display: inline-flex; gap: .3rem; align-items: center; background: var(--action-soft); border: 1px solid var(--line); border-radius: 999px; padding: .15rem .3rem .15rem .7rem; font-size: .85rem; }
.mt-chip button { border: 0; background: transparent; font-size: 1.1rem; line-height: 1; padding: 0 .35rem; }
.mt-found { display: grid; gap: .2rem; margin-top: .3rem; }
.mt-found-row { text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: .4rem .6rem; }
.mt-private { border: 1px solid var(--line); border-radius: 999px; padding: .1rem .6rem; font-size: .75rem; }

.mt-status { position: absolute; left: .6rem; top: .6rem; max-width: calc(100% - 1.2rem); padding: .25rem .6rem; border-radius: 999px; background: rgba(0,0,0,.65); color: #fff; font-size: .8rem; }
.mt-tap { position: absolute; inset: 0; margin: auto; width: max-content; height: max-content; padding: .6rem 1.1rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.4); background: rgba(0,0,0,.7); color: #fff; font-size: 1rem; cursor: pointer; z-index: 3; }
.mt-status[hidden], .mt-tap[hidden] { display: none; }

/* The dotted square for sharing part of the screen. The line, handles and move tab all sit OUTSIDE the square so they are never shared. */
.mt-portion { position: fixed; z-index: 3000; pointer-events: none; outline: 2px dashed #fff; outline-offset: 4px; }
.mt-portion::before { content: ''; position: absolute; inset: -8px; border: 2px dashed #111; pointer-events: none; }
.mt-handle { position: absolute; width: 18px; height: 18px; background: #fff; border: 2px solid #111; border-radius: 4px; pointer-events: auto; touch-action: none; }
.mt-handle.nw { left: -30px; top: -30px; cursor: nwse-resize; }
.mt-handle.ne { right: -30px; top: -30px; cursor: nesw-resize; }
.mt-handle.sw { left: -30px; bottom: -30px; cursor: nesw-resize; }
.mt-handle.se { right: -30px; bottom: -30px; cursor: nwse-resize; }
.mt-mover { position: absolute; left: 50%; top: -46px; transform: translateX(-50%); padding: .15rem .6rem; border-radius: 999px; background: #fff; color: #111; border: 2px solid #111; font-size: .8rem; white-space: nowrap; pointer-events: auto; cursor: move; touch-action: none; }

/* Whole-screen / window sharing: a live copy of the shared screen in a floating panel, with the dotted square drawn on it. */
.mt-regionpanel { position: fixed; right: 16px; bottom: 16px; z-index: 3000; background: #12151c; color: #f1f3f7; border: 1px solid #2b3146; border-radius: 12px; box-shadow: 0 12px 40px rgba(0,0,0,.45); max-width: calc(100vw - 16px); max-height: calc(100vh - 16px); overflow: auto; }
.mt-rp-head { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .5rem .75rem; cursor: move; font-size: .85rem; touch-action: none; }
.mt-rp-btns { display: flex; gap: .3rem; }
.mt-rp-btn { background: #232a3c; color: #f1f3f7; border: 1px solid #39425c; border-radius: 8px; padding: .15rem .6rem; font-size: .8rem; cursor: pointer; }
.mt-rp-pad { padding: 44px; }
.mt-rp-stage { position: relative; background: #000; }
.mt-rp-video { width: 100%; height: 100%; display: block; object-fit: fill; pointer-events: none; }
.mt-rp-stage .mt-portion { position: absolute; }
.mt-rp-note { margin: 0; padding: 0 .75rem .6rem; font-size: .78rem; color: #aab2c5; }

.rep-spaced { display: grid; gap: 1.1rem; }
.rep-spaced > h2, .rep-panel > p { margin: 0; }
.rep-spaced .field { margin: 0; display: grid; gap: .5rem; }
.rep-spaced .toolbar { gap: .7rem; align-items: center; }

.more-row { justify-content: space-between; align-items: center; margin-top: .9rem; }
.gs-form { gap: 1.2rem; padding: 1.5rem 1.6rem; }
.gs-form h2 { margin: 0; }
.gs-form .field { display: grid; gap: .6rem; margin: 0; }
.gs-form .field p, .gs-form .field small { margin: 0; }
.gs-form .rota-check { display: flex; gap: .8rem; align-items: flex-start; }
.gs-form .rota-check span { display: grid; gap: .25rem; }
.gs-form h3 { margin: .4rem 0 0; font-size: 1rem; }

.prereq { display: grid; gap: .6rem; }
.prereq-bar { display: flex; gap: .8rem; align-items: center; }
.prereq-bar input { flex: 1; min-width: 0; }
.prereq-list { max-height: 16rem; overflow-y: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: .35rem .5rem; display: grid; }
.prereq-row { display: flex; gap: .7rem; align-items: center; padding: .5rem .4rem; border-bottom: 1px solid var(--line); cursor: pointer; }
.prereq-row:last-child { border-bottom: 0; }
.prereq-row[hidden] { display: none; }
.prereq-row input { width: 1.15rem; height: 1.15rem; flex: none; margin: 0; }

/* Floating Back and Top arrows (phones only). A raised, keycap look: lit top edge, darker thick bottom edge, presses down when tapped. */
.floater { position: fixed; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 60; width: 3.1rem; height: 3.1rem; min-height: 0; padding: 0; border-radius: 50%; display: none; place-items: center; cursor: pointer;
  color: var(--ink); border: 1px solid color-mix(in srgb, var(--ink) 18%, transparent);
  background: radial-gradient(circle at 35% 25%, color-mix(in srgb, var(--surface) 100%, #fff) 0%, var(--surface) 45%, color-mix(in srgb, var(--surface) 80%, var(--ink)) 100%);
  box-shadow: inset 0 2px 1px rgb(255 255 255 / .85), inset 0 -3px 3px rgb(0 0 0 / .14), 0 5px 0 color-mix(in srgb, var(--ink) 30%, var(--surface)), 0 9px 14px rgb(0 0 0 / .28);
  transition: transform .14s cubic-bezier(.32,.72,0,1), box-shadow .14s cubic-bezier(.32,.72,0,1), opacity .25s ease; -webkit-tap-highlight-color: transparent; }
.floater svg { width: 1.45rem; height: 1.45rem; display: block; filter: drop-shadow(0 1px 0 rgb(255 255 255 / .7)); }
.floater-back { left: 16px; }
.floater-top { right: 16px; }
.floater:active { transform: translateY(4px); box-shadow: inset 0 2px 3px rgb(0 0 0 / .2), 0 1px 0 color-mix(in srgb, var(--ink) 30%, var(--surface)), 0 2px 5px rgb(0 0 0 / .25); }
.floater.is-hidden { opacity: 0; pointer-events: none; transform: translateY(12px); }
:root[data-theme="dark"] .floater, :root:not([data-theme="light"]) .floater { box-shadow: inset 0 2px 1px rgb(255 255 255 / .18), inset 0 -3px 3px rgb(0 0 0 / .4), 0 5px 0 #000, 0 9px 14px rgb(0 0 0 / .55); }
:root[data-theme="dark"] .floater svg, :root:not([data-theme="light"]) .floater svg { filter: none; }
@media (max-width: 820px), (hover: none) and (pointer: coarse) { .floater { display: grid; } }
@media print { .floater { display: none !important; } }
body:has(.mt-room) .floater { display: none !important; }

/* Sermon Hub: AI Helper and Resources */
.sm-ai-intro { display: flex; gap: 1rem; align-items: center; margin: 1.2rem 0 1rem; }
.sm-ai-intro h1 { margin: 0 0 .2rem; font-size: 1.5rem; }
.sm-ai-intro p { margin: 0; }
.sm-ai-tabs { display: flex; gap: .5rem; flex-wrap: wrap; margin: 0 0 1.1rem; }
/* The tabs and the helper's sentence share one row: tabs on the left, the sentence on the right (owner, 19 Nov). */
.sm-ai-tabrow { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin: .6rem 0 1.1rem; }
.sm-ai-tabrow .sm-ai-tabs { margin: 0; }
.sm-ai-tabrow .sm-ai-intro { margin: 0 0 0 auto; }
.sm-ai-tab { display: inline-flex; align-items: center; min-height: 2.6rem; padding: 0 1.1rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-weight: 600; font-size: .9rem; text-decoration: none; cursor: pointer; box-shadow: var(--shadow-press); }
.sm-ai-tab.on { background: var(--action); border-color: var(--action); color: var(--action-ink); }
.sm-ai-form { display: grid; gap: 1.1rem; max-width: 46rem; }
.sm-ai-form h2, .sm-ai-form p { margin: 0; }
.sm-ai-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 640px) { .sm-ai-grid { grid-template-columns: 1fr; } }
.sm-ai-form .field { display: grid; gap: .5rem; margin: 0; }
.sm-ai-form input[type="text"], .sm-ai-form input[type="number"], .sm-ai-form select, .sm-ai-form textarea { width: 100%; }
.sm-stylepick { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; }
@media (max-width: 640px) { .sm-stylepick { grid-template-columns: 1fr; } }
.sm-styleopt { display: grid; gap: .25rem; padding: .85rem 1rem; border: 2px solid var(--line); border-radius: 14px; background: var(--surface); cursor: pointer; align-content: start; }
.sm-styleopt input { position: absolute; opacity: 0; pointer-events: none; }
.sm-styleopt:has(input:checked) { border-color: var(--action); background: color-mix(in srgb, var(--action) 8%, var(--surface)); box-shadow: var(--shadow-press); }
.sm-styleopt:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.sm-chipset { display: flex; flex-wrap: wrap; gap: .5rem; }
.sm-chipbox { display: inline-flex; cursor: pointer; }
.sm-chipbox input { position: absolute; opacity: 0; pointer-events: none; }
.sm-chipbox span { padding: .4rem .9rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: .88rem; font-weight: 600; }
.sm-chipbox:has(input:checked) span { background: var(--action); border-color: var(--action); color: var(--action-ink); }
.sm-chipbox:has(input:focus-visible) span { outline: 3px solid var(--focus); outline-offset: 2px; }
.sm-ai-note { margin: 0 0 1rem; padding: .6rem .9rem; border-radius: 10px; background: var(--peach); border: 1px solid var(--peach-line); font-size: .85rem; }
.sm-ai-note.plain { background: color-mix(in srgb, var(--ink) 5%, var(--surface)); border-color: var(--line); }
.sm-ai-result { display: grid; gap: 1.1rem; }
.sm-ai-head { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: flex-start; }
.sm-ai-head h2 { margin: 0 0 .3rem; }
.sm-ai-big { margin: 0; font-size: 1.05rem; color: var(--ink-soft); max-width: 40rem; }
.sm-ai-sec { padding: 1rem 1.2rem; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.sm-ai-sec h3 { margin: 0 0 .6rem; font-size: 1.05rem; }
.sm-ai-sec p { margin: 0 0 .6rem; max-width: 46rem; }
.sm-ai-list { display: grid; gap: 1rem; margin-top: 1.2rem; max-width: 52rem; }
.sm-ai-card { padding: 1rem 1.2rem; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); display: grid; gap: .5rem; }
.sm-ai-card h3 { margin: 0; font-size: 1.05rem; }
.sm-ai-card p { margin: 0; }
.sm-ai-card-head { display: flex; justify-content: space-between; gap: .8rem; align-items: flex-start; flex-wrap: wrap; }
.sm-ai-badge { padding: .2rem .65rem; border-radius: 999px; font-size: .74rem; font-weight: 700; border: 1px solid var(--line); }
.sm-ai-badge.ok { color: var(--ok); border-color: var(--ok); }
.sm-ai-badge.warn { color: var(--orange-text); border-color: var(--orange-text); }
.sm-ai-refs-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.sm-ai-refs-list li { padding: .8rem 1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); display: grid; gap: .2rem; }
.sm-ai-refs-list p { margin: 0; }
.sm-ai-ref { font-weight: 700; font-size: 1.02rem; }
.sm-ai-theme { margin-left: .7rem; font-size: .8rem; color: var(--ink-soft); }
.sm-ai-quick h2 { margin-bottom: .6rem; }
.sm-ai-quick-row { display: flex; gap: .6rem; flex-wrap: wrap; }
.quick-ai { margin-top: 1rem; padding-top: .8rem; border-top: 1px solid var(--line); display: grid; gap: .5rem; }
.quick-ai[hidden] { display: none; }
.quick-ai p { margin: 0; font-size: .8rem; font-weight: 700; }
.sm-res-find { margin: 0 0 .9rem; max-width: 30rem; }
.sm-res-find input { width: 100%; }
.sm-res-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); gap: 1rem; }
.sm-res { display: grid; gap: .35rem; align-content: start; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); text-decoration: none; box-shadow: var(--shadow-press); transition: transform .15s ease, box-shadow .15s ease; }
.sm-res:hover { transform: translateY(-2px); box-shadow: var(--shadow-1); }
.sm-res strong { font-size: 1rem; color: var(--orange-text); }
.sm-res-cat { font-size: .72rem; font-weight: 700; color: var(--ink-soft); }
.sm-res-what { font-size: .88rem; }
.sm-res-lic { font-size: .78rem; color: var(--ink-soft); }
.sm-res-foot { margin-top: 1.2rem; max-width: 46rem; }

/* Help Guide */
.hg-page { display: grid; gap: 1.1rem; }
.hg-find { display: flex; align-items: center; gap: .6rem; max-width: 40rem; }
.hg-find input { flex: 1; }
.hg-group h2 { margin: 1.2rem 0 .6rem; font-size: 1.05rem; }
.hg-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: .7rem; }
.hg-card { display: grid; gap: .25rem; padding: .85rem 1rem; border: 1px solid var(--line, #d9dde3); border-radius: 12px; background: var(--card, #fff); text-decoration: none; transition: transform .18s ease, box-shadow .18s ease; }
.hg-card:hover, .hg-card:focus-visible { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0, 0, 0, .1); }
.hg-who { margin: 0; }
.hg-layout { display: grid; grid-template-columns: 13rem 1fr; gap: 1.5rem; align-items: start; }
.hg-toc { position: sticky; top: 1rem; display: grid; gap: .45rem; font-size: .92rem; }
.hg-body { display: grid; gap: 1.2rem; max-width: 46rem; }
.hg-sec h2, .hg-tips h2 { margin: 0 0 .5rem; font-size: 1.1rem; }
.hg-steps { margin: 0; padding-left: 1.4rem; display: grid; gap: .5rem; line-height: 1.55; }
.hg-tips { padding: .9rem 1.1rem; border-radius: 12px; background: var(--action-soft, #eef3ff); }
.hg-tips ul { margin: 0; padding-left: 1.2rem; }
.hg-pager { display: flex; justify-content: space-between; gap: 1rem; padding-top: .5rem; }
@media (max-width: 820px) { .hg-layout { grid-template-columns: 1fr; } .hg-toc { position: static; } }

/* Capture And Record */
.cap-wrap { display: grid; grid-template-columns: minmax(18rem, 24rem) 1fr; gap: 1rem; align-items: start; }
.cap-form { display: grid; gap: .7rem; }
.cap-form h2, .cap-live h2 { margin: 0; font-size: 1.1rem; }
.cap-field { display: grid; gap: .25rem; }
.cap-field > span { font-weight: 600; font-size: .9rem; }
.cap-preview { width: 100%; aspect-ratio: 16 / 9; background: #0b0d12; border-radius: 10px; }
.cap-live { display: grid; gap: .8rem; }
.cap-bar { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.cap-timer { font-variant-numeric: tabular-nums; font-size: 1.4rem; font-weight: 700; margin-right: auto; }
@media (max-width: 820px) { .cap-wrap { grid-template-columns: 1fr; } }

/* Sermon Hub Bible */
.bi-controls { display: flex; flex-wrap: wrap; gap: .5rem; margin: .8rem 0; }
.bi-controls select { min-width: 10rem; }
.bi-search { display: flex; gap: .5rem; max-width: 36rem; margin-bottom: .6rem; }
.bi-search input { flex: 1; }
.bi-results { display: grid; gap: .4rem; margin-bottom: .8rem; }
.bi-hit { display: grid; gap: .1rem; padding: .5rem .7rem; border-radius: 10px; background: var(--card, #fff); border: 1px solid var(--line, #d9dde3); }
.bi-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; margin: .6rem 0; }
.bi-actions { display: flex; flex-wrap: wrap; gap: .4rem; }
.bi-text { display: grid; gap: 1.2rem; max-width: 46rem; }
.bi-text.two { grid-template-columns: 1fr 1fr; max-width: none; }
.bi-col h3 { margin: 0 0 .5rem; font-size: 1.05rem; }
.bi-verse { margin: 0 0 .35rem; padding: .15rem .35rem; border-radius: 6px; line-height: 1.65; font-size: 1.05rem; cursor: pointer; }
.bi-verse sup { font-weight: 700; color: var(--action); margin-right: .15rem; }
.bi-verse:hover { background: var(--action-soft, #eef3ff); }
.bi-verse.picked { background: var(--action-soft, #eef3ff); box-shadow: inset 3px 0 0 var(--action); }
.bi-verse.mark { box-shadow: inset 3px 0 0 var(--accent, var(--action)); }
@media (max-width: 820px) { .bi-text.two { grid-template-columns: 1fr; } }
/* The Bible page in two columns (owner, 1 Dec 2026): the controls on the left, the passage on the right in a column of its own. */
.bi-layout { display: grid; grid-template-columns: var(--bi-left, 38%) 12px minmax(0, 1fr); gap: .6rem; align-items: stretch; }
/* the line between the columns: drag it, or use the arrow keys; it turns blue under the pointer */
.bi-handle { position: relative; cursor: col-resize; touch-action: none; border-radius: 6px; outline: none; }
.bi-handle::after { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; transform: translateX(-50%); border-radius: 2px; background: var(--line, #d9dde3); transition: background-color .15s ease, width .15s ease; }
.bi-handle:hover::after, .bi-handle.on::after, .bi-handle:focus-visible::after { width: 4px; background: var(--action, #0A84FF); }
.bi-side { display: grid; gap: .8rem; align-content: start; align-self: start; position: sticky; top: .6rem; max-height: calc(100vh - 1.2rem); overflow-y: auto; padding-right: .2rem; scrollbar-width: thin; }
.bi-side > * { margin: 0; min-width: 0; }
.bi-side .sm-ai-intro { margin: 0; }
.bi-side .bi-controls { display: grid; gap: .5rem; margin: 0; }
.bi-side .bi-controls select { min-width: 0; width: 100%; }
.bi-side .bi-search { max-width: none; margin: 0; }
.bi-side .bi-search input { min-width: 0; }
.bi-side .bi-bar { margin: 0; }
.bi-side .bi-results { margin: 0; }
.bi-read { min-width: 0; }
/* the passage fills its column from edge to edge */
.bi-read .bi-text { max-width: none; }
@media (max-width: 900px) { .bi-layout { grid-template-columns: 1fr; } .bi-handle { display: none; } .bi-side { position: static; max-height: none; overflow: visible; } }


/* Bible verse pop-up menu */
.bi-num { cursor: pointer; padding: 0 .2rem; border-radius: 4px; }
.bi-num:hover { background: var(--action-soft, #eef3ff); }
.bi-verse.hl-yellow { background: #fff2a8; } .bi-verse.hl-green { background: #cdeccb; } .bi-verse.hl-blue { background: #cfe3fb; } .bi-verse.hl-pink { background: #f9d4e4; }
.bi-verse[class*="hl-"] { color: #1b1b1f; }
.bi-pop { position: fixed; z-index: 500; padding: .6rem .7rem .7rem; border-radius: 16px; background: rgba(40, 40, 46, .92); color: #f2f2f5; backdrop-filter: blur(14px); box-shadow: 0 14px 40px rgba(0, 0, 0, .4); max-width: calc(100vw - 16px); }
@media (prefers-reduced-motion: no-preference) { .bi-pop { animation: bi-pop-in .18s ease-out; } @keyframes bi-pop-in { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } } }
.bi-pop-ref { margin: 0 0 .45rem; font-size: .8rem; opacity: .75; }
.bi-pop-grid { display: grid; grid-template-columns: repeat(4, 4.2rem); gap: .2rem; }
.bi-pop-btn { all: unset; box-sizing: border-box; display: grid; justify-items: center; gap: .2rem; padding: .45rem .2rem; border-radius: 10px; font-size: .72rem; cursor: pointer; color: inherit; }
.bi-pop-btn:hover, .bi-pop-btn:focus-visible { background: rgba(255, 255, 255, .14); }
.bi-pop-colours { display: flex; align-items: center; gap: .5rem; }
.bi-dot { all: unset; width: 1.9rem; height: 1.9rem; border-radius: 50%; cursor: pointer; border: 2px solid rgba(255, 255, 255, .5); }
.hl-dot-yellow { background: #f5d93a; } .hl-dot-green { background: #6fcf6b; } .hl-dot-blue { background: #5aa2ee; } .hl-dot-pink { background: #ee7fb0; }
.bi-clear { padding: .45rem .6rem; }
.bi-cmp { margin-bottom: 1rem; } .bi-cmp h3 { margin: 0 0 .3rem; font-size: 1rem; } .bi-cmp p { margin: 0 0 .3rem; line-height: 1.6; }
.bi-saved { margin-top: 1.5rem; display: grid; gap: .4rem; max-width: 46rem; } .bi-saved h3 { margin: 0; }
.bi-saved-row { display: flex; gap: .6rem; align-items: center; justify-content: space-between; padding: .45rem .7rem; border: 1px solid var(--line, #d9dde3); border-radius: 10px; }

/* ---------- eLearning: Overview, Courses, course page, discussion (el-) ---------- */
.el-hero { background: linear-gradient(135deg, color-mix(in srgb, var(--action) 38%, #14110f), #14110f 78%); color: #f6f1ea; border-radius: 18px; padding: 28px clamp(18px, 4vw, 40px); margin: 6px 0 18px; }
.el-hero h2 { margin: 0 0 6px; font-size: clamp(1.5rem, 3.4vw, 2.1rem); color: #fff; }
.el-hero p { margin: 0 0 18px; max-width: 52ch; color: #e6ddd2; }
.el-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin-bottom: 20px; }
.el-stat { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.el-stat strong { font-size: 1.5rem; line-height: 1.1; color: #fff; }
.el-stat span { font-size: .85rem; color: #d9cfc3; }
.el-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.el-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-top: 18px; }
.el-card { display: flex; flex-direction: column; gap: 6px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); text-decoration: none; }
a.el-card:hover { border-color: var(--action); }
.el-card span { color: var(--ink-soft); font-size: .92rem; }
.el-layout { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 20px; align-items: start; margin-top: 12px; }
.el-side { position: sticky; top: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); padding: 14px; max-height: calc(100vh - 24px); overflow: auto; }
.el-side-head { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; }
.el-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.el-module { margin: 12px 0 2px; font-weight: 700; font-size: .9rem; color: var(--ink-soft); }
.el-step { display: grid; grid-template-columns: 26px 1fr; grid-template-areas: "m n" "m k"; column-gap: 8px; align-items: center; padding: 8px 10px; border-radius: 10px; color: var(--ink); text-decoration: none; border: 1px solid transparent; }
a.el-step:hover { background: var(--action-soft); }
.el-step.now { background: var(--action-soft); border-color: var(--action); }
.el-step.locked { opacity: .55; cursor: not-allowed; }
.el-mark { grid-area: m; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: .78rem; border: 1px solid var(--line); background: var(--paper); }
.el-step.done .el-mark { background: var(--action); color: var(--action-ink); border-color: var(--action); }
.el-step-name { grid-area: n; font-weight: 600; overflow-wrap: anywhere; }
.el-step-kind { grid-area: k; font-size: .78rem; color: var(--ink-soft); }
.el-main { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); padding: clamp(14px, 3vw, 26px); min-width: 0; }
.el-step-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin-bottom: 8px; }
.el-step-title h2 { margin: 0; flex: 1 1 auto; overflow-wrap: anywhere; }
.el-kind { font-size: .82rem; font-weight: 700; color: var(--action); }
.el-video { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 12px; background: #000; margin: 10px 0; }
.el-read { max-width: 70ch; line-height: 1.65; overflow-wrap: anywhere; }
.el-quizcard { border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin: 10px 0; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.el-note { padding: 10px 14px; border-radius: 10px; margin: 12px 0; border: 1px solid var(--line); }
.el-note.good { background: color-mix(in srgb, #2e9e5b 14%, var(--surface)); border-color: #2e9e5b; }
.el-note.bad { background: color-mix(in srgb, #c0392b 12%, var(--surface)); border-color: #c0392b; }
.el-pager { display: flex; justify-content: space-between; gap: 10px; margin-top: 22px; }
.el-scoring { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 10px; }
.el-scoring summary { cursor: pointer; font-weight: 700; }
.el-scoring ul { padding-left: 18px; color: var(--ink-soft); font-size: .9rem; }
.el-compose { display: flex; flex-direction: column; gap: 8px; margin: 10px 0 18px; }
.el-compose textarea { width: 100%; box-sizing: border-box; }
.el-compose-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.el-posts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.el-post { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--paper); }
.el-post.mine { border-color: var(--action); }
.el-post.hidden { opacity: .6; }
.el-post-top { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.el-post-body { margin: 6px 0; white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; }
.el-post-stars, .el-stars-total { font-weight: 700; color: var(--action); }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
@media (max-width: 860px) {
  .el-layout { grid-template-columns: minmax(0, 1fr); }
  .el-side { position: static; max-height: none; order: 2; }
  .el-main { order: 1; }
}
.ail-worth { display: flex; flex-wrap: wrap; gap: 6px 10px; margin: 0 0 6px; font-size: .85rem; color: var(--ink-soft); }
.ail-worth span { padding: 2px 10px; border: 1px solid var(--line); border-radius: 999px; }
.ail-worth .req { color: var(--action); border-color: var(--action); }
.ail-score-edit { margin: 6px 0 10px; }
.ail-maxstars { margin: 4px 0 8px; padding: 8px 12px; border-radius: 10px; background: var(--action-soft); color: var(--action); font-weight: 600; }
.ail-req { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--action-soft); }
.ail-req label { display: flex; gap: 8px; align-items: flex-start; }
.ail-req small { display: block; }
.el-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 12px 0 16px; }
.el-tile { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--paper); display: flex; flex-direction: column; gap: 2px; }
.el-tile span { font-size: .85rem; color: var(--ink-soft); }
.el-tile strong { font-size: 1.5rem; }
.el-rules { max-width: 72ch; line-height: 1.55; padding-left: 0; }
.el-rules li { margin-bottom: 10px; }
.el-welcome { margin-top: 14px; padding: 12px 14px; border-left: 4px solid var(--action); background: var(--action-soft); border-radius: 8px; }
.el-ranks { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin-top: 14px; }
.el-rank { border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: var(--paper); }
.el-rank ol { list-style: none; padding: 0; margin: 8px 0; }
.el-rank li { display: flex; gap: 8px; padding: 4px 0; }
.el-rank li.me { font-weight: 700; color: var(--action); }
.el-me { font-size: 1.15rem; font-weight: 700; margin: 4px 0; }
.el-quizlist { padding-left: 18px; }
.el-rules h3 { margin: 14px 0 4px; font-size: 1rem; }
.el-rules p { margin: 0 0 8px; max-width: 74ch; }
.el-bands { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin: 8px 0; }
.el-band { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; text-align: center; background: var(--paper); }
.el-page { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); padding: clamp(14px, 3vw, 24px); }
.el-course-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 24px; margin-bottom: 16px; }
.el-course-head h2 { margin: 2px 0 4px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.el-eyebrow { margin: 10px 0 0; font-size: .78rem; font-weight: 700; color: var(--action); letter-spacing: .04em; }
.el-progress { min-width: 220px; display: flex; flex-direction: column; gap: 6px; align-items: stretch; text-align: right; }
.el-side-title { margin: 0 0 10px; font-size: 1rem; }
.el-side { box-shadow: none; }
.el-main { box-shadow: none; }
.el-board { margin-top: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--action-soft); padding: clamp(14px, 3vw, 24px); }
.el-board h2 { margin: 2px 0 6px; }
.el-tiles.two { grid-template-columns: repeat(auto-fit, minmax(200px, 260px)); }
@media (max-width: 860px) { .el-progress { text-align: left; min-width: 0; width: 100%; } }
.el-stat { background: linear-gradient(150deg, color-mix(in srgb, var(--c) 34%, #1b1715), #1b1715 80%); border: 1px solid color-mix(in srgb, var(--c) 45%, rgba(255,255,255,.14)); }
.el-stat-icon { display: grid; place-items: center; width: 2.3rem; height: 2.3rem; border-radius: 13px; background: var(--c); color: #fff; margin-bottom: 6px; box-shadow: 0 6px 14px color-mix(in srgb, var(--c) 45%, transparent); }
.el-stat-icon svg { width: 1.15rem; height: 1.15rem; }
.el-cards.sm-tiles { margin-top: 18px; }
.el-prereq{margin:.5rem 0;padding:.5rem .75rem;border-radius:8px;background:rgba(224,160,48,.15)}
/* certificates */
.cert-fit{overflow:hidden;border-radius:6px;box-shadow:0 6px 24px rgba(0,0,0,.18);max-width:1000px;aspect-ratio:1000/707;background:#fff}
.cert-fit svg,.cert-stage-box svg{display:block;width:100%;height:100%}
.cert-stage-box{aspect-ratio:1000/707;border-radius:8px;box-shadow:0 6px 24px rgba(0,0,0,.18);overflow:hidden;background:#fff;touch-action:none;user-select:none;-webkit-user-select:none}
.cert-layout{display:grid;grid-template-columns:minmax(0,430px) minmax(0,1fr);gap:20px;align-items:start}
@media (max-width:980px){.cert-layout{grid-template-columns:1fr}.cert-stage{order:-1}}
.cert-stage{position:sticky;top:12px}
.cert-selbar{display:flex;flex-wrap:wrap;align-items:center;gap:8px;min-height:44px;margin-top:10px}.cert-selbar p{margin:0}
.cert-item{cursor:grab;touch-action:none;outline:none}.cert-item:active{cursor:grabbing}
.cert-hit{stroke:transparent;stroke-width:2}
.cert-item:hover .cert-hit{stroke:rgba(232,83,28,.55);stroke-dasharray:6 5}
.cert-item:focus-visible .cert-hit,.cert-item.on .cert-hit{stroke:#e8531c;stroke-dasharray:6 5;stroke-width:2.5;fill:rgba(232,83,28,.06)}
.cert-handle{fill:#e8531c;stroke:#fff;stroke-width:3;cursor:nwse-resize}
.cert-side{min-width:0}
.cert-tabs{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:12px}
.cert-tab{border:1px solid var(--line);background:transparent;color:inherit;border-radius:999px;padding:.35rem .85rem;cursor:pointer;font:inherit;min-height:0;box-shadow:0 2px 0 rgba(0,0,0,.12);transition:transform .15s,box-shadow .15s}
.cert-tab:hover{transform:translateY(-1px)}.cert-tab.on{background:var(--primary,#e8531c);color:#fff;border-color:transparent;box-shadow:0 1px 0 rgba(0,0,0,.2) inset,0 3px 6px rgba(0,0,0,.2)}
.cert-pane{display:flex;flex-direction:column;gap:12px}
.cert-picks{display:grid;grid-template-columns:repeat(auto-fill,minmax(112px,1fr));gap:10px}
.cert-pick{display:flex;flex-direction:column;align-items:center;gap:6px;padding:6px;border:2px solid var(--line);border-radius:12px;background:transparent;color:inherit;cursor:pointer;font-size:.78rem;height:auto;min-height:0;line-height:1.2;box-shadow:0 3px 0 rgba(0,0,0,.12);transition:transform .15s,box-shadow .15s}
.cert-pick:hover{transform:translateY(-2px)}.cert-pick.on{border-color:#e8531c;background:rgba(232,83,28,.08)}
.cert-thumb{width:100%;aspect-ratio:1000/707;border-radius:4px;overflow:hidden;background:#fff;pointer-events:none}.cert-thumb svg{display:block;width:100%;height:100%}
.cert-colour{border:0;padding:0;margin:0}.cert-colour legend{font-weight:700;padding:0;margin-bottom:6px}
.cert-chips{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:8px}
.cert-chip{width:2.1rem;height:2.1rem;min-height:0;padding:0;border-radius:50%;border:3px solid transparent;cursor:pointer;box-shadow:inset 0 0 0 2px #fff,0 0 0 1px rgba(0,0,0,.25),0 3px 0 rgba(0,0,0,.18);transition:transform .15s}
.cert-chip:hover{transform:scale(1.12)}.cert-chip.on{box-shadow:inset 0 0 0 2px #fff,0 0 0 3px var(--ink,#222)}
.cert-sigrow{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:8px}
.cert-courses{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}.cert-course-row{display:flex;justify-content:space-between;gap:10px;align-items:center;padding:8px 10px;border:1px solid var(--line);border-radius:10px}
.cert-faq{border:1px solid var(--line);border-radius:10px;padding:8px 12px}.cert-faq summary{cursor:pointer;font-weight:600}.cert-faq p{margin:.5rem 0 0}
.cert-print{max-width:1000px}
@media print{
 @page{size:A4 landscape;margin:0}
 body.printing-cert *{visibility:hidden}
 body.printing-cert .cert-print,body.printing-cert .cert-print *{visibility:visible}
 body.printing-cert .cert-print{position:fixed;left:0;top:0;width:297mm;height:210mm;max-width:none;display:block}
 body.printing-cert .cert-print .cert-fit{width:297mm;height:210mm;max-width:none;box-shadow:none;border-radius:0;aspect-ratio:auto;-webkit-print-color-adjust:exact;print-color-adjust:exact}
}
/* protected video player */
.el-vwrap{margin:10px 0;border-radius:12px;overflow:hidden;background:#000;max-width:100%}
.el-vscreen{position:relative;aspect-ratio:16/9;background:#000}
.el-video-frame{position:absolute;inset:0;width:100%;height:100%;border:0;pointer-events:none}
.el-vshield{position:absolute;inset:0;cursor:pointer;background:transparent}
.el-vcover{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;background:#111;color:#fff;z-index:2}
.el-vcover[hidden],.el-vshield[hidden],.el-vbar[hidden]{display:none}
.el-vbig{width:84px;height:84px;border-radius:50%;border:0;background:#e8531c;color:#fff;font-size:34px;cursor:pointer}
.el-vmsg{margin:0;min-height:1.2em}
.el-vbar{display:flex;align-items:center;gap:10px;padding:8px 12px;background:#1b1b1b;color:#fff}
.el-vbtn{background:transparent;border:0;color:#fff;font-size:18px;cursor:pointer;min-width:34px;min-height:34px}
.el-vseek{flex:1;min-width:0}
.el-vtime{font-size:.85rem;white-space:nowrap;font-variant-numeric:tabular-nums}
.el-vwrap:fullscreen{display:flex;flex-direction:column;border-radius:0}.el-vwrap:fullscreen .el-vscreen{flex:1;aspect-ratio:auto}
.el-vbar .el-vseek{width:100%;flex:1 1 auto}
/* eLearning admin pages */
.el-posts{list-style:none;margin:0;padding:0;display:grid;gap:12px}.el-posts li{border:1px solid var(--line);border-radius:12px;padding:12px 14px;background:var(--surface)}.el-posts li.hidden{opacity:.6}
.el-programmes{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:16px}.el-programme{border:1px solid var(--line);border-radius:14px;padding:14px 16px;background:var(--surface)}
.pg-list{padding-left:1.2rem}.pg-list li{display:flex;gap:6px;align-items:center;margin-bottom:4px}
.inline-bar{display:inline-block;width:90px;vertical-align:middle}
.tag.bad{background:rgba(200,40,40,.15);color:#b3261e}
/* clusters */
.el-clusters{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:14px}
.el-cluster{display:flex;flex-direction:column;gap:6px;border:1px solid var(--line);border-radius:14px;padding:14px 16px;background:var(--surface);color:inherit}
.el-cluster-courses{list-style:none;padding:0;display:flex;flex-wrap:wrap;gap:8px}
.el-pick-list{max-height:220px;overflow:auto;display:grid;gap:4px;margin-top:8px}.el-check{display:flex;gap:6px;align-items:center}
.data-table tr.me td{font-weight:700}
/* install page, dashboard overdue */
.el-installs{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:14px;margin:12px 0}
.el-install{border:1px solid var(--line);border-radius:14px;padding:12px 16px;background:var(--surface)}.el-install.mine{border-color:#e8531c}.el-install ol{padding-left:1.2rem;margin:6px 0}
.dash-overdue{margin:0 0 6px;color:#b3261e}
/* phone fixes: wide tables and menu bars scroll inside themselves instead of widening the page */
.pl-tablewrap, .sm-top, .table-wrap { max-width: 100%; min-width: 0; }
.sm-top { display: block; overflow-x: auto; }
.tag-head { flex-wrap: wrap; gap: 8px; }
main, .page, .content { min-width: 0; }
@media (max-width: 800px) { .tags-layout { grid-template-columns: minmax(0, 1fr); } .pl-tablewrap { max-width: calc(100vw - 2.5rem); } }
.pl-tablewrap, .table-wrap { position: relative; }

/* Paid courses and the Finance page */
.tag.price { background: var(--accent-soft, rgba(217, 119, 6, 0.14)); font-weight: 600; }
.tag.price.free { background: rgba(47, 158, 99, 0.16); }
.el-pay { margin: 1rem 0; padding: 1.25rem; border: 1px solid var(--line, rgba(128, 128, 128, 0.3)); border-radius: 14px; max-width: 34rem; }
.el-pay h3 { margin-top: 0; }
.el-pay-price strong { font-size: 1.75rem; }
.el-commerce fieldset { margin-bottom: 1rem; }
.el-commerce-list { list-style: none; margin: 0.5rem 0 0; padding: 0; }
.el-commerce-list li { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; padding: 0.4rem 0; border-top: 1px solid var(--line, rgba(128, 128, 128, 0.25)); }
.el-commerce .row { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.el-commerce .row .field { flex: 1 1 10rem; min-width: 0; }
.el-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 0.75rem; margin: 1rem 0; }
.el-stat { display: flex; flex-direction: column; gap: 0.15rem; padding: 0.9rem 1rem; border: 1px solid var(--line, rgba(128, 128, 128, 0.3)); border-radius: 12px; }
.el-stat strong { font-size: 1.4rem; }
.el-finance .table-wrap { overflow-x: auto; }

/* Plan And Pricing */
.auth:has(.pl) .auth-card { max-width: 60rem; width: calc(100% - 32px); }
.pl section { margin: 1.25rem 0; }
.pl-prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 0.75rem; margin: 0.75rem 0; }
.pl-price { display: flex; flex-direction: column; gap: 0.2rem; padding: 1rem; border: 1px solid var(--line, rgba(128, 128, 128, 0.3)); border-radius: 14px; }
.pl-price strong { font-size: 1.8rem; }
.pl-price.best { border-color: var(--accent, #d9480f); }
.pl-band { font-weight: 600; margin: 0.5rem 0 0; }
.pl-pack-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 0.75rem; }
.pl-pack { display: flex; flex-direction: column; gap: 0.3rem; padding: 0.9rem 1rem; border: 1px solid var(--line, rgba(128, 128, 128, 0.3)); border-radius: 12px; }
.pl .table-wrap { overflow-x: auto; }

/* Account details: the size of the rest of the app, and long emails wrap instead of running into the next box */
.profile-stats { grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.profile-stats dt { font-size: .8rem; letter-spacing: .04em; }
.profile-stats dd { font-size: 1rem; font-weight: 600; overflow-wrap: anywhere; min-width: 0; }
.profile-stats .stat { min-width: 0; }
.cert-svg:not([data-editable]) .cert-item{cursor:default}.cert-svg:not([data-editable]) .cert-item:hover .cert-hit{stroke:transparent}

.lb-me{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:10px;margin:12px 0}
.lb-me>div{display:flex;flex-direction:column;gap:2px;padding:12px 14px;border:1px solid var(--line);border-radius:14px;background:var(--surface,var(--paper));box-shadow:0 3px 0 rgba(0,0,0,.1)}
.lb-me span{font-size:.8rem;opacity:.75}.lb-me strong{font-size:1.5rem}.lb-me .lb-me-rank{border-color:var(--accent);background:color-mix(in srgb,var(--accent) 10%,var(--paper))}
.lb-filters{display:flex;flex-wrap:wrap;gap:12px;align-items:end;margin:12px 0}.lb-filters .field{min-width:160px;flex:1 1 160px}

.asg-table{width:100%;border-collapse:collapse;margin:12px 0}.asg-table caption{text-align:left;font-weight:700;padding-bottom:6px}.asg-table th,.asg-table td{padding:6px 8px;border-bottom:1px solid var(--line);text-align:left}.asg-table td{white-space:nowrap}
.asg-table input{width:4.5rem}
.asg-row{display:grid;grid-template-columns:1fr 6rem auto;gap:8px;margin-bottom:8px}
.asg-queue{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}.asg-queue li{display:flex;gap:10px;align-items:center;padding:8px 10px;border:1px solid var(--line);border-radius:10px}.asg-queue li .soft{margin-left:auto}
.asg-work{max-height:40vh;overflow:auto;padding:10px 12px;border:1px solid var(--line);border-radius:10px;margin:8px 0}
.asg textarea{width:100%}.asg .bad{color:#b3261e}

/* Toolbars: every control in a bar is the same height and sits on the same line, even when one has a label above it. */
.toolbar select, .toolbar input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), .toolbar .button, .toolbar button, .toolbar a.button { height: 2.4rem; min-height: 2.4rem; box-sizing: border-box; }
.toolbar .field.inline { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; margin: 0; }
.toolbar:has(.field.inline) { align-items: flex-end; }
.cert-selbar .button, .cert-selbar button { height: 2.4rem; min-height: 2.4rem; }

/* Figure tiles on the light pages (Finance, Plan): dark text on the page surface, not the white text made for the dark learner banner. */
.el-stats.plain .el-stat { background: var(--surface); border: 1px solid var(--line); box-shadow: var(--card-shadow); color: var(--ink); }
.el-stats.plain .el-stat strong { color: var(--ink); }
.el-stats.plain .el-stat span, .el-stats.plain .el-stat small { color: var(--ink-soft); }
.sm-tile.stat strong { font-size: 1.6rem; line-height: 1.1; margin-top: .6rem; }
.row.fin-row { align-items: flex-end; } .row.fin-row .field { margin-bottom: 0; }
.fin-tiles { margin: 1rem 0 1.6rem; }
.row.fin-row .button, .row.fin-row button { height: 2.875rem; min-height: 2.875rem; }
.join-qr { display: inline-block; padding: 14px; background: #fff; border-radius: 14px; border: 1px solid var(--line); margin-top: 10px; }
.join-qr svg { display: block; width: 220px; height: 220px; }
.join-poster { text-align: center; padding: 10px 0; } .join-poster .join-qr svg { width: 320px; height: 320px; }
@media print { body * { visibility: hidden; } .join-poster, .join-poster * { visibility: visible; } .join-poster { position: fixed; inset: 0; padding-top: 12vh; background: #fff; color: #000; } .join-poster .soft { color: #000; } }
.imp-map select { min-width: 12.5rem; }

/* The pastoral care leader's name opens the conversation as a pop-up; the email address opens the phone's mail app. */
.leader-name { appearance: none; background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: var(--action); cursor: pointer; text-decoration: none; text-align: left; }
.leader-name:hover, .leader-name:focus-visible { text-decoration: none; filter: brightness(.85); }
.dialog .leader-thread { max-height: 40vh; margin-bottom: .8rem; }

/* eMeeting: space between the cards, and no empty bar above Join With A Link for people who cannot start meetings. */
.mt-start, .mt-section { margin-bottom: 1rem; }
.mt-start .toolbar:empty { display: none; }

/* Phone and tablet menu only (the desktop menu is untouched): it fits the visible screen, scrolls to the very bottom,
   and the items are a little smaller so more of the list shows at once. */
@media (max-width: 1000px) {
  .sidebar { top: 0; bottom: 0; height: auto; max-height: 100dvh; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
    padding: 12px 10px calc(5.5rem + env(safe-area-inset-bottom, 0px)); }
  .side-brand { padding: 0 8px 12px; }
  .side-nav { gap: 1px; }
  .nav-item { min-height: 2.3rem; gap: 11px; padding: 0 11px; font-size: .86rem; }
  .nav-chevron { min-height: 2.3rem; }
  .subpages { margin: 1px 0 5px 20px; padding: 1px 0 1px 11px; gap: 0; }
  .subpage { padding: 6px 10px; font-size: .8rem; }
  .side-foot { padding: 14px 11px 4px; font-size: .75rem; line-height: 1.45; }
}

/* The dimmed area beside the open phone menu: it is a button, and a button does not stretch from inset alone, so give it the whole screen.
   Touching it closes the menu. */
@media (max-width: 1000px) { .scrim, .scrim.show { width: 100%; height: 100%; top: 0; left: 0; right: 0; bottom: 0; } }
.scrim, .scrim:hover, .scrim:active, .scrim:focus { transform: none !important; box-shadow: none !important; }

/* Video buttons: simple drawn icons with a soft raised edge. */
.el-vicon { width: 1.15rem; height: 1.15rem; display: block; margin: auto; }
.el-vbig { display: grid; place-items: center; box-shadow: 0 6px 0 #a8380f, 0 12px 22px rgb(0 0 0 / .35); transition: transform .12s, box-shadow .12s; }
.el-vbig .el-vicon { width: 2.1rem; height: 2.1rem; }
.el-vbig:active { transform: translateY(4px); box-shadow: 0 2px 0 #a8380f, 0 5px 10px rgb(0 0 0 / .3); }
.el-vbtn { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 10px; background: #2c2c2c; box-shadow: 0 2px 0 #000, inset 0 1px 0 rgb(255 255 255 / .12); transition: transform .1s, box-shadow .1s, background-color .15s; }
.el-vbtn:hover { background: #3a3a3a; }
.el-vbtn:active { transform: translateY(2px); box-shadow: 0 0 0 #000, inset 0 1px 0 rgb(255 255 255 / .12); }

/* Quiz in light mode: the card sits on white with a soft edge instead of a heavy shadow. */
:root:not([data-theme="dark"]) .ail-player .ail-stage { box-shadow: 0 6px 24px rgba(0, 0, 0, .08); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ail-player .ail-stage { box-shadow: 0 18px 50px rgba(0, 0, 0, .22); } }

/* Quiz progress: one continuous line, light to dark in the church's brand colour. The grey "rest" slides back to show more of it. */
.ail-track { position: relative; flex: 1; height: .6rem; border-radius: 99px; overflow: hidden;
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 35%, #ffffff), var(--accent) 55%, color-mix(in srgb, var(--accent) 72%, #000000)); }
.ail-track-rest { position: absolute; top: 0; right: 0; bottom: 0; width: 100%; background: var(--q-track, #ececf0); }
.ail-player { --q-track: #ececf0; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ail-player { --q-track: #3a3a40; } }
:root[data-theme="dark"] .ail-player { --q-track: #3a3a40; }

/* The points reveal sits inside the answer window, as a brand-coloured pill. */
.ail-sheet { display: flex; flex-direction: column; align-items: flex-start; }
.ail-sheet .ail-plus { display: inline-flex; align-items: center; gap: .35rem; margin-top: .75rem; padding: .3rem .85rem; border-radius: 99px; font-weight: 700; font-size: .9rem; color: #fff;
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 82%, #ffffff), color-mix(in srgb, var(--accent) 78%, #000000)); box-shadow: 0 2px 0 color-mix(in srgb, var(--accent) 55%, #000000); }
@media (prefers-reduced-motion: no-preference) { .ail-sheet .ail-plus { animation: pop-in .5s var(--spring) .15s backwards; } }

/* Smoother card roll: the card is opaque white now, so the heavy blur behind it is dropped, and the moving cards are promoted to their own layers. */
.ail-stage { backdrop-filter: none; -webkit-backdrop-filter: none; }
.ail-stage.roll-in, .ail-stage.roll-out { will-change: transform, opacity; backface-visibility: hidden; -webkit-backface-visibility: hidden; }

/* ---- Socials ---------------------------------------------------------------------------------------------------------- */
.so-root, .so-story, .so-sheet { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.so-root img, .so-story img { -webkit-user-drag: none; pointer-events: none; }
.so-root { position: relative; display: flex; flex-direction: column; height: calc(100dvh - 8rem); min-height: 30rem; max-width: 30rem; margin: 0 auto; background: #0c0c0e; color: #fff; border-radius: 18px; overflow: hidden; }
.so-root.so-narrow { max-width: 40rem; height: auto; min-height: 0; background: var(--surface); color: var(--ink); padding-bottom: 4.5rem; border: 1px solid var(--line); }
.so-top { position: absolute; z-index: 5; inset: 0 0 auto 0; padding: .9rem .6rem 1.4rem; background: linear-gradient(#000a, #0000); }
.so-tabs { display: flex; justify-content: center; gap: .3rem; margin-top: .25rem; }
.so-tab { background: none; border: 0; color: #ffffffb3; font-weight: 600; padding: .3rem .7rem; border-radius: 99px; min-height: 0; box-shadow: none; }
.so-tab.on { color: #fff; background: #ffffff26; }
.so-tray { display: flex; gap: .7rem; overflow-x: auto; padding: .45rem .2rem .35rem; scrollbar-width: none; }
.so-story-chip { flex: none; display: grid; justify-items: center; gap: .15rem; background: none; border: 0; padding: 0; min-height: 0; box-shadow: none; color: #fff; width: 3.9rem; }
.so-story-chip small { font-size: .7rem; max-width: 3.9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.so-ring { position: relative; display: inline-grid; place-items: center; padding: 2px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--action)); border: 0; min-height: 0; box-shadow: none; }
.so-ring.seen { background: #ffffff59; }
.so-ring.add { background: #ffffff40; }
.so-ring.add i { position: absolute; right: -2px; bottom: -2px; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--action); color: #fff; font-style: normal; font-size: .85rem; line-height: 1.1rem; text-align: center; border: 2px solid #0c0c0e; }
.so-ring.big { padding: 3px; background: var(--line); }
.so-ring.big.live { background: linear-gradient(135deg, var(--accent), var(--action)); }
.so-ring .so-avatar { border: 2px solid #0c0c0e; }
.so-narrow .so-ring .so-avatar { border-color: var(--surface); }
.so-avatar { position: relative; display: inline-grid; place-items: center; width: 3.2rem; height: 3.2rem; border-radius: 50%; overflow: hidden; background: var(--action); color: #fff; font-weight: 700; flex: none; }
.so-avatar.xl { width: 6.5rem; height: 6.5rem; font-size: 1.6rem; }
.so-avatar-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.so-feed { flex: 1; overflow-y: auto; scroll-snap-type: y mandatory; overscroll-behavior: contain; scrollbar-width: none; outline: none; }
.so-feed::-webkit-scrollbar { display: none; }
.so-post { position: relative; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; display: grid; align-items: end; overflow: hidden; background: #111; }
.so-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.so-shade { position: absolute; inset: 40% 0 0 0; background: linear-gradient(#0000, #000b); pointer-events: none; }
.so-cap { position: relative; z-index: 2; padding: 1rem 4.5rem 4.6rem 1rem; display: grid; gap: .5rem; }
.so-cap p { margin: 0; font-size: .98rem; line-height: 1.4; text-shadow: 0 1px 3px #0008; }
.so-cap p.so-big { font-size: 1.5rem; font-weight: 700; line-height: 1.3; }
.so-author { display: flex; align-items: center; gap: .55rem; color: #fff; text-decoration: none; }
.so-author .so-avatar { width: 2.2rem; height: 2.2rem; font-size: .8rem; }
.so-author small { color: #ffffffb3; }
.so-rail { position: absolute; z-index: 3; right: .6rem; bottom: 5.2rem; display: grid; gap: .9rem; justify-items: center; }
.so-rail-av { display: block; margin-bottom: .3rem; }
.so-rail-av .so-avatar { width: 2.9rem; height: 2.9rem; border: 2px solid #fff; }
.so-act { display: grid; justify-items: center; gap: .1rem; background: #00000040; color: #fff; border: 0; border-radius: 50%; width: 3rem; height: 3rem; padding: 0; align-content: center; min-height: 0; box-shadow: none; position: relative; }
.so-act svg { width: 1.6rem; height: 1.6rem; }
.so-act small { position: absolute; bottom: -1.05rem; font-size: .7rem; color: #fff; text-shadow: 0 1px 2px #000a; }
.so-act.liked svg { fill: #ff3b5c; stroke: #ff3b5c; }
.so-act[hidden] { display: none; }
.so-g0 { background: linear-gradient(160deg, #3a1c71, #d76d77); } .so-g1 { background: linear-gradient(160deg, #134e5e, #71b280); } .so-g2 { background: linear-gradient(160deg, #42275a, #734b6d); }
.so-g3 { background: linear-gradient(160deg, #cf4710, #7a1f00); } .so-g4 { background: linear-gradient(160deg, #1d2b64, #f8cdda); } .so-g5 { background: linear-gradient(160deg, #0f2027, #2c5364); }
.so-bottom { position: absolute; z-index: 6; inset: auto 0 0 0; display: flex; justify-content: space-around; align-items: center; padding: .35rem .3rem calc(.35rem + env(safe-area-inset-bottom)); background: #000d; backdrop-filter: blur(8px); }
.so-narrow .so-bottom { position: fixed; max-width: 40rem; left: 50%; transform: translateX(-50%); background: var(--surface); border-top: 1px solid var(--line); backdrop-filter: none; }
.so-nav { display: grid; justify-items: center; gap: .05rem; background: none; border: 0; color: #ffffffb3; min-height: 0; padding: .2rem .6rem; box-shadow: none; }
.so-narrow .so-nav { color: var(--ink-soft); }
.so-nav svg { width: 1.45rem; height: 1.45rem; } .so-nav small { font-size: .68rem; }
.so-nav.on { color: #fff; } .so-narrow .so-nav.on { color: var(--action); }
.so-nav.so-plus svg { width: 2.4rem; height: 1.8rem; padding: .15rem .55rem; background: var(--action); color: #fff; border-radius: 10px; box-sizing: border-box; }
.so-mark { position: absolute; inset: 0; z-index: 4; pointer-events: none; display: grid; grid-template-columns: repeat(3, 1fr); align-content: space-around; overflow: hidden; opacity: .07; transform: rotate(-24deg) scale(1.4); }
.so-mark span { font-weight: 700; font-size: .9rem; white-space: nowrap; text-align: center; padding: 1.6rem 0; }
.so-narrow .so-mark { color: #000; opacity: .045; }
.so-empty { display: grid; place-content: center; justify-items: center; gap: .6rem; text-align: center; height: 100%; padding: 2rem; }
.so-narrow .so-empty { height: auto; padding: 3rem 1.5rem; }
.so-hidden .so-root img, .so-hidden .so-story img { filter: blur(30px); }
.so-open { overflow: hidden; }
.so-story { position: fixed; inset: 0; z-index: 90; background: #000; color: #fff; display: grid; max-width: 30rem; margin: 0 auto; }
.so-story-stage { position: absolute; inset: 0; display: grid; place-items: center; }
.so-story-text { position: relative; margin: 0; padding: 2rem 1.5rem; text-align: center; font-size: 1.6rem; font-weight: 700; line-height: 1.3; width: 100%; height: 100%; display: grid; place-content: center; }
.so-story-text.over { position: absolute; inset: auto 0 0 0; height: auto; font-size: 1.05rem; font-weight: 500; background: linear-gradient(#0000, #000b); padding-bottom: 3rem; }
.so-bars { position: absolute; z-index: 5; top: .6rem; left: .6rem; right: .6rem; display: flex; gap: 4px; }
.so-bar { flex: 1; height: 3px; background: #ffffff55; border-radius: 3px; overflow: hidden; }
.so-bar i { display: block; height: 100%; width: 0; background: #fff; }
.so-bar.full i { width: 100%; }
.so-bar.run i { animation: so-fill 5.5s linear forwards; }
@keyframes so-fill { to { width: 100%; } }
.so-story-head { position: absolute; z-index: 5; top: 1.4rem; left: .8rem; display: flex; align-items: center; gap: .5rem; text-shadow: 0 1px 3px #000a; }
.so-story-head .so-avatar { width: 2.2rem; height: 2.2rem; font-size: .8rem; }
.so-story-x { position: absolute; z-index: 7; top: 1.2rem; right: .6rem; background: #00000066; color: #fff; border: 0; border-radius: 50%; width: 2.4rem; height: 2.4rem; display: grid; place-items: center; padding: 0; min-height: 0; box-shadow: none; }
.so-story-x svg { width: 1.3rem; height: 1.3rem; }
.so-tap { position: absolute; z-index: 4; top: 4rem; bottom: 4rem; width: 40%; background: none; border: 0; min-height: 0; box-shadow: none; transform: none !important; }
.so-tap.left { left: 0; } .so-tap.right { right: 0; }
.so-story-del { position: absolute; z-index: 6; bottom: 1.2rem; left: 50%; transform: translateX(-50%); }
.so-single .so-post { height: 100%; }
.so-single { display: block; }
.so-phead { display: grid; justify-items: center; gap: .5rem; padding: 1.5rem 1rem 1rem; text-align: center; }
.so-phead h1 { margin: 0; font-size: 1.4rem; }
.so-bio { margin: 0; max-width: 28rem; }
.so-stats { display: flex; gap: 2rem; list-style: none; padding: 0; margin: .2rem 0; }
.so-stats li { display: grid; } .so-stats strong { font-size: 1.15rem; } .so-stats small { color: var(--ink-soft); }
.so-actions { justify-content: center; }
.so-facts { list-style: none; padding: 0; margin: .4rem 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.so-facts li { display: grid; background: var(--action-soft); border-radius: 10px; padding: .35rem .7rem; text-align: left; }
.so-facts small { color: var(--ink-soft); font-size: .72rem; }
.so-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; border-top: 1px solid var(--line); }
.so-tile { position: relative; aspect-ratio: 3 / 4; padding: 0; border: 0; border-radius: 0; overflow: hidden; min-height: 0; box-shadow: none; color: #fff; display: grid; place-items: center; text-align: center; transform: none !important; }
.so-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.so-tile span { padding: .5rem; font-weight: 700; font-size: .9rem; overflow: hidden; }
.so-none { grid-column: 1 / -1; text-align: center; padding: 2rem 0; }
.so-wiz { max-width: 36rem; margin: 0 auto; }
.so-dots { display: flex; gap: .3rem; list-style: none; padding: 0; margin: 0 0 1rem; font-size: .72rem; }
.so-dots li { flex: 1; padding-top: .35rem; border-top: 3px solid var(--line); color: var(--ink-soft); }
.so-dots li.past { border-color: var(--accent); } .so-dots li.now { border-color: var(--action); color: var(--ink); font-weight: 700; }
.so-points { padding-left: 1.2rem; display: grid; gap: .4rem; }
.so-warn { background: var(--action-soft); border-radius: 10px; padding: .6rem .8rem; font-weight: 600; }
.so-cam-box { display: grid; place-items: center; background: #111; border-radius: 14px; overflow: hidden; min-height: 8rem; margin: .5rem 0; }
.so-cam, .so-shot { width: 100%; max-height: 18rem; object-fit: cover; transform: scaleX(-1); }
.so-shot { transform: none; }
.so-preview { width: 8rem; height: 8rem; object-fit: cover; border-radius: 50%; display: block; margin: .5rem 0; }
.so-wiz-nav { display: flex; justify-content: space-between; gap: .6rem; margin-top: 1rem; }
.so-check { display: flex; align-items: flex-start; gap: .6rem; padding: .4rem 0; }
.so-check span { display: grid; gap: .1rem; }
.so-comments, .so-people { list-style: none; padding: 0; display: grid; gap: .6rem; margin: 0 0 .8rem; }
.so-people li { display: flex; align-items: center; gap: .6rem; } .so-people li .small { margin-left: auto; }
.so-compose { display: flex; gap: .5rem; } .so-compose input { flex: 1; }
@media print { .so-root, .so-story { display: none !important; } }
@media (max-width: 760px) { .so-root { height: calc(100dvh - 5.5rem); border-radius: 0; max-width: none; } .so-root.so-narrow { height: auto; border-radius: 0; } }
.so-wiz [hidden], .so-root [hidden], .so-sheet [hidden] { display: none !important; }
.task-card-click { cursor: pointer; }
.so-modes { display: flex; gap: .5rem; margin: .4rem 0 .8rem; }
.so-mode { flex: 1; padding: .6rem .5rem; border-radius: 12px; border: 2px solid var(--line); background: var(--surface); font-weight: 600; min-height: 0; }
.so-mode.on { border-color: var(--action); background: var(--action-soft); color: var(--action); }
.so-step { font-weight: 600; margin: .6rem 0 .2rem; }
.so-cam-box:not(:has(.so-cam:not([hidden]), .so-shot:not([hidden]))) { display: none; }
.so-frame { position: relative; width: 300px; max-width: 100%; aspect-ratio: 1; margin: .5rem auto; touch-action: none; }
.so-frame-cv { width: 100%; height: 100%; display: block; cursor: grab; border-radius: 6px; touch-action: none; }
.so-frame-ring { position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 999px rgb(0 0 0 / .45); pointer-events: none; outline: 2px solid #fff; }
.so-frame { overflow: hidden; border-radius: 6px; }
.so-zoom { display: grid; gap: .2rem; max-width: 300px; margin: 0 auto .6rem; font-weight: 600; }

/* Socials on a computer and on profile pages: social-media style cards */
.so-root.so-wide { height: auto; min-height: 0; max-width: 42rem; background: transparent; color: var(--ink); overflow: visible; border-radius: 0; display: block; padding-bottom: 2rem; }
.so-wide-bar { display: flex; justify-content: space-between; gap: .5rem; flex-wrap: wrap; margin-bottom: .8rem; }
.so-chips { display: flex; gap: .4rem; flex-wrap: wrap; }
.so-chip { display: inline-flex; align-items: center; padding: .35rem .85rem; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: .9rem; text-decoration: none; min-height: 0; box-shadow: none; }
.so-chip.on { background: var(--action); color: #fff; border-color: var(--action); }
.so-composer { padding: .8rem 1rem; display: grid; gap: .6rem; margin-bottom: .8rem; }
.so-composer-row { display: flex; align-items: center; gap: .7rem; }
.so-composer-row .so-avatar { width: 2.6rem; height: 2.6rem; font-size: .85rem; }
.so-composer-input { flex: 1; text-align: left; background: var(--paper); border: 1px solid var(--line); border-radius: 99px; padding: .6rem 1rem; color: var(--ink-soft); font-weight: 400; min-height: 0; box-shadow: none; }
.so-composer-tools { display: flex; gap: .4rem; border-top: 1px solid var(--line); padding-top: .5rem; }
.so-composer-tools button { display: inline-flex; gap: .4rem; align-items: center; } .so-composer-tools svg { width: 1.2rem; height: 1.2rem; }
.so-scards { display: flex; gap: .6rem; overflow-x: auto; padding: .1rem 0 .8rem; scrollbar-width: none; }
.so-scard { position: relative; flex: none; width: 7.2rem; height: 11.5rem; border-radius: 14px; overflow: hidden; border: 0; padding: 0; background: #222; color: #fff; display: block; box-shadow: var(--card-shadow); min-height: 0; }
.so-scard-pic, .so-scard-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.so-scard::after { content: ""; position: absolute; inset: 40% 0 0 0; background: linear-gradient(#0000, #000b); }
.so-scard strong { position: absolute; z-index: 2; left: .5rem; right: .5rem; bottom: .5rem; font-size: .82rem; text-align: left; line-height: 1.2; }
.so-scard:not(.add):not(.seen) { outline: 3px solid var(--action); outline-offset: -3px; }
.so-scard.add .so-scard-pic { bottom: 3.4rem; height: auto; }
.so-scard.add::after { display: none; } .so-scard.add { background: var(--surface); color: var(--ink); }
.so-scard-plus { position: absolute; z-index: 3; left: 50%; bottom: 2.4rem; transform: translateX(-50%); width: 2rem; height: 2rem; border-radius: 50%; background: var(--action); color: #fff; font-size: 1.3rem; line-height: 1.9rem; text-align: center; border: 3px solid var(--surface); }
.so-scard.add strong { color: var(--ink); text-align: center; }
.so-fblist { display: grid; gap: .8rem; }
.so-fb { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--card-shadow); overflow: hidden; color: var(--ink); }
.so-fb-head { display: flex; justify-content: space-between; align-items: center; padding: .7rem .9rem; }
.so-fb-who { display: flex; align-items: center; gap: .6rem; color: var(--ink); text-decoration: none; }
.so-fb-who .so-avatar { width: 2.5rem; height: 2.5rem; font-size: .8rem; } .so-fb-who span { display: grid; } .so-fb-who small { color: var(--ink-soft); }
.so-fb-more { background: none; border: 0; color: var(--ink-soft); width: 2.2rem; height: 2.2rem; border-radius: 50%; padding: 0; min-height: 0; box-shadow: none; display: grid; place-items: center; } .so-fb-more svg { width: 1.3rem; height: 1.3rem; }
.so-fb-body { margin: 0; padding: 0 .9rem .7rem; line-height: 1.45; white-space: pre-wrap; } .so-fb-body.big { font-size: 1.35rem; font-weight: 600; padding-bottom: 1rem; }
.so-fb-media { background: #0c0c0e; display: grid; place-items: center; }
.so-fb-media img { display: block; max-width: 100%; max-height: 38rem; width: auto; height: auto; object-fit: contain; }
.so-fb-statsrow { padding: .5rem .9rem; color: var(--ink-soft); font-size: .88rem; }
.so-fb-actions { display: flex; border-top: 1px solid var(--line); }
.so-fb-act { flex: 1; display: inline-flex; justify-content: center; align-items: center; gap: .45rem; background: none; border: 0; border-radius: 0; padding: .6rem; color: var(--ink-soft); font-weight: 600; min-height: 0; box-shadow: none; }
.so-fb-act svg { width: 1.2rem; height: 1.2rem; } .so-fb-act.liked { color: #e0245e; } .so-fb-act.liked svg { fill: #e0245e; }
.so-fb-act[hidden] { display: none; }
.so-nopost { text-align: center; padding: 2rem 1rem; }
.so-more { margin: 1rem auto 0; display: block; }
.so-profile-posts { padding: .8rem; background: var(--paper); border-top: 1px solid var(--line); }
.so-root.so-narrow.so-profile { display: block; }
.so-root.so-wide [hidden] { display: none !important; }
.so-wide-page { display: block; }
@media (min-width: 1100px) { .so-wide-page { display: grid; grid-template-columns: minmax(0, 42rem) 20rem; gap: 1.2rem; justify-content: center; align-items: start; } .so-wide-page .so-root.so-wide { margin: 0; } .so-side-host { position: sticky; top: 1rem; } }
@media (max-width: 1099px) { .so-side-host { max-width: 42rem; margin: 0 auto; } }
.so-side { display: grid; gap: .8rem; }
.so-side-card { padding: .9rem 1rem; } .so-side-card[hidden] { display: none; }
.so-side-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: .5rem; } .so-side-head h2 { font-size: 1.05rem; margin: 0; }
.so-req-list { display: grid; gap: .8rem; margin-bottom: .4rem; } .so-req { display: flex; gap: .6rem; align-items: flex-start; }
.so-req .so-avatar { width: 3rem; height: 3rem; font-size: .9rem; } .so-req-body { display: grid; gap: .2rem; flex: 1; } .so-req-btns { display: flex; gap: .4rem; margin-top: .2rem; }
.so-bd { display: flex; gap: .6rem; align-items: center; margin: 0 0 .5rem; } .so-bd svg { width: 1.8rem; height: 1.8rem; color: var(--action); flex: none; }
.so-bd-next { margin: 0; display: grid; gap: .3rem; }
/* Profile photo must take its own space so the name and bio sit below it */
.so-phead { align-content: start; gap: .7rem; }
.so-phead .so-ring.big { width: calc(6.5rem + 10px); height: calc(6.5rem + 10px); min-height: 0; padding: 3px; box-sizing: border-box; flex: none; margin: 0 0 .3rem; overflow: hidden; }
.so-phead .so-ring.big .so-avatar { width: 100%; height: 100%; }
.so-phead h1, .so-phead .so-bio { position: relative; margin: 0; }
.so-fb-from { margin: 0; padding: 0 1rem .3rem; color: var(--ink-soft); font-size: .9rem; }
.so-photo-btn { all: unset; cursor: pointer; display: inline-grid; border-radius: 50%; flex: none; }
.so-photo-btn:focus-visible { outline: 3px solid var(--action); outline-offset: 2px; }
.so-fb-who a, .so-author a { color: inherit; text-decoration: none; } .so-fb-who a:hover strong, .so-author a:hover strong { text-decoration: underline; }
.so-composer { gap: 0; }
.so-composer-bar { flex: 1; display: flex; align-items: center; gap: .15rem; background: var(--paper); border: 1px solid var(--line); border-radius: 99px; padding: .3rem .5rem .3rem .3rem; min-height: 2.9rem; box-sizing: border-box; }
.so-composer-bar .so-composer-input { border: 0; background: transparent; padding: .4rem .8rem; border-radius: 99px; }
.so-ci { all: unset; cursor: pointer; display: inline-grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; flex: none; }
.so-ci:hover { background: #00000010; } .so-ci:focus-visible { outline: 3px solid var(--action); }
.so-ci svg { width: 1.45rem; height: 1.45rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.so-ci.video { color: #e0314b; } .so-ci.photo { color: #2f9e55; } .so-ci.story { color: #e0457b; }
.so-pm { position: fixed; inset: 0; z-index: 90; background: #000000b3; display: grid; place-items: center; padding: 1rem; }
.so-pm-box { background: var(--surface); border-radius: 14px; width: min(40rem, 100%); max-height: calc(100vh - 2rem); display: grid; grid-template-rows: auto 1fr auto; overflow: hidden; box-shadow: 0 10px 40px #0006; }
.so-pm-head { display: flex; align-items: center; justify-content: center; position: relative; padding: .8rem 3rem; border-bottom: 1px solid var(--line); } .so-pm-head h2 { margin: 0; font-size: 1.1rem; }
.so-pm-x { all: unset; cursor: pointer; position: absolute; right: .7rem; top: 50%; transform: translateY(-50%); width: 2.2rem; height: 2.2rem; display: grid; place-items: center; border-radius: 50%; background: var(--paper); } .so-pm-x svg { width: 1.2rem; height: 1.2rem; }
.so-pm-scroll { overflow-y: auto; padding: 0 .2rem; }
.so-pm-scroll .so-fb { box-shadow: none; border: 0; border-radius: 0; margin: 0; }
.so-pm-scroll .so-fb-media img { max-height: 60vh; object-fit: contain; width: 100%; background: #000; }
.so-pm-comments { padding: .5rem 1rem; margin: 0; } .so-pm-comments li { display: flex; gap: .6rem; align-items: flex-start; } .so-pm-comments .so-avatar { width: 2.2rem; height: 2.2rem; font-size: .75rem; }
.so-pm-c { display: grid; background: var(--paper); border-radius: 14px; padding: .4rem .8rem; } .so-pm-c a { color: inherit; text-decoration: none; }
.so-pm-foot { display: flex; gap: .6rem; align-items: center; padding: .7rem 1rem; border-top: 1px solid var(--line); } .so-pm-foot input { flex: 1; border-radius: 99px; }
.so-pm-foot .so-avatar { width: 2.4rem; height: 2.4rem; font-size: .8rem; }
/* Profile photo: always a full circle */
.so-phead .so-ring.big { display: grid; place-items: center; width: 7.2rem; height: 7.2rem; padding: 3px; border-radius: 50%; aspect-ratio: 1; }
.so-phead .so-ring.big .so-avatar, .so-phead .so-ring.big .so-avatar.xl { width: 6.6rem; height: 6.6rem; min-width: 6.6rem; border-radius: 50%; aspect-ratio: 1; }
.so-fb-textcard { margin: 0 .9rem .8rem; border-radius: 12px; min-height: 12rem; display: grid; place-items: center; padding: 1.5rem; text-align: center; color: #fff; }
.so-fb-textcard p { margin: 0; font-size: 1.6rem; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; white-space: pre-wrap; }
.so-side-empty { margin: 0; font-size: .95rem; }
.so-count-pill { display: inline-flex; align-items: center; padding: .5rem 1.3rem; border-radius: 99px; background: #2b2b2e; color: #fff; font-weight: 700; font-size: 1rem; text-decoration: none; }
a.so-count-pill:hover { background: #3a3a3e; }
.so-phead { justify-items: center; text-align: center; }
.ail-option.order.drag { cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
.ail-option.order.dragging { cursor: grabbing; box-shadow: 0 8px 22px #0003; transform: scale(1.02); position: relative; z-index: 2; background: var(--surface, #fff); }
.ail-grip { margin-left: auto; color: var(--ink-soft, #888); font-size: 1.4rem; line-height: 1; padding-left: .6rem; }
.ail-option.order { padding-right: 1rem; }
.so-msgs { list-style: none; margin: 0; padding: 0; } .so-msgs li + li { border-top: 1px solid var(--line); }
.so-msg { display: flex; align-items: center; gap: .6rem; padding: .55rem 0; color: inherit; text-decoration: none; }
.so-msg .so-avatar { width: 2.6rem; height: 2.6rem; font-size: .8rem; } .so-msg-body { display: grid; flex: 1; min-width: 0; } .so-msg-body small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.so-badge { display: inline-grid; place-items: center; min-width: 1.3rem; height: 1.3rem; padding: 0 .35rem; margin-left: .4rem; border-radius: 99px; background: var(--action); color: #fff; font-size: .75rem; font-weight: 700; }
.so-req + .so-req { border-top: 1px solid var(--line); padding-top: .8rem; }
.so-side-card + .so-side-card { margin-top: 0; }
.lv-attend { margin-top: 1rem; display: grid; gap: .6rem; } .lv-attend-line { margin: 0; font-weight: 600; } .lv-attend-line:empty { display: none; }
.lv-with { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: .9rem 1rem; }
/* Socials home header: photo in the middle, name, bio, connections */
.so-top.so-solid { position: static; background: #0c0c0e; padding: .7rem .6rem .4rem; flex: none; }
.so-root:not(.so-wide):not(.so-narrow) .so-feed { flex: 1; min-height: 0; }
.so-me { display: grid; justify-items: center; gap: .3rem; text-align: center; padding: .2rem 0 .3rem; }
.so-me-ring { width: 4.6rem; height: 4.6rem; padding: 3px; box-sizing: border-box; min-height: 0; position: relative; border-radius: 50%; }
.so-me-ring .so-avatar, .so-me-ring .so-avatar.xl { width: 100%; height: 100%; min-width: 0; aspect-ratio: 1; }
.so-me-plus { position: absolute; right: -2px; bottom: -2px; width: 1.3rem; height: 1.3rem; border-radius: 50%; background: var(--action); color: #fff; font-style: normal; line-height: 1.3rem; font-weight: 700; border: 2px solid #0c0c0e; }
.so-me-name { color: inherit; text-decoration: none; font-size: 1.1rem; } .so-me-bio { margin: 0; max-width: 24rem; font-size: .9rem; opacity: .8; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.so-count-home { background: #ffffff26; color: #fff; padding: .35rem 1.1rem; font-size: .9rem; margin-top: .15rem; }
.so-me-card { padding: .9rem 1rem; margin-bottom: .8rem; } .so-me-card .so-me-plus { border-color: var(--surface); }
.so-me-card .so-count-home { background: #2b2b2e; }
.so-me-card .so-me-ring { width: 5.4rem; height: 5.4rem; }
.so-text { resize: none; }
/* The photo ring is always a true circle, whatever the button styles say */
.so-ring, .so-ring.big, .so-me-ring { border-radius: 50% !important; padding: 3px !important; min-width: 0 !important; min-height: 0 !important; aspect-ratio: 1 / 1; box-sizing: border-box; overflow: hidden; }
.so-ring.add { padding: 2px !important; overflow: visible; }
.so-ring .so-avatar { aspect-ratio: 1 / 1; border-radius: 50%; }
.so-me-ring { width: 4.8rem !important; height: 4.8rem !important; } .so-me-card .so-me-ring { width: 5.6rem !important; height: 5.6rem !important; }
.so-me-ring .so-avatar, .so-me-ring .so-avatar.xl { width: 100% !important; height: 100% !important; }
.so-me-ring { overflow: visible !important; } .so-me-ring .so-avatar { border-radius: 50%; }
/* Stories are 9:16 (phone-shaped). On a computer the story sits in the middle of a dark screen. */
.so-story:not(.so-single) { inset: auto; top: 50%; left: 50%; transform: translate(-50%, -50%); margin: 0; max-width: none; aspect-ratio: 9 / 16; height: min(100dvh, calc(100vw * 16 / 9)); width: auto; box-shadow: 0 0 0 100vmax #000; overflow: hidden; border-radius: 0; }
@media (min-width: 700px) { .so-story:not(.so-single) { border-radius: 14px; } }
.so-story .so-story-back { object-fit: cover; filter: blur(28px) brightness(.6); transform: scale(1.15); }
.so-story .so-story-pic { object-fit: contain; }
.so-profile .so-composer { margin: .8rem .8rem 0; }
.so-fb-more { position: relative; }
.so-fb-more[data-tip]:hover::after, .so-fb-more[data-tip]:focus-visible::after { content: attr(data-tip); position: absolute; top: 110%; right: 0; background: #222; color: #fff; font-size: .8rem; font-weight: 600; padding: .25rem .6rem; border-radius: 6px; white-space: nowrap; z-index: 5; pointer-events: none; }
/* Socials bottom bar: one even row across the page, labels never cut off */
.so-bottom { gap: 0; padding: .3rem .2rem calc(.3rem + env(safe-area-inset-bottom)); }
.so-narrow .so-bottom { left: 0; right: 0; width: auto; max-width: 40rem; margin: 0 auto; transform: none; box-shadow: 0 -4px 16px #0000000d; }
.so-nav { flex: 1 1 0; min-width: 0; align-content: center; justify-items: center; gap: .15rem; min-height: 3.4rem; padding: .25rem .1rem; line-height: 1.1; border-radius: 12px; }
.so-nav small { font-size: .72rem; font-weight: 600; white-space: nowrap; overflow: visible; }
.so-nav.so-plus svg { width: 2.6rem; height: 1.9rem; padding: .2rem .65rem; border-radius: 12px; }
.so-narrow .so-nav.on { background: color-mix(in srgb, var(--action) 10%, transparent); }
.so-composer-input { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
/* The round Back and Up buttons sit at the bottom corners, so the Socials menu sits in the space between them */
@media (max-width: 899px) {
  .so-bottom { padding-left: 4.8rem; padding-right: 4.8rem; }
  .so-nav small { font-size: .66rem; letter-spacing: -.01em; }
  .so-nav.so-plus svg { width: 2.2rem; height: 1.7rem; padding: .2rem .5rem; }
  .so-nav svg { width: 1.35rem; height: 1.35rem; }
}
/* Home photo ring: a plain block with fixed sizes (iPhone Safari squeezes pictures inside buttons into ovals) */
.so-me-ring { display: block !important; position: relative; cursor: pointer; width: 5rem !important; height: 5rem !important; padding: 0 !important; border-radius: 50% !important; overflow: visible !important; background: linear-gradient(135deg, var(--accent), var(--action)); }
.so-me-ring:not(.live) { background: #ffffff40; }
.so-me-ring .so-avatar, .so-me-ring .so-avatar.xl { position: absolute !important; left: 4px; top: 4px; width: calc(5rem - 8px) !important; height: calc(5rem - 8px) !important; border-radius: 50% !important; border: 2px solid #0c0c0e; box-sizing: border-box; }
.so-me-card .so-me-ring { width: 5.8rem !important; height: 5.8rem !important; } .so-me-card .so-me-ring .so-avatar { width: calc(5.8rem - 8px) !important; height: calc(5.8rem - 8px) !important; border-color: var(--surface); }
.so-me-ring:focus-visible { outline: 3px solid var(--action); outline-offset: 3px; }
.so-tray { padding-bottom: .5rem; } .so-story-chip small { display: block; margin-top: .1rem; }

/* Mobile home: the black heading is the first thing in the feed, so it scrolls up and fades away. */
.so-feed > .so-top.so-scrollaway { scroll-snap-align: start; scroll-snap-stop: normal; }

/* Posting bar stays inside the screen on a phone: the prompt shrinks and trims, the three icons stay. */
.so-composer, .so-composer-row { min-width: 0; max-width: 100%; box-sizing: border-box; }
.so-composer-row > .avatar, .so-composer-row > img, .so-composer-row > :first-child:not(.so-composer-bar) { flex: none; }
.so-composer-bar { min-width: 0; overflow: hidden; }
.so-composer-bar .so-composer-input { flex: 1 1 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; }
@media (max-width: 899px) { .so-composer-bar .so-composer-input { padding-left: .6rem; padding-right: .3rem; font-size: .92rem; } .so-ci { width: 2rem; height: 2rem; } }

/* Share sheet: two clear buttons, spaced apart. */
.so-share-choices { display: flex; flex-wrap: wrap; gap: 1rem; margin: .4rem 0 1rem; }
.so-share-choices > button { flex: 1 1 10rem; }
.so-share-who[hidden] { display: none; }

/* Calligraphy fonts for certificates (files are put in web/fonts by get-cert-fonts-cms.sh). */
@font-face { font-family: 'Great Vibes'; src: url('fonts/GreatVibes-Regular.woff2') format('woff2'), url('fonts/GreatVibes-Regular.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'Pinyon Script'; src: url('fonts/PinyonScript-Regular.woff2') format('woff2'), url('fonts/PinyonScript-Regular.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'Alex Brush'; src: url('fonts/AlexBrush-Regular.woff2') format('woff2'), url('fonts/AlexBrush-Regular.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'Allura'; src: url('fonts/Allura-Regular.woff2') format('woff2'), url('fonts/Allura-Regular.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'Italianno'; src: url('fonts/Italianno-Regular.woff2') format('woff2'), url('fonts/Italianno-Regular.ttf') format('truetype'); font-display: swap; }

/* Certificate signatures: draw or upload. */
.cert-sigrow .cert-sigtools { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.cert-sigthumb { height: 2.2rem; max-width: 7rem; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 2px 6px; }
.cert-sigpad-wrap { border: 2px dashed var(--line); border-radius: 12px; background: #fff; }
.cert-sigpad { display: block; width: 100%; height: auto; aspect-ratio: 800 / 260; touch-action: none; cursor: crosshair; }

/* Listen For Scripture (on the Present page) */
.pw-listen .pw-listen-go { width: 100%; min-height: 2.6rem; font-weight: 700; }
.pw-listen-status { margin: .5rem 0 0; font-weight: 700; font-size: 14px; }
.pw-listen-heard { margin: .15rem 0 .4rem; min-height: 1.1rem; font-size: 12px; overflow-wrap: anywhere; }
.pw-listen-mode { border: 0; padding: 0; margin: .4rem 0; }
.pw-listen-mode legend { font-size: 12px; color: var(--pw-mu); padding: 0; }
.pw-listen .field.check { display: flex; align-items: center; gap: .5rem; margin: .2rem 0; }
.pw-listen .field.check input { width: auto; flex: none; }
.pw-listen .field.check label { margin: 0; color: var(--pw-tx); font-size: 14px; }
.pw-listen-list { list-style: none; margin: .6rem 0; padding: 0; display: grid; gap: .3rem; }
.pw-listen-list li { display: grid; grid-template-columns: 1fr auto auto; gap: .5rem; align-items: center; padding: .4rem .5rem; border-radius: 8px; background: #ffffff0d; font-size: 14px; }
.pw-listen-list li.on { background: #2f6fe0; color: #fff; }
.pw-listen-list li.on .soft { color: #ffffffcc; }
.pw-listen-list li.empty { display: block; background: none; padding: .2rem 0; }
.pw-listen-ref { font-weight: 700; }
.pw-listen-parts { display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; margin: .3rem 0; font-size: 13px; }
.pw-listen-parts[hidden] { display: none; }
.pw-listen .pw-listen-note { font-size: 12px; margin: .5rem 0 0; }

/* Connect Presenter for desktop: the banner in a browser and the output screens inside the app */
.pw-desktop { display: grid; gap: .4rem; margin: .6rem 0 0; padding: .7rem .9rem; border: 1px solid var(--line, #d9d9de); border-radius: 12px; background: var(--surface, #fff); }
.pw-desktop-row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.pw-desktop-row strong { margin-right: auto; }
.pw-desktop .field.check { display: flex; align-items: center; gap: .5rem; margin: 0; }
.pw-desktop .field.check input { width: auto; flex: none; }
.pw-desktop-msg { margin: 0; min-height: 1.1rem; }
.pw-out-row { display: grid; grid-template-columns: 1fr; gap: .25rem; margin: .5rem 0; padding-bottom: .5rem; border-bottom: 1px solid #ffffff14; }
.pw-out-row button { display: inline-block; margin-right: .3rem; }
.pw-outputs .toolbar { flex-wrap: wrap; }

/* Microphone level bar (Listen For Scripture) */
.pw-meter { display: grid; grid-template-columns: auto 1fr; gap: .3rem .7rem; align-items: center; margin: .5rem 0; }
.pw-meter-label { font-size: 14px; opacity: .8; }
.pw-meter-bar { height: .7rem; border-radius: .4rem; background: rgba(255,255,255,.14); overflow: hidden; }
.pw-meter-fill { height: 100%; width: 0; border-radius: .4rem; background: #3ecf8e; transition: width .06s linear; }
.pw-meter-fill.hot { background: #ff6b5e; }
.pw-meter-note { grid-column: 1 / -1; margin: 0; min-height: 0; }
.pw-meter-note:empty { display: none; }
.st .st-ameter{flex:1 1 220px;min-width:200px;margin:0}
.st .st-ameter .pw-meter-bar{background:rgba(127,127,127,.22)}

/* The installed Presenter app: a slim bar instead of the CMS menu */
.app-shell.pa .main { width: 100%; }
.pa-bar { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .5rem 1rem; border-bottom: 1px solid rgba(128,128,128,.25); flex-wrap: wrap; }
.pa-brand { display: flex; align-items: center; gap: .6rem; min-width: 0; }
.pa-brand strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pa-tools { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.pa-tools .button, .pa-tools button { padding: .35rem .8rem; font-size: 14px; }
.app-shell.pa .frame { max-width: none; }

/* Presenter: visible resize bars and fold buttons */
@media (min-width: 901px) {
  .pw-split-v { background: rgba(255,255,255,.07); }
  .pw-split-v::after { content: ""; position: absolute; left: 1px; top: calc(50% - 18px); width: 5px; height: 36px; border-radius: 3px; background: rgba(255,255,255,.55); }
  .pw-split-v:hover::after, .pw-split-v.drag::after { background: #fff; }
  .pw-split-h { background: rgba(255,255,255,.07); }
  .pw-split-h::after { content: ""; position: absolute; top: 1px; left: calc(50% - 18px); height: 5px; width: 36px; border-radius: 3px; background: rgba(255,255,255,.55); }
  .pw-split:hover, .pw-split.drag, .pw-split:focus-visible { background: #7d5bd0; opacity: 1; }
  .pw .pw-fold { position: absolute; z-index: 7; top: calc(50% - 3.6rem); width: 1.5rem; height: 1.9rem; padding: 0; border: 0; border-radius: 6px; background: #4a3d70; color: #fff; font-size: 18px; line-height: 1; cursor: pointer; box-shadow: 0 1px 4px #0006; }
  .pw .pw-fold-l { left: calc(var(--pw-l, 16.5rem) - .75rem); } .pw .pw-fold-r { right: calc(var(--pw-r, 21rem) - .75rem); }
  .pw .pw-fold:hover { background: #7d5bd0; }
  .pw .folded > *:not(.pw-split):not(.pw-fold) { display: none; }
}
@media (max-width: 1100px) { .st-canvases { flex-wrap:wrap; } }
@media (max-width: 900px) { .pw .pw-fold { display: none; } }
.pw-sizebar .pw-dragnote { margin-left: auto; font-size: 12px; }

.pw-sizebar .soft, .pw-sizebar .pw-mini { white-space: nowrap; }
.pw-sizebar { min-width: 0; }
.pw-sizebar .pw-dragnote { flex: 1 1 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; text-align: right; }
.pw-sizebar .pw-mini { flex: none; }

/* ---- Presenter Studio ---- */
.st { --st-r: 470px; --st-ink:#1a1b20; --st-mu:#6b6f7b; --st-line:#e3e5ec; --st-blue:#0a84ff; --st-or:#ff9f0a; }
.st-head { display:flex; justify-content:space-between; align-items:flex-start; gap:1rem; flex-wrap:wrap; margin-bottom:.6rem; }
.st-head h1 { margin:0; } .st-head p { margin:.1rem 0 0; } .st-headbtns { display:flex; gap:.5rem; }
.st-steps { display:flex; gap:.5rem; overflow-x:auto; padding:.2rem .1rem .6rem; scrollbar-width:thin; }
.st-step { all:unset; box-sizing:border-box; cursor:pointer; flex:0 0 9.2rem; text-align:left; border:1px solid var(--st-line); border-radius:16px; background:#fff; padding:.55rem .65rem; cursor:pointer; display:flex; flex-direction:column; gap:.1rem; font:inherit; color:var(--st-ink); }
.st-step:focus-visible, .st-tab:focus-visible, .st-chip:focus-visible, .st-switch:focus-visible { outline:2px solid var(--st-blue); outline-offset:2px; }
.st-step:hover { border-color:#c9ccd8; } .st-step.on { background:#1c1c20; color:#fff; border-color:#1c1c20; }
.st-stepno { font-size:11px; letter-spacing:.04em; color:var(--st-mu); text-align:right; } .st-step.on .st-stepno { color:#a9acb8; }
.st-step b { font-size:15px; } .st-step small { font-size:11px; color:var(--st-mu); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; } .st-step.on small { color:#c4c7d2; }
.st-badge { align-self:flex-start; margin-top:.3rem; font-size:11px; font-weight:700; padding:.05rem .4rem; border-radius:8px; letter-spacing:.04em; text-transform:uppercase; }
.st-badge.on-air { background:#ffe3e3; color:#c62828; }
.st-badge.live { background:#dff1ff; color:#0a64e8; } .st-badge.plan { background:#eceef3; color:#6b6f7b; }
.st-body { display:grid; grid-template-columns:minmax(0,1fr) 8px var(--st-r); gap:.4rem; align-items:start; height:calc(100vh - 15rem); min-height:34rem; }
.st-left { container-type:inline-size; overflow-y:auto; overflow-x:hidden; height:100%; background:#fff; border:1px solid var(--st-line); border-radius:22px; padding:1rem 1.1rem 2rem; scrollbar-width:thin; }
.st-split { align-self:stretch; border-radius:4px; cursor:col-resize; background:#d5d8e2; width:4px; margin:0 2px; touch-action:none; } .st-split:hover, .st-split.drag, .st-split:focus-visible { background:var(--st-blue); }
.st-live { height:100%; overflow:hidden; display:grid; grid-template-columns:minmax(0,1fr) 41%; grid-template-rows:repeat(3,auto) 1fr; column-gap:.7rem; align-content:start; }
.st-cell { grid-column:1; } .st-lbl { font-size:11px; letter-spacing:.05em; text-transform:uppercase; color:var(--st-mu); margin:.2rem 0 .25rem; }
.st-prev.pr-preview { margin:0 0 .3rem; width:100%; } .st-prev .scr, .st-tallprev .scr { position:absolute; inset:0; }
.st-tall { grid-column:2; grid-row:1 / span 2; display:flex; flex-direction:column; min-height:0; }
.st-tallprev { position:relative; width:100%; aspect-ratio:9 / 16; border:3px solid #16161a; border-radius:20px; overflow:hidden; background:#000;  }
.st-note { grid-column:1 / -1; font-size:12px; color:var(--st-mu); margin:.4rem 0; }
.st-tabs { display:flex; gap:.3rem; margin:0 0 .4rem; } .st-tab { all:unset; box-sizing:border-box; border:0; border-radius:14px; background:#eef0f4; padding:.25rem .7rem; font:600 12px inherit; cursor:pointer; color:var(--st-ink); } .st-tab.on { background:#2a2a30; color:#fff; } .st-tab, .st-chip { line-height:1.2; }
.st-title { display:flex; align-items:center; gap:.6rem; } .st-title h2 { margin:0; } .st-num { width:1.7rem; height:1.7rem; border-radius:50%; background:var(--st-blue); color:#fff; display:inline-flex; align-items:center; justify-content:center; font-weight:700; }
.st-layerrowwrap { display:flex; flex-direction:column; gap:.7rem; margin:.6rem 0; }
.st-layerlist { display:flex; flex-wrap:wrap; gap:.4rem; align-items:center; }
.st-layerrow { display:flex; gap:.7rem; justify-content:space-between; align-items:center; padding:.5rem .65rem; border:1px solid var(--st-line); border-radius:12px; cursor:pointer; font-size:14px; } .st-layerrow.on { background:#eaf3ff; border-color:#b7d8ff; }
.st-switch { all:unset; box-sizing:border-box; display:inline-block; flex:0 0 auto; width:2.2rem; height:1.2rem; border-radius:.7rem; border:0; background:#c9ccd6; position:relative; cursor:pointer; padding:0; } .st-switch::after { content:''; position:absolute; top:.12rem; left:.12rem; width:.96rem; height:.96rem; border-radius:50%; background:#fff; transition:left .12s; } .st-switch.on { background:var(--st-blue); } .st-switch.on::after { left:1.12rem; }
.st-canvases { display:flex; gap:1rem; align-items:flex-start; flex:1; min-width:0; flex-wrap:nowrap; }
.st-canvases, .st-cwrap { --ch: clamp(8rem, calc((100cqw - 6rem) / 2.45), 21rem); }
.st-cwrap { flex:0 0 auto; }
.st-canvas { position:relative; height:var(--ch); background:#000; border-radius:10px; overflow:hidden; border:1px solid #16161a; touch-action:none; user-select:none; }
.st-canvas.wide { aspect-ratio:16 / 9; } .st-canvas.tall { aspect-ratio:9 / 16; border-radius:18px; border:3px solid #16161a; }
.st-canvas > .scr { position:absolute; inset:0; pointer-events:none; }
.st-box { position:absolute; border:1.5px dashed rgba(255,255,255,.75); border-radius:3px; cursor:move; box-sizing:border-box; outline:none; transform-origin:center; }
.st-box.sel { z-index:5; border:2px solid var(--st-blue); background:rgba(10,132,255,.14); } .st-box:focus-visible { box-shadow:0 0 0 2px #fff, 0 0 0 4px var(--st-blue); }
.st-box.off { border-color:rgba(255,255,255,.3); opacity:.55; } .st-box.locked { cursor:not-allowed; border-style:solid; border-color:var(--st-or); }
.st-boxname { position:absolute; left:2px; top:2px; font-size:11px; background:rgba(0,0,0,.6); color:#fff; padding:0 .3rem; border-radius:3px; pointer-events:none; white-space:nowrap; }
.st-hd { display:none; position:absolute; width:.7rem; height:.7rem; background:#fff; border:2px solid var(--st-blue); border-radius:2px; } .st-box.sel:not(.locked) .st-hd { display:block; }
.st-hd.nw { left:-.4rem; top:-.4rem; cursor:nwse-resize; } .st-hd.ne { right:-.4rem; top:-.4rem; cursor:nesw-resize; } .st-hd.sw { left:-.4rem; bottom:-.4rem; cursor:nesw-resize; } .st-hd.se { right:-.4rem; bottom:-.4rem; cursor:nwse-resize; }
.st-props { border:2px solid var(--st-blue); border-radius:16px; padding:.7rem .9rem; margin-top:.6rem; }
.st-prophead { display:flex; justify-content:space-between; align-items:center; gap:.5rem; flex-wrap:wrap; margin-bottom:.4rem; } .st-propbtns { display:flex; gap:.35rem; flex-wrap:wrap; }
.st-propgrid { display:grid; grid-template-columns:repeat(auto-fit,minmax(13rem,1fr)); gap:.4rem 1.2rem; }
.st-sl { display:grid; grid-template-columns:4.4rem 1fr 3.4rem; align-items:center; gap:.5rem; font-size:13px; margin:.15rem 0; } .st-sl output { text-align:right; font:11px var(--izi-mono); color:var(--st-mu); }
.st-chips { display:flex; gap:.3rem; flex-wrap:wrap; } .st-chip { all:unset; box-sizing:border-box; border:0; border-radius:12px; background:#eef0f4; padding:.2rem .6rem; font:600 12px inherit; cursor:pointer; color:var(--st-ink); } .st-chip.on { background:var(--st-blue); color:#fff; }
.st-addrrow { display:flex; justify-content:space-between; align-items:center; gap:1rem; padding:.55rem 0; border-top:1px solid var(--st-line); }
@media (max-width: 1100px) { .st-canvases { flex-wrap:wrap; } }
@media (max-width: 900px) { .st-body { display:block; height:auto; } .st-left { height:auto; overflow:visible; } .st-split { display:none; } .st-live { margin-top:.8rem; } }
.st-inline { grid-column:auto; margin:0 .3rem; }

/* ---- Ìzí Presenter: Library ---- */
.st-lib { margin-top:.4rem; } .st-input { font:inherit; padding:.45rem .7rem; border:1px solid var(--st-line); border-radius:12px; background:#fff; color:var(--st-ink); max-width:100%; }
.st-songs { display:grid; grid-template-columns:minmax(11rem,15rem) minmax(0,1fr); gap:1rem; align-items:start; } .st-songcol { display:flex; flex-direction:column; gap:.4rem; }
.st-songlist { display:flex; flex-direction:column; gap:.25rem; max-height:26rem; overflow-y:auto; }
.st-song { all:unset; box-sizing:border-box; cursor:pointer; display:flex; flex-direction:column; padding:.45rem .65rem; border-radius:10px; border:1px solid transparent; } .st-song:hover { background:#f2f4f8; } .st-song.on { background:#eaf3ff; border-color:#b7d8ff; } .st-song:focus-visible { outline:2px solid var(--st-blue); }
.st-song small { color:var(--st-mu); font-size:11px; }
.st-songhead { display:flex; justify-content:space-between; gap:.6rem; flex-wrap:wrap; align-items:flex-start; margin-bottom:.6rem; } .st-songhead h3 { margin:0; } .st-songbtns { display:flex; gap:.4rem; flex-wrap:wrap; align-items:center; }
.st-cards { display:grid; grid-template-columns:repeat(auto-fill,minmax(10.5rem,1fr)); gap:.6rem; }
.st-card { all:unset; box-sizing:border-box; cursor:pointer; display:flex; flex-direction:column; gap:.35rem; padding:.45rem; border:1px solid var(--st-line); border-radius:14px; background:#fff; font-size:12px; } .st-card:hover:not(:disabled) { border-color:var(--st-blue); } .st-card:focus-visible { outline:2px solid var(--st-blue); } .st-card.wide { cursor:default; max-width:36rem; }
.st-cardtext { display:block; background:#15121f; color:#fff; border-radius:9px; padding:.6rem; min-height:4.2rem; max-height:7rem; overflow:hidden; font-weight:600; white-space:pre-line; line-height:1.25; }
.st-note-card { border:1px solid var(--st-line); border-radius:16px; padding:.9rem 1.1rem; display:flex; flex-direction:column; gap:.5rem; align-items:flex-start; max-width:40rem; } .st-note-card p { margin:0; }
.st-biblerow { display:flex; gap:.5rem; flex-wrap:wrap; margin-bottom:.4rem; } .st-bibleout { display:flex; flex-direction:column; gap:.6rem; align-items:flex-start; margin-top:.6rem; }
.st-bank { display:flex; flex-wrap:wrap; gap:.6rem; margin:.3rem 0 1rem; align-items:flex-start; }
.st-tilewrap { position:relative; } .st-tile { all:unset; box-sizing:border-box; cursor:pointer; display:flex; flex-direction:column; gap:.2rem; width:6.4rem; font-size:11px; } .st-tile:disabled { cursor:default; } .st-tile:focus-visible .st-tileimg { outline:2px solid var(--st-blue); outline-offset:2px; }
.st-tileimg { position:relative; overflow:hidden; display:flex; align-items:center; justify-content:center; height:3.6rem; border-radius:10px; border:2px solid transparent; color:#fff; font-size:18px; background-position:center; } .st-tile.on .st-tileimg { border-color:var(--st-blue); box-shadow:0 0 0 2px #fff inset; }
.st-tiledel { all:unset; cursor:pointer; position:absolute; top:.15rem; right:.15rem; width:1.2rem; height:1.2rem; border-radius:50%; background:rgba(0,0,0,.65); color:#fff; text-align:center; line-height:1.2rem; font-size:14px; } .st-tiledel:focus-visible { outline:2px solid #fff; }
.st-add { display:flex; align-items:center; justify-content:center; width:6.4rem; height:3.6rem; border:2px dashed #cbd0da; border-radius:10px; color:var(--st-mu); font-size:12px; cursor:pointer; } .st-add:focus-within { outline:2px solid var(--st-blue); } .st-hide { position:absolute; width:1px; height:1px; opacity:0; }
.st-empty { margin:0; align-self:center; }
@media (max-width: 700px) { .st-songs { grid-template-columns:1fr; } }
.st-pair { display:grid; grid-template-columns:repeat(auto-fit,minmax(16rem,1fr)); gap:.8rem; margin:1rem 0; align-items:start; }
.st-steptop { display:flex; justify-content:space-between; align-items:center; } .st-stepic { display:inline-flex; width:1.7rem; height:1.7rem; border-radius:50%; background:#f0f2f6; align-items:center; justify-content:center; font-size:14px; } .st-step.on .st-stepic { background:#34343b; }
.st-stepno { flex:1; }
.st-dark { --pw-bg:#1c1c1e; --pw-panel:#2a2a2d; --pw-bar:#3c3b3b; --pw-line:#0d0d0e; --pw-tx:#e8e8ea; --pw-mu:#a3a3ab; --pw-live:#e5484d; background:#2a2a2d; color:#e8e8ea; border-radius:18px; padding:1rem 1.1rem; max-width:34rem; } .st-dark select, .st-dark input[type=text] { width:100%; }

/* guides: a faint safe margin always, and pink lines while a box is dragged */
.st-canvas::after { content:''; position:absolute; inset:5%; border:1px dashed rgba(255,255,255,.28); pointer-events:none; z-index:1; }
.st-guide { position:absolute; background:#ff2d92; pointer-events:none; z-index:6; }
.st-guide.v { top:0; bottom:0; width:1px; margin-left:-.5px; }
.st-guide.h { left:0; right:0; height:1px; margin-top:-.5px; }

/* Ìzí Presenter Studio: the text engine */
.st-fxbar { position:sticky; top:0; z-index:5; display:flex; flex-wrap:wrap; gap:.5rem; align-items:center; padding:.5rem 0 .7rem; background:var(--st-bg, var(--bg, #fff)); }
.st-txgrid { display:grid; grid-template-columns:minmax(16rem,22rem) minmax(0,1fr); gap:1.2rem; align-items:start; }
@media (max-width:760px) { .st-txgrid { grid-template-columns:1fr; } }
.st-txleft { display:flex; flex-direction:column; gap:.6rem; }
.st-txleft textarea, .st-txleft input[type=text], .st-txleft select { width:100%; box-sizing:border-box; }
.st-txright { position:sticky; top:3.6rem; }
.st-fxprev { position:relative; width:100%; aspect-ratio:16/9; border-radius:12px; overflow:hidden; border:1px solid #16161a; container-type:size; }
.st-fxprev .scr { position:absolute; inset:0; }
.st-fxprev.mini { border-radius:8px; }
.st-presets { display:flex; flex-wrap:wrap; gap:.35rem; }
.st-fxctls { display:flex; flex-direction:column; gap:.4rem; }
.st-fxgroup { border:1px solid var(--st-line, #d7dae1); border-radius:12px; padding:.3rem .7rem; }
.st-fxgroup summary, .st-fxhead { cursor:pointer; font-weight:700; padding:.3rem 0; }
.st-fxbody { display:flex; flex-direction:column; gap:.4rem; padding:.2rem 0 .5rem; }
.st-ctl { display:grid; grid-template-columns:6.5rem minmax(0,1fr) 2.6rem; gap:.5rem; align-items:center; }
.st-ctl output { font-variant-numeric:tabular-nums; text-align:right; }
.st-chks { display:flex; gap:1rem; } .st-chk { display:flex; gap:.4rem; align-items:center; }
.st-cards { display:grid; grid-template-columns:repeat(auto-fill,minmax(14rem,1fr)); gap:.8rem; }
.st-card { display:flex; flex-direction:column; gap:.4rem; border:1px solid var(--st-line, #d7dae1); border-radius:14px; padding:.6rem; }
.st-cardact { display:flex; flex-wrap:wrap; gap:.3rem; }

/* live captions (Ìzí Presenter): the caption look is drawn by cms-caption-render.js */
.scr-caption { position:absolute; display:flex; align-items:center; justify-content:center; text-align:center; pointer-events:none; line-height:1.15; container-type:normal; }
.cap { display:flex; justify-content:center; max-width:100%; }
.cap-line { display:inline-block; text-align:center; max-width:100%; }
.cap-word { display:inline-block; }
.cap-in-pop { animation:cap-pop calc(.28s) ease-out both; }
.cap-in-bounce { animation:cap-bounce .45s ease-out both; }
.cap-in-slide { animation:cap-slide .3s ease-out both; }
.cap-in-fade { animation:cap-fade .3s ease-out both; }
.cap-in-drop { animation:cap-drop .35s ease-out both; }
.cap-in-zoom { animation:cap-zoom .3s ease-out both; }
.cap-in-typewriter .cap-line { animation:cap-type .6s steps(14) both; }
@keyframes cap-pop { from { transform:scale(calc(1 - .35*var(--m,1))); opacity:0; } 70% { transform:scale(calc(1 + .06*var(--m,1))); opacity:1; } to { transform:scale(1); opacity:1; } }
@keyframes cap-bounce { 0% { transform:translateY(calc(.5em*var(--m,1))) scale(.8); opacity:0; } 55% { transform:translateY(calc(-.12em*var(--m,1))) scale(1.05); opacity:1; } 80% { transform:translateY(calc(.03em*var(--m,1))); } to { transform:none; opacity:1; } }
@keyframes cap-slide { from { transform:translateY(calc(.5em*var(--m,1))); opacity:0; } to { transform:none; opacity:1; } }
@keyframes cap-fade { from { opacity:0; } to { opacity:1; } }
@keyframes cap-drop { from { transform:translateY(calc(-.7em*var(--m,1))); opacity:0; } to { transform:none; opacity:1; } }
@keyframes cap-zoom { from { transform:scale(calc(1 + .35*var(--m,1))); opacity:0; } to { transform:scale(1); opacity:1; } }
@keyframes cap-type { from { clip-path:inset(0 100% 0 0); } to { clip-path:inset(0 0 0 0); } }
@media (prefers-reduced-motion: reduce) { .cap, .cap-line { animation:none !important; } }

/* Captions step */
.st-capbar { display:flex; flex-wrap:wrap; gap:.5rem; align-items:center; margin:.4rem 0 .8rem; }
.st-capctl { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:.6rem 1rem; margin:.4rem 0 1rem; }
.st-capgroup { margin:.8rem 0 .3rem; font-weight:700; }
.st-capgrid { display:grid; grid-template-columns:repeat(auto-fill,minmax(200px,1fr)); gap:.7rem; }
.st-captile { text-align:left; border:2px solid transparent; border-radius:14px; padding:.35rem; background:#f1f2f6; cursor:pointer; font:inherit; color:inherit; }
.st-captile.on { border-color:#0a64e8; background:#e8f1ff; }
.st-captile b { display:block; margin:.35rem .2rem .1rem; font-size:14px; }
.st-capprev { position:relative; aspect-ratio:16/9; border-radius:10px; overflow:hidden; container-type:size; background:linear-gradient(135deg,#27315c,#6b3f7a 55%,#d9774c); }
.st-capprev .st-capin { position:absolute; left:0; right:0; display:flex; justify-content:center; transform:translateY(-50%); }
.st-capnote { color:#6b6f7b; font-size:14px; }
.st-capctl { grid-template-columns:1fr; }
.st-capctl label { display:flex; align-items:center; gap:.7rem; }
.st-capctl label > span { flex:0 0 9rem; }
.st-capctl input[type="text"], .st-capctl select { flex:1 1 auto; min-width:0; }
.st-capctl input[type="range"] { flex:1 1 auto; }
.st-capctl output { flex:0 0 7rem; color:#6b6f7b; font-size:14px; }
.st-capprev { display:block; width:100%; }
.st-captile { display:flex !important; flex-direction:column; align-items:stretch; height:auto; min-height:0; }
.st-captile b { margin:.4rem .25rem .15rem; white-space:normal; text-align:left; }
.st-capprev { aspect-ratio:16/9; min-height:60px; }
.st-capctl .button { white-space:nowrap; flex:0 0 auto; }
.st-sep { border:0; border-top:1px solid #e3e5ec; margin:1.6rem 0 1.2rem; }

/* Studio workspace: sub-tabs under one title, with the caption preview on wide and vertical screens */
.st-subtabs { display:flex; gap:.4rem; margin:.5rem 0 .9rem; position:sticky; top:0; z-index:4; background:#fff; padding:.35rem 0; border-bottom:1px solid #e3e5ec; }
.st-subtab { border:0; background:#f1f2f6; border-radius:999px; padding:.4rem 1rem; font:inherit; font-weight:600; cursor:pointer; color:inherit; }
.st-subtab.on { background:#111218; color:#fff; }
.st-cappreview { display:flex; gap:1rem; align-items:flex-start; margin:.4rem 0 1rem; }
.st-cappreview .st-fxprev { flex:1 1 auto; max-width:520px; }
.st-cappreview .st-fxprev.tall { flex:0 0 auto; width:150px; max-width:150px; aspect-ratio:9/16; }
.st-sep { display:none; }

/* Stage step */
.st-stagegrid { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:1.4rem; align-items:start; }
.st-stagerow { margin:0 0 1.1rem; }
.st-stagectl { display:flex; flex-direction:column; gap:.5rem; margin-top:.3rem; }
.st-stageparts { display:grid; grid-template-columns:1fr 1fr; gap:.4rem .8rem; }
@media (max-width: 1100px) { .st-stagegrid { grid-template-columns:1fr; } }
.st-strgrid { display:flex; flex-wrap:wrap; gap:1rem; align-items:flex-start; margin:.8rem 0; }
.st-strcard { display:flex; flex-direction:column; gap:.6rem; width:15rem; }
.st-strcard .st-fxprev.tall { aspect-ratio:9/16; width:8.4rem; }
.st-strinfo { display:flex; flex-direction:column; gap:.25rem; font-size:14px; }
.st-strbtns { display:flex; gap:.5rem; margin-top:.3rem; }
.st-strhow { margin-top:1.2rem; max-width:44rem; } .st-strhow h3 { margin:0 0 .3rem; font-size:15px; } .st-strhow ol { margin:.3rem 0 .6rem 1.2rem; padding:0; } .st-strhow li { margin:.2rem 0; }
.st-audstrips { display:flex; flex-direction:column; gap:.35rem; margin:.8rem 0; max-width:46rem; }
.st-audstrip { display:grid; grid-template-columns:1.6rem 8rem 1fr 7rem 3rem auto; align-items:center; gap:.6rem; padding:.3rem .5rem; border-radius:8px; background:var(--st-card, rgba(0,0,0,.04)); }
.st-audstrip.master { grid-template-columns:1.6rem 8rem 1fr; margin-top:.4rem; border-top:1px solid var(--st-line); border-radius:0; }
.st-audnum { font-size:12px; opacity:.6; text-align:center; }
.st-audstrip input[type=text] { width:100%; min-width:0; }
.st-audbar { position:relative; height:.7rem; border-radius:99px; background:rgba(0,0,0,.18); overflow:hidden; }
.st-audfill { position:absolute; left:0; top:0; bottom:0; width:0; background:linear-gradient(90deg,#2fb86a 0 70%,#e8b82e 70% 90%,#e5484d 90%); background-size:100vw 100%; }
.st-audpeak { position:absolute; top:0; bottom:0; width:2px; background:#fff; left:0; }
.st-audbar.hot { box-shadow:0 0 0 2px #e5484d; }
.st-audmon { display:flex; flex-wrap:wrap; align-items:center; gap:1rem; margin-top:.6rem; }
.st-sub { margin:1.2rem 0 .4rem; font-size:15px; }
.st-guests, .st-qlist { display:flex; flex-direction:column; gap:.35rem; max-width:46rem; }
.st-guestrow { display:flex; align-items:center; gap:.7rem; padding:.4rem .6rem; border-radius:8px; background:var(--st-card, rgba(0,0,0,.04)); } .st-guestrow b { flex:1; }
.st-qrow { display:flex; align-items:center; justify-content:space-between; gap:.8rem; padding:.5rem .6rem; border-radius:8px; background:var(--st-card, rgba(0,0,0,.04)); }
.st-qrow.done .st-qtext { opacity:.5; text-decoration:line-through; } .st-qtext { display:flex; flex-direction:column; min-width:0; } .st-qbtns { display:flex; gap:.3rem; flex-wrap:wrap; justify-content:flex-end; }
.rm { display:flex; flex-direction:column; gap:1rem; max-width:60rem; }
.rm-now { display:grid; grid-template-columns:1fr 1fr; gap:1rem; } .rm-card { display:flex; flex-direction:column; gap:.4rem; padding:1rem; border-radius:14px; background:#10141f; color:#fff; min-height:9rem; } .rm-card.next { opacity:.7; } .rm-text { white-space:pre-line; font-size:20px; line-height:1.35; flex:1; } .rm-card small { opacity:.7; }
.rm-go { display:grid; grid-template-columns:1fr 2fr; gap:1rem; } .rm-big { all:unset; box-sizing:border-box; cursor:pointer; text-align:center; font-size:26px; font-weight:700; min-height:7rem; display:grid; place-items:center; border-radius:18px; background:#2a3042; color:#fff; touch-action:manipulation; } .rm-big.primary { background:#e0662f; } .rm-big:disabled { opacity:.35; cursor:default; } .rm-big:focus-visible { outline:3px solid #fff; outline-offset:2px; }
.rm-quick { display:flex; flex-wrap:wrap; gap:.6rem; align-items:center; } .rm-quick input { flex:1 1 14rem; min-height:3rem; font-size:15px; }
.rm-btn { all:unset; box-sizing:border-box; cursor:pointer; min-height:3.2rem; padding:0 1.2rem; display:grid; place-items:center; border-radius:12px; background:#e9e7e3; color:#1b1b1d; font-size:15px; font-weight:600; touch-action:manipulation; } .rm-btn.on { background:#1b1b1d; color:#fff; } .rm-btn:focus-visible, .rm-item:focus-visible, .rm-slide:focus-visible { outline:3px solid #e0662f; outline-offset:2px; }
.rm-items { display:flex; flex-direction:column; gap:.4rem; } .rm-item { all:unset; box-sizing:border-box; cursor:pointer; padding:.9rem 1rem; border-radius:12px; background:#f1efeb; font-size:18px; touch-action:manipulation; } .rm-item.on { background:#1b1b1d; color:#fff; } .rm-item:disabled { opacity:.4; }
.rm-slides { display:grid; grid-template-columns:repeat(auto-fill,minmax(13rem,1fr)); gap:.6rem; } .rm-slide { all:unset; box-sizing:border-box; cursor:pointer; display:flex; flex-direction:column; gap:.2rem; padding:.7rem .8rem; border-radius:12px; background:#f1efeb; touch-action:manipulation; } .rm-slide span { opacity:.7; font-size:14px; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; } .rm-slide.live { outline:3px solid #e0662f; }
@media (max-width:640px) { .rm-now { grid-template-columns:1fr; } }

/* ---- Ìzí brand layer (shared by Ìzí Studio, Ìzí Presenter, Ìzí Meeting). Own colours; Connect CMS logo colours never reach here. ---- */
.st { --izi-bg:#F8F9FB; --izi-card:#fff; --izi-panel:#F4F4F6; --izi-line:rgb(0 0 0 / .08); --izi-ink:#121217; --izi-mu:#6E6E75; --izi-blue:#0A84FF; --izi-orange:#FF9F0A; --izi-red:#FF453A; --izi-green:#30D158; --izi-purple:#AF52DE; --izi-dark:#121214; --izi-shadow:0 1px 2px rgb(20 20 40 / .05), 0 8px 24px rgb(20 20 40 / .06);
  --izi-font:-apple-system,BlinkMacSystemFont,"SF Pro",system-ui,sans-serif; --izi-mono:"SF Mono",ui-monospace,Menlo,monospace;
  --st-ink:var(--izi-ink); --st-mu:var(--izi-mu); --st-line:var(--izi-line); --st-blue:var(--izi-blue); --st-or:var(--izi-orange);
  font-family:var(--izi-font); color:var(--izi-ink); background:var(--izi-bg); border-radius:26px; padding:1rem 1rem 1.2rem; }
.st[data-izi="dark"] { --izi-bg:#0A0A0D; --izi-card:#1C1C20; --izi-panel:#292A2E; --izi-line:rgb(255 255 255 / .10); --izi-ink:#F5F5F7; --izi-mu:#9E9EA8; --izi-dark:#3D3D45; --izi-shadow:0 1px 2px rgb(0 0 0 / .5), 0 8px 24px rgb(0 0 0 / .4); color-scheme:dark; }
.st h1, .st h2, .st h3 { font-family:var(--izi-font); letter-spacing:-.02em; color:var(--izi-ink); }
.st-brand { display:flex; align-items:center; gap:.7rem; }
.st-brand h1 { font-size:18px; margin:0; line-height:1.1; }
.st-mark { width:2.5rem; height:2.5rem; border-radius:12px; background:linear-gradient(145deg,#2f6bf5,#7b4cf0); color:#fff; font-weight:700; font-size:20px; display:inline-flex; align-items:center; justify-content:center; box-shadow:0 4px 12px rgb(47 107 245 / .35); }
.st-tag { display:block; font:600 10px var(--izi-mono); letter-spacing:.06em; color:var(--izi-mu); }
.st-ready { font:600 10px var(--izi-mono); color:var(--izi-blue); background:color-mix(in srgb,var(--izi-blue) 12%,transparent); border-radius:999px; padding:.2rem .6rem; letter-spacing:.06em; text-transform:uppercase; }
.st-head { align-items:center; }
.st-round { all:unset; box-sizing:border-box; width:2.5rem; height:2.5rem; border-radius:50%; background:var(--izi-card); border:1px solid var(--izi-line); display:inline-flex; align-items:center; justify-content:center; cursor:pointer; font-size:18px; color:var(--izi-ink); box-shadow:var(--izi-shadow); transition:transform .15s; }
.st-round:hover { transform:scale(1.07); } .st-round:focus-visible { outline:2px solid var(--izi-blue); outline-offset:2px; }
.st .button.st-primary { background:var(--izi-blue); color:#fff; border:0; border-radius:999px; padding:.6rem 1.2rem; font-weight:600; box-shadow:0 6px 16px rgb(47 107 245 / .35); }
.st-headbtns { align-items:center; }
/* the cards running across the top */
.st-steps { gap:.7rem; padding:.7rem .6rem .8rem; background:var(--izi-card); border:1px solid var(--izi-line); border-radius:26px; box-shadow:var(--izi-shadow); margin-bottom:.8rem; scroll-snap-type:x proximity; }
.st-step { flex:0 0 10.6rem; border-radius:20px; background:var(--izi-card); border:1px solid var(--izi-line); padding:.7rem .75rem .65rem; gap:.15rem; scroll-snap-align:start; box-shadow:0 1px 2px rgb(20 20 40 / .04); transition:transform .22s cubic-bezier(.2,.8,.3,1), box-shadow .22s, border-color .22s, background .22s; }
.st-step:hover { transform:translateY(-3px); box-shadow:var(--izi-shadow); border-color:var(--izi-line); }
.st-step.on { background:var(--izi-dark); border-color:var(--izi-dark); color:#fff; transform:translateY(-2px); box-shadow:0 10px 26px rgb(17 17 20 / .28); }
.st-steptop { gap:.4rem; margin-bottom:.45rem; }
.st-stepic { width:2rem; height:2rem; border-radius:10px; font-size:15px; background:color-mix(in srgb,var(--tint,#2f6bf5) 14%,transparent); }
.st-step.on .st-stepic { background:rgb(255 255 255 / .16); }
.st-stepno { flex:0 1 auto; font:600 10px var(--izi-mono); letter-spacing:.06em; text-transform:uppercase; color:var(--izi-mu); background:var(--izi-panel); border-radius:999px; padding:.18rem .5rem; margin-left:auto; white-space:nowrap; }
.st-step.on .st-stepno { background:rgb(255 255 255 / .14); color:#d8d8e0; }
.st-step b { font-size:15px; font-weight:700; letter-spacing:-.01em; }
.st-step small { font:11px var(--izi-font); color:var(--izi-mu); }
.st-step.on small { color:#bdbdc8; }
.st-stepfoot { display:flex; align-items:center; justify-content:space-between; margin-top:.5rem; }
.st-chev { color:var(--izi-mu); font-size:18px; line-height:1; } .st-step.on .st-chev { color:#fff; }
.st-badge { margin-top:0; border-radius:7px; font:700 11px var(--izi-font); letter-spacing:.06em; padding:.18rem .5rem; }
.st-badge.live { background:var(--izi-blue); color:#fff; } .st-badge.on-air { background:var(--izi-orange); color:#fff; } .st-badge.plan { background:var(--izi-panel); color:var(--izi-mu); }
.st-s-library { --tint:#f59a24; } .st-s-studio { --tint:#ee5a43; } .st-s-playlist { --tint:#a35de0; } .st-s-listen { --tint:#a35de0; } .st-s-captions { --tint:#2f6bf5; } .st-s-layers { --tint:#30b25b; } .st-s-main { --tint:#111114; } .st-s-stream { --tint:#ee5a43; } .st-s-stage { --tint:#a35de0; } .st-s-audio { --tint:#f59a24; } .st-s-guests { --tint:#2f6bf5; } .st-s-remote { --tint:#30b25b; } .st-s-backroom { --tint:#6b6b76; }
/* panels, tabs, toggles, sliders */
.st-left, .st-layerrow, .st-card { background:var(--izi-card); border-color:var(--izi-line); }
.st-left { border-radius:26px; box-shadow:var(--izi-shadow); }
.st-layerrow.on { background:color-mix(in srgb,var(--izi-blue) 10%,var(--izi-card)); border-color:color-mix(in srgb,var(--izi-blue) 40%,var(--izi-line)); }
.st-tab { background:var(--izi-card); border:1px solid var(--izi-line); border-radius:999px; color:var(--izi-ink); padding:.3rem .85rem; }
.st-tab.on { background:var(--izi-dark); border-color:var(--izi-dark); color:#fff; }
.st-lbl { font:600 10px var(--izi-mono); letter-spacing:.06em; color:var(--izi-mu); }
.st-num { background:var(--izi-blue); }
.st-switch { width:2.7rem; height:1.55rem; border-radius:999px; background:#c9c9d2; transition:background .2s; }
.st[data-izi="dark"] .st-switch { background:#3a3a43; }
.st-switch::after { top:.15rem; left:.15rem; width:1.25rem; height:1.25rem; box-shadow:0 1px 4px rgb(0 0 0 / .3); transition:left .2s cubic-bezier(.3,1.4,.5,1); }
.st-switch.on { background:var(--izi-blue); } .st-switch.on::after { left:1.3rem; }
.st input[type=range] { accent-color:var(--izi-blue); }
.st-split { background:var(--izi-line); } .st-split:hover, .st-split.drag { background:var(--izi-blue); }
.st-note, .st .soft { color:var(--izi-mu); }
.st[data-izi="dark"] .st-left input:not([type=range]):not([type=checkbox]), .st[data-izi="dark"] .st-left select, .st[data-izi="dark"] .st-left textarea { background:var(--izi-panel); color:var(--izi-ink); border-color:var(--izi-line); }
@media (prefers-reduced-motion: reduce) { .st-step, .st-round, .st-switch::after { transition:none; } .st-step:hover { transform:none; } }
.st-mark { font-size:13px; letter-spacing:-.02em; }
.st .st-round { border:1px solid var(--izi-line); background:var(--izi-card); color:var(--izi-ink); }
.st .st-round:hover { border-color:var(--izi-blue); }
.mt-rp-go { display: flex; justify-content: center; padding: .2rem .8rem .8rem; }
.mt-rp-share { background: #3b82ff; color: #fff; border: 0; border-radius: 999px; padding: .55rem 1.3rem; font-weight: 700; cursor: pointer; min-height: 0; height: auto; }
.mt-frame-share { position: absolute; left: 50%; bottom: -2.6rem; transform: translateX(-50%); white-space: nowrap; }

/* Ìzí Presenter wears the Ìzí Studio brand everywhere inside it: SF/Inter type, blue actions, orange for a human override, red for live, pill buttons */
.st { --action:var(--izi-blue); --action-ink:#fff; --action-soft:color-mix(in srgb,var(--izi-blue) 12%,transparent); --accent:var(--izi-blue); --link:var(--izi-blue); }
.st button, .st input, .st select, .st textarea, .st .button { font-family:var(--izi-font); }
.st .button, .st button.button, .st a.button { border-radius:999px; font-weight:600; background:var(--izi-card); color:var(--izi-ink); border:1px solid var(--izi-line); box-shadow:none; }
.st .button.primary, .st button.primary, .st a.button.primary, .st .button.selected { background:var(--izi-blue); border-color:var(--izi-blue); color:#fff; box-shadow:0 4px 12px rgb(47 107 245 / .28); transform:none; filter:none; }
.st .button.primary:hover:not(:disabled), .st a.button.primary:hover { filter:brightness(1.08); transform:none; }
.st .button.danger, .st .button.st-danger { background:var(--izi-red); border-color:var(--izi-red); color:#fff; box-shadow:none; }
.st .button:disabled, .st button:disabled { opacity:.38; cursor:not-allowed; filter:none; box-shadow:none; }
.st .soft { color:var(--izi-mu); }
.st .st-golive-on { color:var(--izi-red); font-weight:600; margin:.3rem 0; }
.st .st-golive-err { color:var(--izi-red); margin:.3rem 0; }

/* Ìzí Presenter header and step cards at the Ìzí Studio size (they were smaller) */
.st { font-size:15px; padding:1.2rem 1.2rem 1.4rem; }
.st-mark { width:3rem; height:3rem; font-size:24px; border-radius:14px; }
.st-brand { gap:.85rem; } .st-brand h1 { font-size:24px; }
.st-tag { font-size:11px; } .st-ready { font-size:12px; padding:.28rem .75rem; }
.st-round { width:2.9rem; height:2.9rem; }
.st-steps { gap:.85rem; padding:.9rem .8rem 1rem; }
.st-step { flex:0 0 12.2rem; padding:.85rem .9rem .8rem; border-radius:22px; }
.st-stepic { width:2.4rem; height:2.4rem; font-size:20px; border-radius:12px; }
.st-stepno { font-size:11px; padding:.22rem .6rem; }
.st-step b { font-size:18px; } .st-step small { font-size:12px; }
.st-badge { font-size:11px; padding:.22rem .6rem; }
.st h2 { font-size:22px; }

/* Ìzí Presenter: small chips and tabs follow the light or dark theme (they were light grey with light text in dark mode) */
.st .st-chip, .st .st-tab { background:var(--izi-panel); color:var(--izi-ink); border:1px solid var(--izi-line); border-radius:999px; font-family:var(--izi-font); }
.st .st-chip.on { background:var(--izi-blue); border-color:var(--izi-blue); color:#fff; }
.st .st-tab.on { background:var(--izi-dark); border-color:var(--izi-dark); color:#fff; }

/* Ìzí Presenter, Studio step: the sticky tab row and action row take the theme colour (they were white bars in dark mode) */
.st .st-fxbar, .st .st-subtabs { background:var(--izi-card); }
.st .st-subtabs { border-bottom:1px solid var(--izi-line); }
.st .st-subtab { background:var(--izi-panel); color:var(--izi-ink); border:1px solid var(--izi-line); font-family:var(--izi-font); }
.st .st-subtab.on { background:var(--izi-dark); border-color:var(--izi-dark); color:#fff; }

/* Studio step: breathing room under the tab row and the action row */
.st .st-subtabs { margin-bottom:1rem; padding:.5rem 0 .6rem; }
.st .st-fxbar { padding:.6rem 0 1rem; margin-bottom:.4rem; }
.st .st-txgrid { margin-top:.6rem; row-gap:1.2rem; }
.st .st-txleft { gap:.9rem; }

/* Ìzí Presenter panels at Ìzí Studio's type, size and spacing */
.st .st-left { padding:1.5rem 1.6rem 2.2rem; background:var(--izi-card); }
.st .st-title { gap:.8rem; margin:0 0 1rem; }
.st .st-title h2 { font-size:24px; font-weight:700; letter-spacing:-.025em; line-height:1.15; }
.st .st-num { width:2rem; height:2rem; font-size:15px; }
.st .st-left p, .st .st-left li { font-size:14px; line-height:1.55; }
.st .st-left .soft, .st .st-note { font-size:14px; color:var(--izi-mu); }
.st .st-left h3 { font-size:18px; font-weight:700; margin:0 0 .4rem; }
.st .st-layerrow { padding:.95rem 1.1rem; border-radius:16px; background:var(--izi-panel); border:1px solid var(--izi-line); font-size:14px; font-weight:700; }
.st .st-layerrow.on { background:color-mix(in srgb,var(--izi-blue) 10%,var(--izi-panel)); }
.st .st-tabs, .st .st-subtabs { gap:.6rem; }
.st .st-tab, .st .st-subtab { padding:.5rem 1.05rem; font-size:14px; font-weight:600; }
.st .st-left .button, .st .st-left button.button { padding:.55rem 1.15rem; font-size:14px; box-shadow:none; }
.st .st-left .button.primary, .st .st-left a.button.primary { box-shadow:none; }
.st .st-left .button.small { padding:.45rem .95rem; font-size:14px; }
.st .button.primary, .st button.primary, .st a.button.primary, .st .button.selected { box-shadow:none; }
.st .st-lbl, .st .st-tag { font-size:11px; }
.st .st-left input, .st .st-left select, .st .st-left textarea { font-size:14px; }

/* Ìzí Presenter icons: one calm family, Studio blue on a soft tile (no emoji, no rainbow) */
.st .st-ico { display:inline-flex; align-items:center; justify-content:center; line-height:0; }
.st .st-stepic { display:inline-flex; align-items:center; justify-content:center; background:color-mix(in srgb,var(--izi-blue) 13%,transparent); color:var(--izi-blue); font-size:0; }
.st .st-step.on .st-stepic { background:rgb(255 255 255 / .16); color:#fff; }
.st .st-round .st-ico svg { width:18px; height:18px; }

/* Ìzí Presenter header in the Ìzí Studio manner: dark app tile, bold title, soft mono tag, outlined READY pill, big headline with a grey line */
.st .st-head { padding:.2rem .2rem .9rem; margin-bottom:.4rem; border-bottom:1px solid var(--izi-line); }
.st .st-mark { background:#101014; color:#fff; border:1px solid #2e2e35; box-shadow:0 4px 14px rgb(0 0 0 / .25); font-weight:700; letter-spacing:-.03em; }
.st .st-brand h1 { font-weight:700; letter-spacing:-.02em; color:var(--izi-ink); line-height:1.1; }
.st .st-tag { font:500 11px var(--izi-mono); letter-spacing:.06em; color:var(--izi-mu); margin-top:.15rem; }
.st .st-ready { font:600 11px var(--izi-mono); letter-spacing:.06em; color:var(--izi-blue); background:color-mix(in srgb,var(--izi-blue) 9%,transparent); border:1px solid color-mix(in srgb,var(--izi-blue) 38%,transparent); padding:.3rem .8rem; }
.st .st-pagehead { margin:1.1rem .2rem 1.2rem; }
.st .st-pagehead h2 { margin:0 0 .45rem; font-size:30px; font-weight:700; letter-spacing:-.03em; line-height:1.1; color:var(--izi-ink); }
.st .st-pagehead p { margin:0; font-size:15px; color:var(--izi-mu); }

/* Ìzí Presenter fields: typed words and hints are white in dark mode (they were a tan colour from the church theme) */
.st input, .st textarea, .st select, .st .st-input { color:var(--izi-ink); caret-color:var(--izi-blue); }
.st input::placeholder, .st textarea::placeholder { color:var(--izi-ink); opacity:.62; }
.st input:disabled, .st textarea:disabled { color:var(--izi-mu); }

/* Step icons like Ìzí Studio: each in its own tint on a soft tile, smaller tile and icon */
.st .st-stepic { width:2.05rem; height:2.05rem; border-radius:10px; background:color-mix(in srgb,var(--tint,#2f6bf5) 16%,transparent); color:var(--tint,#2f6bf5); }
.st .st-stepic .st-ico svg { width:17px; height:17px; stroke-width:1.9; }
.st[data-izi="dark"] .st-s-main .st-stepic { color:#f4f4f7; background:rgb(255 255 255 / .12); }
.st[data-izi="dark"] .st-s-backroom .st-stepic { color:#9a9aa6; }
.st .st-step.on .st-stepic { background:rgb(255 255 255 / .16); color:#fff; }

/* Layers step spacing: room above the screen labels, under the labels, and between the layer switches and the note */
.st .st-canvases { margin-top:1.6rem; gap:2rem; }
.st .st-cwrap .st-lbl { margin:0 0 .7rem; }
.st .st-cwrap .st-tabs { margin:0 0 1rem; gap:.6rem; }
.st .st-layerrow + .st-layerrow, .st .st-layerrow { margin:0; }
.st .st-note.st-inline { display:block; margin:1rem .2rem 0; }
.st .st-layerrows, .st .st-layerbar { gap:.7rem; }
.st .st-layerrowwrap { gap:1.5rem; margin:1rem 0; }
.st .st-layerlist { gap:.7rem; }
.st .st-layerlist .st-note { flex-basis:100%; margin-top:.5rem; }

/* Ìzí Presenter, dark and light: fields and buttons always use the Ìzí colours. The church theme's tan text and white buttons are overridden here (higher specificity). */
.st.st[data-izi] input, .st.st[data-izi] textarea, .st.st[data-izi] select, .st.st[data-izi] .st-input { color:var(--izi-ink); background:var(--izi-panel); border:1px solid var(--izi-line); border-radius:12px; padding:.6rem .85rem; font-family:var(--izi-font); font-size:14px; }
.st.st[data-izi] input[type="checkbox"], .st.st[data-izi] input[type="radio"], .st.st[data-izi] input[type="range"] { background:transparent; border:0; padding:0; }
.st.st[data-izi] input::placeholder, .st.st[data-izi] textarea::placeholder { color:var(--izi-ink); opacity:.6; }
.st.st[data-izi] .st-left button:not([class*="st-"]), .st.st[data-izi] .st-left a.button { font-family:var(--izi-font); font-weight:600; font-size:14px; border-radius:999px; padding:.55rem 1.15rem; background:var(--izi-card); color:var(--izi-ink); border:1px solid var(--izi-line); box-shadow:none; cursor:pointer; }
.st.st[data-izi] .st-left button.primary:not([class*="st-"]), .st.st[data-izi] .st-left a.button.primary { background:var(--izi-blue); border-color:var(--izi-blue); color:#fff; }
.st.st[data-izi] .st-left button.small:not([class*="st-"]) { padding:.45rem .95rem; font-size:14px; }
.st.st[data-izi] .st-left button:disabled:not([class*="st-"]) { opacity:.4; cursor:not-allowed; }
/* spacing inside fields and toolbars */
.st .st-left .field { display:flex; flex-direction:column; gap:.55rem; margin:1rem 0; }
.st .st-left .field > label { font-size:13px; color:var(--izi-mu); }
.st .st-left .toolbar { display:flex; flex-wrap:wrap; gap:.7rem; margin:.9rem 0; }
.st .st-left .st-lib > * + * { margin-top:.8rem; }

/* Listen sits beside the Bible lookup in Library, and follows the light or dark theme (it was always dark) */
.st .st-biblegrid { display:grid; grid-template-columns:minmax(0,1fr) minmax(18rem,26rem); gap:1.6rem; align-items:start; margin-top:.8rem; }
@media (max-width:1100px) { .st .st-biblegrid { grid-template-columns:1fr; } }
.st .st-dark { --pw-bg:var(--izi-bg); --pw-panel:var(--izi-panel); --pw-bar:var(--izi-line); --pw-line:var(--izi-line); --pw-tx:var(--izi-ink); --pw-mu:var(--izi-mu); background:var(--izi-panel); color:var(--izi-ink); border:1px solid var(--izi-line); border-radius:22px; padding:1.2rem 1.3rem; max-width:none; }
.st .st-dark select, .st .st-dark input[type="text"] { background:var(--izi-card); }

/* Fix: radio buttons and tick boxes stay small round/square controls; drop-downs are tall enough for their text */
.st.st[data-izi] input[type="radio"], .st.st[data-izi] input[type="checkbox"] { appearance:auto; -webkit-appearance:auto; width:1.1rem; height:1.1rem; min-width:1.1rem; flex:0 0 auto; padding:0; margin:0 .6rem 0 0; background:transparent; border:0; border-radius:50%; accent-color:var(--izi-blue); box-shadow:none; }
.st.st[data-izi] input[type="checkbox"] { border-radius:4px; }
.st.st[data-izi] input[type="range"] { appearance:auto; -webkit-appearance:auto; width:100%; height:auto; padding:0; accent-color:var(--izi-blue); }
.st.st[data-izi] select { line-height:1.35; min-height:2.6rem; height:auto; padding-top:.6rem; padding-bottom:.6rem; }
.st.st[data-izi] input:not([type="radio"]):not([type="checkbox"]):not([type="range"]), .st.st[data-izi] textarea { line-height:1.35; }
.st .st-left label:has(input[type="radio"]), .st .st-left label:has(input[type="checkbox"]) { display:flex; align-items:center; gap:.2rem; }

/* Library: a little more space under the tabs, around the song search, and above each section */
.st .st-lib { margin-top:1.2rem; }
.st .st-left .st-tabs { margin-bottom:1.2rem; }
.st .st-lib .st-input { margin-bottom:1rem; min-width:16rem; }
.st .st-lib .st-lbl { display:block; margin:1rem 0 .7rem; }
.st .st-songlist { margin:.4rem 0 1rem; display:flex; flex-direction:column; gap:.5rem; }
.st .st-songdetail { margin-top:1.2rem; }
.st .st-pair { margin-top:1.4rem; gap:1.4rem; }

/* Listen: the two choices are pills; the chosen one is filled blue */
.st .pw-listen-mode { border:0; padding:0; margin:1.1rem 0; display:flex; flex-direction:column; gap:.6rem; }
.st .pw-listen-mode legend { padding:0; margin:0 0 .6rem; font-size:13px; color:var(--izi-mu); }
.st .pw-listen-mode .field.check { position:relative; display:block; margin:0; padding:0; border-radius:999px; background:var(--izi-card); border:1px solid var(--izi-line); transition:background .15s, border-color .15s; }
.st .pw-listen-mode .field.check label { display:block; width:100%; box-sizing:border-box; margin:0; padding:.8rem 1.2rem .8rem 3rem; text-align:left; font-size:14px; font-weight:600; color:var(--izi-ink); cursor:pointer; }
.st .pw-listen-mode .field.check input[type="radio"] { position:absolute; left:1.15rem; top:50%; transform:translateY(-50%); margin:0; }
.st .pw-listen-mode .field.check:has(input:checked) { background:var(--izi-blue); border-color:var(--izi-blue); }
.st .pw-listen-mode .field.check:has(input:checked) label { color:#fff; }
.st .pw-listen-mode .field.check:has(input:checked) input[type="radio"] { accent-color:#fff; }
.st .pw-listen-mode .field.check:focus-within { outline:2px solid var(--izi-blue); outline-offset:2px; }

/* Library songs: the hint beside the search box is centred on it, and the columns share one top line */
.st .st-songs { align-items:start; gap:1.4rem; }
.st .st-songdetail { margin-top:0; }
.st .st-songdetail > p.soft:only-child { margin:0; min-height:2.6rem; display:flex; align-items:center; }
.st .st-songcol .st-input { margin-bottom:.6rem; }

/* Library songs: tighter between the "1 SONG" count and the song list; roomier inside the Slides card */
.st .st-songcol .st-lbl, .st .st-songcol > .st-lbl, .st .st-lib .st-songcol .st-lbl { margin:.1rem 0 .25rem; }
.st .st-songlist { margin:0 0 .8rem; gap:.3rem; }
.st .st-note-card { padding:1.2rem 1.3rem 1.4rem; }
.st .st-note-card .button { margin-top:.5rem; }



/* Song cards: two lines to a card, coloured by the kind of section (Verse, Chorus, Pre-chorus, Bridge, Vamp) */
.st.st[data-izi] .st-cards { grid-template-columns: repeat(auto-fill, minmax(12.5rem, 1fr)); gap: .7rem; }
.st.st[data-izi] .k-verse { --k: #2f6df0; } .st.st[data-izi] .k-chorus { --k: #f08a1c; } .st.st[data-izi] .k-prechorus { --k: #8b5cf6; }
.st.st[data-izi] .k-bridge { --k: #17a56b; } .st.st[data-izi] .k-vamp { --k: #e0457b; } .st.st[data-izi] .k-other { --k: #6b7280; }
.st.st[data-izi] .st-card[class*="k-"] { background: color-mix(in srgb, var(--k) 16%, var(--izi-card, #fff)); border: 2px solid color-mix(in srgb, var(--k) 70%, transparent); }
.st.st[data-izi] .st-card[class*="k-"]:hover:not(:disabled) { border-color: var(--k); }
.st.st[data-izi] .st-card[class*="k-"] .st-cardtext { background: color-mix(in srgb, var(--k) 55%, #0c0a14); min-height: 3.2rem; max-height: none; }
.st.st[data-izi] .st-card[class*="k-"] b { color: var(--k); font-weight: 700; }
.st.st[data-izi] .st-kinds { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 .7rem; }
.st.st[data-izi] .st-kind { font-size: 12px; font-weight: 700; padding: .2rem .65rem; border-radius: 999px; color: #fff; background: var(--k); }

/* Colour bars on the song editor's sections, the same colours as the cards */
.panel-plain.sec-verse { border-left: 6px solid #2f6df0; } .panel-plain.sec-chorus { border-left: 6px solid #f08a1c; } .panel-plain.sec-prechorus { border-left: 6px solid #8b5cf6; }
.panel-plain.sec-bridge { border-left: 6px solid #17a56b; } .panel-plain.sec-vamp { border-left: 6px solid #e0457b; } .panel-plain.sec-tag { border-left: 6px solid #0ea5b7; } .panel-plain.sec-other { border-left: 6px solid #6b7280; }
.st.st[data-izi] .k-tag { --k: #0ea5b7; }

/* Songs: the cards run the full width underneath the song list, and the chosen song stays readable in both looks */
.st.st[data-izi] .st-songcards { margin-top: 1rem; }
.st.st[data-izi] .st-songlist { max-height: 11rem; }
.st.st[data-izi] .st-song, .st.st[data-izi] .st-song b { color: var(--izi-ink); }
.st.st[data-izi] .st-song small { color: var(--izi-mu); }
.st.st[data-izi] .st-song:hover { background: color-mix(in srgb, var(--izi-blue) 8%, var(--izi-card)); }
.st.st[data-izi] .st-song.on { background: color-mix(in srgb, var(--izi-blue) 18%, var(--izi-card)); border-color: var(--izi-blue); }
.st.st[data-izi] .st-cards { grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); }

/* Paste A Song, at the top of the Songs tab */
.st.st[data-izi] .st-pastebox { margin: 0 0 1.1rem; display: grid; gap: .5rem; }
.st.st[data-izi] .st-paste { width: 100%; min-height: 5.5rem; resize: vertical; box-sizing: border-box; }
.st.st[data-izi] .st-pastebar { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.st.st[data-izi] .st-pastebar .st-input { flex: 1 1 14rem; max-width: 22rem; }

/* All CAPS: the lyrics in capital letters on the song cards */
.st.st[data-izi] .st-songcards.caps .st-cardtext { text-transform: uppercase; }
.st.st[data-izi] .st-capsbtn.on { background: var(--izi-blue); border-color: var(--izi-blue); color: #fff; }

/* Songs: search as you type with a drop-down of matches; Library: add, edit and delete songs */
.st.st[data-izi] .st-searchwrap { position: relative; }
.st.st[data-izi] .st-suggest { position: absolute; z-index: 30; left: 0; top: calc(100% + .3rem); min-width: 22rem; max-width: 34rem; max-height: 19rem; overflow-y: auto; display: grid; gap: .15rem; padding: .35rem; background: var(--izi-card); border: 1px solid var(--izi-line); border-radius: 14px; box-shadow: 0 14px 34px rgba(0,0,0,.28); }
.st.st[data-izi] .st-suggest[hidden] { display: none; }
.st.st[data-izi] .st-sug { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; padding: .5rem .7rem; border-radius: 10px; color: var(--izi-ink); }
.st.st[data-izi] .st-sug small { color: var(--izi-mu); font-size: 12px; }
.st.st[data-izi] .st-sug:hover, .st.st[data-izi] .st-sug:focus-visible { background: color-mix(in srgb, var(--izi-blue) 14%, var(--izi-card)); }
.st.st[data-izi] .st-sugnone { margin: .4rem .6rem; }
.st.st[data-izi] .st-libsongs { display: grid; gap: .6rem; margin-top: .6rem; }
.st.st[data-izi] .st-librow { border: 1px solid var(--izi-line); border-radius: 14px; background: var(--izi-card); padding: .7rem .9rem; }
.st.st[data-izi] .st-librowhead { display: flex; justify-content: space-between; gap: .8rem; align-items: center; flex-wrap: wrap; }
.st.st[data-izi] .st-librowhead small { display: block; color: var(--izi-mu); font-size: 12px; margin-top: .15rem; }
.st.st[data-izi] .st-librowbody { display: grid; gap: .6rem; margin-top: .7rem; }
.st.st[data-izi] .st-librowbody:empty { display: none; }

/* Layer switches: blue inside when the layer is on, grey when it is off */
.st.st[data-izi] .st-switch { background: #c9c9d2; }
.st.st[data-izi="dark"] .st-switch { background: #3a3a43; }
.st.st[data-izi] .st-switch.on, .st.st[data-izi="dark"] .st-switch.on { background: var(--izi-blue, #2f5fe8); }
.st.st[data-izi] .st-switch::after { background: #fff; }

/* The chosen tab (Main / Stream / Instagram / TikTok, and the Library tabs) is blue, so it is clear which one is on in both looks */
.st.st[data-izi] .st-tab.on, .st.st[data-izi="dark"] .st-tab.on { background: var(--izi-blue, #2f6bf5); border-color: var(--izi-blue, #2f6bf5); color: #fff; }
.st.st[data-izi] .st-tab.on:hover { filter: brightness(1.06); }

/* One colour picker everywhere (the Ìzí Studio one): a rainbow ring, a gap, then the chosen colour in a circle. Inside Ìzí Presenter the gap follows the card colour. */
.st.st[data-izi] input[type="color"] { width: 2.5rem; height: 2.5rem; padding: 3px; border: 0; border-radius: 50%; justify-self: start; box-shadow: none; background: conic-gradient(from 200deg, #ff5a5a, #ffb43c, #f2e233, #7bd957, #34c6a5, #3b9cff, #8a5cf6, #e052c9, #ff5a5a); }
.st.st[data-izi] input[type="color"]::-webkit-color-swatch-wrapper { padding: 3px; border-radius: 50%; background: var(--izi-card, #fff); }
.st.st[data-izi] input[type="color"]::-webkit-color-swatch { border: 1px solid var(--izi-line, #d8d8dc); border-radius: 50%; }
.st.st[data-izi] input[type="color"]::-moz-color-swatch { border: 1px solid var(--izi-line, #d8d8dc); border-radius: 50%; }
.st.st[data-izi] input[type="color"]:focus-visible { outline: 2px solid var(--izi-blue, #2f6bf5); outline-offset: 3px; }

/* Library > Media and Slides */
.st .st-mgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:12px;margin:10px 0}
.st .st-mcard{position:relative;display:flex;flex-direction:column;gap:6px;padding:8px;border:1px solid var(--izi-line,#d8dbe3);border-radius:12px;background:var(--izi-card,#fff)}
.st .st-mcard.on{outline:2px solid var(--izi-blue,#2563eb)}
.st .st-mshow{position:relative;display:block;padding:0;border:0;background:#000;border-radius:8px;overflow:hidden;aspect-ratio:16/9;cursor:pointer}
.st .st-mthumb{width:100%;height:100%;object-fit:cover;display:block}
.st .st-maudio{display:flex;align-items:center;justify-content:center;font-size:44px;color:#fff;background:linear-gradient(135deg,#1e3a5f,#101826)}
.st .st-mplay{position:absolute;inset:auto 6px 6px auto;width:26px;height:26px;border-radius:50%;background:rgba(0,0,0,.65);color:#fff;font-size:12px;display:grid;place-items:center}
.st .st-mname{display:flex;flex-direction:column;overflow:hidden}.st .st-mname span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:600}
.st .st-madd{display:grid;place-items:center;min-height:90px;border:2px dashed var(--izi-line,#c4c8d2);border-radius:12px;cursor:pointer}
.st .st-mbar{display:flex;flex-wrap:wrap;gap:8px;align-items:center;padding:10px 12px;margin:8px 0;border-radius:12px;background:var(--izi-panel,#eef1f8);border:1px solid var(--izi-blue,#2563eb)}
.st .st-mvol input{vertical-align:middle;width:110px}
.st .st-mto{display:flex;gap:8px;align-items:center;margin:8px 0}
.st .st-deck{margin:14px 0}.st .st-deckhead{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.st .st-slidegrid{grid-template-columns:repeat(auto-fill,minmax(130px,1fr))}
.st .st-sl small{position:absolute;left:6px;bottom:4px;color:#fff;text-shadow:0 0 3px #000}
.scr-media img{max-width:100%}

/* Slides: big cards the operator can read at a glance, ringed when on air */
.st .st-slidegrid{display:flex;flex-wrap:wrap;gap:14px;margin:10px 0}
.st .st-slidegrid .st-sl{position:relative;flex:1 1 300px;max-width:420px;display:flex;flex-direction:column;padding:8px;border:2px solid var(--izi-line,#d8dbe3);border-radius:14px;background:var(--izi-card,#fff);cursor:pointer;text-align:left}
.st .st-slidegrid .st-sl:hover{border-color:var(--izi-blue,#2563eb)}
.st .st-slidegrid .st-sl.on{border-color:var(--izi-blue,#2563eb);box-shadow:0 0 0 3px rgba(37,99,235,.35)}
.st .st-slpic{display:block;aspect-ratio:16/9;background:#000;border-radius:8px;overflow:hidden}
.st .st-slpic img{width:100%;height:100%;object-fit:contain;display:block}
.st .st-slvid{position:absolute;right:14px;top:14px;padding:2px 8px;border-radius:999px;background:rgba(0,0,0,.65);color:#fff;font-size:13px;line-height:1.4}
.st .st-slnum{position:absolute;left:14px;top:14px;min-width:28px;padding:2px 8px;border-radius:999px;background:var(--izi-blue,#2563eb);color:#fff;font-weight:700;font-size:15px;text-align:center}
.st .st-slon{display:none;position:absolute;right:14px;top:14px;padding:2px 10px;border-radius:999px;background:#d92d20;color:#fff;font-weight:700;font-size:13px}
.st .st-slidegrid .st-sl.on .st-slon{display:block}

/* Slides: operator preview (on air + next) and full-width cards */
.st .st-slprev{display:flex;flex-wrap:wrap;gap:16px;align-items:flex-start;margin:12px 0;padding:12px;border-radius:14px;background:var(--izi-panel,#eef1f8);border:1px solid var(--izi-line,#d8dbe3)}
.st .st-pv{margin:0;display:flex;flex-direction:column;gap:6px}
.st .st-pv.now{flex:2 1 420px;max-width:760px}.st .st-pv.next{flex:1 1 240px;max-width:380px}
.st .st-pvbox{aspect-ratio:16/9;background:#000;border-radius:10px;overflow:hidden;display:grid;place-items:center;color:#9aa}
.st .st-pv.now .st-pvbox{outline:3px solid #d92d20}
.st .st-pvimg{width:100%;height:100%;object-fit:contain;display:block}
.st .st-pv figcaption{font-weight:700}.st .st-pv.now figcaption{color:#d92d20}
.st .st-slgo{display:flex;flex-direction:column;gap:8px;align-self:center}
.st .st-slidegrid .st-sl{width:auto;height:auto;min-height:0;line-height:normal}
.st .st-slidegrid .st-sl .st-slpic{width:100%}
.st .st-slidegrid .st-sl .st-slpic img{position:static;display:block;width:100%;height:100%}

.st .st-pendrow{display:flex;flex-wrap:wrap;gap:10px;align-items:center;padding:12px;margin:8px 0;border-radius:12px;border:2px solid var(--izi-blue,#2563eb);background:var(--izi-panel,#eef1f8)}
.st .st-pendrow .st-input{flex:1 1 220px}.st .st-pendhead{flex:1 1 100%}
.st .st-slgo .st-end{background:#e8391d;border-color:#e8391d;color:#fff}.st .st-slgo .st-end:disabled{opacity:.45}
.st .st-saved{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:8px 0 10px}
.st .st-savedlbl{font-weight:700;margin-right:4px}
.st .st-savedchip{border:1px solid var(--izi-line,#d8dbe3);background:var(--izi-card,#fff);color:inherit;border-radius:999px;padding:5px 12px;cursor:pointer}
.st .st-savedchip.on,.st .st-savedchip:hover{border-color:var(--izi-blue,#2563eb)}
.st .st-savedchip b{color:var(--izi-blue,#2563eb)}

/* Layers: camera and layout presets */
.st .st-cam,.st .st-presets{margin:16px 0;padding:12px;border:1px solid var(--izi-line,#d8dbe3);border-radius:12px;background:var(--izi-card,#fff)}
.st .st-camrow{display:flex;gap:10px;align-items:center;margin:8px 0}
.st .st-presetsave{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0}.st .st-presetsave .st-input{flex:1 1 240px}
.st .st-presetrow{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:8px 0;border-top:1px solid var(--izi-line,#d8dbe3)}

/* Layers: bigger screens to arrange; the vertical one drops under the wide one when there is no room beside it */
.st .st-canvases { flex-wrap: wrap; }
.st .st-canvases, .st .st-cwrap { --ch: clamp(10rem, calc((100cqw - 2rem) / 2.1), 28rem); }

/* Studio > Lower Thirds */
.st .st-lpgrid{display:flex;flex-wrap:wrap;gap:18px;margin:10px 0}
.st .st-lpleft{flex:1 1 440px;min-width:0;display:flex;flex-direction:column;gap:10px}.st .st-lpright{flex:1 1 360px;min-width:0}
.st-lpframe{max-width:760px}
.st-lpframe .st-lpprev{position:absolute;inset:0;background:transparent}
.st .st-checker{background:repeating-conic-gradient(#2a2d36 0 25%,#3a3e49 0 50%) 0 0/20px 20px}
.st .st-tileimg.st-checker img,.st .st-tileimg.st-checker video{width:100%;height:100%;object-fit:contain}
.st .st-lpgroup{margin:10px 0;padding:10px;border:1px solid var(--izi-line,#d8dbe3);border-radius:10px}
.st .st-lpsaved{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:8px;padding:8px 0;border-top:1px solid var(--izi-line,#d8dbe3)}

/* Layers board: wide screen, the layer board, vertical screen. Holes: left = wide, right = vertical. */
.st .st-canvases { flex-wrap: wrap; align-items: flex-start; justify-content: center; gap: 1.2rem; }
.st .st-canvases, .st .st-cwrap { --ch: clamp(9rem, calc((100cqw - 14rem - 5rem) / 2.34), 24rem); }
.st .st-layerlist.st-board { display: block; flex: 0 0 13.5rem; width: 13.5rem; margin-top: 3.4rem; }
.st .st-boardhead { display: flex; justify-content: space-between; font: 700 12px/1 var(--izi-mono); letter-spacing:.06em; color: var(--izi-muted, #6b7280); padding: 0 .35rem .45rem; }
.st .st-boardend { text-align: center; font: 700 11px/1 var(--izi-mono); letter-spacing:.06em; color: var(--izi-muted, #6b7280); padding: .4rem 0; text-transform: uppercase; }
.st .st-lrows { display: flex; flex-direction: column; gap: .35rem; }
.st .st-lrow { display: flex; align-items: center; gap: .5rem; padding: .5rem .55rem; border-radius: 12px; cursor: grab; user-select: none; touch-action: none; font-size: 13px; position: relative; }
.st .st-lrow.drag { opacity: .55; cursor: grabbing; }
.st .st-lrow.drop::before, .st .st-lrow.drop-end::after { content: ''; position: absolute; left: 6px; right: 6px; height: 3px; border-radius: 2px; background: var(--izi-blue, #2f6bff); }
.st .st-lrow.drop::before { top: -3px; } .st .st-lrow.drop-end::after { bottom: -3px; }
.st .st-lrname { flex: 1; text-align: center; font-weight: 700; display: flex; gap: .35rem; justify-content: center; align-items: center; min-width: 0; }
.st .st-grip { color: var(--izi-muted, #9aa0aa); font-style: normal; letter-spacing: -.15em; font-size: 13px; }
.st .st-hole { flex: 0 0 auto; width: 1.45rem; height: 1.45rem; border-radius: 50%; border: 0; padding: 0; cursor: pointer; background: color-mix(in srgb, var(--izi-ink, #111) 14%, var(--izi-panel, #f3f4f6)); box-shadow: inset 0 2px 4px rgba(0,0,0,.35), inset 0 0 0 2px color-mix(in srgb, var(--izi-ink, #111) 10%, transparent); }
.st .st-hole.on { background: var(--izi-blue, #2f6bff); box-shadow: inset 0 2px 4px rgba(0,0,0,.35), 0 0 0 3px color-mix(in srgb, var(--izi-blue, #2f6bff) 30%, transparent); }
.st .st-hole:focus-visible, .st .st-lrow:focus-visible { outline: 2px solid var(--izi-blue, #2f6bff); outline-offset: 2px; }
.st .st-hole:disabled { cursor: default; opacity: .6; }
.st .st-tab.st-fixed { cursor: default; }
.st .st-hole{min-width:1.45rem;min-height:1.45rem;aspect-ratio:1;box-sizing:border-box}

/* Layout presets: name, then the two save buttons, then the saved layouts */
.st .st-presets { display: block; }
.st .st-presets .st-presetsave { display: flex; flex-direction: column; align-items: stretch; gap: .6rem; max-width: 34rem; margin: .4rem 0 1rem; }
.st .st-presets .st-presetsave .st-input { flex: none; width: 100%; }
.st .st-presets .st-presetbtns { display: flex; flex-wrap: wrap; gap: .6rem; }
.st .st-presets .st-presethelp { margin: .2rem 0 .4rem; }
.st .st-presets .st-presetsub { margin: .4rem 0 .5rem; }
.st .st-presets .st-presetlist { display: flex; flex-direction: column; gap: .4rem; max-width: 34rem; }
.st .st-presets .st-presetrow { display: flex; justify-content: space-between; align-items: center; gap: .6rem; padding: .5rem .2rem; border-top: 1px solid var(--izi-line, #d8dbe3); }
.st .st-layerlist.st-board { margin-top: 3.4rem; }

/* Lower Thirds: move and size on the picture, with distances */
.st .st-lpframe { overflow: visible; }
.st .st-lpover, .st .st-lpmeasure { position: absolute; inset: 0; pointer-events: none; }
.st .st-lpbox { position: absolute; pointer-events: auto; cursor: move; outline: 1px dashed rgba(255,255,255,.65); touch-action: none; }
.st .st-lpbox.on { outline: 2px solid var(--izi-blue, #2f6bff); z-index: 2; }
.st .st-lpbox[data-item="name"], .st .st-lpbox[data-item="role"] { z-index: 1; }
.st .st-lpbox:focus-visible { outline: 2px solid #fff; box-shadow: 0 0 0 3px var(--izi-blue, #2f6bff); }
.st .st-lpbox .st-hd { position: absolute; width: 10px; height: 10px; background: #fff; border: 2px solid var(--izi-blue, #2f6bff); border-radius: 2px; display: none; }
.st .st-lpbox.on .st-hd { display: block; }
.st .st-lpbox .st-hd.nw { left: -6px; top: -6px; cursor: nwse-resize; } .st .st-lpbox .st-hd.ne { right: -6px; top: -6px; cursor: nesw-resize; }
.st .st-lpbox .st-hd.sw { left: -6px; bottom: -6px; cursor: nesw-resize; } .st .st-lpbox .st-hd.se { right: -6px; bottom: -6px; cursor: nwse-resize; }
.st .st-lpline { position: absolute; background: #ff3d9a; } .st .st-lpline.h { height: 1px; } .st .st-lpline.v { width: 1px; }
.st .st-lpval { position: absolute; transform: translate(-50%, -50%); background: #ff3d9a; color: #fff; font: 700 11px/1 var(--izi-font); padding: 2px 4px; border-radius: 4px; }
.st .st-lpguide { position: absolute; background: rgba(255,61,154,.8); } .st .st-lpguide.v { top: 0; bottom: 0; width: 1px; } .st .st-lpguide.h { left: 0; right: 0; height: 1px; }
.st .st-lpgrab { position: absolute; left: 50%; top: -20px; transform: translateX(-50%); background: var(--izi-blue, #2f6bff); color: #fff; font: 700 11px/1 var(--izi-font); padding: 4px 8px; border-radius: 6px 6px 0 0; cursor: move; white-space: nowrap; display: none; }
.st .st-lpbox.on .st-lpgrab { display: block; }
.st .st-lpbox[data-item="gfx"], .st .st-lpbox[data-item="gfx"].on { z-index: 1; }
.st .st-lpbox[data-item="name"], .st .st-lpbox[data-item="role"], .st .st-lpbox[data-item="name"].on, .st .st-lpbox[data-item="role"].on { z-index: 2; }
.st .st-lpmeasure { z-index: 90; } .st .st-lpover { z-index: 100; }
.st .st-lpprev { isolation: isolate; z-index: 0; }
.st .st-canvases, .st .st-cwrap { --ch: max(var(--board-h, 0px), clamp(9rem, calc((100cqw - 14rem - 5rem) / 2.34), 24rem)); }

/* Layer groups */
.st .st-lgroup { border: 2px solid color-mix(in srgb, var(--izi-blue, #2f6bff) 55%, transparent); border-radius: 14px; padding: .25rem; display: flex; flex-direction: column; gap: .25rem; background: color-mix(in srgb, var(--izi-blue, #2f6bff) 6%, transparent); position: relative; }
.st .st-lgrouprow { font-weight: 700; }
.st .st-lmember { margin-left: .6rem; cursor: pointer; padding: .35rem .5rem; }
.st .st-groupbtn { width: 100%; margin-top: .6rem; }
.st .st-box.sel { outline-style: solid; }
/* compact rows so the stack, and so the two pictures beside it, stay a sensible height */
.st .st-lrows { gap: .22rem; }
.st .st-lrow { padding: .26rem .5rem; font-size: 13px; }
.st .st-hole { width: 1.2rem; height: 1.2rem; min-width: 1.2rem; min-height: 1.2rem; }
.st .st-lmember { padding: .25rem .45rem; }
.st .st-boardend { padding: .25rem 0; }
/* Layers: only the layer picked in the stack can be grabbed, and it shows the move cursor */
.st .st-box { cursor: default; }
.st .st-box.sel { cursor: move; }
.st .st-box:not(.sel) .st-hd { display: none; }
.st .st-lrow { cursor: pointer; }
.st .st-lrow.drag { cursor: grabbing; }
.st .st-lgrouprow, .st .st-lrow .st-grip { cursor: grab; }

/* broadcast safe zone: red action-safe (93%) and title-safe (90%) frames, plus a very faint red centre cross */
.st-canvas::after { display:none; }
.st-canvas > .st-safe { position:absolute; inset:0; pointer-events:none; z-index:2;
  background:
    linear-gradient(rgba(255,60,60,.34), rgba(255,60,60,.34)) center / 100% 1px no-repeat,
    linear-gradient(rgba(255,60,60,.34), rgba(255,60,60,.34)) center / 1px 100% no-repeat; }
.st-canvas > .st-safe::before, .st-canvas > .st-safe::after { content:''; position:absolute; box-sizing:border-box; border:1px solid rgba(255,60,60,.8); }
.st-canvas > .st-safe::before { inset:3.5%; border-style:dashed; border-color:rgba(255,60,60,.55); }
.st-canvas > .st-safe::after { inset:5%; }

/* the "f" font-book button, shown beside colour pickers */
.font-btn { font:italic 700 24px/1 var(--izi-font); padding-bottom:.4rem !important; width:2.5rem; height:2.5rem; border-radius:50%; border:1px solid var(--line,#cfc7bd); background:var(--surface,#fff); color:inherit; cursor:pointer; display:inline-grid; place-items:center; padding:0; flex:none; }
.font-btn:hover:not(:disabled) { border-color:#3b6ef5; color:#3b6ef5; } .font-btn:disabled { opacity:.45; cursor:default; }
.fb-search, .fb-sample { width:100%; box-sizing:border-box; margin-bottom:.5rem; }
.fb-note { font-size:14px; opacity:.75; margin:.2rem 0 .6rem; }
.fb-list { max-height:min(55vh,28rem); overflow:auto; display:grid; gap:.25rem; }
.fb-row { display:grid; grid-template-columns:11rem 1fr; gap:1rem; align-items:center; text-align:left; padding:.5rem .7rem; border:1px solid transparent; border-radius:8px; background:transparent; color:inherit; cursor:pointer; }
.fb-row:hover, .fb-row:focus-visible { background:rgba(59,110,245,.1); border-color:#3b6ef5; } .fb-row.on { border-color:#3b6ef5; }
.fb-name { font:600 14px var(--izi-font); opacity:.8; } .fb-demo { font-size:22px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.colour-row { display:inline-flex; align-items:center; gap:.6rem; } .colour-row > select { flex:1; min-width:0; }
.st-ctl .font-btn, .st-camrow .font-btn { margin-left:.5rem; }
/* the safe zone must sit above the layer pictures (which are stacked from z-index 10 up) */
.st-canvas > .st-safe, .st-lpframe > .st-safe, .st-lptall > .st-safe { position:absolute; inset:0; pointer-events:none; z-index:80;
  background:
    linear-gradient(rgba(255,60,60,.34), rgba(255,60,60,.34)) center / 100% 1px no-repeat,
    linear-gradient(rgba(255,60,60,.34), rgba(255,60,60,.34)) center / 1px 100% no-repeat; }
.st-lpframe > .st-safe::before, .st-lpframe > .st-safe::after, .st-lptall > .st-safe::before, .st-lptall > .st-safe::after { content:''; position:absolute; box-sizing:border-box; border:1px solid rgba(255,60,60,.8); }
.st-lpframe > .st-safe::before, .st-lptall > .st-safe::before { inset:3.5%; border-style:dashed; border-color:rgba(255,60,60,.55); } .st-lpframe > .st-safe::after, .st-lptall > .st-safe::after { inset:5%; }

/* Presenter: pull the panel up under the top bar (the page's own 32px top padding left a big empty band) */
.frame:has(> .st), .app-shell.pa .frame { padding-top: 6px; }
.frame > .st { padding-top: .5rem; }
@media (max-width: 700px) { .frame:has(> .st), .app-shell.pa .frame { padding-top: 4px; } }
/* never let a tall stack make the screens too big for the three to sit side by side */
.st .st-canvases, .st .st-cwrap { --ch: min(max(var(--board-h, 0px), clamp(9rem, calc((100cqw - 14rem - 5rem) / 2.34), 24rem)), max(9rem, calc((100cqw - 14rem - 5rem) / 2.34))); }
.st .st-lrow { padding: .16rem .5rem; }

/* Stage panel: place the current and next lyric, the presentation and the camera on the stage picture */
.st-stageframe > .st-safe { position:absolute; inset:0; pointer-events:none; z-index:80; background: linear-gradient(rgba(255,60,60,.34), rgba(255,60,60,.34)) center / 100% 1px no-repeat, linear-gradient(rgba(255,60,60,.34), rgba(255,60,60,.34)) center / 1px 100% no-repeat; }
.st-stageframe > .st-safe::before, .st-stageframe > .st-safe::after { content:''; position:absolute; box-sizing:border-box; border:1px solid rgba(255,60,60,.8); }
.st-stageframe > .st-safe::before { inset:3.5%; border-style:dashed; border-color:rgba(255,60,60,.55); } .st-stageframe > .st-safe::after { inset:5%; }
.st-stageframe > .st-box { z-index:90; } .st-stageframe > .st-box.sel { z-index:100; cursor:move; } .st-stageframe > .st-guide { z-index:95; }
.st-stageplace { display:grid; gap:.4rem; } .st-stageprow { display:flex; align-items:center; justify-content:space-between; gap:.6rem; }
.st-stagepick.on { background:var(--izi-blue,#2f6bf5); color:#fff; border-color:transparent; }
.st-stageswitch { position:relative; width:2.4rem; height:1.35rem; border-radius:999px; border:0; background:rgba(128,128,140,.45); cursor:pointer; padding:0; flex:none; }
.st-stageswitch::after { content:''; position:absolute; top:.15rem; left:.15rem; width:1.05rem; height:1.05rem; border-radius:50%; background:#fff; transition:left .12s; }
.st-stageswitch.on { background:var(--izi-blue,#2f6bf5); } .st-stageswitch.on::after { left:1.2rem; } .st-stageswitch:disabled { opacity:.5; cursor:default; }
/* the stack of layers is level with the top and bottom of the two pictures; its rows share any extra height */
.st .st-layerlist.st-board { display:flex; flex-direction:column; }
.st .st-board .st-lrows { flex:1 1 auto; } .st .st-board .st-lrows > * { flex:1 1 auto; }
/* a picked layer looks the same whichever layer it is: blue edge and light tint, with no heavy dark outline round it */
.st .st-box.sel, .st-canvas .st-box.sel { outline: none; border: 2px solid var(--st-blue, #0a84ff); background: rgba(10,132,255,.14); }
.st-stageframe > .st-box { cursor: move; } .st-stageframe > .st-box:not(.sel) { background: rgba(255,255,255,.04); }

/* Library > Slides > Slide Deck: the deck on top, the presentation folders in a row beneath it */
.st-crumb { margin:.1rem 0 .6rem; font-size:14px; }
.st-folders { margin-top:.4rem; }
.st-folder.on { outline:2px solid var(--izi-blue,#2f6bf5); outline-offset:2px; border-radius:12px; }
.st-folder .st-mshow { position:relative; }
.st-foldbadge { position:absolute; right:.4rem; bottom:.4rem; background:rgba(0,0,0,.7); color:#fff; border-radius:999px; padding:.05rem .5rem; font:700 12px/1.4 var(--izi-font); }
.st-tickerbox { margin-top:.8rem; display:grid; gap:.5rem; } .st-tickerbox textarea { width:100%; box-sizing:border-box; }
.st .st-lrow { padding: .06rem .5rem; } .st .st-lrows { gap: .14rem; }

/* the font-book "f": beat the generic Izi button rule so the size really changes; file names under graphic tiles a little larger */
.font-btn.font-btn, .st.st[data-izi] .st-left button.font-btn { font:italic 700 24px/1 var(--izi-font) !important; width:2.5rem !important; height:2.5rem !important; padding:0 0 .4rem !important; border-radius:50% !important; }
.st-tile small { font-size:14px; line-height:1.15; }

/* the font-book "f" has no circle around it */
.font-btn.font-btn, .st.st[data-izi] .st-left button.font-btn { border:0 !important; background:transparent !important; box-shadow:none !important; border-radius:0 !important; }

/* the font book follows the Izi look: light grey boxes, blue focus, rounded rows, the Izi font */
.fb-search, .fb-sample { font:500 14px var(--izi-font); color:#111114 !important; caret-color:#2f6bf5; background:#f1f1f5 !important; border:1px solid #e6e6ec !important; border-radius:12px; padding:.6rem .85rem; outline:none; box-shadow:none; }
.fb-search::placeholder { color:#6b6b76 !important; opacity:1; }
.fb-search:focus, .fb-sample:focus { border-color:#2f6bf5 !important; box-shadow:0 0 0 3px rgba(47,107,245,.18); outline:none; }
.fb-note { color:#6b6b76; }
.fb-row { color:#111114; border-radius:12px; } .fb-name { color:#6b6b76; opacity:1; }
.fb-row:hover, .fb-row:focus-visible { background:rgba(47,107,245,.08); border-color:#2f6bf5; outline:none; } .fb-row.on { border-color:#2f6bf5; background:rgba(47,107,245,.08); }

/* Izi Presenter toggles only: the Stage page toggle everywhere in the Presenter. A round-ish grey or blue pad with a white dot that slides across.
   Izi Meeting, Izi Studio and the rest of the CMS keep their own tick boxes and switches. */
.st.st[data-izi] .st-stageswitch, .st.st[data-izi] .st-switch, .st.st[data-izi] input[type="checkbox"]:not(.plain-check):not(td input):not(th input) {
  appearance: none; -webkit-appearance: none; position: relative; box-sizing: border-box; flex: none; display: inline-block; vertical-align: middle; cursor: pointer; padding: 0; border: 0; margin: 0 .5rem 0 0;
  width: 2.4rem !important; min-width: 2.4rem !important; height: 2.25rem !important; min-height: 2.25rem !important; border-radius: 999px !important;
  background: rgba(128,128,140,.45) !important; box-shadow: none !important; transition: background .12s;
}
.st.st[data-izi] .st-stageswitch::after, .st.st[data-izi] .st-switch::after, .st.st[data-izi] input[type="checkbox"]:not(.plain-check):not(td input):not(th input)::after {
  content: '' !important; position: absolute; top: .15rem; left: .15rem; width: 1.05rem; height: 1.05rem; border-radius: 50%; background: #fff !important; box-shadow: none; transition: left .12s;
}
.st.st[data-izi] .st-stageswitch.on, .st.st[data-izi] .st-switch.on, .st.st[data-izi] input[type="checkbox"]:not(.plain-check):not(td input):not(th input):checked { background: var(--izi-blue, #2f6bf5) !important; }
.st.st[data-izi] .st-stageswitch.on::after, .st.st[data-izi] .st-switch.on::after, .st.st[data-izi] input[type="checkbox"]:not(.plain-check):not(td input):not(th input):checked::after { left: 1.2rem; }
.st.st[data-izi] .st-stageswitch:disabled, .st.st[data-izi] .st-switch:disabled, .st.st[data-izi] input[type="checkbox"]:disabled { opacity: .5; cursor: default; }
.st.st[data-izi] .st-stageswitch:focus-visible, .st.st[data-izi] .st-switch:focus-visible, .st.st[data-izi] input[type="checkbox"]:focus-visible { outline: 2px solid var(--izi-blue, #2f6bf5); outline-offset: 2px; }

.st.st[data-izi] .st-songpill { box-sizing:border-box; width:100%; padding:.55rem .8rem; border-radius:10px; background:var(--izi-blue); color:#fff; font-weight:700; line-height:1.25; overflow-wrap:anywhere; }
.st.st[data-izi] .st-songpill[hidden] { display:none; }

/* Stage step: the right column is one very big live Stage screen, no layer boxes */
.st-live .st-cell:nth-of-type(3) { display:none; }
.st-live.stagemode { display:block; }
.st-live.stagemode > .st-cell, .st-live.stagemode > .st-tall, .st-live.stagemode > .st-note { display:none; }
.st-live.stagemode > .st-cell:nth-of-type(3) { display:block; }

/* Stage preview: the box names sit on the right, the on-screen Current lyric / Next lyric tags sit on the left */
.st-fxprev .st-boxname { left:auto; right:2px; }

/* Bible Store */
.st .st-bstore { margin-top: 1.4rem; display: flex; flex-direction: column; gap: .4rem; }
.st .st-bstore h4 { margin: 0; }
.st .st-bsrow { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .45rem .7rem; border-radius: 10px; background: color-mix(in srgb, currentColor 6%, transparent); }
.st .st-bsbuy { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; justify-content: flex-end; }
.st .st-badge { font-size: 12px; font-weight: 700; padding: .15rem .55rem; border-radius: 999px; background: color-mix(in srgb, currentColor 12%, transparent); }
.st .st-badge.on { background: var(--izi-blue, #2f6bff); color: #fff; }
.sm-bstore summary { cursor: pointer; font-weight: 600; }
.sm-bstore[open] summary { margin-bottom: .4rem; }
/* Studio Card tab: a smaller room-screen preview that stays clear of the Saved Cards panel */
.st .st-txgrid { grid-template-columns:minmax(16rem,22rem) minmax(0,37rem); justify-content:start; }
.st .st-txright { max-width:37rem; z-index:0; }
.st .st-txright .st-fxprev { max-width:37rem; }
.st .st-sec + .st-sec { position:relative; z-index:1; }
/* Songs search pill: long enough to read its whole hint */
.st .st-songcol .st-input, .st .st-songsearch .st-input, .st .st-lib input[type=search].st-input { min-width:min(24rem,100%); }
.st .st-searchwrap { min-width:min(24rem,100%); }
/* the font-book "f": not bold anywhere, and right beside the colour circle */
.font-btn.font-btn, .st.st[data-izi] .st-left button.font-btn { font-weight:400 !important; }
.st-ctl:has(> .font-btn) { grid-template-columns:6.5rem auto auto 1fr; justify-content:start; }
.st-ctl > .font-btn { margin-left:.1rem; width:auto !important; justify-self:start; }
/* Studio Card tab: the three live screens on the right already show the card, so no second preview here */
.st .st-txright { display:block; position:static; max-width:none; }
.st .st-txgrid { grid-template-columns:minmax(16rem,22rem) minmax(0,1fr); }
.st-hidden { display:none; }
.st-looks { display:grid; grid-template-columns:repeat(auto-fill,minmax(12rem,1fr)); gap:1rem; margin-top:.5rem; }
.st-look { display:flex; flex-direction:column; gap:.4rem; padding:.4rem; border:1px solid var(--izi-line,#d9d9df); border-radius:14px; background:transparent; color:inherit; cursor:pointer; text-align:left; }
.st-look:hover, .st-look:focus-visible { border-color:#3b6ef5; box-shadow:0 0 0 2px rgba(59,110,245,.25); }
.st-look .st-fxprev { max-width:none; }
.st .st-look { display:block; }
.st .st-look .st-fxprev { width:100%; max-width:none; aspect-ratio:16/9; margin-bottom:.4rem; }
.st .st-look b { display:block; }
.st .st-look, .st.st[data-izi] .st-left button.st-look { height:auto !important; min-height:0 !important; border-radius:14px !important; padding:.4rem !important; white-space:normal; line-height:1.3; }

/* Songs search pill: wide enough for its whole sentence */
.st .st-songcol .st-input, .st .st-songsearch .st-input, .st .st-lib input[type=search].st-input { min-width:min(34rem,100%); width:100%; }
.st .st-searchwrap { min-width:min(34rem,100%); }
.st .st-songs { grid-template-columns:minmax(18rem,34rem) minmax(0,1fr); }
.st .st-songcol .st-input, .st .st-lib input[type=search].st-input { min-width:0; width:100%; }
.st .st-searchwrap { min-width:0; }
@media (max-width: 700px) { .st .st-songs { grid-template-columns:1fr; } }
.st .st-look.on { border-color:#3b6ef5; box-shadow:0 0 0 3px rgba(59,110,245,.35); }

/* Studio Card tab: the controls column is as wide as the tab menu, so the Looks gallery starts where the menu ends */
.st .st-txgrid { grid-template-columns:minmax(16rem,calc(var(--st-menu-w, 33rem) - 1.2rem)) minmax(0,1fr); }
@media (max-width:760px) { .st .st-txgrid { grid-template-columns:1fr; } }

/* new cards: SHOW and SCREENS, and the quick-find on SHOW */
.st-s-show { --tint:#2f6bf5; } .st-s-screens { --tint:#18a999; }
.st-cardsub { margin-bottom:.8rem; }
.sh-findbar { margin:.2rem 0 .6rem; } .sh-find { width:100%; max-width:40rem; box-sizing:border-box; }
.sh-out { display:grid; gap:.35rem; max-width:40rem; margin-bottom:.4rem; }
.sh-hit { display:flex; justify-content:space-between; align-items:center; gap:1rem; text-align:left; padding:.55rem .8rem; border:1px solid var(--izi-line,#d9d9df); border-radius:12px; background:transparent; color:inherit; cursor:pointer; height:auto !important; }
.sh-hit:hover, .sh-hit:focus-visible { border-color:#3b6ef5; box-shadow:0 0 0 2px rgba(59,110,245,.25); }
.sh-hit small { opacity:.7; }
.sh-hint { margin:.2rem 0 1rem; }
.sc2-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 12px 0; }
.sc2-count { margin-right: auto; }
.sc2-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.sc2-card { border: 1px solid var(--line, #d8dbe3); border-radius: 12px; padding: 12px; display: grid; gap: 8px; }
.sc2-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.sc2-head .soft { flex-basis: 100%; }
.sc2-card input { width: 100%; font-size: 12px; }
.sc2-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.sc2-dot { width: 10px; height: 10px; border-radius: 50%; background: #9aa0ad; display: inline-block; flex: none; }
.sc2-dot.on { background: #1fa65a; box-shadow: 0 0 0 3px rgba(31,166,90,.25); }
.sc2-dot.was { background: #e0a21b; }
.sc2-add, .sc2-help { margin-top: 18px; }
.sc2-help details { border-top: 1px solid var(--line, #d8dbe3); padding: 8px 0; }
.sc2-help summary { cursor: pointer; font-weight: 600; }
.sc2-help ol { margin: 8px 0 0 20px; display: grid; gap: 4px; }
.sk { display: grid; gap: 18px; margin: 18px 0; }
.sk-grid { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 18px; margin: 10px 0; }
.sk-tile { width: min(100%, 300px); }
.sk-tile.tall { width: min(100%, 170px); }
.sk-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-weight: 700; font-size: 14px; }
.sk-youtube .sk-plat { color: #ff4a3d; } .sk-facebook .sk-plat { color: #4d8cff; } .sk-instagram .sk-plat { color: #b66bff; } .sk-tiktok .sk-plat { color: #3fd0f0; }
.sk-badge { background: rgba(128,128,128,.35); color: inherit; border-radius: 6px; padding: 1px 7px; font-size: 11px; font-weight: 700; letter-spacing: .03em; }
.sk-badge.on { background: #e8402a; color: #fff; } .sk-badge.wait { background: #f59a24; color: #000; } .sk-badge.ready { background: rgba(128,128,128,.5); color: inherit; }
.sk-pic { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 22px; background: #000; overflow: hidden; box-shadow: 0 1px 2px rgba(0,0,0,.35), 0 8px 18px rgba(0,0,0,.45), 0 18px 36px rgba(60,70,140,.22), inset 0 1px 0 rgba(255,255,255,.12); transition: transform .22s cubic-bezier(.2,.8,.3,1), box-shadow .22s; }
.sk-tile:hover .sk-pic { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(0,0,0,.35), 0 14px 26px rgba(0,0,0,.5), 0 26px 48px rgba(70,90,190,.3), inset 0 1px 0 rgba(255,255,255,.16); }
@media (prefers-reduced-motion: reduce) { .sk-pic { transition: none; } .sk-tile:hover .sk-pic { transform: none; } }
.sk-tile.tall .sk-pic { aspect-ratio: 9 / 16; }
.sk-nopic { display: flex; align-items: center; justify-content: center; padding: 12px; text-align: center; color: #aaa; font-size: 14px; }
.sk-cap { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 10px; }
.sk-list { display: grid; gap: 10px; margin: 10px 0; }
.sk-item { border: 1px solid var(--line, #d8dbe3); border-radius: 12px; padding: 10px 12px; display: grid; gap: 6px; }
.sk-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.sk-key { font-size: 13px; word-break: break-all; }
.sk-url { word-break: break-all; font-size: 12px; }
.sk-form { display: grid; gap: 6px; max-width: 520px; margin-top: 12px; }
.sk-help details { border-top: 1px solid var(--line, #d8dbe3); padding: 8px 0; }
.sk-help summary { cursor: pointer; font-weight: 600; }
.sk-help ol { margin: 8px 0 0 20px; display: grid; gap: 4px; }
/* the card you are on shows its Ready pill in orange with black words; the Studio card is purple */
.st .st-step[aria-selected="true"] .st-badge, .st .st-step.on .st-badge { background: var(--izi-orange, #f59a24); color: #000; }
.st .st-s-studio { --tint: #8b4be0; }
/* the old Services, Backroom and Capture forms, now inside the Ìzí Presenter cards: they use the card colours in light and dark */
.st .panel-plain, .st .form-panel, .st .pw-lite { background: var(--izi-card); color: var(--izi-ink); border: 1px solid var(--izi-line); border-radius: 16px; padding: 14px 16px; margin: 0 0 12px; box-shadow: none; }
.st .panel-plain h2, .st .form-panel h2, .st .panel-plain h3, .st .form-panel h3 { color: var(--izi-ink); font-size: 15px; margin: 0 0 8px; }
.st .panel-plain p, .st .form-panel p, .st .field label, .st .cap-field span { color: var(--izi-ink); }
.st .panel-plain .soft, .st .form-panel .soft, .st .field .soft, .st .cap-field .soft { color: var(--izi-mu); }
.st .form-panel input:not([type=checkbox]):not([type=color]), .st .form-panel select, .st .form-panel textarea, .st .panel-plain input:not([type=checkbox]), .st .panel-plain select, .st .panel-plain textarea { background: var(--izi-panel); color: var(--izi-ink); border: 1px solid var(--izi-line); border-radius: 10px; padding: 8px 10px; }
.st .pw-lite { padding: 0; overflow: hidden; } .st .pw-top { padding: 10px 14px; border-bottom: 1px solid var(--izi-line); font-weight: 600; } .st .pw-rows > * { padding: 10px 14px; border-bottom: 1px solid var(--izi-line); }
.st .linkish { all: unset; cursor: pointer; font-weight: 600; text-decoration: underline; color: inherit; }
.st table { color: var(--izi-ink); } .st th, .st td { border-bottom: 1px solid var(--izi-line); padding: 6px 8px; text-align: left; }
/* PLAN card */
.pn { display: grid; gap: 10px; }
.pn-btns { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.pn-list, .pn-items { display: grid; gap: 8px; }
.pn-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; border: 1px solid var(--izi-line, #d8dbe3); border-radius: 12px; padding: 10px 12px; }
.pn-item { display: grid; grid-template-columns: 74px 1fr auto; gap: 12px; align-items: center; border: 1px solid var(--izi-line, #d8dbe3); border-left: 5px solid #6b7280; border-radius: 12px; padding: 8px 12px; }
.pn-when { display: grid; } .pn-when small { color: var(--izi-mu, #6b6f7b); }
.pn-what { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; } .pn-what small { flex-basis: 100%; }
.pn-pill { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--izi-mu, #6b6f7b); }
.pn-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.pn-bar { display: flex; height: 10px; border-radius: 6px; overflow: hidden; gap: 2px; margin: 6px 0; } .pn-bar i { display: block; min-width: 3px; }
.pn-sum { display: grid; gap: 4px; }
.pn-meta { display: grid; grid-template-columns: auto 1fr; gap: 6px 10px; align-items: center; max-width: 520px; }
.pn-note { border: 1px solid var(--izi-line, #d8dbe3); border-radius: 10px; padding: 8px 12px; background: var(--izi-panel, #f1f1f5); }
.pn .form-panel { display: grid; gap: 6px; max-width: 560px; }
@media (max-width: 720px) { .pn-item { grid-template-columns: 1fr; } }

/* Backroom settings pages (Outputs, Audio) */
.br-group { margin: 0 0 14px; }
.br-fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px 16px; }
.br-fields .field { display: flex; flex-direction: column; gap: 4px; }
.br-fields .field.check { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 8px; }
.br-grid { display: grid; gap: 3px; overflow-x: auto; }
.br-row { display: grid; grid-template-columns: 110px repeat(16, minmax(26px, 1fr)); gap: 3px; align-items: center; font-size: 12px; }
.br-head span { text-align: center; opacity: .7; }
.br-cell { height: 26px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.05); border-radius: 4px; cursor: pointer; padding: 0; }
.br-cell.on { background: #2f6bf5; border-color: #2f6bf5; }
.br-cell:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }

/* Capture: one Record button, settings tucked away */
.cap-wrap { grid-template-columns: minmax(20rem, 1fr) minmax(18rem, 24rem); }
.cap-wrap > .cap-live { order: 1; } .cap-wrap > .cap-more { order: 2; }
.cap-more > summary { cursor: pointer; font-weight: 700; font-size: 18px; margin: 0 0 .6rem; }
.cap-more:not([open]) > summary { margin: 0; }
.cap-where { margin: 0; }
#cap-start { min-width: 9rem; font-weight: 700; }
.cap-live.recording #cap-start { background: #dc2626 !important; border-color: #dc2626 !important; color: #fff !important; opacity: 1; animation: cap-pulse 1.6s ease-in-out infinite; }
.cap-live.recording .cap-timer { color: #ef4444; }
@keyframes cap-pulse { 50% { box-shadow: 0 0 0 6px rgba(220,38,38,.28); } }
@media (prefers-reduced-motion: reduce) { .cap-live.recording #cap-start { animation: none; } }
/* Screens page: the Stage picture joins the right column */
.st-live.screensmode .st-cell:nth-of-type(3) { display: block; }
/* Plans: room under the buttons row */
.pn-btns + .pn-meta { margin-top: 1.4rem; }
.sh-mixer, .sh-mixer.panel-plain { margin-top: 2.25rem; }
.sh-mixer > summary { cursor: pointer; font-weight: 700; font-size: 18px; }
.sh-mixer[open] > summary { margin-bottom: .6rem; }
.bk-logo { display:block; max-width: 220px; max-height: 120px; margin: .5rem 0 .9rem; border-radius: 8px; background: rgba(255,255,255,.06); padding: 6px; }

/* Colour picker in the Ìzí cards: a rainbow ring around the chosen colour. The ring is drawn as the border, so every browser shows it. */
.st.st[data-izi] input[type="color"] {
  -webkit-appearance: none; appearance: none; box-sizing: border-box; width: 2.6rem; height: 2.6rem; padding: 0; border: 4px solid transparent; border-radius: 50%; cursor: pointer;
  background: conic-gradient(from 200deg, #ff5a5a, #ffb43c, #f2e233, #7bd957, #34c6a5, #3b9cff, #8a5cf6, #e052c9, #ff5a5a) border-box !important; box-shadow: inset 0 0 0 2px var(--izi-card, #1c1d23);
}
.st.st[data-izi] input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; border-radius: 50%; background: transparent; }
.st.st[data-izi] input[type="color"]::-webkit-color-swatch { border: 2px solid var(--izi-card, #1c1d23); border-radius: 50%; }
.st.st[data-izi] input[type="color"]::-moz-color-swatch { border: 2px solid var(--izi-card, #1c1d23); border-radius: 50%; }
.rm-btn.rm-red, .rm-btn.on.rm-red { background:#d92d20; color:#fff; }
.sk-col { display: flex; flex-direction: column; gap: 18px; width: min(100%, 300px); }

.qh { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--izi-line, rgba(128,128,128,.3)); }
.qh summary { cursor: pointer; font-weight: 700; }
.qh dl { margin: .7rem 0 0; display: grid; gap: .15rem; max-width: 46rem; }
.qh dt { font-weight: 700; margin-top: .55rem; } .qh dd { margin: 0; opacity: .8; }


/* the big LIVE button beside Stream, and the red Live pill on the flow card */
.st-livebtn { all: unset; box-sizing: border-box; cursor: pointer; margin-left: .4rem; padding: .35rem 1.1rem; border-radius: 999px; font-weight: 700; letter-spacing: .06em; font-size: 15px; background: var(--izi-blue, #2f6bff); color: #fff; box-shadow: 0 6px 16px rgba(47,107,255,.35); transition: transform .2s cubic-bezier(.2,.8,.3,1), box-shadow .2s, background .2s; }
.st-livebtn:hover { transform: translateY(-2px); }
.st-livebtn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.st-livebtn.wait { background: #f59a24; color: #000; box-shadow: 0 6px 16px rgba(245,154,36,.35); }
.st-livebtn.on { background: #e8402a; color: #fff; box-shadow: 0 6px 16px rgba(232,64,42,.45); }
.st-livebtn:disabled { opacity: .5; cursor: default; transform: none; }
@media (prefers-reduced-motion: reduce) { .st-livebtn { transition: none; } .st-livebtn:hover { transform: none; } }
.st .st-step .st-badge.livered, .st .st-step[aria-selected="true"] .st-badge.livered, .st-badge.livered { background: #e8402a; color: #fff; }
.sk-connect .sk-note { margin: .5rem 0 .3rem; }

.qh-how { margin-top: 1.1rem; } .qh-how h4 { margin: 0 0 .3rem; }
.qh-how details { border-top: 1px solid var(--izi-line, rgba(128,128,128,.3)); padding: .55rem 0; } .qh-how details:last-of-type { border-bottom: 1px solid var(--izi-line, rgba(128,128,128,.3)); }
.qh-how summary { cursor: pointer; font-weight: 700; }
.qh > details > p.soft, .qh > details > .button { margin-top: .8rem; display: inline-block; }
.sk-col.sk-right { width: auto; } .sk-tallrow { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-start; } .sk-right > .sk-tile:not(.tall) { width: min(100%, 300px); }

/* the channel monitors sit in one straight row (wrapping to the next row when the window is narrow), tops lined up */
.sk-grid { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 18px; }
.sk-grid > .sk-tile { width: 240px; } .sk-grid > .sk-tile.tall { width: 135px; }
.sk-head { white-space: nowrap; } .sk-grid > .sk-tile.tall { width: 170px; }

/* three wide screens stacked on the left, the two upright ones side by side beside them, tops lined up */
.sk-grid.sk-two { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 24px; }
.sk-widecol { display: flex; flex-direction: column; gap: 18px; width: 240px; }
.sk-widecol > .sk-tile { width: 100%; }
.sk-grid.sk-two > .sk-tallrow { display: flex; flex-wrap: nowrap; gap: 18px; align-items: flex-start; }
.sk-grid.sk-two { align-items: center; }

/* Ìzí Studio card */
.iz-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.iz-sources { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1rem; margin: 1rem 0; }
.iz-src { border-radius: 14px; background: var(--panel, #fff); box-shadow: 0 6px 18px rgba(0,0,0,.18); overflow: hidden; transition: transform .15s ease, box-shadow .15s ease; }
.iz-src:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.24); }
.iz-src.on { box-shadow: 0 0 0 3px #d92d20, 0 10px 24px rgba(0,0,0,.24); }
.iz-pickbtn { display: block; width: 100%; padding: 0; border: 0; background: #000; cursor: pointer; }
.iz-thumb, .iz-prev { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #000; }
.iz-prev { max-width: 420px; border-radius: 12px; margin: .5rem 0 1rem; box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.iz-code { font: 600 17px/1 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .12em; padding: 0 .4rem; }
/* Ìzí Studio link (18 Nov): one Studio screen above the tabs, and a pill saying whether Ìzí Studio is linked */
.iz-screen { position: relative; max-width: 420px; margin: .5rem 0 1rem; }
.iz-screen .iz-prev { margin: 0; }
.iz-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; border-radius: 12px; background: #0c0c10; color: rgba(255,255,255,.6); font: 500 13px/1.3 inherit; }
.iz-empty[hidden] { display: none; }
.iz-link { display: inline-flex; align-items: center; gap: .45rem; height: 27px; padding: 0 .75rem; border-radius: 999px; background: rgba(127,127,127,.2); color: inherit; font-size: 12px; font-weight: 600; margin-top: .25rem; }
.iz-link i { width: 8px; height: 8px; border-radius: 50%; background: #a1a1aa; flex: none; }
.iz-link.linked i { background: #0a84ff; box-shadow: 0 0 0 3px rgba(10,132,255,.18); }
.iz-link.live i { background: #30d158; box-shadow: 0 0 0 3px rgba(48,209,88,.2); animation: iz-pulse 1.6s ease-in-out infinite; }
@keyframes iz-pulse { 50% { box-shadow: 0 0 0 6px rgba(48,209,88,0); } }
@media (prefers-reduced-motion: reduce) { .iz-link.live i { animation: none; } }
.iz-meta { display: grid; gap: .35rem; padding: .6rem .75rem .75rem; }
.iz-meter { display: block; height: 6px; border-radius: 3px; background: rgba(127,127,127,.25); overflow: hidden; }
.iz-meter i { display: block; height: 100%; width: 0; background: #12b76a; transition: width .1s linear; }
.iz-row { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin: .5rem 0; }
.iz-seg { display: flex; gap: .4rem; flex-wrap: wrap; }
.iz-snd { display: inline-flex; align-items: center; gap: .35rem; font-size: 14px; }
.iz-add, .iz-mode, .iz-feed { margin-top: 1.25rem; }

/* ---- Ìzí type lock: Ìzí Presenter and Ìzí Meeting use only the fonts and sizes Ìzí Studio uses --------------------------------------
   Studio (Shared/Theme.swift): SF Pro for all text, SF Mono only for small caps labels, badges and numbers.
   Sans 11 12 13 14 15 · titles 18 20 22 24 26 · display 30 · mono 10 11 12 · weights 400 500 600 700. Nothing else. */
.st b, .st strong, .iz-app b, .iz-app strong { font-weight: 700; }
.st .st-primary, .st .st-savedchip, .st a.button, .st .st-headbtns a { font-size: 14px; }
.st .st-ctl span, .st .st-ctl output, .st .st-chk span, .st .st-camrow span, .st .st-look b { font-size: 14px; }
.st .rm-card small { font-size: 12px; }
.iz-app { font-size: 14px; }
.iz-app button, .iz-app input, .iz-app select, .iz-app textarea { font-family: var(--izi-font); font-size: 14px; }
.iz-app .iz-lbl { font-size: 14px; }
.st .iz-row label, .st .st-camrow label, .st .cap-field span { font-size: 14px; }
.st .cap-timer { font-size: 22px; }
.qh dd ul { margin: .25rem 0 0; padding-left: 1.2rem; display: grid; gap: .2rem; }

/* Ìzí apps: the sign-in page uses the Ìzí blue, not the Connect orange. */
.izi-auth .auth-sub { color: #0A84FF; text-transform: none; letter-spacing: 0; font-size: 18px; }
.izi-auth .auth-word { font-size: 30px; letter-spacing: 0; }
/* Ìzí sign-in: Studio look (dark page, card, blue accent). */
body:has(.izi-auth) { background: #0A0A0D; }
.izi-auth .auth-word { color: #fff; }
.izi-auth .auth-foot { color: #8E8E93; }
.izi-auth .auth-card { background: #1C1C20; border-color: #292A2E; border-top: 6px solid #0A84FF; border-radius: 24px; box-shadow: none; color: #fff; }
.izi-auth .auth-card h1, .izi-auth .auth-card h2, .izi-auth .auth-card label, .izi-auth .auth-card strong, .izi-auth .auth-card .soft { color: #fff; }
.izi-auth .auth-card input { background: #292A2E; color: #fff; border-color: #3A3A3F; }
.izi-auth .auth-card input:focus { outline: 2px solid #0A84FF; border-color: #0A84FF; }
.izi-auth .auth-card button:not(.quiet):not(.linklike):not(.reveal) { background: #0A84FF; color: #fff; border-color: #0A84FF; }
.izi-auth .auth-card a, .izi-auth .auth-card .linklike { color: #0A84FF; }
/* Ìzí sign-in: Ìzí type (SF Pro), Ìzí buttons and fields, nothing from Connect's look. */
.izi-auth, .izi-auth * { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro", system-ui, sans-serif; }
.izi-auth .auth-word { font-weight: 700; }
.izi-auth .auth-card h1 { font-size: 22px; font-weight: 600; }
.izi-auth .auth-card input { border-radius: 16px; min-height: 44px; }
.izi-auth .auth-card button { border-radius: 16px; font-weight: 600; }
.izi-auth .auth-card button.quiet, .izi-auth .auth-card button.secondary, .izi-auth .auth-card button.ghost, .izi-auth .auth-card .row button:not(:only-child) { background: #292A2E; color: #fff; border: 1px solid #3A3A3F; }
.izi-auth .auth-card button.quiet:hover, .izi-auth .auth-card button.secondary:hover, .izi-auth .auth-card button.ghost:hover { background: #333438; }
.izi-auth .auth-card button:disabled { opacity: .55; }
.izi-auth .auth-card input, .izi-auth .auth-card button { font-size: 15px; }
.izi-auth .auth-card label { font-size: 13px; }

/* Ìzí Presenter as an app: the page fills the window in Ìzí's own colours (no church theme, no web-page frame). */
body:has(.app-shell.pa) { background: #F8F9FB; }
body:has(.app-shell.pa .st[data-izi="dark"]) { background: #0A0A0D; }
.app-shell.pa, .app-shell.pa .main { background: transparent; }
.app-shell.pa .main .pa-bar { border: 0; padding: .5rem 1.1rem 0; justify-content: flex-end; font: 400 13px/1.2 -apple-system, BlinkMacSystemFont, "SF Pro", system-ui, sans-serif; color: #6E6E75; }
.app-shell.pa .main:has(.st[data-izi="dark"]) .pa-bar { color: #9E9EA8; }
.app-shell.pa .main .pa-tools { gap: .7rem; flex-wrap: nowrap; }
.app-shell.pa .main .pa-tools .who { font: inherit; }
.app-shell.pa .main .pa-tools button { font: 500 13px/1.2 -apple-system, BlinkMacSystemFont, "SF Pro", system-ui, sans-serif; height: 32px; min-height: 32px; padding: 0 .9rem; background: transparent; color: inherit; border: 1px solid rgb(128 128 128 / .4); border-radius: 999px; cursor: pointer; }
.app-shell.pa .main .frame { padding: 0; }
.app-shell.pa .main .frame > .st { border-radius: 0; padding-top: .6rem; }

/* Ìzí Presenter pills: ONE height for every pill, taken from Ìzí Studio (32 tall, 13 text). Big touch buttons (rm-big) and the phone
   remote's pills on touch screens stay large. */
.st .st-tab, .st .st-subtab, .st button.small, .st .button.small, .st .st-left .button.small, .st .st-primary, .st .button.primary, .st button.primary:not(.rm-big) { height: 32px !important; min-height: 32px !important; padding: 0 .9rem !important; font-size: 13px !important; line-height: 1.2 !important; display: inline-flex; align-items: center; justify-content: center; }
@media (pointer: fine) { .rm-btn:not(.rm-big) { min-height: 32px !important; height: 32px !important; padding: 0 .9rem !important; font-size: 13px !important; line-height: 1.2 !important; border-radius: 999px; } }
.st .st-round { width: 32px !important; height: 32px !important; min-height: 0 !important; }
.st button.linkish, .st .linkish { height: auto !important; min-height: 0 !important; padding: 0 !important; border: 0 !important; background: none !important; border-radius: 0 !important; display: inline !important; font-size: inherit !important; box-shadow: none !important; }

/* Ìzí Presenter header: the approved Presenter icon instead of a text tile. */
.st .st-mark { background: none !important; border: 0 !important; object-fit: cover; padding: 0; }

/* Ìzí Presenter Studio looks gallery: the card keeps its size; the little screen fills it edge to edge, with small text and the name laid over its lower edge. */
.st .st-looks { grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); gap: .8rem; }
.st .st-look, .st.st[data-izi] .st-left button.st-look { position: relative !important; display: block !important; width: 100% !important; padding: 0 !important; overflow: hidden; text-align: left; }
.st .st-look .st-fxprev { width: 100% !important; max-width: none !important; margin: 0 !important; aspect-ratio: 16 / 9; border-radius: 0 !important; border: 0 !important; }
.st .st-look b { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.1rem .6rem .4rem; font-size: 13px !important; line-height: 1.2; color: #fff; background: linear-gradient(transparent, rgb(0 0 0 / .65)); text-shadow: none; pointer-events: none; z-index: 99; }

/* Ìzí Presenter app: name + Sign Out live in the header row; the strip above the logo is gone. Looks cards keep their shape in every web view. */
.app-shell.pa .main:has(.st-headbtns) > .pa-bar { display: none; }
.st-headbtns .pa-tools { margin-right: .4rem; font: 400 13px/1.2 var(--izi-font, -apple-system, sans-serif); color: var(--izi-mu, #6E6E75); }
.st .st-look .st-fxprev { height: 0 !important; padding-top: 56.25% !important; aspect-ratio: auto !important; }

/* Ìzí Presenter type sizes follow Ìzí Studio (owner's marked screenshots: too big or too bold). Page title 18, section headings 14, flow cards 15 with a mono 11 line. */
.st .st-title h2 { font-size: 18px !important; letter-spacing: -.01em; }
.st .st-sub, .st h3.st-sub { font-size: 14px !important; font-weight: 600 !important; }
.qh summary, .qh > details > summary, .sh-mixer > summary { font-size: 14px !important; font-weight: 600 !important; }
.st .st-step b { font-size: 15px !important; font-weight: 600 !important; }
.st .st-step small { font: 400 11px var(--izi-mono, ui-monospace, "SF Mono", monospace) !important; }
.st .st-tiny { font-size: 12px !important; font-weight: 500 !important; white-space: nowrap !important; }
.st .linkish { text-decoration: none !important; color: var(--izi-blue) !important; }
.st-strinfo span { white-space: nowrap; }
.st-strcard:has(.st-strinfo) { width: auto; }
/* Pickers look the same in the Mac app's web view as in a browser: no native control, one comfortable height. */
.st select { -webkit-appearance: none; appearance: none; height: 40px; min-height: 40px; padding: 0 2.2rem 0 .85rem; border-radius: 12px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5l3 3 3-3' fill='none' stroke='%238e8e98' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .8rem center; }

/* Previous / Next on a computer: half the height (56). On a phone or tablet remote they stay big for thumbs. */
@media (pointer: fine) { .st .rm-big { min-height: 56px !important; height: 56px !important; font-size: 15px !important; font-weight: 600 !important; border-radius: 999px !important; } }

/* Ìzí Presenter, app wide: text no bigger than Ìzí Studio's. Descriptions and notes 12, controls and labels 13, pills medium weight (Studio's chips are 13 medium). */
.st.st p:not(.scr p), .st.st .soft:not(.scr *), .st.st .st-note, .st.st li:not(.scr li), .st.st dd, .st.st label small, .st.st .st-strinfo span { font-size: 12px; line-height: 1.5; }
.st.st input, .st.st textarea, .st.st select, .st.st .st-input, .st.st .st-ctl span, .st.st .st-ctl output, .st.st .st-chk span, .st.st .st-camrow span, .st.st label { font-size: 13px; }
.st.st .st-lbl { font-size: 11px; }
.st .st-tab, .st .st-subtab, .st button.small, .st .button.small, .st .st-left .button.small, .st .st-primary, .st .button.primary, .st button.primary:not(.rm-big), .st .rm-btn:not(.rm-big) { font-weight: 500 !important; }
.st .st-pagehead p { font-size: 13px; }
.st .sh-hint { font-size: 12px; }

/* ---- Ìzí Presenter, owner's marks of 12 Nov (night) ---- */
/* Library: the second row of pills (Find And Show, Add And Edit, Song Select) is the same pill as every other. */
.st .st-savedchip { height: 32px !important; min-height: 32px !important; padding: 0 .9rem !important; font-size: 13px !important; font-weight: 500 !important; line-height: 1.2 !important; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px !important; }
/* Studio card: Text, Extrude, Outline, Glow, Shadow, Echo headings are pills like Saved Cards / Save Card; their insides are lighter and smaller. */
.st .st-fxgroup { border: 0 !important; padding: 0 !important; margin: 0 0 .5rem; background: none !important; }
.st .st-fxgroup > summary, .st .st-fxhead { display: inline-flex !important; align-items: center; height: 32px; padding: 0 .9rem !important; border: 1px solid var(--izi-line); border-radius: 999px; background: var(--izi-card); color: var(--izi-ink); font-size: 13px !important; font-weight: 500 !important; line-height: 1.2; cursor: pointer; list-style: none; }
.st .st-fxgroup > summary::-webkit-details-marker { display: none; }
.st .st-fxgroup[open] > summary { background: var(--izi-dark, #1c1c20); color: #fff; border-color: transparent; }
.st .st-fxhead { cursor: default; }
.st .st-fxbody { padding: .6rem .2rem .2rem; }
.st .st-fxbody, .st .st-fxbody label, .st .st-fxbody span, .st .st-fxbody output, .st .st-fxbody input, .st .st-fxbody select, .st .st-fxbody button { font-size: 12px !important; font-weight: 400 !important; }
.st .st-fxbody select { height: 32px; min-height: 32px; }
/* Quick Help: one look everywhere (14, semibold, white). */
.st .qh > details > summary, .st .qh summary { font-size: 14px !important; font-weight: 600 !important; color: var(--izi-ink); }
/* Plans: room between New Plan and the count. */
.st .pn-btns + p.soft, .st .pn-btns + .soft { margin-top: .9rem; }
/* Sections: a row of pills, then the section; and the Show page's own boxes. */
.st .st-secbar { margin: .2rem 0 1rem; }
.st .rm-panel { border: 1px solid var(--izi-line); border-radius: 18px; padding: 1rem 1.1rem; margin: 0 0 1rem; display: grid; gap: .8rem; background: color-mix(in srgb, var(--izi-card) 60%, transparent); }
.st .rm-panel > h3.st-sub { margin: 0; }
.st .rm-panel .sh-hint { margin: 0; }
.st .sh-mixer { border: 1px solid var(--izi-line); border-radius: 18px; padding: .8rem 1.1rem; margin-top: 0; }
.st .sk h3, .st .st-strhow h3, .st .sk-mon h3 { font-size: 14px; font-weight: 600; }

/* Looks gallery cards are plain boxes with a button role (a real <button> shrinks its insides to the label's width in the Mac app's web view, which squashed the previews to nothing). */
.st .st-looks .st-look { display: block !important; box-sizing: border-box; width: 100%; position: relative !important; padding: 0 !important; overflow: hidden; cursor: pointer; border: 1px solid var(--izi-line); border-radius: 14px !important; background: transparent; color: inherit; text-align: left; height: auto !important; min-height: 0 !important; }
.st .st-looks .st-look:focus-visible { outline: 2px solid var(--izi-blue); outline-offset: 2px; }
.st .st-looks .st-look:hover { border-color: var(--izi-blue); }
.st .st-looks .st-look.on { border-color: var(--izi-blue); box-shadow: 0 0 0 2px color-mix(in srgb, var(--izi-blue) 40%, transparent); }

/* Studio card: Text, Extrude, Outline, Glow, Shadow, Echo and Colour Split are collapsible menus again (a box with an arrow), titled in the pill type (13 medium). */
.st .st-fxgroup { border: 1px solid var(--izi-line) !important; border-radius: 14px; padding: .1rem .85rem !important; margin: 0 0 .6rem; background: none !important; }
.st .st-fxgroup > summary, .st .st-fxhead { display: list-item !important; list-style: revert; height: auto; padding: .6rem 0 !important; border: 0 !important; border-radius: 0; background: none !important; color: var(--izi-ink); font-size: 13px !important; font-weight: 500 !important; cursor: pointer; }
.st .st-fxgroup[open] > summary { background: none !important; color: var(--izi-ink); border: 0 !important; }
.st .st-fxgroup > summary::-webkit-details-marker { display: inline-block; }
.st .st-fxbody { padding: .2rem 0 .6rem; }

/* Studio card: Text, Extrude, Outline, Glow, Shadow, Echo and Colour Split as one row of pills, the chosen one's adjustments beneath. */
.st .st-fxctls .st-secbar { margin: .2rem 0 .7rem; flex-wrap: wrap; }
.st .st-fxctls .st-fxbody { padding: .2rem 0 .6rem; }

/* Looks gallery: four across, so each preview is half the width and half the height. */
.st .st-looks { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .6rem; }
@media (max-width: 640px) { .st .st-looks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.st .st-looks .st-look b { font-size: 11px !important; font-weight: 500 !important; padding: .7rem .4rem .25rem !important; }

/* Presenter round (12 Nov): colour pickers sit in the same column as the sliders; the add tile is centred; Delete is a light red */
.st .st-colrow { display: grid; grid-template-columns: 4.4rem 2.5rem auto minmax(0, 1fr); gap: .5rem; align-items: center; }
.st .st-colrow > span:first-child { grid-column: 1; }
.st .st-colrow > input[type="color"] { grid-column: 2; margin: 0; }
.st .st-colrow > .font-btn { grid-column: 3; margin-left: 0; }
.st .st-add { text-align: center; line-height: 1.3; padding: 0 .5rem; flex-direction: column; }
.st .st-madd { text-align: center; line-height: 1.3; }
.pn-row button.danger { color: var(--izi-red, #d92d20); font-weight: 400; font-size: 12px; }
/* the Ìzí brand name and Quick Help use the brand's second typeface (the mono used on the small labels and badges) */
.st .st-brand h1 { font-family: var(--izi-mono, ui-monospace, "SF Mono", Menlo, monospace); font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.st .qh summary, .st .qh > details > summary { font-family: var(--izi-mono, ui-monospace, "SF Mono", Menlo, monospace) !important; font-size: 12px !important; font-weight: 500 !important; letter-spacing: .04em; text-transform: uppercase; }
.st .st-barcols .st-colrow { grid-template-columns: 6.2rem 2.5rem auto minmax(0, 1fr); }
.st .st-mto { white-space: nowrap; }
.st .st-mto > select, .st .st-mto > .st-input { flex: 1 1 auto; min-width: 0; }
/* heads-up before the browser's screen picker (sharing part of the screen) */
.mt-explain-wrap { position: fixed; inset: 0; z-index: 3500; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.5); }
.mt-explain { background: #12151c; color: #f1f3f7; border-radius: 14px; padding: 1.1rem 1.2rem; max-width: 26rem; display: flex; flex-direction: column; gap: .6rem; font-size: 14px; }
.mt-explain ol { margin: 0; padding-left: 1.2rem; display: grid; gap: .35rem; }
.mt-explain .mt-rp-note { padding: 0; }
.mt-explain .mt-rp-go { display: flex; gap: .5rem; justify-content: flex-end; }

/* rows in Groups and Types: name matches the Plans / Templates / Types pills; Delete is small and red */
.pn-row b { font-size: 13px; font-weight: 500; }
.pn-row button.danger { font-size: 11px; color: var(--izi-red, #d92d20); }
.st .st-madd { color: var(--izi-ink); font-weight: 500; font-size: 12px; }

/* Remote page: the Presenter brand sits above the page title */
.rm-brand { justify-content: center; margin: 0 0 .7rem; }
.rm-title { margin: 0 0 .3rem; font-size: 30px; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }

.st-lptallpanel { display:flex; flex-direction:column; gap:6px; margin-top:6px; }
.st-lptallpanel .st-lptall { width:min(100%, 320px); max-width:320px; aspect-ratio:9/16; overflow:visible; }
.st-lptall .st-lpprev { position:absolute; inset:0; background:transparent; }
.st .st-lptall .st-lpbox { outline: 2px solid var(--izi-blue, #2f6bff); }

/* Ìzí Presenter, Meeting card: four plain sections (the meeting, join, gallery, screens) */
.st-meetpage { display: grid; gap: 1rem; }
.st-meetpage [hidden] { display: none !important; }
.st-msec { border: 1px solid color-mix(in srgb, currentColor 14%, transparent); background: color-mix(in srgb, currentColor 4%, transparent); border-radius: 14px; padding: .9rem 1.1rem 1.1rem; min-width: 0; }
.st-msec > .st-sub { margin: 0 0 .7rem; }
.st-meetbar { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; }
.st-meetbar .st-meetstatus { flex: 1 1 14rem; margin: 0; min-width: 0; }
.st-connected { background: #1f9d55; color: #fff; border-color: transparent; flex: none; white-space: nowrap; }
.st-connected.off { background: transparent; color: inherit; border-color: color-mix(in srgb, currentColor 30%, transparent); }
.st-connectrow { display: flex; align-items: center; gap: .7rem; margin: 0 0 .6rem; }
.st-connectrow .button { flex: none; white-space: nowrap; min-width: 8.5rem; }
.st .st-connectrow .st-ctl, .st-meetctl .st-ctl { display: flex; align-items: center; gap: .6rem; flex: 1 1 auto; min-width: 0; margin: 0; }
.st-connectrow .st-ctl > span, .st-meetctl .st-ctl > span { flex: none; width: 6.5rem; font-weight: 600; }
.st-connectrow .st-ctl > select, .st-connectrow .st-ctl > input, .st-meetctl .st-ctl > select { flex: 1 1 auto; min-width: 0; width: 100%; }
.st-meetgrid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
.st-meetctl { display: grid; gap: .65rem; align-content: start; }
.st-meetctl .button { justify-self: stretch; }
.st-meetctl .st-ctl > span { width: 4.5rem; }
.st-meetopen { display: flex; gap: .6rem; flex-wrap: wrap; }
.st-meetopen .button { flex: 1 1 8rem; }
.st-meetctl > p { margin: 0; }
.st-galprev { container-type: size; aspect-ratio: 16 / 9; width: 100%; background: #0b0e14; border-radius: 12px; overflow: hidden; display: grid; }
.st-galprev .scr-gal { align-self: stretch; }
.st-galempty { align-self: center; justify-self: center; padding: 1rem; text-align: center; }
.st .st-badge.connected { background: #1f9d55; color: #fff; }
@media (max-width: 900px) { .st-meetgrid { grid-template-columns: minmax(0, 1fr); } }
.st .st-meetbar .st-connected { background: #1f9d55; color: #fff; border-color: transparent; }
.st .st-meetbar .st-connected.off { background: transparent; color: inherit; border-color: color-mix(in srgb, currentColor 30%, transparent); }
.st-meetgrid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.st-meetopen .button { white-space: nowrap; padding-inline: .7rem; }
/* Meeting card sections follow the Presenter section look: soft frame, small note, dark tiles inside */
.st .st-msec { border: 1px solid color-mix(in srgb, currentColor 16%, transparent); background: transparent; border-radius: 16px; padding: 1rem 1.1rem 1.1rem; }
.st .st-msec > .st-sub { font-size: 13px; font-weight: 600; margin: 0 0 .25rem; }
.st .st-msecnote { font-size: 12px; margin: 0 0 .8rem; opacity: .75; }
.st .st-msec select, .st .st-msec input[type="text"], .st .st-msec input:not([type]) { border-radius: 12px; }
.st .st-mtile { flex: 1 1 14rem; min-width: 0; display: flex; flex-direction: column; gap: .3rem; padding: .7rem .9rem; border-radius: 14px; background: #10141f; color: #fff; }
.st .st-mtile small { font-size: 12px; opacity: .7; }
.st .st-mtile .st-meetstatus { margin: 0; flex: none; font-size: 13px; }
.st .st-galprev { border-radius: 14px; background: #10141f; }
.st .st-danger { background: #d92d20; color: #fff; border-color: transparent; }
.st .st-meetbar .button { flex: none; white-space: nowrap; }
.st .st-meetbar + .st-connectrow { margin: .8rem 0 0; }
/* card colours: both Ìzí cards blue, the others spread out */
.st .st-s-plan { --tint:#18a999; } .st .st-s-show { --tint:#e0457b; } .st .st-s-izistudio { --tint:#2f6bf5; } .st .st-s-guests { --tint:#2f6bf5; }
.st .st-lit { background: #e0662f; color: #fff; border-color: transparent; }
.st .st-diag { white-space: pre-line; }
/* Studio Card tab: the preview screen sits on the right, the Looks gallery runs full width underneath */
.st .st-txright .st-fxprev { width: 100%; max-width: 37rem; }
.st .st-prevnote { margin: .5rem 0 0; font-size: 13px; }
.st .st-lookbox { margin-top: 1.2rem; }
/* Captions tab: both screens drawn at one height (the wide one 16:9, the vertical one 9:16) so a place on one can be judged on the other */
.st .st-cappreview { --cap-h: 340px; display: flex; flex-wrap: wrap; gap: 1.2rem; align-items: flex-start; }
.st .st-cappreview .st-capframe { position: relative; flex: none; height: var(--cap-h); max-width: 100%; }
.st .st-cappreview .st-capframe:not(.tall) { width: calc(var(--cap-h) * 16 / 9); aspect-ratio: 16 / 9; }
.st .st-cappreview .st-capframe.tall { width: calc(var(--cap-h) * 9 / 16); max-width: calc(var(--cap-h) * 9 / 16); aspect-ratio: 9 / 16; }
.st .st-capframe .st-lpbox { outline: 2px solid var(--izi-blue, #2f6bff); }

.st-capframe > .st-safe { position:absolute; inset:0; pointer-events:none; z-index:80;
  background:
    linear-gradient(rgba(255,60,60,.34), rgba(255,60,60,.34)) center / 100% 1px no-repeat,
    linear-gradient(rgba(255,60,60,.34), rgba(255,60,60,.34)) center / 1px 100% no-repeat; }
.st-capframe > .st-safe::before, .st-capframe > .st-safe::after { content:''; position:absolute; box-sizing:border-box; border:1px solid rgba(255,60,60,.8); }
.st-capframe > .st-safe::before { inset:3.5%; border-style:dashed; border-color:rgba(255,60,60,.55); } .st-capframe > .st-safe::after { inset:5%; }
.st .st-capframe .st-lpover { z-index: 100; }
.st .st-qadd { display: grid; gap: .5rem; margin: 0 0 .8rem; }
.st .st-qadd .button { justify-self: start; }
.st-meetpage[hidden], .st .st-meetpage[hidden] { display: none !important; }
/* Question Queue: each question is a small card; drag a card to put it in order */
.st .st-qlist { max-width: none; gap: .5rem; }
.st .st-qcard { position: relative; display: grid; gap: .5rem; padding: .65rem .8rem; border-radius: 14px; background: color-mix(in srgb, currentColor 6%, transparent); border: 1px solid color-mix(in srgb, currentColor 12%, transparent); cursor: grab; touch-action: none; user-select: none; }
.st .st-qcard.done { cursor: default; opacity: .75; touch-action: auto; }
.st .st-qcard.dragging { z-index: 5; cursor: grabbing; box-shadow: 0 8px 22px rgb(0 0 0 / .35); opacity: .95; }
.st .st-qcard:focus-visible { outline: 2px solid var(--izi-blue, #2f6bff); outline-offset: 2px; }
.st .st-qcard.drop-above::before, .st .st-qcard.drop-below::after { content: ''; position: absolute; left: 6px; right: 6px; height: 3px; border-radius: 2px; background: var(--izi-blue, #2f6bff); }
.st .st-qcard.drop-above::before { top: -.34rem; } .st .st-qcard.drop-below::after { bottom: -.34rem; }
.st .st-qcard .st-qtext { display: flex; flex-direction: column; gap: .15rem; }
.st .st-qcard .st-qwords { font-size: 13px; line-height: 1.35; }
.st .st-qcard .st-qfrom { font-size: 12px; }
.st .st-qcard .st-qbtns { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: flex-start; }
.st .st-qcard .button.small { font-size: 12px !important; padding: 0 .75rem !important; }
.st .st-qdone .st-qcard { margin-top: .5rem; }
/* People list sits under the chat and queue: smaller type and a smaller toggle */
.st.st[data-izi] .st-people .st-guestrow b { font-size: 13px; }
.st.st[data-izi] .st-people .st-guestrow .soft, .st.st[data-izi] .st-people .st-ctl span { font-size: 12px; }
.st.st[data-izi] .st-people .button.small { font-size: 12px !important; padding: 0 .75rem !important; }
.st.st[data-izi] .st-people input[type="checkbox"] { width: 1.9rem !important; min-width: 1.9rem !important; height: 1.1rem !important; min-height: 1.1rem !important; margin-right: .4rem; }
.st.st[data-izi] .st-people input[type="checkbox"]::after { top: .13rem; left: .13rem; width: .84rem; height: .84rem; }
.st.st[data-izi] .st-people input[type="checkbox"]:checked::after { left: 1rem; }
/* distance numbers on the Layers preview: small and light so they never crowd the screen */
.st .st-lpval { font: 500 8px/1 var(--izi-font); padding: 1px 3px; border-radius: 3px; background: rgba(255,61,154,.82); letter-spacing: 0; }
/* Layers pictures: every layer's box stays visible on top, and the lower third's panel is see-through so the boxes under it can be seen */
.st-canvas .st-box { z-index: 200; }
.st-canvas .scr-lower, .st-canvas .scr-lower-design, .st-canvas .scr-lower-gfx { opacity: .5; }
.st-canvas .st-box:not(.sel) { border-color: rgba(255,255,255,.85); }

/* ===== Ìzí Sermon Hub and Ìzí eLearning: stand-alone Ìzí apps. The church's own pages sit inside the Ìzí frame and take Ìzí colours and type. ===== */
body:has(.app-shell.hub-shell) { background: #F8F9FB; }
body:has(.app-shell.hub-shell .st[data-izi="dark"]) { background: #0A0A0D; }
.app-shell.hub-shell .main .frame { padding: 0; }
.app-shell.hub-shell .main .frame > .st { border-radius: 0; padding-top: .6rem; min-height: 100vh; }
.st.hub [hidden] { display: none !important; }
.st.hub a.hub-button.on { background: var(--izi-ink); border-color: var(--izi-ink); color: var(--izi-card); }
.st.hub .st-step { text-decoration: none; }
.st.hub .st-steps { margin-bottom: 1rem; }
/* Connect's own colours become Ìzí's inside the frame, in both light and dark */
.st.hub { --paper: var(--izi-bg); --surface: var(--izi-card); --ink: var(--izi-ink); --ink-soft: var(--izi-mu); --line: var(--izi-line); --action: var(--izi-blue); --action-ink: #fff; --action-soft: color-mix(in srgb, var(--izi-blue) 12%, transparent); --accent: var(--izi-blue); --radius: 14px; --ink-body: var(--izi-ink); --danger: var(--izi-red); --ok: var(--izi-green); }
.hub-pane { background: var(--izi-card); border: 1px solid var(--izi-line); border-radius: 26px; box-shadow: var(--izi-shadow); padding: 1.5rem 1.6rem 2.2rem; min-height: 24rem; color: var(--izi-ink); font-size: 14px; }
.hub-pane, .hub-pane * { font-family: var(--izi-font); }
.hub-pane .pagehead h1, .hub-pane .pagehead h2 { font-size: 22px; font-weight: 700; letter-spacing: -.02em; margin: 0 0 .3rem; }
.hub-pane .pagehead p, .hub-pane .soft { color: var(--izi-mu); font-size: 14px; }
.hub-pane p, .hub-pane li { font-size: 14px; line-height: 1.55; }
.hub-pane h2:not(.pagehead h2) { font-size: 18px; font-weight: 700; } .hub-pane h3 { font-size: 15px; font-weight: 600; }
.hub-pane .button, .hub-pane button.button, .hub-pane a.button { border-radius: 999px; font-weight: 500; font-size: 13px; height: 32px; min-height: 32px; padding: 0 .9rem; display: inline-flex; align-items: center; background: var(--izi-card); color: var(--izi-ink); border: 1px solid var(--izi-line); box-shadow: none; }
.hub-pane .button.primary, .hub-pane button.primary, .hub-pane a.button.primary { background: var(--izi-blue); border-color: var(--izi-blue); color: #fff; box-shadow: none; }
.hub-pane input:not([type=checkbox]):not([type=radio]):not([type=range]), .hub-pane select, .hub-pane textarea { font-size: 14px; background: var(--izi-panel); color: var(--izi-ink); border: 1px solid var(--izi-line); border-radius: 12px; }
.hub-pane a { color: var(--izi-blue); }
.hub-pane .sm-seg { display: none; }
.hub-pane .sm-top { justify-content: flex-start; }
@media (max-width: 700px) { .hub-pane { padding: 1rem 1rem 1.6rem; border-radius: 20px; } }
.hub-pane input.sm-find { padding: 0 1rem 0 2.4rem; height: 36px; min-height: 36px; border-radius: 999px; }
.hub-pane .sm-top { display: flex; margin-bottom: .9rem; } .hub-pane .sm-find-wrap { flex: 0 1 22rem; }
.hub-pane .sm-find-wrap svg { color: var(--izi-mu); }

/* Ìzí type lock inside the hub pages: only the sizes Ìzí Studio uses (sans 11 12 13 14 15 18 20 22 24 26 30, weights 400 to 700) */
.hub-pane .sm-tile strong, .hub-pane .sm-res strong { font-size: 15px; font-weight: 700; }
.hub-pane .sm-tile.stat strong, .hub-pane .sm-stats strong, .hub-pane .el-stat strong { font-size: 26px; font-weight: 700; }
.hub-pane .sm-tile small, .hub-pane .sm-stats small, .hub-pane .el-stat span, .hub-pane .el-tile span, .hub-pane .ail-badge-name { font-size: 13px; font-weight: 400; }
.hub-pane .ail-badge-name { font-weight: 600; }
.hub-pane .sm-section-head a, .hub-pane .sm-ai-tab, .hub-pane .sm-chipbox span, .hub-pane .sm-res-what { font-size: 14px; font-weight: 600; }
.hub-pane .sm-res-what { font-weight: 400; }
.hub-pane .sm-chip, .hub-pane .sm-chip.link { font-size: 13px; font-weight: 600; }
.hub-pane .sm-cal-week span, .hub-pane .sm-res-lic, .hub-pane .cert-pick span { font-size: 12px; font-weight: 600; }
.hub-pane .sm-res-lic { font-weight: 400; }
.hub-pane .sm-res-cat { font-size: 11px; font-weight: 700; }
.hub-pane .sm-cal-n { font-size: 13px; font-weight: 600; }
.hub-pane .sm-cal-add { font-size: 18px; font-weight: 600; }
.hub-pane .ail-level-badge { font-size: 18px; font-weight: 700; }
.hub-pane .ail-badge-icon { font-size: 26px; font-weight: 400; }
/* hub details: the search box keeps room for its icon; the eLearning welcome panel uses the Ìzí card look instead of its own dark colours */
.st.st.hub .hub-pane input.sm-find { padding: 0 1rem 0 2.4rem; height: 36px; min-height: 36px; border-radius: 999px; }
.st.st.hub .el-hero { background: var(--izi-panel); background-image: none; color: var(--izi-ink); border: 1px solid var(--izi-line); box-shadow: none; }
.st.st.hub .el-hero h2, .st.st.hub .el-hero strong { color: var(--izi-ink); }
.st.st.hub .el-hero p, .st.st.hub .el-hero span, .st.st.hub .el-stat span { color: var(--izi-mu); }
.st.st.hub .el-stat { background: var(--izi-card); background-image: none; border: 1px solid var(--izi-line); box-shadow: none; color: var(--izi-ink); }
.st.st.hub .el-stat::before, .st.st.hub .el-stat::after { display: none; }

/* eLearning Audio and Presentation steps (any page) */
.el-audio { display: block; width: 100%; margin: 12px 0; }
.el-slides { width: 100%; margin: 12px 0; border-radius: 12px; overflow: hidden; background: #000; }
.el-slide { display: block; width: 100%; height: auto; }
.el-slidebar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 12px; }
/* Ìzí Presenter steps: every card its own colour (owner, 17 Nov). Guests no longer shares Ìzí Studio's blue, and the
   Studio card leaves purple to the AI. */
.st .st-s-guests { --tint:#14b8d4; } .st .st-s-studio { --tint:#eab308; }
/* Quiz answers stand apart (owner, 17 Nov): bordered answer buttons never touch; a gap between each one. */
.ail-gal-sample .ail-options, .ail-options:has(> .ail-option[style*="border"]), .ail-gal-sample .ail-options.two { gap: .55rem !important; }
/* eLearning course page: where course content goes (17 Nov) */
.ail-add-content { margin: 14px 0; padding: 14px; border: 1px solid var(--line); border-radius: 16px; }
.ail-add-content h2 { margin: 0 0 4px; font-size: 15px; }
.ail-add-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; margin-top: 10px; }
.ail-add-tile { display: flex; flex-direction: column; gap: 4px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: inherit; background: var(--surface, transparent); }
.ail-add-tile:hover { border-color: var(--accent); }
.ail-add-tile strong { font-size: 13px; } .ail-add-tile small { font-size: 11px; color: var(--ink-soft); line-height: 1.35; }
/* Ìzí Presenter: the menu tucks away (17 Nov). Mouse to the top of the window to bring it back. */
.st.st-tuck > .st-hud { position: fixed; top: 0; left: 0; right: 0; z-index: 80; padding: 12px 18px 10px; background: var(--st-bg, #0A0A0D); border-bottom: 1px solid var(--st-line, rgb(255 255 255 / .08)); box-shadow: 0 10px 30px rgba(0,0,0,.3); border-radius: 0 0 14px 14px; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s ease, visibility 0s linear .2s; }
.st.st-tuck > .st-hud.show { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .2s ease; }
.st.st-tuck[data-izi="light"] > .st-hud { background: #fff; }
.st:not(.st-tuck) > .st-hud { display: contents; }
@media (prefers-reduced-motion: reduce) { .st.st-tuck > .st-hud { transition: none; } }
/* Presenter head (17 Nov): the workflow title in the middle of the head row, the app name's size; the menu sits above
   everything (no layer outlines over it) on a solid background; with the menu tucked, the work area uses the whole window. */
.st .st-head { position: relative; }
.st .st-head .st-headtitle { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -60%); font: 600 15px/18px var(--izr-sans, -apple-system, system-ui, sans-serif); color: var(--izi-ink, inherit); white-space: nowrap; pointer-events: none; }
@media (max-width: 1100px) { .st .st-head .st-headtitle { display: none; } }
.st.st-tuck > .st-hud { z-index: 9000 !important; isolation: isolate; background: #fff; }
.st.st-tuck[data-izi="dark"] > .st-hud, [data-theme="dark"] .st.st-tuck > .st-hud { background: #0A0A0D; }
.st.st-tuck .st-body { height: calc(100vh - 1.2rem); min-height: 0; }
.st.st-tuck { padding-top: .6rem; }

/* Ìzí Studio card: the sound from Ìzí Studio — a level bar, the volume and the leveller (19 Nov) */
.iz-sound { max-width: 420px; margin: -.4rem 0 1rem; display: grid; gap: .5rem; }
.iz-sound[hidden] { display: none; }
.iz-sndrow { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.iz-sndrow .st-lbl { margin: 0; flex: none; }
.iz-sndbar { flex: 1 1 120px; min-width: 120px; height: 8px; border-radius: 4px; }
.iz-sndbar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #30d158 0 70%, #ffd60a 85%, #ff453a 100%); background-size: 420px 100%; transition: width .12s linear; }
.iz-sndsay { flex: 1 1 100%; font-size: 12px; opacity: .8; }
.iz-sndsay.bad { color: #ff453a; opacity: 1; font-weight: 600; }
.iz-vol { flex: 1 1 120px; min-width: 120px; accent-color: #0a84ff; }
.iz-volsay { min-width: 3ch; text-align: right; font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) { .iz-sndbar i { transition: none; } }

/* Show card: the quick look of the words — FONT, its colour, OUTLINE, its colour, CAPS (19 Nov). The colour wells are the pills' height. */
.rm-quick.rm-look { margin-bottom: .6rem; }
.rm-quick input.rm-swatch { flex: 0 0 auto; width: 44px; min-height: 0; height: 3.2rem; padding: 0; border: 1px solid rgba(127,127,127,.4); border-radius: 12px; background: none; cursor: pointer; }
@media (pointer: fine) { .rm-quick input.rm-swatch { width: 40px; height: 32px; border-radius: 999px; overflow: hidden; } }
.rm-quick input.rm-swatch::-webkit-color-swatch-wrapper { padding: 3px; }
.rm-quick input.rm-swatch::-webkit-color-swatch { border: 0; border-radius: 999px; }

/* Show card: what is on the screens now — the motion background's speed and the audio playing (owner, 30 Nov) */
.sh-now{display:flex;flex-direction:column;gap:8px;margin-top:14px}
.sh-now .st-mbar{flex-wrap:wrap}
.sh-now .st-mvol input[type=range]{min-width:140px}
.sh-speed{font-variant-numeric:tabular-nums;min-width:52px}

/* Check-In for an event (migration 0205): many people authorised for a set time. */
.ev-times { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.ev-pick { align-items: center; gap: .5rem; flex-wrap: wrap; }
.ev-pick input[type="search"] { flex: 1 1 12rem; min-width: 0; }
.ev-list { max-height: 16rem; overflow: auto; }
.ev-events { display: grid; gap: .5rem; margin: .5rem 0 1rem; }
.ev-event { display: flex; gap: .75rem; align-items: flex-start; justify-content: space-between; padding: .6rem .7rem; border: 1px solid var(--line, #2a3446); border-radius: 10px; }
.ev-event-main { min-width: 0; }
.ev-event-main p { margin: .15rem 0 0; }
.ev-names { overflow: hidden; text-overflow: ellipsis; }
.pill-ci { display: inline-block; margin-left: .5rem; padding: .1rem .5rem; border-radius: 999px; font-size: .72rem; font-weight: 600; border: 1px solid var(--line, #2a3446); }
.pill-ci.on { background: rgb(48 178 91 / .18); border-color: rgb(48 178 91 / .5); }
@media (max-width: 520px) { .ev-times { grid-template-columns: 1fr; } }
