/* Palette. One set of names, two sets of values: the dark block at the end of
   this stylesheet redefines them, so no rule below has to know which theme is on. */
/* One palette. There is no light mode: app.wullit.com is a dark product, and a
   theme switch on a ticketing app was a setting nobody asked for twice.
   
   These are the values the dark block used to override, promoted to the only
   set. Keeping the same variable names means no rule below had to change. */
:root{
  --paper:#121315; --paper-2:#1B1D21; --ink:#F3F1EB; --ink-soft:#C8C6BF;
  --muted:#94918A; --line:#2E3136; --accent:#F0533A; --accent-soft:#3A211C;
  --ok:#3FCF83; --warn:#FF8A6F; --panel:#1B1D21;
  --band:#08090B; --band-ink:#F6F3EC;

  /* ---------- corner scale ----------
     The product's shape language is a rounded rectangle, not a capsule. There
     is no pill in the design — but 999px had crept into twenty-two rules, so
     every button, chip, tag and count was a lozenge while the cards and inputs
     around them were squared off. These four steps replace all of them, and
     exist as names so the next control has something to reach for instead of
     inventing 999px again.

     Sizes are chosen by how much text the corner has to hold, not by taste:
     a corner radius larger than about a third of the box height is what makes
     a rectangle read as a capsule, so a 22px badge takes 4-6, a 30px chip
     takes 9, and a 48px button takes 11. */
  --r-badge:5px;    /* counts and small status labels */
  --r-tag:6px;      /* hashtags, topic tags */
  --r-ctl:9px;      /* chips and small controls, matches the inputs */
  --r-btn:11px;     /* buttons, matches .ev-share-btn and the cards */
  /* Tell the browser this page is dark.

     Without it, every control it draws itself — checkboxes, number spinners,
     scrollbars, the dropdown list behind a select — is rendered in the light
     palette. On this surface that means a solid white 16px square at every
     consent tick, which was the single most broken-looking element on the
     checkout: it reads as a missing image, not as a control.

     Declaring it fixes all of them at once, keeps them native (keyboard,
     focus ring, screen-reader state) rather than reimplemented, and lets
     accent-color do its job on top. */
  color-scheme: dark;
}

*{box-sizing:border-box;margin:0;padding:0}
body{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Helvetica,Arial,sans-serif;
  background:var(--paper);color:var(--ink);font-size:17px;line-height:1.5;-webkit-font-smoothing:antialiased}
.wrap{max-width:640px;margin:0 auto;padding:24px 20px 60px}

/* ---------- navigation ----------
   A side panel where there is room, a drawer behind a bar on a phone.
   The masthead had one row for every destination, so buyer pages and organiser
   tools competed for the same space with no distinction between them. A panel
   can group them, and the organiser block simply does not exist for somebody
   who runs nothing. */
.app{display:block;min-height:100vh}
.appbody{min-width:0;max-width:760px;margin:0 auto;padding:26px 22px 70px}
/* Optional wider column, for pages whose content is a grid rather than prose.

   The 760px cap is right for reading — a paragraph wider than that is hard to
   track. It was wrong for Discover: a grid of square flyers is a browsing
   surface, and capping it meant zooming out on a monitor only added black space
   either side instead of showing more nights. Measured: at 1440 the page was
   760px wide with 680px of empty background. Pages opt in with wide, so the
   reading measure everywhere else is untouched. */
.appbody.wide{max-width:1560px}

.snav{display:none;overflow-y:auto;
  border-right:1px solid var(--line);background:var(--panel);
  padding:20px 12px 28px;flex-direction:column;gap:2px}
.snav-brand{display:flex;align-items:center;gap:8px;font-weight:700;font-size:17px;
  letter-spacing:-.02em;color:var(--ink);text-decoration:none;
  padding:0 10px 16px;border-bottom:1px solid var(--line);margin-bottom:12px}
.snav-h{font-size:10px;letter-spacing:.1em;text-transform:uppercase;font-weight:700;
  color:var(--muted);padding:14px 10px 5px}
.snav-a{display:block;font-size:14px;font-weight:550;color:var(--ink-soft);
  text-decoration:none;padding:8px 10px;border-radius:9px;line-height:1.3}
.snav-a:hover{background:var(--paper-2);color:var(--ink)}
.snav-a.on{background:var(--ink);color:var(--paper);font-weight:650}
.snav-out{margin:0}
.snav-btn{width:100%;text-align:left;background:none;border:0;font:inherit;
  font-size:14px;font-weight:550;cursor:pointer;color:var(--ink-soft);
  padding:8px 10px;border-radius:9px}
.snav-btn:hover{background:var(--paper-2);color:var(--ink)}
.snav-signin{margin-top:6px;background:var(--accent);color:#fff;text-align:center;
  font-weight:650;padding:10px}
.snav-signin:hover{background:var(--accent);color:#fff;opacity:.92}

/* ---------- top bar ----------
   The side panel was 208px of a 1440px screen spent on thirteen links, and on
   Discover — the one page that is a grid of flyers rather than prose — that
   width was the difference between four cards across and five. The destinations
   group the same way they always did, but the groups are menus now, so the
   panel's whole column goes back to the content.

   Browse / Run / Account are the three headings the panel used; opening one
   shows exactly the items that sat under it. Nothing was renamed and nothing
   was dropped in the move. */
.topbar{position:sticky;top:0;z-index:40;background:var(--panel);
  border-bottom:1px solid var(--line)}
.tb-in{display:flex;align-items:center;gap:14px;height:60px;
  padding:0 22px;max-width:1560px;margin:0 auto}
.tb-brand{display:flex;align-items:center;gap:7px;font-weight:700;font-size:16px;
  letter-spacing:-.02em;color:var(--ink);text-decoration:none;flex:none;
  padding-right:14px;border-right:1px solid var(--line)}
.tb-nav{display:flex;align-items:center;gap:2px;flex:none}
.tbm{position:relative}
.tb-a{display:flex;align-items:center;gap:5px;font:inherit;font-size:13.5px;
  font-weight:600;color:var(--ink-soft);background:none;border:0;cursor:pointer;
  text-decoration:none;padding:8px 12px;border-radius:9px;line-height:1.2;
  white-space:nowrap}
.tb-a:hover,.tbm.open .tb-a{background:var(--paper-2);color:var(--ink)}
.tbm.open .tb-a.on{background:var(--ink);color:var(--paper)}
.tb-a:focus-visible{outline:2px solid var(--accent);outline-offset:1px}
.tb-c{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:2.4;
  stroke-linecap:round;stroke-linejoin:round;opacity:.55;margin-top:1px;
  transition:transform .14s ease}
.tbm:hover .tb-c,.tbm.open .tb-c{transform:rotate(180deg)}

/* Hover opens it; :focus-within keeps the menu reachable by keyboard, which a
   pure hover rule does not — the button takes focus but the panel would never
   appear for someone tabbing. The ::before is a 9px bridge over the gap so the
   pointer can cross from the button to the panel without closing it. */
.tb-menu{display:none;position:absolute;top:calc(100% + 7px);left:0;min-width:196px;z-index:60;
  background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:6px;
  box-shadow:0 16px 40px rgba(0,0,0,.5)}
.tb-menu::before{content:'';position:absolute;left:0;right:0;top:-9px;height:9px}
.tbm:hover .tb-menu,.tbm:focus-within .tb-menu,.tbm.open .tb-menu{display:block}
.tb-menu a,.tb-menu button{display:block;width:100%;text-align:left;font:inherit;
  font-size:13.5px;font-weight:550;color:var(--ink-soft);background:none;border:0;
  cursor:pointer;padding:9px 11px;border-radius:8px;text-decoration:none;line-height:1.25}
.tb-menu a:hover,.tb-menu button:hover{background:var(--paper-2);color:var(--ink)}
.tb-menu a.on{color:var(--ink);font-weight:650}
.tb-menu form{margin:0}
.tb-div{height:1px;background:var(--line);margin:5px 6px}
.tb-n{float:right;min-width:17px;height:17px;padding:0 4px;border-radius:var(--r-badge);
  background:var(--paper-2);color:var(--ink-soft);font-size:10.5px;font-weight:700;
  line-height:17px;text-align:center}

/* Search sits in the middle because it is the one control that is not a
   destination: on Discover it filters the page you are on, and from anywhere
   else it is the fastest way there. It submits to /whats-on?q=, the same
   parameter the page's own box uses, so the two can never disagree about what
   a search means. */
.tb-mid{display:flex;align-items:center;gap:8px;flex:1 1 auto;min-width:0;
  margin:0 4px 0 8px}
.tb-search{display:flex;align-items:center;gap:8px;flex:1 1 auto;max-width:360px;min-width:0;
  background:var(--paper-2);border:1px solid var(--line);
  border-radius:10px;padding:0 6px 0 11px;height:36px}
/* Clear, inside the box. 22px so it stays a real target without turning a
   36px-tall input into a button cluster. */
.tb-clear{flex:none;width:22px;height:22px;padding:0;display:flex;align-items:center;
  justify-content:center;background:none;border:0;border-radius:6px;cursor:pointer;
  color:var(--muted)}
.tb-clear:hover{background:var(--line);color:var(--ink)}
.tb-clear svg{width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:2.4;
  stroke-linecap:round}
.tb-clear[hidden]{display:none}
/* The magnifier: a submit, beside the filter. Same 36px square as the filter
   button so the two read as one control pair rather than a box and a circle. */
.tb-go{flex:none;width:36px;height:36px;padding:0;display:flex;align-items:center;
  justify-content:center;border:1px solid var(--line);border-radius:10px;
  background:var(--panel);color:var(--ink-soft);cursor:pointer}
.tb-go:hover{border-color:var(--ink);color:var(--ink)}
.tb-go:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.tb-go svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;
  stroke-linecap:round}
/* The filter panel in the bar opens downward from a 36px control, so it must
   not inherit the page's own filters flex sizing. */
.tb-mid .filters{flex:none}
.tb-mid .fbtn{width:36px;height:36px;border-radius:10px}
.tb-mid .fbtn svg{width:16px;height:16px}
.tb-mid .fpanel{top:calc(100% + 9px);right:0;left:auto}
.tb-search:focus-within{border-color:var(--muted)}
.tb-search svg{width:15px;height:15px;flex:none;fill:none;stroke:var(--muted);
  stroke-width:2;stroke-linecap:round}
.tb-search input{flex:1 1 auto;min-width:0;background:none;border:0;outline:0;
  font:inherit;font-size:13.5px;color:var(--ink);height:34px}
.tb-search input::placeholder{color:var(--muted)}

.tb-right{margin-left:auto;display:flex;align-items:center;gap:4px;flex:none}
.tb-badge{min-width:17px;height:17px;padding:0 4px;border-radius:var(--r-badge);
  background:var(--accent);color:#fff;font-size:10.5px;font-weight:700;
  line-height:17px;text-align:center;display:none}
.tb-badge.on{display:inline-block}
.tb-me{width:32px;height:32px;margin-left:8px;border-radius:9px;background:var(--paper-2);
  border:1px solid var(--line);display:flex;align-items:center;justify-content:center;
  font-size:12px;font-weight:700;color:var(--ink-soft);text-decoration:none;flex:none;
  overflow:hidden}
.tb-me img{width:100%;height:100%;object-fit:cover;display:block}
.tb-me.pending{visibility:hidden;pointer-events:none}
.tb-me:focus-visible{outline:2px solid var(--accent);outline-offset:1px}

@media(max-width:1100px){
  .tb-search{max-width:none}
}
@media(max-width:899px){
  .topbar{display:none}
}

/* Phone: the panel becomes a drawer, and the bar carries the brand. */
.mbar{display:none;align-items:center;gap:10px;position:sticky;top:0;z-index:40;
  padding:10px 14px;border-bottom:1px solid var(--line);background:var(--panel)}
.mbar-brand{display:flex;align-items:center;justify-content:center;gap:7px;
  font-weight:700;font-size:16px;letter-spacing:-.02em;color:var(--ink);
  text-decoration:none;flex:1}
.mbar-btn{width:36px;height:36px;flex:none;display:flex;align-items:center;
  justify-content:center;background:none;border:0;color:var(--ink);cursor:pointer;
  border-radius:9px}
.mbar-btn:hover{background:var(--paper-2)}
.mbar-btn svg{width:19px;height:19px}
/* The account slot opposite the burger.

   It replaces a 36px spacer that existed only to keep the brand centred —
   the right-hand slot used to hold the theme toggle, and when that was removed
   nothing took its place. So this control costs no layout at all: it occupies
   a box the bar was already reserving.

   Square, 34px, rounded to 9px: the same corner as the sidebar's own buttons,
   and small enough that the brand stays centred between the two 36px slots.
   A photograph is the one thing on this bar that is not a logo or a label, so it
   needs no words to say what it is. */
.mbar-me{width:36px;height:36px;flex:none;display:block;border-radius:9px;
  overflow:hidden;border:1px solid var(--line);background:var(--paper-2);
  text-decoration:none;padding:0}
.mbar-me img{width:100%;height:100%;object-fit:cover;display:block}
/* No picture on the account: a designed initial, not a grey silhouette. Same
   treatment as every avatar fallback in the product. */
.mbar-me.ini{display:flex;align-items:center;justify-content:center;
  font-size:13px;font-weight:700;color:var(--ink-soft)}
.mbar-me:focus-visible{outline:2px solid var(--accent);outline-offset:1px}
.mbar-me:active{opacity:.85}
/* The empty slot. It holds the bar's layout open — a 36px box either side of
   the brand — while showing nothing, so the chip appearing does not shift the
   logo. visibility rather than display: removing it from the row would
   centre the brand on the bar and then shove it sideways a moment later. */
.mbar-me.pending{visibility:hidden;pointer-events:none}

/* Same control in the desktop sidebar, beside the brand.

   The desktop panel has no burger, so "opposite the navigation" has no meaning
   there — the brand row is the only place that answers the same question. It
   sits at the far end of that row, which is the visual equivalent of the phone
   bar's right-hand slot. */
.snav-top{display:flex;align-items:center;gap:8px;padding:0 10px 16px;
  border-bottom:1px solid var(--line);margin-bottom:12px}
.snav-top .snav-brand{padding:0;border-bottom:0;margin-bottom:0;flex:1 1 auto;min-width:0}
/* No account chip in the desktop panel.
   There was one here, beside the brand. Removed on the owner's call and he is
   right: the panel already lists "Your profile" as a nav item a few lines down,
   so the chip was a second way to reach the same page, twelve pixels from the
   first. The phone bar keeps its chip because that bar has no nav items at all —
   different constraint, so a different answer, which is why this is a per-bar
   rule and not a "no chips" rule. */

@media(max-width:899px){
  .app{display:block}
  .mbar{display:flex}
  .snav{display:flex;position:fixed;inset:0 auto 0 0;width:264px;max-width:84vw;z-index:60;
    transform:translateX(-102%);transition:transform .18s ease;height:100dvh;
    border-right:1px solid var(--line);box-shadow:0 0 28px rgba(0,0,0,.18)}
  .snav.open{transform:none}
  .appbody{padding:20px 16px 64px;max-width:none}
  .nback{position:fixed;inset:0;z-index:50;background:rgba(0,0,0,.42)}
}

/* ---------- phone tab bar ----------
   Four destinations, thumb-reachable, always present. The drawer still holds
   everything else (settings, scanners, refunds, sign out); this is the short
   list somebody actually moves between on a phone.

   z-index 45 sits BELOW the drawer backdrop (50) on purpose: opening the menu
   must cover the bar, or two navigations fight for the same thumb. */
.tabbar{display:none}
@media(max-width:899px){
  .tabbar{display:flex;position:fixed;inset:auto 0 0 0;z-index:45;
    background:var(--panel);border-top:1px solid var(--line);
    /* Home-indicator inset on iOS: without it the labels sit under the bar. */
    padding-bottom:env(safe-area-inset-bottom,0px);
    box-shadow:0 -1px 12px rgba(0,0,0,.06)}
  /* Room for the bar, or the last row of every page sits behind it. */
  .appbody{padding-bottom:calc(74px + env(safe-area-inset-bottom,0px))}
}
.tabbar-a{flex:1 1 0;display:flex;flex-direction:column;align-items:center;gap:3px;
  padding:8px 2px 7px;font-size:10.5px;font-weight:650;letter-spacing:.01em;
  color:var(--muted);text-decoration:none;position:relative;min-width:0}
.tabbar-a svg{width:22px;height:22px;display:block}
.tabbar-a.on{color:var(--ink)}
/* A dot rather than an underline: at this size a 2px rule reads as a divider
   between tabs. The dot says "you are here" without drawing a line. */
.tabbar-a.on::after{content:'';position:absolute;top:3px;right:calc(50% - 15px);
  width:5px;height:5px;border-radius:50%;background:var(--accent)}
.tabbar-a:active{background:var(--paper-2)}
.tabbar-badge{position:absolute;top:5px;right:calc(50% - 19px);min-width:16px;height:16px;
  padding:0 4px;border-radius:var(--r-badge);background:var(--accent);color:#fff;
  font-size:10px;font-weight:700;line-height:16px;text-align:center;display:none}
.tabbar-badge.on{display:block}
@media(prefers-reduced-motion:reduce){.snav{transition:none}}
h1{font-size:30px;letter-spacing:-.03em;line-height:1.15;margin:0 0 6px}
h2{font-size:19px;letter-spacing:-.02em;margin:26px 0 8px}
p{margin:0 0 14px;color:var(--ink-soft)}
small,.muted{color:var(--muted);font-size:14px}
code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:15px;
  background:var(--paper-2);padding:2px 6px;border-radius:4px;letter-spacing:.08em}
.brand{display:inline-flex;align-items:center;gap:9px;font-weight:700;font-size:19px;letter-spacing:-.03em;
  padding-bottom:18px;text-decoration:none;color:inherit}
.masthead{display:flex;align-items:center;justify-content:space-between;
  border-bottom:1px solid var(--line);margin-bottom:22px;padding-bottom:18px}
.masthead .brand{padding-bottom:0;border-bottom:0;margin-bottom:0}
/* Sign-out sits with the theme button rather than centred: two controls belong
   on the right, the brand on the left. */
.masthead-out{display:flex;align-items:center;margin-left:auto;margin-right:12px;padding:0}
.masthead-out .linkbtn{margin:0;padding:0}
.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:1px;background:var(--line);
  border:1px solid var(--line);border-radius:14px;overflow:hidden;margin:20px 0}
/* Four tiles only while this phone is holding unsynced scans (T-066): the queue
   is shown beside the server's count, never inside it. */
.stats.quad{grid-template-columns:repeat(2,1fr)}
.stat{background:var(--paper-2);padding:16px}
.stat .n{font-size:28px;font-weight:700;letter-spacing:-.03em;font-variant-numeric:tabular-nums}
.stat .l{font-size:12px;text-transform:uppercase;letter-spacing:.1em;color:var(--muted);margin-top:2px}
.stat.in .n{color:var(--ok)}
.stat.pend .n{color:var(--warn)}
.btn{display:inline-block;background:var(--accent);color:#fff;border:0;border-radius:var(--r-btn);
  padding:15px 26px;font:inherit;font-weight:650;font-size:16px;cursor:pointer;text-decoration:none}
.btn:active{transform:translateY(1px)}
/* There is no generic .btn.ghost in this sheet, so every "Cancel", "Unblock",
   "Report" and "Close thread" rendered as a second filled button — two primary
   actions side by side, which on a confirmation page is the wrong signal. The
   class has been used for months; this is the missing definition, not a new
   style. */
.btn.ghost{background:transparent;color:var(--ink);border:1px solid var(--line)}
.btn.ghost:hover{border-color:var(--ink);background:var(--paper-2)}
.btn.big{width:100%;padding:22px;font-size:18px}
input[type=text],input[type=number]{width:100%;font:inherit;font-size:20px;padding:16px;
  border:1px solid var(--line);border-radius:12px;background:var(--panel);text-align:center;
  letter-spacing:.14em;text-transform:uppercase}
input[type=number]{letter-spacing:0;text-transform:none}
.row{display:flex;gap:10px;align-items:center;margin:14px 0}
#result{margin:18px 0;border-radius:14px;padding:20px;font-size:17px;display:none}
#result.show{display:block}
#result.ok{background:var(--ok);color:#08210F}
#result.bad{background:var(--accent);color:#fff}
/* A ticket already in is not a fraud signal. Red is reserved for the two real
   refusals — cancelled and not found — so the amber state says "this person
   belongs here, they have already been let in" and stops the argument the red
   used to start (T-058). */
#result.again{background:#F0B429;color:#241800}
#result .big{font-size:24px;font-weight:700;letter-spacing:-.02em;display:block;margin-bottom:4px}
.queue{background:var(--panel);border:1px solid var(--line);border-radius:10px;padding:10px 14px;
  font-size:14px;color:var(--muted);margin-top:14px;display:none}
.queue.show{display:block}
.queue b{color:var(--accent)}
table{width:100%;border-collapse:collapse;margin-top:12px}
th,td{text-align:left;padding:10px 8px;border-bottom:1px solid var(--line);font-size:15px}
th{font-size:11.5px;text-transform:uppercase;letter-spacing:.11em;color:var(--muted)}
td.n{text-align:right;font-variant-numeric:tabular-nums}

/* ---------- auth ---------- */
.auth{display:grid;gap:6px;max-width:440px;margin-top:22px}
/* A display rule beats the browser's [hidden]{display:none}, so hiding a form
   with the attribute alone does nothing to a grid. The email form is collapsed
   by attribute when passkeys are available; without this it stayed on screen. */
.auth[hidden]{display:none}
.auth label{font-size:13px;font-weight:600;color:var(--ink-soft);margin-top:10px}
.auth input,.auth select{width:100%;font:inherit;font-size:17px;padding:13px 14px;
  border:1px solid var(--line);border-radius:10px;background:var(--panel);color:var(--ink);
  text-transform:none;letter-spacing:0;text-align:left}
.auth select{appearance:none;background-image:none}
.auth input:focus,.auth select:focus{outline:2px solid var(--accent);outline-offset:-1px;border-color:transparent}
.auth .btn{margin-top:20px;justify-self:start}
.auth small{color:var(--muted);font-size:13px;margin-top:-2px}
.row2{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.row2 label{display:block}
/* Two small boxes for the age limit, side by side but only as wide as a two-digit
   number needs. A full-width pair of number fields reads as two more prices. */
.agelimit{display:flex;gap:10px;margin:0}
.agelimit>div{flex:0 0 96px}
.agelimit label{display:block}
.agelimit input{text-align:center}
.agesummary{margin-top:4px}
.socialgrid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:6px 0 4px}
.socialgrid label{display:block}
@media (max-width:620px){.socialgrid{grid-template-columns:1fr}}
.errs{background:var(--accent-soft);border-left:3px solid var(--accent);padding:12px 16px;border-radius:0 8px 8px 0;margin:18px 0}
.errs p{margin:0;font-size:14.5px;color:var(--warn)}
.errs p+p{margin-top:4px}
.dashtop{border:1px solid var(--line);border-radius:16px;background:var(--panel);
  overflow:hidden;margin:0 0 20px}
.dashtop-body{padding:18px 20px 16px}
/* The band, same idea as the profile page: a backdrop the identity row sits in,
   not a cover above it. Shorter here because the dashboard avatar is 56px and
   this card already carries a lot of chrome. */
.dash-band{position:relative;height:74px;background-size:cover;background-position:50% 40%;
  background-repeat:no-repeat}
.dash-band::after{content:'';position:absolute;inset:0;
  background:linear-gradient(180deg,rgba(18,19,21,.12) 0%,rgba(18,19,21,.4) 55%,var(--panel) 100%)}
.dashtop.has-band .dashtop-body{padding-top:0}
.dashtop.has-band .acct-head{position:relative;margin-top:-30px;z-index:1}
.dashtop.has-band .dash-pic{border:3px solid var(--panel)}
.dashtop .signedas{margin:0 0 14px}
.dashtop .acct-primary{margin:16px 0 0;padding-top:14px;border-top:1px solid var(--line)}
.acct-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;flex-wrap:wrap}
/* The dashboard opens with the business, not with a button. Banner, avatar, name
   and handles — the same things a buyer sees, so what is on the public page is
   not a surprise. The avatar links to the profile EDITOR, not the public page:
   someone clicking their own picture in their own dashboard is trying to change
   something, not to browse themselves. */
/* A live quote while the room is being chosen: what it needs, what it costs,
   and whether a pack would be cheaper. Deliberately a running total rather than
   a warning — the price is the thing being decided, not the failure. */
/* The balance is the first thing on the dashboard and the largest number on it.
   Everything else on the page is a report; this is the thing you act on. */
.balance{display:flex;justify-content:space-between;align-items:center;gap:18px;
  flex-wrap:wrap;border:1px solid var(--line);border-radius:16px;
  background:var(--panel);padding:18px 20px;margin:0 0 22px}
.balance.empty{border-color:var(--accent);background:var(--accent-soft)}
.bal-n{font-size:40px;font-weight:700;letter-spacing:-.04em;line-height:1;
  font-variant-numeric:tabular-nums}
.balance.empty .bal-n{color:var(--warn)}
.bal-l{font-size:12px;letter-spacing:.1em;text-transform:uppercase;
  color:var(--muted);margin-top:4px}
.bal-sub{font-size:13px;color:var(--muted);margin-top:8px;max-width:38em}
.bal-actions{display:flex;gap:14px;align-items:center;flex-wrap:wrap}
.bal-actions .btn{margin:0}
@media(max-width:560px){.balance{padding:16px}.bal-n{font-size:32px}}
.calc{border:1px solid var(--line);border-radius:12px;background:var(--panel);
  padding:14px 16px;margin:12px 0 4px}
.calc-row{display:flex;justify-content:space-between;align-items:baseline;
  font-size:14px;color:var(--ink-soft);padding:3px 0}
.calc-row b{font-variant-numeric:tabular-nums;color:var(--ink);text-align:right}
/* A per-type line: the price the buyer pays, with what the organiser keeps
   underneath in smaller type. Two prices side by side on one line read as a
   range; stacked reads as one ticket. */
.calc-t{padding:7px 0;border-bottom:1px solid var(--line)}
.calc-t:last-of-type{border-bottom:none}
.calc-t b{display:block}
.calc-sub{display:block;font-size:11.5px;font-weight:400;color:var(--muted);margin-top:2px}
.calc-qty{color:var(--muted);font-variant-numeric:tabular-nums}
/* The three totals are the answer to the question, so they are ruled off from
   the per-ticket lines above them. */
.calc-total{border-top:1px solid var(--line);margin-top:4px;padding-top:8px;font-weight:600}
/* Worked examples under the lineup and Q&A boxes.
   The placeholder used to be the only example, and it vanished the moment
   somebody typed — so the instructions left the screen exactly when they were
   needed. This stays. */
.eg{margin:6px 0 2px}
.eg summary{font-size:12.5px;color:var(--muted);cursor:pointer;text-decoration:underline;text-underline-offset:2px}
.eg summary:hover{color:var(--ink)}
.egbody{margin:8px 0 0;padding:10px 12px;border:1px solid var(--line);border-radius:8px;
  background:var(--paper-2);color:var(--ink-soft);font-size:12.5px;line-height:1.6;
  white-space:pre-wrap;overflow-x:auto;font-family:ui-monospace,SFMono-Regular,Menlo,monospace}
.egnote{margin:6px 0 0;font-size:12.5px;color:var(--muted)}
.calc-note{font-size:12.5px;color:var(--muted);margin-top:8px}
.calc-note.ok{color:#2F7D4F}
.calc-note.bad{color:var(--warn)}
.calc-actions{display:flex;gap:14px;flex-wrap:wrap;align-items:center;margin-top:12px}
.calc-actions .btn{margin:0}
.calc-actions .linkbtn{font-size:12.5px;text-decoration:underline;text-underline-offset:2px}
.uhandle{color:var(--ink-soft);text-decoration:none;font-weight:600}
.uhandle:hover{color:var(--ink);text-decoration:underline}
.signedas{margin:0 0 12px;font-size:13px;color:var(--muted);display:flex;flex-wrap:wrap;
  align-items:baseline;gap:7px}
.signedas b{color:var(--ink);font-weight:650}
.signedas-where{font-size:11.5px;letter-spacing:.06em;text-transform:uppercase;
  font-weight:700;color:var(--muted);opacity:.85}
.signedas-top{margin:0 0 10px;padding:0 2px}
.signedas-top .signedas-where{float:right}
.dash-id{display:flex;align-items:center;gap:14px;min-width:0}
.dash-pic{width:56px;height:56px;border-radius:9px;object-fit:cover;background:var(--paper-2);flex:none;border:1px solid var(--line)}
.dash-pic.ini{display:flex;align-items:center;justify-content:center;font-size:21px;font-weight:700;color:var(--ink-soft)}
.dash-avlink{display:inline-flex;flex:none;border-radius:9px;line-height:0}
.dash-avlink:hover .dash-pic{outline:2px solid var(--accent);outline-offset:2px}
.dash-id h1{margin:0 0 2px;font-size:26px}
.linkbtn{background:none;border:0;font:inherit;font-size:14px;color:var(--muted);cursor:pointer;
  text-decoration:underline;text-underline-offset:2px;padding:4px 0}
.linkbtn:hover{color:var(--accent)}
/* Postpone and cancel used to sit in the row between Edit and CSV, styled like
   every other action link and guarded only by confirm(). They are destructive
   and rare, so they now live behind "Manage" on the event itself. A table cell
   is the one place a red button cannot be made to feel different enough. */
.linkbtn.danger:hover{color:var(--warn)}
.csvlink{font-size:13.5px}

/* ---------- where am I ----------
   A back control on every page was the symptom of having no navigation model.
   The fix is one link home in the masthead, plus a contextual crumb on the
   pages that are children of something else (an event, the dashboard). */
.masthead-nav{display:flex;align-items:center;gap:16px;margin-left:auto;margin-right:14px}
.masthead-nav a{font-size:13.5px;font-weight:600;color:var(--muted);text-decoration:none}
.masthead-nav a:hover{color:var(--ink)}
.crumb{display:inline-flex;align-items:center;gap:5px;font-size:13px;color:var(--muted);
  text-decoration:none;margin:0 0 12px}
.crumb:hover{color:var(--ink)}

/* ---------- event cards (organiser dashboard) ----------
   Replaces a six-column table. The table was the second most important thing
   on the page and had the least space; a card gives the title, the numbers and
   the actions room without a horizontal scroll on a phone. */
.evcards{display:grid;gap:10px;margin:12px 0 0}
.evcard{display:grid;grid-template-columns:1fr auto;gap:12px 18px;align-items:start;
  border:1px solid var(--line);border-radius:14px;background:var(--panel);padding:16px 18px}
.evcard.past{opacity:.72}
.evc-title{font-size:17.5px;font-weight:700;letter-spacing:-.02em;color:var(--ink);
  text-decoration:underline;text-decoration-color:var(--line);text-decoration-thickness:1.5px;
  text-underline-offset:3px}
.evc-title:hover{text-decoration-color:var(--accent);color:var(--accent)}
/* A status badge, not a colour change. A cancelled event for next Friday used to
   look identical to a live one because the upcoming/past split is decided by
   date alone; the badge says what the night actually is. */
.evbadge{display:inline-block;font-size:10.5px;font-weight:700;letter-spacing:.06em;
  text-transform:uppercase;border-radius:var(--r-badge);padding:2px 8px;margin-left:8px;
  vertical-align:2px;white-space:nowrap}
.evbadge.bad{color:#B7261A;border:1px solid #B7261A;background:var(--accent-soft)}
.evbadge.warn{color:#8A6100;border:1px solid #C98A12}
.evbadge.past{color:var(--muted);border:1px solid var(--line)}
.evc-when{font-size:13px;color:var(--muted);margin-top:4px}
.evc-id{font-size:11px;color:var(--muted);margin-top:5px}
.evc-id code{font-size:10.5px;background:var(--paper-2);padding:1px 4px;border-radius:3px;
  border:1px solid var(--line);user-select:all}
.evc-stats{display:flex;gap:20px;margin:12px 0 0;flex-wrap:wrap}
.evc-stats span{display:block;font-size:11px;letter-spacing:.09em;text-transform:uppercase;color:var(--muted);margin-top:1px}
.evc-stats b{display:block;font-size:17px;letter-spacing:-.02em;color:var(--ink);font-variant-numeric:tabular-nums}
.evc-act{display:flex;gap:14px;flex-wrap:wrap;font-size:13.5px;align-items:center;justify-content:flex-end}
.evc-act a{color:var(--ink-soft);text-decoration:underline;text-decoration-color:transparent;
  text-underline-offset:3px}
.evc-act a:hover{text-decoration-color:currentColor;color:var(--ink)}
.evc-act .inlineform{display:inline;margin:0}
.inlineform button{background:none;border:0;padding:0;font:inherit;cursor:pointer}
.evc-again{color:var(--accent);font-weight:650}
.evc-again:hover{text-decoration:underline}
.evc-manage{color:var(--muted)}
@media(max-width:600px){
  .evcard{grid-template-columns:1fr}
  .evc-act{justify-content:flex-start;border-top:1px solid var(--line);padding-top:11px;margin-top:2px}
}

/* ---------- settings tiles ----------
   Six stacked panels of identical shape made the dashboard several screens of
   the same thing. Same words, half the height, arranged so the eye can skip. */
.tiles{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:12px 0 0}
.tile{border:1px solid var(--line);border-radius:12px;background:var(--panel);padding:14px 16px;
  text-decoration:none;color:inherit;display:block}
a.tile:hover{border-color:var(--ink)}
.tile-t{font-size:14.5px;font-weight:700;letter-spacing:-.01em;color:var(--ink)}
.tile-d{font-size:12.5px;color:var(--muted);margin-top:3px;line-height:1.45}
.tile-go{font-size:12.5px;color:var(--accent);font-weight:600;margin-top:8px;display:inline-block}
@media(max-width:620px){.tiles{grid-template-columns:1fr}}

/* ---------- event page ---------- */
.ev-head{display:flex;justify-content:space-between;align-items:flex-start;gap:6px 18px;flex-wrap:wrap}
.ev-head h1{margin:0}
.ev-price-big{font-size:25px;font-weight:700;letter-spacing:-.03em;white-space:nowrap;
  font-variant-numeric:tabular-nums}
.ev-price-big.free{color:var(--ok)}
.ev-when{font-size:14px;color:var(--muted);margin:6px 0 0}
.ev-place{color:var(--ink-soft);text-decoration:underline;text-underline-offset:2px}
.ev-place:hover{color:var(--ink)}
.ev-cap{display:inline-block;font-size:12.5px;font-weight:700;color:var(--accent);margin-top:8px}
.ev-cap.gone{color:var(--muted)}
/* Event pictures are square. The upload form says so, and every surface that
   draws one crops to 1:1 — so what the organiser sees when they upload is what
   a buyer sees in the card, the venue list and the event page. */
.ev-img{margin:0 0 20px;border-radius:14px;overflow:hidden;border:1px solid var(--line);background:var(--paper-2);position:relative}
.ev-img img{display:block;width:100%;aspect-ratio:1/1;object-fit:cover}
/* The badge, on the flyer and in the same bottom-left corner the cards and feed
   rows use — so the three surfaces agree about where "you have a ticket" lives.
   Here it carries the words as well as the icon: the flyer is full-width on a
   phone, so there is room, and on the page where somebody is deciding whether
   they already bought a ticket the words are worth the pixels. */
.ev-img-own{position:absolute;bottom:12px;left:12px;z-index:2;display:inline-flex;
  align-items:center;gap:6px;font-size:12px;font-weight:700;letter-spacing:.02em;
  color:#0d1a12;background:rgba(63,207,131,.95);border-radius:var(--r-tag);
  padding:5px 11px;box-shadow:0 1px 4px rgba(0,0,0,.35);text-decoration:none}
/* It is a link to My tickets, so it needs the two affordances colour alone
   cannot give: a pointer and a visible response. No underline — at 12px inside
   a pill the underline collides with the icon — so the lift does the work. */
.ev-img-own:hover{background:rgba(63,207,131,1);transform:translateY(-1px)}
.ev-img-own:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.ev-img-own svg{width:13px;height:13px;flex:none}
/* The buy block was 16/18px padding around a 20px-font number input and a
   full-width button, so on a phone it filled most of a screen and read as the
   page's main content rather than a control. Smaller type, tighter padding, and
   the quantity field no longer inherits the giant scanner-input style. */
.ev-id{margin:18px 0 0;font-size:12px;color:var(--muted);line-height:1.7}
.ev-id code{font-size:11.5px;background:var(--paper-2);padding:1px 5px;border-radius:4px;
  border:1px solid var(--line);user-select:all}
.ev-id-hint{display:block;font-size:11.5px;opacity:.85}
.ev-topacts{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin:14px 0 18px}
.ev-topacts .btn{padding:11px 18px;font-size:14.5px}
.ev-topacts .hint{margin:0}
/* The icon controls beside Get tickets.

   42px square with a 10px corner — one step up from the 36px profile-header
   buttons because this bar sits beside a 44px primary, and one step down from
   the card radius. Same border and hover as .headicon, so a mark on an event
   page and a mark on a profile page are the same control in two places.

   The words are not lost: each carries title and aria-label. What is lost is
   painting three words where a universal mark already does the job, which is
   the reason the bar read as a paragraph with a button in it. */
.ev-icon{display:inline-flex;align-items:center;justify-content:center;
  width:42px;height:42px;padding:0;flex:none;border-radius:10px;cursor:pointer;
  background:var(--panel);color:var(--ink-soft);border:1px solid var(--line);
  transition:border-color .15s ease,color .15s ease;text-decoration:none;
  list-style:none}
.ev-icon:hover{border-color:var(--ink);color:var(--ink)}
.ev-icon svg{width:18px;height:18px;display:block}
.ev-icon:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.ev-jump{margin:12px 0 16px}
.ev-jump .btn{padding:12px 20px;font-size:15px}
/* Scroll target clears the masthead, which is fixed. Without this the heading
   of the buy block lands under it and the jump appears to do nothing. */
#buy{scroll-margin-top:76px}
.ev-buy{border:1px solid var(--line);border-radius:12px;background:var(--panel);padding:13px 14px;margin:14px 0}
.ev-buy .btn{margin-top:2px;padding:12px 18px;font-size:15px}
/* Every label in the panel is the same small, quiet heading.
   It was not: the two buyer fields got 13px from .ev-field label while "How
   many tickets" and "Discount code" fell through to this rule with no size at
   all and rendered at the body's 17px — so a field label shouted louder than
   the ticket name above it. One size, one weight, everywhere in the panel. */
.ev-buy label{display:block;margin:0 0 5px;font-size:13px;font-weight:600;
  color:var(--ink-soft);line-height:1.35}
/* Buyer fields.

   Two separate faults fixed here, both of which made the checkout look broken
   rather than merely plain:

   1. The global text-input rule is written for the DOOR SCANNER — 20px,
      uppercase, .14em letterspacing, centred — because the one text box that
      gets typed into a hundred times a night is a ticket code. It also caught
      the buyer's name, so "First and last name" rendered as shouted spaced-out
      capitals in a box three times the height of the email below it.

   2. The email type matched NO rule at all, so it fell back to the browser's
      own white box — a 1990s field dropped in the middle of a dark panel, and
      the only white rectangle on the page.

   Fixed by giving these two fields a class with the right values, not by
   weakening the scanner's rule: a ticket code really should be big and spaced,
   and a name really should not. */
.ev-field{margin:0 0 12px}
.ev-field label{display:block;margin:0 0 5px;font-size:13px;font-weight:600;color:var(--ink-soft)}
.ev-opt{font-weight:400;color:var(--muted)}
.ev-hint{display:block;margin:6px 0 0;color:var(--muted);font-size:12.5px;line-height:1.45}
input.ev-input{display:block;width:100%;font:inherit;font-size:16px;padding:12px 14px;
  border:1px solid var(--line);border-radius:10px;background:var(--paper-2);color:var(--ink);
  letter-spacing:0;text-transform:none;text-align:left;
  /* 16px is also the floor at which iOS stops zooming the page when the field
     is focused, which on a checkout is the difference between typing and
     pinching. */
  line-height:1.3}
input.ev-input::placeholder{color:var(--muted);opacity:.75}
input.ev-input:focus{outline:2px solid var(--accent);outline-offset:-1px;border-color:transparent}
.ev-buy .row{margin:6px 0 10px;gap:9px}
.ev-buy #qty{width:74px;max-width:74px;font-size:16px;padding:9px 10px;text-align:center;
  letter-spacing:0;text-transform:none;border-radius:9px}
.ev-buy #code{font-size:15px;padding:9px 11px;letter-spacing:0;text-transform:none;border-radius:9px;
  text-align:left}
.ev-buy .dcnote{margin:2px 0 8px;font-size:12.5px}
.ev-buy .dcnote.ok{color:#2F7D4F}
.ev-buy .dcnote.bad{color:var(--warn)}
.ev-buy #codecheck{padding:9px 14px;font-size:14px;white-space:nowrap}
.ev-buy #qtynote{font-size:12.5px}
.ev-terms{display:flex;gap:9px;align-items:flex-start;margin:10px 0 8px;
  font-size:12.5px;line-height:1.5;color:var(--ink-soft)}
.ev-terms input{margin:2px 0 0;width:16px;height:16px;flex:none;
  /* Default checkboxes render as a bare white square, which is the brightest
     thing on a dark panel and reads as a broken image rather than a control.
     Tinting them to the accent keeps the native behaviour (keyboard, focus,
     screen readers) and stops them shouting. */
  accent-color:var(--accent)}
.ev-terms-age{background:var(--paper-2);border:1px solid var(--line);border-radius:9px;
  padding:9px 11px;margin:10px 0 6px}
.ev-terms-age b{color:var(--ink)}
.ev-terms a{color:var(--ink-soft);text-decoration:underline}
.ev-buy .btn[disabled]{opacity:.45;cursor:not-allowed}
.ev-age{border-left-color:var(--warn);background:rgba(201,138,18,.09)}
.ev-age .ev-refund-label{color:var(--warn)}
.ev-total{display:flex;justify-content:space-between;align-items:baseline;
  margin:8px 0 10px;padding-top:9px;border-top:1px solid var(--line);font-size:14px}
.ev-total b{font-size:19px;letter-spacing:-.02em;font-variant-numeric:tabular-nums}

/* ---------- manage an event ----------
   Cancelling is not reversible in the way postponing is: it stops sales and
   starts refund conversations. It gets its own page, its own colour, and a
   typed confirmation, because confirm() is dismissible and browsers suppress
   it after a few uses. */
.mg-sec{border:1px solid var(--line);border-radius:14px;padding:18px 20px;margin:14px 0;background:var(--panel)}
.mg-sec h2{margin:0 0 6px}
.mg-sec.crit{border-color:#B7261A;background:var(--accent-soft)}
.mg-sec.warn{border-color:#C98A12;background:rgba(201,138,18,.08)}
.btn.crit{background:#B7261A}

/* ---------- door: name lookup and door sales ----------
   Both are <details> so they cost no screen height until needed. At a door the
   code box must stay the biggest thing on the glass; a permanently-open second
   form pushes the thing used fifty times a night below the fold. */
.door-name,.door-sell{margin:16px 0 0;border:1px solid var(--line);border-radius:12px;
  background:var(--panel);overflow:hidden}
.door-name>summary,.door-sell>summary{padding:13px 16px;cursor:pointer;list-style:none;
  font-weight:600;font-size:14.5px}
.door-name>summary::-webkit-details-marker,
.door-sell>summary::-webkit-details-marker{display:none}
.door-name>summary::after,.door-sell>summary::after{content:"+";float:right;color:var(--muted);
  font-weight:400;font-size:18px;line-height:1}
.door-name[open]>summary::after,.door-sell[open]>summary::after{content:"\2212"}
.door-name-body,.door-sell-body{padding:0 16px 16px}
.door-name input,.door-sell input{width:100%;font:inherit;font-size:16px;padding:11px 13px;
  border:1px solid var(--line);border-radius:10px;background:var(--paper);color:var(--ink)}
.door-sell label{display:block;margin:10px 0 4px}
.door-nameres{margin-top:10px;display:grid;gap:8px}
.door-hit{display:flex;align-items:center;justify-content:space-between;gap:10px;
  border:1px solid var(--line);border-radius:10px;padding:11px 13px;background:var(--paper)}
.door-hit .nm{font-weight:650;font-size:15px}
.door-hit .cd{font-family:ui-monospace,'DejaVu Sans Mono',monospace;font-size:12px;
  color:var(--muted);letter-spacing:1px}
.door-hit .btn{font-size:13px;padding:8px 13px;border-radius:8px}
.door-nameres .none{color:var(--muted);font-size:13.5px;padding:4px 2px}
#sellresult{margin-top:12px;font-size:14px}
#sellresult.ok{color:var(--ok);font-weight:650}
#sellresult.bad{color:var(--accent);font-weight:650}


/* ---------- the door sheet ----------
   A printed fallback for a phone that died, a scanner that will not focus, or
   staff who are temporary. Deliberately a SHEET and not the CSV: tickets.csv
   carries sixteen columns including price paid and purchaser email, which is
   useless on paper and a data-protection problem the moment it is left on a bar.
   So: name, code, type, a tick column. No contact details, no money.

   Three rules that only exist for print:
   1. Hide the app chrome — a sidebar down the side of page one is wasted paper.
   2. Force the light palette. A dark sheet is a toner disaster and often
      unreadable when a printer decides to dither it.
   3. Repeat the table header on every page, or a sheet of 200 rows becomes
      unreadable from page two onwards. */
.dsheet{max-width:760px}
.dsheet-head{border-bottom:2px solid var(--ink);padding-bottom:10px;margin-bottom:14px}
.dsheet-head h1{margin:0 0 4px;font-size:22px}
.dsheet-meta{font-size:13px;color:var(--muted);display:flex;gap:18px;flex-wrap:wrap;margin-top:6px}
.dsheet table{width:100%;border-collapse:collapse;margin-top:8px;font-size:14px}
.dsheet th{text-align:left;border-bottom:1.5px solid var(--ink);padding:6px 8px;font-size:11px;
  text-transform:uppercase;letter-spacing:.7px}
.dsheet td{padding:7px 8px;border-bottom:1px solid var(--line);vertical-align:top}
.dsheet .c-code{font-family:ui-monospace,'DejaVu Sans Mono',monospace;letter-spacing:1.5px;white-space:nowrap}
.dsheet .c-tick{width:34px;border:1.5px solid var(--ink);height:20px}
.dsheet .c-void{width:56px}
.dsheet .voided td{opacity:.45;text-decoration:line-through}
.dsheet-note{font-size:12px;color:var(--muted);margin-top:14px;line-height:1.5}
.dsheet .btn.small{font-size:11.5px;padding:5px 9px;border-radius:7px}

@media print{
  .topbar,.mbar,.snav,.appbody>.crumb,.dsheet .c-void,.dsheet-actions,footer,.dsheet-note .noprint{display:none !important}
  html,body{background:#fff !important;color:#000 !important}
  .app,.appbody{display:block !important;margin:0 !important;padding:0 !important;max-width:none !important}
  .dsheet{max-width:none}
  .dsheet th,.dsheet td{border-color:#000 !important}
  .dsheet th{background:#fff !important;color:#000 !important}
  .dsheet .c-tick{border-color:#000 !important}
  a{color:#000 !important;text-decoration:none !important}
  thead{display:table-header-group}
  tr{page-break-inside:avoid}
  @page{margin:14mm}
}
.btn.crit:hover{background:#981F14}
.btn.warn{background:#B07808}
.mg-confirm{display:grid;gap:8px;margin:12px 0 0;max-width:420px}
.mg-confirm label{font-size:13px;font-weight:600;color:var(--ink-soft)}
.mg-confirm input{width:100%;font:inherit;font-size:15px;padding:11px 13px;border:1px solid var(--line);
  border-radius:10px;background:var(--panel);color:var(--ink);text-transform:none;letter-spacing:0;text-align:left}
.plans{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:1px;
  background:var(--line);border:1px solid var(--line);border-radius:14px;overflow:hidden;margin-top:24px}
.plan{background:var(--paper);padding:22px 20px}
.plan.current{background:var(--paper-2)}
.plan-name{font-size:13px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.plan-price{font-size:30px;font-weight:700;letter-spacing:-.03em;margin-top:8px}
.plan-price small{font-size:14px;font-weight:500;color:var(--muted);letter-spacing:0}
.plan-tickets{font-size:14px;color:var(--ink-soft);margin:6px 0 16px}
a{color:var(--accent)}
/* ---------- dashboard figures ---------- */
.kpis{display:grid;grid-template-columns:repeat(3,1fr);gap:1px;background:var(--line);
  border:1px solid var(--line);border-radius:14px;overflow:hidden;margin:22px 0 16px}
.kpi{background:var(--paper-2);padding:16px 18px}
.k-n{font-size:27px;font-weight:700;letter-spacing:-.03em;font-variant-numeric:tabular-nums}
.k-l{font-size:12px;text-transform:uppercase;letter-spacing:.1em;color:var(--muted);margin-top:3px}
.allowance{border:1px solid var(--line);border-radius:14px;padding:16px 18px;margin:0 0 26px;background:var(--panel)}
.allowance.over{border-color:var(--accent);background:var(--accent-soft)}
.al-top{display:flex;justify-content:space-between;align-items:baseline;gap:12px;flex-wrap:wrap;margin-bottom:10px}
.al-label{font-size:12px;text-transform:uppercase;letter-spacing:.1em;color:var(--muted);font-weight:700}
.al-count{font-size:14.5px;color:var(--ink-soft)}
.al-count b{font-variant-numeric:tabular-nums}
.al-foot{font-size:13.5px;color:var(--muted);margin-top:9px}
.allowance.over .al-foot{color:var(--warn)}
/* ---------- install prompt ---------- */
.installbar{display:none;align-items:center;justify-content:space-between;gap:12px;
  background:var(--band);color:var(--band-ink);border-radius:12px;padding:13px 16px;margin:0 0 16px}
.installbar.show{display:flex}
.ib-text{font-size:14.5px;font-weight:600;color:var(--band-ink)}
.ib-btn{background:var(--accent);color:#fff;border:0;border-radius:var(--r-ctl);padding:9px 16px;
  font:inherit;font-size:14px;font-weight:650;cursor:pointer;white-space:nowrap}
.ib-btn:active{transform:translateY(1px)}
.iossteps{display:none;background:var(--panel);border:1px solid var(--line);border-radius:12px;
  padding:14px 16px;margin:0 0 16px;font-size:14px;color:var(--ink-soft);line-height:1.55}
.iossteps.show{display:block}
.iossteps b{color:var(--ink)}
/* ---------- camera ---------- */
#camwrap{margin:0 0 4px}
.camview{display:none;position:relative;border-radius:14px;overflow:hidden;background:var(--band);
  aspect-ratio:1/1;margin-top:12px}
.camview.on{display:block}
.camview video{width:100%;height:100%;object-fit:cover;display:block}
.camframe{position:absolute;inset:16%;border:2.5px solid rgba(255,255,255,.85);
  border-radius:14px;pointer-events:none;box-shadow:0 0 0 9999px rgba(0,0,0,.28)}
.camstop{position:absolute;left:50%;transform:translateX(-50%);bottom:14px;
  background:rgba(13,14,16,.82);color:#fff;border:0;border-radius:var(--r-btn);
  padding:11px 20px;font:inherit;font-size:15px;font-weight:600;cursor:pointer}
.camnote{font-size:13.5px;color:var(--muted);margin:10px 0 0}
.camnote.warn{color:var(--warn)}
.or{text-align:center;margin:20px 0 12px;position:relative}
.or::before{content:"";position:absolute;left:0;right:0;top:50%;border-top:1px solid var(--line)}
.or span{position:relative;background:var(--paper);padding:0 12px;font-size:12.5px;
  text-transform:uppercase;letter-spacing:.1em;color:var(--muted)}
.ot-qr{display:flex;justify-content:center;padding:6px 0 8px}
.ot-qr svg{width:176px;height:176px;display:block;border-radius:8px;background:#fff}
.ot-done{background:var(--panel);border:1px solid var(--line);border-radius:12px;
  padding:11px 14px;margin:12px 0;font-size:14px;line-height:1.5}
.ot-where{margin:16px 0 0;padding-left:20px;font-size:14px;line-height:1.6;color:var(--ink-soft)}
.ot-where li{margin:5px 0}
/* The two things a buyer can do about a ticket that did not arrive: keep a
   copy, or fix the address. Kept quiet — the QR is the point of the page and
   these must not compete with it. */
.ot-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:18px 0 0;
  padding-top:16px;border-top:1px solid var(--line)}
.ot-actions-note{font-size:12.5px;color:var(--muted)}
.ot-resent{font-size:13.5px;margin:10px 0 0}
.ot-resent.ok{color:var(--ok)}
.ot-resent.bad{color:var(--accent)}
.ot-resend{margin:14px 0 0;border:1px solid var(--line);border-radius:12px;
  background:var(--panel);overflow:hidden}
.ot-resend>summary{padding:12px 15px;cursor:pointer;list-style:none;font-weight:600;font-size:14px}
.ot-resend>summary::-webkit-details-marker{display:none}
.ot-resend>summary::after{content:"+";float:right;color:var(--muted);font-weight:400;font-size:17px;line-height:1}
.ot-resend[open]>summary::after{content:"\2212"}
.ot-resend-body{padding:0 15px 15px}
.ot-resend label{display:block;margin:0 0 4px}
.ot-resend .row{display:flex;gap:9px;align-items:flex-start}
.ot-resend input{flex:1;min-width:0;font:inherit;font-size:15px;padding:10px 12px;
  border:1px solid var(--line);border-radius:9px;background:var(--paper);color:var(--ink)}
.order-ticket{background:var(--panel);border:1px solid var(--line);border-radius:14px;
  padding:22px 20px;margin:12px 0;text-align:center}
.ot-code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:26px;
  letter-spacing:.14em;font-weight:600;word-break:break-all;-webkit-user-select:all;user-select:all}
.ot-sub{font-size:13px;color:var(--muted);margin-top:6px}
/* Buyer ticket cards. Same ticket truth as the order page, but listed with the
   night they belong to, because "which code is for which gig" is the question. */
.tk{background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:16px 18px;margin:12px 0}
.tk-off{opacity:.62}
/* The code is tappable rather than always-visible. A wall of QR squares down a
   list of ten tickets is unreadable, and the door mostly needs the code typed or
   shown large — but a phone at a scanner needs the square. Folding it means the
   list stays scannable and the QR is one tap away, with no JavaScript. */
/* Folding the transfer form keeps a list of ten tickets readable. It is a rare
   action, and a row of email boxes under every ticket would dominate the page. */
.tk-pass{margin-top:10px;border-top:1px solid var(--line);padding-top:10px}
.tk-pass summary{cursor:pointer;font-size:12.5px;color:var(--muted);list-style:none}
.tk-pass summary::-webkit-details-marker{display:none}
.tk-pass summary:hover{color:var(--accent)}
.tk-pass-form{display:grid;gap:8px;margin-top:10px;max-width:360px}
.tk-pass-form label{margin:0}
.tk-pass-form input{width:100%;font:inherit;font-size:15px;padding:10px 12px;
  border:1px solid var(--line);border-radius:10px;background:var(--panel);color:var(--ink);
  text-transform:none;letter-spacing:0;text-align:left}
.tk-pass-form .btn{margin:0;padding:11px 18px;font-size:14px;justify-self:start}
.tk-pass-form .hint{margin:0}
.tk-qr{display:block;margin-top:10px}
.tk-qr summary{list-style:none;cursor:pointer;display:block}
.tk-qr summary::-webkit-details-marker{display:none}
.tk-qr-hint{display:block;font-size:11.5px;color:var(--muted);margin-top:2px}
.tk-qr[open] .tk-qr-hint{display:none}
.tk-qr-body{margin-top:10px;background:#fff;border:1px solid var(--line);
  border-radius:12px;padding:12px;display:inline-block}
.tk-qr-body svg{display:block;width:190px;height:190px}
.tk-top{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}
.tk-title{font-size:16.5px;font-weight:700;line-height:1.3}
.tk-title a{color:inherit}
.tk-meta{font-size:13px;color:var(--muted);margin-top:3px}
.tk-note{font-size:12.5px;color:var(--accent);margin-top:4px;font-weight:600}
.tk-age{color:var(--muted);font-weight:500}
/* One group per event, so four tickets to one night are one row until asked. */
.tkgroup{margin:12px 0;border:1px solid var(--line);border-radius:14px;
  background:var(--panel);overflow:hidden}
.tkgroup>summary{cursor:pointer;list-style:none;padding:13px 16px;
  display:grid;grid-template-columns:1fr auto;gap:2px 14px;align-items:baseline}
.tkgroup>summary::-webkit-details-marker{display:none}
.tkgroup>summary::after{content:"+";grid-column:2;grid-row:1;color:var(--muted);
  font-size:18px;line-height:1;justify-self:end}
.tkgroup[open]>summary::after{content:"\2212"}
.tkgroup[open]>summary{border-bottom:1px solid var(--line)}
.tkg-title{font-size:16px;font-weight:700;letter-spacing:-.015em}
.tkg-title a{color:var(--ink);text-decoration:underline;
  text-decoration-color:var(--line);text-underline-offset:3px}
.tkg-meta{grid-column:1;font-size:12.5px;color:var(--muted)}
.tkg-count{grid-column:1;font-size:12px;color:var(--muted);margin-top:2px}
.tkg-body{padding:12px 14px 4px}
.tkg-body .tk{margin:0 0 10px}
/* An open transfer hides the code on both sides. With static codes the
   sender's saved QR cannot be revoked, so the honest move is to stop painting
   a new one and say why rather than leave a scannable code on screen. */
.tk-pending{border-color:var(--line);background:var(--paper-2)}
.tk-nocode{font-size:12.5px;color:var(--muted);padding:9px 0 3px;font-style:italic}
.tk-transfer{margin-top:10px;padding:11px 13px;border:1px solid var(--line);
  border-radius:10px;background:var(--panel)}
.tk-transfer-t{font-size:13.5px;font-weight:650;margin-bottom:4px}
.tk-transfer-p{margin:0 0 9px;font-size:12.5px;line-height:1.55;color:var(--muted)}
.tk-transfer form{margin:0}
.tk-transfer .btn{padding:9px 14px;font-size:13.5px}
.tk-state{font-size:10.5px;letter-spacing:.08em;text-transform:uppercase;font-weight:700;
  color:var(--muted);border:1px solid var(--line);border-radius:var(--r-badge);padding:3px 9px;white-space:nowrap}
.tk-foot{display:flex;gap:12px;flex-wrap:wrap;font-size:12.5px;color:var(--ink-soft);margin-top:10px}
/* The price is wullit orange, and a free one is the same green the event page
   uses for a free ticket. Colour alone would not carry it, but here it is the
   third cue: the word "Free" says it, the green agrees with every other page,
   and a paid price in the accent reads as the number to look at rather than as
   one grey fact among five. */
.tk-price{font-weight:700;color:var(--accent);font-variant-numeric:tabular-nums}
.tk-price.free{color:var(--ok)}
.tk-price .muted{font-weight:500}
/* Quiet by design: the QR is the ticket, this is the backup. Pushed to the right
   of the foot row so it never competes with the price or the date. */
.tk-dl{margin-left:auto;color:var(--ink-soft);text-decoration:underline;font-weight:600}
.tk-dl:hover{color:var(--ink)}
/* A room that exists but has not admitted them yet. Deliberately not a link and
   not muted into invisibility: it says what it is waiting for. Dashed underline
   is the one affordance that reads as "there, not yet" without a second colour. */
.tk-chat-soon{color:var(--muted);text-decoration:underline dashed;cursor:default}
.tk-chat-soon:hover{color:var(--muted)}
/* The event page's pointer at the room, for a holder who is not signed in yet
   or has not been scanned in. Same grammar as the ticket card: a statement of
   what opens it, not a promise that it is open. */
.ev-chat-note{display:block;margin:14px 0 0;padding:12px 14px;border:1px solid var(--line);
  border-radius:11px;background:var(--panel);font-size:13.5px;line-height:1.5;color:var(--ink-soft)}
.ev-chat-note a{color:var(--ink);font-weight:600}
/* Send-on-WhatsApp. Shares the EVENT page, never the ticket code.
   A wa.me link with a code in it would be a forwarded ticket — the exact hole
   the re-entry design closed — and it would put a live barcode into a group
   chat. What a buyer actually wants to say is "come with me", so that is what
   this sends. --ok rather than the brand accent because WhatsApp is a second
   surface, not a wullit action. */
.tk-share{margin-top:12px;padding-top:12px;border-top:1px solid var(--line);
  display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.tk-wa{display:inline-flex;align-items:center;gap:7px;font-size:13.5px;font-weight:600;
  color:var(--ok);border:1px solid var(--line);border-radius:8px;padding:9px 14px;
  text-decoration:none;transition:.15s}
.tk-wa:hover{border-color:var(--ok)}
.tk-share-note{font-size:12px;color:var(--muted)}
.tk{background:var(--panel)}
.metric-bar{display:inline-block;width:74px;height:7px;border-radius:99px;background:#2A2D32;
  overflow:hidden;vertical-align:middle}
.metric-bar.wide{display:block;width:100%;height:8px}
.metric-bar i{display:block;height:100%;background:var(--accent);border-radius:99px}
.metric-pct{font-size:12.5px;color:var(--muted);font-variant-numeric:tabular-nums;margin-left:5px}
td.sell{white-space:nowrap}

/* Revenue by event. Horizontal bars, not vertical: night names are long and a
   vertical axis would either rotate them or truncate them to nothing. Pure
   CSS bars rather than a chart library, for the same reason as everything else
   here — it has to render on a bad connection, and a 200KB charting library to
   draw eight rectangles is a bad trade. */
/* Columns rather than rows, matching the chart on wullit.com: the same
   proportions, the same quiet track behind each bar, the same label underneath.
   A column chart reads as "which night earned most" at a glance; a set of
   horizontal bars reads as a table with colour on it. */
.chart{margin:14px 0 4px;border:1px solid var(--line);border-radius:14px;
  background:var(--panel);padding:18px 18px 14px}
/* Columns were stretching to fill the panel: flex:1 1 0 across a ~900px
   dashboard gave three bars ~280px each at 150px tall, i.e. squat rectangles
   that read as blocks rather than columns. Capping the column width and giving
   the track more height restores the aspect ratio, and three bars now sit at a
   natural size in the middle instead of being pulled apart. */
/* Compact: eight options, so padding is tight and the row scrolls sideways on a
   phone rather than wrapping into three lines that push the chart down. */
/* Itemisation is opt-OUT of sight: collapsed by default, so an organiser who
   just wants to type £15 never meets it. */
.breakdown{margin:8px 0 0;border:1px solid var(--line);border-radius:10px;
  background:var(--paper-2);padding:0 12px}
.breakdown>summary{cursor:pointer;list-style:none;padding:9px 0;font-size:13.5px;
  font-weight:600;color:var(--ink-soft)}
.breakdown>summary::-webkit-details-marker{display:none}
.breakdown>summary::after{content:"+";float:right;color:var(--muted);font-weight:400;
  font-size:16px;line-height:1}
.breakdown[open]>summary::after{content:"\2212"}
.breakdown .row2{margin:0 0 8px}
.breakdown input{font-size:15px;padding:9px 11px;letter-spacing:0;text-transform:none;text-align:left}
.bd-total{font-size:17px;font-weight:700;padding:9px 0;font-variant-numeric:tabular-nums}
/* Ticket types. A row, not a table: three inputs and a remove button wrap
   cleanly on a phone, and the labels sit above each field. */
.ttypes{margin:14px 0 0;border:1px solid var(--line);border-radius:12px;
  background:var(--panel);padding:14px 16px}
.tt-head{display:flex;align-items:baseline;justify-content:space-between;gap:10px}
.tt-h{font-size:14.5px;font-weight:650}
.tt-note{font-size:12.5px;line-height:1.55;margin:6px 0 12px;max-width:48em}
.tt-row{display:flex;gap:8px;align-items:flex-end;flex-wrap:wrap;
  padding:10px 0;border-top:1px solid var(--line)}
.tt-row:first-child{border-top:0;padding-top:0}
.tt-f{flex:1 1 150px;min-width:0}
.tt-f label{display:block;font-size:11.5px;font-weight:600;color:var(--muted);margin-bottom:3px}
.tt-row input{width:100%;font:inherit;font-size:15px;padding:9px 11px;border-radius:9px;
  border:1px solid var(--line);background:var(--paper-2);color:var(--ink);
  letter-spacing:0;text-transform:none;text-align:left}
.tt-narrow{flex:0 1 96px}
.tt-del{flex:none;width:34px;height:38px;border:1px solid var(--line);border-radius:9px;
  background:transparent;color:var(--muted);font-size:19px;line-height:1;cursor:pointer}
.tt-del:hover{border-color:var(--accent);color:var(--accent)}
/* The description gets the whole width of the row and sits under the three
   fields it describes. Forced to a new line rather than left to wrap, because
   flex would happily put it beside the price on a wide screen and under it on a
   narrow one — the same form looking like two different forms. */
.tt-desc{flex:1 1 100%;margin-top:2px}
/* On a phone the three fields plus the remove button do not fit on one line —
   150 + 96 + 96 + 34 + gaps is 414px in a 364px column — so the button used to
   drop onto a line of its own with a gap around it, which read as a stray
   control rather than as part of the row. Rather than shrinking the fields
   until the numbers stop being readable, the row becomes two deliberate lines:
   the name alone, then price, quantity and remove together. */
@media(max-width:520px){
  .tt-row>.tt-f:not(.tt-narrow):not(.tt-desc){flex:1 1 100%}
  .tt-row>.tt-narrow{flex:1 1 0}
}
.tt-add{margin-top:10px;padding:8px 14px;font-size:13.5px}

/* The buyer's picker. Radios rendered as rows, because a select hides the
   comparison — the whole point of an early bird is that you can see it costs
   less than the general price sitting under it. */
.tt-pick{margin:0 0 12px;border:1px solid var(--line);border-radius:11px;
  background:var(--paper-2);padding:10px 12px}
.tt-pick-h{display:block;font-size:11px;letter-spacing:.08em;text-transform:uppercase;
  font-weight:700;color:var(--muted);margin-bottom:7px}
.tt-opt{display:flex;align-items:flex-start;gap:9px;padding:9px 4px;cursor:pointer;
  border-bottom:1px solid var(--line)}
/* This HAS to be repeated at higher specificity.
   The picker lives inside .ev-buy, whose label rule sets display:block at
   specificity (0,1,1) — one class plus one element — so it beat a plain
   .tt-opt at (0,1,0) and every row rendered as a stacked block. The visible
   damage was the price falling onto its own line under the name instead of
   sitting right-aligned on the row, because margin-left:auto does nothing
   outside a flex container. With a description under the name it reads as
   three stacked lines, which is how the bug finally showed itself.
  Repeating the display at (0,3,0) restores the row the rest of these rules
  were written for. */
.ev-buy .tt-pick .tt-opt{display:flex;align-items:flex-start}
.tt-opt:last-child{border-bottom:0}
.tt-opt input{margin:2px 0 0;width:16px;height:16px;flex:none;cursor:pointer}
.tt-opt-body{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1 1 auto}
.tt-opt-t{font-size:14.5px;font-weight:600;line-height:1.3}
/* Under the name, smaller and muted: it is a footnote to the choice, not a
   second choice. Alignment matters more than size here — the price column stays
   anchored right because .tt-opt-p has margin-left:auto on the flex row. */
.tt-opt-d{font-size:12px;line-height:1.4;color:var(--muted);overflow-wrap:anywhere}
.tt-opt-p{margin-left:auto;font-size:14px;font-weight:650;font-variant-numeric:tabular-nums;
  white-space:nowrap;padding-top:1px}
.tt-opt-n{font-size:11.5px;color:var(--muted);white-space:nowrap;padding-top:2px}
.tt-opt.gone{opacity:.5;cursor:not-allowed}
.tt-opt.gone .tt-opt-t,.tt-opt.gone .tt-opt-p{text-decoration:line-through}
.tt-opt-gone{font-size:10.5px;letter-spacing:.05em;text-transform:uppercase;
  font-weight:700;color:var(--muted);white-space:nowrap}
@media(max-width:420px){
  .tt-opt-n{display:none}
}
/* The profile-type choice. Two radio cards, because this is the one field on
   the page that changes what the account can DO rather than what it shows, and
   it deserves more weight than a select. */
.ptype{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:14px 0 4px}
@media(max-width:480px){.ptype{grid-template-columns:1fr}}
.handlebox{display:flex;align-items:center;justify-content:space-between;gap:12px;
  border:1px solid var(--line);border-radius:11px;background:var(--paper-2);
  padding:11px 13px;margin:4px 0 6px;flex-wrap:wrap}
.handle-l{font-size:10.5px;letter-spacing:.08em;text-transform:uppercase;font-weight:700;
  color:var(--muted)}
.handle-v{font-size:16px;font-weight:650;color:var(--ink);margin-top:2px}
.ptype-h{grid-column:1/-1;font-size:11px;letter-spacing:.08em;text-transform:uppercase;
  font-weight:700;color:var(--muted);margin-bottom:2px}
.ptype-opt{display:flex;gap:9px;align-items:flex-start;border:1px solid var(--line);
  border-radius:11px;background:var(--panel);padding:11px 13px;cursor:pointer;
  font-size:14px;line-height:1.4}
.ptype-opt:hover{border-color:var(--ink)}
.ptype-opt.on{border-color:var(--ink);background:var(--paper-2)}
.ptype-opt input{margin:3px 0 0;width:16px;height:16px;flex:none}
.ptype-opt small{color:var(--muted);font-size:12.5px;line-height:1.45}
.ptype-opt.locked{opacity:.55}
.ptype-opt.locked input{cursor:not-allowed}
/* What a person does. A wrap of tick-chips rather than a multi-select: a menu
   hides the options behind a click, and this list is the whole point — somebody
   who did not know "Compere" was an option would never open it. */
.rolepick-list{display:flex;flex-wrap:wrap;gap:7px;margin:2px 0 6px}
.rolepick{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--line);
  border-radius:10px;background:var(--panel);padding:7px 11px;cursor:pointer;
  font-size:13.5px;line-height:1.2;user-select:none}
.rolepick:hover{border-color:var(--ink-soft)}
.rolepick input{margin:0;width:15px;height:15px;flex:none;cursor:pointer}
.rolepick.primary{border-color:var(--ink);background:var(--paper-2);font-weight:650}
.rolepick-primary{font-style:normal;font-size:10px;letter-spacing:.06em;text-transform:uppercase;
  font-weight:700;color:var(--muted);border-left:1px solid var(--line);padding-left:6px;margin-left:1px}
/* Chips, and the dropdown that feeds them.
   A picked role is a chip you can remove; the select only ever ADDS. That split
   is what keeps the control one line tall however long the role list gets. */
.rolechip{display:inline-flex;align-items:center;gap:7px;border:1px solid var(--line);
  border-radius:10px;background:var(--panel);padding:6px 8px 6px 11px;
  font-size:13.5px;line-height:1.2}
.rolechip.primary{border-color:var(--ink);background:var(--paper-2);font-weight:650}
.rolechip-x{background:none;border:0;color:var(--muted);font:inherit;font-size:15px;
  line-height:1;cursor:pointer;padding:2px 3px;border-radius:6px}
.rolechip-x:hover{color:var(--ink);background:var(--paper-2)}
.rolechip-move{background:none;border:0;color:var(--muted);font:inherit;font-size:13px;
  line-height:1;cursor:pointer;padding:2px 2px;border-radius:6px}
.rolechip-move:hover:not(:disabled){color:var(--ink);background:var(--paper-2)}
.rolechip-move:disabled{opacity:.25;cursor:default}
.roleadd-row select{width:100%;font:inherit;font-size:15px;padding:11px 13px;
  border:1px solid var(--line);border-radius:10px;background:var(--panel);color:var(--ink);
  appearance:none;background-image:none}
/* A labelled switch, not a bare checkbox. The label is the statement being made
   ("show the events I have been to") and the box is agreement to it — putting the
   text beside a lone box makes it read as an option nobody has to think about. */
.switchrow{display:flex;gap:11px;align-items:flex-start;padding:12px 13px;margin:0 0 9px;
  border:1px solid var(--line);border-radius:11px;background:var(--paper-2);cursor:pointer}
.switchrow:hover{border-color:var(--ink-soft)}
.switchrow input{margin:3px 0 0;width:17px;height:17px;flex:none;cursor:pointer}
.switchrow span{min-width:0}
.switchrow b{font-size:14.5px;font-weight:650;display:block;line-height:1.35}
.switchrow small{display:block;color:var(--muted);font-size:12.5px;line-height:1.5;margin-top:3px}
.attlist{margin:12px 0 0;padding:13px;border:1px solid var(--line);border-radius:11px;background:var(--paper)}
.attlist-h{font-size:11px;letter-spacing:.08em;text-transform:uppercase;font-weight:700;
  color:var(--ink-soft);margin-bottom:7px}
.attrow{display:flex;gap:10px;align-items:flex-start;padding:7px 0;cursor:pointer;
  border-bottom:1px solid var(--line)}
.attrow:last-child{border-bottom:0}
.attrow input{margin:2px 0 0;width:16px;height:16px;flex:none;cursor:pointer}
.attrow b{font-size:13.5px;font-weight:600;display:block;line-height:1.35}
.attrow small{display:block;color:var(--muted);font-size:12px;line-height:1.4;margin-top:1px}

/* Settings: rows, not a form. Each row is one destination with one action, so a
   person scanning the page can find "where do I change my Nostr name" without
   reading a paragraph per option. */
.set-sec{margin:26px 0 0}
.set-h{font-size:11px;letter-spacing:.09em;text-transform:uppercase;font-weight:700;
  color:var(--ink-soft);margin:0 0 9px}
.set-list{display:flex;flex-direction:column;gap:8px}
.set-row{display:flex;align-items:center;gap:14px;padding:13px 15px;
  border:1px solid var(--line);border-radius:12px;background:var(--panel);text-decoration:none}
.set-row:hover{border-color:var(--ink-soft)}
.set-row-id{min-width:0;flex:1 1 auto}
.set-row-t{display:block;font-weight:650;font-size:14.5px;color:var(--ink);line-height:1.3}
.set-row-d{display:block;color:var(--muted);font-size:12.5px;line-height:1.5;margin-top:3px}
.set-row-d b{color:var(--ink-soft);font-weight:600}
.set-row-go{flex:none;font-size:12.5px;font-weight:650;color:var(--ink-soft);white-space:nowrap}
.set-card{border:1px solid var(--line);border-radius:12px;background:var(--panel);padding:14px 15px}
.set-kv{display:flex;gap:14px;justify-content:space-between;align-items:baseline;
  padding:6px 0;font-size:13.5px;border-bottom:1px solid var(--line)}
.set-kv:last-child{border-bottom:0}
.set-kv span{color:var(--muted)}
.set-kv b{font-weight:600;text-align:right;word-break:break-word}
.set-danger{border-color:#D8B4AE}
.set-danger .set-h{color:#A4301C}

.periods{display:flex;gap:5px;margin:14px 0 2px;overflow-x:auto;
  scrollbar-width:none;-webkit-overflow-scrolling:touch;padding-bottom:2px}
.periods::-webkit-scrollbar{display:none}
.period{font-size:11.5px;font-weight:600;color:var(--ink-soft);background:var(--panel);
  border:1px solid var(--line);border-radius:var(--r-ctl);padding:4px 9px;text-decoration:none;
  white-space:nowrap;flex:none;letter-spacing:.01em}
.period:hover{border-color:var(--ink)}
.period.on{background:var(--ink);color:var(--paper);border-color:var(--ink)}
.chart-line{padding:16px 16px 10px}
.lchart-legend{display:flex;gap:16px;flex-wrap:wrap;font-size:12px;color:var(--muted);margin-bottom:6px}
.lg{display:inline-flex;align-items:center;gap:6px}
.lg i{display:inline-block;width:14px;height:2.5px;border-radius:2px}
.lg-rev{background:var(--accent)}
.lg-cost{background:#8A8F98}
.lg-net{background:#2F7D4F}
.chart-line svg{display:block;width:100%;max-width:560px;height:auto;overflow:visible;
  margin:0 auto}
.lg-note{font-size:11px;color:var(--muted);opacity:.75;margin-left:2px}
/* Bars: same reasoning. 150px of track across a 900px panel is a strip; the
   columns are capped and the track given real height so it reads as a chart. */
.chart{padding:18px 16px 14px}
@media(max-width:560px){.chart-line svg{max-width:100%}}
.lchart-rev{stroke:var(--accent);stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.lchart-cost{stroke:#8A8F98;stroke-width:1.8;stroke-dasharray:0}
.lchart-net{stroke:#2F7D4F;stroke-width:1.8;stroke-dasharray:5 4;opacity:.9}
.lchart-grid{stroke:var(--line);stroke-width:.6;opacity:.45}
.lchart-y{font-size:10px;fill:var(--muted);text-anchor:end}
.lchart-pt{font-size:10.5px;font-weight:700;text-anchor:end}
.lchart-pt.rev{fill:var(--accent)}
.lchart-pt.cost{fill:#8A8F98}
.lchart-zero{stroke:var(--line);stroke-width:1;stroke-dasharray:3 3}
.lchart-x{font-size:9.5px;fill:var(--muted);text-anchor:middle}
.lchart-foot{margin:6px 0 0;font-size:13px;color:var(--ink-soft)}
.chart-bars{display:flex;align-items:flex-end;justify-content:center;gap:14px;
  height:309px;padding-top:16px;max-width:560px;margin:0 auto}
/* Same drawn width and height as the line chart above it, so the two panels
   are one column rather than two different shapes. */
.ch-col{max-width:88px}
.ch-col{flex:1 1 0;min-width:0;height:100%;display:flex;flex-direction:column;
  justify-content:flex-end;align-items:center;position:relative}
.ch-val{font-size:11.5px;font-weight:650;color:var(--ink-soft);font-variant-numeric:tabular-nums;
  margin-bottom:6px;white-space:nowrap}
.ch-track{flex:1 1 auto;width:100%;background:var(--paper-2);
  border-radius:5px 5px 3px 3px;display:flex;align-items:flex-end;overflow:hidden}
.ch-track i{display:block;width:100%;background:var(--accent);border-radius:5px 5px 3px 3px;
  min-height:3px}
.ch-name{font-size:10.5px;color:var(--muted);margin-top:8px;text-align:center;line-height:1.2;
  max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:500}
@media(max-width:560px){
  .chart{padding:14px 12px 10px}
  .chart-bars{height:190px;gap:8px}
  .ch-val{font-size:10px}
  .ch-name{font-size:9.5px}
}
@media(max-width:560px){
  .cbar-row{grid-template-columns:1fr auto;gap:3px 10px}
  .cbar-label{grid-column:1}
  .cbar-val{grid-column:2;grid-row:1}
  .cbar-track{grid-column:1/-1}
}
@media (max-width:560px){
  .kpis{grid-template-columns:1fr}
  .kpi{display:flex;justify-content:space-between;align-items:baseline}
  .k-l{margin-top:0}
}
.pub{display:inline-block;font-size:11px;font-weight:700;letter-spacing:.06em;
  text-transform:uppercase;color:var(--ok);border:1px solid var(--ok);
  border-radius:var(--r-badge);padding:2px 8px}
.evgroup{margin:16px 0 0;border:0}
.evgroup>summary{cursor:pointer;list-style:none;display:flex;align-items:baseline;gap:9px;
  padding:10px 0 8px;border-bottom:1px solid var(--line)}
.evgroup>summary::-webkit-details-marker{display:none}
.evgroup>summary::after{content:"+";margin-left:auto;color:var(--muted);font-size:18px;line-height:1;
  font-weight:400}
.evgroup[open]>summary::after{content:"\2212"}
.evgroup-t{font-size:15.5px;font-weight:700;letter-spacing:-.015em}
.evgroup>summary .cnt{font-size:12.5px;color:var(--muted);font-weight:500;letter-spacing:0;
  text-transform:none}
.evgroup-note{margin:9px 0 0;font-size:13px;max-width:62ch}
.past-head{margin-top:38px}
.past-head .cnt{font-size:13px;color:var(--muted);font-weight:500;letter-spacing:0;text-transform:none}
.past-table{opacity:.62}
.past-table tr.dim td{color:#4A4B4E}
.when{font-size:12.5px;color:var(--muted)}
@media (max-width:560px){.row2{grid-template-columns:1fr}}


.security{border:1px solid var(--line);border-radius:14px;padding:18px 20px;background:var(--panel)}
.security .btn.ghost{background:transparent;color:var(--ink);border:1px solid var(--line);
  font-weight:600;padding:11px 18px;margin-top:4px}
.security .btn.ghost:hover{border-color:var(--ink);background:var(--paper-2)}
.pk-row{display:flex;justify-content:space-between;align-items:center;gap:12px;
  padding:10px 0;border-bottom:1px solid var(--line);font-size:14.5px}
.pk-row:last-child{border-bottom:0;margin-bottom:10px}
.pk-row .pk-when{font-size:12.5px;color:var(--muted)}
.pk-row button{background:none;border:0;color:var(--muted);font:inherit;font-size:13px;
  cursor:pointer;text-decoration:underline;text-underline-offset:2px}
.pk-row button:hover{color:var(--accent)}

.idintro{border:1px solid var(--line);border-radius:14px;padding:16px 18px;background:var(--panel);margin:20px 0}
.idintro p{margin:0 0 10px;font-size:14.5px}
.idintro p:last-child{margin-bottom:0}
.namefield{display:flex;align-items:stretch;gap:0;margin-bottom:4px}
.namefield input{border-radius:10px 0 0 10px;border-right:0;flex:1}
.namefield .domain{display:flex;align-items:center;padding:0 14px;background:var(--paper-2);
  border:1px solid var(--line);border-radius:0 10px 10px 0;font-size:14.5px;color:var(--muted);white-space:nowrap}
.modepick{display:grid;gap:8px;margin:18px 0 10px}
.modepick > label:first-child{font-size:13px;font-weight:600;color:var(--ink-soft);margin-bottom:2px}
.radio{display:flex;gap:10px;align-items:flex-start;padding:12px 14px;border:1px solid var(--line);
  border-radius:12px;background:var(--panel);cursor:pointer;margin:0 0 8px}
/* The generic .auth input rule sets width:100%, which applies to radio and
   checkbox controls too — that made the input take the whole card and pushed
   the label text outside it. These two rules win on source order. */
.radio input[type=radio],.radio input[type=checkbox]{
  width:18px;height:18px;flex:0 0 18px;padding:0;margin:2px 0 0;border:0;background:none;
  accent-color:var(--accent);
}
.radio > span{flex:1;min-width:0}
.radio b{font-size:14.5px}
.radio small{display:block;color:var(--muted);font-size:13px;margin-top:2px;line-height:1.45}
.idcard{border:1px solid var(--line);border-radius:14px;background:var(--panel);margin:22px 0;overflow:hidden}
.idrow{display:flex;justify-content:space-between;gap:16px;padding:13px 18px;border-bottom:1px solid var(--line);font-size:14.5px}
.idrow:last-child{border-bottom:0}
.idrow span{color:var(--muted)}
.idrow b{font-weight:600}
.idpub{font-size:12px;word-break:break-all;text-align:right;-webkit-user-select:all;user-select:all}
.recoverybox{display:none}
.recoverybox.show{display:block}
.recoverycode{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:19px;
  letter-spacing:.1em;background:var(--paper-2);border:1px solid var(--line);border-radius:12px;
  padding:18px;margin:14px 0;text-align:center;word-spacing:.4em;line-height:1.6;
  -webkit-user-select:all;user-select:all}
.secretwarn{background:var(--accent-soft);border-left:3px solid var(--accent);padding:12px 16px;border-radius:0 8px 8px 0;margin:14px 0}
.hint.bad{color:var(--warn)}
.exportbox{display:none;margin-top:14px}
.exportbox.show{display:block}
.exportnsec{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:14px;
  word-break:break-all;background:var(--paper-2);border:1px solid var(--line);
  border-radius:10px;padding:14px;line-height:1.6;-webkit-user-select:all;user-select:all}


.hint.bad{color:var(--warn)}


.radio input[type=checkbox]{accent-color:var(--accent)}


.recoverybox h3{font-size:17px;margin:0 0 8px}
.recoverybox p{font-size:14px;color:var(--muted);margin:0}
.signup-choice{margin-top:20px;display:grid;gap:10px}
.choice-note{font-size:13.5px;color:var(--muted);line-height:1.55;margin-bottom:2px}
.choice-note b{display:block;color:var(--ink);font-size:14.5px;margin-bottom:3px}
.wide-link{justify-self:center;font-size:13.5px;color:var(--muted);background:none;border:0;
  cursor:pointer;text-decoration:underline;text-underline-offset:2px;padding:6px 0}
.wide-link:hover{color:var(--accent)}
.pwblock{display:none;gap:6px}
.pwblock.open{display:grid}
.pwblock label{font-size:13px;font-weight:600;color:var(--ink-soft);margin-top:8px}
.pwblock input{width:100%;font:inherit;font-size:16px;padding:12px 13px;border:1px solid var(--line);
  border-radius:10px;background:var(--panel);color:var(--ink)}
.pwblock small{color:var(--muted);font-size:12.5px}
.pwblock .btn{margin-top:12px}


/* ---------- organiser block (public pages) ---------- */
.org{display:flex;align-items:center;gap:14px;margin:0 0 22px;padding-bottom:18px;border-bottom:1px solid var(--line)}
/* The event page's organiser block, in the same shape as the venue profile:
   avatar and name on one line, marks across the full width beneath. It was a
   pill with icons crammed inside it, which looked nothing like the page it
   links to. */
.org-wide{display:block;padding-bottom:16px}
.org-top{display:flex;align-items:center;gap:14px}
.org-inner{display:flex;align-items:center;gap:12px;min-width:0}
.org-wide .org-name{font-size:17px;font-weight:700;letter-spacing:-.015em;
  color:var(--ink);text-decoration:none}
.org-wide .org-name:hover{text-decoration:underline;text-underline-offset:3px}
.org-wide .org-pic,.org-wide .org-ini{width:54px;height:54px;border-radius:10px}
.org-marks{margin:11px 0 0}
.org-marks .soc{width:30px;height:30px;padding:0;justify-content:center;border-radius:8px}
.org-marks .soc-i{width:14px;height:14px}
/* More: the ninth mark onwards, folded away. Eight fits one line at any
   realistic width; a twelfth wraps and the row stops being scannable. */
.ven-more{margin:8px 0 0}
.ven-more>summary{cursor:pointer;list-style:none;font-size:12px;font-weight:650;
  color:var(--muted);display:inline-flex;align-items:center;gap:5px}
.ven-more>summary::-webkit-details-marker{display:none}
.ven-more>summary::after{content:"+";font-weight:400;font-size:14px;line-height:1}
.ven-more[open]>summary::after{content:"\2212"}
.ven-more .ven-socials{margin-top:8px}
.org-pic{width:46px;height:46px;border-radius:8px;object-fit:cover;background:var(--paper-2);flex:none}
.org-ini{width:46px;height:46px;border-radius:8px;background:var(--paper-2);display:flex;align-items:center;justify-content:center;font-weight:700;font-size:17px;color:var(--ink-soft);flex:none}
/* A picture of a business is something people try to click. The link is subtle
   because the avatar should still read as a picture, not a button. */
.org-avlink{display:inline-flex;flex:none;border-radius:8px;line-height:0}
.org-avlink:hover .org-pic,.org-avlink:hover .org-ini{outline:2px solid var(--accent);outline-offset:2px}
.org-site{display:inline-flex;vertical-align:-2px;color:var(--ink-soft)}
.org-site:hover{color:var(--ink)}
.org-name{font-size:14.5px;font-weight:600;line-height:1.35}
.org-follow{margin-left:auto}
/* The follow control, as a glyph.
   Two states, two shapes: a plus when you do not follow, a filled accent tick
   when you do. Deliberately not a bordered pill with a word in it — "Follow" and
   "Following" differed by a suffix inside an identical box, so the only way to
   tell them apart was to read them. */
.fw{width:36px;height:36px;flex:none;display:inline-flex;align-items:center;
  justify-content:center;padding:0;border:1px solid var(--line);border-radius:10px;
  background:var(--panel);color:var(--ink-soft);cursor:pointer;transition:.14s}
.fw svg{width:17px;height:17px}
.fw:hover{border-color:var(--ink);color:var(--ink);background:var(--paper-2)}
.fw.on{background:var(--accent);border-color:var(--accent);color:#fff}
.fw.on:hover{background:var(--accent);color:#fff;opacity:.9}
.fw.busy{opacity:.5;cursor:default}
.fw:disabled{cursor:default}
.fw-out{text-decoration:none}
/* The unread count in the panel. A number, not a dot: "how much is waiting"
   is more useful at a glance than "some".

   Hidden unless it has a count, and hidden by CLASS rather than the [hidden]
   attribute: the element has to be display:inline-block when it is showing, and
   that rule beats the browser's [hidden]{display:none}. A badge that says "0"
   is worse than no badge — it is a permanent reminder of nothing. */
.snav-badge{display:none;min-width:18px;padding:1px 5px;margin-left:6px;
  border-radius:var(--r-badge);background:var(--accent);color:#fff;font-size:10.5px;
  font-weight:700;text-align:center;line-height:1.35;vertical-align:1px}
.snav-badge.on{display:inline-block}

.ibx-list{display:flex;flex-direction:column;gap:12px;margin-top:20px}
.ibx-row{display:flex;gap:16px;align-items:flex-start;flex-wrap:wrap;
  border:1px solid var(--line);border-radius:14px;padding:16px 18px;background:var(--panel)}
.ibx-what{flex:1 1 320px;min-width:0}
.ibx-line{font-size:15px;line-height:1.5;color:var(--ink)}
.ibx-sub{font-size:13px;color:var(--muted);margin-top:5px}
.ibx-sub a{color:var(--ink-soft);text-decoration:underline;text-underline-offset:2px}
.ibx-note{font-size:12.5px;line-height:1.55;color:var(--muted);margin-top:9px;max-width:46em}

/* Event chat. A transcript, not a messenger: messages are read in order and
   the newest is at the bottom, because a room is something you catch up on. */
.chat-bar{display:flex;gap:12px;align-items:center;justify-content:space-between;
  flex-wrap:wrap;font-size:12.5px;color:var(--muted)}
.chat-bar form{margin:0}
.chat-bar .btn{padding:7px 14px;font-size:13px;margin:0}
/* Not joined is a STATE, not a footnote.
   It used to be one muted sentence in the same grey as the message count, which
   is how somebody posted in a room they had not joined and never noticed. Being
   un-joined is not dangerous — you can still read and post — but it is the one
   thing on this page you might not have realised, so it gets colour, weight and
   a primary button. Joined goes the other way: quiet, because it is the normal
   state and there is nothing to say about it. */
.chat-bar.warn{border:1px solid rgba(217,146,26,.45);border-radius:10px;
  background:rgba(217,146,26,.10);padding:9px 11px}
.chat-bar.warn .chat-bar-t{color:#B8791A;font-weight:650}
.chat-bar.ok{border:1px solid var(--line);border-radius:10px;
  background:var(--paper-2);padding:8px 11px}
.chat-bar-t{display:block;line-height:1.45}
@media(prefers-color-scheme:dark){.chat-bar.warn .chat-bar-t{color:#E8B056}}
.chat-owner{display:flex;gap:12px;flex-wrap:wrap;align-items:end;margin:0 0 20px}
.chat-owner form{display:flex;gap:8px;align-items:end;margin:0}
.chat-owner label{display:block;font-size:12px;color:var(--muted);margin-bottom:4px}
.chat-owner select{font:inherit;font-size:13.5px;padding:8px 10px;border-radius:9px;
  border:1px solid var(--line);background:var(--paper-2);color:var(--ink)}

/* The room is a fixed-height column, so a long transcript scrolls INSIDE it.
   It used to grow the whole page instead: by the time a room had a screen of
   messages, the composer had been pushed off the bottom and the join bar had
   been pushed off the top. Somebody pressed Send without ever seeing that they
   had not joined. Both are pinned now — the log is the only thing that moves. */
.chat-room{display:flex;flex-direction:column;margin-top:8px;
  height:min(72vh,660px);height:min(72dvh,660px);min-height:340px;
  border:1px solid var(--line);border-radius:14px;background:var(--panel);overflow:hidden}
.chat-scroll{flex:1 1 auto;overflow-y:auto;overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;padding:12px 14px 14px}
/* The controls never scroll away. Join/notify lives here rather than above the
   log because "am I in this room" is a question you ask while typing. */
.chat-foot{flex:none;border-top:1px solid var(--line);padding:10px 14px;
  background:var(--panel-2,--panel);display:flex;flex-direction:column;gap:9px}
.chat-log{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:2px}
.chat-msg{display:flex;gap:10px;align-items:flex-start;padding:7px 26px 7px 4px;position:relative}
.chat-msg:hover .chat-del{opacity:1}
.chat-msg.mine .chat-who{color:var(--accent)}
.chat-msg.gone{opacity:.55;font-style:italic}
.chat-gone{font-size:13px;color:var(--muted)}
.chat-av{width:26px;height:26px;border-radius:50%;object-fit:cover;flex:none;margin-top:1px}
.chat-av.ini{display:flex;align-items:center;justify-content:center;background:var(--paper-2);
  border:1px solid var(--line);font-size:11px;font-weight:700;color:var(--ink-soft)}
.chat-body{min-width:0;flex:1 1 auto}
.chat-head{display:flex;gap:8px;align-items:baseline;flex-wrap:wrap}
.chat-who{font-size:13.5px;font-weight:650;color:var(--ink)}
.chat-when{font-size:11.5px;color:var(--muted)}
.chat-text{font-size:14.5px;line-height:1.5;color:var(--ink-soft);overflow-wrap:break-word}
.chat-at{color:var(--accent);font-weight:650}
/* The cross takes no width in the row: it is pinned to the corner and only
   appears while the row is under the pointer, so a message keeps the full
   measure of the card. */
.chat-del{opacity:0;transition:opacity .12s ease;margin:0;position:absolute;
  top:5px;right:3px}
.chat-msg:focus-within .chat-del{opacity:1}
/* Report sits on the byline: a quiet word after the time, revealed with the
   cross. Same rule — the control must not be shouting from every message. */
.chat-rep{font-size:11.5px;line-height:1.2;color:var(--muted);text-decoration:none;
  padding:1px 4px;border-radius:5px;opacity:0;transition:opacity .12s ease}
.chat-msg:hover .chat-rep,.chat-msg:focus-within .chat-rep{opacity:1}
.chat-rep:hover{color:var(--ink);background:var(--paper-2)}
@media (hover:none){.chat-rep,.chat-del{opacity:1}}
.chat-del button{background:none;border:0;color:var(--muted);cursor:pointer;
  font-size:16px;line-height:1;padding:2px 5px;border-radius:6px}
.chat-del button:hover{background:var(--paper-2);color:var(--ink)}
.chat-empty{color:var(--muted);font-size:14px;padding:18px 4px}
/* A refused post is not a crash: the text stays in the box and this says why.
   Silent failure was the actual bug — the message vanished with no cue. */
.chat-err{margin:0;font-size:12.5px;line-height:1.45;color:#c0392b;
  background:rgba(192,57,43,.08);border:1px solid rgba(192,57,43,.28);
  border-radius:9px;padding:8px 10px}
.chat-polls{display:flex;flex-direction:column;gap:12px;margin:0 0 18px}
.chat-poll{border:1px solid var(--line);border-radius:14px;padding:14px 16px;background:var(--panel)}
.chat-poll-q{font-size:15px;font-weight:650;color:var(--ink);margin-bottom:10px}
.chat-opt{margin:0 0 6px}
.chat-opt button{width:100%;position:relative;display:flex;align-items:center;
  justify-content:space-between;gap:10px;text-align:left;font:inherit;font-size:14px;
  padding:9px 12px;border-radius:10px;border:1px solid var(--line);
  background:var(--paper-2);color:var(--ink);cursor:pointer;overflow:hidden}
.chat-opt button:hover{border-color:var(--ink-soft)}
.chat-opt button:disabled{cursor:default;opacity:.7}
.chat-opt-bar{position:absolute;inset:0 auto 0 0;background:var(--accent);opacity:.14;pointer-events:none}
.chat-opt-label{position:relative;z-index:1}
.chat-opt-n{position:relative;z-index:1;font-size:12.5px;color:var(--muted);font-weight:650}
.chat-poll-note{font-size:12px;color:var(--muted);margin-top:6px}
.chat-pollnew{border:1px dashed var(--line);border-radius:14px;padding:12px 14px;margin:0 0 16px}
.chat-pollnew summary{cursor:pointer;font-size:13.5px;font-weight:600;color:var(--ink-soft)}
.chat-pollnew form{margin-top:12px;display:flex;flex-direction:column;gap:8px}
.chat-pollnew label{font-size:12.5px;color:var(--muted)}
.chat-pollnew input[type=text],.chat-pollnew input:not([type]),.chat-pollnew textarea{
  font:inherit;font-size:14px;padding:9px 11px;border-radius:9px;
  border:1px solid var(--line);background:var(--paper-2);color:var(--ink)}
.chat-check{display:flex;gap:8px;align-items:flex-start;font-size:12.5px;color:var(--muted)}
.chat-check input{margin-top:2px}
/* Report form. A fieldset with a border is the one place a visible box is right:
   the radios are one question, and the border is what says so. */
.rep-set{border:0;margin:0 0 14px;padding:0}
.rep-set .chat-check{margin:0 0 9px;font-size:14px;color:var(--ink-soft);align-items:center}
/* The report form's own controls. */
.repform textarea{width:100%;font:inherit;font-size:15px;padding:12px 13px;
  border:1px solid var(--line);border-radius:10px;background:var(--paper-2);
  color:var(--ink);resize:vertical;min-height:76px}
.repform label{display:block;font-size:13px;font-weight:600;color:var(--ink-soft);margin:0 0 6px}
/* Each reason is a row you can hit anywhere, same as the ticket-type picker —
   a bare 13px radio needs aiming at, and the row is the thing people mean.
   The control is drawn rather than native: this app never declares
   color-scheme: dark, so a native radio renders as a white disc on a near-black
   card and reads as a bullet, not a choice. */
.rep-set .chat-check{padding:11px 13px;border:1px solid var(--line);border-radius:11px;
  background:var(--paper-2);cursor:pointer;font-size:14.5px;color:var(--ink-soft)}
.rep-set .chat-check input[type=radio]{appearance:none;-webkit-appearance:none;
  width:18px;height:18px;flex:0 0 18px;padding:0;margin:0;border-radius:50%;
  border:1.5px solid #5A5E66;background:transparent;position:relative}
.rep-set .chat-check input[type=radio]:checked{border-color:var(--accent)}
.rep-set .chat-check input[type=radio]:checked::after{content:'';position:absolute;
  inset:3px;border-radius:50%;background:var(--accent)}
.rep-set .chat-check input[type=radio]:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.rep-set .chat-check:has(input:checked){border-color:var(--accent);color:var(--ink)}
.chat-say{display:flex;gap:10px;align-items:flex-end;margin:0}
.chat-say textarea{flex:1 1 auto;font:inherit;font-size:14.5px;padding:10px 12px;
  border-radius:11px;border:1px solid var(--line);background:var(--paper-2);
  color:var(--ink);resize:vertical;min-height:46px}
.chat-readonly{border:1px solid var(--line);border-radius:11px;padding:12px 14px;
  background:var(--panel);margin:0}
/* Direct messages. Deliberately plainer than the room: a thread is two people,
   so an avatar wall and a roster of names would be decoration around one
   conversation. */
.dm-list{display:flex;flex-direction:column;gap:10px;margin-top:20px}
.dm-row{display:flex;gap:14px;align-items:flex-start;padding:14px 16px;
  border:1px solid var(--line);border-radius:13px;background:var(--panel);
  text-decoration:none;color:inherit;flex-wrap:wrap}
.dm-row:hover{border-color:var(--ink-soft)}
.dm-row.unread{border-color:var(--accent);background:rgba(225,68,43,.04)}
.dm-av{width:38px;height:38px;border-radius:50%;object-fit:cover;flex:none}
.dm-av.ini{display:flex;align-items:center;justify-content:center;
  background:var(--paper-2);border:1px solid var(--line);font-size:15px;
  font-weight:700;color:var(--ink-soft)}
.dm-what{flex:1 1 260px;min-width:0}
.dm-who{font-size:15px;font-weight:650;color:var(--ink);line-height:1.4}
.dm-who .dm-n{display:inline-block;min-width:19px;text-align:center;
  font-size:11.5px;font-weight:750;line-height:19px;border-radius:10px;
  background:var(--accent);color:#fff;margin-left:8px;vertical-align:1px}
.dm-sub{font-size:12.5px;color:var(--muted);margin-top:4px}
.dm-last{font-size:13.5px;color:var(--ink-soft);margin-top:7px;line-height:1.45;
  overflow:hidden;text-overflow:ellipsis;display:-webkit-box;
  -webkit-line-clamp:2;-webkit-box-orient:vertical}
.dm-shut{font-size:12px;color:var(--muted);margin-top:6px;font-style:italic}
.dm-head{border:1px solid var(--line);border-radius:14px;padding:14px 16px;
  background:var(--panel);margin:0 0 14px}
.dm-head-t{font-size:15.5px;font-weight:650;color:var(--ink)}
.dm-head-s{font-size:12.5px;color:var(--muted);margin-top:4px;line-height:1.5}
.dm-tools{display:flex;gap:10px;flex-wrap:wrap;margin:12px 0 0}
.dm-tools form{margin:0}
.dm-tools .btn{padding:6px 12px;font-size:12.5px;margin:0}
.dm-who-row{display:flex;gap:10px;align-items:center;margin:0 0 12px}
.dm-who-row .dm-av{width:30px;height:30px}
.dm-note{margin:0 0 14px;font-size:13px;line-height:1.5;color:var(--muted)}
.dm-cands{display:flex;flex-direction:column;gap:8px;margin:14px 0 0}
.dm-cand{display:flex;gap:12px;align-items:center;justify-content:space-between;
  padding:10px 12px;border:1px solid var(--line);border-radius:10px;
  background:var(--panel)}
.dm-cand-w{min-width:0;flex:1 1 auto}
.dm-cand-n{font-size:14px;color:var(--ink)}
.dm-cand-s{font-size:12px;color:var(--muted);margin-top:2px}
.dm-cand form{margin:0}
.dm-cand .btn{padding:6px 12px;font-size:12.5px;margin:0}
/* A form button styled as the "Download" link beside it, so the ticket card
   keeps one row of actions instead of growing a second design. */
.tk-msg{display:inline;margin:0}
.tk-msgbtn{background:none;border:0;padding:0;font:inherit;cursor:pointer}
@media(max-width:520px){
  .chat-rep,.chat-del{opacity:1}
  .chat-say{flex-direction:column;align-items:stretch}
  /* Shallower on a phone: the keyboard takes half the screen, and a column
     taller than what is left is the same bug in a different shape. */
  .chat-room{height:min(62vh,560px);height:min(62dvh,560px);min-height:280px}
}
.ibx-acts{display:flex;gap:8px;flex:none;align-items:center}
.ibx-acts .btn{padding:9px 16px;font-size:14px;margin:0}
.ibx-acts form{margin:0}
.ibx-past{margin-top:28px;border-top:1px solid var(--line);padding-top:14px}
.ibx-past>summary{cursor:pointer;list-style:none;font-size:14px;font-weight:650;color:var(--ink-soft)}
.ibx-past>summary::-webkit-details-marker{display:none}
.ibx-done-list{list-style:none;margin:12px 0 0;padding:0}
.ibx-done{display:flex;gap:10px;align-items:baseline;font-size:13.5px;color:var(--ink-soft);
  padding:7px 0;border-bottom:1px solid var(--line)}
.ibx-done:last-child{border-bottom:0}
/* The night, as a link. Underlined rather than coloured-only: the surrounding
   line is already muted grey, and a colour alone at this size reads as emphasis
   rather than something you can press. */
.ibx-done a{color:var(--ink-soft);text-decoration:underline;
  text-underline-offset:2px;text-decoration-thickness:1px}
.ibx-done a:hover{color:var(--ink)}
/* "Change my answer" — quiet enough not to compete with the decision, present
   enough to be findable. A full button here would make an archived row look like
   it needed attention; plain text would bury the only way to undo a mis-tap. */
.ibx-change{margin:0 0 0 auto;flex:none}
.ibx-change-btn{background:none;border:0;padding:0;cursor:pointer;font:inherit;
  font-size:12px;color:var(--muted);text-decoration:underline;
  text-underline-offset:2px;text-decoration-thickness:1px}
.ibx-change-btn:hover{color:var(--ink)}
.ibx-change-btn:focus-visible{outline:2px solid var(--accent);outline-offset:2px;
  border-radius:3px}
/* A count beside a tab label. Small and quiet: it is a hint that there is
   something in there, not a notification badge demanding a tap. */
.btab .cnt{display:inline-block;min-width:17px;padding:1px 5px;border-radius:var(--r-badge);
  background:var(--paper-2);color:var(--muted);font-size:11px;font-weight:700;
  text-align:center;vertical-align:1px}
.btab.on .cnt{background:var(--ink);color:var(--paper)}
/* A room row. The title is the link, because the whole row is a doorway and a
   separate "open" control beside it would be two affordances for one action. */
.ibx-room .ibx-line a{color:inherit;text-decoration:none}
.ibx-room .ibx-line a:hover{text-decoration:underline;text-underline-offset:2px}
.ibx-room .ibx-acts .btn{padding:9px 18px;font-size:14px}
.ibx-state{margin-left:auto;font-size:10.5px;letter-spacing:.05em;text-transform:uppercase;
  font-weight:700;color:var(--muted)}
.org-id{min-width:0}
.org-note a{color:inherit;text-decoration:underline;text-underline-offset:2px}
.org-badge{display:inline-flex;align-items:center;gap:5px;font-size:11px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:#2F7D4F;background:rgba(47,125,79,.1);padding:3px 8px;border-radius:var(--r-badge);margin-left:7px;vertical-align:1px}

/* ---------- posts ---------- */
.postlist{display:grid;gap:14px;margin-top:16px}
.post{border:1px solid var(--line);border-radius:14px;padding:16px 18px;background:var(--panel)}
.post-head{display:flex;align-items:center;gap:11px;margin-bottom:11px}
.post-pic{width:34px;height:34px;border-radius:7px;object-fit:cover;background:var(--paper-2);flex:none}
.post-ini{width:34px;height:34px;border-radius:7px;background:var(--paper-2);display:flex;align-items:center;justify-content:center;font-weight:700;font-size:14px;color:var(--ink-soft);flex:none}
.post-name{font-size:14px;font-weight:600;line-height:1.3}
.post-when{font-size:12px;color:var(--muted);margin-top:2px}
.post-body{font-size:15.5px;line-height:1.6;white-space:pre-wrap;word-break:break-word}
.post .linkbtn{margin-top:12px;font-size:12.5px}
.pstatus{font-weight:600}
.pstatus.live{color:#2F7D4F}
.pstatus.draft{color:var(--muted)}
.pstatus.gone{color:var(--warn)}
/* Latest-post block on the public event page */
.orgpost{border:1px solid var(--line);border-left:3px solid var(--accent);border-radius:12px;padding:14px 16px;background:var(--panel);margin:0 0 22px}
.orgpost-when{font-size:11.5px;letter-spacing:.05em;text-transform:uppercase;color:var(--muted);font-weight:700;margin-bottom:7px}
.orgpost-body{font-size:15px;line-height:1.6;white-space:pre-wrap;word-break:break-word}

/* ---------- public venue page ---------- */
/* No banner. A 150px cover sat between the reader and the only facts that
   matter — who this is, and what they are putting on — and it pushed the first
   night below the fold on a phone. The picture is the identity here, so it gets
   the space the banner was taking.
   
   The row is: picture, name and handle, then the actions. On a narrow screen the
   actions drop below rather than squeezing the name. */
.ven-head-wide{display:block;margin:0 0 10px}
/* A banner, done differently from the version that was removed.

   That one was a 150–190px cover STACKED ABOVE the identity block, so the reader
   met a photograph, then a picture, then a name, then the first night — three
   layers before anything useful, and the first night fell off a phone screen.

   Here the band is a BACKDROP the identity row sits inside, not a block above it.
   The row's own avatar already occupied ~84px; the band adds only the strip the
   avatar overlaps, so the whole head grows by roughly fifty pixels rather than
   two hundred. Nothing is stacked, so nothing is pushed.

   Two things keep it from looking cheap, which is what sank the first attempt:
   the band is capped short and rounded so it reads as a plate rather than a
   letterbox, and a scrim fades its bottom into the page colour — so the name
   always sits on solid background and stays legible over a busy flyer. */
.ven-band-wide{position:relative;border-radius:16px;overflow:hidden;
  border:1px solid var(--line);background:var(--paper-2);margin:0 0 14px}
/* The band is a link to the banner, same contract as the avatar: an <a> so it
   works with scripts off, and the shared lightbox turns the click into an
   in-place enlargement. It sits UNDER the identity row in z-order, which is
   what makes that safe — see pointer-events on the row below. */
.ven-band{position:absolute;top:0;left:0;right:0;height:116px;display:block;
  z-index:1;cursor:zoom-in;background-size:cover;background-position:50% 45%;
  background-repeat:no-repeat}
.ven-band:hover{filter:brightness(1.06)}
.ven-band:focus-visible{outline:2px solid var(--accent);outline-offset:-3px}
/* The scrim. Not decoration: without it a light banner turns the name into
   unreadable grey-on-grey, which is one of the ways the old cover failed. */
/* The scrim, reduced to what it still has to do.

   It used to run to 50% black at its midpoint, because the NAME sat on the band
   and had to stay legible over a bright flyer. The name now sits below the band,
   so that job is gone — and the old value had a visible cost: it greyed whatever
   artwork a venue uploaded, which is why a white logo on a dark banner came out
   looking like a watermark. What remains is a gentle fade over the bottom
   quarter so the band's edge melts into the page instead of ending on a hard
   line. */
.ven-band::after{content:'';position:absolute;inset:0;
  background:linear-gradient(180deg,rgba(18,19,21,0) 0%,rgba(18,19,21,.06) 62%,rgba(18,19,21,.55) 100%)}
/* Where the TEXT starts matters, not where the band ends.

   Bottom-aligning the identity block with the avatar does not work: the name is
   the FIRST line of a three-line block, so bottom-alignment pins its bottom and
   floats the name up by the block's own height — straight onto the photograph.
   So each element is told where to start rather than told to agree with its
   neighbour about where to finish.

   The row is transparent to clicks so a tap on the empty part of the band
   reaches the band link underneath; each child re-enables pointer events for
   itself. Without this the row's full-width padding box would swallow every
   tap on the banner. */
.ven-band-wide .ven-head-row{position:relative;z-index:2;pointer-events:none;
  padding:124px 16px 14px;align-items:flex-start}
.ven-band-wide .ven-head-row>*{pointer-events:auto}
/* The actions sit on the NAME's line, not the handle's.

   This row used to be align-items:flex-end, which put the share and follow
   buttons on the same baseline as the @handle — so a profile with a banner put
   its buttons one line lower than a profile without one. Two profiles, same
   page, buttons in two different places; Red Chapel (no banner) read correctly
   and Travis (with one) did not.

   flex-start aligns every child to the top of the row, which is where the name
   starts, so the buttons line up with the name on both. The avatar is 84px and
   the identity block is name plus handle, so top-aligning them is also what
   keeps the picture's top edge with the name rather than centred against it. */
.ven-band-wide .ven-head-row>.ven-avlink,
.ven-band-wide .ven-head-row>.ven-avatar{margin-top:0}
/* The actions sit on the RIGHT edge of the row, on that same line. */
.ven-band-wide .ven-head-actions{padding-top:0;margin-left:auto}
/* The ring is the whole trick: a light flyer and a light logo merge into one
   blob without a border in the page colour between them. */
.ven-band-wide .ven-head-row .ven-avatar,.ven-band-wide .ven-head-row .ven-avatar.ini{
  border:3px solid var(--paper);box-shadow:0 2px 10px rgba(0,0,0,.35)}
.ven-head-row{display:flex;align-items:flex-start;gap:12px;flex-wrap:wrap}
.ven-head-row .ven-avatar,.ven-head-row .ven-avatar.ini{
  /* Two lines again (name, @handle) now the role left the block, so this is back
     to the size that suited two. It was 90 for three lines; 90 against a 62px
     block would hang a third of the square below the text and pull the row's
     baseline down with it. */
  width:84px;height:84px;border-radius:14px}
.ven-head-row .ven-avatar.ini{font-size:30px}
/* The actions sit with the name, not pinned to the far edge.
   margin-left:auto pushed share/follow across the whole row, which read as
   "spread out" once the cover banner was removed and the row stopped having a
   natural right-hand boundary. Left to flow beside the name now, and
   .ven-id-wide no longer stretches to fill the gap. */
/* One row of buttons, back to normal height.

   This was a stretched column so the follow could be pinned to the role pill's
   line. The role lives beside the social marks now, so there is nothing to pin
   to and the column only cost the identity block width it did not need. */
.ven-head-actions{display:flex;align-items:center;gap:6px;
  margin-left:auto;margin-right:-8px;padding-top:2px}
/* Both controls in this row are the same square and the same glyph, so the
   row reads as one control group. .fw is its own component (an <a> when
   signed out, a <button> when signed in) and carried its own 36px/17px; that
   is kept, but stated here too so a change to one cannot drift from the other. */
.ven-icon-row{display:flex;align-items:center;gap:6px}
.ven-head-actions .headicon,
.ven-head-actions .fw{width:36px;height:36px;border-radius:10px}
.ven-head-actions .headicon svg,
.ven-head-actions .fw svg{width:17px;height:17px}
/* Round icon buttons for share and edit.

   A word costs roughly three times the width of the mark it labels, and both of
   these already have a universal shape: the share arrow, and a person holding a
   pencil. The word is not lost — it stays in aria-label and title, so a screen
   reader and a hover still say what the control does. */
.headicon{display:inline-flex;align-items:center;justify-content:center;
  width:36px;height:36px;padding:0;border-radius:10px;cursor:pointer;
  background:var(--panel);color:var(--ink);border:1px solid var(--line);
  transition:.15s;text-decoration:none;flex:none}
.headicon:hover{border-color:var(--ink);color:var(--ink)}
.headicon svg{width:17px;height:17px;display:block}
/* Sync is the one action that can be in progress, so it needs a state.
   Spinning is honest here in a way it usually is not: the press really does
   wait on a relay before it can answer, and the wait is sometimes seconds.
   Reduced motion gets a pulse instead of a spin. */
.headicon[disabled]{opacity:.55;cursor:default}
.headicon.spinning svg{animation:syncspin 1.1s linear infinite}
@keyframes syncspin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion: reduce){
  .headicon.spinning svg{animation:none;opacity:.5}
}
/* Status lines (share + sync), always BELOW the icon row.

   Both used to be spans INSIDE that flex row. An empty span in a row that uses
   gap still claims its gap slot — a measured 8px of dead space past the last
   button, which is part of why the group read as inset from the edge. Buttons
   are the only children of that row now.

   Collapsed while empty, so a visitor and an owner see identical row heights. */
.statusline{margin:6px 0 0}
.statusline:empty{display:none}
.statusline.good{color:var(--ok, #1c7c4a)}
.statusline.bad{color:var(--bad, #b3261e)}
/* The identity block may not shrink below its widest unbreakable child.
   
   min-width:0 let it shrink to anything, so when the row squeezed it the NAME
   ellipsised — which was the point — but the role pill had no such escape and
   was simply cut off at the container's edge ("PHOTOGRAPHER +2" losing its +2
   and its right border). min-content sets the floor at the widest thing that
   cannot wrap, which is the pill; the name above it still ellipsises, so the
   shrink lands on the one element designed to absorb it. */
.ven-id.ven-id-wide{flex:0 1 auto;min-width:min-content}
.ven-marks-row{margin:3px 0 0;padding:0 2px}
.ven-marks-row .soc{width:32px;height:32px;padding:0;justify-content:center;border-radius:8px}
.ven-marks-row .soc-i{width:15px;height:15px}
/* The picture is a link to itself so it works without JavaScript; the click is
   intercepted to enlarge in place. A ring on hover is the only affordance
   needed — a magnifier icon over a face would be clutter. */
.ven-avlink{display:inline-flex;flex:none;border-radius:14px;line-height:0;cursor:zoom-in}
.ven-avlink:hover .ven-avatar{outline:2px solid var(--ink-soft);outline-offset:2px}
.ven-avlink:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
/* The enlarged picture. Fixed, over everything, dismissed by clicking anywhere or
   pressing Escape. No spinner and no chrome: it is already downloaded, so the
   only correct state is instant. */
.pguard{display:flex;gap:9px;flex-wrap:wrap;margin:22px 0 0;align-items:center}
.pguard .btn{text-decoration:none}
/* Signing out from your own profile page.
   The form is inline-block because .btn is inline-block and a block-level <form>
   would put the button on its own line above the sentence, which reads as an
   error state rather than a footer action. The icon sits in the button's own
   flex row with the label, 7px apart, so the two never drift. */
.ownsignout{display:flex;align-items:center;gap:12px;flex-wrap:wrap;
  margin:34px 0 0;padding-top:18px;border-top:1px solid var(--line)}
.ownsignout form{margin:0;display:inline-block}
.ownsignout .btn{display:inline-flex;align-items:center;gap:7px;
  padding:9px 14px;font-size:13.5px;line-height:1}
.ownsignout .btn svg{width:15px;height:15px;display:block}
.ownsignout .muted{font-size:12.5px}
.lb{position:fixed;inset:0;z-index:200;background:rgba(8,9,11,.9);display:flex;
  align-items:center;justify-content:center;padding:24px;cursor:zoom-out}
.lb img{max-width:100%;max-height:100%;border-radius:12px;object-fit:contain;
  box-shadow:0 20px 60px rgba(0,0,0,.5)}
.lb-x{position:absolute;top:14px;right:16px;width:38px;height:38px;border-radius:50%;
  border:1px solid rgba(255,255,255,.25);background:rgba(255,255,255,.08);
  color:#fff;font-size:19px;line-height:1;cursor:pointer}
@media(max-width:560px){
  .ven-band{height:96px}
  .ven-band-wide .ven-head-row{padding:100px 13px 12px}
  .ven-band-wide .ven-head-row>.ven-avlink,
  .ven-band-wide .ven-head-row>.ven-avatar{margin-top:0}
  /* One line, always — and it has to be FORCED.

     This row uses flex-wrap:wrap, so as soon as the name, the avatar and three
     36px buttons exceeded the width, the action group dropped onto a second
     line. That is the bug Travis saw after sync was added: not a horizontal
     offset to nudge, a wrap. Two icons fitted; three did not.

     nowrap is the fix, and the avatar drops to 52px to pay for the third button.
     Measured at 320/360/375/390/414: no wrap and no right-edge overflow at any
     of them, with the name intact from 360 up. At 320 the name ellipsises, which
     is the correct trade — a truncated name on the narrowest phone beats a
     button on its own line.

     min-width:0 on the identity block is what lets the name shrink at all: a
     flex child defaults to min-width:auto, so without it the name refuses to
     give way and the row overflows instead of ellipsising. */
  .ven-band-wide .ven-head-actions{padding-top:0;margin-left:auto}
  .ven-band-wide .ven-loc{padding:0 13px}
  .ven-head-row{gap:8px;flex-wrap:nowrap}
  /* Sizes here are a BUDGET, not a taste.

     On a phone this row must hold four things side by side: the dp, the identity
     block, and up to three buttons (edit, sync, share — the owner's case). With
     the dp at 88 and the buttons at 36 that came to 39px MORE than the card at
     390px, and share was clipped by the rounded corner: the bug in the
     screenshot. Buttons get smaller, and the dp pays too.

     The block's floor is min-content — the role pill, which cannot wrap mid
     word — so a smaller dp and smaller buttons are not enough on their own. At
     375 that budget is still a few px over. So the pill is also allowed to wrap
     its own text instead of being cut: in the worst case it reads on two lines,
     which is graceful, where clipping "+2" off is not. */
  .ven-head-row .ven-avatar,.ven-head-row .ven-avatar.ini{width:60px;height:60px;border-radius:12px}
  .ven-head-actions{margin-left:auto;padding-top:0;flex:none;flex-wrap:nowrap}
  /* The pill may wrap here rather than being clipped: it is a label in a row of
     marks now, so a second line costs nothing. */
  /* Still 32px tall to match the squares here too. The pill may wrap onto a
     second line rather than being clipped, so height:auto with min-height:32px
     lets it grow instead of cutting "+2" off. */
  .ven-marks-row .ptype-tag{font-size:9.5px;height:auto;min-height:32px;padding:3px 8px;
    letter-spacing:.03em;white-space:normal;max-width:100%;line-height:1.3}
  .ven-icon-row{gap:4px}
  /* ONE size for every control in this row. .headicon shrinks to 30 here and .fw
     did not, so on a phone share was a 30px square beside a 36px one — two
     sizes, two corner radii, on the two buttons that sit next to each other and
     do the same kind of job. Anything that shrinks here has to shrink together. */
  /* Both selectors carry the same weight as the desktop pair above. With a bare
     .headicon here (one class) the desktop .ven-head-actions .headicon (two
     classes) outranked it, so share stayed 36 while follow shrank to 30 — the
     exact mismatch this rule exists to prevent. */
  .ven-head-actions .headicon,.ven-head-actions .fw{width:30px;height:30px;border-radius:9px}
  .ven-head-actions .headicon svg,.ven-head-actions .fw svg{width:15px;height:15px}
  /* min-width:0 here, NOT min-content.

     min-content stopped the pill being clipped, but it also meant the block
     could not shrink — so with three buttons the ROW overflowed instead and the
     share button was cut off by the card's rounded corner. Trading one clip for
     another is not a fix.

     The pill wraps now (above), so the block can shrink to whatever is left and
     nothing is ever hidden: the name ellipsises, the pill reflows onto a second
     line if it truly has to, and the buttons keep their full size. */
  .ven-id.ven-id-wide{min-width:0;overflow:hidden}
  .ven-name{font-size:23px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
}
.ven-head{display:flex;align-items:center;gap:18px;margin-bottom:20px;flex-wrap:wrap}
.ven-avatar{width:74px;height:74px;border-radius:11px;object-fit:cover;background:var(--paper-2);flex:none;border:1px solid var(--line)}
.ven-avatar.ini{display:flex;align-items:center;justify-content:center;font-size:27px;font-weight:700;color:var(--ink-soft)}
.ven-id{min-width:0}
/* Optical correction: put the CAP-HEIGHT top of the name on the dp's top edge.

   The row bottom-aligns its children, so the name's line box ends on the same
   line as the dp — but a line box is taller than the letters in it. Half-leading
   plus the gap between the font's ascent and its cap height means the visible
   top of a capital sits a couple of pixels above the box top, and the "M" ended
   up a hair above the picture's edge.

   A transform rather than margin or padding on purpose: margin and padding both
   grow the box, and because the row is bottom-aligned, growing the box pushes
   its TOP further up — the opposite of what is wanted. transform moves the
   glyphs and leaves layout alone, so the baseline correction above still holds.
   Expressed in em so it scales with the name at both breakpoints. */
.ven-name{font-size:30px;letter-spacing:-.02em;margin:0;line-height:1.15;
  transform:translateY(.042em)}
.ven-host{font-size:13.5px;color:var(--muted);margin:5px 0 0;
  /* The handle line is the handle, and nothing else.

     The role tag used to hang off the end of this line, which put it in direct
     competition with the @ for the same width. Two attempts at sharing failed
     in opposite directions: left alone, the tag wrapped onto its own row
     (Mixr); pinned with the handle ellipsising, the tag kept its width and the
     handle got clipped to "@mix…" — which is worse, because the one thing this
     line exists to say is the address.

     The tag now lives in the right-hand column under the buttons, where it has
     its own width and cannot squeeze this line at all. So the line is plain
     text again and the address always reads in full. */
  min-width:0;overflow-wrap:anywhere}
.ven-host .uhandle{overflow-wrap:anywhere}
/* The role, on its own line under the @.

   The tag shared the handle line twice and both attempts failed in opposite
   directions: inline, it wrapped to its own row when the block was squeezed
   (Mixr); pinned with the handle ellipsising, it kept its width and the HANDLE
   was clipped to "@mix…". Given a line of its own neither has to give way — the
   address always reads in full and the label always has room.

   margin-left is zeroed because the global rule exists to space the tag from a
   handle on the SAME line; on its own line it would just indent the label. */
/* The role pill leads the social marks row.
   
   It began tucked under the @handle, where it fought the address for width and
   then fought the follow button for a baseline. Beside the socials it is simply
   the first thing in a row of things-about-this-person, which is what it always
   was — and the identity block goes back to two lines, so the header is quieter
   and nothing has to be shrunk to make room. */
.ven-marks-row{align-items:center}
.ven-marks-row .ptype-tag{margin-left:0;margin-right:2px;
  /* 32px, the height of the social squares beside it. The pill is the first
     item in that row, so a different height read as a mistake rather than a
     distinction — two sizes on one line when there was no reason for two.
     line-height:1 keeps the text optically centred at this fixed height
     without the extra leading the base rule carries. */
  display:inline-flex;align-items:center;height:32px;padding:0 10px;line-height:1}
.ven-loc{font-size:13px;color:var(--muted);margin:4px 0 0}
/* Inside the band the location now sits OUTSIDE the row, so it no longer
   inherits the row's horizontal padding and would hang at the outer edge. */
.ven-band-wide .ven-loc{padding:0 16px;margin:9px 0 0}
.org-loc{font-size:12.5px;color:var(--muted);margin-top:2px}
.ven-link{margin:4px 0 0;font-size:13.5px}
.ven-link a{color:var(--ink-soft);text-decoration:underline;text-underline-offset:2px}
.ven-socials{display:flex;flex-wrap:wrap;gap:8px;margin:9px 0 0}
/* ---------- the account's own profile, on pages that are not the profile ----------
   Two shapes, one language. The slim strip is navigation: who you are signed in as,
   and a way to your page. The full card is identity: the thing that would otherwise
   fill a phone screen before the content people came for.

   The strip sits ABOVE the page title on purpose. Below it, it competes with the
   heading and reads as content; above it, it reads as the bar it is. */
.pstrip{display:flex;align-items:center;gap:11px;padding:8px 11px;margin:0 0 18px;
  border:1px solid var(--line);border-radius:12px;background:var(--paper-2);text-decoration:none}
.pstrip:hover{border-color:var(--ink-soft)}
.pstrip-av{width:34px;height:34px;border-radius:9px;object-fit:cover;flex:none;border:1px solid var(--line);background:var(--paper)}
.pstrip-av.ini{display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:700;color:var(--ink-soft)}
.pstrip-id{min-width:0;flex:1 1 auto}
.pstrip-name{display:block;font-weight:650;font-size:14px;color:var(--ink);line-height:1.25;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pstrip-handle{display:block;font-size:12.5px;color:var(--muted);line-height:1.3;
  /* the account-type tag sits inside this line, so give it room to breathe
     instead of letting its border collide with the name block above */
  margin-top:1px;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pstrip-go{font-size:12.5px;font-weight:600;color:var(--ink-soft);flex:none}

/* The account type, said out loud beside the handle.
   Deliberately a muted noun, never a colour, a tick or a shield: the profile above
   it says in plain words that its links are unverified, and a badge that looks like
   a verification mark would contradict the sentence directly underneath.
   Spacing made explicit on the left: the tag reads as its own banner beside the
   name, not as a suffix glued to it. */
.ptype-tag{display:inline-block;font-size:11px;font-weight:600;letter-spacing:.05em;
  text-transform:uppercase;color:var(--muted);border:1px solid var(--line);
  /* Rounded rectangle, not a pill: a 6px corner keeps the shape reading as a
     label rather than a badge, and stays proportional at this text size. */
  border-radius:6px;padding:2px 9px;margin-left:10px;vertical-align:2px;
  white-space:nowrap;line-height:1.5}
/* The leaving-wullit page. Big target, host in monospace, one obvious way to
   go back. This is deliberately not subtle: it is the last thing between
   somebody and a page nobody checked. */
.go-wrap{max-width:44em}
.go-warn{margin:18px 0 0;padding:14px 16px;border:1px solid var(--line);
  border-left:3px solid #C2410C;border-radius:10px;background:var(--paper-2)}
.go-warn p{margin:0;font-size:14px;line-height:1.6;color:var(--ink-soft)}
.go-warn b{color:var(--ink)}
.go-dest{margin:18px 0 0;padding:14px 16px;border:1px solid var(--line);border-radius:10px;background:var(--panel)}
.go-dest-l{font-size:10.5px;letter-spacing:.09em;text-transform:uppercase;font-weight:700;color:var(--muted);margin-bottom:5px}
.go-host{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:19px;font-weight:700;
  color:var(--ink);line-height:1.3;word-break:break-all}
.go-url{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:11.5px;
  color:var(--muted);margin-top:5px;word-break:break-all;line-height:1.5}
.go-acts{display:flex;gap:9px;flex-wrap:wrap;margin-top:22px;align-items:center}
.go-acts .btn{text-decoration:none}
.soc.unv::after{content:"";position:absolute;inset:auto 1px 1px auto;width:5px;height:5px;
  border-radius:50%;background:var(--muted);opacity:.5}
.soc{position:relative}
.ven-socials a{font-size:12.5px;color:var(--muted);border:1px solid var(--line);
  border-radius:var(--r-ctl);padding:4px 10px;background:var(--panel)}
.ven-socials a:hover{border-color:var(--ink);color:var(--ink)}
/* Icon first, handle second. The icon is what makes the row scan instantly; the
   handle is what makes it useful. Neither alone does both, so both are shown and
   the handle is dropped only on narrow screens where space runs out. */
.ven-socials a.soc{display:inline-flex;align-items:center;gap:6px;padding:4px 10px 4px 8px}
.soc-i{display:inline-flex;flex:0 0 auto;width:14px;height:14px}
.soc-i svg{width:14px;height:14px;display:block}
.soc-h{line-height:1}
@media(max-width:480px){.soc-h{display:none}.ven-socials a.soc{padding:6px}}
/* Nostr leads the row because it is the only link here that is proven: the rest
   are typed handles, this one is signed by the venue's own key. The word
   "verified" is doing real work, so it is styled as a claim rather than
   decoration. */
.ven-socials a.ven-nostr{display:inline-flex;align-items:center;gap:6px;font-weight:650;color:var(--ink)}
.ven-verified{font-size:9.5px;letter-spacing:.06em;text-transform:uppercase;font-weight:700;
  color:#2F7D4F;background:rgba(47,125,79,.12);border-radius:var(--r-badge);padding:1px 6px}
/* Contact marks share the socials row, so the only thing needed here is the
   row's own spacing. The separate .ven-contact and .ven-ln rules are gone —
   keeping unmatched CSS is how a stylesheet rots. */
/* 22px above, not flush against the marks row. Directly under the icons the bio
   read as a caption for them; the gap makes it its own block without pushing it
   below the listings. */
.ven-about{font-size:16.5px;line-height:1.65;color:var(--ink-soft);margin:22px 0 30px;max-width:44em}
/* The full list of what somebody does, folded away under the bio.
   The pill beside the handle has room for one word and a count ("Photographer
   +2"); this is where the other two actually live. Folded because it is a
   detail, not the shop window — the bio is what a reader came for. */
.roles-more{margin:-18px 0 30px}
.roles-more>summary{cursor:pointer;list-style:none;display:inline-flex;align-items:center;
  gap:7px;font-size:13px;font-weight:600;color:var(--ink-soft);
  border:1px solid var(--line);border-radius:9px;padding:6px 11px;background:var(--panel)}
.roles-more>summary::-webkit-details-marker{display:none}
.roles-more>summary::after{content:"+";font-weight:400;font-size:15px;line-height:1}
.roles-more[open]>summary::after{content:"\2212"}
.roles-more>summary:hover{color:var(--ink);border-color:var(--ink-soft)}
.roles-more .cnt{font-weight:400;color:var(--muted);font-size:12px}
.roles-list{list-style:none;margin:10px 0 0;padding:0;display:flex;flex-wrap:wrap;gap:7px}
.roles-list li{display:inline-flex;align-items:center;gap:7px;border:1px solid var(--line);
  border-radius:9px;padding:5px 11px;background:var(--panel);font-size:13.5px;color:var(--ink-soft)}
.roles-list li.is-primary{border-color:var(--ink-soft);color:var(--ink);font-weight:650}
.roles-primary{font-size:9.5px;letter-spacing:.06em;text-transform:uppercase;font-weight:700;
  color:var(--muted);border-left:1px solid var(--line);padding-left:7px}
/* Track record. Deliberately a plain panel rather than a dashboard: three
   numbers a promoter can point at, not a chart they have to interpret. Sits
   directly under the bio, because a reader deciding whether to trust a promoter
   wants the record before the listings, not after them. */
.track{display:grid;grid-template-columns:repeat(3,1fr);border:1px solid var(--line);
  border-radius:12px;background:var(--panel);margin:0 0 26px;overflow:hidden}
.track-cell{padding:16px 18px;border-right:1px solid var(--line);min-width:0}
.track-cell:last-child{border-right:none}
.track-n{display:block;font-size:27px;font-weight:750;letter-spacing:-1.2px;line-height:1.1}
.track-l{display:block;font-size:11.5px;color:var(--muted);text-transform:uppercase;
  letter-spacing:.9px;margin-top:4px;line-height:1.3}
.track-note{font-size:12px;color:var(--muted);margin:-18px 0 26px}
@media (max-width:560px){
  .track{grid-template-columns:1fr 1fr}
  .track-cell{padding:13px 14px}
  .track-cell:nth-child(2){border-right:none}
  .track-cell:nth-child(3){grid-column:1/-1;border-top:1px solid var(--line)}
  .track-n{font-size:23px}
}
.ven-events{display:grid;gap:10px}
.ven-event{display:flex;gap:14px;align-items:flex-start;border:1px solid var(--line);border-radius:12px;padding:14px 16px;background:var(--panel);text-decoration:none;color:inherit;transition:.15s}
.ven-event-body{display:block;min-width:0;flex:1}
.ven-event-thumb{flex:none;width:76px;height:76px;border-radius:10px;overflow:hidden;border:1px solid var(--line);background:var(--paper-2)}
.ven-event-thumb img{display:block;width:100%;height:100%;object-fit:cover}
.ven-event:hover{border-color:var(--ink);transform:translateY(-1px)}
.ven-event-date{display:block;font-size:12px;letter-spacing:.05em;text-transform:uppercase;color:var(--muted);font-weight:700}
.ven-event-title{display:block;font-size:18px;font-weight:600;margin-top:4px;letter-spacing:-.01em}
.ven-event-meta{display:block;font-size:13.5px;color:var(--muted);margin-top:3px}
/* A row with no flyer still needs a left edge, or a feed reads as broken. A
   monogram on the same 76px square keeps the column straight. Dimmed, because
   it is a stand-in and should not compete with a real picture. */
.ven-event-mono{display:flex;align-items:center;justify-content:center;
  font-size:30px;font-weight:700;letter-spacing:-.03em;color:var(--muted);opacity:.55;
  background:linear-gradient(160deg,var(--panel),var(--paper-2))}
.ven-event-price{font-weight:700;color:var(--ink-soft)}
/* ---------- the flat event row (feed) ----------
   The night is the row. No card, no border, no poster header above it: the
   picture is the biggest thing in the row because a flyer is what sells a
   ticket, and everything else is a fact about it.

   This replaces the boxed version in the feed only. On a venue page the box is
   right — a bordered row reads as one item in a list of items. In a feed, a
   bordered row among bordered posts read as a card inside a card, and the
   poster's avatar above it took a full 40px of header before the night even
   started. Measured: one event went 157px to 109px, and the picture went 76px
   to 92px — smaller row, bigger flyer.

   The .fev- prefix rather than reusing .ven-event, because the two are now
   genuinely different shapes and sharing a class name is how a later change to
   one silently breaks the other. */
.fev{display:flex;gap:13px;align-items:center;padding:7px 0}
.fev-pic{flex:none;width:92px;height:92px;border-radius:10px;overflow:hidden;display:block;
  background:linear-gradient(160deg,var(--panel),var(--paper-2));position:relative}
.fev-pic img{width:100%;height:100%;object-fit:cover;display:block}
.fev-mono{display:flex;align-items:center;justify-content:center;width:100%;height:100%;
  font-size:32px;font-weight:700;letter-spacing:-.03em;color:var(--muted);opacity:.5}
.fev-body{min-width:0;flex:1;display:block}
/* Muted, not accent.
   The row also carries the poster's @handle, which IS a link and is orange.
   Two accent elements in one 100px row means the colour stops meaning
   "pressable" — and the app's own global rule is a{color:var(--accent)}, so
   accent-as-link is the house convention. The date is a fact about the night,
   not a target, so the date is the one that gives up the colour. */
.fev-date{display:block;font-size:10.5px;font-weight:700;letter-spacing:.06em;
  text-transform:uppercase;color:var(--muted)}
.fev-title{display:block;font-size:16px;font-weight:650;letter-spacing:-.012em;
  margin-top:2px;line-height:1.2;color:var(--ink);text-decoration:none;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fev-title:hover{text-decoration:underline}
.fev-meta{display:block;font-size:12px;color:var(--muted);margin-top:3px;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* The poster gets its own line. Sharing one line with venue and price clipped
   all three at 346px, and a truncated name is worse than no name. */
/* The handle, and only the handle.
   Accent orange plus bold is the affordance — no underline, which at 11.5px
   reads as noise rather than as a link, and no "Name @handle" repeat, which
   spent a second line saying the same account twice. */
.fev-byline{display:block;font-size:11.5px;margin-top:2px;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fev-by{color:var(--accent);font-weight:700;text-decoration:none}
.fev-by:hover{text-decoration:underline}
.fev-by-n{color:var(--muted)}
/* The one thing a feed knows that a directory does not: you already have a
   ticket. Green, like the card pill, but icon-only: this flyer is 92px square
   and the words alone need ~110px. Same bottom-left corner as the cards in the
   Events view and on Discover, so the badge never moves as you move between
   them. */
.fev-own{position:absolute;bottom:5px;left:5px;z-index:2;display:inline-flex;
  align-items:center;justify-content:center;width:19px;height:19px;border-radius:5px;
  background:rgba(63,207,131,.95);color:#0d1a12;box-shadow:0 1px 3px rgba(0,0,0,.4)}
.fev-own svg{width:11px;height:11px}
.ven-event-own{display:inline-block;margin-left:8px;font-size:11px;font-weight:700;
  letter-spacing:.03em;color:#0d1a12;background:var(--ok);border-radius:var(--r-badge);
  padding:2px 8px;vertical-align:1px}
.ven-posts{display:grid;gap:12px}
.ven-post{border:1px solid var(--line);border-left:3px solid var(--accent);border-radius:12px;padding:14px 16px;background:var(--panel)}
.ven-post-when{font-size:11.5px;letter-spacing:.05em;text-transform:uppercase;color:var(--muted);font-weight:700;margin-bottom:6px}
.ven-post-body{font-size:15.5px;line-height:1.6;white-space:pre-wrap;word-break:break-word}
.ven-follow{margin-left:auto}
.acct-head-actions{display:flex;align-items:center;gap:16px}
.acct-head-actions .linkbtn{margin:0}
.acct-primary{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin:20px 0 4px}
.acct-primary .btn{margin:0}
.acct-primary .muted{margin:0;font-size:13.5px}

/* ---------- feed ---------- */
/* One column, explicitly.

   Without a template this grid gets an IMPLICIT column sized to max-content,
   so one long event title widened the track to 948px inside a 375px phone and
   ran the whole row off the page. The title's own ellipsis rule was correct all
   along and could not help: it ellipsises within its box, and its box had been
   stretched to fit the text.

   minmax(0,1fr) is the load-bearing part, not 1fr. A bare 1fr still resolves to
   a minimum of auto (i.e. min-content), which is what lets a long unbreakable
   string push the track wider than the page. The 0 minimum is what actually
   caps it. */
.feed{display:grid;grid-template-columns:minmax(0,1fr);gap:14px;margin-top:20px}
.feed-item{border:1px solid var(--line);border-radius:14px;padding:16px 18px;background:var(--panel)}
.feed-head{display:flex;align-items:center;gap:11px;margin-bottom:10px}
.feed-pic{width:34px;height:34px;border-radius:7px;object-fit:cover;background:var(--paper-2);flex:none}
/* A picture of a promoter is something people click. It links to their page and
   is a sibling of the name link, never nested inside it. */
.feed-avlink{display:inline-flex;flex:none;border-radius:8px;line-height:0}
.feed-avlink:hover .feed-pic{outline:2px solid var(--accent);outline-offset:2px}
.feed-ini{width:34px;height:34px;border-radius:8px;background:var(--paper-2);display:flex;align-items:center;justify-content:center;font-weight:700;font-size:14px;color:var(--ink-soft);flex:none}
.feed-name{font-size:14px;font-weight:600;color:inherit;text-decoration:none}
a.feed-name:hover{text-decoration:underline}
.feed-when{font-size:12px;color:var(--muted);margin-top:2px}
.feed-body{font-size:15.5px;line-height:1.6;white-space:pre-wrap;word-break:break-word}
.feed-empty{border:1px dashed var(--line);border-radius:14px;padding:30px 22px;text-align:center;margin-top:20px}
.feed-suggest{margin-top:22px;text-align:left}
.feed-suggest-h{font-size:11px;letter-spacing:.09em;text-transform:uppercase;font-weight:700;
  color:var(--ink-soft);margin:0 0 12px;text-align:left}
.feed-empty h2{font-size:19px;margin:0 0 8px}
.follow-list{display:grid;gap:8px;margin-top:10px}
/* Four across on a phone, more where there is room. Fixed columns rather than
   auto-fill so the count does not drift between 3 and 5 depending on a 20px
   difference in viewport. */
.follow-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-top:12px}
@media(min-width:560px){.follow-grid{grid-template-columns:repeat(6,1fr)}}
@media(min-width:820px){.follow-grid{grid-template-columns:repeat(8,1fr)}}
.follow-sq{display:flex;flex-direction:column;align-items:center;gap:6px;
  text-decoration:none;color:inherit;min-width:0}
.follow-sq-pic{width:100%;aspect-ratio:1/1;border-radius:11px;object-fit:cover;
  background:var(--paper-2);border:1px solid var(--line);display:block}
.follow-sq-ini{display:flex;align-items:center;justify-content:center;
  font-size:20px;font-weight:700;color:var(--ink-soft)}
.follow-sq-name{font-size:11.5px;line-height:1.25;text-align:center;color:var(--ink-soft);
  overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;
  -webkit-box-orient:vertical;word-break:break-word;max-width:100%}
.follow-sq:hover .follow-sq-pic{border-color:var(--ink)}
.follow-sq:hover .follow-sq-name{color:var(--ink)}
/* The account type under a name in the follow grid. Same muted treatment as the
   pill beside a handle, at label size: it has to read at a glance inside a
   76px square without competing with the name above it. */
.follow-sq-type{font-size:10px;line-height:1.2;letter-spacing:.04em;text-transform:uppercase;
  font-weight:650;color:var(--muted);margin-top:-2px;text-align:center;
  max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* Event squares in the "Collaborated on" grid.

   A title is one line or two and the role beneath it is always one, so without
   a reservation the role floats up under a short title and the row stops
   reading as a row — the labels sit at different heights in adjacent squares.
   The title block reserves two lines whether it fills them or not, so every
   role lands on the same line across the grid. Height is derived from the
   title's own font-size and line-height rather than hard-coded, so changing
   either keeps the reservation correct. */
.ev-grid .follow-sq-name{min-height:calc(2 * 1.25 * 11.5px)}
.follow-row{display:block;border:1px solid var(--line);border-radius:10px;padding:11px 14px;background:var(--panel);text-decoration:none;color:inherit;font-size:14.5px;font-weight:500}
.follow-row:hover{border-color:var(--ink)}

/* The All / Events / Posts switch.
   A segmented control rather than another row of underlined tabs: btabs is the
   site's navigation between pages, and a second tab bar directly under it reads
   as a second level of the same navigation. This is one control choosing how to
   look at one page, so it is styled as a control.
   Links, not buttons — the view survives a refresh, a bookmark and a share, and
   works with no JavaScript at all. A buyer on a dying phone in a queue is the
   actual user. */
.seg{display:flex;gap:2px;margin:16px 0 0;background:var(--paper-2);
  border:1px solid var(--line);border-radius:10px;padding:3px}
.seg a{flex:1;text-align:center;font-size:12.5px;font-weight:650;color:var(--muted);
  text-decoration:none;padding:7px 4px;border-radius:7px;line-height:1.2}
.seg a:hover{color:var(--ink)}
.seg a.on{background:var(--panel);color:var(--ink);box-shadow:0 1px 2px rgba(0,0,0,.35)}

/* Two across on a phone, three where there is room.

   The generic shelf grid (auto-fill / minmax(180px,1fr)) reflows nicely on
   Discover but was wrong on the feed: a 390px phone leaves 346px of content
   box, minmax(180px) fits exactly ONE column, and every night became a
   full-width 407px flyer. Four events meant 1,724px of events before the first
   post. Fixed columns bring that to a quarter of the height.

   The count comes from the viewport, not from how many events there happen to
   be, so the grid cannot produce a lone orphan card on the second row. */
.feedgrid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;margin-top:14px}
/* Inside the wide column the feed grid fills it, so a desktop screen shows as
   many nights as Discover does. Below the breakpoint nothing changes: the
   appbody is full width there anyway and two across is what a phone reads. */
@media(min-width:900px){
  .appbody.wide .feedgrid{grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:14px}
  /* Posts stay at the reading measure. A 1,500px line of text is not a feed,
     it is a wall; the grid spreading is the point, the paragraphs are not. */
  .appbody.wide .feed{max-width:760px}
  /* Three short labels spread across 1,500px read as three columns, not as one
     control. Capped, the Events/Posts/All switch stays a switch. */
  .appbody.wide .seg{max-width:460px}
}
@media(min-width:700px){.feedgrid{grid-template-columns:repeat(3,1fr)}}
.feedgrid .wo-card-media{aspect-ratio:1/1}
.feedgrid .wo-card-img{aspect-ratio:1/1}
.feedgrid .wo-card-title{font-size:14.5px;line-height:1.25}
.feedgrid .wo-card-meta{font-size:11.5px}

/* ---------- role switcher + venue directory ---------- */
.ven-list{display:grid;gap:10px;margin-top:20px}
.ven-card{display:flex;align-items:center;gap:14px;border:1px solid var(--line);border-radius:12px;padding:14px 16px;background:var(--panel);text-decoration:none;color:inherit;transition:.15s}
.ven-card:hover{border-color:var(--ink);transform:translateY(-1px)}
.ven-list-pic{width:48px;height:48px;border-radius:11px;object-fit:cover;background:var(--paper-2);flex:none}
.ven-list-ini{width:48px;height:48px;border-radius:11px;background:var(--paper-2);display:flex;align-items:center;justify-content:center;font-weight:700;font-size:18px;color:var(--ink-soft);flex:none}
.ven-card-id{min-width:0}
.ven-card-name{font-size:16px;font-weight:600;letter-spacing:-.01em}
.ven-card-meta{font-size:12.5px;color:var(--muted);margin-top:4px}
.ven-tag{display:inline-block;font-size:10.5px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:#2F7D4F;background:rgba(47,125,79,.1);padding:2px 7px;border-radius:var(--r-badge);margin-left:8px;vertical-align:1px}
/* Follow state on an account card, as the same plus/tick the follow button
   uses — the word "Following" in a pill was a fifth way of saying the same
   thing. DECORATIVE, not a control: the whole card is one <a>, and a button
   inside an anchor is invalid HTML and a muddled control to a screen reader.
   So it states the state and the tap goes to the profile, where the real
   follow button lives. */
.ven-card-follow{display:inline-flex;align-items:center;justify-content:center;
  width:22px;height:22px;border-radius:7px;margin-left:8px;vertical-align:-4px;
  border:1px solid var(--line);color:var(--ink-soft);background:var(--paper-2)}
.ven-card-follow svg{width:12px;height:12px;display:block}
.ven-card-follow.on{background:var(--accent);border-color:var(--accent);color:#fff}

/* ---------- browse: tabs, search, what's on ---------- */
.btabs{display:flex;gap:4px;margin:18px 0 0;border-bottom:1px solid var(--line)}
/* Each tab takes an equal share of the row.
   They used to size to their labels, so "Your feed / Discover / Accounts" sat
   in the left third and the rest of the line was empty — which read as an
   unfinished page rather than as a nav. Equal shares puts Your feed at the left,
   Discover in the middle and Accounts at the right, and the underline for the
   current tab lands under the middle of the page where the eye expects it.
   flex:1 1 0 rather than 1 so the basis is zero: with flex-basis:auto the
   labels' widths still bias the split. */
.btab{flex:1 1 0;text-align:center;padding:9px 10px;font-size:14px;font-weight:600;
  color:var(--muted);text-decoration:none;border-bottom:2px solid transparent;
  margin-bottom:-1px;white-space:nowrap}
.btab:hover{color:var(--ink)}
.btab.on{color:var(--ink);border-bottom-color:var(--accent)}

/* Three tabs with a count each do not fit a 390px phone at the label size the
   two-tab rows used. Measured: 166 + 105 + 120 = 391px of label in a 358px
   row, so "Messages" was clipped by the page's right edge — the tab existed,
   the number was right, and the last word was off-screen. The labels are the
   navigation and cannot be truncated to fit, so the type and the gutters give
   way instead. Numbers only, no guessing: at 12.5px with 4px padding the same
   three labels measure 341px inside 358. */
@media(max-width:430px){
  .btabs{gap:0}
  .btab{padding:9px 4px;font-size:12.5px}
  .btab .cnt{min-width:15px;padding:0 4px;margin-left:3px}
}

/* Filters are links, not a form: they survive a refresh, a share and a dead
   phone. Keep them quiet — they should help scanning, not shout over the cards.
   Collapsed by default so the page leads with nights, not controls. */
/* The filter trigger is a square, and it lives between the search input and
   the Search button. It used to be a full-width bar above the results, which
   cost two rows of chrome on the one page whose job is to show nights. */
.filters{margin:0;position:relative;flex:none}
.fbtn{display:flex;align-items:center;justify-content:center;position:relative;
  width:44px;height:44px;padding:0;cursor:pointer;list-style:none;
  border:1px solid var(--line);border-radius:10px;background:var(--panel);
  color:var(--ink-soft);transition:border-color .15s ease,color .15s ease}
.fbtn:hover{border-color:var(--ink);color:var(--ink)}
.fbtn::-webkit-details-marker{display:none}
.fbtn::marker{content:''}
.fbtn svg{width:18px;height:18px;display:block}
/* Open state is a border and a colour, not a rotation: the mark is static, so
   there is nothing to turn. */
.filters[open] .fbtn{border-color:var(--ink);color:var(--ink);background:var(--paper-2)}
.fbtn:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
/* How many filters are on. A restriction you cannot see is one you forget you
   set, and an empty page then reads as a broken page. */
.fcount{position:absolute;top:-6px;right:-6px;min-width:17px;height:17px;
  padding:0 4px;border-radius:var(--r-badge);background:var(--accent);color:#fff;
  font-size:10.5px;font-weight:700;line-height:17px;text-align:center}
/* The panel, anchored to the button and opening leftwards.
   It is 320px wide on a phone in a 390px viewport, so anchoring its left edge to
   a button near the right of the row would push it off screen. Right-anchored it
   opens back over the input instead. */
.fpanel{position:absolute;z-index:30;top:calc(100% + 8px);right:0;
  width:min(92vw,360px);max-width:calc(100vw - 32px);
  /* Capped and scrollable.
     On a phone the open panel is taller than the space between the search row
     and the bottom tab bar, so its last rows sat UNDER the nav — the Sort
     dropdown and Clear filters were unreachable. Bounding it to the viewport
     minus the chrome and letting it scroll keeps every control reachable
     without pretending the panel is shorter than it is. dvh rather than vh so
     the iOS toolbar collapsing does not clip the last row. */
  max-height:calc(100dvh - 190px);overflow-y:auto;-webkit-overflow-scrolling:touch;
  border:1px solid var(--line);border-radius:12px;background:var(--panel);
  box-shadow:0 12px 36px rgba(0,0,0,.5)}
.fhead{padding:11px 13px;font-size:12.5px;color:var(--muted);
  border-bottom:1px solid var(--line);background:var(--paper-2)}
.fbody{display:grid;gap:8px;padding:12px 13px 13px}
.fcustom{margin-top:2px}
.fcustom input[type=number]{font:inherit;font-size:13px;width:92px;padding:6px 9px;
  border-radius:8px;border:1px solid var(--line);background:var(--paper-2);color:var(--ink)}
.frow{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.fkey{font-size:10.5px;letter-spacing:.1em;text-transform:uppercase;font-weight:700;
  color:var(--muted);min-width:46px}
.fchip{font-size:12.5px;color:var(--ink-soft);background:var(--panel);
  border:1px solid var(--line);border-radius:var(--r-ctl);padding:5px 11px;text-decoration:none}
/* A dropdown for sets too long to scan as pills. Same border, same weight as a
   chip so the panel does not look like two different components. */
.fselect{display:flex;align-items:center;gap:9px;margin:0;flex:1 1 100%;max-width:340px}
.fselect select{font:inherit;font-size:13px;padding:7px 11px;border-radius:9px;
  border:1px solid var(--line);background:var(--panel);color:var(--ink);flex:1;min-width:0}
.fselect .fkey{min-width:auto}
.fdates{flex-wrap:wrap;gap:7px}
.fdates input[type=date]{font:inherit;font-size:13px;padding:6px 9px;border-radius:9px;
  border:1px solid var(--line);background:var(--panel);color:var(--ink);letter-spacing:0;
  text-transform:none;text-align:left;width:auto}
@media(max-width:560px){.fselect{max-width:none}}
.fchip:hover{border-color:var(--ink)}
.fchip.on{background:var(--ink);color:var(--paper);border-color:var(--ink)}
.fclear{font-size:12.5px;color:var(--accent);text-decoration:underline;text-underline-offset:2px}
/* Reset, with the count beside it.
   Present whether or not anything is applied, because a way out that only
   appears once you are already stuck is no help — and a reader who cannot see
   a reset concludes the page has forgotten their filters rather than that it is
   holding them. When nothing is applied it is visibly inert and cannot be
   clicked, so it never looks like a working button that does nothing. */
.freset-row{align-items:baseline;justify-content:space-between;
  border-top:1px solid var(--line);padding-top:10px;margin-top:2px}
.freset{font-size:12.5px;font-weight:650;color:var(--accent);text-decoration:none;
  border:1px solid var(--line);border-radius:8px;padding:5px 10px}
.freset:hover{background:var(--paper-2)}
.freset.off{color:var(--muted);border-color:var(--line);opacity:.55;
  pointer-events:none}
.freset-note{font-size:11.5px;color:var(--muted)}
/* One row: input · filter · submit.
   The input is the only thing that flexes; the two buttons are fixed so they
   do not shrink to unreadable on a narrow phone. */
.searchrow{display:flex;align-items:center;gap:8px;margin:14px 0 16px;max-width:640px}
.search{display:flex;flex:1 1 auto;min-width:0;margin:0}
.search input{flex:1;font:inherit;font-size:15px;padding:0 14px;height:44px;
  border-radius:10px;border:1px solid var(--line);background:var(--panel);
  color:var(--ink);min-width:0}
.search input:focus{outline:2px solid var(--accent);outline-offset:-1px;border-color:transparent}
/* The submit is a sibling of the form, not a child — see the markup note. Same
   orange as .btn, sized to the row rather than to its padding. */
.searchrow .sbtn{display:inline-flex;align-items:center;justify-content:center;gap:7px;
  margin:0;padding:0 16px;height:44px;white-space:nowrap;flex:none}
.searchrow .sbtn svg{width:17px;height:17px;display:block}
.search{position:relative;align-items:center}
.search .pclear{position:absolute;right:7px;top:50%;transform:translateY(-50%);
  width:24px;height:24px;border-radius:6px}
.search input[name=q]{padding-right:38px}
@media(min-width:900px){
  /* The bar carries the box, the filter and the magnifier on a desktop, so the
     page's own row is gone rather than half-emptied: with only a filter icon
     left in it the row was a lone square under the tabs, which reads as a
     control that fell off something. */
  .searchrow{display:none}
  /* The page-level BROWSE strip named the same three destinations the Browse
     menu now holds. Two navigations for one set of pages is the thing the panel
     was supposed to prevent, so on a desktop that strip goes and the menu
     carries it. Kept below the breakpoint, where there is no bar.

     Scoped to .btabs-browse, NOT .btabs. Hiding every .btabs took the INBOX's
     three tabs with it, and on a desktop that left the inbox able to show only
     Collab — the rooms and the messages were there, with no control to reach
     them. The inbox strip is a control on one page, not a duplicate of the nav,
     so it stays at every width. */
  .btabs-browse{display:none}
}

/* On a phone the word goes and the mark stays: an orange button wide enough to
   say "Search" next to a filter square leaves the input about 150px, which is
   narrower than the placeholder and looks broken. The label survives in the
   aria-label, and the magnifier is unambiguous beside an input. */
@media(max-width:520px){
  .searchrow .sbtn span{display:none}
  .searchrow .sbtn{padding:0 14px}
}
/* The panel, on a phone.
   It is nearly as wide as the screen and the filter button sits near the right
   edge, so anchoring to the button pushed it 37px off the left — measured, not
   guessed. Anchored to the ROW instead it starts at the page's own left margin.
   Below 560px only.
   This block sits AFTER the base .searchrow rule on purpose: a media query does
   not outrank a later plain rule of equal specificity, so when it was written
   above it the base display:flex won and the panel stayed stuck to the button. */
@media(max-width:560px){
  /* static, not relative, on the details: while .filters is position:relative
     the nearest positioned ancestor is the 44px button and the panel cannot be
     widened leftwards without a magic offset. */
  .searchrow{position:relative}
  .filters{position:static}
  .fpanel{right:auto;left:0;width:100%;max-width:none}
}
/* ---------- the hero strip ----------
   Full-bleed flyers with the text on a scrim, above the grid.

   The scrim is the whole legibility strategy and it is not optional: a flyer is
   a photograph, every photograph has a bright corner somewhere, and white text
   over an unknown image is white text over a shrug. One gradient from the bottom
   guarantees near-black under the words whatever the artist uploaded.

   Height is a clamp rather than an aspect ratio. An aspect ratio on a fluid
   column produces a different height at every width, and at 1560px it produced
   a 700px banner — most of the first screen for one night. */
.hero{margin:0 0 18px;position:relative;border-radius:16px;overflow:hidden;
  background:var(--panel);border:1px solid var(--line)}
.hero-track{position:relative;width:100%;height:clamp(200px,48vw,260px)}
@media(min-width:700px){.hero-track{height:clamp(250px,26vw,340px)}}
.hero-slide{position:absolute;inset:0;opacity:0;transition:opacity .5s ease;
  pointer-events:none}
.hero-slide.on{opacity:1;pointer-events:auto;z-index:2}
.hero-slide img{width:100%;height:100%;object-fit:cover;display:block}
.hero-scrim{position:absolute;inset:0;
  background:linear-gradient(to top,rgba(6,7,9,.94) 0%,rgba(6,7,9,.74) 34%,
    rgba(6,7,9,.14) 64%,rgba(6,7,9,0) 100%)}
.hero-body{position:absolute;left:0;right:0;bottom:0;padding:16px 18px 24px;
  display:flex;flex-direction:column;gap:2px}
.hero-when{font-size:10.5px;font-weight:700;letter-spacing:.07em;
  text-transform:uppercase;color:rgba(255,255,255,.74)}
.hero-t{font-size:20px;font-weight:750;letter-spacing:-.02em;line-height:1.16;
  color:#fff;margin:1px 0 0;text-shadow:0 1px 14px rgba(0,0,0,.55)}
.hero-t a{color:inherit;text-decoration:none}
/* The whole slide is not a link — the button is. A click target that covers the
   image makes the dots unreachable and turns a mis-tap into a navigation. */
.hero-o{font-size:12.5px;color:rgba(255,255,255,.76);margin-bottom:10px}
.hero-o b{color:#fff;font-weight:650}
.hero-cta{align-self:flex-start;background:var(--accent);color:#fff;
  text-decoration:none;font-size:13.5px;font-weight:700;border-radius:var(--r-btn);
  padding:9px 15px}
.hero-dots{position:absolute;left:0;right:0;bottom:0;display:flex;gap:6px;
  justify-content:center;padding:0 0 9px;z-index:4}
/* 18x4 with an invisible padded hit area.
   Drawing them big enough to tap would put four fat bars across the bottom of
   every flyer; growing the target without growing the mark keeps the picture
   intact and still passes a thumb. */
.hero-dot{position:relative;width:18px;height:4px;border-radius:2px;border:0;
  padding:0;cursor:pointer;background:rgba(255,255,255,.34);
  transition:background .22s ease,width .22s ease}
.hero-dot::after{content:'';position:absolute;inset:-13px -7px}
.hero-dot.on{background:#fff;width:26px}
.hero-dot:focus-visible{outline:2px solid #fff;outline-offset:3px}
@media(prefers-reduced-motion:reduce){
  .hero-slide{transition:none}
  .hero-dot{transition:none}
}

.wo-group{margin-top:30px}
.wo-head{font-size:13px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);font-weight:700;margin:0 0 10px}
/* As many columns as fit, at a sensible card size.

   This went through a fixed two-column rule, which was only ever right because
   the container was capped at 760px. Both halves of that were wrong for a
   browsing grid: on a phone one card filled the screen, and on a wide monitor
   two cards sat in a narrow column with hundreds of pixels of empty background
   either side. Zooming out made it worse, not better — the page simply shrank
   inside the same cap.

   auto-fill + minmax does the whole job in one line: a card never gets narrower
   than 260px, and the browser fits as many as the width allows. A phone gets
   one, a tablet two, a laptop three or four. No breakpoints to keep in sync
   with the container, and nothing to update when the container changes.

   260px is measured, not guessed. The binding constraint is not the tag row but
   the footer on a card carrying every fact: price (up to 86px for "from
   £3.50"), "18+" (36), and the figures (up to 108 for "1 sold · 220 places"),
   plus two 8px gaps — about 246px of content in a 236px slot at a 268px card.
   Rather than widen the card until that always fits, the two flexible pieces
   are pinned to one line and the figures take the overflow: a price that wraps
   is unreadable, and a truncated "1 sold · 220 pla…" still answers the question.

   a max of 1fr means the last row stretches rather than leaving a gap, so
   three cards in a two-column row do not sit half-width. */
.wo-list{display:grid;gap:14px;grid-template-columns:repeat(auto-fill,minmax(260px,1fr))}

/* The card: the flyer IS the card, with the text on a scrim over it.
   64px thumbnails told a buyer nothing — two nights looked identical, and a
   ticket is sold by the picture. A missing flyer falls back to a designed
   block rather than a hole, so the list never looks broken. */
.wo-card{display:flex;flex-direction:column;border-radius:16px;overflow:hidden;background:var(--panel);
  border:1px solid var(--line);text-decoration:none;color:var(--ink);
  transition:transform .16s ease,border-color .16s ease;
  /* The card is a positioning context because the whole surface is clickable
     through an overlay anchor rather than by being an anchor itself. See the
     note above eventCard's return: a card that is one big <a> cannot also hold
     the poster link and the ticket link inside it. */
  position:relative}
.wo-card:hover{transform:translateY(-2px);border-color:var(--ink)}
/* The click target for the event itself: the entire card, underneath anything
   that is its own link. z-index 1 puts it above the flyer and the text (which
   are static), and the real links inside get 2 so they win. */
.wo-card-hit{position:absolute;inset:0;z-index:1;border-radius:16px}
.wo-card-hit:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}
.wo-card-media{position:relative;display:block;overflow:hidden}
.wo-card-img{display:block;width:100%;aspect-ratio:1/1;background:var(--paper-2)}
.wo-card-img img{display:block;width:100%;height:100%;object-fit:cover}
.wo-card-img-empty{display:flex;align-items:center;justify-content:center;
  background:linear-gradient(160deg,var(--panel),var(--paper-2))}
.wo-card-mono{font-size:60px;font-weight:700;letter-spacing:-.03em;color:var(--muted);opacity:.45}
.wo-card-badge{position:absolute;top:10px;left:10px;
  font-size:11px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;
  background:rgba(8,9,11,.74);color:#fff;border-radius:var(--r-tag);padding:5px 10px}
/* Scarcity is only ever rendered from real stock — see eventRow. The colour is
   the accent so it reads as a nudge without shouting, and "sold out" is grey
   because it is a fact, not a warning. */
/* A ticket you already hold. Green like the rest of the "good" language in the
   app, translucent so it does not blank out the flyer, and a link — it is the
   only flag that answers a question ("where is my ticket"), so it goes to My
   tickets. The others are statements about the listing and stay inert. */
.wo-card-flag.own{background:rgba(63,207,131,.92);color:#0d1a12}
.wo-card-flag.own:hover{background:rgba(63,207,131,1)}
/* The feed strip: squares, not tall cards. Equal cells on a fixed grid so four
   of them read as one row rather than four different shapes. */
.wo-strip-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:12px}
.wo-strip-grid .wo-card-media{aspect-ratio:1/1}
.wo-strip-grid .wo-card-img{aspect-ratio:1/1}
.wo-strip-grid .wo-card-title{font-size:14.5px;line-height:1.25}
.wo-strip-grid .wo-card-meta{font-size:11.5px}
.wo-list-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:14px}
@media(max-width:560px){.wo-list-grid{grid-template-columns:1fr 1fr;gap:10px}}
/* The state pill, bottom-left of the flyer.

   It was top-right, and that collided with the date badge: on a two-across card
   the badge is 147px of a 228px card, so every flag overprinted the date by
   about 90px. Measured on a real render at 390px, not estimated. Bottom-left is
   empty on every flyer, mirrors the badge, and fixes all six states at once.

   Translucent like the badge, so it sits ON the picture rather than punching a
   hole in it — the flyer is what sells the ticket and covering it in opaque
   blocks works against that.

   z-index 2: this can be a link (see .own) and must sit above .wo-card-hit. */
.wo-card-flag{position:absolute;bottom:10px;left:10px;z-index:2;
  display:inline-flex;align-items:center;gap:5px;
  font-size:10.5px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;
  background:rgba(240,83,58,.92);color:#fff;border-radius:var(--r-tag);padding:4px 9px;
  text-decoration:none;line-height:1.3;backdrop-filter:blur(3px)}
.wo-card-flag svg{width:11px;height:11px;flex:none}
.wo-card-flag.gone{background:rgba(8,9,11,.74);color:#fff}
/* A night that is underway but still admitting. Same pill, a colour of its own,
   so "started, on the door" is never mistaken at a glance for "last few". */
.wo-card-flag.live{background:rgba(15,123,74,.92);color:#fff}
/* A card you can no longer buy through. Dimmed rather than removed: the night
   still happened and a buyer may still want the door or the details. */
.wo-card-off .wo-card-img{opacity:.62}
/* The caption sits under the picture, not on it. Overlaying hid the flyer —
   which is the thing that sells the ticket — and made the text unreadable on
   a busy image. Underneath, both are legible and neither fights the other. */
.wo-card-body{display:flex;flex-direction:column;flex:1 1 auto;padding:13px 15px 14px}
.wo-card-title{display:block;font-size:18px;font-weight:700;letter-spacing:-.015em;line-height:1.24}
.wo-card-figs{display:block;font-size:11.5px;color:var(--muted);margin-top:4px;font-variant-numeric:tabular-nums}
.wo-card-meta{display:block;font-size:13px;color:var(--muted);margin-top:3px;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* Who put the night on. A row of its own because a name buried in "venue ·
   name" is unreadable and unreachable; here the handle is a link to their page.
   z-index 2 lifts it above the card's overlay click target. */
/* Wraps rather than clipping.

   It was nowrap + ellipsis, and on a 228px card "Marlow House @marlow" cut to
   "Marlow House @mar…" — the handle, which is the part that identifies the
   account, was the part being eaten. A truncated handle is worse than a second
   line: it still takes the space and stops being a name you can read. On a wide
   card it stays on one line; on a narrow one it takes two. */
/* Now a single handle rather than a name plus a handle, so the wrap worry that
   made this two lines is gone — "@marlow" fits a 228px card with room to spare.
   Accent orange, bold, no underline: at this size colour and weight are what
   make it read as clickable, and an underline would just add noise. */
.wo-card-by{display:block;font-size:12.5px;line-height:1.3;margin-top:2px;
  position:relative;z-index:2}
.wo-card-by-a{color:var(--accent);font-weight:700;text-decoration:none}
.wo-card-by-a:hover{text-decoration:underline}
.wo-card-bill{display:block;font-size:12.5px;color:var(--ink-soft);margin-top:5px;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* The price and the age limit sit on the floor of the square.

   They used to be 9px under whatever the last line of text happened to be, so
   on a row of two cards one price sat high and the other low — the two facts
   that decide whether you can go were the two that would not line up. The body
   is a column that takes the leftover height, and this row takes the slack, so
   the price is always bottom-left whatever the title does. No rule above it:
   the gap is the separation, and a hairline at this size reads as a border
   between two sections rather than as a footer. */
/* No wrapping, ever.

   The row used to wrap, on the theory that a narrow card should reflow rather
   than clip. What it actually did was put the figures on a second line and
   lift the price off the floor — so a row of cards, which is precisely the
   thing that must line up, stopped lining up. The card has a measured minimum
   width now (.wo-list), so the row fits; if a future card is ever narrower,
   the figures clip rather than the price moving. The alignment is the promise. */
.wo-card-foot{display:flex;align-items:center;gap:8px;flex-wrap:nowrap;margin-top:auto;padding-top:9px}
.wo-card-figs{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* The price is one fact, so it stays on one line.
   "from £3.50" is 82px of text in a 44px-wide slot on a narrow card, and
   without this it broke between the two words into a two-line block that made
   the footer 51px tall and dropped the number off the baseline the rest of the
   row sits on. A price that wraps is a price that is hard to read; the figures
   beside it are the thing allowed to clip. */
.wo-card-price{white-space:nowrap}
.wo-card-price{font-size:14px;font-weight:700}
.wo-card-age{font-size:10.5px;font-weight:700;letter-spacing:.03em;color:var(--ink-soft);
  border:1px solid var(--line);border-radius:4px;padding:2px 5px;background:var(--paper-2)}
.wo-card-tags{display:flex;flex-wrap:wrap;gap:5px}
.wo-card-tag{font-size:10.5px;color:var(--muted);background:var(--paper-2);
  border:1px solid var(--line);border-radius:var(--r-tag);padding:3px 8px}
/* Hashtags: one row, above the price, and the row's height never depends on
   the words in it. The chips are small rounded rectangles — the same 6px
   geometry as the rest of the card's controls, not the pill the organiser page
   uses for topics — so a tag reads as a label on this card rather than as a
   destination. */
.wo-card-tagrow{display:flex;align-items:center;gap:5px;margin-top:9px;min-width:0;overflow:hidden}
/* Which tags are shown is decided in the shell script by measuring whole
   chips, not by a count the server guesses at. Every tag is rendered; the fit
   pass keeps the tags that truly fit whole, hides the rest, and points the
   "+N" chip at however many it hid. Chips never shrink (flex:0 0 auto), so a
   word can never be squeezed into "afrobea…": a tag is either shown whole or
   not shown. The server marks every chip after the first hidden, so a reader
   whose script failed still sees one whole tag and an honest "+N". */
.wo-card-tagrow .wo-card-tag{flex:0 0 auto;font-size:10px;padding:2px 7px;
  white-space:nowrap;border-radius:6px}
.wo-card-tagrow .wo-card-tag.measuring{flex-shrink:0;max-width:none}
.wo-card-tagrow .wo-card-tag[hidden]{display:none}
.wo-card-tagrow .wo-card-more{flex:0 0 auto;font-size:10px;font-weight:700;color:var(--muted);
  padding:2px 6px;border:1px solid var(--line);border-radius:6px;background:var(--paper-2);
  white-space:nowrap}

.wo-event{display:flex;align-items:center;gap:14px;border:1px solid var(--line);border-radius:12px;padding:13px 16px;background:var(--panel);text-decoration:none;color:inherit;transition:.15s}
.wo-event:hover{border-color:var(--ink);transform:translateY(-1px)}
.wo-when{flex:none;width:76px;text-align:center;border-right:1px solid var(--line);padding-right:12px}
.wo-day{display:block;font-size:12px;font-weight:700;letter-spacing:.02em;text-transform:uppercase;color:var(--ink-soft)}
.wo-time{display:block;font-size:12px;color:var(--muted);margin-top:2px;font-variant-numeric:tabular-nums}
.wo-body{min-width:0;flex:1}
.wo-title{font-size:16px;font-weight:600;letter-spacing:-.01em;line-height:1.3}
.wo-meta{font-size:12.5px;color:var(--muted);margin-top:3px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.wo-thumb{flex:none;width:64px;height:64px;border-radius:9px;overflow:hidden;background:var(--paper-2);border:1px solid var(--line)}
.wo-thumb img{display:block;width:100%;height:100%;object-fit:cover}
.wo-bill{display:block;font-size:12.5px;color:var(--ink-soft);margin-top:4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.wo-tags{display:flex;flex-wrap:wrap;gap:5px;margin-top:6px}
.wo-tag{font-size:11px;color:var(--muted);background:var(--paper-2);border:1px solid var(--line);border-radius:var(--r-tag);padding:2px 8px}
.wo-go{flex:none;color:var(--muted);font-size:15px}
.wo-event:hover .wo-go{color:var(--accent)}
.ev-video{margin:0 0 20px;border-radius:14px;overflow:hidden;border:1px solid var(--line);background:#000}
.ev-video video{display:block;width:100%;max-height:420px;background:#000}
.ev-video-link{margin:0 0 20px}
.ev-video-link a{display:inline-block;font-size:14.5px;font-weight:600;color:var(--ink);
  border:1px solid var(--line);border-radius:10px;padding:10px 16px;background:var(--panel)}
.ev-video-link a:hover{border-color:var(--ink)}
.ev-desc{font-size:16px;line-height:1.65;color:var(--ink-soft);margin:0 0 22px;max-width:44em}
/* The fold sits tight under the text it belongs to, so the two read as one
   paragraph that happens to be shortened. */
.ev-more{margin:-14px 0 22px}
.ev-more>summary{cursor:pointer;list-style:none;display:inline-flex;align-items:center;gap:6px;
  font-size:13.5px;font-weight:650;color:var(--ink-soft);border-bottom:1px solid var(--line);
  padding-bottom:2px}
.ev-more>summary::-webkit-details-marker{display:none}
.ev-more>summary::after{content:"+";font-weight:400;font-size:15px;line-height:1}
.ev-more[open]>summary::after{content:"\2212"}
.ev-more>summary:hover{color:var(--ink);border-color:var(--ink-soft)}
.ev-more .cnt{font-weight:400;color:var(--muted);font-size:12px}
.ev-desc-rest{margin-top:12px}
.ev-type{display:inline-block;vertical-align:middle;margin-left:10px;font-size:11px;
  letter-spacing:.06em;text-transform:uppercase;font-weight:700;color:var(--muted);
  background:var(--paper-2);border:1px solid var(--line);border-radius:var(--r-tag);padding:4px 10px}
.ev-refund{display:flex;gap:12px;align-items:flex-start;border:1px solid var(--line);
  border-left:3px solid var(--accent);border-radius:0 12px 12px 0;background:var(--panel);
  padding:13px 16px;margin:18px 0}
.ev-refund-label{flex:none;font-size:11px;letter-spacing:.06em;text-transform:uppercase;
  font-weight:700;color:var(--muted);padding-top:2px}
.ev-refund-text{font-size:14px;line-height:1.55;color:var(--ink-soft)}
.ev-faq{margin:0 0 22px}
.faq-item{border:1px solid var(--line);border-radius:12px;background:var(--panel);
  padding:0;margin:0 0 8px;overflow:hidden}
.faq-item summary{cursor:pointer;padding:13px 16px;font-size:14.5px;font-weight:600;
  list-style:none;display:flex;justify-content:space-between;gap:12px;align-items:center}
.faq-item summary::-webkit-details-marker{display:none}
.faq-item summary::after{content:"+";flex:none;color:var(--muted);font-weight:400;font-size:18px;line-height:1}
.faq-item[open] summary::after{content:"\2212"}
.faq-a{padding:0 16px 14px;font-size:14px;line-height:1.6;color:var(--ink-soft)}
.ev-share{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:22px 0 6px}
.ev-ics{text-decoration:none;display:inline-flex;align-items:center}
/* The calendar disclosure. Collapsed by default so it does not clutter the
   action bar, but it opens in place — the decision to download happens here,
   so the warning has to be here and not on a page afterwards. */
.ev-ics-wrap{display:inline-block;position:relative}
/* The disclosure's own +/- marker is suppressed: the trigger is now a calendar
   mark that already contains a plus, and a second one beside it read as "add to
   something else" rather than as "open the note". */
.ev-ics-wrap>summary{list-style:none;display:inline-flex;align-items:center;gap:0}
.ev-ics-wrap>summary::-webkit-details-marker{display:none}
.ev-ics-wrap>summary::after{content:none!important}
.ev-ics-wrap[open]>summary::after{content:none!important}
/* The note opens BELOW the row rather than inside it.
   Inline, it was a full-width block in the middle of four controls: the bar
   reflowed, the buttons jumped, and on a phone the row became two rows plus a
   panel. Absolute positioning keeps the four controls where they are and lays
   the panel over the page, which is what a disclosure of this kind should do. */
.ev-ics-note{position:absolute;left:-8px;top:calc(100% + 8px);z-index:25;
  width:min(84vw,330px);max-width:calc(100vw - 32px);
  padding:12px 14px;border:1px solid var(--line);
  border-radius:12px;background:var(--paper-2);font-size:12.5px;line-height:1.55;
  color:var(--ink-soft);box-shadow:0 8px 28px rgba(0,0,0,.45)}
/* On a phone the calendar mark sits left of centre, so a panel anchored to its
   left edge runs off the screen. Pulled back by the width difference. */
@media(max-width:520px){.ev-ics-note{left:auto;right:-150px;width:min(86vw,308px)}}
.ev-ics-note p{margin:0 0 7px;font-size:12.5px}
.ev-ics-note b{color:var(--ink)}
.ev-ics-note .ev-ics{margin-top:4px;padding:9px 15px;font-size:13px}
/* .ev-share-btn and a.ev-share-link are gone: the three secondary controls in
   the action bar are .ev-icon now. Noted rather than deleted silently, because
   this is the change most likely to be wondered about later — the words
   "Share", "Report" and "Add to calendar" no longer appear in that markup, only
   in title and aria-label. A future labelled control in that bar uses .btn for
   the primary and .ev-icon for the rest. */
.ev-h{font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);font-weight:700;margin:0 0 10px}
.lineup{margin:0 0 22px}
.lineup-group{margin:0 0 14px}
.lineup-group:last-child{margin-bottom:0}
.lineup-group .ev-h{margin-bottom:8px}
.lineup-list{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:8px}
/* Soft-cornered rectangle, not a pill. The product's shape language is rounded
   rectangles — cards, inputs, buttons all sit on 10-14px — so a capsule here
   was the one element on the page speaking a different language. Two radii on
   one small chip side by side made the bill look like a different app. */
.lineup-list li{border:1px solid var(--line);border-radius:10px;padding:7px 12px;background:var(--panel);font-size:14px}
.lineup-name{font-weight:600}
.lineup-name[href]:hover{text-decoration:underline}
/* The confirmed mark: this person has a wullit account and accepted the invite.
   Deliberately the same --ok green the rest of the product uses for "this is
   real", and drawn as a bare glyph rather than a filled disc so it reads inside
   a chip instead of fighting the boxed social icons beside it.

   What it does NOT mean: nothing is shown for a decline or a pending request.
   A missing tick is "nothing to confirm", never "they said no". */
.lineup-tick{display:inline-flex;align-items:center;margin-left:7px;color:var(--ok)}
.lineup-tick svg{width:14px;height:14px;display:block}
.lineup-marks{display:inline-flex;align-items:center;gap:4px;margin-left:8px;
  vertical-align:-3px}
.lineup-ico{display:inline-flex;align-items:center;justify-content:center;width:22px;
  height:22px;border-radius:6px;color:var(--muted);border:1px solid var(--line);
  background:var(--panel)}
.lineup-ico:hover{color:var(--ink);border-color:var(--ink)}
.lineup-ico .soc-i{width:12px;height:12px}
/* The fold for a long bill. Same shape as the description's Read more and as
   the "More" control on a profile's marks — one idiom for "there is more of
   this", so a reader does not have to learn three. */
.lineup-more{margin:6px 0 0}
.lineup-more>summary{cursor:pointer;list-style:none;display:inline-flex;align-items:center;
  gap:6px;font-size:13.5px;font-weight:650;color:var(--ink-soft);
  border-bottom:1px solid var(--line);padding-bottom:2px}
.lineup-more>summary::-webkit-details-marker{display:none}
.lineup-more>summary::after{content:"+";font-weight:400;font-size:15px;line-height:1}
.lineup-more[open]>summary::after{content:"\2212"}
.lineup-more>summary:hover{color:var(--ink);border-color:var(--ink-soft)}
.lineup-more .cnt{font-weight:400;color:var(--muted);font-size:12px}
.lineup-more .lineup-group:first-of-type{margin-top:14px}
.ev-tags{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 20px}
.ev-tag{font-size:12.5px;color:var(--muted);background:var(--paper-2);border:1px solid var(--line);border-radius:var(--r-tag);padding:4px 10px}
.dcnote{font-size:12.5px;color:var(--muted);margin:6px 0 14px}
.dcerr{border-left:3px solid var(--accent);background:var(--accent-soft);border-radius:0 8px 8px 0;padding:12px 14px;font-size:14px;margin:0 0 16px}
.dcok{border-left:3px solid #2F7D4F;background:rgba(47,125,79,.1);border-radius:0 8px 8px 0;padding:12px 14px;font-size:14px;margin:0 0 16px}
/* The subscribe address is meant to be copied, not read. Monospace, selectable
   on one tap, no letter-spacing games — it is a URL, and it needs to look like
   one so people trust pasting it. */
.calurl{margin:0 0 8px}
.calurl input{width:100%;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;
  font-size:13px;padding:11px 12px;border:1px solid var(--line);border-radius:10px;
  background:var(--paper-2);color:var(--ink);letter-spacing:0;text-transform:none;
  text-align:left;-webkit-user-select:all;user-select:all}
.btn.danger{background:#B3261E;color:#fff}
.btn.danger:hover{background:#8F1E17}
.statusrow{display:flex;gap:10px;flex-wrap:wrap}
.statusrow .btn{margin:0}
.coll-row{cursor:pointer;display:flex;align-items:center;gap:14px}
.coll-row input[type=checkbox]{width:18px;height:18px;flex:none;margin:0}
.dcode{font-size:14.5px;font-weight:700;letter-spacing:.04em}

/* ---------- image upload ---------- */
.uploadrow{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:8px 0 2px}
.uploadrow .upbtn{margin:0;padding:8px 14px;font-size:13px;border-radius:9px}
.upinfo{flex:none;width:24px;height:24px;border-radius:50%;border:1px solid var(--line);background:transparent;color:var(--muted);font-size:12px;font-weight:700;font-style:italic;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center;padding:0;font-family:Georgia,serif}
.upinfo:hover,.upinfo[aria-expanded="true"]{border-color:var(--ink);color:var(--ink)}
.upnote{flex-basis:100%;font-size:12.5px;line-height:1.55;color:var(--muted);background:var(--paper-2);border-radius:10px;padding:12px 14px;margin-top:2px}
.uploadrow .upstatus{flex-basis:100%;margin:0}
/* ---------- refund queue ---------- */
.rf{border:1px solid var(--line);border-radius:14px;background:var(--panel);
  padding:15px 17px;margin:12px 0}
.rf-done{opacity:.8}
.rf-head{display:flex;justify-content:space-between;gap:14px;align-items:flex-start}
.rf-event{font-size:16px;font-weight:700;color:var(--ink);text-decoration:none}
.rf-event:hover{text-decoration:underline;text-underline-offset:3px}
.rf-meta{font-size:13px;color:var(--muted);margin-top:3px}
.rf-code{margin-top:5px}
.rf-code code{font-size:11px;background:var(--paper-2);padding:1px 5px;border-radius:4px;
  border:1px solid var(--line)}
.rf-when{font-size:12px;color:var(--muted);flex:none}
.rf-reason{margin:11px 0 0;font-size:14px;line-height:1.55;color:var(--ink-soft);
  border-left:2px solid var(--line);padding-left:11px}
.rf-policy{margin:11px 0 0;font-size:12.5px;line-height:1.6;color:var(--ink-soft);
  background:var(--paper-2);border:1px solid var(--line);border-radius:9px;padding:9px 11px}
.rf-policy b{display:block;font-size:10.5px;letter-spacing:.07em;text-transform:uppercase;
  color:var(--muted);margin-bottom:3px}
.rf-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px;align-items:center}
.rf-actions input{flex:1 1 200px;font-size:14px;padding:9px 11px;border-radius:9px;
  border:1px solid var(--line);background:var(--paper-2);color:var(--ink);
  letter-spacing:0;text-transform:none;text-align:left}
.rf-actions .btn{margin:0;padding:9px 16px;font-size:14px}
.rf-warn{margin:9px 0 0;font-size:12px;color:var(--muted);line-height:1.55}
.rf-decided{display:flex;gap:10px;align-items:center;margin-top:11px;font-size:12.5px;flex-wrap:wrap}
.rf-history{margin:26px 0 0;border-top:1px solid var(--line);padding-top:14px}
.rf-history>summary{cursor:pointer;font-size:15px;font-weight:700;list-style:none;margin-bottom:6px}
.rf-history>summary::-webkit-details-marker{display:none}

.tk-refund{margin-top:10px;padding:11px 13px;border:1px solid var(--line);
  border-radius:10px;background:var(--paper-2)}
.tk-refund-t{font-size:13px;font-weight:650;margin-bottom:4px}
.tk-refund-p{margin:0 0 8px;font-size:12.5px;line-height:1.55;color:var(--muted)}
.tk-refund form{margin:0}
.tk-refund .btn{padding:8px 13px;font-size:13px}
.tk-refund-open{border-color:var(--accent)}
.tk-refund-open .tk-refund-t{color:var(--accent)}


.authbody{background:var(--paper);min-height:100vh;display:flex;align-items:center;
  justify-content:center;padding:28px 18px}
.authwrap{width:100%;max-width:420px}
.authbrand{display:flex;align-items:center;justify-content:center;gap:9px;
  font-weight:700;font-size:22px;letter-spacing:-.035em;color:var(--ink);
  text-decoration:none;margin-bottom:22px}
.authcard{position:relative;background:var(--panel);border:1px solid var(--line);
  border-radius:18px;padding:32px 28px 28px}
.authcard h1{font-size:26px;letter-spacing:-.03em;margin:0 0 6px}
.authcard .muted{font-size:14.5px;margin-bottom:4px}
.authcard .auth{max-width:none;margin-top:20px}
.authcard .btn.wide{width:100%;justify-self:stretch;text-align:center;margin-top:22px;padding:15px}
.authcard .btn.passkey{width:100%;background:transparent;color:var(--ink);
  border:1px solid var(--line);display:flex;align-items:center;justify-content:center;
  gap:9px;font-weight:600;padding:14px;margin-top:0}
.authcard .btn.passkey:hover{border-color:var(--ink);background:var(--paper-2)}
.authcard .btn.passkey svg{width:19px;height:19px;flex:0 0 auto}
/* The passkey is the primary door, so it takes the filled accent and the email
   form steps back to an outline. Two filled buttons stacked would read as two
   equal choices, which is the opposite of what the order is saying. */
.authcard .btn.passkey.primary{background:var(--accent);color:#fff;border-color:var(--accent);
  font-weight:650;padding:16px 18px;margin-top:18px;font-size:15.5px}
.authcard .btn.passkey.primary:hover{background:var(--accent);color:#fff;border-color:var(--accent);opacity:.92}
.authcard .btn.passkey.primary svg{width:20px;height:20px}
.authcard .btn.secondary{background:transparent;color:var(--ink);border:1px solid var(--line)}
.authcard .btn.secondary:hover{border-color:var(--ink);background:var(--paper-2)}
.orsep{position:relative;text-align:center;margin:22px 0 18px}
.orsep::before{content:"";position:absolute;left:0;right:0;top:50%;border-top:1px solid var(--line)}
.orsep span{position:relative;background:var(--panel);padding:0 12px;font-size:12px;
  text-transform:uppercase;letter-spacing:.1em;color:var(--muted)}
.authcard .hint{margin:12px 0 0;font-size:13px;color:var(--muted);text-align:center}
/* Username plus the "suggest one" button on one line. The button sits beside
   the field rather than under it so the suggestion lands in a place the person
   is already looking, and the field keeps its full width minus the button. */
.userrow{display:flex;gap:8px;align-items:stretch}
.userrow input{flex:1 1 auto;min-width:0}
.userrow .genbtn{flex:0 0 auto;align-self:center;white-space:nowrap;font-size:13px;
  padding:8px 12px;border:1px solid var(--line);border-radius:10px;
  background:var(--panel);color:var(--ink-soft);text-decoration:none;margin:0}
.userrow .genbtn:hover{border-color:var(--ink);color:var(--ink)}
.userrow .genbtn:disabled{opacity:.55;cursor:default}
.authcard .alt{margin:22px 0 0;padding-top:18px;border-top:1px solid var(--line);
  font-size:14.5px;color:var(--muted);text-align:center}
/* The sign-up invitation, above the form.
   A filled row rather than a line of underlined text: it is an offer, not a
   footnote, and it has to be the second thing read on the page. */
.signupcta{display:flex;align-items:center;justify-content:space-between;gap:10px;
  margin:16px 0 2px;padding:13px 15px;border-radius:12px;
  background:var(--accent-soft);border:1px solid var(--accent);
  color:var(--ink);font-size:14.5px;line-height:1.3;text-decoration:none}
.signupcta:hover{background:var(--accent);color:#fff}
.signupcta b{font-weight:650}
.signupcta svg{width:17px;height:17px;flex:0 0 auto}
/* The password door for an existing member, in the same centred accent line as
   the recovery link under it, rather than the muted left-aligned underline it
   used to be. It sits where the next choice is read, not off to one side. */
.authcard .pwline{margin:12px 0 0;font-size:13px;color:var(--muted);text-align:center}
.authcard .pwline a{color:var(--accent);text-decoration:underline;text-underline-offset:2px}
.authfoot{text-align:center;font-size:12px;color:var(--muted);margin:20px 0 0}
.authfoot a{color:inherit;text-decoration:underline;text-underline-offset:2px}
@media (max-width:480px){
  .authcard{padding:26px 20px 22px}
  .authcard h1{font-size:23px}
}
