/* DUSTFISH demo. Night sky, ember red, copper, cream. Every colour and size lives in these tokens. */
:root {
  --night: #120a0b;
  --night-2: #1a0f10;
  --surface: #211315;
  --surface-2: #2b181a;
  --line: rgba(241, 228, 204, 0.12);
  --line-strong: rgba(241, 228, 204, 0.24);
  --cream: #f1e4cc;
  --muted: #b5a28c;
  --ember: #d6402b;
  --ember-hover: #e85339;
  --ember-deep: #8f2618;
  --copper: #c8814a;
  --ok: #8cc79a;
  --warn: #e5ac55;
  --bad: #ef7a66;
  --display: "Bahnschrift", "Arial Narrow", "Avenir Next Condensed", "Roboto Condensed", sans-serif;
  --body: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", sans-serif;
  --s1: 4px; --s2: 8px; --s3: 16px; --s4: 24px; --s5: 32px; --s6: 48px; --s7: 72px;
  --r: 10px;
  --wrap: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--night); color: var(--cream);
  font: 16px/1.6 var(--body); -webkit-font-smoothing: antialiased;
}
a { color: var(--copper); text-underline-offset: 3px; }
a:hover { color: var(--cream); }
:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; border-radius: 4px; }
img, svg { max-width: 100%; }
code { font-family: ui-monospace, Consolas, Menlo, monospace; font-size: 0.86em; background: var(--surface-2); padding: 1px 6px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: var(--s3); top: var(--s3); z-index: 10; background: var(--cream); color: var(--night); padding: var(--s2) var(--s3); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--s4); }
.narrow { max-width: 640px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.nowrap { white-space: nowrap; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.inline { display: inline; }

/* type */
.label { font: 600 11px/1.4 var(--body); letter-spacing: 0.24em; text-transform: uppercase; color: var(--copper); margin: 0 0 var(--s2); }
.label.muted { color: var(--muted); letter-spacing: 0.14em; }
.display { font-family: var(--display); font-stretch: condensed; font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; line-height: 0.95; margin: 0; }
.h2 { font-size: clamp(32px, 4.4vw, 48px); margin-bottom: var(--s4); }
.h3 { font: 600 20px/1.3 var(--body); margin: 0 0 var(--s2); }
.prose p { margin: 0 0 var(--s3); color: var(--cream); }
.prose ul { padding-left: 1.2em; margin: 0 0 var(--s3); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 44px; padding: 0 var(--s4); border-radius: 999px; border: 1px solid var(--ember);
  background: var(--ember); color: #fff7ec; font: 600 15px/1 var(--body); text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn:hover { background: var(--ember-hover); color: #fff; }
.btn-ghost { background: transparent; color: var(--cream); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--surface-2); color: var(--cream); }
.btn-sm { min-height: 36px; padding: 0 var(--s3); font-size: 14px; }
.btn-disabled { background: var(--surface-2); border-color: var(--line); color: var(--muted); cursor: not-allowed; }
.link { background: none; border: 0; padding: 0; color: var(--copper); font: inherit; font-size: 13px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.link:hover { color: var(--cream); }
.cta-row { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; }

/* chips and tags */
.chip { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; white-space: nowrap; color: var(--cream); }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex: none; }
.chip-ok .dot { background: var(--ok); }
.chip-warn .dot { background: var(--warn); }
.chip-bad .dot { background: var(--bad); }
.tag { display: inline-block; margin-left: var(--s2); padding: 1px 8px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }
.tag-ret { color: var(--copper); border-color: rgba(200, 129, 74, 0.5); margin-left: 0; }

/* flash */
.flash { max-width: var(--wrap); margin: var(--s3) auto; padding: var(--s3) var(--s4); border: 1px solid var(--line-strong); border-left: 3px solid var(--copper); border-radius: var(--r); background: var(--surface); }
.flash-warn { border-left-color: var(--warn); }
.portal-main .flash { margin: 0 0 var(--s4); }

/* public header and footer */
.site-head { position: sticky; top: 0; z-index: 5; background: rgba(18, 10, 11, 0.86); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.head-row { display: flex; align-items: center; gap: var(--s4); min-height: 64px; }
.wordmark { font-family: var(--display); font-stretch: condensed; font-weight: 700; font-size: 22px; letter-spacing: 0.32em; color: var(--cream); text-decoration: none; }
.wordmark.small { font-size: 16px; }
.site-nav { display: flex; gap: var(--s4); margin-left: auto; }
.site-nav a { color: var(--muted); text-decoration: none; font-size: 12px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; white-space: nowrap; }
.site-nav a:hover { color: var(--cream); }
.site-foot { border-top: 1px solid var(--line); padding: var(--s5) 0; }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s4); justify-content: space-between; }
.foot-row .label { margin: 0; }
.foot-links { display: flex; gap: var(--s4); font-size: 14px; }

/* hero */
.hero { position: relative; overflow: hidden; padding: var(--s7) 0; background:
  radial-gradient(ellipse 60% 70% at 78% 40%, rgba(214, 64, 43, 0.20), transparent 70%),
  radial-gradient(ellipse 50% 60% at 10% 100%, rgba(200, 129, 74, 0.10), transparent 70%),
  url("/static/stars.svg") center / cover no-repeat, var(--night); }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: var(--s6); align-items: center; }
.hero h1.display { font-size: clamp(72px, 13vw, 168px); line-height: 0.86; letter-spacing: 0.04em; }
.hero .sub { color: var(--copper); font-size: clamp(28px, 4vw, 48px); margin: var(--s2) 0 var(--s4); letter-spacing: 0.08em; }
.lede { font-size: 19px; max-width: 34ch; margin: 0 0 var(--s5); }
.coords { margin-bottom: var(--s4); }
.countdown { margin-top: var(--s6); padding-top: var(--s4); border-top: 1px solid var(--line); max-width: 420px; }
.cd-row { display: flex; gap: var(--s5); }
.cd-row span { display: flex; flex-direction: column; }
.cd-row b { font-family: var(--display); font-stretch: condensed; font-size: 44px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.cd-row i { font-style: normal; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.hero-art { display: flex; justify-content: center; }
.emblem { width: min(420px, 100%); height: auto; }
.em-arch { stroke: var(--copper); stroke-width: 3; }
.em-arch-in { stroke: rgba(200, 129, 74, 0.45); stroke-width: 1.5; }
.em-ridge { stroke: var(--ember); stroke-width: 2.5; }
.em-lattice { stroke: rgba(214, 64, 43, 0.6); stroke-width: 1.5; }
.em-fish { stroke: var(--cream); stroke-width: 2.5; }
.em-flame { stroke: var(--ember); stroke-width: 2.5; }
.em-stars circle { fill: var(--cream); }

/* bands */
.band { padding: var(--s7) 0; }
.band-alt { background: var(--night-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.two-col { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: var(--s6); }
.basics { list-style: none; padding: 0; margin: var(--s4) 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s3); }
.basics li { border-top: 1px solid var(--line); padding-top: var(--s3); display: flex; flex-direction: column; }
.basics b { font-family: var(--display); font-stretch: condensed; font-size: 24px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--copper); }
.basics span { color: var(--muted); font-size: 14px; }
.cards { display: grid; gap: var(--s4); }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: var(--s4); }
.card h3 { font-family: var(--display); font-stretch: condensed; font-size: 26px; text-transform: uppercase; letter-spacing: 0.03em; margin: 0 0 var(--s2); }
.card p { margin: 0; color: var(--muted); }
.card-mark { display: block; width: 28px; height: 3px; background: var(--ember); margin-bottom: var(--s3); }
.founder h3 { color: var(--copper); }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); }
.ph { margin: 0; }
.ph-box { aspect-ratio: 4 / 3; border-radius: var(--r); border: 1px dashed var(--line-strong); display: grid; place-items: center;
  background: radial-gradient(ellipse at 50% 120%, rgba(214, 64, 43, 0.18), transparent 60%), var(--surface); }
.ph-box .label { margin: 0; color: var(--muted); }
.ph figcaption { margin-top: var(--s2); font-size: 14px; color: var(--muted); }
.faq details { border-top: 1px solid var(--line); padding: var(--s3) 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; font-size: 17px; }
.faq details p { margin: var(--s2) 0 0; color: var(--muted); }
.apply-band { background: linear-gradient(90deg, rgba(143, 38, 24, 0.5), rgba(18, 10, 11, 0)), var(--night-2); border-top: 1px solid var(--line); }
.apply-row { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); flex-wrap: wrap; }
.apply-row .h2 { margin: 0; }

/* auth */
.auth-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: var(--s6); align-items: start; }
.auth-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: var(--s5); }
.stack { display: flex; flex-direction: column; gap: var(--s3); }
.stack .btn { align-self: flex-start; }
label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
input, select, textarea {
  font: 16px/1.4 var(--body); color: var(--cream); background: var(--night); border: 1px solid var(--line-strong);
  border-radius: 8px; padding: 10px 12px; min-height: 44px; width: 100%;
}
input:disabled, textarea:disabled { opacity: 0.7; }
textarea { resize: vertical; }
.demo-accts .h3 { margin-top: var(--s4); font-size: 15px; color: var(--muted); }
.acct-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: var(--s2); }
.acct { width: 100%; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: var(--s2) var(--s3); color: var(--cream); cursor: pointer; font: inherit; }
.acct:hover { border-color: var(--copper); }
.acct b { display: block; font-size: 15px; }
.acct span { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* portal */
.demo-bar { background: var(--ember-deep); color: #fde9d8; text-align: center; font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; padding: 6px var(--s3); }
.portal { display: grid; grid-template-columns: 248px 1fr; min-height: calc(100vh - 30px); }
.side { border-right: 1px solid var(--line); background: var(--night-2); padding: var(--s4) var(--s3); display: flex; flex-direction: column; gap: var(--s4); }
.side-brand { display: flex; flex-direction: column; gap: var(--s1); padding: 0 var(--s2); }
.side-brand .label { margin: 0; }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-nav a { display: flex; justify-content: space-between; align-items: center; padding: 10px var(--s3); border-radius: 8px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; }
.side-nav a:hover { background: var(--surface); color: var(--cream); }
.side-nav a.on { background: var(--surface-2); color: var(--cream); box-shadow: inset 3px 0 0 var(--ember); }
.count { min-width: 22px; padding: 0 7px; border-radius: 999px; background: var(--ember); color: #fff; font-size: 12px; text-align: center; line-height: 20px; }
.tab .count { background: var(--surface-2); color: var(--muted); }
.side-switch { padding: 0 var(--s3); font-size: 14px; }
.side-user { margin-top: auto; display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; padding: var(--s3); border-top: 1px solid var(--line); }
.side-user .label { margin: 0; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--ember-deep); font-weight: 700; flex: none; }
.portal-main { padding: var(--s5) var(--s5) var(--s6); max-width: 1080px; width: 100%; }
.page-head { margin-bottom: var(--s4); }
.page-head .h2 { margin-bottom: var(--s2); }
.head-actions { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--s4); flex-wrap: wrap; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: var(--s4); margin-bottom: var(--s4); }
.panel > :last-child { margin-bottom: 0; }
.restricted { border-color: rgba(229, 172, 85, 0.35); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); }
.grid-2 > .panel, .grid-2 > div > .panel:last-child { margin-bottom: var(--s4); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s3); }
.status-panel { border-color: rgba(214, 64, 43, 0.45); background: linear-gradient(135deg, rgba(143, 38, 24, 0.25), transparent 60%), var(--surface); }
.status-top { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s3); }
.steps { list-style: none; display: flex; gap: var(--s2); padding: 0; margin: var(--s4) 0; counter-reset: step; }
.steps li { flex: 1; display: flex; flex-direction: column; gap: var(--s2); font-size: 13px; font-weight: 600; color: var(--muted); }
.step-dot { height: 4px; border-radius: 2px; background: var(--surface-2); }
.steps li.done { color: var(--cream); }
.steps li.done .step-dot { background: var(--ember); }
.big-code { font-family: var(--display); font-stretch: condensed; font-size: 56px; font-weight: 700; line-height: 1; margin: 0 0 var(--s2); color: var(--copper); }
.big-number { font-family: var(--display); font-stretch: condensed; font-size: 56px; font-weight: 700; line-height: 1; margin: 0; font-variant-numeric: tabular-nums; }
.plain { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--s2); }
.ann + .ann { border-top: 1px solid var(--line); padding-top: var(--s3); margin-top: var(--s3); }
.ann h3 { margin: 0 0 var(--s1); font-size: 17px; }
.ann p { margin: 0 0 var(--s2); }

/* application form */
.app-form fieldset { margin: 0 0 var(--s4); display: flex; flex-direction: column; gap: var(--s3); }
.app-form legend { float: left; width: 100%; padding: 0; }
.app-form legend + * { clear: both; }
.q { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s3); align-items: center; font-size: 14px; font-weight: 600; }
.q > span { width: 100%; }
.opt { flex-direction: row; align-items: center; gap: var(--s2); font-weight: 500; padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 999px; cursor: pointer; }
.opt input { width: 18px; height: 18px; min-height: 0; accent-color: var(--ember); margin: 0; }
.opt:has(input:checked) { border-color: var(--ember); background: rgba(214, 64, 43, 0.12); }
.checks { display: flex; flex-wrap: wrap; gap: var(--s2); }

/* payment */
.pay-form { display: flex; flex-direction: column; gap: var(--s3); max-width: 680px; }
.pay-form .btn { align-self: flex-start; }
.dues { max-width: 220px; }
.money-input { display: flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--night); padding-left: 12px; }
.money-input input { border: 0; background: transparent; }
.addons { display: flex; flex-direction: column; gap: var(--s2); }
.addon { flex-direction: row; align-items: center; gap: var(--s3); padding: var(--s3); border: 1px solid var(--line); border-radius: 8px; cursor: pointer; font-weight: 400; }
.addon input { width: 20px; height: 20px; min-height: 0; accent-color: var(--ember); flex: none; }
.addon-text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.addon-text .muted { font-size: 13px; }
.addon .num { display: flex; flex-direction: column; align-items: flex-end; font-weight: 600; }
.addon .tag { margin: 2px 0 0; }
.addon:has(input:checked) { border-color: var(--ember); }
.btn-zeffy { min-height: 48px; }
.receipt { width: 100%; border-collapse: collapse; margin: var(--s3) 0; }
.receipt td { padding: var(--s2) 0; border-bottom: 1px solid var(--line); }
.receipt tfoot td { font-weight: 700; border-bottom: 0; padding-top: var(--s3); }

/* leads */
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s3); margin-bottom: var(--s4); }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: var(--s3) var(--s4); text-decoration: none; color: var(--cream); display: flex; flex-direction: column; }
.stat:hover { border-color: var(--copper); color: var(--cream); }
.stat b { font-family: var(--display); font-stretch: condensed; font-size: 40px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat span { font-size: 13px; color: var(--muted); white-space: nowrap; }
.money-panel { border-color: rgba(200, 129, 74, 0.4); }
.log { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--s2); font-size: 14px; }
.log .label { display: inline; margin-right: var(--s2); }
.tabs { display: flex; gap: var(--s1); flex-wrap: wrap; margin-bottom: var(--s3); }
.tab { padding: 8px 14px; border-radius: 999px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 14px; border: 1px solid transparent; white-space: nowrap; }
.tab.on { border-color: var(--line-strong); color: var(--cream); background: var(--surface); }
.row-list { display: flex; flex-direction: column; gap: var(--s2); margin-bottom: var(--s4); }
.row-card { display: flex; align-items: center; gap: var(--s4); padding: var(--s3) var(--s4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); color: var(--cream); text-decoration: none; }
.row-card:hover { border-color: var(--copper); color: var(--cream); }
.row-card.static:hover { border-color: var(--line); }
.rc-name { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.rc-name > * { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rc-name .muted { font-size: 13px; }
.rc-meta { display: flex; gap: var(--s3); align-items: center; font-size: 14px; }
.rc-go { color: var(--copper); font-weight: 600; font-size: 14px; }
.decide-row { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; }
.facts { margin: 0 0 var(--s4); display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
.facts dt { font-size: 12px; color: var(--muted); }
.facts dd { margin: 0; }
.note { border-bottom: 1px solid var(--line); padding-bottom: var(--s2); margin-bottom: var(--s3); }
.note p { margin: 0 0 var(--s1); }
.table-wrap { overflow-x: auto; }
.roster { width: 100%; border-collapse: collapse; font-size: 15px; }
.roster th { text-align: left; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 0 var(--s3) var(--s2) 0; border-bottom: 1px solid var(--line-strong); }
.roster td { padding: var(--s3) var(--s3) var(--s3) 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.roster tr:last-child td { border-bottom: 0; }
.name-cell { display: flex; flex-direction: column; max-width: 260px; }
.name-cell > * { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.name-cell .muted { font-size: 13px; }
.assign-form { display: flex; gap: var(--s3); align-items: flex-end; flex-wrap: wrap; }
.assign-form label { flex: 1; min-width: 200px; }
.spot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: var(--s2); }
.spot { border: 1px dashed var(--line-strong); border-radius: 8px; padding: var(--s2) var(--s3); display: flex; flex-direction: column; gap: 2px; min-height: 76px; }
.spot b { font-family: var(--display); font-stretch: condensed; font-size: 22px; }
.spot span { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spot.taken { border-style: solid; border-color: rgba(214, 64, 43, 0.5); background: rgba(214, 64, 43, 0.08); }
.letter { max-width: 680px; }

/* camp-password gate on the public address */
body.gate-body { min-height: 100vh; display: grid; place-items: center; padding: var(--s4) var(--s3);
  background: radial-gradient(ellipse 60% 60% at 50% 40%, rgba(214, 64, 43, 0.18), transparent 70%), url("/static/stars.svg") center / cover no-repeat, var(--night); }
.gate-card { width: min(420px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: var(--s5); }
.gate-card h1.display { font-size: 56px; letter-spacing: 0.06em; margin-bottom: var(--s3); }
.gate-card .muted { margin: 0 0 var(--s4); }
.gate-err { color: var(--bad); font-weight: 600; margin: 0 0 var(--s3); }

/* simulated Zeffy checkout: a light, separate-looking page */
body.zeffy-sim { background: #f4f2ee; color: #1d1b19; font-family: var(--body); }
.test-mode { background: #ffd34d; color: #3a2a00; text-align: center; font-weight: 700; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; padding: 10px 16px; border-bottom: 2px solid #c79a00; }
.z-wrap { max-width: 520px; margin: 0 auto; padding: 32px 16px 64px; }
.z-brand { font-weight: 800; font-size: 22px; color: #3c2fd1; margin: 0 0 16px; }
.z-brand span { font-weight: 500; font-size: 14px; color: #6b665f; }
.z-card { background: #fff; border: 1px solid #e3ded5; border-radius: 14px; padding: 24px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04); }
.z-org { margin: 0; color: #6b665f; font-size: 14px; }
.z-card h1 { font-size: 24px; margin: 4px 0 16px; }
.z-lines { width: 100%; border-collapse: collapse; margin-bottom: 16px; }
.z-lines td { padding: 10px 0; border-bottom: 1px solid #eee9e0; }
.z-lines tfoot td { font-weight: 800; font-size: 18px; border-bottom: 0; }
.z-tip td { color: #6b665f; font-size: 14px; }
.z-card-box { background: #f8f6f2; border: 1px dashed #d8d1c4; border-radius: 10px; padding: 12px 16px; margin-bottom: 16px; }
.z-card-box p { margin: 0; }
.z-muted { color: #6b665f; font-size: 13px; margin: 0 0 4px; }
.z-actions { display: flex; flex-direction: column; gap: 10px; }
.z-btn { display: block; text-align: center; min-height: 48px; border-radius: 10px; border: 0; background: #3c2fd1; color: #fff; font: 700 16px/48px var(--body); cursor: pointer; text-decoration: none; }
.z-btn:hover { background: #2f24b0; color: #fff; }
.z-alt { background: #fff; color: #9c2b1c; border: 1px solid #e6c2bb; }
.z-alt:hover { background: #fdf2f0; color: #9c2b1c; }
.z-link { background: none; border: 0; color: #4a4540; text-decoration: underline; font: 500 14px var(--body); cursor: pointer; min-height: 40px; }
.zeffy-sim :focus-visible { outline-color: #3c2fd1; }

/* phone */
@media (max-width: 900px) {
  .site-nav { display: none; }
  .hero-grid, .two-col, .auth-grid { grid-template-columns: 1fr; gap: var(--s5); }
  .hero-art { order: -1; }
  .emblem { width: 220px; }
  .cards.three, .gallery { grid-template-columns: 1fr 1fr; }
  .portal { grid-template-columns: 1fr; }
  .side { border-right: 0; border-bottom: 1px solid var(--line); padding: var(--s3); gap: var(--s3); }
  .side-nav { flex-direction: row; overflow-x: auto; gap: var(--s1); }
  .side-nav a { white-space: nowrap; padding: 8px 12px; font-size: 14px; }
  .side-user { margin-top: 0; padding: var(--s2) 0 0; }
  .portal-main { padding: var(--s4) var(--s3) var(--s6); }
}
@media (max-width: 640px) {
  .wrap { padding: 0 var(--s3); }
  .hero { padding: var(--s6) 0; }
  .band { padding: var(--s6) 0; }
  .cards.three, .gallery, .grid-2, .grid-3, .facts, .basics { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .head-row { gap: var(--s3); }
  .wordmark { font-size: 18px; letter-spacing: 0.24em; }
  .cd-row b { font-size: 36px; }
  .row-card { flex-wrap: wrap; gap: var(--s2) var(--s3); }
  .rc-name { flex-basis: 100%; }
  .status-top { flex-direction: column; }
  .roster thead { display: none; }
  .roster, .roster tbody, .roster tr, .roster td { display: block; width: 100%; }
  .roster tr { border-bottom: 1px solid var(--line); padding: var(--s3) 0; }
  .roster td { border: 0; padding: 2px 0; text-align: left; }
  .btn { min-height: 44px; }
}
