/* CircleUp HQ, the ops console (R-1305). Built to James's second "CircleUp HQ" mockup (27 Oct 2026):
   Reviews/2026-10-27 Ops board design reference 2.webp. Colours are measured from that image; sizes are
   the image's own pixels at 1536 wide. Source Serif 4 (display cut) for headings, Inter Tight for everything read. */

@font-face { font-family: 'Source Serif 4'; font-weight: 200 900; font-display: swap; src: url('/fonts/SourceSerif4-Variable.woff2') format('woff2'); }
@font-face { font-family: 'Inter Tight'; font-weight: 400; font-display: swap; src: url('/fonts/InterTight-400.woff2') format('woff2'); }
@font-face { font-family: 'Inter Tight'; font-weight: 500; font-display: swap; src: url('/fonts/InterTight-500.woff2') format('woff2'); }
@font-face { font-family: 'Inter Tight'; font-weight: 600; font-display: swap; src: url('/fonts/InterTight-600.woff2') format('woff2'); }

:root {
  color-scheme: light;
  --bg: #FAF8F4;          /* page and panel */
  --side: #F6F4F0;        /* sidebar */
  --field: #F6F4F0;       /* search and filter boxes */
  --card: #FCFBF8;        /* outlined cards in the panel */
  --line: #E8E5DF;        /* box outlines */
  --hair: #EEECE7;        /* row and section rules */
  --display: #0B2A30;     /* serif headings and the logo */
  --ink: #1E2C30;         /* body text */
  --muted: #5B6669;       /* secondary text */
  --faint: #7D8687;
  --teal: #0C343B;        /* the primary button and active tab rule */
  --on-teal: #F4FAF8;
  --nav-on: #E8EDE9;
  --red: #C83C35; --red-soft: #FCE3E0; --red-ink: #8A3635; --red-row: #FBF0ED; --count: #C9403E;
  --amber-soft: #FDEACA; --amber-ink: #6A512D;
  --green: #2D836B; --green-soft: #E1EEE7; --green-ink: #2A6653;
  --quiet-soft: #EFEDE8; --quiet-ink: #5B6669;
  --track: #EBE9E4;
  --notes: #F2F0EB;
  --gold: #9F7543;
  --shadow: rgba(30, 30, 20, 0.10);
  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --sans: 'Inter Tight', 'Inter', -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  --sidebar: 210px; --panel: 439px; --r: 6px; --r-card: 8px;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #0B1C20; --side: #0E2328; --field: #12292F; --card: #10262B; --line: #22393F; --hair: #1B3238;
    --display: #F3EFE6; --ink: #E6E2D8; --muted: #9AA7A9; --faint: #7F8C8E;
    --teal: #F1E9C9; --on-teal: #0B1C20; --nav-on: #17343A;
    --red: #E2675F; --red-soft: rgba(226, 103, 95, 0.16); --red-ink: #F2A49D; --red-row: rgba(226, 103, 95, 0.08); --count: #D9544C;
    --amber-soft: rgba(214, 170, 92, 0.18); --amber-ink: #E4C58E;
    --green: #5DB394; --green-soft: rgba(93, 179, 148, 0.16); --green-ink: #9CD3BE;
    --quiet-soft: #17303A; --quiet-ink: #9AA7A9; --track: #1E363C; --notes: #12292F; --gold: #C89A62; --shadow: rgba(0, 0, 0, 0.4);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.45 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
/* The serif's optical size, tuned against the mockup: large type slightly wider, small titles narrower. */
h1, .logo, .sec h2, .card h2 { font-variation-settings: 'opsz' 32; }
.ev-title, .dtitle h1, .thumb { font-variation-settings: 'opsz' 60; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; color: var(--display); margin: 0; letter-spacing: -0.01em; }
p { margin: 0 0 8px; }
button { font: inherit; color: inherit; }
.mute { color: var(--muted); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.error { color: var(--red-ink); }
.okmsg { color: var(--green-ink); }
.pre { white-space: pre-wrap; }
svg.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ── Shell ────────────────────────────────────────────────────────────────── */
.shell { display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); min-height: 100vh; }
.shell.with-panel { grid-template-columns: var(--sidebar) minmax(0, 1fr) var(--panel); }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; background: var(--side); border-right: 1px solid var(--hair); }
.logo { display: flex; align-items: center; gap: 11px; height: 65px; padding: 0 20px; border-bottom: 1px solid var(--hair); text-decoration: none; font-family: var(--serif); font-weight: 650; font-size: 22px; letter-spacing: -0.02em; color: var(--display); white-space: nowrap; }
.logo svg { width: 38px; height: 38px; flex: none; }
.nav { display: flex; flex-direction: column; padding: 15px 13px 0; }
.nav a, .nav .soon { display: flex; align-items: center; gap: 22px; height: 43px; margin-bottom: 4px; padding: 0 15px; border-radius: var(--r-card); text-decoration: none; font-size: 15px; color: var(--ink); }
.nav a:hover { background: rgba(12, 52, 59, 0.05); }
.nav a.on { background: var(--nav-on); font-weight: 500; }
.nav .soon { cursor: default; }
.nav .count { margin-left: auto; }
.nav hr { border: 0; border-top: 1px solid var(--hair); margin: 16px 7px 21px; }
.count { display: inline-flex; align-items: center; justify-content: center; min-width: 21px; height: 21px; padding: 0 6px; border-radius: 999px; background: var(--count); color: #fff; font-size: 12px; font-weight: 600; line-height: 1; }
.count.gold { background: var(--gold); }
.who { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 14px 20px 18px; border-top: 1px solid var(--hair); font-size: 13px; }
.who div { min-width: 0; line-height: 1.3; }
.who b { display: block; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who .link { margin-left: auto; white-space: nowrap; }

.main { min-width: 0; }
.content { padding: 65px 27px 32px 33px; max-width: 1240px; }
.content.narrow { max-width: 460px; margin: 0 auto; padding-top: 72px; }
.narrow .logo { border: 0; padding: 0; height: auto; margin-bottom: 28px; }

/* ── Page head ────────────────────────────────────────────────────────────── */
.pagehead { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin: 0 0 19px; }
.pagehead h1 { font-size: 44px; line-height: 1.05; font-weight: 650; letter-spacing: -0.02em; margin-top: 12px; }
.pagehead p { margin: 4px 0 0; font-size: 18px; letter-spacing: .012em; color: var(--muted); }
.split { position: relative; display: inline-flex; margin-top: 18px; }
.split .btn { border-radius: var(--r) 0 0 var(--r); padding: 0 4px 0 14px; gap: 8px; }
.split .btn + .btn { border-radius: 0 var(--r) var(--r) 0; border-left: 0; padding: 0 16px 0 16px; }
.menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 5; width: 280px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: 0 8px 24px var(--shadow); padding: 6px; }
.menu a, .menu button, .menu p { display: block; width: 100%; text-align: left; padding: 9px 10px; border: 0; background: none; border-radius: var(--r); font-size: 13.5px; text-decoration: none; cursor: pointer; margin: 0; }
.menu a:hover, .menu button:hover { background: var(--field); }
.menu p { color: var(--muted); cursor: default; font-size: 12.5px; }

/* ── Buttons and fields ───────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 40px; padding: 0 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); color: var(--ink); font-size: 14px; font-weight: 500; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--field); }
.btn.primary { background: var(--teal); border-color: var(--teal); color: var(--on-teal); }
.btn.primary:hover { filter: brightness(1.15); }
.btn.outline { height: 32px; padding: 0 12px; font-size: 13.5px; border-color: #D9D5CE; background: var(--card); }
.btn.bad { background: var(--red); border-color: var(--red); color: #fff; }
.btn.small { height: 32px; padding: 0 12px; font-size: 13px; }
.btn[disabled] { opacity: .45; cursor: default; }
.btn svg.i { width: 18px; height: 18px; }
.link { background: none; border: 0; padding: 2px; font-size: inherit; font-weight: 500; color: var(--display); cursor: pointer; text-decoration: none; }
.link:hover { text-decoration: underline; }
.back { display: inline-block; margin: 0 0 12px; font-size: 13px; }
input, select, textarea { font: inherit; color: inherit; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 8px 12px; min-height: 40px; max-width: 100%; }
textarea { min-height: 80px; resize: vertical; }
input:focus, select:focus, textarea:focus, .btn:focus-visible, button:focus-visible, a:focus-visible { outline: 2px solid var(--teal); outline-offset: 1px; }
input[type=checkbox] { min-height: 0; width: 16px; height: 16px; accent-color: var(--teal); margin: 0; }
label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; color: var(--muted); }
label.check { flex-direction: row; align-items: center; gap: 8px; color: var(--ink); }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); padding: 16px 18px; margin: 0 0 14px; }
.card h2 { font-size: 18px; margin-bottom: 10px; }

/* ── Tabs ─────────────────────────────────────────────────────────────────── */
.tabs { display: flex; gap: 0; border-bottom: 1px solid var(--hair); margin: 0 0 22px; overflow-x: auto; scrollbar-width: none; }
.tabs button { display: inline-flex; align-items: center; gap: 9px; height: 46px; padding: 0 22px 2px; margin-bottom: -1px; border: 0; border-bottom: 2px solid transparent; background: none; font-size: 15.5px; letter-spacing: -.01em; color: var(--muted); cursor: pointer; white-space: nowrap; }
.tabs button:first-child { padding-left: 3px; }
.tabs button.on { color: var(--display); font-weight: 600; border-bottom-color: var(--teal); }
.tabs button[disabled] { cursor: default; opacity: .55; }

/* ── Filters ──────────────────────────────────────────────────────────────── */
.filters { position: relative; display: flex; gap: 10px; align-items: center; margin: 0 0 34px; }
.search { position: relative; flex: 0 1 294px; min-width: 0; }
.search svg.i { position: absolute; left: 12px; top: 10px; color: var(--ink); }
.search input { width: 100%; padding-left: 44px; }
.filters input, .filters select, .filters .ibtn { background: var(--field); border-color: var(--line); height: 40px; font-size: 14px; }
.filters input::placeholder { color: #858D8F; }
.filters select { appearance: none; -webkit-appearance: none; padding: 0 36px 0 13px; color: var(--ink); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%231E2C30' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; cursor: pointer; }
.filters select.city { width: 114px; margin-left: 0; }
.filters select.type { width: 113px; margin-left: 6px; }
.daterange { position: relative; margin-left: 4px; }
.daterange svg.i { position: absolute; left: 13px; top: 10px; pointer-events: none; }
.daterange select { width: 210px; padding-left: 47px; }
.ibtn { width: 40px; flex: none; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: var(--r); cursor: pointer; position: relative; margin-left: 4px; }
.ibtn.on::after { content: ''; position: absolute; top: 7px; right: 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--count); }
.more { position: absolute; right: 0; top: 48px; z-index: 5; width: 300px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: 0 8px 24px var(--shadow); padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.more select { width: 100%; }

/* ── The events table ─────────────────────────────────────────────────────── */
.events { list-style: none; margin: 0; padding: 0; }
.thead, .event { display: grid; grid-template-columns: minmax(0, 281px) minmax(0, 92px) minmax(0, 118px) minmax(0, 104px) minmax(0, 1fr) 20px; align-items: center; }
.thead { height: 20px; margin: 0 0 9px; padding: 0 3px; font-size: 11px; font-weight: 500; letter-spacing: .03em; text-transform: uppercase; color: var(--muted); }
.thead button { border: 0; background: none; padding: 0; font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.thead .team-tag { margin-left: 6px; }
.events > li.r { border-top: 1px solid var(--hair); }
.events > li.r:first-of-type { border-top-color: transparent; }
.events > li.r.on + li.r, .events > li.r.on { border-top-color: transparent; }
.event { min-height: 69px; padding: 4px 12px 4px 2px; margin: 0 -9px; padding-left: 11px; border-radius: var(--r-card); text-decoration: none; color: inherit; }
.event:hover { background: rgba(12, 52, 59, 0.035); }
.event.on { background: var(--red-row); }
.event.on.calm { background: var(--nav-on); }
.ev-main { display: flex; align-items: center; gap: 18px; min-width: 0; }
.thumb { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; background: var(--nav-on); color: var(--display); display: inline-flex; align-items: center; justify-content: center; font-family: var(--serif); font-weight: 600; font-size: 20px; }
.ev-text { min-width: 0; }
.ev-title { font-family: var(--serif); font-weight: 650; font-size: 15.5px; line-height: 1.3; color: var(--display); letter-spacing: -0.02em; }
.ev-type { margin-top: 3px; font-size: 13px; color: var(--muted); }
.ev-type .pill { margin-left: 6px; }
.ev-city { font-size: 14px; color: var(--ink); }
.ev-when { font-size: 14px; line-height: 1.5; color: var(--ink); }
.ev-when span { display: block; color: var(--muted); }
.ev-going { font-size: 14px; color: var(--muted); }
.bar { height: 5px; width: 73px; border-radius: 999px; background: var(--track); margin-top: 9px; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 999px; background: var(--green); }
.bar i.low { background: var(--red); }
.issues { display: flex; gap: 8px; flex-wrap: wrap; }
.chev { color: var(--ink); justify-self: end; }
.chev svg.i { width: 16px; height: 16px; }
.ev-last { grid-column: 1 / -1; margin: 2px 0 4px 74px; font-size: 12px; color: var(--muted); }
.empty { padding: 40px 12px; text-align: center; color: var(--muted); border-top: 1px solid var(--hair); }
.listfoot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 16px 3px 0; border-top: 1px solid var(--hair); margin-top: 0; font-size: 12.5px; color: var(--muted); }
.listfoot .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--green); margin-right: 7px; vertical-align: 1px; }
.listfoot .dot.stale { background: var(--red); }

/* ── Chips ────────────────────────────────────────────────────────────────── */
.pill { display: inline-flex; align-items: center; gap: 4px; height: 25px; padding: 0 9px; border-radius: var(--r); font-size: 12.5px; line-height: 1; white-space: nowrap; }
.pill.bad { background: var(--red-soft); color: var(--red-ink); }
.pill.warn { background: var(--amber-soft); color: var(--amber-ink); }
.pill.good { background: var(--green-soft); color: var(--green-ink); }
.pill.quiet { background: var(--quiet-soft); color: var(--quiet-ink); }
.pill.sm { height: 22px; font-size: 12px; padding: 0 8px; }
.ovr { font-style: italic; opacity: .8; font-size: 11px; }
.badge { display: inline-block; font-size: 11.5px; border-radius: 5px; padding: 2px 7px; border: 1px solid var(--line); color: var(--muted); }
.badge.self { color: var(--green-ink); background: var(--green-soft); border-color: transparent; }
.badge.none { color: var(--red-ink); }
/* Anything members cannot see in the app carries this mark (James, 27 Oct 2026). */
.team-tag { display: inline-block; font-family: var(--sans); font-size: 9.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--faint); border: 1px dashed var(--faint); border-radius: 4px; padding: 1px 4px; margin-left: 6px; vertical-align: middle; line-height: 1.35; }
.ops-only { border-left: 3px dashed var(--line); padding-left: 8px; }
.ops-only::before { content: "Team only"; margin-right: 6px; font-size: 9.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--faint); }

/* ── Avatars ──────────────────────────────────────────────────────────────── */
.avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex: none; background: #E4E7E3; color: var(--display); display: inline-flex; align-items: center; justify-content: center; font-size: 12.5px; font-weight: 600; }
.avatar.t2 { background: #EDE6DA; }
.avatar.t3 { background: #E8E0DC; }
@media (prefers-color-scheme: dark) { .avatar, .avatar.t2, .avatar.t3 { background: var(--nav-on); } }

/* ── The event panel ──────────────────────────────────────────────────────── */
.panel { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--bg); border-left: 1px solid var(--hair); }
.detail { padding-bottom: 32px; }
.hero { position: relative; height: 144px; background: var(--nav-on); overflow: hidden; }
.hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.close { position: absolute; top: 18px; right: 19px; width: 38px; height: 38px; border-radius: var(--r); background: #F7F6F0; color: #1E2C30; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 1px 4px var(--shadow); text-decoration: none; }
.close svg.i { width: 18px; height: 18px; stroke-width: 2; }
.dhead { padding: 18px 21px 0; }
.dtitle { display: flex; align-items: center; gap: 14px; }
.dtitle h1 { font-size: 22px; line-height: 1.2; font-weight: 650; letter-spacing: -0.025em; }
.dtitle .pill { height: 23px; font-size: 12px; padding: 0 8px; border-radius: 4px; flex: none; }
.kebab { margin-left: auto; margin-right: -7px; }
.kebab > button { width: 26px; height: 26px; }
.kebab { margin-left: auto; position: relative; }
.kebab > button { width: 32px; height: 32px; border: 0; background: none; border-radius: var(--r); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.kebab > button:hover { background: var(--field); }
.dmeta { margin: 0; font-size: 15px; color: var(--muted); line-height: 1.6; }
.dmeta b { font-weight: 500; color: var(--ink); }
.dhead .tabs { margin: 26px 0 0; }
.dhead .tabs button { height: 36px; padding: 0 11px 2px; font-size: 13.5px; }
.dhead .tabs button:first-child { padding-left: 0; }
.dhead .tabs button.on { font-weight: 500; }
.sec { margin: 0 21px; padding: 19px 0 16px; border-bottom: 1px solid var(--hair); }
.sec:last-child { border-bottom: 0; }
.sec h2 { display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.sec h2 .aside { margin-left: auto; font-family: var(--sans); font-size: 13.5px; font-weight: 400; color: var(--display); }
.sec h2 .aside.n { font-size: 15px; }
.todo { list-style: none; padding: 0; margin: 0; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--card); }
.todo li { display: grid; grid-template-columns: 22px 1fr auto; gap: 0 13px; align-items: start; padding: 10px 14px 10px 8px; }
.todo li + li { border-top: 1px solid var(--line); }
.todo .dotwrap { width: 22px; height: 22px; border-radius: 50%; background: var(--red-soft); display: inline-flex; align-items: center; justify-content: center; margin-top: 1px; }
.todo .dotwrap i { width: 9px; height: 9px; border-radius: 50%; background: var(--red); }
.todo .dotwrap.warn { background: var(--amber-soft); }
.todo .dotwrap.warn i { background: #C7922F; }
.todo .dotwrap.quiet { background: var(--quiet-soft); }
.todo .dotwrap.quiet i { background: var(--faint); }
.todo .dotwrap.good { background: var(--green-soft); }
.todo .dotwrap.good i { background: var(--green); }
.todo b { display: block; font-weight: 400; font-size: 14px; color: var(--ink); }
.todo span.sub { display: block; font-size: 13px; color: var(--muted); line-height: 1.5; }
.todo .btn { align-self: center; }
.reason { margin: 12px 0 0; font-size: 12.5px; color: var(--muted); }
details summary { cursor: pointer; font-size: 13px; font-weight: 500; color: var(--display); margin-top: 10px; }
.statuslist { list-style: none; padding: 0; margin: 8px 0 0; }
.statuslist li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px; padding: 6px 0; border-bottom: 1px solid var(--hair); font-size: 13px; }
.statuslist li:last-child { border-bottom: 0; }
.statuslist .sub { flex-basis: 100%; font-size: 12px; color: var(--muted); }
.facts { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; }
.facts li { display: grid; grid-template-columns: 22px 98px 1fr; gap: 0 10px; align-items: start; font-size: 13.5px; }
.facts svg.i { width: 17px; height: 17px; margin-top: 1px; color: var(--ink); }
.facts .k { color: var(--ink); }
.facts .v { color: var(--ink); }
.facts .v span { display: block; color: var(--muted); }
.facts .v a { display: inline-flex; vertical-align: -3px; margin-left: 6px; color: var(--ink); }
.facts .v a svg.i { width: 15px; height: 15px; }
.nextcard { border: 1px solid var(--line); border-radius: var(--r-card); background: var(--card); }
.nextcard > button { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 12px; width: 100%; padding: 13px 18px 13px 23px; border: 0; background: none; text-align: left; cursor: pointer; }
.nextcard b { font-weight: 400; font-size: 14px; }
.nextcard .when { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); grid-column: 1; }
.nextcard .when svg.i { width: 17px; height: 17px; color: var(--ink); }
.nextcard .chev { grid-row: 1 / 3; grid-column: 2; }
.nextcard .inner { padding: 0 18px 14px 23px; display: flex; flex-direction: column; gap: 10px; }
.notebox { background: var(--notes); border-radius: var(--r); padding: 12px 15px; font-size: 13px; line-height: 1.6; color: var(--ink); }
.notebox + .notebox { margin-top: 8px; }
.notebox .by { display: block; color: var(--muted); font-size: 12px; margin-top: 4px; }
.plain { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-direction: column; gap: 8px; }
.hostline { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.picks { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { height: 30px; padding: 0 11px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); font-size: 13px; cursor: pointer; }
.chip:hover { background: var(--field); }
.editor { border-top: 1px solid var(--hair); padding-top: 12px; }
.guests { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.guests li { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; }
.guests b { font-weight: 500; }
.danger summary { color: var(--red-ink); margin-top: 0; }
/* As a page (phones, narrow screens, a shared link) */
.content > .detail { max-width: 720px; padding-top: 0; }
.content > .detail .hero { border-radius: var(--r-card); height: 200px; }
.content > .detail .dhead, .content > .detail .sec { padding-left: 0; padding-right: 0; margin-left: 0; margin-right: 0; }

/* ── Venues and rules ─────────────────────────────────────────────────────── */
.venue .row b { font-family: var(--serif); font-size: 16px; font-weight: 600; color: var(--display); }
.counter { font-size: 13px; color: var(--muted); margin: 0 0 10px; }
.scroll-x { overflow-x: auto; }
table.rules { border-collapse: collapse; font-size: 13px; width: 100%; }
table.rules th, table.rules td { padding: 6px 8px; border-bottom: 1px solid var(--hair); text-align: left; white-space: nowrap; }
table.rules th { font-size: 11px; font-weight: 500; letter-spacing: .03em; text-transform: uppercase; color: var(--muted); }
table.rules input { min-height: 32px; padding: 4px 8px; }
.filters.simple { flex-wrap: wrap; margin-bottom: 18px; }
.filters.simple input[type=search] { flex: 1 1 260px; }

/* ── Narrow screens and phones ────────────────────────────────────────────── */
@media (max-width: 1099px) {
  .shell, .shell.with-panel { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; border-right: 0; border-bottom: 1px solid var(--hair); padding: 6px 10px 4px; }
  .logo { height: 46px; padding: 0 6px; border: 0; font-size: 19px; }
  .logo svg { width: 30px; height: 30px; }
  .who { order: 2; margin: 0 0 0 auto; padding: 0 6px; border: 0; }
  .who div { display: none; }
  .nav { order: 3; flex-basis: 100%; flex-direction: row; padding: 0; overflow-x: auto; scrollbar-width: none; }
  .nav a { height: 36px; margin: 0 2px 0 0; padding: 0 12px; gap: 8px; font-size: 14px; white-space: nowrap; }
  .nav .soon, .nav hr, .nav a svg.i { display: none; }
  .content { padding: 20px 16px 40px; }
  .pagehead { flex-wrap: wrap; margin-bottom: 18px; }
  .pagehead h1 { font-size: 34px; margin-top: 0; }
  .pagehead p { font-size: 15px; margin-top: 6px; }
  .split { margin-top: 0; }
  .tabs { margin-bottom: 16px; }
  .tabs button { font-size: 15px; padding: 0 14px 2px; height: 42px; }
  .filters { flex-wrap: wrap; margin-bottom: 18px; }
  .search { flex: 1 1 100%; }
  .filters select.city, .filters select.type { flex: 1 1 calc(50% - 5px); width: auto; margin: 0; }
  .daterange { flex: 1 1 auto; margin: 0; }
  .daterange select { width: 100%; }
  .thead { display: none; }
  .events { display: flex; flex-direction: column; gap: 10px; }
  .events > li.r { border-top: 0; }
  .event { grid-template-columns: 1fr auto; grid-template-areas: "main chev" "when going" "issues issues" "last last"; gap: 10px 12px; margin: 0; padding: 14px; background: var(--card); border: 1px solid var(--line); }
  .event.on { background: var(--card); }
  .ev-main { grid-area: main; gap: 14px; }
  .thumb { width: 48px; height: 48px; }
  .chev { grid-area: chev; }
  .ev-city { display: none; }
  .ev-when { grid-area: when; }
  .ev-going { grid-area: going; text-align: right; }
  .ev-going .bar { margin-left: auto; }
  .issues { grid-area: issues; }
  .ev-last { grid-area: last; margin: 0; }
  .listfoot { border-top: 0; }
}
@media (prefers-reduced-motion: no-preference) { .event, .btn, .nav a, .chip { transition: background-color 120ms ease; } }
/* Between a small laptop and the mockup's width, the event slides over the board instead of squeezing it. */
@media (min-width: 1100px) and (max-width: 1439px) {
  .shell.with-panel { grid-template-columns: var(--sidebar) minmax(0, 1fr); }
  .shell.with-panel .panel { position: fixed; right: 0; top: 0; width: var(--panel); z-index: 10; box-shadow: -12px 0 32px var(--shadow); }
}
/* Edit event (R-1305): fields pair up on a laptop and stack on a phone. */
.editor .row label { flex: 1 1 200px; min-width: 0; }
.editor label input, .editor label textarea { width: 100%; box-sizing: border-box; }
