/* THE PORTAL'S LOOK (UX review, 2026-10-20; Kenyon: "a polished, sleek, enjoyable and easy to
   use app ... less over-branded", after Bar Manager). Loaded LAST, and only by p_base.html --
   Event Planner, My Ideal, My Olympic and the contractor page -- whose <html> carries class
   "ep". Ideal Sales and the Shows app never load it, so nothing here can reach them.

   Rule for every new style: colours come from the --ep- tokens below, never a literal, so
   Light, Dark and Auto all work. The shared stylesheets (portal.css, coord.css) use the same
   tokens with their old colour as the fallback: var(--ep-card, #fff).

   Step 1 of the rollout: the palette and Light / Dark / Auto. */

/* ------------------------------------------------------------------ the palette */
html.ep {
  --ep-bg: #f7f5f2;            /* the page ground */
  --ep-card: #ffffff;          /* cards, lists, menus */
  --ep-soft: #f0efed;          /* read-only facts, hover, the planner's panels */
  --ep-field: #ffffff;
  --ep-field-line: #d6d2cc;
  --ep-ink: #141414;
  --ep-muted: #6b6b6b;
  --ep-line: #e6e3de;
  --ep-strong: #111111;        /* the action colour: primary buttons, selected */
  --ep-on-strong: #ffffff;
  --ep-bar: #111111;           /* the event page's header bar */
  --ep-on-bar: #ffffff;
  --ep-on-bar-muted: #b5b0a8;
  --ep-on-bar-faint: rgba(255, 255, 255, .16);
  --ep-neutral: #616161;
  --ep-green: #1f7a3d;  --ep-green-bg: #e6f2ea;  --ep-green-line: #bfd9c7;  --ep-green-hover: #17552d;
  --ep-amber: #b86e00;  --ep-amber-ink: #8a4f00; --ep-amber-bg: #fff3df;  --ep-amber-pill: #fbe1bd;  --ep-amber-line: #f0c48a;
  --ep-red: #b3261e;    --ep-red-bg: #fbeceb;
  --ep-ideal: #BD2035;
  --ep-olympic: #3E5D88;
  --ep-venue: var(--ep-ideal);
  --ep-shadow: 0 1px 2px rgba(0, 0, 0, .05);
  /* The wedding look's paper (light only; dark gives it ordinary cards). */
  --ep-wed-paper: #FFFDF8;
  --ep-wed-line: #C9B9A2;
  color-scheme: light;
}
html.ep.v-olympic { --ep-venue: var(--ep-olympic); }

@media (prefers-color-scheme: dark) {
  html.ep:not([data-theme="light"]) {
    --ep-bg: #0d0d0c; --ep-card: #191817; --ep-soft: #262422; --ep-field: #232220; --ep-field-line: #4a4743;
    --ep-ink: #f1eee9; --ep-muted: #9d988f; --ep-line: #2c2a27; --ep-strong: #f1eee9; --ep-on-strong: #111111;
    --ep-bar: #191817; --ep-on-bar: #f1eee9; --ep-on-bar-muted: #9d988f; --ep-on-bar-faint: rgba(255, 255, 255, .12);
    --ep-neutral: #8a857e;
    --ep-green: #7fd49b; --ep-green-bg: #16301f; --ep-green-line: #2c5a3c; --ep-green-hover: #9be0b3;
    --ep-amber: #f2ad45; --ep-amber-ink: #f2ad45; --ep-amber-bg: #3a2a12; --ep-amber-pill: #4a3416; --ep-amber-line: #6b4b1a;
    --ep-red: #ff8a80; --ep-red-bg: #3a1714;
    --ep-ideal: #F06A7A; --ep-olympic: #8FB0E0;
    --ep-shadow: none;
    --ep-wed-paper: var(--ep-card); --ep-wed-line: var(--ep-field-line);
    color-scheme: dark;
  }
}
html.ep[data-theme="dark"] {
  --ep-bg: #0d0d0c; --ep-card: #191817; --ep-soft: #262422; --ep-field: #232220; --ep-field-line: #4a4743;
  --ep-ink: #f1eee9; --ep-muted: #9d988f; --ep-line: #2c2a27; --ep-strong: #f1eee9; --ep-on-strong: #111111;
  --ep-bar: #191817; --ep-on-bar: #f1eee9; --ep-on-bar-muted: #9d988f; --ep-on-bar-faint: rgba(255, 255, 255, .12);
  --ep-neutral: #8a857e;
  --ep-green: #7fd49b; --ep-green-bg: #16301f; --ep-green-line: #2c5a3c; --ep-green-hover: #9be0b3;
  --ep-amber: #f2ad45; --ep-amber-ink: #f2ad45; --ep-amber-bg: #3a2a12; --ep-amber-pill: #4a3416; --ep-amber-line: #6b4b1a;
  --ep-red: #ff8a80; --ep-red-bg: #3a1714;
  --ep-ideal: #F06A7A; --ep-olympic: #8FB0E0;
  --ep-shadow: none;
  --ep-wed-paper: var(--ep-card); --ep-wed-line: var(--ep-field-line);
  color-scheme: dark;
}

/* ------------------------------------------------------------------ the old names, re-pointed
   portal.css and coord.css colour things with --ink, --ink-2, --ground, --line, --wash,
   --accent and --ok; the planner adds --panel, --rail, --notice, --rail-on, --ok-tick. Set on
   <body>, so they win over the planner's, the Olympic's and the wedding's own settings. */
html.ep body {
  --ink: var(--ep-ink);
  --ink-2: var(--ep-muted);
  --ground: var(--ep-card);
  --line: var(--ep-line);
  --wash: var(--ep-soft);
  --accent: var(--ep-red);        /* now means attention / danger; actions use --ep-strong */
  --accent-ink: var(--ep-on-strong);
  --ok: var(--ep-green);
  --panel: var(--ep-soft);
  --rail: var(--ep-soft);
  --notice: var(--ep-soft);
  --rail-on: var(--ep-strong);
  --ok-tick: var(--ep-green);
  --rp-bg: var(--ep-soft);
  --navy: var(--ep-olympic);
  --navy-dark: var(--ep-bar);
  background: var(--ep-bg);
  color: var(--ep-ink);
}
/* The header and footer sit on the page ground, not on white. */
html.ep .top { background: var(--ep-bg); border-bottom-color: var(--ep-venue); }
html.ep body .pbar { background: var(--ep-bar); color: var(--ep-on-bar); }
/* The phone's section menu bar, sticky over the page. */
@media (max-width: 820px) { html.ep .railcol { background: var(--ep-bg); } }

/* Actions in the ink colour; the venue colour only marks the venue. */
html.ep .nav a[aria-current="page"] { color: var(--ep-ink); border-bottom-color: var(--ep-venue); }
html.ep .progress .bar > div { background: var(--ep-venue); }
html.ep .milestones li.next .dot { border-color: var(--ep-strong); }
html.ep .milestones li.next .when { color: var(--ep-ink); }

/* ------------------------------------------------------------------ the wedding look, light only
   The cream and rose stay for a wedding client's planner in Light (and in Auto on a light
   phone); in Dark it's the ordinary dark palette. */
@media (prefers-color-scheme: light) {
  html.ep:not([data-theme="dark"]) body.wedding {
    --ground: #F8F4EC; --panel: #F1EADD; --notice: #F1EADD; --rail: #F1EADD; --line: #E6DCCB;
    --ink: #262626; --ink-2: #5F5650; --accent: #8C3A48; --accent-ink: #FFFFFF; --rail-on: #8C3A48;
    --rp-bg: #EFE6E1; background: #F8F4EC; color: #262626;
  }
}
html.ep[data-theme="light"] body.wedding {
  --ground: #F8F4EC; --panel: #F1EADD; --notice: #F1EADD; --rail: #F1EADD; --line: #E6DCCB;
  --ink: #262626; --ink-2: #5F5650; --accent: #8C3A48; --accent-ink: #FFFFFF; --rail-on: #8C3A48;
  --rp-bg: #EFE6E1; background: #F8F4EC; color: #262626;
}

/* ------------------------------------------------------------------ Light / Dark / Auto
   (Kenyon, 2026-10-20, as Bar Manager): staff choose it in the account menu at the top right;
   clients on their Account page. Remembered per device (cookie ep_theme). */
.themepick { display: inline-flex; padding: 3px; gap: 2px; border-radius: 10px; background: var(--ep-soft); }
.themepick button { border: 0; background: none; color: var(--ep-ink); font: 700 14px/1 "Lato", system-ui, sans-serif;
  min-height: 38px; padding: 0 14px; border-radius: 8px; cursor: pointer; }
.themepick button[aria-pressed="true"] { background: var(--ep-card); box-shadow: 0 1px 3px rgba(0, 0, 0, .14); }
.themepick button:focus-visible { outline: 2px solid var(--ep-ink); outline-offset: 2px; }
.themeform { margin: 0; }

/* The staff account menu: initials in a circle, top right. */
.ep-acct { position: relative; }
.ep-acct > summary { list-style: none; cursor: pointer; width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; background: var(--ep-strong); color: var(--ep-on-strong);
  font: 900 15px/1 "Lato", system-ui, sans-serif; letter-spacing: .02em; }
.ep-acct > summary::-webkit-details-marker { display: none; }
.ep-acct > summary:focus-visible { outline: 2px solid var(--ep-ink); outline-offset: 3px; }
.ep-acctmenu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 40; width: min(300px, calc(100vw - 32px));
  background: var(--ep-card); color: var(--ep-ink); border: 1px solid var(--ep-line); border-radius: 14px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .18); padding: 8px; display: grid; gap: 4px; }
.ep-acctwho { padding: 10px 12px 12px; border-bottom: 1px solid var(--ep-line); margin-bottom: 4px; }
.ep-acctwho b { display: block; font-size: 16px; }
.ep-acctwho span { font-size: 14px; color: var(--ep-muted); overflow-wrap: anywhere; }
.ep-acctrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 12px; }
.ep-acctrow .k { margin: 0; }
.ep-acctmenu a, .ep-acctmenu .linkish { display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 10px;
  color: var(--ep-ink); text-decoration: none; font: 400 16px/1 "Lato", system-ui, sans-serif; width: 100%; text-align: left; }
.ep-acctmenu a:hover, .ep-acctmenu .linkish:hover { background: var(--ep-soft); }
.ep-acctmenu form { margin: 0; }
html.ep .top .nav.ep-acctnav { gap: 12px; }

/* The client's Display card on Account. */
.displaycard .themepick { margin-top: 4px; }

/* Logos made for white get their white versions on a dark page (set per venue in p_base). */
.cards > .displaycard { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.cards > .displaycard h2 { margin: 0; }

/* ================================================================== step 3: calmer controls
   One typeface, sentence case, compact 44px controls, every input styled, readable pills, a
   visible focus ring. (UX review, 2026-10-20.) */
html.ep { --ep-font: "Lato", system-ui, -apple-system, "Segoe UI", sans-serif; }

/* ------------------------------------------------------------------ type */
html.ep body { font: 400 17px/1.5 var(--ep-font); }
@media (min-width: 900px) { html.ep body { font-size: 16px; } }
html.ep h1, html.ep h2, html.ep h3, html.ep .event .ev-title, html.ep .evbody h3, html.ep .cdate {
  font-family: var(--ep-font); text-transform: none; letter-spacing: 0; font-weight: 900; text-wrap: balance; }
html.ep h1 { font-size: 26px; line-height: 1.2; }
html.ep h2 { font-size: 18px; line-height: 1.3; color: var(--ep-ink); }
html.ep h3 { font-size: 16px; line-height: 1.3; }
html.ep .evtitle { font-family: var(--ep-font); font-weight: 900; font-size: 30px; text-transform: none; letter-spacing: 0; line-height: 1.15; }
html.ep .event .ev-title { font-size: 21px; }
html.ep .evbody h3 { font-size: 18px; }
@media (max-width: 640px) { html.ep h1 { font-size: 24px; } html.ep .evtitle { font-size: 24px; } }
/* The light 300 weight was thin on phones. */
html.ep .check, html.ep .checks label, html.ep .milestones .how, html.ep .lamt .help { font-weight: 400 !important; }
/* Numbers and money in Lato, aligned. */
html.ep .invoice .amt, html.ep .lamt, html.ep .stat .sv, html.ep .evdate .d, html.ep .esttotals dd, html.ep .estimate .num {
  font-family: var(--ep-font); font-weight: 700; font-variant-numeric: tabular-nums; }
html.ep .evdate .d { font-weight: 900; font-size: 26px; }
html.ep .evdate .m { text-transform: none; letter-spacing: 0; font-weight: 700; }
html.ep .pbar-ev { font-family: var(--ep-font); text-transform: none; letter-spacing: 0; font-weight: 700; }
html.ep .cb-1 { font: 900 22px/1 var(--ep-font); text-transform: none; letter-spacing: 0; }
html.ep .cb-2 { color: var(--ep-muted); letter-spacing: .08em; }
html.ep .cdate { font-size: 18px; margin: 0 0 10px; }
html.ep .paybanner .cta { font-family: var(--ep-font); text-transform: none; letter-spacing: 0; font-weight: 700; }
html.ep details.collapsible > summary::after { font: 400 22px/1 var(--ep-font); }
/* The one uppercase left: small group labels. */
html.ep .k, html.ep .rp-k, html.ep .esthead, html.ep .esttable th, html.ep .eyebrow {
  font-family: var(--ep-font); font-size: 12px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: var(--ep-muted); }
/* Small text that was shouting in capitals. */
html.ep .dirlinks a, html.ep .voidlink { text-transform: none; letter-spacing: 0; font-size: 14px; }

/* ------------------------------------------------------------------ buttons
   primary (ink) · secondary (.ghost: a line) · quiet links · danger (red text) · icon. 44px. */
html.ep .btn { font: 700 15px/1.1 var(--ep-font); text-transform: none; letter-spacing: 0; border-radius: 10px;
  min-height: 44px; padding: 0 18px; box-shadow: none; }
html.ep .btn.ghost, html.ep a.btn.ghost { background: var(--ep-field); color: var(--ep-ink); border: 1px solid var(--ep-field-line); }
html.ep .btn.ghost:hover { border-color: var(--ep-ink); }
html.ep .btn.small { min-height: 38px; padding: 0 14px; font-size: 14px; }
html.ep .btn.tog { min-height: 44px; padding: 0 16px; border-color: var(--ep-field-line); background: var(--ep-field); color: var(--ep-ink); }
html.ep .btn.tog[aria-pressed="true"] { background: var(--ep-strong); color: var(--ep-on-strong); border-color: var(--ep-strong); }
html.ep .btn.go, html.ep .reviewbar .btn.approve { background: var(--ep-green); color: var(--ep-on-strong); }
html.ep .btn.danger { background: none; color: var(--ep-red); border: 1px solid var(--ep-red); }
html.ep body.wedding .btn { font-family: "Jost", system-ui, sans-serif; }
@media (max-width: 640px) { html.ep .btn.small { min-height: 44px; } }
/* Quiet links tall enough to tap. */
html.ep .linkish, html.ep .link { min-height: 44px; display: inline-flex; align-items: center; }
html.ep .nav .linkish { min-height: 44px; }
/* Icon buttons: 44 on a phone, 38 on a computer. */
html.ep .xbtn, html.ep .estx { width: 40px; height: 40px; color: var(--ep-muted); }
html.ep .pplus { width: 36px; height: 36px; border-color: var(--ep-field-line); color: var(--ep-ink); font: 400 20px/1 var(--ep-font); }
html.ep .esthead .pplus { width: 30px; height: 30px; }
@media (max-width: 640px) { html.ep .xbtn, html.ep .pplus { width: 44px; height: 44px; } }
/* Call / Text / Email never break mid-word. */
html.ep .cact { white-space: nowrap; border-radius: 10px; border-color: var(--ep-field-line); background: var(--ep-field); }

/* ------------------------------------------------------------------ inputs, every kind */
html.ep :is(input[type=email], input[type=password], input[type=text], input[type=tel], input[type=number],
  input[type=date], input[type=time], input[type=url], input[type=search], input:not([type])),
html.ep select.inp, html.ep textarea.inp, html.ep .sel, html.ep .inp {
  font: 400 17px/1.3 var(--ep-font); color: var(--ep-ink); background: var(--ep-field);
  border: 1px solid var(--ep-field-line); border-radius: 10px; }
html.ep :is(input[type=email], input[type=password], input[type=text], input[type=tel], input[type=number],
  input[type=date], input[type=time], input[type=url], input[type=search], input:not([type])),
html.ep select.inp, html.ep .sel { min-height: 46px; padding: 10px 12px; }
html.ep textarea.inp { padding: 12px; }
html.ep input[type=date], html.ep input[type=time] { max-width: 100%; }
html.ep .inp:disabled, html.ep .inp[readonly] { background: var(--ep-soft); color: var(--ep-muted); }
html.ep input[type=file] { font: 400 15px/1.3 var(--ep-font); color: var(--ep-muted); max-width: 100%; }
html.ep input[type=file]::file-selector-button { font: 700 14px/1 var(--ep-font); min-height: 40px; padding: 0 14px; margin-right: 10px;
  border: 1px solid var(--ep-field-line); border-radius: 10px; background: var(--ep-field); color: var(--ep-ink); cursor: pointer; }
html.ep input[type=checkbox], html.ep input[type=radio] { accent-color: var(--ep-strong); width: 22px; height: 22px; }
html.ep .estrow .inp { border-radius: 8px; }
@media (max-width: 640px) { html.ep .estrow .inp { height: 44px; min-height: 44px; } }

/* ------------------------------------------------------------------ focus, everywhere */
html.ep :is(a, button, summary, [tabindex], input, select, textarea):focus-visible { outline: 2px solid var(--ep-ink); outline-offset: 2px; }
html.ep input:focus, html.ep select:focus, html.ep textarea:focus { outline: 2px solid var(--ep-ink); outline-offset: 1px; border-color: var(--ep-ink); }

/* ------------------------------------------------------------------ cards */
html.ep .card { border-radius: 14px; border-color: var(--ep-line); background: var(--ep-card); box-shadow: var(--ep-shadow); }
html.ep .card.vendor { background: var(--ep-card); }
html.ep .facts > div, html.ep .coord, html.ep .due, html.ep .clientbox { border-radius: 12px; }
html.ep .note { border-radius: 10px; }
html.ep body.wedding .card { background: var(--ep-wed-paper); }

/* ------------------------------------------------------------------ pills
   One shape: sentence case, 13px, tinted. */
html.ep :is(.pill, .paystatus, .paidtag, .reqbadge, .inreview, .reqmark, .duebadge, .chip) {
  font: 700 13px/1.2 var(--ep-font); text-transform: none; letter-spacing: 0; padding: 4px 10px; border-radius: 999px; }
html.ep .pill.wait { color: var(--ep-muted); background: var(--ep-soft); }
html.ep .pill.ok, html.ep .paystatus.paid, html.ep .paidtag { color: var(--ep-green); background: var(--ep-green-bg); }
html.ep .paystatus.due, html.ep .paystatus.overdue, html.ep .chip.hot { color: var(--ep-red); background: var(--ep-red-bg); }
html.ep .reqbadge, html.ep .pill.reqpill, html.ep .reqmark { color: var(--ep-amber-ink); background: var(--ep-amber-pill); }
html.ep .inreview { font-size: 12px; padding: 2px 8px; }
html.ep .rail a[aria-current="page"] .reqbadge, html.ep .rail a[aria-current="page"] .inreview { background: var(--ep-on-bar-faint); color: var(--ep-on-strong); }
html.ep .vtag { font: 700 12px/1.2 var(--ep-font); text-transform: none; letter-spacing: 0; border-radius: 999px; padding: 2px 8px; }

/* ------------------------------------------------------------------ small tap targets, phone */
@media (max-width: 640px) {
  html.ep .todowho a { min-height: 40px; padding: 0 14px; display: inline-flex; align-items: center; }
  html.ep .whofilter a { min-height: 40px; }
  html.ep .rc summary { min-height: 44px; display: flex; align-items: center; }
  html.ep .todo-act { height: 44px; }
}

/* ================================================================== step 4: one compact header
   (UX review, 2026-10-20). Staff: a plain "Event Planner" name and the account menu. Event
   pages: a slim bar -- back, the event and its date, account (staff) or the venue's mark
   (clients) -- in place of the black logo bar. Clients: a small logo and an account icon. */
html.ep .top { border-bottom: 3px solid var(--ep-venue); }
html.ep .top-in { padding: 10px var(--gutter); gap: 12px; flex-wrap: nowrap; }
html.ep .brand img { height: 36px; }
html.ep .cbrand { gap: 10px; color: var(--ep-ink); }
html.ep .cbrand img { width: 32px; height: 32px; border-radius: 8px; }
html.ep .cb-1 { font-size: 19px; }
html.ep .ep-acctnav { margin-left: auto; }
/* The client's account icon: initials, like staff's menu button. */
html.ep .ep-acctlink { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--ep-strong); color: var(--ep-on-strong); font: 900 15px/1 var(--ep-font); text-decoration: none; padding: 0; }
html.ep .ep-acctlink[aria-current="page"] { box-shadow: 0 0 0 3px var(--ep-bg), 0 0 0 5px var(--ep-venue); border: 0; }
html.ep .sechead .ep-logout { margin: 0 0 0 auto; }

/* The event header. */
html.ep body .pbar.ephead { background: var(--ep-card); color: var(--ep-ink); border-bottom: 1px solid var(--ep-line);
  box-shadow: inset 0 -3px 0 var(--ep-venue); }
html.ep .ephead .pbar-in { max-width: 1200px; padding: 6px var(--gutter) 9px; gap: 10px; flex-wrap: nowrap; min-height: 60px; align-items: center; }
html.ep .ephback { flex: none; width: 44px; height: 44px; margin-left: -10px; display: flex; align-items: center; justify-content: center;
  color: var(--ep-ink); border-radius: 50%; }
html.ep .ephback:hover { background: var(--ep-soft); }
html.ep .ephtitle { min-width: 0; flex: 1 1 auto; display: flex; flex-direction: column; line-height: 1.25; }
html.ep .ephtitle b { font: 900 17px/1.25 var(--ep-font); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.ep .ephtitle > span { font-size: 14px; color: var(--ep-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.ep .ephvenue::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ep-venue);
  margin-right: 5px; vertical-align: 1px; }
html.ep .ephmark { flex: none; display: flex; }
html.ep .ephmark img { width: 32px; height: 32px; border-radius: 8px; }
@media (min-width: 821px) {
  html.ep .ephead .pbar-in { min-height: 68px; }
  html.ep .ephtitle b { font-size: 20px; }
  html.ep .ephtitle > span { font-size: 15px; }
}
/* The wedding look's header, in Light: its cream ground and hairline. */
html.ep body.wedding .pbar.ephead { background: var(--ground); }

/* The phone's section menu sits right under the slim header. */
@media (max-width: 820px) {
  html.ep .railpick > summary { background: var(--ep-card); border-bottom: 1px solid var(--ep-line); box-shadow: none; min-height: 52px; }
  html.ep .rp-ch { background: var(--ep-soft); box-shadow: none; }
}

/* A payment due: one quiet line on Overview. */
html.ep a.paybanner.payline { background: var(--ep-card); color: var(--ep-ink); border: 1px solid var(--ep-line); border-radius: 12px;
  padding: 10px 14px; gap: 10px; justify-content: flex-start; flex-wrap: nowrap; font-size: 15px; }
html.ep .payline .paytext { min-width: 0; flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html.ep .payline .cta { flex: none; color: var(--ep-ink); font-weight: 700; }
html.ep .pill.duepill { color: var(--ep-amber-ink); background: var(--ep-amber-pill); }
html.ep .pill.hot { color: var(--ep-red); background: var(--ep-red-bg); }
html.ep body.wedding a.paybanner.payline, html.ep body.wedding a.paybanner.payline .cta { color: var(--ink); }
html.ep .payline .pill { flex: none; white-space: nowrap; }
html.ep .payline .paytext { white-space: normal; overflow: visible; }

/* ================================================================== step 5: the staff dashboard
   (UX review, 2026-10-20). A 44px segmented Mine / Everyone; the to-do list at a reading width;
   event cards calmer: name, one line, progress, at most two pills. */
html.ep .seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 12px; background: var(--ep-soft); margin-left: auto; }
html.ep .seg a { min-height: 38px; padding: 0 16px; border: 0; border-radius: 9px; display: inline-flex; align-items: center;
  color: var(--ep-ink); font: 700 14px/1 var(--ep-font); text-decoration: none; background: none; }
html.ep .seg a[aria-current] { background: var(--ep-card); color: var(--ep-ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .14); }
@media (max-width: 640px) { html.ep .seg a { min-height: 40px; } }
html.ep .todos, html.ep .cfilter { max-width: 760px; }
html.ep .todolist { border-radius: 14px; overflow: hidden; border: 1px solid var(--ep-line); }
html.ep .todo:last-child { border-bottom: 0; }
html.ep .todo-face { padding: 12px 14px; }
html.ep .evrow { max-width: 760px; }
html.ep .evmeta { font-size: 15px; }
html.ep .vdot::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ep-ideal);
  margin-right: 6px; vertical-align: 1px; }
html.ep .vdot.oly::before { background: var(--ep-olympic); }
html.ep .evrow .chips { gap: 6px; margin-top: 4px !important; }
html.ep .evrow .chips .pill { text-decoration: none; }
html.ep .monthlab { font: 900 13px/1 var(--ep-font); letter-spacing: .08em; text-transform: uppercase; color: var(--ep-muted); }
html.ep .evrow .progress .bar { height: 4px; }

/* ================================================================== step 6: Overview and requests
   (UX review, 2026-10-20). */
/* Change requests: compact rows -- what, old -> new, when -- one Approve, a corner arrow. */
html.ep .reqbox { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 14px; align-items: center;
  background: var(--ep-card); border: 1px solid var(--ep-line); border-left: 3px solid var(--ep-amber); border-radius: 12px;
  padding: 12px 14px; margin: 8px 0; }
html.ep .reqbox > :not(.reqacts) { grid-column: 1; }
html.ep .reqbox .reqhd { gap: 4px 10px; }
html.ep .reqbox .reqhd b { font-size: 16px; }
html.ep .reqbox .reqv { margin: 2px 0 0; font-size: 15px; overflow-wrap: anywhere; }
html.ep .reqbox > .help { margin: 2px 0 0; }
html.ep .reqbox .reqacts { grid-column: 2; grid-row: 1 / span 3; margin: 0; flex-wrap: nowrap; gap: 6px; }
html.ep .reqacts .btn { margin: 0; }
html.ep .reqgo { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%;
  color: var(--ep-muted); text-decoration: none; }
html.ep .reqgo:hover { background: var(--ep-soft); color: var(--ep-ink); }
html.ep .reqcard { padding: 16px; }
html.ep .reqcard h2 { display: flex; align-items: center; gap: 8px; }
@media (max-width: 520px) {
  html.ep .reqbox { grid-template-columns: minmax(0, 1fr); }
  html.ep .reqbox .reqacts { grid-column: 1; grid-row: auto; margin-top: 6px; }
}

/* Contact cards: Call / Text / Email as small round icons. */
html.ep .coordacts { gap: 6px; }
html.ep .cact { width: 44px; height: 44px; padding: 0; justify-content: center; border-radius: 50%; flex: none; }
html.ep .cact > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
html.ep .cact svg { width: 20px; height: 20px; }
@media (max-width: 520px) { html.ep .coordacts { width: auto; } html.ep .cact { flex: none; } }

/* The facts: a two-column list on hairlines, not grey boxes. */
html.ep .facts, html.ep .facts.grid { gap: 0 20px; background: var(--ep-card); border: 1px solid var(--ep-line); border-radius: 14px; padding: 4px 16px; }
html.ep .facts > div, html.ep .facts.grid > div { background: none; border-radius: 0; padding: 10px 0; border-bottom: 1px solid var(--ep-line); }
html.ep .facts .v { font-size: 17px; font-weight: 700; }
@media (max-width: 640px) { html.ep .facts > div, html.ep .facts.grid > div { padding: 10px 0; } }

/* Milestones: the title and the date; no help lines. */
html.ep .milestones .how { display: none; }
html.ep .milestones li { border-color: var(--ep-line); }
html.ep .milestones li.next { background: var(--ep-soft); border-radius: 10px; }
html.ep .pastsum { display: flex; align-items: center; gap: 10px; color: var(--ep-muted); margin: 8px 0 20px; }

/* The Staff zone's Cancel: red, quiet. */
html.ep .staffrm { color: var(--ep-red); }
html.ep .cancelbanner { background: var(--ep-soft); border-left-color: var(--ep-ink); border-radius: 10px; }

/* ================================================================== step 7: planning sections
   (UX review, 2026-10-20). */
/* Vendor, caterer and entertainer cards: the name, then one quiet line -- role, email, phone. */
html.ep .vendor .show, html.ep .vendor .show.v4 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; padding-right: 64px; }
html.ep .vendor .show > div:first-child { flex: 1 1 100%; }
html.ep .vendor .show > div:first-child .v { font-size: 17px; font-weight: 900; }
html.ep .vendor .show > div:not(:first-child) { color: var(--ep-muted); font-size: 15px; }
html.ep .vendor .show > div:not(:first-child) .k { display: none; }
html.ep .vendor .show > div:has(> .k + span:empty) { display: none; }
html.ep .vendor .show a { color: var(--ep-muted); }
html.ep .card.vendor { padding: 14px 16px; }
/* Attach: a quiet button, no "(optional)". */
html.ep label.btn.attachbtn { padding: 10px 14px; line-height: 1.2; }
/* The required key line repeats on every section; the red asterisks say it. */
html.ep .reqkey { display: none; }
/* A section's review: the pill, who and when; Reopen sits apart, for staff. */
html.ep .reviewbar { background: var(--ep-card); border-color: var(--ep-line); border-radius: 14px; }
html.ep .reviewbar.reviewed { background: var(--ep-card); border-color: var(--ep-green-line); }
html.ep .reviewbar .reviewstaff { margin: 14px 0 0; padding-top: 10px; text-align: center; }
html.ep .reviewbar .reviewstaff .linkish { color: var(--ep-muted); text-decoration: underline; text-underline-offset: 3px; font-size: 14px; }
/* Request a change: a real 44px button that opens its form. */
html.ep .rcsec { background: var(--ep-card); border-color: var(--ep-line); border-radius: 14px; }
html.ep .rcsec > summary { list-style: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  border: 1px solid var(--ep-field-line); border-radius: 10px; background: var(--ep-field); color: var(--ep-ink); font: 700 15px/1 var(--ep-font); }
html.ep .rcsec > summary::-webkit-details-marker { display: none; }
html.ep .rcsec { padding: 12px; }
html.ep .rc > summary { color: var(--ep-ink); }
/* Answers that can't be changed (an approved section for the client, a view-only login, a past
   event) read as text: content laid open, not greyed-out boxes. */
html.ep body.planner .pcontent :is(input.inp, textarea.inp, select.inp, input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=hidden])):disabled {
  background: transparent; border-color: transparent; color: var(--ep-ink); padding-left: 0; padding-right: 0; opacity: 1;
  -webkit-text-fill-color: var(--ep-ink); resize: none; min-height: 0; appearance: none; }
html.ep body.planner .pcontent textarea.inp:disabled { min-height: 0; height: auto; field-sizing: content; }
html.ep body.planner .pcontent :is(input, textarea):disabled::placeholder { color: transparent; }
html.ep body.planner .pcontent select.inp:disabled { background-image: none; }
html.ep body.planner .pcontent .btn.tog:disabled { opacity: 1; }
html.ep body.planner .pcontent .btn.tog:disabled:not([aria-pressed="true"]) { opacity: .45; }

/* ================================================================== step 8: Payments and the estimate
   (UX review, 2026-10-20). On a phone each estimate line is one read row that opens its boxes
   when tapped (planner.js); a computer keeps the table. */
html.ep .estsum, html.ep .estdone { display: none; }
@media (max-width: 640px) {
  html.ep .estrow { grid-template-areas: "s s s s" "d d d x" "q a o o" "t t tot tot" "dn dn dn dn"; }
  html.ep .estrow:not(.editing) > :not(.estsum) { display: none; }
  html.ep .estrow:not(.editing) { padding: 0; gap: 0; border-bottom: 1px solid var(--ep-line); }
  html.ep .estrow.editing > .estsum { display: none; }
  html.ep .estrow > .estsum { grid-area: s; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; align-items: center;
    width: 100%; min-height: 56px; padding: 10px 2px; border: 0; background: none; color: var(--ep-ink); text-align: left; cursor: pointer;
    font: 400 15px/1.35 var(--ep-font); }
  html.ep .estsum b { font-weight: 700; font-size: 16px; overflow-wrap: anywhere; }
  html.ep .estsum .estsummeta { grid-column: 1; color: var(--ep-muted); font-size: 14px; }
  html.ep .estsum .estsumtot { grid-column: 2; grid-row: 1 / span 2; font-weight: 700; font-variant-numeric: tabular-nums; }
  html.ep .estrow.editing { background: var(--ep-soft); border-radius: 12px; padding: 12px; margin: 6px 0; }
  html.ep .estrow.editing > .estdone { grid-area: dn; display: inline-flex; justify-self: start; margin-top: 4px; }
  /* Taxable: a chip, tapped on or off. */
  html.ep .estrow .esttax { min-height: 44px; padding: 0 14px; border: 1px solid var(--ep-field-line); border-radius: 999px;
    background: var(--ep-field); justify-self: start; gap: 8px; }
  html.ep .estrow .esttax:has(input:checked) { background: var(--ep-strong); border-color: var(--ep-strong); color: var(--ep-on-strong); }
  html.ep .estrow .esttax input { position: absolute; opacity: 0; width: 1px; height: 1px; }
  html.ep .estrow .esttax .sr { margin: 0; font-weight: 700; }
}
/* Payments: "Scheduled" a pill like the others; amounts line up. */
html.ep .paystatus.scheduled { color: var(--ep-muted); background: var(--ep-soft); }
html.ep .card.doc.invoice { border-radius: 12px; }
html.ep .invoice .amt { font-size: 18px; }

/* ================================================================== step 9: the client's home
   (UX review, 2026-10-20): one column of events -- name, date, progress -- past ones quiet. */
html.ep main:has(> h1 + .cards, > .cards) .cards { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
html.ep .cards > .card.event:first-of-type:not(.past) { grid-column: auto; }
html.ep .card.event .ev-title { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 20px; margin: 0 0 2px; }
html.ep .card.event .ev-title a { color: var(--ep-ink); text-decoration: none; }
html.ep .card.event .ev-date { color: var(--ep-muted); }
html.ep .card.event.past { background: var(--ep-card); opacity: .8; }
html.ep .card.event .progress .bar { height: 4px; }

/* ================================================================== step 10: the contractor's page
   (UX review, 2026-10-20). */
html.ep .contractor-page .pcontent.solo { padding-bottom: 96px; }
html.ep .cmeta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; color: var(--ep-muted); margin: -6px 0 18px; }
html.ep .cfoot { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom, 0px)); background: var(--ep-card);
  border-top: 1px solid var(--ep-line); box-shadow: 0 -6px 20px rgba(0, 0, 0, .06); font-size: 15px; }
html.ep .cfoot .saved { color: var(--ep-muted); }
html.ep .cfoot .cstate { color: var(--ep-amber-ink); font-weight: 700; text-align: right; }

/* ================================================================== step 11: Team and log in
   (UX review, 2026-10-20). */
html.ep .form .forgot { display: flex; align-items: center; justify-content: center; min-height: 44px; margin-top: 8px;
  color: var(--ep-muted); font-size: 15px; text-underline-offset: 3px; }
html.ep .narrow .card.form { padding: 20px; }
html.ep .narrow .card.form .btn { width: 100%; }
html.ep .aside { text-align: center; }
html.ep .teamlist { border-radius: 14px; }
html.ep .teamrow > summary:hover { background: var(--ep-soft); }
html.ep .teamrow .tedit { color: var(--ep-muted); }

/* APPROVED SECTION, READ AS ANSWERS (2026-10-20): label above, the answer in plain text. */
html.ep .ep-answers { margin: 4px 0 16px; display: grid; gap: 0; }
html.ep .ep-answers > div { padding: 10px 0; border-bottom: 1px solid var(--ep-line); }
html.ep .ep-answers > div:last-child { border-bottom: 0; }
html.ep .ep-answers dt { font-size: 12.5px; color: var(--ep-muted); margin: 0 0 2px; }
html.ep .ep-answers dd { margin: 0; color: var(--ep-ink); white-space: pre-line; }
@media (min-width: 720px) {
  html.ep .ep-answers > div { display: grid; grid-template-columns: 180px 1fr; gap: 16px; }
  html.ep .ep-answers dt { margin: 0; padding-top: 2px; }
}
html.ep .ep-answers .attach { display: inline; margin: 0 8px 0 0; }
html.ep .ep-plainline { list-style: none; padding: 0; margin: 4px 0 16px; }
html.ep .ep-plainline li { display: grid; grid-template-columns: 84px 1fr; gap: 2px 12px; padding: 8px 0; border-bottom: 1px solid var(--ep-line); }
html.ep .ep-plainline li:last-child { border-bottom: 0; }
html.ep .ep-plainline .t { color: var(--ep-muted); font-variant-numeric: tabular-nums; }
html.ep .ep-plainline .n { grid-column: 2; color: var(--ep-muted); font-size: 13.5px; }
html.ep .ep-plainline .n:empty { display: none; }
html.ep .ep-plainline li.ep-none .mname { color: var(--ep-muted); font-style: italic; }

/* THE TO-DO TICK (2026-10-20): a round target, 44px to tap, that fills in when done. */
html.ep .todo-tick { flex: 0 0 auto; width: 44px; height: 44px; margin: -8px -6px -8px -10px; padding: 0; border: 0; background: none;
  display: grid; place-items: center; cursor: pointer; color: transparent; }
html.ep .todo-tick::before { content: ""; grid-area: 1 / 1; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--ep-muted);
  transition: background .2s, border-color .2s; }
html.ep .todo-tick svg { grid-area: 1 / 1; position: relative; transition: color .2s; }
html.ep .todo-tick:hover::before { border-color: var(--ep-ink); }
html.ep .todo-tick:hover { color: var(--ep-muted); }
html.ep .todo.ticked .todo-tick::before { background: var(--ok, #1F6B3A); border-color: var(--ok, #1F6B3A); }
html.ep .todo.ticked .todo-tick { color: #fff; }

/* DUE THIS WEEK, ITS OWN CARD (Kenyon, 2026-10-20): raised off the page, a firm header with
   the count, rows flush inside, next week as the card's foot. */
html.ep .ep-todocard { background: var(--ep-card); border: 1px solid var(--ep-line); border-radius: 18px; overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 8px 24px rgba(0, 0, 0, .07); margin: 4px 0 22px; }
html.ep .ep-todocard.haslate { border-top: 3px solid var(--ep-red); }
html.ep .ep-todohead { padding: 14px 16px 12px; margin: 0; border-bottom: 1px solid var(--ep-line); gap: 10px; flex-wrap: wrap; }
html.ep .ep-todohead h2 { margin: 0; font-size: 21px; font-weight: 800; letter-spacing: -.01em; display: flex; align-items: center; gap: 8px; }
html.ep .ep-todocount { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 8px; border-radius: 999px;
  background: var(--ep-strong); color: var(--ep-on-strong); font-size: 14px; font-weight: 800; }
html.ep .ep-latepill { background: var(--ep-red-bg); color: var(--ep-red); font-size: 12.5px; font-weight: 700; }
html.ep .ep-todocard .todolist { border: 0; border-radius: 0; }
html.ep .ep-todocard .todo:last-child { border-bottom: 0; }
html.ep .ep-todoclear { margin: 0; padding: 18px 16px; color: var(--ep-muted); }
html.ep .ep-todocard .todolater { margin: 0; border-top: 1px solid var(--ep-line); background: var(--ep-soft); }
html.ep .ep-todocard .todolater > summary { padding: 12px 16px; }
html.ep .ep-todocard .todolater[open] > summary { border-bottom: 1px solid var(--ep-line); }
html.ep .ep-todocard .todolater .todolist .todo-face { background: var(--ep-card); }
/* ONE LINE PER EVENT ON THE HOME SCREEN (Kenyon, 2026-10-27): the whole row opens the event's
   own list; "+ N more" says what waits there. No slide here -- that lives in the event. */
html.ep .todo-ev-row { touch-action: auto; }
html.ep .todo-ev-row .todo-face { color: var(--ep-ink); text-decoration: none; user-select: auto; -webkit-user-select: auto; }
html.ep .todo-ev-row .todo-face:hover .todo-text { text-decoration: underline; }
html.ep .todo-more-n { display: inline-block; margin-left: 4px; padding: 1px 8px; border-radius: 999px; background: var(--ep-soft);
  color: var(--ep-muted); font-size: 12.5px; font-weight: 700; white-space: nowrap; vertical-align: 1px; }
html.ep .todo-go { flex: none; color: var(--ep-muted); font-size: 22px; line-height: 1; }
/* The event's own list (2026-10-27): beneath the facts on Overview. */
html.ep .ep-evtodos { margin: 18px 0 22px; scroll-margin-top: 80px; }
@media (max-width: 640px) {
  html.ep .ep-todocard { border-radius: 16px; }
  html.ep .ep-todohead h2 { font-size: 19px; }
}
@media (prefers-color-scheme: dark) { html.ep:not([data-theme="light"]) .ep-todocard { box-shadow: none; } }
html.ep[data-theme="dark"] .ep-todocard { box-shadow: none; }

/* LIST OR MONTH (Kenyon, 2026-10-21). */
html.ep .ep-viewbar { max-width: 760px; display: flex; justify-content: center; margin: 0 0 18px; }
html.ep .ep-cal:not([hidden]) + .ep-viewbar { margin-top: -10px; }
html.ep .ep-viewseg { margin-left: 0; }
html.ep .ep-viewseg button { min-height: 36px; padding: 0 16px; border: 0; border-radius: 9px; background: none; color: var(--ep-muted);
  font: 700 14px/1 var(--ep-font); cursor: pointer; }
html.ep .ep-viewseg button[aria-pressed="true"] { background: var(--ep-card); color: var(--ep-ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .14); }
html.ep .ep-cal { position: relative; max-width: 760px; background: var(--ep-card); border: 1px solid var(--ep-line); border-radius: 18px;
  padding: 12px 12px 10px; box-shadow: var(--ep-shadow); margin: 0 0 22px; }
html.ep .ep-calhead { display: flex; align-items: center; gap: 4px; padding: 0 2px 10px; }
html.ep .ep-calhead h2 { margin: 0 6px; font-size: 19px; font-weight: 800; min-width: 0; flex: 0 1 auto; }
html.ep .ep-caltoday { margin-left: auto; font-size: 14px; }
html.ep .ep-calnav { width: 40px; height: 40px; border: 0; border-radius: 10px; background: none; color: var(--ep-ink); display: grid; place-items: center; cursor: pointer; }
html.ep .ep-calnav:hover { background: var(--ep-soft); }
html.ep .ep-calgrid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
html.ep .ep-calw { text-align: center; font-size: 12px; font-weight: 700; color: var(--ep-muted); padding: 4px 0 6px; text-transform: uppercase; letter-spacing: .04em; }
html.ep .ep-calday { min-height: 64px; border-radius: 10px; padding: 6px 4px; display: flex; flex-direction: column; align-items: center; gap: 6px;
  border: 0; background: none; color: var(--ep-ink); font: inherit; }
html.ep .ep-calday.off { visibility: hidden; }
html.ep .ep-calday.past .n { color: var(--ep-muted); opacity: .6; }
html.ep .ep-calday .n { font-size: 14px; font-weight: 600; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; }
html.ep .ep-calday.today .n { background: var(--ep-strong); color: var(--ep-on-strong); }
html.ep .ep-calday.has { cursor: pointer; }
html.ep .ep-calday.has:hover, html.ep .ep-calday.sel { background: var(--ep-soft); }
html.ep .ep-calday .dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 3px; max-width: 100%; }
html.ep .ep-caldot { flex: 0 0 auto; width: 9px; height: 9px; border-radius: 50%; background: var(--ep-ideal); }
html.ep .ep-caldot.oly { background: var(--ep-olympic); }
html.ep .ep-calkey { display: flex; gap: 16px; justify-content: center; margin: 8px 0 0; font-size: 13px; color: var(--ep-muted); }
html.ep .ep-calfly { position: absolute; z-index: 20; width: min(320px, calc(100% - 16px)); background: var(--ep-card); border: 1px solid var(--ep-line);
  border-radius: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .18); padding: 6px; }
html.ep .ep-calfwhen { margin: 4px 8px 4px; font-size: 12.5px; font-weight: 700; color: var(--ep-muted); text-transform: uppercase; letter-spacing: .04em; }
html.ep .ep-calfev { display: flex; align-items: center; gap: 10px; padding: 10px 8px; border-radius: 10px; color: var(--ep-ink); text-decoration: none; min-height: 44px; }
html.ep .ep-calfev:hover, html.ep .ep-calfev:focus-visible { background: var(--ep-soft); }
html.ep .ep-calfev > span:nth-child(2) { flex: 1 1 auto; min-width: 0; display: grid; gap: 2px; }
html.ep .ep-calfev b { font-weight: 700; }
html.ep .ep-calfev .m { font-size: 13px; color: var(--ep-muted); }
html.ep .ep-calfev svg { color: var(--ep-muted); flex: 0 0 auto; }
@media (max-width: 640px) {
  html.ep .ep-cal { padding: 10px 6px 8px; border-radius: 16px; }
  html.ep .ep-calw span { display: none; }
  html.ep .ep-calday { min-height: 52px; padding: 4px 0; gap: 4px; }
  html.ep .ep-caldot { width: 7px; height: 7px; }
}
@media (prefers-color-scheme: dark) { html.ep:not([data-theme="light"]) .ep-calfly { box-shadow: 0 10px 30px rgba(0, 0, 0, .6); } }

/* THE SECTION MENU IN THE VENUE'S COLOUR (Kenyon, 2026-10-21: "make it stand out somehow. I
   lose track of it visually"): red at The Ideal, blue at The Olympic, not black. The wedding
   look keeps its own. */
html.ep body.planner:not(.wedding) { --rail-on: var(--ep-venue); }
html.ep body.planner:not(.wedding) .rail a[aria-current="page"] { background: var(--ep-venue); color: #fff; }
html.ep body.planner:not(.wedding) .rail a[aria-current="page"] .tick { color: #fff; }
@media (max-width: 820px) {
  html.ep body.planner:not(.wedding) .railpick > summary {
    background: color-mix(in srgb, var(--ep-venue) 11%, var(--ep-card));
    border-bottom: 2px solid var(--ep-venue); border-left: 4px solid var(--ep-venue); }
  html.ep body.planner:not(.wedding) .railpick .rp-v { color: var(--ep-venue); }
  html.ep body.planner:not(.wedding) .rp-ch { background: var(--ep-venue); border-color: var(--ep-venue); }
  html.ep body.planner:not(.wedding) .rp-ch::after { border-color: #fff; }
  html.ep body.planner:not(.wedding) .rpmenu a[aria-current="page"] { border-left-color: var(--ep-venue); color: var(--ep-venue); }
}

/* ------------------------------------------------------------------ the floorplan planner
   (2026-10-26; templates/c_floorplan.html, static/portal/floorplan.js). Full screen under
   Event Planner's header: tools along the top, inventory left, the drawing in the middle,
   the selection and the counts right. Phones: the side panels open as sheets. Every class
   starts fp- so nothing here meets a Sales or Shows name. */
html.ep body.fp-body { height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }
html.ep body.fp-body .foot { display: none; }
html.ep body.fp-body > main.fp-main { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; max-width: none; padding: 0; margin: 0; width: 100%; }
html.ep .fp-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 8px 12px; border-bottom: 1px solid var(--ep-line); background: var(--ep-bg); }
html.ep .fp-back { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; color: var(--ep-ink); text-decoration: none; font-weight: 700; max-width: 260px; }
html.ep .fp-back span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html.ep .fp-tabs { display: flex; align-items: center; gap: 4px; background: var(--ep-soft); border-radius: 12px; padding: 3px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
html.ep .fp-tab { flex: 0 0 auto; white-space: nowrap; }
/* The open floorplan's pencil (rename / delete) and the "+" for another one (2026-10-26). */
html.ep .fp-tabedit { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 32px; min-height: 38px; margin-left: -4px; border: 0; border-radius: 9px; background: none; color: var(--ep-muted); cursor: pointer; }
html.ep .fp-tabedit:hover { color: var(--ep-ink); }
html.ep .fp-tab.fp-tabadd { min-width: 38px; padding: 0 10px; font-size: 20px; font-weight: 400; color: var(--ep-ink); }
html.ep .fp-menu { position: fixed; z-index: 60; min-width: 200px; max-width: calc(100vw - 16px); max-height: 60vh; overflow-y: auto; padding: 6px; background: var(--ep-card); border: 1px solid var(--ep-line); border-radius: 12px; box-shadow: 0 8px 24px rgba(0, 0, 0, .18); }
html.ep .fp-menurow { display: flex; align-items: center; }
html.ep .fp-menuit { flex: 1 1 auto; min-height: 44px; padding: 0 14px; border: 0; border-radius: 8px; background: none; color: var(--ep-ink); font: 600 15px/1.2 var(--ep-font); text-align: left; cursor: pointer; }
html.ep .fp-menuit:hover, html.ep .fp-menuit:focus-visible { background: var(--ep-soft); }
html.ep .fp-menuit.fp-del { color: var(--ep-red); }
html.ep .fp-menux { flex: 0 0 auto; width: 44px; min-height: 44px; border: 0; border-radius: 8px; background: none; color: var(--ep-muted); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
html.ep .fp-menux:hover { color: var(--ep-red); background: var(--ep-soft); }
html.ep .fp-from { color: var(--ep-muted); font-size: 13.5px; }
html.ep .fp-tab { min-height: 38px; padding: 0 14px; border: 0; border-radius: 9px; background: none; color: var(--ep-muted); font: 700 14px/1 var(--ep-font); cursor: pointer; }
html.ep .fp-tab[aria-selected="true"] { background: var(--ep-card); color: var(--ep-ink); box-shadow: var(--ep-shadow); }
html.ep .fp-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-left: auto; }
html.ep .fp-tb { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; min-width: 40px; padding: 0 10px; border: 1px solid var(--ep-field-line); border-radius: 10px; background: var(--ep-field); color: var(--ep-ink); font: 700 14px/1 var(--ep-font); text-decoration: none; cursor: pointer; }
html.ep .fp-tb:disabled { opacity: .4; cursor: default; }
html.ep .fp-tb.fp-tog[aria-pressed="true"] { background: var(--ep-strong); color: var(--ep-on-strong); border-color: var(--ep-strong); }
html.ep .fp-saved { font-size: 13px; color: var(--ep-muted); min-width: 52px; }
html.ep .fp-saved.fp-unsaved { color: var(--ep-red); font-weight: 700; }
html.ep .fp-work { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: 230px 1fr 290px; }
html.ep .fp-lib, html.ep .fp-insp { overflow-y: auto; padding: 10px 12px 24px; background: var(--ep-bg); }
html.ep .fp-lib { border-right: 1px solid var(--ep-line); }
html.ep .fp-insp { border-left: 1px solid var(--ep-line); }
html.ep .fp-lib h3, html.ep .fp-seat h3 { margin: 14px 0 6px; font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--ep-muted); }
html.ep .fp-libit { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "n c" "s c"; width: 100%; min-height: 44px; text-align: left; gap: 0 8px; padding: 6px 10px; margin-bottom: 4px; border: 1px solid var(--ep-line); border-radius: 10px; background: var(--ep-card); color: var(--ep-ink); cursor: pointer; font: 14px/1.25 var(--ep-font); }
html.ep .fp-libit:hover:not(:disabled) { border-color: var(--ep-ink); }
html.ep .fp-libit:disabled { cursor: default; }
html.ep .fp-libn { grid-area: n; font-weight: 700; }
html.ep .fp-libs { grid-area: s; font-size: 12.5px; color: var(--ep-muted); }
html.ep .fp-libc { grid-area: c; align-self: center; font-size: 13px; font-weight: 700; color: var(--ep-muted); }
html.ep .fp-libc.fp-over { color: var(--ep-red); }
html.ep .fp-offline { margin-bottom: 6px; }
html.ep .fp-stage { position: relative; min-width: 0; min-height: 0; background: var(--ep-soft); }
html.ep .fp-svg { width: 100%; height: 100%; display: block; touch-action: none; user-select: none; -webkit-user-select: none; }
html.ep .fp-img { opacity: .55; }
@media (prefers-color-scheme: dark) { html.ep:not([data-theme="light"]) .fp-img { opacity: .4; filter: invert(1) hue-rotate(180deg); } }
html.ep[data-theme="dark"] .fp-img { opacity: .4; filter: invert(1) hue-rotate(180deg); }
html.ep .fp-f { fill: none; stroke: none; }
html.ep .fp-f-clear { fill: var(--ep-red); fill-opacity: .1; }
html.ep .fp-f-exit { fill: var(--ep-red); fill-opacity: .7; }
html.ep .fp-f-void { fill: var(--ep-olympic); fill-opacity: .12; }
html.ep .fp-f-restricted { fill: var(--ep-amber); fill-opacity: .14; }
html.ep .fp-f-offlimits { fill: var(--ep-neutral); fill-opacity: .1; }
html.ep .fp-f-drive { fill: var(--ep-neutral); fill-opacity: .06; }
html.ep .fp-f-power { fill: var(--ep-amber); }
html.ep .fp-it { cursor: grab; }
html.ep .fp-hit { fill: transparent; stroke: none; }
html.ep .fp-svg.fp-grabbing, html.ep .fp-svg.fp-grabbing * { cursor: grab; }
html.ep .fp-shape { fill: var(--ep-card); stroke: var(--ep-ink); stroke-width: .07; }
html.ep .fp-k-round .fp-shape, html.ep .fp-k-rect .fp-shape { fill: var(--ep-card); stroke-width: .09; }
html.ep .fp-k-chair .fp-shape { fill: var(--ep-soft); stroke-width: .05; }
html.ep .fp-cback { fill: var(--ep-ink); }
html.ep .fp-k-lounge .fp-shape { fill: var(--ep-amber-bg); }
html.ep .fp-k-area .fp-shape, html.ep .fp-k-tent .fp-shape, html.ep .fp-k-decor .fp-shape { fill: var(--ep-card); fill-opacity: .5; stroke-dasharray: .4 .3; }
html.ep .fp-k-vehicle .fp-shape { fill: var(--ep-neutral); fill-opacity: .25; }
html.ep .fp-k-stairs .fp-shape { fill: var(--ep-neutral); fill-opacity: .35; }
html.ep .fp-k-label .fp-shape, html.ep .fp-ghost { fill: transparent; stroke: var(--ep-muted); stroke-dasharray: .3 .3; stroke-width: .05; }
/* LABELS & AREAS (2026-10-26): a label is its words alone -- its box only shows selected. */
html.ep .fp-k-label:not(.fp-on) .fp-shape { stroke: none; }
html.ep .fp-k-label .fp-txt { font-weight: 700; }
html.ep .fp-textin { width: 100%; margin: 4px 0; }
html.ep .fp-fs { min-width: 44px; font-size: 14px; }
html.ep .fp-fs[aria-pressed="true"] { background: var(--ep-strong); color: var(--ep-on-strong); border-color: var(--ep-strong); }
html.ep .fp-pv-txt { fill: var(--ep-ink); font-family: var(--ep-font); font-weight: 700; }
html.ep .fp-txt { fill: var(--ep-ink); text-anchor: middle; dominant-baseline: middle; font-family: var(--ep-font); pointer-events: none; }
html.ep .fp-on .fp-shape { stroke: var(--ep-olympic); stroke-width: .2; }
html.ep .fp-bad .fp-shape { stroke: var(--ep-red); stroke-width: .22; }
html.ep .fp-badge { fill: var(--ep-red); font-weight: 700; text-anchor: middle; font-family: var(--ep-font); pointer-events: none; paint-order: stroke; stroke: var(--ep-card); stroke-width: .2; }
html.ep .fp-box { fill: var(--ep-olympic); fill-opacity: .1; stroke: var(--ep-olympic); stroke-width: .08; }
html.ep .fp-zoom { position: absolute; right: 10px; bottom: 10px; display: flex; gap: 6px; }
html.ep .fp-sheetbtns { display: none; }
html.ep .fp-what { margin: 4px 0 8px; font-weight: 700; font-size: 16px; }
html.ep .fp-btns { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 8px 0; }
html.ep .fp-sb { min-width: 40px; min-height: 40px; border: 1px solid var(--ep-field-line); border-radius: 10px; background: var(--ep-field); color: var(--ep-ink); font: 700 18px/1 var(--ep-font); cursor: pointer; }
html.ep .fp-num { width: 64px; min-height: 40px; text-align: center; padding: 0 4px; }
html.ep .fp-step { display: grid; grid-template-columns: 1fr 40px 64px 40px; align-items: center; gap: 6px; margin: 6px 0; font-size: 14px; }
html.ep .fp-btns .fp-step { grid-template-columns: auto 40px 64px 40px; margin: 0; }
html.ep .fp-chairpick { width: 100%; min-height: 40px; margin-bottom: 4px; }
html.ep .fp-del { color: var(--ep-red); }
html.ep .fp-seatrow { display: flex; gap: 6px; margin: 14px 0 8px; }
html.ep .fp-counts, html.ep .fp-warns { list-style: none; margin: 0 0 10px; padding: 0; }
html.ep .fp-counts li { display: flex; justify-content: space-between; gap: 8px; padding: 5px 0; border-bottom: 1px solid var(--ep-line); font-size: 14px; }
html.ep .fp-counts .fp-fixed { color: var(--ep-muted); }
html.ep .fp-counts .fp-overli { color: var(--ep-red); }
html.ep .fp-warn { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 40px; padding: 4px 0; border: 0; background: none; color: var(--ep-ink); text-align: left; font: 14px/1.2 var(--ep-font); cursor: pointer; }
html.ep .fp-insp:not(.fp-has) #fp-insp-body { display: none; }
@media (max-width: 820px) {
  html.ep .fp-work { grid-template-columns: 1fr; }
  html.ep .fp-lib, html.ep .fp-insp { display: none; position: fixed; left: 0; right: 0; bottom: 0; max-height: 55dvh; z-index: 30; border: 0; border-top: 1px solid var(--ep-line); border-radius: 16px 16px 0 0; box-shadow: 0 -8px 24px rgba(0, 0, 0, .15); }
  html.ep body.fp-show-lib .fp-lib, html.ep body.fp-show-insp .fp-insp { display: block; }
  html.ep .fp-sheetbtns { display: flex; gap: 6px; position: absolute; left: 10px; bottom: 10px; }
  html.ep .fp-back { max-width: 46vw; }
  html.ep .fp-tools { margin-left: 0; }
}
/* Printed: each space to scale, then the pull list. */
html.ep .fp-printbar { display: flex; justify-content: space-between; align-items: center; margin: 8px 0; }
html.ep .fp-ptitle { margin: 6px 0 12px; }
html.ep .fp-psheet { break-inside: avoid; margin: 0 0 24px; }
html.ep .fp-printsvg { width: 100%; height: auto; background: #fff; border: 1px solid var(--ep-line); border-radius: 8px; }
html.ep .fp-pulltbl { width: 100%; border-collapse: collapse; font-size: 15px; }
html.ep .fp-pulltbl th, html.ep .fp-pulltbl td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--ep-line); }
html.ep .fp-overrow td { color: var(--ep-red); }
@media print {
  html.ep .fp-printbar, html.ep body.fp-printbody .top, html.ep body.fp-printbody .foot { display: none; }
  html.ep .fp-psheet { break-after: page; }
}
/* THE EVENT'S TITLE ACROSS THE PLANNER (2026-10-26): the event page's title, one line, with
   the way back; the header already says the venue. */
html.ep .fp-titlebar { display: flex; align-items: center; gap: 4px; min-width: 0; padding: 6px 12px 0; background: var(--ep-bg); }
html.ep .fp-titlebar .fp-back { flex: 0 0 auto; justify-content: center; min-width: 44px; }
html.ep .fp-title { flex: 1 1 auto; min-width: 0; margin: 0; font: 900 24px/1.2 var(--ep-font); color: var(--ep-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 640px) { html.ep .fp-title { font-size: 19px; } }
/* Snap to grid shows the grid; Select multiple shows how many. */
html.ep .fp-gridln { fill: none; stroke: var(--ep-ink); stroke-opacity: .09; stroke-width: .03; }
html.ep .fp-selcount { font-size: 13px; font-weight: 700; color: var(--ep-ink); }
html.ep .fp-tb.fp-tog[aria-pressed="true"]::before { content: "✓"; margin-right: 5px; }
/* LOCKED (2026-10-26): a small padlock on screen only -- never printed, never previewed. */
html.ep .fp-lockic { pointer-events: none; }
html.ep .fp-lockic rect { fill: var(--ep-strong); stroke: var(--ep-card); stroke-width: .1; paint-order: stroke; }
html.ep .fp-lockic path { fill: none; stroke: var(--ep-strong); stroke-width: .12; }
html.ep .fp-lk { cursor: default; }
html.ep .fp-lockbtn[aria-pressed="true"] { background: var(--ep-strong); color: var(--ep-on-strong); border-color: var(--ep-strong); }
/* COLOUR-CODED BY LINEN (2026-10-26): a table filled with its linen's colour (inline), a
   colourless linen neutral with a small mark, no linen hatched -- only in a space that uses
   linens. The outline stays the ink colour so white reads on light and black on dark. */
html.ep .fp-hatchbg, html.ep .fp-pv-hatchbg { fill: var(--ep-card); }
html.ep .fp-hatchln, html.ep .fp-pv-hatch { stroke: var(--ep-muted); stroke-width: .07; }
html.ep .fp-mark, html.ep .fp-pv-mark { fill: #111; pointer-events: none; }
html.ep .fp-legend { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13.5px; }
html.ep .fp-legend li { display: inline-flex; align-items: center; gap: 6px; }
html.ep .fp-clientp { margin: 0 0 10px; font-size: 14px; }
html.ep .fp-clientp b { margin-right: 6px; }
html.ep .fp-sw { position: relative; display: inline-block; width: 14px; height: 14px; border: 1px solid var(--ep-ink); border-radius: 3px; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
html.ep .fp-sw-none { background: repeating-linear-gradient(45deg, var(--ep-muted) 0 1.5px, var(--ep-card) 1.5px 5px); }
html.ep .fp-sw-plain::after { content: ""; position: absolute; left: 4px; top: 4px; width: 4px; height: 4px; background: #111; transform: rotate(45deg); }
html.ep body.fp-printbody .fp-sw-none { background: repeating-linear-gradient(45deg, #777 0 1.5px, #fff 1.5px 5px); }
html.ep .fp-linenrow { display: grid; grid-template-columns: 1fr; gap: 6px; margin: 6px 0; }
/* THE PLAN ON THE EVENT PAGE (2026-10-26): drawn from the stored plan, same paper as an
   uploaded floorplan; colours from the tokens so Light, Dark and Auto all read. */
html.ep .fp-pvgrid { display: grid; grid-template-columns: 1fr; gap: 0 20px; }
@media (min-width: 1100px) { html.ep .fp-pvgrid.fp-pvtwo { grid-template-columns: 1fr 1fr; } }
html.ep .proppaper.fppaper.fp-pvpaper { display: flex; align-items: center; justify-content: center; min-height: 0; padding: 14px; color: var(--ep-ink); }
html.ep .fp-pv { display: block; width: 100%; height: auto; max-height: 520px; }
html.ep .fp-pv-floor { fill: var(--ep-card); stroke: var(--ep-muted); stroke-width: .25; stroke-linejoin: round; }
html.ep .fp-pv-stage { fill: var(--ep-soft); stroke: var(--ep-muted); stroke-width: .15; }
html.ep .fp-pv-off { fill: var(--ep-soft); stroke: none; }
html.ep .fp-pv-fixed { fill: var(--ep-neutral); fill-opacity: .35; stroke: none; }
html.ep .fp-pv-void { fill: var(--ep-olympic); fill-opacity: .1; stroke: none; }
html.ep .fp-pv-exit { fill: var(--ep-red); fill-opacity: .6; stroke: none; }
html.ep .fp-pv-it { fill: var(--ep-card); stroke: var(--ep-ink); stroke-width: .12; }
html.ep .fp-pv-ch { fill: var(--ep-soft); stroke: var(--ep-ink); stroke-width: .07; }
html.ep .fp-pv-lounge { fill: var(--ep-amber-bg); stroke: var(--ep-ink); stroke-width: .1; }
html.ep .fp-pv-area { fill: var(--ep-soft); fill-opacity: .6; stroke: var(--ep-muted); stroke-width: .1; stroke-dasharray: .5 .4; }
html.ep .fp-pv-dim { fill: var(--ep-neutral); fill-opacity: .3; stroke: var(--ep-muted); stroke-width: .08; }
/* SHARED WITH THE CLIENT (Phase 3, 2026-10-27). Staff: one word -- Draft or Shared -- and,
   beside it, the switch; Approved once the client approves it as it stands. */
html.ep .fp-share { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
html.ep .sechead .fp-share { margin-left: auto; align-self: center; }
html.ep .fp-share + .fp-plus { margin-left: 0; }
html.ep .fp-share form { display: inline; margin: 0; }
/* The client: the drawings with Print in the corner, then Approve / Request a change. */
html.ep .fp-cplan { margin: 0 0 18px; }
html.ep .fp-cbar { display: flex; align-items: center; justify-content: flex-end; gap: 8px; min-height: 44px; }
html.ep .fp-cprint { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 10px; color: var(--ep-ink); }
html.ep .fp-cprint:hover { background: var(--ep-soft); }
html.ep .fp-cacts { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px 16px; margin: 6px 0 0; }
html.ep .fp-cacts form { margin: 0; }
html.ep .fp-cacts .rc { flex: 1 1 260px; margin: 0; }
html.ep .fp-cacts .rc .inp { width: 100%; margin: 6px 0 8px; }
/* Full size: the drawing as big as the screen, to pinch and drag (fpview.js). */
html.ep .fp-cvmain { max-width: 1400px; margin: 0 auto; padding: 0 16px 16px; }
html.ep .fp-cvbar { display: flex; align-items: center; gap: 8px; padding: 10px 0; }
html.ep .fp-cvtabs { display: flex; flex-wrap: wrap; gap: 6px; flex: 1 1 auto; min-width: 0; }
html.ep .fp-cvtabs a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--ep-field-line); border-radius: 999px; color: var(--ep-ink); text-decoration: none; font-weight: 700; font-size: 14px; }
html.ep .fp-cvtabs a[aria-current="page"] { background: var(--ep-strong); border-color: var(--ep-strong); color: var(--ep-on-strong); }
html.ep .fp-cvprint { gap: 6px; margin-left: auto; }
html.ep .fp-cvstage { position: relative; height: calc(100dvh - 210px); min-height: 320px; border: 1px solid var(--ep-line); border-radius: 12px; background: var(--ep-soft); overflow: hidden; touch-action: none; cursor: grab; -webkit-user-select: none; user-select: none; }
html.ep .fp-cvstage.fp-cvgrab { cursor: grabbing; }
html.ep .fp-cvstage .fp-pv { width: 100%; height: 100%; max-height: none; }
html.ep .fp-cvlegend { margin: 10px 0 0; }
@media (max-width: 640px) {
  html.ep .fp-cvmain { padding: 0 16px 12px; }
  html.ep .fp-cvstage { height: calc(100dvh - 190px); }
  html.ep .fp-cvprint span { display: none; }
}
/* Printed, whatever the theme on screen: dark ink on white paper. */
@media print {
  html.ep body.fp-printbody { --ep-ink: #141414; --ep-muted: #555; --ep-bg: #fff; --ep-card: #fff; --ep-line: #ddd; background: #fff; color: #141414; }
}


/* MARK PAID, AND HOW (Kenyon, 2026-10-26): a small panel under the button -- Check or Cash,
   and the check's number while Check is picked. */
html.ep .ep-paidhow { position: relative; }
html.ep .ep-paidhow > summary { list-style: none; cursor: pointer; }
html.ep .ep-paidhow > summary::-webkit-details-marker { display: none; }
html.ep .ep-paidform { position: absolute; right: 0; top: calc(100% + 6px); z-index: 15; width: 220px; display: grid; gap: 10px;
  background: var(--ep-card); border: 1px solid var(--ep-line); border-radius: 12px; padding: 12px; box-shadow: 0 10px 28px rgba(0, 0, 0, .16); }
html.ep .ep-paidform fieldset { border: 0; margin: 0; padding: 0; display: flex; gap: 16px; }
html.ep .ep-paidform fieldset label { display: flex; align-items: center; gap: 6px; font-weight: 600; min-height: 36px; cursor: pointer; }
html.ep .ep-checkno { display: none; gap: 4px; }
html.ep .ep-paidform:has(input[value="check"]:checked) .ep-checkno { display: grid; }
html.ep .ep-paidform .btn { justify-self: start; }
@media (prefers-color-scheme: dark) { html.ep:not([data-theme="light"]) .ep-paidform { box-shadow: 0 10px 28px rgba(0, 0, 0, .6); } }
/* ONE PLACE FOR FLOORPLANS (2026-10-26): Floorplans & Set-Up's "+" in the section's top
   corner (Vendors' button) opens Create new / Upload a file; the upload form shows once a
   file is picked. */
html.ep .sechead .fp-status { margin-left: auto; align-self: center; }
html.ep .fp-plus { position: relative; margin-left: auto; align-self: center; }
html.ep .fp-status + .fp-plus { margin-left: 0; }
html.ep .fp-plus > summary { list-style: none; margin: 0; }
html.ep .fp-plus > summary::-webkit-details-marker { display: none; }
html.ep .fp-plus[open] > summary { background: var(--ep-strong); color: var(--ep-on-strong); border-color: var(--ep-strong); }
html.ep .fp-plusmenu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; min-width: 190px; padding: 6px; display: flex; flex-direction: column; background: var(--ep-card); border: 1px solid var(--ep-line); border-radius: 12px; box-shadow: 0 8px 24px rgba(0, 0, 0, .14); }
html.ep .fp-plusmenu > a, html.ep .fp-plusmenu > label { display: flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 8px; color: var(--ep-ink); font: 600 15px/1.2 var(--ep-font); text-decoration: none; cursor: pointer; }
html.ep .fp-plusmenu > a:hover, html.ep .fp-plusmenu > label:hover, html.ep .fp-plusmenu > label:focus-visible { background: var(--ep-soft); }
html.ep .fp-upform { margin: 0 0 18px; padding: 14px; border: 1px solid var(--ep-line); border-radius: 12px; background: var(--ep-card); }
html.ep .fp-upform[hidden] { display: none; }

/* DESKTOP (design review, 2026-10-26: "improve the layout of this portal on desktop").
   One frame for every page, so the logo, the avatar, the content and the footer line up
   from page to page; and on a wide screen, side columns instead of one phone-width stack.
   Phones are untouched: the split layouts are one column below 1100px. */
html.ep { --ep-frame: 1200px; }
html.ep :is(.top-in, .wrap, .wrap.cwide, .foot, .pbar-in, .ephead .pbar-in, .planner-main, .planner-main ~ .foot, .cwide ~ .foot) { max-width: var(--ep-frame); }
html.ep body:has(main.cwide) .top-in { max-width: var(--ep-frame); }
html.ep body.fp-body .top-in { max-width: none; }
html.ep .top-in { min-height: 64px; }

/* The account initials stay readable on the Account page itself. */
html.ep .nav .ep-acctlink[aria-current="page"], html.ep .ep-acctlink[aria-current="page"] { color: var(--ep-on-strong); }

/* Cards never touch what follows them. */
html.ep .pcontent > :is(.card, .contactcards, .milestones) { margin-bottom: 20px; }
html.ep .pcontent :is(.fld, .checks, fieldset) + .card { margin-top: 20px; }

/* The staff-only zone reads as its own place: a dashed, tinted panel. */
html.ep .pcontent .staffzone:not(.reviewstaff) { margin-top: 32px; padding: 14px 18px 16px; background: var(--ep-soft);
  border: 1px dashed var(--ep-field-line); border-radius: 14px; }
html.ep .staffzone .changeacts { flex-direction: row; flex-wrap: wrap; gap: 4px 24px; align-items: flex-start; }
html.ep .staffzone .changeacts > details[open] { flex-basis: 100%; }

/* A form's button is as wide as its words, not the column. Log-in forms keep theirs. */
html.ep .pcontent .form > .btn { align-self: flex-start; }

/* The event's name is already in the header; the Overview opens on its facts. A wedding
   keeps its script title. */
html.ep body.planner:not(.wedding) .evtitle { display: none; }
html.ep body.planner:not(.wedding) .pcontent > .facts:first-child, html.ep body.planner:not(.wedding) .evtitle + .facts { margin-top: 8px; }

/* Empty states: one quiet dashed box. */
html.ep .ep-empty { margin: 0 0 18px; padding: 28px 16px; text-align: center; color: var(--ep-muted); border: 1px dashed var(--ep-line);
  border-radius: 14px; background: transparent; }

/* List pages: the filter in the title row's corner. */
html.ep .ep-listhead { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
html.ep .ep-listhead h1 { margin-right: auto; }
html.ep .ep-listhead .cfilter { margin: 0; max-width: none; }

/* The calendar's event names, desktop only (phones keep the dots). */
html.ep .ep-calev { display: none; }

@media (min-width: 1100px) {
  html.ep .ep-split { display: grid; grid-template-columns: minmax(0, 1fr) var(--ep-side, 380px); grid-template-areas: "main side";
    gap: 0 32px; align-items: start; }
  html.ep .ep-split > .ep-main { grid-area: main; min-width: 0; }
  html.ep .ep-split > .ep-side { grid-area: side; min-width: 0; }
  /* A side column with nothing showing gives its room back. */
  html.ep .ep-split:not(:has(> .ep-side > :not([hidden]):not(script):not(template))) { display: block; }

  /* Home: the calendar and the events, with the to-dos beside them. */
  html.ep .ep-home { --ep-side: 400px; }
  html.ep .ep-home > .ep-side { position: sticky; top: 24px; }
  html.ep .ep-home :is(.ep-cal, .cfilter, .ep-viewbar, .evrow, .todos) { max-width: none; }
  html.ep .ep-home.ep-split .cfilter { margin-top: 0; }
  html.ep .ep-home .ep-todocard { margin-top: 0; }
  html.ep .ep-calday { min-height: 92px; align-items: stretch; padding: 6px; gap: 3px; }
  html.ep .ep-calday .n { align-self: flex-end; }
  html.ep .ep-calday.has .dots { display: none; }
  html.ep .ep-calev { display: block; font: 700 12px/1.3 var(--ep-font); text-align: left; padding: 2px 6px; border-radius: 6px;
    background: color-mix(in srgb, var(--ep-ideal) 12%, var(--ep-card)); color: var(--ep-ink); white-space: nowrap; overflow: hidden;
    text-overflow: ellipsis; border-left: 3px solid var(--ep-ideal); }
  html.ep .ep-calev.oly { background: color-mix(in srgb, var(--ep-olympic) 12%, var(--ep-card)); border-left-color: var(--ep-olympic); }

  /* Event Overview: people and the headcount in the side column, the milestones beside. */
  html.ep .ep-ov { --ep-side: 320px; }
  html.ep .ep-ov .contactcards { grid-template-columns: minmax(0, 1fr); }
  html.ep .ep-ov > .ep-side > * + * { margin-top: 16px; }
  html.ep .ep-ov .milestones h2 { margin-top: 0; }

  /* Team: the list, with Add someone beside it. */
  html.ep .ep-team .teamadd { margin-top: 0; border-top: 0; padding-top: 0; }

  /* Planning forms: short answers side by side, checkbox lists in columns. */
  html.ep .pcontent .checks { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); column-gap: 24px; }
  html.ep .pcontent .grid2 { gap: 0 24px; }

  /* A/V: the yes/no questions two to a row, so each answer sits by its question. */
  html.ep .card.av { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 40px; }
  html.ep .card.av > :is(.avnote, .reqkey, .rc, details, p, .avproj) { grid-column: 1 / -1; }

  /* Account: the cards two across, buttons their own width. */
  html.ep main:has(.displaycard) .cards.cards { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: none; }
  html.ep .cards > .card.form .btn { width: auto; align-self: flex-start; }
}
@media (min-width: 641px) { html.ep .facts.grid > div { border-bottom: 0; } }
@media (min-width: 900px) {
  html.ep .fld .lbl { font-size: 15px; }
}

/* PAYMENTS + FLOORPLAN TOOLBAR (design review follow-up, 2026-10-26).
   Payments: "Add an invoice" is a quiet dashed "+" row under the list (the form opens as a
   card below it), so the tab isn't three stacked cards. */
html.ep .ep-adddoc { margin: 4px 0 28px; }
html.ep .ep-adddoc > summary { list-style: none; display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 16px;
  border: 1px dashed var(--ep-line); border-radius: 12px; color: var(--ep-muted); font: 700 15px/1.2 var(--ep-font); cursor: pointer; }
html.ep .ep-adddoc > summary::-webkit-details-marker { display: none; }
html.ep .ep-adddoc > summary:hover { color: var(--ep-ink); border-color: var(--ep-field-line); }
html.ep .ep-adddoc[open] > summary { color: var(--ep-ink); margin-bottom: 12px; }
html.ep .ep-plus { font-size: 20px; line-height: 1; }
html.ep .ep-adddoc[open] .ep-plus { transform: rotate(45deg); }
html.ep .invoices + .ep-adddoc, html.ep .achnote + .ep-adddoc { margin-top: 12px; }
/* Floorplan toolbar: joined pairs, menus with a caret, the status at the end. */
html.ep .fp-grp { display: inline-flex; }
html.ep .fp-grp > .fp-tb + .fp-tb { margin-left: -1px; }
html.ep .fp-grp > .fp-tb:not(:first-child) { border-top-left-radius: 0; border-bottom-left-radius: 0; }
html.ep .fp-grp > .fp-tb:not(:last-child) { border-top-right-radius: 0; border-bottom-right-radius: 0; }
html.ep .fp-grp > .fp-tb.fp-tog[aria-pressed="true"] { position: relative; z-index: 1; }
html.ep .fp-tb .fp-caret { margin-left: 6px; color: var(--ep-muted); }
html.ep .fp-status { display: inline-flex; align-items: center; gap: 8px; margin-left: 6px; padding-left: 12px; border-left: 1px solid var(--ep-line); }
html.ep .fp-menusep { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--ep-line); }
@media (max-width: 820px) { html.ep .fp-status { margin-left: 0; padding-left: 0; border-left: 0; } }
html.ep .fp-menuhd { padding: 8px 14px 4px; color: var(--ep-muted); font: 700 12px/1.2 var(--ep-font); letter-spacing: .04em; text-transform: uppercase; }

/* THE EVENT'S SCHEDULE (2026-10-26): meetings in the venue's colour, deadlines amber, the
   event day solid; done ones faded, overdue ones red. */
html.ep .sch-cal { max-width: none; margin-bottom: 24px; }
html.ep .sch-dot.meeting { background: var(--ep-venue); }
html.ep .sch-dot.deadline, html.ep .sch-dot.milestone { background: var(--ep-amber); }
html.ep .sch-dot.event { background: var(--ep-strong); }
html.ep .sch-dot.late { background: var(--ep-red); }
html.ep .sch-dot.done { opacity: .35; }
html.ep .sch-key { display: inline-flex; align-items: center; gap: 6px; }
html.ep .sch-key::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--ep-amber); }
html.ep .sch-key.meeting::before { background: var(--ep-venue); }
html.ep .sch-key.event::before { background: var(--ep-strong); }
html.ep .sch-list h2 { font-size: 19px; margin: 0 0 10px; }
html.ep .sch-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
html.ep .sch-row { display: flex; align-items: center; gap: 14px; padding: 12px 16px; background: var(--ep-card); border: 1px solid var(--ep-line);
  border-left: 4px solid var(--ep-amber); border-radius: 12px; scroll-margin: 90px; transition: box-shadow .3s; }
html.ep .sch-row.meeting { border-left-color: var(--ep-venue); }
html.ep .sch-row.event { border-left-color: var(--ep-strong); }
html.ep .sch-row.late { border-left-color: var(--ep-red); }
html.ep .sch-row.done { opacity: .7; }
html.ep .sch-row.flash { box-shadow: 0 0 0 3px var(--ep-amber-line); }
html.ep .sch-row.today .sch-date { background: var(--ep-strong); color: var(--ep-on-strong); }
html.ep .sch-date { flex: 0 0 56px; display: grid; justify-items: center; padding: 6px 0; border-radius: 10px; background: var(--ep-soft); line-height: 1.1; }
html.ep .sch-date .w, html.ep .sch-date .mo { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: inherit; opacity: .75; }
html.ep .sch-date .n { font-size: 20px; font-weight: 800; }
html.ep .sch-what { flex: 1 1 auto; min-width: 0; display: grid; gap: 2px; }
html.ep .sch-what b { font-weight: 700; }
html.ep .sch-what .m { font-size: 14px; color: var(--ep-muted); }
html.ep .pill.sch-evpill { background: var(--ep-strong); color: var(--ep-on-strong); }
html.ep .sch-earlier { margin-top: 16px; }
html.ep .sch-earlier > summary { cursor: pointer; font-weight: 700; color: var(--ep-muted); padding: 8px 0; }
html.ep .sch-earlier[open] > summary { margin-bottom: 8px; }
html.ep .ep-calev.sch-ev { border-left-color: var(--ep-amber); background: color-mix(in srgb, var(--ep-amber) 14%, var(--ep-card)); }
html.ep .ep-calev.sch-ev.meeting { border-left-color: var(--ep-venue); background: color-mix(in srgb, var(--ep-venue) 14%, var(--ep-card)); }
html.ep .ep-calev.sch-ev.event { border-left-color: var(--ep-strong); background: color-mix(in srgb, var(--ep-strong) 12%, var(--ep-card)); }
html.ep .ep-calev.sch-ev.late { border-left-color: var(--ep-red); }
html.ep .ep-calev.sch-ev.done { opacity: .5; }
html.ep .sch-row > .pill { flex: 0 0 auto; white-space: nowrap; }
/* Booking and changing a meeting (2026-10-27). */
html.ep .sch-book { margin: 0 0 20px; }
html.ep .sch-book .form, html.ep .sch-change .form { display: grid; gap: 12px; }
html.ep .sch-invite { display: flex; align-items: center; gap: 8px; font-weight: 600; }
html.ep .sch-testing { color: var(--ep-amber-ink); }
html.ep .sch-meet { justify-self: start; margin-top: 4px; font-weight: 700; color: var(--ep-venue); }
html.ep .sch-change { margin-top: 6px; }
html.ep .sch-change > summary { list-style: none; cursor: pointer; font-size: 14px; }
html.ep .sch-change > summary::-webkit-details-marker { display: none; }
html.ep .sch-change[open] > summary { margin-bottom: 10px; }
html.ep .sch-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
html.ep .sch-cancel { color: var(--ep-red); }
html.ep .sch-row:has(.sch-change[open]) { align-items: flex-start; }
html.ep :is(.sch-book, .sch-change) .fld > .lbl { display: grid; gap: 6px; }
html.ep :is(.sch-book, .sch-change) .fld .inp { width: 100%; box-sizing: border-box; }
html.ep .sch-book .form > .btn { justify-self: start; }

/* LIVE ENTERTAINMENT ON THE ITINERARY (2026-10-28): the entertainer's answers above the
   timeline, Send final times at its foot, and the "1 hr recommended" hints. */
html.ep .enttimes { margin: 0 0 18px; }
html.ep .enttimes h3 { margin: 0 0 8px; }
html.ep .enttimes .ep-answers + .ep-answers { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--ep-line); }
html.ep .sendtimes { margin: 18px 0; }
html.ep .sendtimes form { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
html.ep .mhint { font-weight: 400; font-size: 12.5px; margin-left: 4px; white-space: nowrap; }

/* WHAT DRIVES THE PROJECTOR (2026-10-28): two choices under Projector, one per line. */
html.ep .avproj { border: 0; padding: 0; margin: 10px 0 0; min-width: 0; }
html.ep .avproj .checks { display: grid; grid-template-columns: 1fr; gap: 6px; }
html.ep .avproj .help { margin: 8px 0 0; }

