/* The hub's own chrome (top bar, lists, editor). Event pages bring their own theme (shared/event.css). */
:root {
  --navy: #0e2240; --navy-2: #1b365d; --gold: #c9a96e; --gold-2: #f3e7cc; --bg: #f3f5f8; --surface: #ffffff;
  --line: #e1e5eb; --text: #1d2433; --muted: #5d6779; --ok: #067647; --ok-bg: #ecfdf3; --warn: #b54708; --warn-bg: #fffaeb;
  --bad: #b42318; --bad-bg: #fef3f2; --radius: 12px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; color: var(--text);
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); }
body { min-height: 100vh; -webkit-font-smoothing: antialiased; }
a { color: var(--navy-2); }
button, input, select, textarea { font: inherit; color: inherit; }
.loading { text-align: center; color: var(--muted); padding: 60px 16px; }
[hidden] { display: none !important; }

/* top bar */
.topbar {
  position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 16px; padding: 10px 20px;
  padding-top: max(10px, env(safe-area-inset-top)); background: var(--navy); color: #fff; border-bottom: 3px solid var(--gold);
}
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.brand span { display: flex; flex-direction: column; line-height: 1.15; }
.brand b { font-family: 'Libre Baskerville', Georgia, serif; font-size: 1rem; letter-spacing: .3px; }
.brand small { color: var(--gold); font-size: .72rem; letter-spacing: 2px; text-transform: uppercase; }
.topnav { display: flex; gap: 4px; margin-left: 12px; }
.topnav a { color: #d6deea; text-decoration: none; padding: 7px 12px; border-radius: 8px; font-weight: 600; font-size: .92rem; }
.topnav a:hover, .topnav a.on { background: rgba(255,255,255,.1); color: #fff; }
.account { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--gold); color: var(--navy); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: .85rem; overflow: hidden; flex-shrink: 0; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.account-btn { display: flex; align-items: center; gap: 8px; background: none; border: 0; color: #fff; cursor: pointer; padding: 4px; border-radius: 999px; }
.account-btn .who { font-size: .88rem; font-weight: 600; }
.menu { position: absolute; right: 16px; top: 58px; background: #fff; color: var(--text); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.15); min-width: 220px; padding: 6px; z-index: 60; }
.menu .menu-head { padding: 10px 12px; border-bottom: 1px solid var(--line); margin-bottom: 4px; font-size: .86rem; }
.menu .menu-head small { display: block; color: var(--muted); }
.menu button, .menu a { display: block; width: 100%; text-align: left; padding: 9px 12px; background: none; border: 0; border-radius: 6px; cursor: pointer; text-decoration: none; color: inherit; }
.menu button:hover, .menu a:hover { background: var(--bg); }
@media (max-width: 720px) {
  .topbar { padding: 8px 12px; gap: 8px; flex-wrap: wrap; }
  .brand b { font-size: .9rem; }
  .account-btn .who { display: none; }
  .topnav { order: 3; width: 100%; margin: 0; overflow-x: auto; }
  .topnav a { white-space: nowrap; }
}

/* layout */
.page { max-width: 1120px; margin: 0 auto; padding: 24px 20px 64px; }
.page-narrow { max-width: 820px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.page-head h1 { font-family: 'Libre Baskerville', Georgia, serif; font-size: 1.6rem; margin: 0; color: var(--navy); }
.page-head p { margin: 4px 0 0; color: var(--muted); }
h2.group { font-size: .78rem; letter-spacing: 1.6px; text-transform: uppercase; color: var(--muted); margin: 28px 0 12px; display: flex; align-items: center; gap: 10px; }
h2.group::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.empty { padding: 28px; text-align: center; color: var(--muted); background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); }
@media (max-width: 560px) { .page { padding: 16px 12px 56px; } .page-head h1 { font-size: 1.3rem; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 16px; border-radius: 9px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); font-weight: 600; font-size: .92rem; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { border-color: #c4ccd8; background: #fafbfc; }
.btn.primary { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn.primary:hover { background: var(--navy-2); }
.btn.gold { background: var(--gold); border-color: #b8975a; color: var(--navy); }
.btn.danger { color: var(--bad); }
.btn.small { padding: 6px 11px; font-size: .84rem; }
.btn:disabled { opacity: .55; cursor: default; }
.linkbtn { background: none; border: 0; color: var(--navy-2); text-decoration: underline; cursor: pointer; padding: 0; font-size: .9rem; }
.plain-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 16px; background: var(--navy); }
.plain-card { background: #fff; border-radius: 14px; padding: 28px; max-width: 460px; border-top: 5px solid var(--gold); }
.plain-card h1 { font-family: 'Libre Baskerville', Georgia, serif; color: var(--navy); font-size: 1.35rem; margin-top: 0; }

/* chips */
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.chip { flex-shrink: 0; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; font-size: .86rem; cursor: pointer; color: var(--muted); }
.chip.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.pill { display: inline-flex; align-items: center; gap: 4px; font-size: .74rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--bg); color: var(--muted); white-space: nowrap; }
.pill.ok { background: var(--ok-bg); color: var(--ok); } .pill.warn { background: var(--warn-bg); color: var(--warn); }
.pill.bad { background: var(--bad-bg); color: var(--bad); } .pill.navy { background: var(--navy); color: #fff; } .pill.gold { background: var(--gold-2); color: #7a5b1f; }

/* event cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; gap: 12px; } }
.ecard { display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit;
  border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(16,24,40,.04); transition: transform .15s, box-shadow .15s; }
.ecard:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(16,24,40,.12); }
.ecard-art { position: relative; height: 112px; background: var(--page-bg); display: flex; align-items: flex-end; padding: 12px 14px; }
.ecard-art::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--ribbon); }
.ecard-date { background: #fff; border-radius: 10px; border: 2px solid var(--trim); text-align: center; min-width: 56px; padding: 4px 8px 6px; box-shadow: 0 4px 12px rgba(0,0,0,.25); }
.ecard-date small { display: block; font-size: .68rem; font-weight: 800; letter-spacing: 1px; color: var(--accent); }
.ecard-date b { display: block; font-family: var(--font-display); font-size: 1.5rem; line-height: 1; color: var(--ink); }
.ecard-badges { position: absolute; top: 14px; right: 12px; display: flex; gap: 6px; }
.ecard-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.ecard-series { font-size: .72rem; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); }
.ecard-title { font-family: var(--font-display); font-weight: 700; font-size: 1.08rem; color: var(--ink); line-height: 1.3; }
.ecard-meta { font-size: .86rem; color: var(--muted); }
.ecard-foot { margin-top: auto; padding-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.ecard.past { opacity: .82; }
.ecard.past .ecard-art { filter: saturate(.55); }

/* event page toolbar */
.evbar { max-width: 700px; margin: 0 auto 14px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; position: relative; z-index: 2; }
.evbar .back { color: #fff; text-decoration: none; font-weight: 600; font-size: .92rem; padding: 6px 10px; border-radius: 8px; background: rgba(0,0,0,.25); }
.evbar .spacer { flex: 1; }
.evbar .btn { background: rgba(255,255,255,.92); }
.evorg { max-width: 700px; margin: 14px auto 0; position: relative; z-index: 1; color: rgba(255,255,255,.88); font-size: .86rem; text-align: center; }
.evorg b { color: #fff; }
.hub-event { min-height: calc(100vh - 60px); }

/* panels and forms */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 16px; }
.panel h3 { margin: 0 0 14px; font-size: 1rem; color: var(--navy); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.panel h3 small { font-weight: 500; color: var(--muted); font-size: .82rem; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 640px) { .grid2, .grid3 { grid-template-columns: 1fr; } }
.fld { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; min-width: 0; }
.fld > span { font-size: .8rem; font-weight: 600; color: var(--muted); }
.fld input[type=text], .fld input[type=email], .fld input[type=date], .fld input[type=datetime-local], .fld input[type=number], .fld input[type=url], .fld select, .fld textarea, .inp {
  width: 100%; padding: 9px 11px; border: 1px solid #cfd5de; border-radius: 8px; background: #fff; font-size: .94rem; min-width: 0;
}
.fld textarea { resize: vertical; min-height: 70px; }
.fld input:focus, .fld select:focus, .fld textarea:focus, .inp:focus { outline: none; border-color: var(--navy-2); box-shadow: 0 0 0 3px rgba(27,54,93,.12); }
.check { display: inline-flex; align-items: center; gap: 7px; font-size: .9rem; cursor: pointer; margin-right: 14px; }
.check input { accent-color: var(--navy); width: 16px; height: 16px; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.row.end { justify-content: flex-end; }
.muted { color: var(--muted); font-size: .88rem; }
.info { position: relative; display: inline-flex; }
.info-btn { width: 20px; height: 20px; border-radius: 50%; border: 1px solid #c4ccd8; background: #fff; color: var(--muted); font-size: .72rem; font-weight: 800; cursor: pointer; padding: 0; line-height: 1; font-family: Georgia, serif; font-style: italic; }
.info-tip { display: none; position: absolute; right: 0; top: 26px; width: 260px; z-index: 30; background: var(--navy); color: #fff; font-size: .82rem; font-weight: 400; line-height: 1.45; padding: 10px 12px; border-radius: 8px; box-shadow: 0 8px 20px rgba(0,0,0,.2); text-transform: none; letter-spacing: 0; }
.info:hover .info-tip, .info.open .info-tip { display: block; }

/* editor */
.editor { display: grid; grid-template-columns: minmax(380px, 1fr) minmax(0, 1.05fr); height: calc(100vh - 63px); }
.editor-side { overflow-y: auto; padding: 18px 18px 90px; border-right: 1px solid var(--line); background: var(--bg); }
.editor-preview { overflow-y: auto; position: relative; }
.editor-preview .ev-page { min-height: 100%; }
.editor-tabs { display: none; }
.editor-bar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: -18px -18px 16px; padding: 12px 18px; background: rgba(243,245,248,.96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.editor-bar .title { font-weight: 700; color: var(--navy); flex: 1; min-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dirty { color: var(--warn); font-size: .8rem; font-weight: 600; }
.sec-nav { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 14px; scrollbar-width: none; }
.sec-nav button { flex-shrink: 0; border: 1px solid var(--line); background: #fff; padding: 6px 12px; border-radius: 999px; font-size: .84rem; font-weight: 600; cursor: pointer; color: var(--muted); }
.sec-nav button.on { background: var(--navy); color: #fff; border-color: var(--navy); }
@media (max-width: 900px) {
  .editor { display: block; height: auto; }
  .editor-side { border: 0; padding-bottom: 40px; overflow: visible; }
  .editor-preview { display: none; }
  .editor.show-preview .editor-side { display: none; }
  .editor.show-preview .editor-preview { display: block; }
  .editor-tabs { display: flex; gap: 8px; padding: 10px 12px; background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 6; }
  .editor-tabs button { flex: 1; padding: 8px; border-radius: 8px; border: 1px solid var(--line); background: #fff; font-weight: 700; cursor: pointer; }
  .editor-tabs button.on { background: var(--navy); color: #fff; border-color: var(--navy); }
  .editor-bar { position: static; margin: -18px -18px 14px; }
}

.themes { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.theme-tile { border: 2px solid var(--line); border-radius: 10px; overflow: hidden; cursor: pointer; background: #fff; padding: 0; text-align: left; }
.theme-tile.on { border-color: var(--navy); box-shadow: 0 0 0 2px var(--gold); }
.theme-tile .sw { height: 54px; position: relative; }
.theme-tile .sw::after { content: 'Aa'; position: absolute; right: 8px; bottom: 6px; background: #fff; border-radius: 6px; padding: 1px 7px; font-weight: 700; font-size: .9rem; }
.theme-tile .sw span { position: absolute; left: 0; right: 0; top: 0; height: 5px; }
.theme-tile b { display: block; padding: 6px 8px; font-size: .78rem; }
.colors { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
@media (max-width: 480px) { .colors { grid-template-columns: repeat(3, 1fr); } }
.color { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: .74rem; font-weight: 600; color: var(--muted); }
.color input { width: 100%; height: 38px; padding: 2px; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; }
/* logo previews on a checkerboard, so a transparent background shows as transparent */
.thumb { max-height: 48px; max-width: 160px; border-radius: 6px; border: 1px solid var(--line); padding: 3px;
  background: repeating-conic-gradient(#e5e7eb 0 25%, #ffffff 0 50%) 0 0 / 12px 12px; }
.logo-bg { margin: 4px 0 8px; align-items: center; }

.qcard { background: #fff; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px; }
.qcard.heading { border-left: 4px solid var(--gold); }
.qcard.follow { margin-left: 22px; border-left: 4px solid var(--navy-2); }
.qhead { display: flex; align-items: center; gap: 8px; padding: 9px 10px; cursor: pointer; }
.qhead .qtype { font-size: .7rem; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; color: var(--muted); background: var(--bg); padding: 3px 8px; border-radius: 6px; flex-shrink: 0; }
.qhead .qlabel { flex: 1; font-weight: 600; font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qhead .qtools { display: flex; gap: 2px; flex-shrink: 0; }
.iconbtn { width: 30px; height: 30px; border-radius: 7px; border: 1px solid transparent; background: none; cursor: pointer; color: var(--muted); font-size: .95rem; display: inline-flex; align-items: center; justify-content: center; }
.iconbtn:hover { background: var(--bg); border-color: var(--line); color: var(--text); }
.qbody { padding: 4px 12px 12px; border-top: 1px solid var(--line); }
.optrow { display: grid; grid-template-columns: 1fr 1fr 30px; gap: 6px; margin-bottom: 6px; }
@media (max-width: 480px) { .optrow { grid-template-columns: 1fr 30px; } .optrow .inp:nth-child(2) { grid-column: 1; } }
.addq { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }

/* responses */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
@media (max-width: 640px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.stat b { display: block; font-size: 1.7rem; color: var(--navy); font-family: 'Libre Baskerville', Georgia, serif; }
.stat span { font-size: .8rem; color: var(--muted); font-weight: 600; }
.counts { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin-bottom: 16px; }
.bar { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; font-size: .88rem; margin-bottom: 8px; }
.bar i { grid-column: 1 / -1; height: 6px; border-radius: 6px; background: var(--bg); overflow: hidden; display: block; }
.bar i em { display: block; height: 100%; background: var(--gold); border-radius: 6px; }
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
table.tbl { width: 100%; border-collapse: collapse; font-size: .88rem; }
.tbl th { text-align: left; font-size: .74rem; letter-spacing: .5px; text-transform: uppercase; color: var(--muted); background: #fafbfc; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tr.guest td { background: #fcfcfd; color: var(--muted); }
.tbl tr.guest td:first-child { padding-left: 28px; }
.tbl .acts { white-space: nowrap; text-align: right; }
.person { display: flex; align-items: center; gap: 10px; }
.person small { display: block; color: var(--muted); }

/* dialogs */
.dlg-back { position: fixed; inset: 0; z-index: 200; background: rgba(14,34,64,.55); display: flex; align-items: flex-start; justify-content: center; padding: 40px 16px; overflow-y: auto; }
.dlg { background: #fff; border-radius: 14px; width: 100%; max-width: 560px; box-shadow: 0 24px 60px rgba(0,0,0,.3); border-top: 5px solid var(--gold); }
.dlg.wide { max-width: 760px; }
.dlg-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.dlg-head h2 { margin: 0; font-size: 1.1rem; color: var(--navy); }
.dlg-body { padding: 18px 20px; }
.dlg-foot { padding: 14px 20px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.dlg .ev-page { padding: 0; background: none; min-height: 0; }
.dlg .ev-card { box-shadow: none; }
.starters { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.starter { border: 2px solid var(--line); border-radius: 10px; padding: 0; background: #fff; cursor: pointer; text-align: left; overflow: hidden; }
.starter.on { border-color: var(--navy); box-shadow: 0 0 0 2px var(--gold); }
.starter .sw { height: 46px; }
.starter b { display: block; padding: 8px 10px; font-size: .84rem; line-height: 1.3; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: var(--navy); color: #fff; padding: 11px 18px; border-radius: 10px;
  font-weight: 600; font-size: .9rem; box-shadow: 0 10px 30px rgba(0,0,0,.25); opacity: 0; pointer-events: none; transition: all .2s; z-index: 300; max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translateX(-50%); }
.toast.bad { background: var(--bad); }

/* people */
.plist { display: grid; gap: 8px; }
.prow { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; flex-wrap: wrap; }
.prow .pinfo { flex: 1; min-width: 180px; }
.prow .pinfo small { display: block; color: var(--muted); }
.prow select { padding: 6px 8px; border-radius: 7px; border: 1px solid var(--line); background: #fff; }
.series-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.series-card h3 { margin: 0; font-family: 'Libre Baskerville', Georgia, serif; color: var(--navy); font-size: 1.05rem; }

/* custom event pages (sealed frame) */
.pe-frame { display: block; width: 100%; height: 100%; border: 0; background: #fff; }
.hub-custom { display: flex; flex-direction: column; height: calc(100dvh - var(--topbar-h, 63px)); }
.hub-custom .evbar { max-width: none; margin: 0; padding: 8px 12px; background: var(--navy); }
.hub-custom .evbar .back { background: rgba(255,255,255,.12); }
.hub-custom .pe-frame-wrap { flex: 1; min-height: 0; }
.editor-preview .pe-frame { height: 100%; min-height: calc(100dvh - 63px); }
textarea.code { width: 100%; padding: 10px; border: 1px solid #cfd5de; border-radius: 8px; resize: vertical; font: 12.5px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre; min-height: 260px; tab-size: 2; }
.blocklist { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: .86rem; }
.blocklist code { background: var(--bg); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; font-size: .82rem; color: var(--navy); }
.warnbox { background: var(--warn-bg); color: var(--warn); border: 1px solid #fedf89; border-radius: 8px; padding: 9px 12px; font-size: .86rem; font-weight: 600; margin-bottom: 10px; }

/* responses: select a row to open the submission */
.rsvp-tbl th { white-space: normal; min-width: 96px; max-width: 190px; line-height: 1.3; vertical-align: bottom; }
.rsvp-tbl td { max-width: 220px; }
.rsvp-tbl th:first-child, .rsvp-tbl td:first-child { position: sticky; left: 0; z-index: 1; min-width: 150px; box-shadow: 1px 0 0 var(--line); }
.rsvp-tbl th:first-child { background: #fafbfc; }
.rsvp-tbl td:first-child { background: #fff; }
.rsvp-tbl tr.guest td:first-child { background: #fcfcfd; }
.open-row { cursor: pointer; }
.open-row:hover td, .open-row:hover td:first-child, .open-row:focus-visible td { background: #f5f7fb; }
.open-row:focus-visible { outline: 2px solid var(--navy-2); outline-offset: -2px; }
.row-name { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.chev { color: var(--muted); font-size: 1.2rem; line-height: 1; }
.sub-card { border: 1px solid var(--line); border-radius: 10px; padding: 6px 14px; margin-bottom: 10px; }
.sub-head { font-weight: 700; color: var(--navy); padding: 6px 0; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.sub-row { display: flex; justify-content: space-between; gap: 14px; padding: 7px 0; border-top: 1px solid var(--line); font-size: .9rem; }
.sub-card > .sub-row:first-child { border-top: 0; }
.sub-row span { color: var(--muted); }
.sub-row b { text-align: right; font-weight: 600; }
.sub-meta { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 16px; font-size: .86rem; margin: 6px 0 4px; }
.sub-meta span { display: block; color: var(--muted); font-size: .76rem; font-weight: 600; }
@media (max-width: 520px) { .sub-meta { grid-template-columns: 1fr; } }
.sub-history { margin-top: 12px; }
.sub-history summary { cursor: pointer; font-weight: 600; color: var(--navy-2); margin-bottom: 10px; }

/* allergy / dietary notes */
.note-cell { min-width: 160px; white-space: pre-line; color: #7a2e0e; font-weight: 600; }
.note-text { white-space: pre-line; }
.notes-panel { border-left: 4px solid var(--gold); }
.notes-panel .sub-row:first-of-type { border-top: 0; }
.sub-note b { color: #7a2e0e; }

/* companies and contacts */
.co-mark { display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; background: var(--b-ink); color: var(--b-trim);
  font-weight: 700; font-size: 1.05rem; overflow: hidden; flex-shrink: 0; border: 2px solid var(--b-trim); }
.co-mark img { width: 100%; height: 100%; object-fit: contain; padding: 3px; }
.co-mark.has-logo { border-color: transparent; }
.co-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s; }
.co-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(16,24,40,.12); }
.co-band { background: linear-gradient(135deg, var(--b-ink), var(--b-primary)); padding: 18px 16px; border-bottom: 4px solid var(--b-trim); }
.co-body { padding: 12px 16px 14px; display: flex; flex-direction: column; gap: 4px; }
.co-body b { font-size: 1.05rem; color: var(--navy); }
.co-body small { color: var(--muted); }
.co-parent { margin-bottom: 4px; }
.co-hero { border-radius: var(--radius); overflow: hidden; background: linear-gradient(135deg, var(--b-ink), var(--b-primary)); color: #fff; margin-bottom: 16px; }
.co-hero-ribbon { height: 8px; background: repeating-linear-gradient(45deg, var(--b-accent) 0 15px, var(--b-trim) 15px 20px, var(--b-primary) 20px 35px); }
.co-hero-in { display: flex; align-items: center; gap: 18px; padding: 22px 24px; flex-wrap: wrap; }
.co-hero-logo { max-height: 64px; max-width: 200px; }
.co-hero h1 { margin: 0; font-size: 1.7rem; }
.co-hero p { margin: 4px 0 0; color: rgba(255,255,255,.8); }
.co-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: 16px; align-items: start; }
@media (max-width: 900px) { .co-grid { grid-template-columns: 1fr; } }
.ct-tbl td:first-child, .ct-tbl th:first-child { min-width: 150px; }
.pill.gf { background: #fef3c7; color: #92400e; }
.diet { color: #7a2e0e; font-weight: 600; font-size: .86rem; }
.ct-h { font-size: .95rem; color: var(--navy); margin: 18px 0 8px; }
.ct-addfam { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 10px; }
.fam-card { border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; margin-bottom: 10px; display: grid; gap: 4px; }
.fam-head { display: flex; align-items: center; gap: 8px; }
.fam-head .spacer { flex: 1; }
.co-pill { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 700; padding: 2px 9px 2px 3px; border-radius: 999px; background: var(--bg); color: var(--text); white-space: nowrap; }
.co-pill .co-mark { border-width: 1px; border-radius: 50%; font-size: .55rem; }

/* gluten-free and skip */
.optrow.gfrow { grid-template-columns: 1fr 1fr auto 30px; }
.optgf { display: inline-flex; align-items: center; gap: 4px; font-size: .74rem; font-weight: 800; color: #92400e; cursor: pointer; padding: 0 4px; }
.optgf input { accent-color: #b45309; }
@media (max-width: 480px) { .optrow.gfrow { grid-template-columns: 1fr auto 30px; } .optrow.gfrow .inp:nth-child(2) { grid-column: 1 / -1; } }
.stats { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* forms and files */
.form-chips { margin-bottom: 14px; }
.form-chips .chip { text-decoration: none; }
.form-list { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.file-row { display: grid; grid-template-columns: 46px 1fr auto auto 30px; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.file-row:first-of-type { border-top: 0; }
.file-ic { width: 42px; height: 42px; border-radius: 8px; background: var(--bg); border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; font-size: .66rem; font-weight: 800; color: var(--navy-2); }
.file-row small { color: var(--muted); display: block; }
@media (max-width: 520px) { .file-row { grid-template-columns: 42px 1fr 30px; } .file-row .file-pub, .file-row .file-open { grid-column: 2; } }
.dropzone { border: 2px dashed #c4ccd8; border-radius: 10px; padding: 18px; text-align: center; color: var(--muted); cursor: pointer; display: block; }
.dropzone.over { border-color: var(--navy-2); background: #f5f7fb; color: var(--navy-2); }

.rsvp-tbl .ev-fileimg, .sub-file .ev-fileimg, .note-text .ev-fileimg { width: 48px; height: 48px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); display: inline-block; }
.sub-file .ev-fileimg { width: 96px; height: 96px; }
.rsvp-tbl .ev-file-ic, .sub-file .ev-file-ic { display: inline-flex; width: 42px; height: 42px; align-items: center; justify-content: center; border-radius: 6px; background: var(--bg); border: 1px solid var(--line); font-size: .66rem; font-weight: 800; color: var(--navy-2); text-decoration: none; }

/* sign-in, set-password, welcome */
.plain-card.signin { width: 100%; }
.btn.wide { width: 100%; padding: 11px 16px; font-size: .98rem; }
.center { text-align: center; }
.or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .82rem; margin: 18px 0 12px; }
.or::before, .or::after { content: ''; flex: 1; border-top: 1px solid var(--line); }
.signin .fld input { width: 100%; padding: 10px 11px; border: 1px solid #cfd5de; border-radius: 8px; font-size: 1rem; }
.signin .fld input:focus { outline: none; border-color: var(--navy-2); box-shadow: 0 0 0 3px rgba(27,54,93,.12); }
.signin-err { background: #fdecec; color: var(--bad); border-radius: 8px; padding: 9px 11px; font-size: .9rem; margin-bottom: 12px; }
.signin-err a { color: inherit; font-weight: 700; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--navy-2); font: inherit; font-weight: 700; cursor: pointer; text-decoration: underline; }
.panel.welcome h1 { font-family: 'Libre Baskerville', Georgia, serif; color: var(--navy); font-size: 1.4rem; margin: 0 0 6px; }

/* People → Needs review */
.plist + .panel { margin-top: 18px; }
.rv-card { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.rv-what { font-weight: 600; color: var(--navy); }
.rv-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 560px) { .rv-pair { grid-template-columns: 1fr; } }
.rv-person { background: #f6f8fb; border-radius: 8px; padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.rv-person small { font-size: .82rem; }

.btn.passkey-btn { margin-top: 10px; }
.signin [data-pkerr] { margin: 10px 0 0; }
