/* Role-based dashboard screens. Brand: white, #f6f4f0 surfaces, #0b0b0c ink, gold #f6a51b,
   Marcellus headings and Hanken Grotesk body. */
body.dash-on, #dash {
  --display: "Marcellus", "Friz Quadrata", "Optima", Georgia, serif;
  --body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-family: var(--body);
}
#dash :is(h1, h2, h3), body.dash-on dialog :is(h2, h3) { font-family: var(--display); font-weight: 400; letter-spacing: .01em; }
#dash :is(button, input, select, textarea) { font-family: var(--body); }

/* Role badges */
#dash .role-chip { font-family: var(--body); font-size: 11px; font-weight: 700; letter-spacing: .14em; padding: 5px 10px; border-radius: 999px; }
#dash .role-chip.role-admin { background: #0b0b0c; border: 1px solid #0b0b0c; color: #fff; }
#dash .role-chip.role-team { background: var(--gold); border: 1px solid var(--gold); color: #0b0b0c; }
#dash .role-chip.role-member { background: transparent; border: 1px solid var(--fg); color: var(--fg); }
:root[data-theme="dark"] #dash .role-chip.role-admin { background: #f7f4ee; border-color: #f7f4ee; color: #0b0b0c; }

.roles-view { display: grid; gap: 22px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.roles-view .panel > h2 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.roles-view .panel > h2 .hint { font-family: var(--body); font-size: 13px; font-weight: 500; }
.roles-view .eyebrow { display: block; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); }

/* Gig lists */
.gb-list, .gb-people, .gb-rows { list-style: none; margin: 0; padding: 0; }
.gb-card > button, .gb-card > .gb-static, .gb-people button {
  width: 100%; display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 14px; text-align: left;
  padding: 14px 16px; background: none; border: 0; border-top: 1px solid var(--line); color: inherit; font: inherit; cursor: pointer;
}
.gb-card > .gb-static { cursor: default; grid-template-columns: 56px 1fr; }
.gb-card:first-child > *, .gb-people li:first-child button { border-top: 0; }
.gb-card > button:hover, .gb-people button:hover { background: var(--surface); }
.gb-card > button:focus-visible, .gb-people button:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
.gb-date { display: grid; place-items: center; width: 56px; height: 56px; border: 1px solid var(--line); background: var(--bg); font: 22px/1 var(--display); }
.gb-date b { font: 700 10px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--gold-ink); }
.gb-what { display: grid; gap: 3px; min-width: 0; }
.gb-what strong { font-size: 16px; }
.gb-what span { color: var(--muted); font-size: 14px; }
.gb-people button { grid-template-columns: auto 1fr auto; }
.gb-people button > span:not(.person-avatar) { display: grid; gap: 2px; }
.gb-people button > span > span { color: var(--muted); font-size: 13px; }
.gb-people .go { color: var(--gold-ink); font-size: 13px; font-weight: 600; }
.gb-search { padding: 12px 16px 4px; }
.roles-view > .gb-search { padding: 0; }
.gb-search input { width: 100%; max-width: 420px; }

/* Gig brief editor */
.gb-top { display: flex; align-items: center; gap: 12px; }
.gb { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr); gap: 22px; align-items: start; }
.gb-main { display: grid; gap: 22px; min-width: 0; }
.gb-event > .hint { margin: 0; padding: 10px 16px 0; }
.gb-dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px 22px; margin: 0; padding: 14px 16px 18px; }
.gb-dl dt { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.gb-dl dd { margin: 4px 0 0; white-space: pre-line; }
.gb-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 14px 16px 4px; }
.gb-fields .full { grid-column: 1 / -1; }
.gb-fields label .hint { font-weight: 400; margin-left: 6px; }
.gb-fields textarea { width: 100%; resize: vertical; }
.gb-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 14px 16px 16px; }
.gb-lineup { position: sticky; top: 84px; }
.gb-row { display: grid; grid-template-columns: auto 1fr auto auto auto; align-items: center; gap: 10px; padding: 10px 16px; border-top: 1px solid var(--line); }
.gb-row:first-child { border-top: 0; }
.gb-who { display: grid; min-width: 0; }
.gb-who strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gb-who span { color: var(--muted); font-size: 13px; }
.gb-stipend { display: inline-flex; align-items: center; gap: 2px; color: var(--muted); }
.gb-stipend input { width: 76px; text-align: right; }
.gb-add { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; padding: 12px 16px 16px; border-top: 1px solid var(--line); background: var(--surface); }
.gb-add select { min-width: 0; }

/* Member home */
.next-gig { padding: 20px 20px 8px; border-top: 3px solid var(--gold); }
.next-gig h2 { padding: 4px 0 0 !important; border: 0 !important; font-size: 30px; }
.next-gig .next-when { margin: 4px 0 14px; color: var(--muted); }
.next-gig .gb-dl { padding: 16px 0; }
.rsvp-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.rsvp-row .btn[aria-pressed="true"] { box-shadow: inset 0 0 0 1px var(--on-gold); }
.set-list { border-top: 1px solid var(--line); padding: 14px 0 12px; }
.set-list h3 { margin: 0 0 8px; font-size: 18px; }
.set-list ol { margin: 0; padding-left: 22px; display: grid; gap: 4px; }

/* Pipeline hand-off */
.c-brief { display: flex; align-items: center; gap: 8px; margin-top: 8px; }

/* Member profile: private notes */
.member-private { border-top: 3px solid var(--gold); padding-top: 12px; }
.member-notes li { position: relative; }
.member-note-actions { display: inline-flex; gap: 6px; margin-left: 8px; }
.member-role { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

@media (max-width: 900px) {
  .gb { grid-template-columns: 1fr; }
  .gb-lineup { position: static; }
  .gb-fields { grid-template-columns: 1fr; }
}
.gb-form .gb-sub { margin: 0; padding: 18px 16px 0; font-family: var(--body); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

.gb-danger { display: flex; justify-content: flex-end; padding: 12px 0 4px; }
.gd-notify { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.gb.gb-single { grid-template-columns: minmax(0, 1fr); max-width: 900px; }
/* Who's coming: paid spots, volunteers, leadership */
.gp-pay { margin: 4px 16px 12px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); display: grid; gap: 10px; }
.gp-pay h3 { margin: 0; font: 700 12px/1 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.gp-pay .hint { margin: 0; }
.gp-pay-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; }
.gp-pay-stat { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--fg); font: inherit; text-align: left; cursor: pointer; }
.gp-pay-stat b { font-size: 1.5rem; line-height: 1; }
.gp-pay-stat span { font-size: .85rem; color: var(--muted); }
.gp-pay-stat[aria-pressed="true"] { border-color: var(--fg); box-shadow: inset 0 0 0 1px var(--fg); }
.gp-pay-stat.paid b { color: var(--ok, #2e9d62); }
.gp-pay-stat.volunteer b { color: var(--gold-ink); }
.gp-pay-stat.owe { cursor: default; border-style: dashed; }
.gp-pay-secs { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.gp-pay-secs li { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 8px; font-size: .95rem; }
.gp-full { font-style: normal; font-size: .8rem; padding: 2px 8px; border-radius: 999px; background: var(--gold); color: #0b0b0c; }
.gp-pay-edit summary { cursor: pointer; font-weight: 600; font-size: .95rem; }
.gp-pay-edit form { display: grid; gap: 10px; margin-top: 10px; }
.gp-pay-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.gp-pay-fields label { display: grid; gap: 4px; font-size: .85rem; font-weight: 600; }
.gp-pay-fields input { min-height: 42px; border: 1px solid var(--line); border-radius: 8px; padding: 0 10px; background: var(--bg); color: var(--fg); font: inherit; width: 100%; }
.gp-money { display: flex; align-items: center; gap: 4px; }
.gp-tag.pay-paid { color: var(--ok, #2e9d62); border-color: currentColor; }
.gp-tag.pay-volunteer { color: var(--gold-ink); border-color: currentColor; }
.gp-tag.pay-leadership { color: var(--muted); border-color: currentColor; }
.gp-myspot p { margin: 6px 0 0; }
.gp-myspot strong { display: block; }
.gp-person { position: relative; flex-wrap: wrap; }
.gp-pay-btn { border: 1px solid var(--line); background: var(--bg); color: var(--fg); border-radius: 999px; padding: 3px 10px; font: 600 .78rem/1.4 var(--body); cursor: pointer; }
.gp-tag.custom { border-style: dashed; }
.gp-person.editing { grid-column: 1 / -1; background: var(--surface); border-radius: 10px; }
.gp-pay-one { flex: 1 1 100%; }
.gp-pay-one fieldset { border: 0; padding: 4px 0 0; margin: 0; display: grid; gap: 8px; }
.gp-pay-one legend { font-weight: 700; margin-bottom: 4px; }
.gp-pay-one > fieldset > label { display: flex; gap: 8px; align-items: center; font-size: .95rem; }
.gp-pay-one-fields { display: grid; grid-template-columns: minmax(120px, 160px) minmax(0, 1fr); gap: 10px; }
.gp-pay-one-fields label { display: grid; gap: 4px; font-size: .85rem; font-weight: 600; }
.gp-pay-one-fields input { min-height: 40px; border: 1px solid var(--line); border-radius: 8px; padding: 0 10px; background: var(--bg); color: var(--fg); font: inherit; width: 100%; }
.gp-pay-one .hint { margin: 0; font-size: .85rem; }
.gp-pay-one-actions { display: flex; gap: 8px; }
@media (max-width: 520px) { .gp-pay-one-fields { grid-template-columns: 1fr; } }
.gp-org .gp-people { grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); }
.gp-org .gp-name { flex: 1 1 150px; }
.gp-pay-one-fields input, .gp-pay-fields input { box-sizing: border-box; }
.gp-mypay { margin: 4px 16px 10px; padding: 10px 12px; border-radius: 10px; background: var(--surface); border-left: 3px solid var(--gold); }
.gp-nudge-all { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; justify-content: space-between; margin: 8px 16px; padding: 10px 12px; border: 1px dashed var(--gold); border-radius: 10px; }
.gp-flash { margin: 6px 16px; font-weight: 600; }
.gb-check { display: flex !important; align-items: center; gap: 8px; font-weight: 600; flex-wrap: wrap; }
.gb-check input { width: 18px; height: 18px; accent-color: var(--gold-ink, #8a6d1f); }

/* Member gig page */
.gx { display: grid; gap: 14px; margin-bottom: 14px; }
.gx > .panel { margin: 0; }
.gx-hero { display: flex; gap: 18px; align-items: flex-start; padding: 22px 20px; border-top: 3px solid var(--gold); }
.gx-day { flex: none; display: grid; place-items: center; align-content: center; width: 78px; height: 86px; border-radius: 14px; background: #1b1712; color: #e1c487; font: 34px/1 var(--display); }
.gx-day b { font: 700 11px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 4px; }
.gx-day small { font: 600 11px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; opacity: .75; margin-top: 4px; }
.gx-head { display: grid; gap: 6px; min-width: 0; }
.gx-head h2 { margin: 0 !important; padding: 0 !important; border: 0 !important; font-size: clamp(24px, 4vw, 34px); line-height: 1.1; }
.gx-head p { margin: 0; color: var(--muted); }
.gx-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.gx-chip { font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: color-mix(in srgb, var(--gold) 18%, var(--bg)); color: var(--gold-ink); }
.gx-chip.now { background: var(--ok, #2e9d62); color: #fff; }
.gx-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1px; padding: 0 !important; background: var(--line); overflow: hidden; }
.gx-fact { display: grid; gap: 4px; align-content: start; padding: 16px 18px; background: var(--bg); min-width: 0; }
.gx-fact > span { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.gx-fact strong { font-size: 17px; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; white-space: pre-line; }
.gx-fact.call strong { font: 30px/1.1 var(--display); color: var(--gold-ink); }
.gx-fact small { color: var(--muted); font-size: 13px; }
.gx-link { justify-self: start; margin-top: 4px; font-size: 14px; font-weight: 600; color: var(--gold-ink); text-decoration: none; border-bottom: 1px solid currentColor; }
.gx-sec { padding: 16px 20px 18px; }
.gx-sec h3 { margin: 0 0 10px; font-size: 18px; display: flex; align-items: baseline; gap: 8px; }
.gx-count { font: 500 13px var(--body); color: var(--muted); }
.gx-notes { margin: 0; white-space: pre-line; line-height: 1.55; }
.gx-dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px 20px; margin: 12px 0 0; }
.gx-dl dt { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.gx-dl dd { margin: 3px 0 0; white-space: pre-line; }
.gx-songs { margin: 0; padding: 0; list-style: none; counter-reset: song; display: grid; gap: 6px; }
.gx-songs li { counter-increment: song; display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 10px; background: var(--surface); font-weight: 500; }
.gx-songs li::before { content: counter(song); flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line); font-size: 13px; font-weight: 700; color: var(--gold-ink); }
.gx-going { padding: 0 !important; }
.gx-going summary { list-style: none; display: flex; align-items: center; gap: 14px; padding: 16px 20px; cursor: pointer; }
.gx-going summary::-webkit-details-marker { display: none; }
.gx-going summary:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
.gx-sum-main { display: grid; flex: 1; min-width: 0; }
.gx-sum-main strong { font-size: 18px; }
.gx-sum-main span { color: var(--muted); font-size: 14px; }
.gx-faces { display: flex; align-items: center; }
.gx-faces > * { margin-left: -8px; box-shadow: 0 0 0 2px var(--bg); border-radius: 50%; }
.gx-faces > *:first-child { margin-left: 0; }
.gx-more { display: grid; place-items: center; width: 32px; height: 32px; background: var(--surface); font-size: 12px; font-weight: 700; color: var(--muted); }
.gx-chev { width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .15s; margin: 0 4px 4px; }
.gx-going[open] .gx-chev { transform: rotate(-135deg); margin-bottom: -4px; }
.gx-going[open] summary { border-bottom: 1px solid var(--line); }
.gx-cal .atc { border-top: 0; padding: 0; margin: 0; }
.atc-more { margin-top: 8px; }
.atc-more summary { cursor: pointer; font-size: 13px; color: var(--muted); }
.atc-more .hint { margin: 6px 0 0; }
@media (max-width: 640px) {
  .gx-hero { padding: 18px 16px; gap: 14px; }
  .gx-day { width: 62px; height: 70px; font-size: 28px; }
  .gx-facts { grid-template-columns: 1fr 1fr; }
  .gx-fact.venue { grid-column: 1 / -1; }
  .gx-fact { padding: 14px; }
  .gx-faces { display: none; }
}
.gp-setrsvp select { min-height: 32px; border: 1px solid var(--line); border-radius: 8px; padding: 0 6px; background: var(--bg); color: var(--fg); font: inherit; font-size: 13px; max-width: 150px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
