/* CBEG team app. Black crest, warm ivory, family gold; Cormorant Garamond + Manrope (same as cbeventgroup.com). */
@font-face { font-family: "Manrope"; src: url("/static/fonts/manrope-latin-wght-normal.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("/static/fonts/cormorant-garamond-latin-wght-normal.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("/static/fonts/cormorant-garamond-latin-wght-italic.woff2") format("woff2"); font-weight: 300 700; font-style: italic; font-display: swap; }

:root {
  --ink: #141414; --ink-2: #2b2a28; --muted: #6f6a62; --faint: #9b958b;
  --bg: #f7f4ee; --soft: #f1ece3; --card: #fff; --card-2: #fcfaf6;
  --line: rgb(20 20 20 / .09); --line-2: rgb(20 20 20 / .16);
  --gold: #c9a24a; --gold-ink: #8a6a1f; --gold-soft: #f6eedb; --gold-line: rgb(201 162 74 / .45);
  --accent: var(--gold-ink); --danger: #b3261e; --danger-soft: #fbeceb; --ok: #2e7d4f; --ok-soft: #e7f3eb; --info: #3c4f75; --info-soft: #eceff6;
  --side: #111; --side-ink: rgb(248 245 239 / .74);
  --radius: 14px; --radius-sm: 10px;
  --shadow: 0 1px 2px rgb(20 20 20 / .04), 0 6px 20px -8px rgb(20 20 20 / .08);
  --shadow-lift: 0 2px 4px rgb(20 20 20 / .05), 0 14px 32px -12px rgb(20 20 20 / .18);
  --display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --side-w: 248px; --ease: cubic-bezier(.2,.7,.2,1);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 15px/1.55 var(--sans); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: inherit; text-underline-offset: 3px; text-decoration-color: var(--gold-line); }
a:hover { text-decoration-color: var(--gold); }
::selection { background: var(--gold-soft); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
.ic { flex: none; }

/* ------------------------------------------------ Shell ------------------------------------------------ */
.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.side { position: fixed; inset: 0 auto 0 0; width: var(--side-w); background: var(--side); color: var(--side-ink); display: flex; flex-direction: column; z-index: 40; padding: 20px 14px 14px; padding-top: max(20px, env(safe-area-inset-top)); }
.side-head { display: flex; align-items: center; justify-content: space-between; padding: 0 8px 22px; }
.brandmark { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: #f8f5ef; }
.brandmark .crest { width: 44px; aspect-ratio: 809 / 481; background: var(--gold); -webkit-mask: url("/static/crest.png") center / contain no-repeat; mask: url("/static/crest.png") center / contain no-repeat; }
.brandmark .wm { display: grid; line-height: 1; }
.brandmark .l1 { font: 500 1.12rem/1 var(--display); letter-spacing: .01em; }
.brandmark .l2 { font: 600 .55rem/1 var(--sans); letter-spacing: .32em; text-transform: uppercase; opacity: .62; margin-top: 5px; }
.side nav { flex: 1; overflow-y: auto; display: grid; align-content: start; gap: 1px; margin: 0 -4px; padding: 0 4px; scrollbar-width: thin; scrollbar-color: rgb(255 255 255 / .15) transparent; }
.nav-group { font: 600 .64rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: rgb(248 245 239 / .38); padding: 18px 12px 8px; }
.side nav a { position: relative; display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 10px; text-decoration: none; font-weight: 500; font-size: .92rem; transition: background .15s, color .15s; }
.side nav a .ic { opacity: .7; }
.side nav a:hover { background: rgb(255 255 255 / .06); color: #fff; }
.side nav a.on { background: rgb(201 162 74 / .14); color: #fff; }
.side nav a.on .ic { color: var(--gold); opacity: 1; }
.side nav a.on::before { content: ""; position: absolute; left: -4px; top: 9px; bottom: 9px; width: 3px; border-radius: 3px; background: var(--gold); }
.side-close { display: none; color: #fff; cursor: pointer; padding: 6px; }
.side-settings { display: flex; align-items: center; gap: 12px; margin-top: 8px; padding: 9px 12px; border-radius: 10px; text-decoration: none; font-weight: 500; font-size: .92rem; }
.side-settings .ic { opacity: .7; } .side-settings:hover { background: rgb(255 255 255 / .06); color: #fff; }
.side-settings.on { background: rgb(201 162 74 / .14); color: #fff; } .side-settings.on .ic { color: var(--gold); opacity: 1; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.tile { display: grid; gap: 6px; align-content: start; padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; box-shadow: var(--shadow); transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s; }
.tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); border-color: var(--gold-line); }
.tile strong { font: 600 1.18rem/1.2 var(--display); } .tile span { font-size: .84rem; color: var(--muted); line-height: 1.45; }
.me { position: relative; margin-top: 10px; border-top: 1px solid rgb(255 255 255 / .08); padding-top: 12px; }
.me summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 10px; }
.me summary::-webkit-details-marker { display: none; }
.me summary:hover { background: rgb(255 255 255 / .06); }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #d9b968, #a8822f); color: #1a1406; font: 700 .78rem var(--sans); letter-spacing: .02em; flex: none; }
.me .who { display: grid; line-height: 1.25; min-width: 0; } .me .who strong { color: #f8f5ef; font-weight: 600; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .me .who span { font-size: .75rem; text-transform: capitalize; opacity: .7; }
.me .menu { position: absolute; left: 0; right: 0; bottom: calc(100% + 6px); background: #fff; color: var(--ink); border-radius: 12px; box-shadow: var(--shadow-lift); padding: 6px; display: grid; gap: 2px; }
.me .menu a, .me .menu button { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 9px 10px; border-radius: 8px; font: 500 .9rem var(--sans); color: inherit; text-decoration: none; cursor: pointer; }
.me .menu a:hover, .me .menu button:hover { background: var(--soft); }

.topbar { position: sticky; top: 0; z-index: 30; margin-left: var(--side-w); display: flex; align-items: center; gap: 12px; padding: 12px 28px; background: rgb(247 244 238 / .86); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.topbar .search { flex: 1; max-width: 520px; display: flex; align-items: center; gap: 8px; padding: 0 14px; height: 40px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--muted); transition: border-color .15s, box-shadow .15s; }
.topbar .search:focus-within { border-color: var(--gold-line); box-shadow: 0 0 0 4px rgb(201 162 74 / .14); }
.topbar .search input { border: 0; padding: 0; height: 100%; background: none; box-shadow: none; font-size: .9rem; }
.topbar .search input:focus { outline: none; box-shadow: none; }
.icon-btn { display: none; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: var(--ink); cursor: pointer; }
.icon-btn:hover { background: var(--soft); }
.topbar-mark { display: none; }
.scrim, .tabbar { display: none; }

.wrap { margin-left: var(--side-w); max-width: calc(1180px + var(--side-w)); padding: 28px 40px 64px; }
body.signed-out .wrap { margin: 0; max-width: none; padding: 0; }

/* ------------------------------------------------ Type ------------------------------------------------ */
h1 { font: 500 clamp(1.9rem, 3.2vw, 2.6rem)/1.08 var(--display); letter-spacing: -.01em; margin: 4px 0 20px; text-wrap: balance; }
h2 { font: 600 1.42rem/1.2 var(--display); letter-spacing: 0; margin: 32px 0 12px; }
h3 { font: 700 .98rem/1.3 var(--sans); margin: 18px 0 8px; }
h1 + .muted, h1 + p.muted { margin-top: -12px; }
p { margin: 0 0 12px; }
.muted { color: var(--muted); } .small { font-size: .85rem; }
code { font: .85em ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--soft); padding: 1px 6px; border-radius: 6px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }

/* ------------------------------------------------ Layout bits ------------------------------------------------ */
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.card > h2:first-child, .card > h3:first-child { margin-top: 0; }
.list { display: grid; gap: 10px; }
.item { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 14px; padding: 16px 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; box-shadow: var(--shadow); transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s; }
a.item:hover { transform: translateY(-1px); box-shadow: var(--shadow-lift); border-color: var(--gold-line); }
.item.new { box-shadow: inset 3px 0 0 var(--gold), var(--shadow); }
.item .name { font-weight: 700; font-size: .98rem; } .item .meta { font-size: .84rem; color: var(--muted); grid-column: 1 / -1; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; } .actions form { margin: 0; }
.empty { text-align: center; padding: 56px 16px; color: var(--muted); font: italic 500 1.25rem var(--display); background: var(--card-2); border: 1px dashed var(--line-2); border-radius: var(--radius); box-shadow: none; }
dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: 10px 20px; margin: 0; } dl.facts dt { color: var(--muted); font-size: .86rem; } dl.facts dd { margin: 0; word-break: break-word; }

/* ------------------------------------------------ Controls ------------------------------------------------ */
.btn, button.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; font: 600 .86rem var(--sans); letter-spacing: .01em; color: var(--ink); text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, box-shadow .15s, transform .1s; }
.btn:hover { border-color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--ink); color: #f8f5ef; border-color: var(--ink); box-shadow: 0 1px 2px rgb(0 0 0 / .2); }
.btn.primary:hover { background: #2a2a2a; }
.btn.gold { background: var(--gold); border-color: var(--gold); color: #1a1406; }
.btn.danger { color: var(--danger); border-color: rgb(179 38 30 / .25); } .btn.danger:hover { background: var(--danger-soft); border-color: var(--danger); }
.btn[disabled], button:disabled { opacity: .45; cursor: not-allowed; }
input, select, textarea { font: inherit; font-size: .93rem; color: var(--ink); padding: 10px 13px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: #fff; width: 100%; transition: border-color .15s, box-shadow .15s; }
input:hover, select:hover, textarea:hover { border-color: rgb(20 20 20 / .26); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgb(201 162 74 / .16); }
input[type=checkbox], input[type=radio] { width: auto; accent-color: var(--ink); }
input[type=file] { padding: 8px; background: var(--card-2); }
select { appearance: none; padding-right: 34px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236f6a62' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center; }
label { display: grid; gap: 6px; font-size: .82rem; font-weight: 600; color: var(--ink-2); }
label.row { display: flex; font-weight: 500; }
details > summary { cursor: pointer; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 14px; }
.chip { display: inline-flex; align-items: center; padding: 6px 13px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; text-decoration: none; font-size: .84rem; font-weight: 500; white-space: nowrap; transition: border-color .15s, background .15s; }
.chip:hover { border-color: var(--ink); }
.chip.on { background: var(--ink); color: #f8f5ef; border-color: var(--ink); }
.brand-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 7px; vertical-align: middle; box-shadow: 0 0 0 2px rgb(255 255 255 / .7); }
.tabs { display: flex; gap: 2px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin: 14px 0 20px; }
.tabs a { padding: 10px 14px; text-decoration: none; border-bottom: 2px solid transparent; color: var(--muted); font-weight: 500; margin-bottom: -1px; }
.tabs a:hover { color: var(--ink); } .tabs a.on { color: var(--ink); border-bottom-color: var(--gold); font-weight: 600; }

/* ------------------------------------------------ Status & feedback ------------------------------------------------ */
.status { display: inline-flex; align-items: center; gap: 5px; font: 700 .66rem/1 var(--sans); text-transform: uppercase; letter-spacing: .1em; padding: 6px 9px; border-radius: 999px; background: var(--soft); color: var(--ink-2); white-space: nowrap; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .7; }
.status.new { background: var(--gold-soft); color: #7a5a12; }
.status.contacted { background: var(--info-soft); color: var(--info); }
.status.booked { background: var(--ok-soft); color: var(--ok); }
.status.lost { background: #efedea; color: #8a857c; }
.flash { padding: 12px 16px; border-radius: 12px; background: var(--ok-soft); color: #1f5c39; margin-bottom: 16px; border: 1px solid rgb(46 125 79 / .18); font-weight: 500; }
.progress { height: 6px; background: var(--soft); border-radius: 3px; overflow: hidden; } .progress > i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #a8822f, var(--gold)); transition: width .25s; }

/* ------------------------------------------------ Tables ------------------------------------------------ */
table.t { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.t th, .t td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.t tr:last-child td { border-bottom: 0; }
.t th { font: 700 .68rem var(--sans); color: var(--muted); letter-spacing: .1em; text-transform: uppercase; background: var(--card-2); }
.t tbody tr { transition: background .12s; } .t tbody tr:hover { background: var(--card-2); }
.t .num, td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.card table.t { box-shadow: none; }

/* ------------------------------------------------ Inbox, threads, texts ------------------------------------------------ */
.timeline { display: grid; gap: 10px; } .ev { padding: 12px 14px; background: var(--card-2); border: 1px solid var(--line); border-radius: 12px; } .ev .who { font-size: .78rem; color: var(--muted); }
details.ev.mail summary { cursor: pointer; list-style: none; } details.ev.mail summary::-webkit-details-marker { display: none; }
details.ev.mail.in { background: #f4f6fb; } details.ev.mail.out { background: var(--gold-soft); border-color: rgb(201 162 74 / .25); }
.thread { display: grid; gap: 8px; }
.sms { max-width: 78%; padding: 10px 14px; border-radius: 18px; line-height: 1.45; } .sms .who { font-size: .72rem; opacity: .7; margin-top: 4px; }
.sms.in { background: #ece9e3; justify-self: start; border-bottom-left-radius: 6px; }
.sms.out { background: var(--ink); color: #f8f5ef; justify-self: end; border-bottom-right-radius: 6px; } .sms.out a { color: #f8f5ef; }
.sms.failed { background: var(--danger-soft); color: var(--danger); }
.timeline .sms { max-width: 85%; }
.formq { display: grid; gap: 6px; padding: 14px 0; border-bottom: 1px solid var(--line); } .formq h3 { margin: 12px 0 0; }

/* ------------------------------------------------ Galleries ------------------------------------------------ */
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.thumb { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--soft); display: grid; place-items: center; font-size: .8rem; color: var(--muted); text-align: center; }
.thumb img, .thumb video { width: 100%; height: 100%; object-fit: cover; transition: transform .3s var(--ease); } .thumb:hover img { transform: scale(1.03); }
.thumb .x { position: absolute; top: 6px; right: 6px; background: rgb(0 0 0 / .6); color: #fff; border: 0; border-radius: 999px; width: 26px; height: 26px; cursor: pointer; }
.thumb .kind { position: absolute; left: 6px; bottom: 6px; background: rgb(0 0 0 / .6); color: #fff; border-radius: 6px; padding: 1px 6px; font-size: .7rem; }
.drop { border: 1.5px dashed var(--line-2); border-radius: var(--radius); padding: 36px; text-align: center; background: var(--card-2); cursor: pointer; transition: border-color .15s, background .15s; }
.drop:hover, .drop.over { border-color: var(--gold); background: var(--gold-soft); }

/* ------------------------------------------------ Calendar ------------------------------------------------ */
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 12px 0; box-shadow: var(--shadow); }
.cal-h { background: var(--card-2); padding: 8px; font: 700 .66rem var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); text-align: center; }
.cal-d { background: #fff; min-height: 110px; padding: 6px; display: flex; flex-direction: column; gap: 3px; overflow: hidden; }
.cal-d.out { background: var(--card-2); } .cal-d.out .n { opacity: .4; }
.cal-d .n { font-size: .78rem; font-weight: 600; align-self: flex-start; padding: 1px 7px; }
.cal-d.today .n { background: var(--gold); color: #1a1406; border-radius: 999px; }
.cev { display: block; font-size: .72rem; line-height: 1.3; padding: 3px 6px; border-radius: 6px; text-decoration: none; background: color-mix(in oklab, var(--c) 14%, white); border-left: 3px solid var(--c); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cev.consultation { border-left-style: dashed; } .cev.external { background: #f1efeb; border-left-color: #b9b3a8; color: #6f6a62; }
.agenda { display: none; } .agenda .cev { font-size: .9rem; white-space: normal; padding: 9px 11px; }

/* ------------------------------------------------ Data tables (settings lists) ------------------------------------------------ */
.crud { overflow-x: auto; } .crud-t td { vertical-align: top; } .crud-t input, .crud-t select, .crud-t textarea { min-width: 80px; padding: 7px 9px; }
.crud-act { white-space: nowrap; display: flex; gap: 4px; } .crud-act form { display: inline; } .crud-new td { background: var(--card-2); }

/* ------------------------------------------------ Page header & dashboard ------------------------------------------------ */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head h1 { margin: 0; }
.eyebrow { font: 700 .68rem var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--gold-ink); margin: 0 0 8px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 26px; }
.stat { position: relative; display: grid; gap: 6px; padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; box-shadow: var(--shadow); overflow: hidden; transition: transform .18s var(--ease), box-shadow .18s var(--ease); }
.stat:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.stat .n { font: 500 2.3rem/1 var(--display); letter-spacing: -.01em; font-variant-numeric: lining-nums; }
.stat .l { font-size: .8rem; color: var(--muted); font-weight: 500; }
.stat.gold { background: linear-gradient(160deg, #1b1914, #111); border-color: #111; } .stat.gold .n { color: var(--gold); } .stat.gold .l { color: rgb(248 245 239 / .7); }
.stat.bad .n { color: var(--danger); }
.dash { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.dash-main, .dash-side { display: grid; gap: 18px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 6px 0 8px; }
.panel > header { display: flex; align-items: baseline; justify-content: space-between; padding: 14px 20px 8px; }
.panel > header h2 { margin: 0; font-size: 1.32rem; }
.panel > header a { color: var(--gold-ink); text-decoration: none; font-weight: 600; }
.panel .calm { margin: 4px 20px 12px; color: var(--muted); font: italic 500 1.08rem var(--display); }
.attn a, .agenda-list a, .mini a { display: grid; align-items: center; gap: 4px 12px; padding: 11px 20px; text-decoration: none; border-top: 1px solid var(--line); transition: background .12s; }
.attn a:hover, .agenda-list a:hover, .mini a:hover { background: var(--card-2); }
.attn a { grid-template-columns: 112px minmax(0, 1fr) auto; }
.attn .who { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .attn .note { color: var(--muted); font-size: .84rem; text-align: right; }
.tag { justify-self: start; font: 700 .62rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; padding: 6px 8px; border-radius: 6px; background: var(--soft); color: var(--ink-2); white-space: nowrap; }
.tag.bad { background: var(--danger-soft); color: var(--danger); } .tag.gold { background: var(--gold-soft); color: #7a5a12; } .tag.info { background: var(--info-soft); color: var(--info); } .tag.ok { background: var(--ok-soft); color: var(--ok); }
.agenda-list a { grid-template-columns: 48px minmax(0, 1fr); }
.agenda-list .date { display: grid; justify-items: center; line-height: 1; padding: 6px 0; border-radius: 10px; background: var(--card-2); border: 1px solid var(--line); }
.agenda-list .dow { font: 700 .58rem var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); }
.agenda-list .dn { font: 500 1.4rem var(--display); margin-top: 2px; }
.agenda-list .what { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini a { grid-template-columns: auto minmax(0, 1fr) auto; }
.mini a > span:nth-child(2) { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini .brand-dot { margin: 0; }
.check { width: 16px; height: 16px; border-radius: 5px; border: 1.5px solid var(--line-2); }
.late { color: var(--danger); font-weight: 600; }
.menu-more { position: relative; } .menu-more > summary { list-style: none; } .menu-more > summary::-webkit-details-marker { display: none; }
.menu-more .pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; min-width: 210px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lift); padding: 6px; display: grid; }
.menu-more .pop a { padding: 9px 12px; border-radius: 8px; text-decoration: none; font-weight: 500; } .menu-more .pop a:hover { background: var(--soft); }

.jumpnav { position: sticky; top: 65px; z-index: 20; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin: 8px 0 4px; padding: 8px; background: rgb(247 244 238 / .9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: 999px; }
.jumpnav::-webkit-scrollbar { display: none; }
.jumpnav a { flex: none; padding: 6px 12px; border-radius: 999px; font-size: .8rem; font-weight: 600; text-decoration: none; color: var(--muted); white-space: nowrap; }
.jumpnav a:hover { color: var(--ink); } .jumpnav a.on { background: var(--ink); color: #f8f5ef; }
h2[id] { scroll-margin-top: 130px; }

/* ------------------------------------------------ Sign-in ------------------------------------------------ */
.signin { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.signin-art { position: relative; background: radial-gradient(1200px 600px at 20% 110%, rgb(201 162 74 / .22), transparent 60%), #111; color: #f8f5ef; display: flex; flex-direction: column; justify-content: space-between; padding: 48px; overflow: hidden; }
.signin-art .crest-lg { width: min(340px, 70%); aspect-ratio: 809 / 481; background: var(--gold); -webkit-mask: url("/static/crest.png") center / contain no-repeat; mask: url("/static/crest.png") center / contain no-repeat; opacity: .95; }
.signin-art blockquote { margin: 0; font: italic 400 clamp(1.6rem, 2.6vw, 2.3rem)/1.2 var(--display); max-width: 16ch; }
.signin-art .fam { font: 600 .62rem var(--sans); letter-spacing: .3em; text-transform: uppercase; opacity: .55; }
.signin-panel { display: grid; place-items: center; padding: 40px 24px; }
.signin-card { width: min(380px, 100%); }
.signin-card h1 { margin-bottom: 10px; }
.signin-card h1 + .muted { margin-top: 0; }
.signin-card .btn { width: 100%; min-height: 48px; font-size: .92rem; }

/* ------------------------------------------------ Responsive ------------------------------------------------ */
@media (max-width: 980px) {
  .side { transform: translateX(-104%); transition: transform .28s var(--ease); box-shadow: 0 0 60px rgb(0 0 0 / .4); width: min(300px, 86vw); }
  .side-close { display: grid; }
  .nav-toggle:checked ~ .side { transform: none; }
  .nav-toggle:checked ~ .scrim { display: block; position: fixed; inset: 0; z-index: 35; background: rgb(17 17 17 / .45); backdrop-filter: blur(2px); }
  .topbar { margin-left: 0; padding: 10px 14px; padding-top: max(10px, env(safe-area-inset-top)); background: rgb(17 17 17 / .96); border-bottom: 0; color: #f8f5ef; }
  .topbar .icon-btn { display: grid; color: #f8f5ef; } .topbar .icon-btn:hover { background: rgb(255 255 255 / .08); }
  .topbar-mark { display: block; flex: 1; } .topbar .brandmark .crest { width: 36px; } .topbar .brandmark .l1 { font-size: 1.02rem; }
  .topbar .search { display: none; }
  .jumpnav { top: 62px; border-radius: 0; margin-inline: -16px; border-inline: 0; }
  .agenda-list .what { white-space: normal; }
  .wrap { margin-left: 0; padding: 20px 16px calc(96px + env(safe-area-inset-bottom)); }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; inset: auto 0 0 0; z-index: 30; background: rgb(255 255 255 / .94); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .tabbar a, .tabbar label { display: grid; justify-items: center; gap: 3px; padding: 6px 0; text-decoration: none; color: var(--faint); font: 600 .66rem var(--sans); letter-spacing: .02em; cursor: pointer; }
  .tabbar .on { color: var(--ink); } .tabbar .on .ic { color: var(--gold-ink); }
  body:has(.nav-toggle:checked) { overflow: hidden; }
}
@media (max-width: 1100px) { .stats { grid-template-columns: repeat(2, 1fr); } .dash { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding: 2px 16px 4px; scrollbar-width: none; -webkit-mask: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 24px), transparent); mask: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 24px), transparent); }
  .chips::-webkit-scrollbar { display: none; }
  .stats { gap: 10px; } .stat { padding: 14px 16px; } .stat .n { font-size: 1.9rem; }
  .attn a { grid-template-columns: auto minmax(0, 1fr); } .attn .note { grid-column: 1 / -1; text-align: left; }
  .page-head { align-items: flex-start; }
  .cal { display: none; } .agenda { display: block; }
  .crud-t thead { display: none; } .crud-t tr { display: grid; gap: 4px; padding: 10px 0; border-bottom: 1px solid var(--line); } .crud-t td { border: 0; padding: 2px 0; } .crud-t td::before { content: attr(data-label); display: block; font-size: .72rem; color: var(--muted); }
  .signin { grid-template-columns: 1fr; } .signin-art { min-height: 34vh; padding: 28px 24px; } .signin-art blockquote { font-size: 1.5rem; }
}
@media (max-width: 640px) {
  .grid2 { grid-template-columns: 1fr; }
  h1 { font-size: 2rem; margin-bottom: 16px; }
  .card { padding: 16px; }
  .t th, .t td { padding: 10px; }
  .item { padding: 14px 16px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
@media print { .side, .topbar, .tabbar, .scrim, .no-print { display: none !important; } .wrap { margin: 0; padding: 0; } .card, .item, table.t { box-shadow: none; } body { background: #fff; } }
