:root {
  --ink: #141414;
  --ink-2: #3a3a3a;
  --muted: #6f6c66;
  --line: #e3e0da;
  --paper: #f6f5f2;
  --card: #ffffff;
  --hover: #efede8;
  --accent: #141414;
  --accent-ink: #ffffff;
  --red: #c0352b;
  --red-bg: #fbe9e7;
  --amber: #a35f00;
  --amber-bg: #fdf1dc;
  --green: #2e7d4f;
  --green-bg: #e5f3ea;
  --blue: #2c5fa8;
  --blue-bg: #e7eef9;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(0,0,0,.05), 0 2px 8px rgba(0,0,0,.04);
  --nav-w: 232px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --ink: #f1efea; --ink-2: #d2cfc8; --muted: #9c988f; --line: #2f2e2b; --paper: #121211; --card: #1b1b19;
  --hover: #252522; --accent: #f1efea; --accent-ink: #121211;
  --red: #ef7a6f; --red-bg: #3a1d1a; --amber: #e8b35c; --amber-bg: #34280f; --green: #7cc89a; --green-bg: #17301f;
  --blue: #8db3ec; --blue-bg: #18253a; --shadow: none; color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--paper); color: var(--ink); }
body { font: 15px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
.boot { padding: 40vh 0; text-align: center; color: var(--muted); }

/* ---------- brand ---------- */
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { height: 40px; width: auto; display: block; mix-blend-mode: multiply; }
.brand-sub { font-size: 9.5px; font-weight: 700; letter-spacing: 2.6px; text-transform: uppercase; color: var(--muted); line-height: 1.2; }
:root[data-theme="dark"] .brand img.logo { filter: invert(1); mix-blend-mode: screen; }

/* ---------- layout ---------- */
.shell { min-height: 100vh; }
.sidenav { position: fixed; inset: 0 auto 0 0; width: var(--nav-w); background: var(--card); border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 18px 12px; }
.sidenav .brand { padding: 4px 10px 22px; }
.navlink { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 9px; text-decoration: none; color: var(--ink-2); font-weight: 550; }
.navlink:hover { background: var(--hover); }
.navlink.active { background: var(--ink); color: var(--paper); }
.navlink svg { width: 20px; height: 20px; flex: none; }
.navlink .count { margin-left: auto; font-size: 12px; background: var(--red); color: #fff; border-radius: 99px; padding: 0 7px; font-weight: 700; }
.sidenav .spacer { flex: 1; }
.me-chip { display: flex; align-items: center; gap: 10px; padding: 10px; border-top: 1px solid var(--line); margin-top: 10px; text-decoration: none; }
.me-chip small { display: block; color: var(--muted); font-size: 12px; }

/* content column is centered in the space to the right of the sidebar */
.main { margin-left: var(--nav-w); padding: 26px max(32px, calc((100vw - var(--nav-w) - 1116px) / 2)) 60px; }
.topbar { display: none; }
.bottomnav { display: none; }

@media (max-width: 860px) {
  .sidenav { display: none; }
  .main { margin-left: 0; padding: 14px 16px calc(84px + var(--safe-b)); }
  .topbar { display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 20;
    background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    padding: calc(10px + env(safe-area-inset-top, 0px)) 16px 10px; border-bottom: 1px solid var(--line); }
  .topbar .brand img { height: 28px; }
  .bottomnav { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--card); border-top: 1px solid var(--line);
    padding: 6px 4px calc(6px + var(--safe-b)); justify-content: space-around; }
  .bottomnav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; font-weight: 600; color: var(--muted);
    text-decoration: none; padding: 4px 0; position: relative; }
  .bottomnav a svg { width: 23px; height: 23px; }
  .bottomnav a.active { color: var(--ink); }
  .bottomnav .dot { position: absolute; top: 2px; left: calc(50% + 8px); background: var(--red); color: #fff; font-size: 10px; border-radius: 99px; padding: 0 5px; font-weight: 700; }
}

/* ---------- page bits ---------- */
/* page title banner (stained glass, same look as the Home page) */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 4px 0 18px; flex-wrap: wrap;
  border-radius: var(--radius); color: #fff; padding: 26px 22px 20px; min-height: 120px; box-sizing: border-box; }
.page-head h1 { margin: 0; font-size: 28px; letter-spacing: -.5px; text-shadow: 0 1px 12px rgba(0,0,0,.45); }
.page-head .sub { color: rgba(255,255,255,.88); margin-top: 4px; max-width: 640px; text-shadow: 0 1px 8px rgba(0,0,0,.4); }
.page-head .sub a { color: #fff; }
.page-head .btn { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.35); color: #fff; backdrop-filter: blur(6px); }
.page-head .btn:hover { background: rgba(255,255,255,.26); }
.page-head .btn.primary { background: #fff; color: #141414; border-color: #fff; }
.page-head select, .page-head .seg { background: rgba(255,255,255,.92); color: #141414; }
/* detail pages (events, projects, visitors, families): stained-glass band across the top of the header card */
.detail-head { position: relative; overflow: hidden; padding-top: 76px !important; }
.detail-head::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 58px; }
.eyebrow { font-size: 11px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }
h2.section { font-size: 12px; font-weight: 800; letter-spacing: 1.8px; text-transform: uppercase; color: var(--muted); margin: 26px 0 10px; display: flex; justify-content: space-between; align-items: center; }
h2.section a { text-transform: none; letter-spacing: 0; font-weight: 600; font-size: 13px; color: var(--ink-2); }
.grid { display: grid; gap: 14px; }
.grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid.cards { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card.pad { padding: 16px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { padding: 14px 16px; text-decoration: none; display: block; }
.stat .n { font-size: 28px; font-weight: 800; letter-spacing: -1px; }
.stat .l { color: var(--muted); font-size: 13px; }
.stat.alert .n { color: var(--red); }
.empty { color: var(--muted); padding: 18px 16px; text-align: center; font-size: 14px; }

/* ---------- buttons & forms ---------- */
.btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--card); padding: 8px 14px; border-radius: 9px;
  font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap; min-height: 38px; }
.btn:hover { background: var(--hover); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { opacity: .88; }
.btn.danger { color: var(--red); }
.btn.small { padding: 4px 10px; min-height: 30px; font-size: 13px; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn svg { width: 17px; height: 17px; }
.icon-btn { border: 0; background: transparent; padding: 6px; border-radius: 8px; cursor: pointer; display: inline-flex; color: var(--ink-2); position: relative; }
.icon-btn:hover { background: var(--hover); }
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn .dot { position: absolute; top: 1px; right: 0; background: var(--red); color: #fff; font-size: 10px; border-radius: 99px; padding: 0 5px; font-weight: 700; }

label.f { display: block; margin-bottom: 12px; }
label.f > span { display: block; font-size: 12.5px; font-weight: 700; color: var(--ink-2); margin-bottom: 4px; }
input[type=text], input[type=email], input[type=tel], input[type=date], input[type=datetime-local], input[type=number], input[type=search], select, textarea {
  width: 100%; border: 1px solid var(--line); background: var(--card); border-radius: 9px; padding: 9px 11px; min-height: 40px; outline: none; font-size: 16px; }
input:focus, select:focus, textarea:focus { border-color: var(--ink-2); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ink) 10%, transparent); }
textarea { min-height: 80px; resize: vertical; }
.row { display: flex; gap: 10px; }
.row > * { flex: 1; min-width: 0; }
@media (max-width: 520px) { .row.wrap { flex-direction: column; gap: 0; } }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.toolbar .grow { flex: 1; min-width: 160px; }
.seg { display: inline-flex; background: var(--hover); border-radius: 10px; padding: 3px; }
.seg button { border: 0; background: transparent; padding: 6px 12px; border-radius: 8px; font-weight: 600; font-size: 13.5px; cursor: pointer; color: var(--muted); }
.seg button.on { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
.quick-add { display: flex; gap: 8px; margin-bottom: 14px; }
.quick-add input { flex: 1; }
.chips-inline { display: flex; gap: 6px; flex-wrap: wrap; margin: -4px 0 12px; }

/* ---------- lists ---------- */
.list { list-style: none; margin: 0; padding: 0; }
.list > li { border-bottom: 1px solid var(--line); }
.list > li:last-child { border-bottom: 0; }
.item { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; cursor: pointer; text-decoration: none; }
.item:hover { background: var(--hover); }
.item .body { flex: 1; min-width: 0; }
.item .title { font-weight: 600; overflow-wrap: anywhere; }
.item .meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; align-items: center; }
.item.done .title { text-decoration: line-through; color: var(--muted); }
.check { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--muted); flex: none; display: grid; place-items: center; cursor: pointer; background: transparent; padding: 0; margin-top: 1px; }
.check:hover { border-color: var(--ink); }
.check.on { background: var(--green); border-color: var(--green); color: #fff; }
.check svg { width: 14px; height: 14px; }
.chip { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 99px; background: var(--hover); color: var(--ink-2); white-space: nowrap; }
.chip svg { width: 12px; height: 12px; }
.chip.red { background: var(--red-bg); color: var(--red); }
.chip.amber { background: var(--amber-bg); color: var(--amber); }
.chip.green { background: var(--green-bg); color: var(--green); }
.chip.blue { background: var(--blue-bg); color: var(--blue); }
.swatch { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.avatar { width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: var(--paper); display: inline-grid; place-items: center; font-size: 11px; font-weight: 700; flex: none; object-fit: cover; }
.avatar.lg { width: 36px; height: 36px; font-size: 14px; }

/* ---------- projects ---------- */
.proj-card { padding: 16px; text-decoration: none; display: flex; flex-direction: column; gap: 8px; border-top: 4px solid var(--pc, var(--ink)); }
.proj-card:hover { background: var(--hover); }
.proj-card h3 { margin: 0; font-size: 17px; }
.bar { height: 6px; background: var(--hover); border-radius: 99px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--pc, var(--ink)); border-radius: 99px; }
.board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: start; }
@media (max-width: 860px) { .board { grid-template-columns: 1fr; } }
.col-head { display: flex; justify-content: space-between; padding: 12px 14px 8px; font-weight: 800; font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }
.mover { display: flex; gap: 2px; }
.mover button { border: 0; background: transparent; cursor: pointer; padding: 2px 4px; color: var(--muted); border-radius: 6px; }
.mover button:hover { background: var(--line); color: var(--ink); }
.detail-head { padding: 18px; border-top: 5px solid var(--pc, var(--ink)); margin-bottom: 16px; }
.detail-head h1 { margin: 4px 0 6px; font-size: 24px; }
.kv { display: flex; gap: 16px; flex-wrap: wrap; color: var(--ink-2); font-size: 14px; }
.kv span { display: inline-flex; align-items: center; gap: 5px; }
.kv svg { width: 15px; height: 15px; color: var(--muted); }
.desc { white-space: pre-wrap; margin: 10px 0 0; color: var(--ink-2); }

/* ---------- visitors ---------- */
.contact-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: flex; gap: 12px; padding: 14px; border-bottom: 1px solid var(--line); }
.timeline li:last-child { border-bottom: 0; }
.timeline .when { font-size: 12px; font-weight: 700; color: var(--muted); }
.timeline .step-title { font-weight: 650; }
.timeline .step-details { color: var(--muted); font-size: 13.5px; margin-top: 3px; }
.timeline .note-in { margin-top: 8px; font-size: 14px; min-height: 36px; padding: 6px 10px; }
.timeline li.is-done .step-title { text-decoration: line-through; color: var(--muted); }
.info-grid { display: grid; grid-template-columns: 130px 1fr; gap: 6px 12px; font-size: 14px; }
.info-grid dt { color: var(--muted); font-weight: 600; }
.info-grid dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.guide-step { display: flex; gap: 14px; padding: 16px; border-bottom: 1px solid var(--line); }
.guide-step:last-child { border-bottom: 0; }
.daybadge { flex: none; width: 54px; text-align: center; background: var(--ink); color: var(--paper); border-radius: 10px; padding: 6px 0; line-height: 1.1; }
.daybadge b { display: block; font-size: 20px; }
.daybadge small { font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 700; }

/* ---------- modal ---------- */
.overlay { position: fixed; inset: 0; background: rgba(10,10,10,.45); z-index: 100; display: flex; align-items: center; justify-content: center; padding: 16px; animation: fade .12s ease-out; }
.modal { background: var(--card); width: 100%; max-width: 560px; max-height: calc(100vh - 32px); overflow: auto; border-radius: 16px; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.modal header { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px 6px; position: sticky; top: 0; background: var(--card); z-index: 1; }
.modal header h3 { margin: 0; font-size: 18px; }
.modal .content { padding: 8px 18px 4px; }
.modal footer { display: flex; gap: 8px; justify-content: flex-end; padding: 12px 18px 16px; position: sticky; bottom: 0; background: var(--card); border-top: 1px solid var(--line); }
.modal footer .left { margin-right: auto; }
.presets { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
@media (max-width: 600px) {
  .overlay { align-items: flex-end; padding: 0; }
  .modal { max-width: none; border-radius: 18px 18px 0 0; max-height: 92vh; padding-bottom: var(--safe-b); animation: up .18s ease-out; }
}
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(40px); opacity: .5; } }

#toast { position: fixed; left: 50%; bottom: calc(90px + var(--safe-b)); transform: translateX(-50%); background: var(--ink); color: var(--paper); padding: 10px 16px;
  border-radius: 10px; font-weight: 600; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 200; max-width: calc(100vw - 32px); }
#toast.show { opacity: 1; }

/* ---------- login ---------- */
.login { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login .box { width: 100%; max-width: 380px; text-align: center; }
.login .logo-big { width: 100%; max-width: 300px; margin: 0 auto 8px; display: block; mix-blend-mode: multiply; }
.login h1 { font-size: 18px; margin: 34px 0 6px; }
.login p { color: var(--muted); margin: 0 0 20px; }
.gbtn { display: flex; width: 100%; justify-content: center; align-items: center; gap: 10px; padding: 12px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--card); font-weight: 650; text-decoration: none; font-size: 16px; }
.gbtn:hover { background: var(--hover); }
.devbox { margin-top: 26px; text-align: left; border: 1px dashed var(--line); border-radius: 12px; padding: 14px; }
.devbox small { color: var(--amber); font-weight: 700; display: block; margin-bottom: 8px; }
.notif.unread { background: color-mix(in srgb, var(--blue-bg) 60%, transparent); }
.muted { color: var(--muted); }
.hide-mobile { }
@media (max-width: 860px) { .hide-mobile { display: none !important; } }

/* ---------- stained-glass backdrop (public/background.jpg, gradient fallback) ---------- */
.glass-bg, .page-head, .detail-head::before {
  background:
    linear-gradient(180deg, rgba(10,8,6,.35), rgba(10,8,6,.55)),
    url("/background.jpg") center / cover no-repeat,
    radial-gradient(circle at 70% 35%, #3d7bd9 0, transparent 38%),
    radial-gradient(circle at 80% 62%, #8fd16a 0, transparent 26%),
    radial-gradient(circle at 12% 66%, #f0b429 0, transparent 18%),
    radial-gradient(circle at 60% 78%, #e0736a 0, transparent 20%),
    linear-gradient(135deg, #5a2a12, #2a140a 60%, #120c08);
  background-color: #2a140a;
}
.login.glass-bg .box { background: #fff; color: #141414; border-radius: 20px; padding: 30px 26px; box-shadow: 0 24px 70px rgba(0,0,0,.45); }
.login.glass-bg .box p { color: #6f6c66; }
.login.glass-bg .gbtn { background: #fff; border-color: #e3e0da; color: #141414; }
.login.glass-bg .logo-big { filter: none !important; }
.hero { border-radius: var(--radius); color: #fff; padding: 22px 22px 20px; margin: 4px 0 16px; display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.hero h1 { margin: 2px 0 0; font-size: 28px; letter-spacing: -.5px; text-shadow: 0 1px 12px rgba(0,0,0,.4); }
.hero .eyebrow { color: rgba(255,255,255,.85); }
.hero .btn.primary { background: #fff; color: #141414; border-color: #fff; }

.quick-add .qa-who { width: auto; max-width: 150px; flex: none; }
@media (max-width: 520px) { .quick-add { flex-wrap: wrap; } .quick-add input { flex-basis: 100%; } .quick-add .qa-who { flex: 1; max-width: none; } }

/* ---------- photos ---------- */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 8px; }
.photo-grid:empty { display: none; }
.photo-grid .ph { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--hover); }
.photo-grid .ph img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: zoom-in; }
.photo-grid .ph .x { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border-radius: 50%; border: 0; padding: 0;
  background: rgba(0,0,0,.6); color: #fff; display: grid; place-items: center; cursor: pointer; }
.photo-grid .ph .x svg { width: 14px; height: 14px; }
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(0,0,0,.92); display: flex; align-items: center; justify-content: center;
  padding: calc(12px + env(safe-area-inset-top, 0px)) 12px calc(12px + env(safe-area-inset-bottom, 0px)); cursor: zoom-out; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 6px; }
.lightbox .icon-btn { position: absolute; top: calc(10px + env(safe-area-inset-top, 0px)); right: 10px; color: #fff; }

div.f { margin-bottom: 12px; }
.room-add { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; align-items: end; }
@media (max-width: 600px) { .room-add { grid-template-columns: 1fr; gap: 0; } .room-add .btn { width: 100%; justify-content: center; } }

/* ---------- building & grounds tabs / projects ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: -4px 0 16px; overflow-x: auto; }
.tabs a { display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; text-decoration: none; font-weight: 650; color: var(--muted);
  border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a svg { width: 17px; height: 17px; }
.tabs a.on { color: var(--ink); border-bottom-color: var(--ink); }
.room-picks { max-height: 220px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px 10px; }
.chip.pick { cursor: pointer; padding: 5px 10px; font-size: 13px; }
.chip.pick input { margin: 0 2px 0 0; }
.photo-grid.big { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
.photo-grid .ph .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 6px 5px; font-size: 11px; font-weight: 600; color: #fff;
  background: linear-gradient(transparent, rgba(0,0,0,.65)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; }

/* ---------- calendar ---------- */
.sidenav { overflow-y: auto; }
.evtime { flex: none; width: 74px; font-size: 13px; font-weight: 700; color: var(--ink-2); line-height: 1.25; padding-top: 2px; }
.evtime b { display: block; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }

/* ---------- 2nd Students ---------- */
.youth-head { align-items: center; }
.ylogo-wrap { background: #fff; border-radius: 14px; padding: 6px 12px; display: inline-flex; box-shadow: var(--shadow); border: 1px solid var(--line); }
.ylogo { height: 54px; width: auto; display: block; }
.avatar.girl { background: #d6457a; color: #fff; }
.avatar.boy { background: #00a4f7; color: #fff; }
.girl-t { color: #d6457a; } .boy-t { color: #0089cf; }
.yev { --pc: #00a4f7; }
.yhead { --pc: #00a4f7; }
.ycount { font-size: 15px; } .ycount b { font-size: 20px; }
.stat .n small { font-size: 15px; color: var(--muted); font-weight: 700; }
.chip.tog { border: 0; cursor: pointer; font: inherit; font-size: 12px; font-weight: 600; }
.chip.tog:hover { filter: brightness(.95); }
.rrow { flex-wrap: wrap; align-items: center; }
.ride-sel { width: auto; max-width: 160px; min-height: 32px; padding: 4px 8px; font-size: 13px; }
@media (max-width: 600px) { .ride-sel { margin-left: 38px; max-width: none; flex: 1 1 calc(100% - 38px); } }
.col-title { font-size: 13px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; margin: 14px 0 8px; display: flex; justify-content: space-between; }
.col-title.girl { color: #d6457a; } .col-title.boy { color: #0089cf; }
.col-title .over { color: var(--red); }
.medline { background: var(--red-bg); color: var(--red); border-radius: 10px; padding: 10px 14px; font-weight: 600; font-size: 14px; margin: 10px 0 0; }
.medbox { background: var(--red-bg); color: var(--red); border-radius: 10px; padding: 10px 12px; margin: 10px 0 14px; font-size: 14px; display: grid; gap: 4px; }
.contact { padding: 10px 0; border-top: 1px solid var(--line); }
.ride { cursor: pointer; } .ride:hover { background: var(--hover); }
.budget-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.budget-row .l { font-size: 12px; color: var(--muted); font-weight: 600; }
.budget-row b { font-size: 18px; }
@media (max-width: 600px) { .budget-row { grid-template-columns: 1fr 1fr; } }
.xform { display: grid; grid-template-columns: 2fr 1fr 1.2fr auto; gap: 8px; margin-top: 10px; }
@media (max-width: 600px) { .xform { grid-template-columns: 1fr 1fr; } .xform input[name=description] { grid-column: 1 / -1; } .xform .btn { grid-column: 1 / -1; justify-content: center; } }
/* families & volunteers */
.famnote { background: var(--hover); border-radius: 10px; padding: 10px 12px; margin: -4px 0 12px; font-size: 13.5px; color: var(--ink-2); }
.famnote a { font-weight: 650; }
.chip.girl-c { background: rgba(214, 69, 122, .16); color: #e0679a; }
.chip.boy-c { background: rgba(0, 164, 247, .16); color: #33b4f5; }
label.chip.tog { padding: 6px 11px; font-size: 13px; }
label.chip.tog.on { background: var(--ink); color: var(--paper); }
.snav { display: flex; align-items: center; gap: 2px; margin-left: auto; margin-right: 6px; font-size: 13px; white-space: nowrap; }
.snav .icon-btn:disabled { opacity: .3; cursor: default; }
.sortsel { width: auto; max-width: 100%; }
.mergecard { border: 2px solid transparent; } .mergecard.on { border-color: var(--green); }
/* "Boxes" layout for people lists */
.list.boxes { display: grid; grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: 12px; }
.card:has(> .list.boxes) { background: transparent; border: 0; box-shadow: none; padding: 0; overflow: visible; }
.list.boxes > li, .list.boxes > li:last-child { border: 1px solid var(--line); border-radius: 14px; background: var(--card); position: relative; overflow: hidden; }
.list.boxes .item { flex-direction: column; align-items: center !important; text-align: center; height: 100%; padding: 18px 10px 14px; gap: 8px; }
.list.boxes .item .body { width: 100%; }
.list.boxes .item .meta { justify-content: center; }
.list.boxes .avatar.lg { width: 72px; height: 72px; font-size: 24px; }
.list.boxes .avatar.lg svg { width: 30px; height: 30px; }
.list.boxes .item > .icon-btn { position: absolute; top: 6px; right: 6px; }
.list.boxes > .empty { grid-column: 1 / -1; }
/* profile photos */
img.avatar { object-fit: cover; background: var(--hover); }
.avatar.xl { width: 84px; height: 84px; font-size: 28px; }
.photo-edit { display: flex; gap: 14px; align-items: center; margin: 0 0 14px; }
.detail-head .photo-edit { margin: 0; flex-direction: column; gap: 6px; }
.detail-head .photo-edit .btn { font-size: 12px; padding: 4px 8px; }
.list.boxes .item .ride-sel { width: 100%; }
.list.boxes .item.rrow > .avatar { width: 56px; height: 56px; font-size: 20px; }
/* photo cropper */
.cropov { z-index: 1000; }
.cropbox { position: relative; width: 100%; max-width: 380px; margin: 0 auto; aspect-ratio: 1; border-radius: 12px; overflow: hidden; touch-action: none; }
.cropbox canvas { width: 100%; height: 100%; display: block; cursor: grab; }
.cropbox::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at center, transparent 49.5%, rgba(0,0,0,.45) 50%); }
/* budget months table */
.mtable { width: 100%; border-collapse: collapse; font-size: 14px; }
.mtable th, .mtable td { padding: 8px 12px; text-align: right; border-bottom: 1px solid var(--line); }
.mtable th:first-child, .mtable td:first-child { text-align: left; }
.mtable th { font-size: 12px; color: var(--muted); font-weight: 650; }
.mtable tr:last-child td { border-bottom: 0; }
/* church calendar: month grid */
.calbar { display: flex; align-items: center; gap: 6px; margin: 0 0 10px; }
.calbar h2 { margin: 0 8px; font-size: 20px; min-width: 170px; text-align: center; }
.calgrid { overflow: hidden; padding: 0; }
.calhead, .calbody { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.calhead div { padding: 8px; font-size: 11px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); }
.calcell { min-height: 108px; padding: 6px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 3px; cursor: pointer; min-width: 0; }
.calcell:nth-child(7n) { border-right: 0; }
.calcell:hover { background: var(--hover); }
.calcell.other { opacity: .45; }
.calnum { font-size: 13px; font-weight: 700; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; }
.calcell.today .calnum { background: var(--accent); color: var(--accent-ink); }
.calpill { border: 0; text-align: left; font: inherit; font-size: 12px; font-weight: 600; padding: 3px 6px; border-radius: 6px; cursor: pointer; color: var(--ink);
  background: color-mix(in srgb, var(--c) 22%, transparent); border-left: 3px solid var(--c); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.calpill .t { color: var(--muted); font-weight: 600; }
.calmore { font-size: 11.5px; color: var(--muted); font-weight: 600; padding-left: 4px; }
.caldots { display: none; gap: 3px; justify-content: center; }
.caldots i, .caldot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.caldot { margin-right: 6px; }
@media (max-width: 700px) {
  .calcell { min-height: 58px; padding: 4px 2px; align-items: center; }
  .calpill, .calmore { display: none; }
  .caldots { display: flex; }
  .calhead div { padding: 6px 2px; text-align: center; letter-spacing: .5px; }
  .calbar h2 { font-size: 17px; min-width: 0; flex: 1; }
}
.seg svg { width: 15px; height: 15px; vertical-align: -2px; margin-right: 4px; }
/* event / project header photos */
.detail-head.has-photo { padding-top: 226px !important; }
.detail-head.has-photo::before { height: 210px; background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,.25)), var(--hdr) center / cover no-repeat; }
.cropbox.wide { aspect-ratio: 5 / 2; max-width: 100%; }
.cropbox.wide::after { display: none; }
.proj-card.with-pic { padding-top: 0; overflow: hidden; }
.proj-card .cardpic { height: 120px; margin: 0 -16px 4px; flex: none; background: center / cover no-repeat; }
@media (max-width: 700px) { .detail-head.has-photo { padding-top: 166px !important; } .detail-head.has-photo::before { height: 150px; } }
/* home page: sections flow down the left column, then the right */
.homecols { columns: 2 360px; column-gap: 22px; }
.hsec { break-inside: avoid; display: inline-block; width: 100%; }
.hsec > h2.section:first-child { margin-top: 6px; }
.hero .btn:not(.primary) { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.35); color: #fff; }
/* 2nd Students logo as a one-color menu icon */
.navlogo { width: 24px; height: 20px; flex: none; display: inline-block; background: currentColor;
  -webkit-mask: url("/youth-logo.png") center / contain no-repeat; mask: url("/youth-logo.png") center / contain no-repeat; }
/* sidebar tools + collapsed (icons only) menu */
.navtools { display: flex; align-items: center; gap: 4px; padding: 6px 4px 0; }
html.navmini { --nav-w: 72px; }
html.navmini .sidenav { padding: 18px 8px; }
html.navmini .navlink { justify-content: center; padding: 10px 0; }
html.navmini .navlink > span:not(.navlogo):not(.count), html.navmini .brand-sub, html.navmini .me-chip > div, html.navmini #navedit { display: none; }
html.navmini .sidenav .brand { padding: 4px 0 18px; justify-content: center; }
html.navmini .sidenav .brand img.logo { max-width: 52px; }
html.navmini .navtools { justify-content: center; }
html.navmini .me-chip { justify-content: center; padding: 10px 0; }
html.navmini .navlink .count { position: absolute; margin: -18px 0 0 22px; }
/* budget colors (personal) */
.bcard { position: relative; }
.bcard[style*="--bc"] { border-top: 4px solid var(--bc); }
.bcolor { position: absolute; right: 10px; bottom: 10px; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line); background: transparent; cursor: pointer; padding: 0; }
.bcolor:hover { border-color: var(--ink-2); }
.swatchbtn { width: 34px; height: 34px; border-radius: 50%; border: 3px solid transparent; cursor: pointer; }
.swatchbtn.on { border-color: var(--ink); }
/* "More pages" folder in the side menu */
.navfolder { width: 100%; border: 0; background: transparent; font: inherit; cursor: pointer; text-align: left; }
.navfolder .fold-caret { margin-left: auto; display: inline-flex; transition: transform .15s; }
.navfolder .fold-caret svg { width: 14px; height: 14px; }
.navfolder.open .fold-caret { transform: rotate(90deg); }
.navfolder-items { padding-left: 10px; border-left: 2px solid var(--line); margin: 2px 0 4px 20px; }
html.navmini .navfolder-items { padding-left: 0; border-left: 0; margin-left: 0; }
html.navmini .navfolder .fold-caret { display: none; }
/* services: order of service */
.plan { margin-bottom: 12px; padding: 0; overflow: hidden; }
.plan > summary { list-style: none; cursor: pointer; padding: 16px; display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.plan > summary::-webkit-details-marker { display: none; }
.plan-title { font-size: 19px; font-weight: 750; margin-top: 2px; }
.plan-body { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 18px; padding: 0 16px 16px; border-top: 1px solid var(--line); }
@media (max-width: 800px) { .plan-body { grid-template-columns: 1fr; } }
.oos-list { list-style: none; margin: 0; padding: 0; }
.oos { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid var(--line); }
.oos:last-child { border-bottom: 0; }
.oos .title { font-weight: 600; }
.oos-time { width: 44px; flex: none; color: var(--muted); font-size: 12.5px; padding-top: 2px; font-variant-numeric: tabular-nums; }
.oos-ic svg { width: 14px; height: 14px; vertical-align: -2px; margin-right: 5px; color: var(--muted); }
.oos-head { font-size: 11px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted); padding: 14px 0 4px; }
.oos.special { background: color-mix(in srgb, var(--amber) 12%, transparent); border-radius: 8px; padding-left: 6px; }
/* committees */
.comcard { text-decoration: none; color: inherit; }
.comlead { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 14px; margin: 3px 0; }
.bapcard { cursor: pointer; }
/* prayer requests */
.praycard { cursor: pointer; }
.praycard.answered { opacity: .8; }
.praytext { font-size: 15px; line-height: 1.5; white-space: pre-wrap; }
.prayline { padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--ink); }
.prayline.answered { color: var(--muted); }
/* prayer focus mode */
.prayfocus { position: fixed; inset: 0; z-index: 1200; display: flex; flex-direction: column; justify-content: space-between; color: #fff;
  padding: calc(18px + env(safe-area-inset-top, 0px)) 20px calc(22px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, rgba(10,8,6,.72), rgba(10,8,6,.86)), url("/background.jpg") center / cover no-repeat, #120c08; }
.pf-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 14px; opacity: .9; }
.prayfocus .btn { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.3); color: #fff; }
.prayfocus .btn.primary { background: #fff; color: #141414; }
.prayfocus .btn:disabled { opacity: .35; }
.pf-card { max-width: 680px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.pf-who { font-size: 26px; font-weight: 800; letter-spacing: -.3px; }
.pf-sub { font-size: 14px; opacity: .75; }
.pf-text { font-size: clamp(20px, 3.2vw, 30px); line-height: 1.45; margin: 10px 0; white-space: pre-wrap; font-weight: 500; }
.pf-nav { display: flex; justify-content: center; gap: 10px; }
.pf-pray { font-size: 17px; padding: 12px 26px; }
/* birthdays strip on the 2nd Students page */
.bdrow { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 14px; }
.bdcard { display: flex; gap: 10px; align-items: center; padding: 10px 14px; border: 1px solid var(--line); background: var(--card); color: var(--ink);
  font: inherit; text-align: left; cursor: pointer; flex: none; border-radius: var(--radius); }
.bdcard .title { font-weight: 650; }
.bdcard.today { border-color: var(--green); box-shadow: 0 0 0 1px var(--green) inset; }
/* 2nd Students page: cards side by side */
.ydash { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; margin-bottom: 8px; }
.ydash-card { min-width: 0; }
.ydash-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.ydash-head h3 { margin: 0; font-size: 16px; }
.ydash-row { width: 100%; border: 0; background: transparent; font: inherit; color: inherit; text-align: left; padding: 8px 4px; align-items: center; text-decoration: none; }
.ydash-row.today .title { color: var(--green); }
/* gradient headers for events without a photo */
.cardgrad { display: flex; align-items: flex-end; padding: 14px 16px; box-sizing: border-box; }
.cardgrad span { color: #fff; font-weight: 800; font-size: 21px; line-height: 1.15; letter-spacing: -.3px; text-shadow: 0 1px 10px rgba(0,0,0,.35);
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.detail-head.has-grad { padding-top: 136px !important; }
.detail-head.has-grad::before { height: 120px; background: var(--grad); }
@media (max-width: 700px) { .detail-head.has-grad { padding-top: 106px !important; } .detail-head.has-grad::before { height: 90px; } }
/* the church's gradient artwork (public/gradient.jpg) */
.page-head.gradhead { background: linear-gradient(180deg, rgba(20,10,40,.15), rgba(20,10,40,.45)), url("/gradient.jpg") 40% 45% / cover no-repeat, #6b5cc7; }
/* weekly giving */
.givgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.givsum { background: linear-gradient(135deg, rgba(255,255,255,.04), transparent); }
.givtop { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; margin-top: 4px; }
.givbig { font-size: 34px; font-weight: 800; letter-spacing: -.8px; }
.givmid { font-size: 24px; font-weight: 750; }
.givtable td { font-size: 14.5px; }
.givtable tr.diff td { font-weight: 700; }
.givtable tr.tot td { font-weight: 800; font-size: 15.5px; border-top: 2px solid var(--line); }
.givchart { display: flex; align-items: flex-end; gap: 6px; height: 150px; }
.gvcol { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; min-width: 0; }
.gvcol span { font-size: 10.5px; color: var(--muted); }
.gvbar { flex: 1; width: 100%; max-width: 34px; position: relative; }
.gvbar i { position: absolute; left: 0; right: 0; bottom: 0; border-radius: 5px 5px 2px 2px; }
.gvbar i.need { background: var(--hover); border: 1px dashed var(--muted); }
.gvbar i.got { left: 18%; right: 18%; background: var(--amber); }
.gvbar i.got.ok { background: var(--green); }
.gvkey { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin: 0 4px 0 10px; vertical-align: -1px; }
.gvkey.got { background: var(--amber); margin-left: 0; } .gvkey.need { background: var(--hover); border: 1px dashed var(--muted); }
.givpast { margin-bottom: 8px; padding: 0; overflow: hidden; }
.givpast > summary { cursor: pointer; padding: 12px 16px; display: flex; gap: 10px; align-items: center; list-style: none; }
.givpast > summary .muted { margin-left: auto; font-size: 13px; }
/* calmer Home page */
.homecols .hsec { margin-bottom: 4px; }
.homecols h2.section { margin: 18px 0 8px; }
.hc-clear { padding: 12px 16px; color: var(--muted); font-size: 14px; }
.hbud { display: block; padding: 10px 14px; }
.hbud-row { display: flex; justify-content: space-between; gap: 10px; font-size: 14.5px; }
.hbud-row span { font-weight: 600; }
.bar.thin { height: 5px; margin-top: 7px; }
.homecols .givsum .givbig { font-size: 28px; }
/* Home: roomier layout with a graphical header for each section */
.homecols { column-gap: 28px; }
.homecols .hsec { margin-bottom: 26px; --hc: #4f8de0; }
.homecols .hsec > h2.section { margin: 0 0 10px; font-size: 16px; font-weight: 750; letter-spacing: -.1px; text-transform: none; color: var(--ink);
  display: flex; align-items: center; gap: 10px; }
.homecols .hsec > h2.section::before { content: var(--hi, "•"); width: 34px; height: 34px; flex: none; border-radius: 10px; display: grid; place-items: center;
  font-size: 17px; background: color-mix(in srgb, var(--hc) 20%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--hc) 35%, transparent); }
.homecols .hsec > h2.section a, .homecols .hsec > h2.section > span, .homecols .hsec > h2.section > button { margin-left: auto; font-size: 12.5px; font-weight: 650; }
.homecols .hsec > .card { border-top: 3px solid var(--hc); }
.homecols .hsec .item { padding-top: 12px; padding-bottom: 12px; }
.hsec[data-sec="tasks"]    { --hc: #4f8de0; --hi: "✅"; }
.hsec[data-sec="upcoming"] { --hc: #0ea5a5; --hi: "🗓️"; }
.hsec[data-sec="youth"]    { --hc: #00a4f7; --hi: "⭐"; }
.hsec[data-sec="calendar"] { --hc: #8b5cf6; --hi: "📅"; }
.hsec[data-sec="services"] { --hc: #e08a2e; --hi: "🎵"; }
.hsec[data-sec="birthdays"]{ --hc: #d6457a; --hi: "🎂"; }
.hsec[data-sec="giving"]   { --hc: #3fa66b; --hi: "💝"; }
.hsec[data-sec="visitors"] { --hc: #f59e0b; --hi: "👋"; }
.hsec[data-sec="budgets"]  { --hc: #22c55e; --hi: "💰"; }
.hsec[data-sec="maint"]    { --hc: #64748b; --hi: "🔧"; }
.hsec[data-sec="events"]   { --hc: #ec4899; --hi: "🎉"; }
.homecols .hsec > a.card { border-top: 3px solid var(--hc); }
/* Home: the section header is the top bar of its card, so it's exactly as wide as the content */
.homecols .hsec > h2.section { margin: 0; padding: 12px 14px; background: var(--card); border: 1px solid var(--line); border-bottom: 1px solid var(--line);
  border-top: 3px solid var(--hc); border-radius: var(--radius) var(--radius) 0 0; box-sizing: border-box; width: 100%; }
.homecols .hsec > .card, .homecols .hsec > a.card { border-top: 0; border-radius: 0 0 var(--radius) var(--radius); margin-top: 0; }
.homecols .hsec > h2.section + .card { box-shadow: none; }
.homecols .hsec[hidden] { display: none; }
/* Home: each section header is a full-width gradient bar (public/grad-a.jpg, grad-b.jpg) */
.homecols .hsec > h2.section { border: 0; color: #fff; padding: 14px 16px; text-shadow: 0 1px 6px rgba(0,0,0,.35);
  background: linear-gradient(90deg, rgba(0,0,0,.28), rgba(0,0,0,.05) 60%, rgba(0,0,0,.18)), var(--hg) / cover no-repeat, var(--hc); }
.homecols .hsec > h2.section::before { background: rgba(255,255,255,.2); box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); text-shadow: none; }
.homecols .hsec > h2.section a, .homecols .hsec > h2.section > span { color: #fff; opacity: .92; }
.homecols .hsec > h2.section .chip { background: rgba(255,255,255,.2); color: #fff; text-shadow: none; }
.homecols .hsec > .card, .homecols .hsec > a.card { border-top: 0; }
.hsec[data-sec="tasks"]    { --hg: url("/grad-a.jpg") center 32%; }
.hsec[data-sec="upcoming"] { --hg: url("/grad-b.jpg") center 22%; }
.hsec[data-sec="youth"]    { --hg: url("/grad-a.jpg") center 58%; }
.hsec[data-sec="calendar"] { --hg: url("/grad-b.jpg") center 88%; }
.hsec[data-sec="services"] { --hg: url("/grad-a.jpg") center 80%; }
.hsec[data-sec="birthdays"]{ --hg: url("/grad-b.jpg") center 46%; }
.hsec[data-sec="giving"]   { --hg: url("/grad-a.jpg") center 96%; }
.hsec[data-sec="visitors"] { --hg: url("/grad-b.jpg") center 62%; }
.hsec[data-sec="budgets"]  { --hg: url("/grad-b.jpg") center 8%; }
.hsec[data-sec="maint"]    { --hg: url("/grad-a.jpg") center 12%; }
.hsec[data-sec="events"]   { --hg: url("/grad-b.jpg") center 74%; }
/* Home: one continuous gradient per section — bright header, darker body */
.homecols .hsec:not([hidden]) { background: var(--hg) / cover no-repeat, var(--hc); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255,255,255,.06); }
.homecols .hsec > h2.section { background: linear-gradient(90deg, rgba(0,0,0,.28), rgba(0,0,0,.05) 60%, rgba(0,0,0,.18)); border-radius: 0; }
.homecols .hsec > .card, .homecols .hsec > a.card { background: linear-gradient(180deg, rgba(18,18,17,.80), rgba(18,18,17,.93) 70%);
  border: 0; border-radius: 0; box-shadow: none; }
.homecols .hsec .card .card { background: rgba(255,255,255,.04); }
:root[data-theme="light"] .homecols .hsec > .card, :root[data-theme="light"] .homecols .hsec > a.card {
  background: linear-gradient(180deg, rgba(255,255,255,.82), rgba(255,255,255,.95) 70%); }
/* 2nd Students logo instead of a star */
.hsec[data-sec="youth"] > h2.section::before { content: ""; background: #fff url("/youth-logo.png") center / 82% no-repeat; }
.avatar.ylogo-av { background: #fff url("/youth-logo.png") center / 86% no-repeat; box-shadow: inset 0 0 0 1px var(--line); }
.chip .navlogo { width: 18px; height: 13px; }
/* 2nd Students: the same one-color logo as the side menu, no background */
.hsec[data-sec="youth"] > h2.section::before { content: ""; background: #fff; box-shadow: none; border-radius: 0;
  -webkit-mask: url("/youth-logo.png") center / contain no-repeat; mask: url("/youth-logo.png") center / contain no-repeat; }
.avatar.ylogo-av { background: var(--ink-2); box-shadow: none; border-radius: 0; width: 30px; height: 24px;
  -webkit-mask: url("/youth-logo.png") center / contain no-repeat; mask: url("/youth-logo.png") center / contain no-repeat; }
.bapcard.prospect { border-left: 4px solid var(--amber); }
/* Home: my links + personal colors */
.linkgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.linktile { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 8px; border-radius: 14px; text-decoration: none; color: #fff; text-align: center;
  background: linear-gradient(140deg, var(--lc), color-mix(in srgb, var(--lc) 45%, #0b1020)); box-shadow: 0 6px 18px -10px var(--lc); transition: transform .12s; }
.linktile:hover { transform: translateY(-2px); }
.linkemo { font-size: 26px; line-height: 1; }
.linkname { font-weight: 650; font-size: 13.5px; line-height: 1.2; }
.hsec[data-sec="links"] { --hc: #0ea5a5; --hi: "🔗"; --hg: url("/gradient.jpg") center 30%; }
.colorsel { width: auto; max-width: 120px; font-size: 13px; padding: 4px 6px; }
.colorswatch { width: 22px; height: 22px; border-radius: 6px; flex: none; box-shadow: inset 0 0 0 1px var(--line); }
.swatchbtn.small { width: 26px; height: 26px; }
/* Settings > "Colorful gradients on my Home page" turned off: plain cards */
.homecols.plain .hsec:not([hidden]) { background: var(--card); box-shadow: 0 0 0 1px var(--line); }
.homecols.plain .hsec > h2.section { background: transparent; color: var(--ink); text-shadow: none; border-bottom: 1px solid var(--line); }
.homecols.plain .hsec > h2.section::before { background: color-mix(in srgb, var(--hc) 18%, transparent); box-shadow: none; }
.homecols.plain .hsec[data-sec="youth"] > h2.section::before { background: var(--ink); }
.homecols.plain .hsec > h2.section a, .homecols.plain .hsec > h2.section > span { color: var(--muted); }
.homecols.plain .hsec > h2.section .chip { background: var(--hover); color: var(--ink-2); }
.homecols.plain .hsec > .card, .homecols.plain .hsec > a.card { background: transparent; }
.homecols.plain .linktile { background: var(--lc); box-shadow: none; }
/* personal section emojis */
.iconbox { width: 46px; flex: none; text-align: center; font-size: 18px; padding: 4px; }
.homecols .hsec.custom-icon > h2.section::before { content: var(--hi); -webkit-mask: none; mask: none; border-radius: 10px;
  background: rgba(255,255,255,.2); box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); }
.homecols.plain .hsec.custom-icon > h2.section::before { background: color-mix(in srgb, var(--hc) 18%, transparent); box-shadow: none; }
/* Customize window rows: compact emoji box; rows wrap neatly on phones */
.modal input[type=text].iconbox { width: 46px; flex: 0 0 46px; padding: 6px 2px; text-align: center; font-size: 18px; }
.modal select.colorsel { width: auto; flex: 0 0 auto; max-width: 130px; padding: 6px 8px; font-size: 13px; }
#hl .item { flex-wrap: wrap; row-gap: 8px; column-gap: 10px; }
#hl .item .body { flex: 1 1 140px; min-width: 0; }
@media (max-width: 560px) {
  #hl .item .colorswatch { margin-left: 30px; }
}
.plan-body { grid-template-columns: 1fr; }
/* Services: Planning Center section headers (Worship, Sermon…) as solid bars */
.oos-head { background: #2b3a55; color: #fff; border-radius: 8px; padding: 8px 12px; margin: 14px 0 6px; letter-spacing: 1.6px; }
.oos-list > .oos-head:first-child { margin-top: 4px; }
/* Services: larger song / item text */
.oos { padding: 10px 0; }
.oos .title { font-size: 17px; }
.oos .muted { font-size: 14.5px !important; }
.oos-time { font-size: 14px; width: 52px; padding-top: 3px; }
.oos > .muted { font-size: 14px !important; }
.oos-ic svg { width: 16px; height: 16px; }
.oos .title .chip { font-size: 12.5px; vertical-align: 2px; }
/* Services: songs stand out */
.oos.song { background: linear-gradient(90deg, color-mix(in srgb, #8b5cf6 16%, transparent), transparent 70%);
  border-left: 4px solid #8b5cf6; border-radius: 8px; padding-left: 8px; margin: 4px 0; border-bottom-color: transparent; }
.oos.song .title { font-weight: 700; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.songbadge { width: 26px; height: 26px; border-radius: 50%; background: #8b5cf6; color: #fff; display: inline-grid; place-items: center; flex: none; }
.songbadge svg { width: 14px; height: 14px; }
.chip.songkey { background: #8b5cf6; color: #fff; font-weight: 700; }
.oos.song .oos-time { color: #a78bfa; }
/* songs: warm gold to match the church gradients (instead of purple) */
.oos.song { background: linear-gradient(90deg, color-mix(in srgb, #f5a524 16%, transparent), transparent 70%); border-left-color: #f5a524; }
.songbadge { background: #f5a524; color: #1b1406; }
.chip.songkey { background: #f5a524; color: #1b1406; }
.oos.song .oos-time { color: #f5b84a; }
/* Home: the gradient is the whole page background; sections are clear glass over it */
body.on-home .main { background: linear-gradient(180deg, rgba(8,8,12,.30), rgba(8,8,12,.55)), url("/bg-home.svg") center / cover no-repeat fixed, #141418; min-height: 100vh; }
body.on-home .homecols .hsec:not([hidden]) { background: rgba(14,14,18,.30); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.14), 0 10px 30px -18px rgba(0,0,0,.6); }
body.on-home .homecols .hsec > h2.section { background: rgba(255,255,255,.08); border-bottom: 1px solid rgba(255,255,255,.12); }
body.on-home .homecols .hsec > .card, body.on-home .homecols .hsec > a.card { background: transparent; }
body.on-home .homecols .card .card, body.on-home .homecols .givsum { background: rgba(255,255,255,.05); }
body.on-home .homecols .item:hover { background: rgba(255,255,255,.07); }
body.on-home .homecols .list > li { border-color: rgba(255,255,255,.10); }
body.on-home .homecols .muted { color: rgba(255,255,255,.72); }
body.on-home .homecols .chip { background: rgba(255,255,255,.12); }
body.on-home .hero { box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); }
@media (max-width: 860px) { body.on-home .main { background-attachment: scroll; } }
.homecols .hsec > h2.section { justify-content: flex-start; }
/* Home background: vector gradient + fine film grain */
body.on-home .main { background: linear-gradient(180deg, rgba(8,8,12,.28), rgba(8,8,12,.52)), url("/grain.svg"), url("/bg-home.svg");
  background-size: auto, 180px 180px, cover; background-repeat: no-repeat, repeat, no-repeat; background-position: center, 0 0, center;
  background-attachment: fixed, fixed, fixed; background-color: #141418; }
@media (max-width: 860px) { body.on-home .main { background-attachment: scroll, scroll, scroll; } }
/* glass darkness follows the background editor's "Glass" slider */
body.on-home .homecols .hsec:not([hidden]) { background: rgba(14,14,18,var(--glass-a, .30)); }
/* background editor (Settings) */
.bgprev { height: 180px; border-radius: 14px; display: grid; place-items: center; background-color: #141418;
  background-size: auto, 180px 180px, cover; background-repeat: no-repeat, repeat, no-repeat; background-position: center, 0 0, center; }
.bgprev-card { width: min(320px, 80%); border-radius: 14px; overflow: hidden; background: rgba(14,14,18,var(--glass-a, .30));
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.16); color: #fff; }
.bgprev-head { padding: 10px 14px; font-weight: 700; background: rgba(255,255,255,.08); border-bottom: 1px solid rgba(255,255,255,.12); }
.bgprev-body { padding: 12px 14px; font-size: 13.5px; opacity: .85; }
.bgpreset { border: 0; color: #fff; font: inherit; font-size: 13px; font-weight: 700; padding: 10px 14px; border-radius: 10px; cursor: pointer; text-shadow: 0 1px 4px rgba(0,0,0,.5); min-width: 86px; }
.bgcolors { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.bgcolor { display: flex; align-items: center; gap: 8px; font-size: 13.5px; cursor: pointer; }
.bgcolor input[type=color] { width: 38px; height: 32px; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: none; flex: none; cursor: pointer; }
.bgsliders { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin: 14px 0 6px; }
.bgsliders input[type=range] { width: 100%; padding: 0; accent-color: var(--ink); }
/* Light mode Home: white headers, clear white glass sections */
:root[data-theme="light"] body.on-home .homecols .hsec:not([hidden]) { background: rgba(255,255,255,calc(.35 + var(--glass-a, .30) * .5));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.6), 0 10px 30px -18px rgba(0,0,0,.35); }
:root[data-theme="light"] body.on-home .homecols .hsec > h2.section { background: rgba(255,255,255,.92); color: #141414; text-shadow: none;
  border-bottom: 1px solid rgba(0,0,0,.08); }
:root[data-theme="light"] body.on-home .homecols .hsec > h2.section::before { background: rgba(0,0,0,.06); box-shadow: none; }
:root[data-theme="light"] body.on-home .homecols .hsec[data-sec="youth"]:not(.custom-icon) > h2.section::before { background: #141414; }
:root[data-theme="light"] body.on-home .homecols .hsec > h2.section a, :root[data-theme="light"] body.on-home .homecols .hsec > h2.section > span { color: #555; }
:root[data-theme="light"] body.on-home .homecols .hsec > h2.section .chip { background: rgba(0,0,0,.07); color: #333; }
:root[data-theme="light"] body.on-home .homecols { color: #141414; }
:root[data-theme="light"] body.on-home .homecols .muted { color: #555; }
:root[data-theme="light"] body.on-home .homecols .chip { background: rgba(0,0,0,.07); }
:root[data-theme="light"] body.on-home .homecols .item:hover { background: rgba(255,255,255,.5); }
:root[data-theme="light"] body.on-home .homecols .list > li { border-color: rgba(0,0,0,.08); }
:root[data-theme="light"] body.on-home .homecols .card .card, :root[data-theme="light"] body.on-home .homecols .givsum { background: rgba(255,255,255,.4); }
/* student record laid out as a profile */
.sprof-top { display: flex; gap: 18px; align-items: center; padding: 4px 0 16px; margin-bottom: 14px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.sprof-top .photo-edit { margin: 0; }
.sprof-id { flex: 1; min-width: 200px; display: grid; gap: 8px; }
.sprof-name { font-size: 24px; font-weight: 750; letter-spacing: -.01em; line-height: 1.15; }
.sprof-facts { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--ink-2); font-size: 14px; }
.sprof-facts span + span::before { content: "·"; margin-right: 14px; opacity: .5; }
.sprof-facts a { font-weight: 650; }
.sprof-bap { display: flex; flex-wrap: wrap; gap: 6px; }
.sprof-bap svg, .sprof-bap .chip svg { width: 14px; height: 14px; vertical-align: -2px; }
.sprof-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.psec { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px 4px; background: var(--hover); min-width: 0; }
.psec.span2 { grid-column: 1 / -1; }
.psec h4 { margin: 0 0 10px; font-size: 13px; font-weight: 750; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); }
.psec.health h4 { color: var(--red); }
.psec > div:last-child, .psec > .contact-actions { margin-bottom: 10px; }
.psec details > summary { cursor: pointer; list-style: none; }
.psec details > summary::-webkit-details-marker { display: none; }
.psec details > summary h4 { display: inline-block; }
.psec details > summary h4::after { content: " ▸"; } .psec details[open] > summary h4::after { content: " ▾"; }
.psec .row { gap: 10px; }
@media (max-width: 700px) { .sprof-grid { grid-template-columns: 1fr; } .sprof-top { justify-content: center; text-align: center; } .sprof-facts, .sprof-bap { justify-content: center; } }
.sprof-top .photo-edit { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 150px; }
.sprof-top .photo-edit > div:last-child { justify-content: center; }
.sprof-top .photo-edit .btn.small { font-size: 12px; padding: 4px 8px; }
.sprof-facts { gap: 6px; } .sprof-facts span + span::before { content: none; }
.sprof-facts span { background: var(--hover); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; font-size: 13px; }
/* arranging the student record boxes */
.sprof-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin: 14px 0 4px; }
.sprof-grid.arranging .psec { outline: 2px dashed color-mix(in srgb, var(--ink) 35%, transparent); outline-offset: 2px; }
.sprof-grid.arranging .psec > :not(.sarr-tools):not(h4):not(details) { pointer-events: none; opacity: .45; }
.sprof-grid.arranging .psec details > :not(summary) { display: none; }
.sarr-tools { display: flex; gap: 6px; align-items: center; justify-content: flex-end; margin: -2px 0 8px; }
.sarr-tools .icon-btn { font-size: 12px; width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 8px; }
@media (max-width: 700px) { .sarr-tools [data-wide] { display: none; } }
/* bigger photo on the student profile */
.sprof-top .photo-edit { width: 180px; }
.sprof-top .avatar.xl { width: 160px; height: 160px; font-size: 52px; box-shadow: 0 0 0 4px var(--panel, #1c1c20), 0 0 0 5px var(--line); }
.sprof-name { font-size: 28px; }
@media (max-width: 700px) { .sprof-top .avatar.xl { width: 140px; height: 140px; font-size: 46px; } }
/* student profile: read-only card by default, form in edit mode */
.modal .pview { display: none; }
.modal.viewing .pview { display: block; }
.modal.viewing span.pview { display: inline; }
.modal.viewing .pedit, .modal.viewing footer button[type=submit], .modal.viewing #sdel, .modal.viewing #smerge { display: none !important; }
.modal:not(.viewing) .sedit-btn { display: none; }
.modal.viewing .psec.pv-hide { display: none; }
.modal.viewing .psec { padding-bottom: 12px; }
.pv { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.pv:last-child { border-bottom: 0; }
.pv > span { color: var(--ink-2); font-size: 13px; padding-top: 2px; }
.pv > b { font-weight: 600; text-align: right; }
.pv-empty { color: var(--ink-2); font-size: 14px; font-style: italic; opacity: .8; }
.pv-text { white-space: pre-wrap; font-size: 15px; line-height: 1.5; font-weight: 400; text-align: left; }
.pv-people { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.pv-person { display: grid; gap: 4px; }
.pv-people .pv-person { background: color-mix(in srgb, var(--ink) 4%, transparent); border-radius: 10px; padding: 10px 12px; }
.pv-pname { font-weight: 700; font-size: 16px; }
.pv-line { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 14.5px; min-width: 0; }
.pv-line > a { color: inherit; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pv-acts { display: flex; gap: 4px; flex: none; }
.pv-acts .icon-btn { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); }
.pv-acts svg { width: 15px; height: 15px; }
.pv-link { display: inline-block; margin-top: 10px; font-weight: 650; font-size: 14px; }
.pv-alert { background: color-mix(in srgb, var(--red) 16%, transparent); border-left: 4px solid var(--red); border-radius: 8px; padding: 9px 12px; margin-bottom: 8px; white-space: pre-wrap; font-size: 15px; }
.pv-alert.soft { background: color-mix(in srgb, var(--red) 7%, transparent); border-left-color: color-mix(in srgb, var(--red) 50%, transparent); }
.pv-alert > span { display: block; font-size: 12px; font-weight: 750; text-transform: uppercase; letter-spacing: .05em; color: var(--red); margin-bottom: 2px; }
/* photo buttons only while editing */
.modal.viewing .sprof-top .photo-edit > div:last-child { display: none !important; }
/* student profile header: its own banner, different from the boxes below */
.sprof-top { position: relative; overflow: hidden; border: 0; border-radius: 16px; padding: 22px 24px; margin-bottom: 16px; color: #fff;
  background:
    radial-gradient(120% 140% at 0% 100%, rgba(242,92,18,.55), transparent 55%),
    radial-gradient(90% 120% at 100% 0%, rgba(58,111,216,.65), transparent 60%),
    radial-gradient(70% 90% at 60% 30%, rgba(107,76,154,.55), transparent 65%),
    linear-gradient(135deg, #0b1030, #1a1f55 55%, #22408f);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.10), 0 12px 30px -18px rgba(0,0,0,.6); }
.sprof-top::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .35; mix-blend-mode: overlay;
  background-image: url("/grain.svg"); background-size: 180px 180px; }
.sprof-top > * { position: relative; z-index: 1; }
.sprof-top .sprof-name { color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.35); }
.sprof-top .sprof-facts span { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.22); color: #fff; }
.sprof-top .sprof-facts a { color: #fff; }
.sprof-top .sprof-bap .btn, .sprof-top .photo-edit .btn { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.25); color: #fff; }
.sprof-top .sprof-bap .chip { box-shadow: 0 0 0 1px rgba(255,255,255,.25); }
.sprof-top .avatar.xl { box-shadow: 0 0 0 4px rgba(255,255,255,.18), 0 10px 24px -8px rgba(0,0,0,.6); }
/* student profile: the banner fills the top of the window, under the close and next buttons */
.modal.sprofile header { height: 56px; box-sizing: border-box; padding: 10px 14px; margin-bottom: -56px; background: transparent; z-index: 3; transition: background .2s, box-shadow .2s; }
.modal.sprofile header .icon-btn, .modal.sprofile header .snav { color: #fff; }
.modal.sprofile header .snav .muted { color: rgba(255,255,255,.8); }
.modal.sprofile:not(.scrolled) header .icon-btn { background: rgba(0,0,0,.18); }
.modal.sprofile.scrolled header { background: #141838; box-shadow: 0 6px 18px -10px rgba(0,0,0,.6); }
.modal.sprofile .content { padding-top: 0; }
.modal.sprofile .sprof-top { margin: 0 -18px 16px; border-radius: 0; padding-top: 64px; }
/* family page uses the same profile banner + boxes */
.sprof-acts { display: flex; gap: 6px; flex-wrap: wrap; }
.sprof-top .sprof-acts .btn { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.25); color: #fff; }
.fam-banner { padding: 26px 26px; }
.fam-banner .photo-edit > div:last-child { display: none !important; }
.fam-banner .photo-edit { width: auto; }
.fam-banner .avatar.xl { width: 120px; height: 120px; font-size: 40px; }
.psec-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.psec .list { margin: 0 -6px 6px; }
.psec .list > li { border-color: var(--line); }
.psec .pv a { color: inherit; }
/* volunteer card: hide delete/merge until editing */
.modal.viewing #vdel, .modal.viewing #vmerge { display: none !important; }
/* person also has a Staff Hub account */
.chip.hubuser { display: inline-flex; align-items: center; gap: 5px; background: color-mix(in srgb, #3a6fd8 22%, transparent); color: inherit; font-weight: 650; }
.chip.hubuser img { width: 16px; height: 16px; border-radius: 50%; object-fit: cover; }
.sprof-top .chip.hubuser { background: rgba(255,255,255,.18); color: #fff; }
.pv-pname .chip.hubuser { font-size: 11.5px; vertical-align: 2px; }
/* students in box mode: big photo, just name + grade */
.list.boxes.stboxes { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.list.boxes.stboxes .item { padding: 22px 12px 16px; gap: 10px; }
.list.boxes.stboxes .avatar.lg { width: 124px; height: 124px; font-size: 40px; box-shadow: 0 8px 20px -10px rgba(0,0,0,.5); }
.list.boxes.stboxes .title { font-size: 16px; font-weight: 700; }
.list.boxes.stboxes .bx-hide { display: none; }
.list.boxes.stboxes .meta { gap: 4px; }
@media (max-width: 520px) { .list.boxes.stboxes { grid-template-columns: repeat(2, 1fr); gap: 10px; } .list.boxes.stboxes .avatar.lg { width: 96px; height: 96px; font-size: 32px; } }
.list.boxes.stboxes .chip.red { font-size: 14px; line-height: 1; padding: 3px 7px; }
/* students: call button sits under the name in box mode */
.bx-only { display: none; }
.list.boxes.stboxes .bx-only { display: inline-flex; }
.list.boxes.stboxes .bx-call { margin-top: 8px; border-radius: 999px; font-size: 12.5px; padding: 5px 12px; gap: 6px; }
.list.boxes.stboxes .bx-call svg { width: 13px; height: 13px; }
/* ---------- pages staff build themselves */
.navemoji { width: 20px; height: 20px; display: inline-grid; place-items: center; font-size: 16px; line-height: 1; flex: none; }
.pg-icon { font-size: .9em; }
.pg-body { max-width: 900px; }
.pg-h { font-size: 22px; margin: 26px 0 10px; letter-spacing: -.01em; }
.pg-h:first-child { margin-top: 4px; }
.pg-sub { font-size: 16px; margin: 18px 0 8px; color: var(--ink-2); }
.pg-text { font-size: 16px; line-height: 1.6; }
.pg-text p { margin: 0 0 12px; } .pg-text ul, .pg-text ol { margin: 0 0 12px; padding-left: 22px; } .pg-text li { margin: 3px 0; }
.pg-hr { border: 0; border-top: 1px solid var(--line); margin: 22px 0; }
.pg-callout { display: flex; gap: 12px; border-radius: 12px; padding: 14px 16px; margin: 0 0 14px; border-left: 5px solid var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); font-size: 15px; line-height: 1.55; --c: #3a6fd8; }
.pg-callout.green { --c: #2f9e5b; } .pg-callout.amber { --c: #e39b17; } .pg-callout.red { --c: #d2453a; } .pg-callout.purple { --c: #8b5cf6; }
.pg-callout-ic { font-size: 22px; line-height: 1.2; } .pg-callout .pg-callout-t { display: block; margin-bottom: 2px; } .pg-callout p { margin: 0 0 6px; } .pg-callout p:last-child { margin: 0; }
.pg-img { margin: 0 0 16px; max-width: 620px; } .pg-img.wide { max-width: none; }
.pg-img img { width: 100%; border-radius: 12px; display: block; } .pg-img figcaption { color: var(--ink-2); font-size: 13.5px; margin-top: 6px; }
.pg-embed { margin: 0 0 18px; } .pg-embed-t { font-weight: 700; margin-bottom: 8px; }
.pg-embed iframe { width: 100%; border: 1px solid var(--line); border-radius: 12px; background: #fff; display: block; margin-bottom: 6px; }
.pg-embed > a { font-size: 13px; }
.pg-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin: 0 0 16px; }
.pg-link { display: flex; flex-direction: column; gap: 3px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: inherit; text-decoration: none; transition: transform .12s, border-color .12s; }
.pg-link:hover { transform: translateY(-1px); border-color: color-mix(in srgb, var(--ink) 35%, transparent); }
.pg-link b { font-size: 15.5px; } .pg-link span { color: var(--ink-2); font-size: 13px; }
.pg-fileic { font-size: 22px; width: 30px; text-align: center; }
.pg-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; margin: 0 0 16px; }
.pg-person { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); }
.pg-person .body { flex: 1; min-width: 0; } .pg-person .title { font-weight: 700; } .pg-person .meta { color: var(--ink-2); font-size: 13px; }
.pg-foot { font-size: 12.5px; margin-top: 26px; }
.pe-settings { margin-bottom: 14px; }
.pe-block { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px 6px; margin-bottom: 10px; background: var(--card); }
.pe-bhead { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-weight: 700; font-size: 13.5px; }
.pe-btools { display: flex; gap: 4px; } .pe-btools .icon-btn { width: 30px; height: 30px; font-size: 11px; border: 1px solid var(--line); border-radius: 8px; }
.pe-item { display: flex; gap: 8px; align-items: flex-start; border-top: 1px dashed var(--line); padding-top: 8px; } .pe-item .row { flex: 1; } .pe-item > .icon-btn { margin-top: 24px; }
.pe-block > .btn { margin-bottom: 10px; }
.pe-imgprev { max-width: 260px; max-height: 180px; border-radius: 10px; display: block; margin-bottom: 8px; }
.pe-addgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.pe-add { display: grid; grid-template-columns: 30px 1fr; grid-template-rows: auto auto; column-gap: 8px; text-align: left; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--hover); color: inherit; font: inherit; cursor: pointer; }
.pe-add:hover { border-color: color-mix(in srgb, var(--ink) 35%, transparent); }
.pe-add span { grid-row: 1 / 3; font-size: 22px; align-self: center; } .pe-add b { font-size: 14px; } .pe-add small { color: var(--ink-2); font-size: 12px; line-height: 1.3; }
.navtools #navnew { flex: none; }
.pe-item .pe-up { margin-top: 22px; white-space: nowrap; max-width: 220px; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
/* ---------- event retrospectives */
.stars { color: #f5a524; letter-spacing: 1px; font-size: 15px; white-space: nowrap; } .stars span { color: color-mix(in srgb, var(--ink) 22%, transparent); }
.retro-facts { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 12px; }
.retro-facts .stars { font-size: 20px; margin-right: 4px; }
.retro-grid { margin-bottom: 4px; } .retro-grid .psec { padding-bottom: 8px; }
.retro-grid .retro-key { border-color: color-mix(in srgb, #f5a524 55%, transparent); background: color-mix(in srgb, #f5a524 10%, transparent); }
.retro-evh { margin: 16px 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); }
.retro-evals { display: grid; gap: 8px; } .retro-eval { display: flex; gap: 10px; align-items: flex-start; } .retro-eval .title { font-weight: 650; }
.retro-empty { display: flex; gap: 14px; align-items: flex-start; }
.retro-last { margin: 0 0 16px; border: 1px solid color-mix(in srgb, #f5a524 50%, transparent); background: color-mix(in srgb, #f5a524 8%, var(--card)); }
.retro-last-h { font-weight: 750; font-size: 16px; margin-bottom: 8px; } .retro-last-h .muted { font-weight: 500; font-size: 13px; margin-left: 6px; }
.retro-last-item { padding: 8px 0; border-top: 1px solid var(--line); } .retro-last-item:first-of-type { border-top: 0; }
.retro-last-top { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .retro-last-top .btn { margin-left: auto; }
.retro-note { font-size: 14.5px; margin-top: 4px; } .retro-note p { margin: 0 0 4px; display: inline; } .retro-note ul { margin: 4px 0; }
.retro-ic { font-size: 22px; width: 32px; text-align: center; }
.retro-snip { font-size: 13.5px; color: var(--ink-2); margin-top: 6px; }
.retro-modal-head h2 { margin: 2px 0 12px; font-size: 24px; }
.starpick { display: flex; gap: 4px; margin-bottom: 12px; flex-direction: row-reverse; justify-content: flex-end; }
.starpick input { display: none; }
.starpick span { font-size: 34px; color: color-mix(in srgb, var(--ink) 22%, transparent); cursor: pointer; line-height: 1; transition: color .1s; }
.starpick input:checked ~ span, .starpick label:has(input:checked) ~ label span, .starpick label:hover span, .starpick label:hover ~ label span { color: #f5a524; }
