:root {
  --ink: #1f2328; --muted: #6b7280; --rule: #e5e7eb; --page: #f3f4f6; --card: #fff;
  --accent: #1e40af; --accent-bg: #dbeafe; --bad: #b91c1c; --bad-bg: #fee2e2;
  --ok: #166534; --ok-bg: #dcfce7; --warn: #92400e; --warn-bg: #fef3c7;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--page); color: var(--ink);
  font: 15px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
main { max-width: 760px; margin: 0 auto; padding: 12px 16px 40px; }
h1 { font-size: 22px; margin: 8px 0 10px; }
h2 { font-size: 17px; margin: 0 0 10px; }
a { color: var(--accent); }
.top { background: #111827; color: #fff; padding: 10px 16px; display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between; gap: 6px 14px; }
.brand { font-weight: 700; } .brand span { font-weight: 400; color: #9ca3af; }
.top nav { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; font-size: 14px; }
.top nav a { color: #d1d5db; text-decoration: none; } .top nav a.on { color: #fff; font-weight: 600; }
.top .link { background: none; border: 0; color: #d1d5db; padding: 0; font: inherit; cursor: pointer; }
.card { background: var(--card); border: 1px solid var(--rule); border-radius: 12px; padding: 12px 14px; margin: 0 0 10px; }
.narrow { max-width: 420px; margin: 24px auto; }
.muted { color: var(--muted); } .small { font-size: 13px; } .mono { font-family: ui-monospace, Menlo, monospace; }
.bad { color: var(--bad); }
.flash { background: var(--warn-bg); color: var(--warn); border-radius: 10px; padding: 10px 12px; margin: 0 0 10px; }
.note { background: var(--accent-bg); color: var(--accent); border-radius: 10px; padding: 8px 12px; margin: 0 0 10px; font-size: 14px; }
.pagehead { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
label { display: block; font-size: 14px; margin: 0 0 10px; }
input[type=email], input[type=password], input[type=tel], input:not([type]) { display: block; width: 100%; margin-top: 4px;
  padding: 10px; font-size: 16px; border: 1px solid #d1d5db; border-radius: 8px; }
button { font: inherit; font-size: 14px; padding: 8px 14px; border-radius: 8px; border: 1px solid #d1d5db;
  background: #fff; color: var(--ink); cursor: pointer; }
button.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
button.danger { background: #fff; border-color: #fca5a5; color: var(--bad); }
button:disabled { opacity: .5; }
form.inline { display: inline; margin: 0; }
.ename { font-weight: 700; }
.ehead { padding-bottom: 6px; border-bottom: 1px solid var(--rule); }
.listing { display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 9px 0; border-bottom: 1px solid #f1f2f4; }
.listing:last-child { border-bottom: 0; padding-bottom: 2px; }
.lmain { min-width: 0; }
.lside { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; }
.lside form { margin: 0; }
.status { display: inline-block; font-size: 12px; font-weight: 600; padding: 1px 8px; border-radius: 9px;
  background: #eef0f3; color: #374151; white-space: nowrap; }
.s-listed, .s-relist { background: var(--ok-bg); color: var(--ok); }
.s-delisted, .s-delist { background: var(--bad-bg); color: var(--bad); }
.s-blocked { background: var(--warn-bg); color: var(--warn); }
.tag { display: inline-block; font-size: 12px; font-weight: 600; padding: 0 7px; border-radius: 9px;
  background: var(--accent-bg); color: var(--accent); }
.tag .x { border: 0; background: none; color: var(--accent); padding: 0 0 0 2px; font-size: 14px; line-height: 1; }
.tags { margin: 8px 0 4px; display: flex; flex-wrap: wrap; gap: 6px; }
.srow { display: flex; justify-content: space-between; gap: 12px; }
.right { text-align: right; white-space: nowrap; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 10px 0; text-align: center; }
.stats b { display: block; font-size: 20px; } .stats span { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
details summary { cursor: pointer; color: var(--accent); font-size: 14px; margin-top: 6px; }
form.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 10px 0 0; }
form.row input { flex: 1 1 200px; margin: 0; }
.check { display: inline-flex; gap: 4px; align-items: center; margin: 0; font-size: 13px; }
.shown { border-color: #fcd34d; background: #fffbeb; }
.pw { font: 600 20px ui-monospace, Menlo, monospace; margin: 6px 0; user-select: all; word-break: break-all; }
.audit .status { margin-right: 6px; }

/* ---- 2026-10-21: summary bar, tabs, condensed inventory, statements ---- */
.mt6 { margin-top: 6px; }
.summary { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap;
  background: var(--card); border: 1px solid var(--rule); border-radius: 10px; padding: 7px 10px; margin: 0 0 8px; font-size: 13px; }
.summary span { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.summary .owed { text-align: right; } .summary .owed b { font-size: 17px; color: var(--accent); }
.tabs { display: flex; border-bottom: 1px solid var(--rule); margin: 0 0 8px; }
.tabs a { flex: 1; text-align: center; padding: 7px 4px; font-size: 14px; color: var(--muted); text-decoration: none;
  border-bottom: 2px solid transparent; }
.tabs a.on { color: var(--ink); font-weight: 600; border-bottom-color: var(--accent); }
.filters { display: flex; gap: 6px; margin: 0 0 4px; }
.filters select, .filters input { font: inherit; font-size: 14px; padding: 5px 8px; border: 1px solid #d1d5db;
  border-radius: 7px; background: #fff; margin: 0; }
.filters input { flex: 1; min-width: 0; width: auto; display: block; }
.filters button { padding: 5px 10px; }
.meta { font-size: 12px; color: var(--muted); margin: 0 0 6px; }
.note.slim { padding: 5px 10px; font-size: 12px; margin-bottom: 6px; }

.ev { background: var(--card); border: 1px solid var(--rule); border-radius: 8px; padding: 5px 9px 3px; margin: 0 0 5px; }
.evh { display: flex; align-items: baseline; gap: 8px; font-size: 13.5px; line-height: 1.3;
  padding-bottom: 2px; }
.evh b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.evh span { flex-shrink: 0; font-size: 12px; color: var(--muted); }
/* phone: 2 lines per listing -- section/seats on top, qty | price | action below */
.li { display: grid; grid-template-columns: 1fr auto auto; grid-template-areas: "sec sec act" "qty price act";
  column-gap: 10px; align-items: center; border-top: 1px solid #f1f2f4; padding: 3px 0; font-size: 13px; line-height: 1.25; }
.li .c-sec { grid-area: sec; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.li .c-qty { grid-area: qty; color: var(--muted); font-size: 12px; }
.li .c-price { grid-area: price; text-align: right; font-weight: 600; }
.li .c-act { grid-area: act; display: flex; gap: 6px; align-items: center; justify-content: flex-end; }
.li .c-act form { margin: 0; }
.li.pk { padding-left: 14px; font-size: 12px; }
.li.pk .c-price { font-weight: 500; }
.ptag { display: inline-block; font-size: 10px; font-weight: 700; padding: 0 5px; border-radius: 6px; margin-right: 4px;
  background: var(--accent-bg); color: var(--accent); vertical-align: 1px; }
button.mini { font-size: 12px; padding: 2px 9px; border-radius: 6px; color: var(--accent); border-color: #bfdbfe; background: #fff; }
.badge { display: inline-block; font-size: 11px; font-weight: 600; padding: 0 7px; border-radius: 8px;
  background: #eef0f3; color: #4b5563; white-space: nowrap; }
.b-delisted, .b-unpaid { background: var(--bad-bg); color: var(--bad); }
.b-partially-paid { background: var(--warn-bg); color: var(--warn); }
.b-paid { background: var(--ok-bg); color: var(--ok); }

/* tables (sales, statement lines) */
table.grid { width: 100%; border-collapse: collapse; font-size: 13px; background: var(--card); }
table.grid th { text-align: left; font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em;
  color: var(--muted); padding: 5px 6px; border-bottom: 1px solid var(--rule); }
table.grid td { padding: 4px 6px; border-bottom: 1px solid #f1f2f4; vertical-align: top; }
table.sales { border: 1px solid var(--rule); border-radius: 8px; }
.r { text-align: right; } .nw { white-space: nowrap; }
.sub { font-size: 11.5px; color: var(--muted); }
table.kv { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.kv td { padding: 2px 0; } table.kv tr.strong td { font-weight: 700; border-top: 1px solid var(--rule); padding-top: 4px; }
.month { padding: 9px 12px; }
.mh { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.month details summary { font-size: 13px; margin-top: 6px; }
.month details table.grid { margin-top: 4px; font-size: 12px; }
.line { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; padding: 3px 0; border-top: 1px solid #f1f2f4; }
.neg { color: var(--bad); }
.dl { font-size: 13px; margin-top: 6px; }
.adminforms { margin: 8px -4px 4px; padding: 8px 10px 2px; background: #f9fafb; border: 1px solid var(--rule);
  border-radius: 8px; }
form.pay { margin: 4px 0 8px; }
.fh { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 4px; }
.fgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 6px; }
.fgrid label { font-size: 12px; margin: 0; }
.fgrid input, .fgrid select { display: block; width: 100%; margin-top: 2px; padding: 6px; font-size: 14px;
  border: 1px solid #d1d5db; border-radius: 6px; background: #fff; }
.fgrid .wide { grid-column: 1 / -1; }

@media (min-width: 700px) {
  main { max-width: 980px; }
  /* desktop: one table-like line per listing */
  .li { grid-template-columns: minmax(0, 1fr) 80px 90px 150px; grid-template-areas: "sec qty price act"; padding: 3px 0; }
  .li .c-qty { text-align: right; font-size: 13px; }
  .evh { font-size: 14px; }
  .summary { font-size: 14px; }
  .fgrid { grid-template-columns: 150px 130px 120px 1fr; }
  .fgrid .wide { grid-column: auto / -1; }
}

/* ---- fees + est. payout ---- */
.estl { font-weight: 400; font-size: 11px; color: var(--muted); }
label.inl { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: 13px; white-space: nowrap; }
label.inl input { width: 90px; margin: 0; padding: 6px 8px; font-size: 14px; display: inline-block; }
@media (min-width: 700px) { .li { grid-template-columns: minmax(0, 1fr) 80px 150px 150px; } }
.fresh { display: flex; justify-content: flex-end; align-items: center; gap: 8px; margin: -2px 0 6px;
  font-size: 12px; color: var(--muted); }
.fresh button.mini { font-size: 11px; padding: 1px 8px; }

/* ---- purchases ---- */
.summary .owe b { color: var(--bad); }
.b-owes { background: var(--bad-bg); color: var(--bad); }
.plist { margin: 8px 0 2px; }
.plist .line { align-items: center; }
.plist form.inline button.mini { margin-left: 4px; }
.pgrid { grid-template-columns: repeat(2, 1fr); }
.pgrid .wide2 { grid-column: 1 / -1; }
@media (min-width: 700px) {
  .pgrid { grid-template-columns: 150px 1fr 1fr 150px; }
  .pgrid .wide2 { grid-column: span 2; }
  .pgrid .wide { grid-column: 1 / -1; }
}

/* ---- pull tickets (2026-10-22) ---- */
a.btn.mini { display: inline-block; font-size: 12px; padding: 2px 9px; border-radius: 6px; color: var(--accent);
  border: 1px solid #bfdbfe; background: #fff; text-decoration: none; white-space: nowrap; }
.b-req { background: var(--warn-bg); color: var(--warn); }
.top nav .count { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 9px; background: #f59e0b;
  color: #111827; font-size: 11px; font-weight: 700; text-align: center; }
.reqs { background: var(--card); border: 1px solid var(--rule); border-radius: 8px; padding: 6px 9px 2px; margin: 0 0 8px; }
.req { display: flex; justify-content: space-between; gap: 10px; border-top: 1px solid #f1f2f4; padding: 5px 0; font-size: 13px; }
.reqs .fh + .req { border-top: 0; }
.rq-main { min-width: 0; } .rq-main .sub { overflow-wrap: anywhere; }
.rq-st { text-align: right; flex-shrink: 0; }
.pullcard h1 { margin-top: 0; }
.pl-ev { padding: 0 0 10px; margin: 0 0 12px; border-bottom: 1px solid var(--rule); }
fieldset.seats { border: 0; padding: 0; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 8px; }
fieldset.seats legend { font-size: 14px; padding: 0; margin-bottom: 6px; width: 100%; }
label.seat { margin: 0; }
label.seat input { position: absolute; opacity: 0; width: 1px; height: 1px; }
label.seat span { display: inline-block; min-width: 48px; padding: 9px 12px; text-align: center; font-weight: 600;
  border: 1px solid #d1d5db; border-radius: 8px; background: #fff; color: var(--muted); cursor: pointer; }
label.seat input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
label.seat input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
label select, label textarea { display: block; width: 100%; margin-top: 4px; padding: 10px; font: inherit; font-size: 16px;
  border: 1px solid #d1d5db; border-radius: 8px; background: #fff; }
.pl-sum { font-size: 17px; font-weight: 700; margin: 0 0 6px; }
.pl-btns { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.note.warn { background: var(--warn-bg); color: var(--warn); }
.rq-ev { margin: 6px 0 4px; }
.rq table.kv td:first-child { width: 120px; vertical-align: top; }
.rq-act { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 6px 14px; margin-top: 8px; }
.rq-act details summary { margin-top: 2px; }
.sel { user-select: all; overflow-wrap: anywhere; }
.mt16 { margin-top: 16px; }
.pullcard table.kv td:first-child { width: 120px; white-space: nowrap; vertical-align: top; padding-right: 10px; }
/* lowest-seats-only picker (2026-10-22): .on = included in the pull */
label.seat.on span { background: var(--accent); border-color: var(--accent); color: #fff; }
label.seat input:checked + span { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--accent); }
.pick-sum { width: 100%; color: var(--muted); }
.badge.sent { white-space: normal; overflow-wrap: anywhere; text-align: right; }
/* guest picker: choices that would leave a single seat */
label.seat.off span { background: #f3f4f6; color: #c0c4cc; border-style: dashed; cursor: not-allowed; }
label.seat.off.on span { background: var(--accent); color: #fff; border-color: #93c5fd; border-style: dashed; }
/* admin "Set password" forms */
details.pwset { margin-top: 6px; }
form.pwform { display: grid; grid-template-columns: 1fr; gap: 6px; max-width: 420px; margin-top: 6px; }
form.pwform label { margin: 0; font-size: 13px; }
form.pwform input[type=password] { padding: 8px; font-size: 15px; }
/* guest "About" section */
.about h2 { margin-bottom: 6px; }
.about p { margin: 0 0 8px; font-size: 14px; }
.about ul { margin: 0 0 10px; padding-left: 20px; font-size: 14px; }
.about li { margin: 2px 0; }
.about-photo { display: block; margin: 8px -14px 4px; }
.about-photo img { display: block; width: 100%; height: auto; }
@media (min-width: 700px) { .about-photo { margin: 8px 0 4px; } .about-photo img { border-radius: 8px; max-width: 720px; } }

/* About section v2 (2026-10-22): small 4:3 thumbnail, lightbox */
.about.has-photo { display: flex; flex-direction: column; gap: 4px; }
.about-photo { display: none; }
.about-thumb { margin: 2px 0 0; width: 50%; }
.about-thumb a { display: block; }
.about-thumb img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 85%;
  border-radius: 8px; border: 1px solid var(--rule); }
.about-thumb figcaption { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
@media (min-width: 700px) {
  .about.has-photo { flex-direction: row; align-items: flex-start; gap: 18px; }
  .about.has-photo .about-text { flex: 1; min-width: 0; }
  .about-thumb { width: 220px; flex-shrink: 0; margin-top: 4px; }
}
.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, .86); display: flex; align-items: center;
  justify-content: center; padding: 16px; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; box-shadow: 0 6px 30px rgba(0, 0, 0, .5); }
.lightbox .lb-x { position: absolute; top: 10px; right: 12px; width: 40px; height: 40px; border-radius: 20px; border: 0;
  background: rgba(255, 255, 255, .15); color: #fff; font-size: 26px; line-height: 40px; padding: 0; cursor: pointer; }
.lightbox .lb-x:focus-visible { outline: 2px solid #fff; }
body.lb-open { overflow: hidden; }
