:root {
  /* Brand theme: these map onto the --bp-* tokens in /static/theme.css
     (linked first), taken from the event food order form. Navy and green,
     white cards on a soft off-white page. */
  --bg: var(--bp-bg); --surface: var(--bp-card); --surface2: #eef1ea; --line: var(--bp-line);
  --text: var(--bp-ink); --muted: var(--bp-muted); --soft: #3d434b;
  --green-bg: var(--bp-ok-bg); --green-fg: var(--bp-ok);
  --amber-bg: var(--bp-warn-bg); --amber-fg: var(--bp-warn);
  --red-bg: var(--bp-err-bg); --red-fg: var(--bp-err);
  --blue: var(--bp-navy); --blue-fg: var(--bp-navy);
  --teal-bg: var(--bp-teal-bg); --teal-fg: var(--bp-teal);
  --held: #fde9b8; --booked: #e3efcf; --block: #e9ebe5;
  --shadow: var(--bp-shadow);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font: 15px/1.45 var(--bp-font); }
a { color: var(--blue-fg); text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; }

.top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 10px 16px; background: var(--surface); border-bottom: 4px solid var(--bp-green); box-shadow: 0 2px 10px rgba(16, 16, 56, .05); position: sticky; top: 0; z-index: 5; }
.top h1 { font-size: 20px; margin: 0; font-weight: 800; color: var(--blue-fg); display: flex; align-items: center; gap: 8px; }
.top h1::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--bp-green); box-shadow: 0 0 0 4px var(--bp-green-soft); }
.top nav { display: flex; flex-wrap: wrap; gap: 4px; }
.top nav a { color: var(--soft); padding: 7px 12px; border-radius: 999px; font-weight: 600; font-size: 14px; }
.top nav a.on { background: var(--bp-navy); color: #fff; }
.top nav a:hover { background: var(--surface2); }
.grow { flex: 1; }
.top input { background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 999px; padding: 7px 10px; min-width: 0; }
#who { width: 130px; }
#who.missing { border-color: var(--amber-fg); }
.searchbox { position: relative; }
.searchbox input { width: 230px; }
#searchResults { position: absolute; right: 0; top: 40px; width: min(440px, 92vw); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; max-height: 60vh; overflow: auto; display: none; box-shadow: var(--shadow); }
#searchResults a { display: block; padding: 8px 12px; border-bottom: 1px solid var(--line); color: var(--text); }
#searchResults a:hover { background: var(--surface2); }

.bar { padding: 8px 16px; font-size: 14px; }
.bar.warn { background: var(--amber-bg); color: var(--amber-fg); }
.bar.err { background: var(--red-bg); color: var(--red-fg); }
.bar.ok { background: var(--green-bg); color: var(--green-fg); }

main { padding: 16px; max-width: 1500px; margin: 0 auto; }
.cols { display: grid; grid-template-columns: minmax(280px, 380px) 1fr; gap: 16px; align-items: start; }
@media (max-width: 900px) { .cols { grid-template-columns: 1fr; } .searchbox input { width: 150px; } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px; margin-bottom: 18px; box-shadow: var(--shadow); }
.panel h2 { font-size: 18px; margin: 0 0 12px; color: var(--bp-navy); font-weight: 800; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.spread { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }

.btn { border: 0; border-radius: 999px; padding: 8px 16px; min-height: 40px; background: var(--surface2); color: var(--text); font-weight: 700; transition: filter .15s, transform .05s; }
.btn:hover { filter: brightness(.97); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--blue); color: #fff; box-shadow: 0 2px 6px rgba(16, 16, 56, .25); }
.btn.green { background: var(--green-bg); color: var(--green-fg); }
.btn.amber { background: var(--amber-bg); color: var(--amber-fg); }
.btn.red { background: var(--red-bg); color: var(--red-fg); }
.btn.ghost { background: transparent; border: 1px solid var(--line); }
.btn:disabled { opacity: .4; cursor: default; }

.chip { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--surface2); color: var(--soft); white-space: nowrap; }
.chip.green { background: var(--green-bg); color: var(--green-fg); }
.chip.amber { background: var(--amber-bg); color: var(--amber-fg); }
.chip.red { background: var(--red-bg); color: var(--red-fg); }
.chip.blue { background: var(--teal-bg); color: var(--teal-fg); }
.st-booked { background: var(--teal-bg); color: var(--teal-fg); }
.st-held, .st-pending, .st-inquiry { background: var(--amber-bg); color: var(--amber-fg); }
.st-cancelled, .st-expired, .st-no_show { background: var(--red-bg); color: var(--red-fg); }
.st-completed { background: var(--green-bg); color: var(--green-fg); }

.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px 12px; }
.field { display: flex; flex-direction: column; gap: 4px; }
.field label { font-size: 13px; color: var(--soft); font-weight: 700; }
.field input, .field select, .field textarea { background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; min-height: 40px; }
.field input:focus, .field select:focus, .field textarea:focus, .top input:focus { outline: 2px solid var(--bp-green-ring); border-color: var(--bp-green); }
.field textarea { min-height: 90px; resize: vertical; }
.field.wide { grid-column: 1 / -1; }
.check { display: flex; gap: 8px; align-items: center; font-size: 14px; }
.grid2 > .check { grid-column: 1 / -1; }

.att { display: block; padding: 12px; border-radius: 14px; background: var(--bg); margin-bottom: 10px; color: var(--text); border-left: 5px solid var(--line); transition: transform .1s, box-shadow .1s; }
.weekchips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }   /* Next 2 weeks: food, Toast invoice, deposit, main bill */
.att:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.att.red { border-left-color: var(--red-fg); }
.att.amber { border-left-color: var(--amber-fg); }
.att .what { font-size: 13px; color: var(--soft); margin-top: 2px; }

/* day calendar */
.daynav { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.daynav h2 { margin: 0 8px 0 0; font-size: 20px; color: var(--bp-navy); }
.cal { display: grid; gap: 6px; position: relative; }
.cal .hdr { font-weight: 700; text-align: center; padding: 4px; }
.cal .hdr .muted { font-weight: 400; font-size: 12px; }
.lane { position: relative; background: var(--bg); border-radius: 12px; }
.times { position: relative; }
.times div { position: absolute; right: 4px; font-size: 11px; color: var(--muted); transform: translateY(-6px); }
.hour { position: absolute; left: 0; right: 0; border-top: 1px solid var(--bp-line); }
.hour.open { border-top: 1px dashed var(--amber-fg); }
.lane .early { position: absolute; left: 0; right: 0; top: 0; background: repeating-linear-gradient(45deg, #fff4d6, #fff4d6 6px, #fbe9b5 6px, #fbe9b5 12px); }
.ev { position: absolute; left: 4px; right: 4px; border-radius: 10px; box-shadow: 0 1px 3px rgba(16, 16, 56, .12); padding: 4px 6px; font-size: 12px; overflow: hidden; color: var(--text); display: block; }
.ev .buf { position: absolute; left: 0; right: 0; background: repeating-linear-gradient(-45deg, rgba(16, 16, 56, .07), rgba(16, 16, 56, .07) 4px, transparent 4px, transparent 8px); }
.ev.booked { background: var(--booked); border-left: 4px solid var(--bp-green); }
.ev.held, .ev.pending { background: var(--held); border-left: 4px solid #e0a800; }
.ev.flagged { outline: 2px solid var(--red-fg); }
.ev.blockitem { background: var(--block); color: var(--soft); }
.ev b { display: block; }
.ev .inner { position: relative; }

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 14px; }
th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; }
tr.flagged td { background: var(--bp-err-bg); }
pre.food { white-space: pre-wrap; background: var(--bg); padding: 10px; border-radius: 8px; margin: 0; font: 13px/1.45 ui-monospace, Menlo, monospace; }

.list .item { padding: 12px; background: var(--bg); border-radius: 14px; margin-bottom: 8px; }
.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: var(--bp-navy); color: #fff; padding: 12px 18px; border-radius: 999px; z-index: 20; max-width: 90vw; box-shadow: var(--shadow); font-weight: 700; }
.toast.err { background: var(--red-bg); color: var(--red-fg); }
.alts button { margin: 6px 6px 0 0; }
.problems { color: var(--amber-fg); font-size: 14px; margin: 8px 0 0; padding-left: 18px; }
.price { font-size: 22px; font-weight: 700; }
/* A pay or invoice button on its own row under the fee lines (an inline .btn's padding overlapped the text above). */
.payrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 12px; }
.payrow .btn { display: inline-flex; align-items: center; text-decoration: none; }

/* staff page */
.staffday h2 { font-size: 20px; margin: 18px 0 8px; }
.party { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px; box-shadow: var(--shadow); margin-bottom: 10px; }
.party .big { font-size: 20px; font-weight: 700; }
.party .room { font-size: 22px; font-weight: 800; }
.party dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 12px; margin: 10px 0 0; }
.party dt { color: var(--muted); }
.party dd { margin: 0; }

.thread { display: flex; flex-direction: column; gap: 8px; max-height: 420px; overflow-y: auto; }
.msg { padding: 10px 14px; border-radius: 16px; max-width: 85%; min-width: 0; box-sizing: border-box; background: var(--surface2);
       overflow-wrap: anywhere; word-break: break-word; }
.msgbody { white-space: pre-wrap; overflow-wrap: anywhere; }
.msg.in { align-self: flex-start; border-bottom-left-radius: 4px; }
.msg.out { align-self: flex-end; background: var(--bp-navy-soft); border-bottom-right-radius: 4px; }
.msg.failed { background: var(--red-bg); }
.todo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; align-items: start; }
.todo-sec h3 { font-size: 15px; margin: 0 0 10px; font-weight: 800; }
.todo-sec { max-height: 460px; overflow-y: auto; }
.att.green { border-left-color: var(--green-fg); }
.cols-r { display: grid; grid-template-columns: 1fr minmax(280px, 360px); gap: 18px; align-items: start; }
@media (max-width: 900px) { .cols-r { grid-template-columns: 1fr; } }
.cday { font-size: 14px; margin: 14px 0 8px; color: var(--soft); font-weight: 800; }
.cday:first-of-type { margin-top: 0; }
dialog#quick { border: 0; border-radius: 20px; padding: 22px; width: min(640px, calc(100vw - 32px)); max-height: calc(100vh - 32px);
  background: var(--surface); color: var(--text); box-shadow: 0 20px 60px rgba(16, 16, 56, .25); }
dialog#quick::backdrop { background: rgba(16, 16, 56, .4); }
dialog#quick .grid2 { margin-top: 14px; }
/* month calendar */
.month { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.mhdr { text-align: center; font-weight: 800; font-size: 13px; color: var(--soft); padding: 4px 0; }
.mday { background: var(--bg); border-radius: 12px; min-height: 118px; padding: 6px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.mday.out { opacity: .45; }
.mday.today { box-shadow: inset 0 0 0 2px var(--blue); }
.mnum { font-weight: 800; color: var(--text); font-size: 14px; align-self: flex-start; padding: 0 6px; border-radius: 999px; }
.mday.today .mnum { background: var(--blue); color: #fff; }
.mnum:hover { background: var(--surface2); }
.mitem { display: block; font-size: 12px; line-height: 1.3; padding: 3px 6px; border-radius: 7px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-left: 3px solid transparent; }
.mitem .mt { font-weight: 800; }
.mitem.st-held, .mitem.st-pending, .mitem.st-inquiry { border: 1px dashed var(--amber-fg); }
.mitem.flagged { box-shadow: inset 0 0 0 1px var(--red-fg); }
.mitem.st-completed { opacity: .6; }
.mmore { font-size: 12px; font-weight: 700; color: var(--blue-fg); padding: 0 6px; }
.r-main { background: var(--bp-navy-soft); border-left-color: var(--bp-navy); }
.r-north { background: var(--bp-blue-bg); border-left-color: var(--bp-blue); }
.r-cellar { background: var(--bp-purple-bg); border-left-color: var(--bp-purple); }
.r-arcade { background: var(--bp-green-soft); border-left-color: var(--bp-green); }
.r-catering { background: var(--bp-orange-bg); border-left-color: var(--bp-orange); }
.r-other { background: var(--bp-teal-bg); border-left-color: var(--bp-teal); }
.mitem.blk, .mkey i.blk { background: var(--block); color: var(--muted); }
.mkey { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 12px; }
.mkey i { display: inline-block; width: 14px; height: 14px; border-radius: 4px; margin-right: 5px; vertical-align: -2px; border-left: 4px solid transparent; }
@media (max-width: 700px) { .mday { min-height: 70px; } .mitem { font-size: 11px; } .mitem .mt { display: none; } }
/* customer portal */
.portal .phead { text-align: center; padding: 14px 16px 10px; margin-bottom: 12px; background: #fff; border-bottom: 4px solid var(--bp-green); }
.portal .phead img { height: 64px; max-width: 46%; object-fit: contain; }
.portal .phead .plogos { display: flex; justify-content: center; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 4px; }
.portal .phead img.wide { height: 44px; }
.portal .phead img:only-child { max-width: 80%; }
.portal .phead img.wide:only-child { height: 56px; }
.pmain { max-width: 1100px; margin: 0 auto; padding: 8px 16px 16px; }
.pgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
@media (max-width: 820px) { .pgrid { grid-template-columns: 1fr; } }
.hello h1 { font-size: 24px; margin: 0; color: var(--bp-navy); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 16px 0; }
.facts div { display: flex; flex-direction: column; background: var(--bg); border-radius: 14px; padding: 10px 12px; }
.facts b { font-size: 17px; }
table.lines td { padding: 4px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.pfoot { text-align: center; padding: 8px 16px 28px; }
/* website widget */
.doors { display: flex; gap: 8px; flex-wrap: wrap; }
.door { border: 2px solid var(--line); background: var(--surface); border-radius: 999px; padding: 10px 18px; font-weight: 800; color: var(--soft); }
.door.on { border-color: var(--blue); background: var(--bp-navy-soft); color: var(--blue-fg); }
.roomcards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin-top: 12px; }
.roomcard { background: var(--bg); border-radius: 14px; padding: 10px 12px; display: flex; flex-direction: column; gap: 3px; transition: opacity .15s; }
.roomcard.dim { opacity: .35; }
.wday { border: 0; background: var(--surface2); color: var(--muted); border-radius: 10px; min-height: 44px; font-weight: 700; }
.wday.open { background: var(--green-bg); color: var(--green-fg); }
.wday.early { background: repeating-linear-gradient(45deg, #fff4d6, #fff4d6 5px, #fbe9b5 5px, #fbe9b5 10px); color: var(--amber-fg); }
.wday.sel { outline: 3px solid var(--blue); }
.wday:disabled { opacity: .5; cursor: default; }
.troom { margin: 10px 0 6px; }
.tslot { display: flex; flex-direction: column; align-items: center; line-height: 1.2; padding: 6px 12px; }
.tslot small { font-weight: 400; color: var(--muted); font-size: 11px; }
.tslot.primary small { color: #fff; opacity: .9; }
.tslot.early { border-style: dashed; }
.tslot.sel { background: var(--blue); color: #fff; border-color: var(--blue); }
.tslot.sel small { color: #fff; }

.draft { margin: 6px 0 0 18px; padding: 10px 12px; border-left: 3px solid var(--amber-fg, #b7791f); background: var(--amber-bg); border-radius: 0 10px 10px 0; }

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { height: 40px; width: auto; display: block; }
.brand img + img { height: 28px; }
@media (max-width: 600px) { .brand img { height: 32px; } .brand img + img { height: 22px; } }
.mday { cursor: pointer; }
.draftbox { background: var(--bp-warn-bg); border: 2px dashed var(--amber-fg); border-radius: 12px; padding: 10px 12px; margin-top: 8px; }
.draftbox textarea { width: 100%; min-height: 120px; margin: 6px 0; }
/* Same-day list on the event card (Jake 2026-10-21): room + start/stop, each row opens that card. */
.sd-row { display: flex; gap: 8px; align-items: center; padding: 9px 12px; margin-bottom: 6px; border-radius: 12px;
  background: var(--bg); border: 1px solid var(--line); border-left: 4px solid var(--bp-green); color: var(--text); }
.sd-row:hover, .sd-row:focus-visible { background: var(--surface2); border-color: var(--bp-green); }
.sd-room { font-weight: 700; }
.sd-time { margin-left: auto; color: var(--soft); font-size: 14px; white-space: nowrap; }
.sd-go { color: var(--muted); font-size: 18px; line-height: 1; }
.inbox-group { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; background: var(--surface); }
.inbox-group summary { cursor: pointer; list-style: none; }
.inbox-group .msg { margin-top: 8px; }

/* Customer page: the event number sits apart, top right, big and bold (Jake, 2026-10-16). */
.hello-top { align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.refbox { border: 2px solid var(--line); border-radius: 12px; padding: 8px 16px; text-align: right; background: var(--surface2); }
.refnum { font-size: 30px; font-weight: 800; line-height: 1.1; letter-spacing: .5px; }

/* Inbox: collapsed to a summary and a one-line preview (Jake, 2026-10-16). */
.inbox-sum { margin: 6px 0 2px 18px; padding: 0; }
.inbox-sum li { margin: 1px 0; }
.inbox-prev { margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inbox-more { margin-top: 4px; color: var(--bp-navy); font-weight: 700; }
.inbox-group[open] .inbox-more, .inbox-group[open] .inbox-prev { display: none; }

/* Widget: scroll the days and tap an open time (Jake, 2026-10-16). */
/* booking widget: month calendar + one day with the rooms side by side (Jake, 2026-10-16) */
.mnav { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 10px; }
.mtitle { font-weight: 800; font-size: 18px; min-width: 170px; text-align: center; }
.mcal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.mwd { text-align: center; font-size: 12px; font-weight: 700; color: var(--muted); padding: 2px 0; }
.mday { border: 2px solid transparent; border-radius: 12px; min-height: 66px; padding: 6px 4px 4px; display: flex; flex-direction: column; align-items: center; gap: 3px; background: var(--bg); color: var(--text); text-align: center; transition: transform .1s; }
.mday.blank { background: transparent; }
.mday.past { opacity: .35; }
.mday.open { background: var(--green-bg); }
.mday.some { background: #f3efc9; }
.mday.early { background: repeating-linear-gradient(45deg, #fbefd9, #fbefd9 5px, #f6e3bd 5px, #f6e3bd 10px); }
.mday.none { background: var(--surface2); color: var(--muted); }
button.mday:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.mday.sel { border-color: var(--blue); }
.mnum { font-weight: 800; font-size: 15px; }
.mword { font-size: 10px; font-weight: 700; color: var(--soft); }
.mday.none .mword { color: var(--muted); }
.dots { display: flex; gap: 3px; justify-content: center; min-height: 8px; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: #cfc6ba; }
.dot.open { background: var(--green-fg); }
.dot.some { background: #d9a400; }
.dot.early { background: var(--amber-fg); opacity: .7; }
.dot.none { background: #cfc6ba; }
.mkey { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; align-items: center; }
.mkey span { display: inline-flex; align-items: center; gap: 5px; }
.pill { display: inline-flex; align-items: center; gap: 8px; border: 2px solid var(--line); border-radius: 999px; padding: 6px 14px; font-weight: 700; font-size: 14px; color: var(--soft); cursor: pointer; }
.pill:has(input:checked) { border-color: var(--blue); background: #fbe3d7; color: var(--blue-fg); }
.picks { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; background: var(--bg); border-radius: 14px; padding: 10px 12px; margin-bottom: 12px; }
.pick { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 5px 6px 5px 12px; font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.pick button { border: 0; background: var(--surface2); border-radius: 50%; width: 24px; height: 24px; font-weight: 800; color: var(--soft); }
.tlwrap { overflow-x: auto; }
.tl { display: grid; gap: 6px; min-width: 360px; }
.tlh { display: flex; flex-direction: column; align-items: center; text-align: center; line-height: 1.25; padding: 4px 2px 6px; font-size: 15px; }
.tlh.dim, .tll.dim { opacity: .45; }
.tlg { position: relative; }
.tlg .tick { position: absolute; right: 4px; font-size: 11px; color: var(--muted); transform: translateY(-7px); white-space: nowrap; }
.tll { position: relative; background: var(--bg); border-radius: 12px; overflow: hidden; }
.tll .hour { position: absolute; left: 0; right: 0; border-top: 1px solid #ece3d7; }
.tll .closed { position: absolute; left: 0; right: 0; background: repeating-linear-gradient(-45deg, #f1ece4, #f1ece4 6px, #ebe4da 6px, #ebe4da 12px); }
.tll .early { position: absolute; left: 0; right: 0; background: repeating-linear-gradient(45deg, #fbefd9, #fbefd9 6px, #f8e8cc 6px, #f8e8cc 12px); }
.tll .busy { position: absolute; left: 3px; right: 3px; border-radius: 9px; background: repeating-linear-gradient(-45deg, #d9d0c4, #d9d0c4 6px, #cfc5b7 6px, #cfc5b7 12px); display: flex; align-items: center; justify-content: center; color: var(--soft); font-size: 12px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; box-shadow: inset 0 0 0 1px rgba(80, 50, 20, .08); }
.tll .open { position: absolute; overflow: hidden; left: 3px; right: 3px; border: 0; border-radius: 9px; background: var(--green-bg); color: var(--green-fg); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; padding: 2px; font-size: 12px; line-height: 1.2; box-shadow: inset 0 0 0 2px rgba(46, 122, 63, .25); cursor: pointer; transition: filter .1s; }
.tll .open b { font-size: 13px; }
.tll .open:hover { filter: brightness(.95); box-shadow: inset 0 0 0 2px var(--green-fg); }
.tll .open.early { background: repeating-linear-gradient(45deg, #fbefd9, #fbefd9 5px, #f6e3bd 5px, #f6e3bd 10px); color: var(--amber-fg); box-shadow: inset 0 0 0 2px rgba(154, 95, 0, .25); }
.tll .open.sel { box-shadow: inset 0 0 0 3px var(--blue); }
.tll.dim .open { pointer-events: none; }
@media (max-width: 480px) { .mday { min-height: 56px; padding: 4px 2px; } .mword { display: none; } .tl { --tlgut: 36px; --tlmin: 62px; min-width: 0; } .tlh { font-size: 13px; } .tlh .small { font-size: 11px; } .tll .open, .tll .busy { font-size: 11px; left: 2px; right: 2px; } .tll .open b { font-size: 12px; } }

/* Widget, 2026-10-17 (Jake): no switches; every tapped opening is a pick. One pick books, several go for approval. */
.panel.sent { background: var(--green-bg); border-color: var(--green-fg); }
.panel.sent h2 { color: var(--green-fg); margin-top: 0; }
.wintro { background: var(--green-bg); color: var(--text); border-radius: 12px; padding: 10px 14px; margin: 0 0 12px; font-size: 15px; line-height: 1.4; }
.linkbtn { border: 0; background: none; padding: 0; color: var(--blue-fg, var(--blue)); font-weight: 700; text-decoration: underline; cursor: pointer; font-size: inherit; }
.dot.picked { background: var(--blue); }
.mday.haspick { position: relative; }
.mday.haspick::after { content: "✓"; position: absolute; top: -6px; right: -6px; width: 18px; height: 18px; box-shadow: 0 0 0 2px var(--surface); border-radius: 50%; background: var(--blue); color: #fff; font-size: 10px; font-weight: 800; line-height: 18px; }
.tll .picked { position: absolute; left: 6px; right: 6px; z-index: 2; border: 0; border-radius: 9px; background: var(--blue); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; padding: 2px; font-size: 12px; line-height: 1.2; box-shadow: 0 2px 8px rgba(80, 50, 20, .25); cursor: pointer; }
.tll .picked b { font-size: 13px; }
.tll .picked.sel { outline: 3px solid var(--blue-fg, #7a2e14); outline-offset: 1px; }
.tll .picked.bad { background: var(--red-bg); color: var(--red-fg); box-shadow: inset 0 0 0 2px var(--red-fg); }
.wbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(80, 50, 20, .12); }
.wbar-in { max-width: 980px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; justify-content: space-between; }
.wbar .picks { margin: 0; padding: 0; background: none; flex: 1 1 320px; }
.wbar-act { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.pick .pick-t { width: auto; height: auto; border: 0; border-radius: 0; background: none; padding: 0; font: inherit; color: inherit; cursor: pointer; text-align: left; }
.pick.bad { border-color: var(--red-fg); color: var(--red-fg); }
body.has-wbar { padding-bottom: 140px; }
@media (max-width: 480px) { .wbar-act { width: 100%; justify-content: space-between; flex-wrap: nowrap; } .wbar-act .small { font-size: 12px; } .wbar .picks { flex-wrap: nowrap; overflow-x: auto; flex-basis: 100%; padding-bottom: 2px; } .wbar .pick { font-size: 13px; flex-shrink: 0; } body.has-wbar { padding-bottom: 120px; } .tll .picked { left: 3px; right: 3px; font-size: 11px; } }
.wbar-act .btn { white-space: nowrap; }

/* Month calendar as a plain date picker (Jake, 2026-10-17). */
.mday.pickable { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); justify-content: center; min-height: 54px; }
.mday.pickable .mnum { font-size: 17px; }
button.mday.pickable:hover { background: var(--green-bg); }
.mday.off { background: transparent; color: var(--muted); opacity: .4; justify-content: center; min-height: 54px; }
.mday.off .mnum { font-weight: 600; text-decoration: none; }
.mday.sel.pickable { background: var(--blue); color: #fff; }
@media (max-width: 480px) { .mday.pickable, .mday.off { min-height: 46px; } }
#w-cal-panel .mcal, #w-cal-panel .mnav { max-width: 560px; margin-left: auto; margin-right: auto; }
#w-cal-panel .mkey { justify-content: center; }
.mday.pickable, .mday.off { align-items: center; }
.mday.pickable .mnum, .mday.off .mnum { margin: 0 auto; }
#w-cal-panel #w-figopen { display: block; margin: 0 auto; }

/* "See the rooms first" path and the AI room helper (Jake, 2026-10-17) */
.wpath { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; margin: 0 0 12px; font-weight: 700; color: var(--soft); }
.whelp { background: var(--green-bg); border-radius: 14px; padding: 12px 14px; margin: 4px 0 16px; }
.whelp-row { display: flex; gap: 8px; align-items: stretch; }
.whelp-row textarea { flex: 1; min-height: 48px; }
.whelp-out { background: var(--surface); border-radius: 10px; padding: 10px 12px; margin-top: 10px; }
.roomgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.roominfo { border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 6px; background: var(--surface); }
.roominfo p { margin: 0; }
.roominfo .btn { margin-top: auto; align-self: flex-start; }
.roominfo.suggested { border: 2px solid var(--green-fg); box-shadow: 0 0 0 3px var(--green-bg); }
.ri-big { font-size: 20px; font-weight: 800; }
.wcheck { position: sticky; top: 0; z-index: 5; background: var(--surface); padding: 6px 0 10px; margin-bottom: 4px; }
.wcheck .btn { width: 100%; font-size: 20px; font-weight: 800; padding: 16px 20px; border-radius: 14px; letter-spacing: .2px; }
@media (max-width: 480px) { .whelp-row { flex-direction: column; } }
.docrow { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; border-top: 1px solid var(--line); padding: 10px 0; }
.docrow:first-child { border-top: 0; }
.docprev { margin-top: 2px; overflow-wrap: anywhere; }
.docadd { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px; }
.holdnote { flex: 1 1 260px; max-width: 460px; line-height: 1.35; }
.field textarea.replybox, .draftbox textarea.replybox { min-height: 260px; width: 100%; box-sizing: border-box; line-height: 1.45; }
.whichbox { background: var(--bp-warn-bg, #fff6e0); border: 2px solid var(--amber-fg); border-radius: 12px; padding: 10px 12px; margin-top: 8px; }
dialog.sheetdlg { border: 0; border-radius: 20px; padding: 22px; width: min(760px, calc(100vw - 32px)); max-height: calc(100vh - 32px);
  background: var(--surface); color: var(--text); box-shadow: 0 20px 60px rgba(16, 16, 56, .25); }
dialog.sheetdlg::backdrop { background: rgba(16, 16, 56, .4); }
dialog.sheetdlg h3 { margin: 16px 0 6px; font-size: 15px; }
.rp-sum { background: var(--bg); border-radius: 10px; padding: 8px 12px; margin-top: 10px; }
.rp-orig { white-space: pre-wrap; border-left: 3px solid var(--line); padding: 6px 12px; max-height: 260px; overflow: auto; }
.msgtodo a { color: inherit; }
.smsnote { margin-top: 4px; }
.smsnote summary { cursor: pointer; list-style: none; text-decoration: underline dotted; }
.smsnote summary::-webkit-details-marker { display: none; }
.smsnote[open] summary { margin-bottom: 2px; }
.tll .picked .grip { position: absolute; left: 0; right: 0; height: 8px; cursor: ns-resize; }
.tll .picked .g-top { top: 0; }
.tll .picked .g-bot { bottom: 0; }
.tll .picked .g-bot::after { content: ""; position: absolute; left: 50%; bottom: 2px; width: 24px; height: 3px; margin-left: -12px; border-radius: 2px; background: rgba(255, 255, 255, .7); }
.tll .picked { touch-action: none; cursor: grab; }
.tll .picked.dragging { cursor: grabbing; opacity: .9; }
.tll .picked.ghost { pointer-events: none; opacity: .75; }
/* Day view room headers and the room popup (Jake, 2026-10-18) */
.tlh .tlname { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-decoration: underline dotted; text-underline-offset: 3px; }
.tlh .tlinfo { color: var(--bp-green, #82b337); font-size: 13px; }
.tlh .tlrate { font-weight: 600; color: var(--bp-navy, #101038); }
.tll.droproom { background: rgba(130, 179, 55, .12); outline: 2px dashed var(--bp-green, #82b337); outline-offset: -2px; }
.tll .picked.dragging { z-index: 5; }
.roompop-dlg { width: min(640px, calc(100vw - 32px)); max-height: calc(100vh - 48px); border: 0; border-radius: 14px; padding: 16px 18px; box-shadow: 0 10px 40px rgba(16, 16, 56, .3); }
.roompop-dlg::backdrop { background: rgba(16, 16, 56, .45); }
.rp-photos { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; margin-bottom: 10px; }
.rp-photos img { height: 240px; max-width: 90%; object-fit: cover; border-radius: 10px; scroll-snap-align: start; flex-shrink: 0; }
@media (max-width: 480px) { .rp-photos img { height: 180px; } }
.roompop { border-top: 1px solid var(--line); padding: 12px 0; }
.roompop:first-of-type { border-top: 0; }
.photorow { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.photothumb { margin: 0; width: 160px; padding: 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.photothumb.main { border: 2px solid var(--bp-green); }
.photothumb img { width: 100%; height: 110px; object-fit: cover; border-radius: 8px; display: block; }
.photothumb figcaption { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: space-between; margin-top: 6px; }
.photothumb .chip { font-size: 12px; }
.tll.dragsrc { overflow: visible; z-index: 3; }

/* The When box on the event card (Jake 2026-10-17: 15-minute steps, a cleaner look) */
.when { grid-column: 1 / -1; background: var(--surface2); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px 14px; }
.when-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-bottom: 10px; }
.when-k { font-size: 13px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.when-sum { font-size: 17px; font-weight: 800; color: var(--bp-navy); }
.when-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px 12px; }
@media (min-width: 760px) { .when-row { grid-template-columns: 1.1fr 1fr 1fr; } }
.when-row + .when-row { margin-top: 10px; }
.when .field input, .when .field select { background: var(--surface); }
.when .field select { appearance: none; -webkit-appearance: none; padding-right: 32px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; min-height: 40px; align-items: center; }
.chip { border: 1px solid var(--line); background: var(--surface); color: var(--soft); border-radius: 999px; padding: 6px 11px; font-size: 13px; font-weight: 700; white-space: nowrap; }
#alsoRooms, .optpills { gap: 6px; min-height: 40px; align-items: center; }
#alsoRooms .check, .optpills .check { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 5px 11px 5px 8px; font-size: 13px; font-weight: 700; color: var(--soft); white-space: nowrap; }
#alsoRooms .check input, .optpills .check input { min-height: 0; padding: 0; margin: 0; width: 15px; height: 15px; accent-color: var(--bp-green); }
#alsoRooms .check:has(input:checked), .optpills .check:has(input:checked) { background: var(--bp-navy); border-color: var(--bp-navy); color: #fff; }
.chip:hover { border-color: var(--bp-green); }
.chip.on { background: var(--bp-navy); border-color: var(--bp-navy); color: #fff; }

/* Toast invoice: mismatch box and the copy-ready info popup (Jake, 2026-10-18) */
.tdiff { background: var(--red-bg); color: var(--red-fg); border-radius: 12px; padding: 10px 14px; margin: 0 0 8px; font-size: 14px; }
.tdiff ul { margin: 6px 0 0 18px; padding: 0; }
.tinfo { border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; margin-top: 8px; background: var(--surface); }
.tinfo-h { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--muted); }
.tinfo-v { font-size: 16px; font-weight: 600; margin-top: 2px; word-break: break-word; }
.tinfo-v.multi { white-space: pre-wrap; font-weight: 500; font-size: 15px; }

/* Room information first, then booking (Jake, 2026-10-18): full room cards from the tool above the calendar. */
.ri-photo { display: block; position: relative; padding: 0; border: 0; background: none; cursor: pointer; margin: -14px -14px 6px; border-radius: 14px 14px 0 0; overflow: hidden; }
.ri-photo img { display: block; width: 100%; height: 180px; object-fit: cover; }
.ri-count { position: absolute; right: 8px; bottom: 8px; background: rgba(16, 16, 56, .75); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 999px; }
.ri-facts { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.ri-price { font-weight: 700; color: var(--green-fg); }
.ri-head { font-size: 14px; margin: 6px 0 0; }
.ri-list { margin: 0; padding-left: 18px; font-size: 14px; line-height: 1.4; }
.ri-list li + li { margin-top: 3px; }
#w-rooms .roomgrid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

/* Booking page rooms laid out like the website's Parties page (Jake, 2026-10-18): photo hero with a grey band,
   "Spaces" with photo + text tiles, gold condensed room names, bold Cost / Capacity lines, cream background. */
.panel.site { background: var(--bp-site-cream); padding: 0 0 16px; overflow: hidden; font-family: var(--bp-site-body); }
.site-h { font-family: var(--bp-site-head); font-weight: 400; letter-spacing: .5px; text-transform: uppercase; line-height: 1; }
.site-bar { display: flex; align-items: center; justify-content: center; padding: 14px 16px 10px; }
.site-spaces { font-size: 42px; color: var(--bp-site-brown); margin: 0; }
.site-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 8px; }
.roominfo.site-room { display: grid; grid-template-columns: 1fr 1fr; align-content: start; gap: 0; border: 0; border-radius: 0; padding: 0; background: var(--bp-card-2); }
.site-room .site-photo { margin: 0; border-radius: 0; height: 100%; min-height: 260px; }
.site-room .site-photo img { height: 100%; min-height: 260px; }
.site-text { padding: 10px 12px; text-align: center; display: flex; flex-direction: column; gap: 6px; }
.site-text p { font-size: 14px; line-height: 1.45; margin: 0; }
.site-name { font-family: var(--bp-site-head); font-weight: 400; font-size: 34px; line-height: 1; color: var(--bp-site-gold); text-transform: uppercase; margin: 2px 0 0; }
.site-venue { font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--bp-muted); }
.site-fact { font-weight: 700; font-size: 16px; color: var(--bp-navy); text-align: left; padding-left: 4px; }
.site-fact:first-of-type { margin-top: 6px; }
.site-more { grid-column: 1 / -1; padding: 8px 14px 12px; border-top: 1px solid var(--bp-line); font-size: 14px; }
.site-more summary { cursor: pointer; font-weight: 700; color: var(--bp-site-brown); }
.site-more .ri-list { margin-top: 6px; }
.roominfo.site-room.suggested { box-shadow: 0 0 0 3px var(--green-fg); }
.site-extras { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 18px 16px 4px; }
.site-box { padding: 10px 14px; box-shadow: 4px 4px 0 rgba(16, 16, 56, .35); font-size: 14px; line-height: 1.4; }
.site-box .site-h { font-size: 28px; margin-bottom: 4px; }
.site-all { background: var(--bp-card-2); border: 2px solid var(--bp-green-dark); }
.site-all .site-h { color: var(--bp-site-gold); }
.site-early { background: var(--bp-green); color: #fff; border: 2px solid var(--bp-green-dark); }
.site-early .site-h { color: #fff; }
.panel.site .whelp { margin: 16px 16px 0; }
.site-ask { font-size: 30px; color: var(--bp-navy); display: block; }
.panel.site > details { margin: 12px 16px 0 !important; }
.site-plan img { display: block; max-width: 100%; margin: 8px auto 0; border: 2px solid var(--bp-green-dark); }
@media (max-width: 760px) {
  .site-grid { grid-template-columns: 1fr; }
  .site-extras { grid-template-columns: 1fr; }
  .site-spaces { font-size: 34px; }
}
@media (max-width: 420px) {
  .roominfo.site-room { grid-template-columns: 1fr; }
  .site-room .site-photo, .site-room .site-photo img { min-height: 0; height: 200px; }
}
.panel.site h2.site-spaces { font-size: 42px; color: var(--bp-site-brown); margin: 0; }
@media (max-width: 760px) { .panel.site h2.site-spaces { font-size: 34px; } }

/* Photo library (Jake, 2026-10-19): one gallery for the whole tool. */
.libgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.libtile { margin: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); display: flex; flex-direction: column; }
.libtile img { display: block; width: 100%; height: 140px; object-fit: cover; background: var(--bp-card-2); }
.libtile figcaption { padding: 8px 10px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.libname { font-weight: 700; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.libuses { display: flex; flex-wrap: wrap; gap: 4px; }
.libroom button { border: 0; background: none; color: inherit; font: inherit; font-weight: 800; padding: 0 0 0 6px; cursor: pointer; }
.libacts { margin-top: auto; justify-content: space-between; flex-wrap: nowrap; gap: 6px; }
.libacts select { min-width: 0; flex: 1; font-size: 13px; }
.libpick { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: var(--green-bg); display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* The booking widget embedded on a website (?embed=1): no inner scrollbar; the frame grows with the page.
   --vt/--vh = the part of the frame on screen, sent by the website, so fixed things stay in view. */
html.embed, html.embed body { overflow: hidden; background: transparent; }
html.embed body { min-height: 0; }
html.embed .wbar { position: absolute; bottom: auto; top: calc(var(--vt, 0px) + var(--vh, 100vh)); transform: translateY(-100%); }
html.embed .toast { position: absolute; bottom: auto; top: calc(var(--vt, 0px) + var(--vh, 100vh) - 20px); transform: translate(-50%, -100%); }
html.embed .roompop-dlg { position: absolute; top: calc(var(--vt, 0px) + 16px); margin: 0 auto; max-height: calc(var(--vh, 100vh) - 32px); }
html.embed .pfoot { display: none; }
html.embed .pmain { max-width: none; padding: 0; }
/* Other mail on the Inbox page: whole emails that aren't on a booking yet. */
.mailitem:hover { transform: none; }
.mailitem > summary { cursor: pointer; list-style: none; }
.mailitem > summary::-webkit-details-marker { display: none; }
.mailitem [hidden] { display: none !important; }
.mailitem[open] > summary .inbox-prev { display: none; }

/* Settings → AI answers: Questions & answers, one card per question under its section (Jake, 2026-10-22) */
.faq-sec { margin: 14px 0 6px; }
.faq-sec h3 { font-size: 15px; margin: 0 0 8px; color: var(--bp-navy); }
.faq-list { display: grid; gap: 10px; margin-bottom: 8px; }
.faq-item { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.faq-item textarea { min-height: 70px; }
.faq-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 13px; color: var(--soft); font-weight: 700; }
.faq-meta select { margin-left: 4px; border: 1px solid var(--line); border-radius: 8px; padding: 4px 8px; background: var(--surface); color: var(--text); }
.faq-meta [data-faq-del] { margin-left: auto; }

/* (i) more-info buttons and their pop-up (Jake 2026-10-23: explanations behind a button, not on the card). */
.info-i { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; flex: 0 0 22px; border-radius: 50%;
  border: 1.5px solid var(--bp-line-strong); background: var(--bp-card); color: var(--bp-muted); font: italic 700 13px/1 Georgia, serif;
  cursor: pointer; padding: 0; vertical-align: middle; }
.info-i:hover, .info-i:focus-visible { border-color: var(--bp-navy); color: var(--bp-navy); outline: none; }
dialog.infodlg { border: 0; border-radius: 16px; padding: 16px 18px; width: min(420px, calc(100vw - 32px)); box-shadow: var(--shadow);
  background: var(--bp-card); color: var(--bp-ink); }
dialog.infodlg::backdrop { background: rgba(16, 16, 56, .35); }
dialog.infodlg p { margin: 8px 0 0; line-height: 1.45; white-space: pre-line; }
/* Customer comments: an empty box stays one line until someone types in it. */
.field textarea.slim { min-height: 40px; height: 40px; }
.field textarea.slim:focus { height: 90px; }
/* History starts folded. */
details.history > summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; }
details.history > summary::-webkit-details-marker { display: none; }
details.history > summary h2 { margin: 0; }
details.history > summary .hist-n { color: var(--bp-muted); font-size: 14px; }
details.history > summary .hist-n::after { content: " ▸"; }
details.history[open] > summary .hist-n::after { content: " ▾"; }
details.history[open] > summary { margin-bottom: 10px; }
/* Card save refused: say why, and what's open instead. */
.clashbox { margin-top: 10px; padding: 12px 14px; border-radius: 12px; background: var(--bp-err-bg); color: var(--bp-err); border-left: 4px solid var(--bp-err); }
.clashbox ul { margin: 6px 0 0; padding-left: 18px; }
.clashbox .row { margin-top: 8px; }
[hidden] { display: none !important; }
/* Payments: one lined-up fee list, each line with its own × (Jake 2026-10-23). */
table.feelines td.amt { text-align: right; white-space: nowrap; width: 1%; padding-left: 12px; }
table.feelines td.x { width: 1%; text-align: right; padding-left: 8px; white-space: nowrap; }
table.feelines td.amt input { width: 80px; min-height: 0; padding: 4px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--text); text-align: right; }
table.feelines tr.gone td:not(.x) { color: var(--bp-muted); text-decoration: line-through; }
table.feelines.replaced tr:not(.custom) td:not(.x) { color: var(--bp-muted); text-decoration: line-through; }
table.feelines tr.custom td { border-bottom: 0; padding-top: 8px; }
.feex { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--bp-line-strong); background: var(--bp-card); color: var(--bp-muted);
  font: 700 16px/1 var(--bp-font); cursor: pointer; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
.feex:hover, .feex:focus-visible { border-color: var(--bp-err); color: var(--bp-err); background: var(--bp-err-bg); outline: none; }
.customprice input { background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 8px; }
.customprice #priceCents { width: 110px; }
.customprice #priceWhy { flex: 1; min-width: 160px; }
/* Main Room add-ons fold out beside Room (Jake 2026-10-23). */
details.optdrop { position: relative; }
details.optdrop > summary { list-style: none; cursor: pointer; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 8px 32px 8px 12px; min-height: 40px;
  display: flex; align-items: center; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
details.optdrop > summary::-webkit-details-marker { display: none; }
details.optdrop > summary::after { content: "▾"; position: absolute; right: 12px; top: 10px; color: var(--bp-muted); }
details.optdrop[open] > summary::after { content: "▴"; }
details.optdrop .optpills { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 8px 0 0; }

/* Saves by themselves (Jake 2026-10-23): same "Saving… / Saved ✓ / Not saved yet" spot as Settings. */
.as-status { display: inline-flex; align-items: center; gap: 8px; min-height: 24px; font-weight: 600; font-size: 13px; color: var(--muted); }
.as-status.ok { color: var(--bp-ok); }
.as-status.err { color: var(--bp-err); background: var(--bp-err-bg); padding: 4px 10px; border-radius: 10px; }
.as-retry { font: inherit; font-size: 12px; padding: 2px 10px; border-radius: 999px; border: 1px solid currentColor; background: var(--surface); color: inherit; cursor: pointer; }
/* Full-page calendar (Jake, 2026-10-26): month or week, every event readable at a glance. */
.calpage .caltools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 14px; }
.calpage h1 { margin: 0; font-size: 26px; font-weight: 800; color: var(--bp-navy); min-width: 210px; }
.calnav { display: flex; gap: 6px; }
.calnav .btn { min-width: 44px; font-size: 16px; }
.seg { display: inline-flex; background: var(--surface2); border-radius: 999px; padding: 3px; }
.seg a { padding: 7px 18px; border-radius: 999px; font-weight: 700; color: var(--soft); }
.seg a.on { background: var(--bp-navy); color: var(--bp-card); }
.calfilter { display: flex; flex-wrap: wrap; gap: 6px; }
.fchip { border: 1px solid var(--line); border-left-width: 5px; border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 700; color: var(--text); }
.fchip.tent { background: var(--amber-bg); border: 1px dashed var(--amber-fg); }
.fchip[aria-pressed="false"] { background: var(--surface); color: var(--muted); border-left-color: var(--line); text-decoration: line-through; opacity: .7; }
.calgrid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.chdr { text-align: center; font-weight: 800; font-size: 14px; color: var(--soft); padding: 2px 0; }
.chdr .short, .cdow { display: none; }
.calday { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 8px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.month7 .calday { min-height: 150px; }
.calday.out { background: var(--bg); }
.calday.out > * { opacity: .55; }
.calday.today { border-color: var(--bp-navy); box-shadow: inset 0 0 0 1px var(--bp-navy); }
.cnum { align-self: flex-start; font-weight: 800; font-size: 16px; color: var(--text); padding: 1px 8px; border-radius: 999px; }
.cnum:hover { background: var(--surface2); }
.calday.today .cnum { background: var(--bp-navy); color: var(--bp-card); }
.cev { display: flex; flex-direction: column; gap: 1px; padding: 6px 8px; border-radius: 10px; border-left: 5px solid transparent; color: var(--text); line-height: 1.25; }
.cev:hover { filter: brightness(.96); }
.cev .ct { font-size: 13px; font-weight: 800; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 6px; }
.cev .cg { font-weight: 600; color: var(--soft); }
.cev .cn { font-size: 15px; font-weight: 700; overflow-wrap: anywhere; }
.cev .cw { font-size: 12px; color: var(--soft); }
.cev .cs { align-self: flex-start; margin-top: 2px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; color: var(--amber-fg); }
.cev.st-held, .cev.st-pending, .cev.st-inquiry { outline: 2px dashed var(--amber-fg); outline-offset: -2px; }
.cev.st-completed { opacity: .65; }
.cev.flagged { box-shadow: inset 0 0 0 2px var(--red-fg); }
.cev.blk { background: var(--block); border-left-color: var(--bp-line-strong); color: var(--muted); }
.cev.blk .cn { font-weight: 700; }
.week7 .calday { min-height: 60vh; }
.whdr { display: flex; flex-direction: column; align-items: center; padding: 4px 0 8px; border-bottom: 1px solid var(--line); color: var(--text); }
.whdr b { font-size: 16px; }
.whdr span { font-size: 13px; color: var(--muted); }
.calday.today .whdr b { color: var(--bp-navy); }
.week7 .cev { padding: 9px 10px; }
.week7 .cev .ct { font-size: 15px; }
.week7 .cev .cn { font-size: 17px; }
.week7 .cev .cw { font-size: 13px; }
.calday .none { color: var(--muted); font-size: 13px; text-align: center; padding: 10px 0; }
.calday:not(.empty) .none { display: none; }
.calpage .nothing { text-align: center; padding: 20px; }
.calpage .mkey { margin-top: 14px; }
@media (max-width: 1100px) {
  .chdr .long { display: none; } .chdr .short { display: inline; }
  .month7 .cev .cw { display: none; }
}
/* Phones: one day per row, days with nothing hidden in the month. */
@media (max-width: 760px) {
  .calpage h1 { font-size: 22px; min-width: 0; width: 100%; }
  .calgrid { grid-template-columns: 1fr; }
  .chdr { display: none; }
  .month7 .calday { min-height: 0; }
  .month7 .calday.empty, .month7 .calday.out { display: none; }
  .cdow { display: inline; }
  .month7 .cev .cw { display: block; }
  .week7 .calday { min-height: 0; }
  .whdr { flex-direction: row; justify-content: space-between; }
}
.cev[hidden] { display: none; }
.cev.blk.span { padding: 2px 8px; border-left-width: 3px; }
.cev.blk.span .cw { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
/* Month: one line per event (Jake, 2026-10-26). */
.cev.line { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 1px 6px; border-left-width: 4px; border-radius: 6px; font-size: 12px; line-height: 17px; }
.cev.line b { font-weight: 800; }
.cev.line .lr { font-weight: 700; }
.cev.line .ln { color: var(--soft); }
/* Every day box holds 10 bookings without growing (Jake, 2026-10-26): 10 x 19px lines + the date. */
.month7 .calday { min-height: 226px; gap: 2px; padding: 5px; }
.month7 .cnum { font-size: 14px; padding: 0 7px; margin-bottom: 1px; }
.month7 .cev.line.flagged, .month7 .cev.line.st-held, .month7 .cev.line.st-pending, .month7 .cev.line.st-inquiry { outline-width: 1.5px; }
@media (max-width: 760px) { .cev.line { font-size: 14px; padding: 6px 8px; } }

/* Files on emails (Jake 2026-10-26) */
.filechips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.filechips:empty { display: none; }
.filechip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; font-size: 13px; background: var(--surface2); color: var(--text); border: 1px solid var(--line); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.filechip, .filechip a { color: var(--text); text-decoration: none; }
a.filechip:hover, .filechip a:hover { text-decoration: underline; }
.filex { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 13px; padding: 0 0 0 4px; }
.filex:hover { color: var(--red-fg); }
.msg .filechip { background: var(--surface); }
