/* Business portal — builds on styles.css tokens */
[hidden] { display: none !important; }
.portal { background: var(--soft); }
.portal-main { padding: 48px 0 96px; min-height: 70vh; }
.portal h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.portal h2 { font-family: var(--display); font-size: 1.25rem; letter-spacing: -0.01em; margin: 0; color: var(--ink); }
.portal-who { font-size: .88rem; color: var(--muted); }
.portal code { font-family: var(--mono); font-size: .85em; background: var(--brand-soft); padding: 2px 6px; border-radius: 6px; }

.panel.narrow { max-width: 520px; margin: 24px auto; background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 36px; box-shadow: var(--shadow); }
.panel .lede { margin-bottom: 24px; }

.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--soft); border: 1px solid var(--line); margin-bottom: 18px; }
.seg button { border: 0; background: transparent; font: 600 .9rem var(--sans); color: var(--muted); padding: 8px 16px; border-radius: 999px; cursor: pointer; }
.seg button[aria-selected="true"] { background: #fff; color: var(--brand); box-shadow: var(--shadow-sm); }
#pw-wrap .seg { display: flex; width: fit-content; margin-inline: auto; }

.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.form .opt { text-transform: none; letter-spacing: 0; font-weight: 500; color: #8A949F; }
.form input:not([type=checkbox]), .form select, .form textarea {
  font: 500 1rem var(--sans); color: var(--ink); background: #fff;
  border: 1.5px solid var(--line); border-radius: 10px; padding: 11px 12px; width: 100%;
  text-transform: none; letter-spacing: 0;
}
.form textarea { resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.form .row { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; }
.form .check { display: flex; align-items: center; gap: 10px; text-transform: none; letter-spacing: 0; font-size: .95rem; font-weight: 500; color: var(--body); }
.form .check input { width: 18px; height: 18px; accent-color: var(--brand); }
.form-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.msg { margin: 0; min-height: 1.4em; font-size: .92rem; color: var(--avon); font-weight: 600; }
.msg.err { color: var(--pulse-d); }
.fine { margin: 0; font-size: .82rem; color: var(--muted); line-height: 1.45; }
.fine a { color: var(--brand); }
.linkbtn { border: 0; background: none; padding: 0; font: 600 .9rem var(--sans); color: var(--brand); cursor: pointer; justify-self: start; }
.linkbtn:hover { text-decoration: underline; }
.linkbtn.danger { color: var(--pulse-d); }

.days { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.days legend { font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; padding: 0; }
.form .day { display: inline-flex; text-transform: none; letter-spacing: 0; padding: 0; background: none; border-radius: 0; text-align: left; } /* reset the marketing-page .day */
.day { position: relative; } /* keeps each chip's hidden checkbox inside the chip, so focusing it never scrolls anything */
.day input { position: absolute; left: 0; top: 0; opacity: 0; pointer-events: none; }
.day span { padding: 7px 12px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); font-size: .88rem; font-weight: 600; cursor: pointer; }
.day input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; }
.day input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }

.dash-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 24px; }
.dash-head .label { margin-bottom: 10px; }
.sub { margin: 6px 0 0; color: var(--muted); }
.dash-tools { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.biz-switch { display: grid; gap: 4px; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.biz-switch select { font: 600 .95rem var(--sans); padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); min-width: 220px; }
/* The business picker and + New Business sit side by side at the same height and corner radius. */
.biz-switch select, .dash-tools .btn { height: 48px; box-sizing: border-box; border-radius: 12px; }
.dash-tools .btn { padding-top: 0; padding-bottom: 0; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 24px; }
.stats-3 { grid-template-columns: repeat(3, 1fr); } /* Active Deals hidden while deals are off (portal.js DEALS_ON) */
.stat { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; }
.stat b { display: block; font: 800 1.6rem var(--display); color: var(--ink); }
.stat span { font-size: .85rem; color: var(--muted); }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.tabs button { border: 0; background: none; font: 700 .98rem var(--display); color: var(--muted); padding: 12px 16px; cursor: pointer; border-bottom: 2.5px solid transparent; margin-bottom: -1px; }
.tabs button[aria-selected="true"] { color: var(--brand); border-bottom-color: var(--brand); }

.cols { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.narrow-form { max-width: 560px; }
.list-title { margin-bottom: 12px !important; }
.items { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.item { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.item b { display: block; color: var(--ink); }
.item span { font-size: .88rem; color: var(--muted); }
.item.muted { opacity: .7; }
.item-actions { display: flex; gap: 14px; flex: none; }
.tag { display: inline-block; margin-top: 4px; font-style: normal; font: 600 .7rem var(--mono); background: var(--brand-soft); color: var(--brand); padding: 2px 7px; border-radius: 6px; }
.items .empty { color: var(--muted); padding: 18px; border: 1.5px dashed var(--line); border-radius: 14px; text-align: center; }

@media (max-width: 900px) {
  .cols { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .panel.narrow { padding: 24px; }
  .item { flex-direction: column; align-items: flex-start; }
}

/* ================================================================ feature pack */
.card h3 { font-size: 1.05rem; }
.stack { display: grid; gap: 16px; }
.verified { display: inline-flex; align-items: center; gap: 5px; vertical-align: middle; font: 700 .72rem var(--display); letter-spacing: .02em; color: var(--brand); background: var(--brand-soft); border: 1px solid var(--brand-line); padding: 4px 10px 4px 8px; border-radius: 999px; position: relative; top: -6px; }
.verified::before { content: ""; width: 16px; height: 16px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12.00 0.25 L12.75 0.61 L13.38 1.49 L13.91 2.40 L14.45 2.87 L15.15 2.73 L16.06 2.21 L17.05 1.76 L17.88 1.82 L18.34 2.51 L18.45 3.59 L18.45 4.64 L18.68 5.32 L19.36 5.55 L20.41 5.55 L21.49 5.66 L22.18 6.12 L22.24 6.95 L21.79 7.94 L21.27 8.85 L21.13 9.55 L21.60 10.09 L22.51 10.62 L23.39 11.25 L23.75 12.00 L23.39 12.75 L22.51 13.38 L21.60 13.91 L21.13 14.45 L21.27 15.15 L21.79 16.06 L22.24 17.05 L22.18 17.87 L21.49 18.34 L20.41 18.45 L19.36 18.45 L18.68 18.68 L18.45 19.36 L18.45 20.41 L18.34 21.49 L17.88 22.18 L17.05 22.24 L16.06 21.79 L15.15 21.27 L14.45 21.13 L13.91 21.60 L13.38 22.51 L12.75 23.39 L12.00 23.75 L11.25 23.39 L10.62 22.51 L10.09 21.60 L9.55 21.13 L8.85 21.27 L7.94 21.79 L6.95 22.24 L6.13 22.18 L5.66 21.49 L5.55 20.41 L5.55 19.36 L5.32 18.68 L4.64 18.45 L3.59 18.45 L2.51 18.34 L1.82 17.88 L1.76 17.05 L2.21 16.06 L2.73 15.15 L2.87 14.45 L2.40 13.91 L1.49 13.38 L0.61 12.75 L0.25 12.00 L0.61 11.25 L1.49 10.62 L2.40 10.09 L2.87 9.55 L2.73 8.85 L2.21 7.94 L1.76 6.95 L1.82 6.12 L2.51 5.66 L3.59 5.55 L4.64 5.55 L5.32 5.32 L5.55 4.64 L5.55 3.59 L5.66 2.51 L6.12 1.82 L6.95 1.76 L7.94 2.21 L8.85 2.73 L9.55 2.87 L10.09 2.40 L10.62 1.49 L11.25 0.61Z' fill='%231D9BF0'/%3E%3Cpath d='M7.2 12.4l3.2 3.2 6.4-7' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }

/* Tabs scroll sideways on narrow screens */
/* Sideways only: the tabs' underline overlap made the row scroll up and down a few pixels on phones. */
.tabs { overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; touch-action: pan-x pan-y; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { white-space: nowrap; flex: none; }
.tabs .tab-admin { margin-left: auto; color: var(--pulse-d); }
.tabs .tab-admin[aria-selected="true"] { border-bottom-color: var(--pulse-d); color: var(--pulse-d); }

.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.sec-head .seg { margin-bottom: 0; }
.seg-scroll { display: flex; max-width: 100%; overflow-x: auto; scrollbar-width: none; margin-bottom: 20px; width: fit-content; }
.seg-scroll button { white-space: nowrap; flex: none; }
.loading { color: var(--muted); padding: 20px 0; margin: 0; }
.empty-note { color: var(--muted); margin: 8px 0 0; }

/* Import */
.import { padding: 18px 20px; display: grid; gap: 10px; box-shadow: var(--shadow-sm); }
.import label { font-size: .95rem; color: var(--ink); display: grid; gap: 2px; }
.import label .opt { font-size: .85rem; color: var(--muted); font-weight: 500; }
.import-row { display: flex; gap: 8px; }
.import-row input { flex: 1; min-width: 0; font: 500 1rem var(--sans); color: var(--ink); border: 1.5px solid var(--line); border-radius: 10px; padding: 11px 12px; }
.import-row input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.import-row .btn { padding: 11px 18px; font-size: .92rem; }
.import .msg:empty { display: none; }

/* Events form extras */
.series-note { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--brand-soft); color: var(--brand-d); font-size: .9rem; font-weight: 500; }
.repeat { display: grid; gap: 10px; padding: 12px 14px; border: 1.5px dashed var(--line); border-radius: 12px; }
.repeat-body { display: grid; gap: 12px; }
.repeat-body label { max-width: 220px; }
.repeat-body .fine:empty { display: none; }
.tags .day span { font-size: .84rem; padding: 6px 11px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.tag-row .tag { margin-top: 0; }
.tag-series { background: #EEF6F2; color: var(--avon); }
.tag-hot { background: #FFF1EC; color: var(--pulse-d); }
.item.in-series { border-left: 3px solid var(--brand-line); }
.item-actions { flex-wrap: wrap; justify-content: flex-end; }

/* Profile: map pin + hours */
.pinbox { font-size: .88rem; padding: 10px 12px; border-radius: 10px; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; margin-top: -4px; }
.pinbox b { color: var(--ink); }
.pinbox span { color: var(--muted); }
.pinbox a { color: var(--brand); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.pinbox.ok { background: #EEF6F2; } .pinbox.ok b { color: var(--avon); }
.pinbox.none { background: var(--soft); border: 1px solid var(--line); }
.pinbox.bad { background: #FFF1EC; } .pinbox.bad b { color: var(--pulse-d); }
.pin-manual { border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; }
.pin-manual[open] { padding-bottom: 14px; display: grid; gap: 10px; }
.pin-manual summary { cursor: pointer; font-weight: 600; color: var(--brand); font-size: .92rem; padding: 12px 0; }
.pin-manual[open] summary { padding-bottom: 2px; }
.hours { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.hours legend { font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; padding: 0; }
.hours legend .opt { display: block; margin-top: 2px; }
.hours-rows { display: grid; gap: 6px; border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; background: var(--soft); }
.hrow { display: grid; grid-template-columns: 96px 88px 1fr 10px 1fr; align-items: center; gap: 8px; position: relative; }
.hrow b { color: var(--ink); font-size: .92rem; font-weight: 600; }
.hrow .check { font-size: .86rem; gap: 6px; }
.hrow .check input { width: 16px; height: 16px; }
.form .hrow input[type=time], .form .hrow select.h-time { padding: 7px 8px; font-size: .92rem; }
.hrow .h-dash { color: var(--muted); text-align: center; }
.hrow .h-late { grid-column: 5; font-size: .72rem; color: var(--edw); font-weight: 600; margin-top: -4px; }
.hrow.closed input[type=time], .hrow.closed select.h-time { opacity: .35; }
.hours-tools { display: flex; gap: 18px; flex-wrap: wrap; }

/* Stats */
.stat small { display: block; font-size: .74rem; color: #8A949F; }
.stats-6 { grid-template-columns: repeat(6, 1fr); }
.chart-card, .table-card { padding: 20px 22px; margin-bottom: 16px; box-shadow: var(--shadow-sm); }
.chart-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.chart-head .sub { margin: 0; font-size: .85rem; }
.chart { position: relative; }
.chart svg { width: 100%; height: auto; overflow: visible; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .axis { font: 500 11px var(--sans); fill: var(--muted); }
.chart .bar path { fill: var(--brand); transition: fill .15s; }
.chart .bar .hit { fill: transparent; }
.chart .bar.on path { fill: var(--brand-2); }
.chart .bar.on .hit { fill: rgba(31, 58, 95, .05); }
.chart-tip { position: absolute; transform: translateX(-50%); background: var(--navy); color: #fff; font: 600 .8rem var(--sans); padding: 6px 10px; border-radius: 8px; pointer-events: none; white-space: nowrap; box-shadow: var(--shadow-sm); }
.table-card h3 { margin-bottom: 10px; }
.table-scroll { overflow-x: auto; margin: 0 -4px; }
table.data { width: 100%; border-collapse: collapse; font-size: .88rem; }
table.data th, table.data td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
table.data thead th { font: 700 .7rem var(--sans); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
table.data th:first-child { text-align: left; white-space: normal; min-width: 180px; }
table.data tbody th { font-weight: 500; }
table.data tbody th b { display: block; color: var(--ink); font-weight: 600; }
table.data tbody th small { color: var(--muted); font-size: .78rem; }
table.data td { color: var(--ink); font-variant-numeric: tabular-nums; }
table.data .zero { color: #B8C0C9; }
table.data tbody tr:last-child > * { border-bottom: 0; }

/* Locked states */
.lock-badge { display: inline-flex; align-items: center; gap: 6px; font: 700 .72rem var(--display); letter-spacing: .03em; text-transform: uppercase; color: var(--brand); background: var(--brand-soft); border: 1px solid var(--brand-line); border-radius: 999px; padding: 5px 11px; }
.lock-badge::before { content: ""; width: 10px; height: 11px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 22'%3E%3Crect x='2' y='9' width='16' height='12' rx='3' fill='%231F3A5F'/%3E%3Cpath d='M6 9V6a4 4 0 0 1 8 0v3' fill='none' stroke='%231F3A5F' stroke-width='2.4'/%3E%3C/svg%3E") center/contain no-repeat; }
.locked { max-width: 620px; display: grid; gap: 12px; justify-items: start; padding: 30px; }
.locked p { margin: 0; color: var(--body); }
.locked + .locked, .card + .locked, .locked + .card { margin-top: 16px; }
.locked .btn, .locked-over .btn { padding: 13px 22px; font-size: .95rem; }
.locked-preview { position: relative; margin-top: 8px; border-radius: 22px; overflow: hidden; }
.locked-fake { filter: blur(3px) grayscale(.3); opacity: .55; pointer-events: none; user-select: none; }
.locked-over { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; text-align: center; gap: 12px; padding: 24px;
  background: linear-gradient(180deg, rgba(245, 247, 250, .4), rgba(245, 247, 250, .92) 45%); }
.locked-over h2 { font-size: 1.5rem; }
.locked-over p { max-width: 440px; margin: 0; color: var(--body); }
.upsell-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 20px 22px; box-shadow: var(--shadow-sm); }
.upsell-row .sub { margin-top: 4px; font-size: .92rem; }
.upsell-row .btn { padding: 12px 20px; font-size: .92rem; }
/* Stats tab: the same gap under every card (Audience, Customer Export, Monthly Report) as Daily Views and By Listing. */
#stats-body > .card, #audience > .card { margin-bottom: 16px; }

/* Push blasts */
.quota { font: 600 .8rem var(--sans); color: var(--avon); background: #EEF6F2; padding: 5px 10px; border-radius: 999px; }
.quota.full { color: var(--pulse-d); background: #FFF1EC; }
.push-preview { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: start; padding: 12px 14px; border-radius: 18px; background: linear-gradient(135deg, #DCE6F2, #EEF2F7); border: 1px solid var(--line); }
.push-preview img { border-radius: 8px; }
.push-preview b { color: var(--ink); font-size: .9rem; display: block; line-height: 1.3; }
.push-preview p { margin: 2px 0 0; font-size: .88rem; color: var(--body); line-height: 1.35; overflow-wrap: anywhere; }
.push-preview small { color: var(--muted); font-size: .75rem; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; }

/* QR kit + widget */
.kit, .widget { padding: 26px; margin-bottom: 18px; box-shadow: var(--shadow-sm); }
.kit .sub a { color: var(--brand); font-weight: 600; overflow-wrap: anywhere; }
.kit-grid { display: flex; flex-wrap: wrap; gap: 28px; }
.kit-item { margin: 0; display: grid; gap: 12px; justify-items: start; }
.kit-item figcaption { display: grid; gap: 2px; justify-items: start; }
.kit-item figcaption b { color: var(--ink); font-family: var(--display); }
.kit-item figcaption span { color: var(--muted); font-size: .88rem; margin-bottom: 8px; }
.kit-item .btn { padding: 11px 18px; font-size: .9rem; }
.sheet-preview { --s: .34; width: calc(8.5in * var(--s)); height: calc(11in * var(--s)); border-radius: 6px; overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.sheet-preview .loading { padding: 16px; font-size: .85rem; }
.sheet-scale { transform: scale(var(--s)); transform-origin: 0 0; width: 8.5in; }
/* Tonight Sheet for Your Front Desk (tools.js): open/print the concierge sheet, and the daily desk emails. */
.tonight-card { display: grid; gap: 10px; max-width: 760px; }
.tonight-card .sec-head { margin-bottom: 0; }
.tonight-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 6px; }
.tonight-actions .btn { padding: 11px 20px; font-size: .92rem; }
.tonight-card .import-row input[readonly] { background: var(--soft); font: 500 .85rem var(--mono); }
.tonight-card .msg:empty { display: none; }
.tonight-h3 { margin: 12px 0 0; }
.tonight-card select { font: 600 .9rem var(--sans); padding: 8px 10px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); }
.tonight-add select { padding: 11px 10px; }
.tonight-card .item-actions { align-items: center; }
@media (max-width: 640px) {
  .tonight-card .import-row { flex-direction: row; flex-wrap: wrap; align-items: stretch; }
  .tonight-card .import-row input { flex: 1 1 100%; width: 100%; }
  .tonight-add select { flex: 1; }
}
/* Check-In QR (tools.js): the bare code next to its printable sign. */
.checkin-qr { width: 220px; height: 220px; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); display: grid; place-items: center; }
.checkin-qr .qrsvg { width: 100%; height: 100%; display: block; }
.checkin-qr .loading, .checkin-qr .msg { font-size: .85rem; text-align: center; }

.kit-sheet { width: 8.5in; height: 11in; background: #fff; color: var(--ink); font-family: var(--sans); position: relative; overflow: hidden; }
.kit-sheet .qrsvg { display: block; }
.kit-brand { display: inline-flex; align-items: center; gap: 12px; font: 800 1.5rem var(--display); color: #fff; letter-spacing: -0.02em; }
.kit-brand b { color: var(--pulse); font-weight: 800; }
.kit-band { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: var(--navy); border-radius: .16in; padding: .16in .26in; }
.kit-band-tag { font: 700 .95rem var(--display); color: #fff; opacity: .9; letter-spacing: .01em; }
.kit-kicker { font: 800 1.02rem/1.2 var(--display); letter-spacing: .06em; text-transform: uppercase; color: var(--pulse-d); margin: 0; }
.kit-qr { background: #fff; border: .07in solid var(--pulse); border-radius: .22in; padding: .1in; box-shadow: 0 0 0 .035in var(--navy); }
.kit-url { margin: 0; display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; background: var(--pulse); color: #fff; border-radius: .14in;
  padding: .1in .2in; font: 800 1.05rem var(--display); letter-spacing: .01em; }
.kit-url span { font-weight: 600; opacity: .92; }
.tent-sheet { display: grid; grid-template-rows: 1fr auto 1fr; }
.tent-face { padding: .32in .34in; display: grid; grid-template-rows: auto 1fr auto; gap: .18in; }
.tent-face:first-child { transform: rotate(180deg); }
.tent-main { display: grid; grid-template-columns: 2.75in 1fr; gap: .36in; align-items: center; padding: 0 .1in; }
.tent-main .qrsvg { width: 2.45in; height: 2.45in; }
.tent-main h3 { font: 900 2.55rem/1.02 var(--display); letter-spacing: -0.03em; margin: 10px 0 12px; color: var(--navy); overflow-wrap: anywhere; }
.kit-line { font: 600 1.22rem/1.4 var(--sans); color: #22354A; margin: 0; }
.tent-fold { border-top: 1.5px dashed #C3CBD5; position: relative; height: 0; }
.tent-fold span { position: absolute; right: .4in; top: -.09in; background: #fff; padding: 0 6px; font: 700 .62rem var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #9AA4AF; }
.poster-sheet { padding: .32in; display: flex; flex-direction: column; gap: .22in; }
.poster-hero { position: relative; height: 4.2in; border-radius: .22in; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: .3in .34in;
  background: radial-gradient(120% 90% at 85% 0%, #1B3554 0%, var(--navy) 62%); }
.poster-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(11,27,43,.55) 0%, rgba(11,27,43,0) 32%, rgba(11,27,43,0) 45%, rgba(11,27,43,.88) 100%); }
.poster-hero:not(.has-photo)::before { content: ""; position: absolute; left: -2%; right: -2%; bottom: 0; height: 58%;
  background: linear-gradient(170deg, transparent 49.5%, rgba(255,90,60,.28) 50%), linear-gradient(195deg, transparent 49.5%, rgba(255,255,255,.08) 50%);
  background-size: 52% 100%, 60% 100%; background-repeat: no-repeat; background-position: 10% 100%, 100% 100%; }
.poster-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.poster-hero > .kit-brand, .poster-title { position: relative; z-index: 1; }
.poster-hero > .kit-brand { font-size: 1.7rem; align-self: flex-start; }
.poster-hero.has-photo > .kit-brand { background: rgba(11,27,43,.86); padding: .08in .2in .08in .14in; border-radius: .14in; }
.poster-title .kit-kicker { color: #fff; background: var(--pulse); display: inline-block; padding: .06in .14in; border-radius: .08in; }
.poster-title h3 { font: 900 3.6rem/1 var(--display); letter-spacing: -0.035em; margin: .14in 0 0; color: #fff; overflow-wrap: anywhere; text-shadow: 0 2px 14px rgba(0,0,0,.35); }
.poster-body { flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; justify-content: center; gap: .2in; }
.poster-sub { font: 600 1.35rem/1.4 var(--sans); max-width: 6.4in; color: #22354A; margin: 0; }
.poster-qr .qrsvg { width: 3.2in; height: 3.2in; }
.poster-cta { font: 900 1.5rem var(--display); color: var(--navy); margin: 0; letter-spacing: -0.01em; }
.poster-sheet > .kit-url { font-size: 1.25rem; padding: .14in .2in; }
.print-area:not(.report) { display: none; }

.widget-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.code-label { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }
textarea.code { width: 100%; font: 500 .8rem/1.5 var(--mono); color: var(--ink); background: var(--soft); border: 1.5px solid var(--line); border-radius: 10px; padding: 12px; resize: vertical; }
.copy-row { display: flex; align-items: center; gap: 14px; margin: 10px 0; }
.copy-row .btn { padding: 11px 20px; font-size: .92rem; }
.widget-preview iframe { width: 100%; height: 560px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }

/* Admin */
.switch { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .88rem; color: var(--ink); cursor: pointer; flex: none; }
.switch input { appearance: none; width: 40px; height: 24px; border-radius: 999px; background: #D5DCE4; position: relative; cursor: pointer; transition: background .2s; margin: 0; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .2s; }
.switch input:checked { background: var(--pulse); }
.switch input:checked::after { transform: translateX(16px); }
.switch input:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.check-pad { align-self: end; padding-bottom: 12px; }
/* Admin → Plan & Verified Badge: the four switches in an even two-column grid. */
.adm-checks { border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px 14px; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; }
.adm-checks legend { padding: 0 6px; font: 700 .72rem var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.adm-checks .check { margin: 0; align-items: center; }
@media (max-width: 560px) { .adm-checks { grid-template-columns: 1fr; } }
.winners { margin-bottom: 12px; padding: 18px 20px; box-shadow: var(--shadow-sm); border-color: var(--brand-line); }
.winners ul { margin: 8px 0; padding-left: 18px; }
.winners a { color: var(--brand); font-weight: 600; }

/* Choice dialog */
dialog.choose { border: 0; border-radius: 22px; padding: 26px; max-width: min(440px, calc(100vw - 32px)); box-shadow: 0 30px 80px rgba(11, 27, 43, .3); color: var(--body); }
dialog.choose::backdrop { background: rgba(11, 27, 43, .45); }
dialog.choose h2 { font-family: var(--display); font-size: 1.2rem; color: var(--ink); margin: 0 0 6px; }
dialog.choose p { margin: 0 0 18px; }
.choose-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.choose-actions .btn { padding: 12px 16px; font-size: .92rem; }
.choose-actions .btn:last-child { margin-left: auto; border-color: transparent; color: var(--muted); }
.btn.danger { color: var(--pulse-d); }
.btn.danger:hover { border-color: var(--pulse-d); color: var(--pulse-d); }

/* Monthly report (screen preview and print) */
.report { margin-top: 20px; }
.report-tools { display: flex; align-items: center; gap: 18px; margin-bottom: 14px; }
.report-tools .btn { padding: 12px 20px; font-size: .92rem; }
.report-sheet { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 40px 44px; max-width: 8.5in; box-shadow: var(--shadow); color: var(--body); }
.r-head { display: flex; flex-direction: row-reverse; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap; padding-bottom: 22px; border-bottom: 2px solid var(--ink); margin-bottom: 24px; }
.r-head .label { margin-bottom: 8px; }
.r-head h2 { font-family: var(--serif); font-size: 2.2rem; font-weight: 800; }
.r-brand { display: inline-flex; align-items: center; gap: 10px; font: 800 1rem var(--display); color: var(--ink); letter-spacing: -0.02em; }
.r-brand img { border-radius: 8px; }
.r-brand b { color: var(--pulse); font-weight: 800; }
.r-brand img.brand-mark, .kit-brand img.brand-mark { height: 1.5em; width: auto; transform: translateY(-0.06em); }
.r-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 22px; }
.r-kpi { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; break-inside: avoid; }
.r-kpi b { display: block; font: 800 1.5rem var(--display); color: var(--ink); }
.r-kpi span { font-size: .82rem; color: var(--muted); }
.r-kpi small { display: block; font-size: .72rem; font-weight: 600; margin-top: 2px; }
.r-kpi small.up { color: var(--avon); } .r-kpi small.down { color: var(--pulse-d); }
.r-split { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 24px; }
.r-box { background: var(--soft); border-radius: 12px; padding: 16px 18px; }
.r-box .sub { font-size: .85rem; margin: 0; }
.r-big { font: 800 2rem var(--display); color: var(--ink); margin: 2px 0; }
.report-sheet section > h3 { margin-bottom: 8px; }
.report-sheet section + section { margin-top: 20px; }
.r-blasts { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: .88rem; }
.r-blasts span { font-weight: 600; color: var(--ink); margin-right: 6px; }
.r-blasts em { color: var(--muted); font-style: normal; margin-left: 6px; }
.r-foot { margin-top: 28px; padding-top: 14px; border-top: 1px solid var(--line); font-size: .75rem; color: var(--muted); }

@media (max-width: 1100px) { .stats-6 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) {
  .widget-grid { grid-template-columns: 1fr; }
  .tabs .tab-admin { margin-left: 0; }
}
@media (max-width: 640px) {
  .portal-who { display: none !important; }
  .stats-6 { grid-template-columns: 1fr 1fr; }
  .hrow { grid-template-columns: 1fr auto; row-gap: 4px; padding: 6px 0; border-bottom: 1px solid var(--line); }
  .hrow:last-child { border-bottom: 0; }
  .hrow .h-open { grid-column: 1; }
  .hrow .h-dash { display: none; }
  .hrow .h-close { grid-column: 2; }
  .form .hrow input[type=time], .form .hrow select.h-time { width: 100%; }
  .hrow .h-late { grid-column: 1 / -1; margin: 0; }
  .hrow:has(.h-closed:checked) input[type=time], .hrow:has(.h-closed:checked) select.h-time { display: none; }
  .import-row { flex-direction: column; }
  .report-sheet { padding: 24px 18px; }
  .r-kpis { grid-template-columns: 1fr 1fr; }
  .r-split { grid-template-columns: 1fr; }
  .locked { padding: 22px; }
  .kit, .widget { padding: 20px; }
  .kit-grid { justify-content: center; }
  .sheet-preview { --s: .36; }
  .chart-head { flex-direction: column; gap: 0; }
}

/* ---------------------------------------------------------------- print */
@media print {
  @page { size: letter; margin: 0; }
  body[data-print] { background: #fff !important; }
  body[data-print] .nav, body[data-print] .footer, body[data-print] .dash-head, body[data-print] #stats,
  body[data-print] #tabs, body[data-print] .no-print, body[data-print] .print-area:not(.printing),
  body[data-print] dialog { display: none !important; }
  body[data-print] .portal-main { padding: 0; min-height: 0; }
  body[data-print] .wrap { padding: 0; max-width: none; }
  body[data-print] .print-area.printing { display: block !important; margin: 0; }
  body[data-print] * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body[data-print] .kit-sheet { break-after: avoid; }
  @page report { size: letter; margin: .45in .5in; }
  body[data-print] .report-sheet { page: report; border: 0; box-shadow: none; border-radius: 0; max-width: none; padding: 0; font-size: 13px; }
  body[data-print] .r-head { padding-bottom: 14px; margin-bottom: 16px; }
  body[data-print] .r-kpis { gap: 8px; margin-bottom: 14px; }
  body[data-print] .r-kpi { padding: 8px 12px; }
  body[data-print] .r-kpi b { font-size: 1.3rem; }
  body[data-print] .r-split { margin-bottom: 16px; }
  body[data-print] .r-box { padding: 12px 14px; }
  body[data-print] table.data th, body[data-print] table.data td { padding: 7px 8px; }
  body[data-print] .report-sheet section + section { margin-top: 14px; }
  body[data-print] .r-foot { margin-top: 16px; }
  body[data-print] .report-sheet tr, body[data-print] .r-blasts li { break-inside: avoid; }
}

/* Sponsor report */
.report-tools { flex-wrap: wrap; }
.month-pick { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.month-pick input { font: 500 .95rem var(--sans); color: var(--ink); border: 1.5px solid var(--line); border-radius: 10px; padding: 9px 10px; text-transform: none; }
.r-sponsor { display: flex; align-items: center; gap: 16px; }
.r-logo { width: 64px; height: 64px; object-fit: contain; border-radius: 12px; border: 1px solid var(--line); background: #fff; padding: 6px; flex: none; }
.r-kpi small.muted { color: var(--muted); font-weight: 500; }
.report-sheet .chart { margin-bottom: 4px; }
table.data tr.total > * { border-top: 2px solid var(--ink); font-weight: 700; }
@media print { body[data-print] .chart-tip { display: none !important; } }

/* Temporary plan picker (onboarding) */
.plan-pick { border: 0; padding: 0; margin: 4px 0 0; display: grid; gap: 8px; }
.plan-pick legend { font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.form .plan-opt { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer; background: #fff;
  font-size: .95rem; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--body); }
.form .plan-opt input[type=radio] { width: auto; padding: 0; border: 0; box-shadow: none; flex: none; }
.plan-opt:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.plan-opt input { margin-top: 3px; accent-color: var(--brand); }
.plan-opt > span { display: grid; gap: 2px; }
.plan-opt b { color: var(--ink); }
.plan-opt small { color: var(--muted); font-size: .86rem; }
.plan-tag { display: inline-block; font-style: normal; font: 700 .66rem var(--display); letter-spacing: .04em; text-transform: uppercase; background: var(--pulse); color: #fff; padding: 2px 7px; border-radius: 999px; margin-left: 6px; vertical-align: 2px; }

/* ================================================================ short screens (Oct 2026) */
.btn-sm { padding: 11px 16px; font-size: .92rem; }
.portal .form .opt { font-size: .82rem; }

/* Tab bar: fits with short labels, scrolls with fade edges on small screens */
.tabs-wrap { position: relative; margin-bottom: 22px; }
.tabs-wrap:has(> .tabs[hidden]) { display: none; }
.tabs-wrap .tabs { margin-bottom: 0; }
.tabs-wrap::before, .tabs-wrap::after { content: ""; position: absolute; top: 0; bottom: 1px; width: 40px; pointer-events: none; opacity: 0; transition: opacity .2s; z-index: 1; }
.tabs-wrap::before { left: 0; background: linear-gradient(90deg, var(--soft) 20%, rgba(245, 247, 250, 0)); }
.tabs-wrap::after { right: 0; background: linear-gradient(270deg, var(--soft) 20%, rgba(245, 247, 250, 0)); }
.tabs-wrap.fade-l::before, .tabs-wrap.fade-r::after { opacity: 1; }
.tabs button:focus-visible { outline: 2px solid var(--brand); outline-offset: -4px; border-radius: 8px; }
.tabs .tab-admin { position: relative; margin-left: auto; padding-left: 20px; }
.tabs .tab-admin::before { content: ""; position: absolute; left: 4px; top: 50%; width: 6px; height: 6px; border-radius: 50%; background: var(--pulse); transform: translateY(-50%); }

/* List-first panels */
.list-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.list-head .list-title { margin: 0 !important; }
.list-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.msg.flash { margin-bottom: 12px; }
.msg.flash:empty { display: none; }
.show-all { margin-top: 10px; }
.items + .show-all { display: block; }

/* Summary chevrons for collapsibles */
.psec > summary, .more > summary, .import-box > summary, .widget-preview > summary, .feat-more > summary { list-style: none; cursor: pointer; }
.psec > summary::-webkit-details-marker, .more > summary::-webkit-details-marker, .feat-more > summary::-webkit-details-marker, .import-box > summary::-webkit-details-marker, .widget-preview > summary::-webkit-details-marker { display: none; }
.psec > summary::after, .more > summary::after, .feat-more > summary::after, .import-box > summary::after, .widget-preview > summary::after {
  content: ""; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s; flex: none; margin: 0 4px 4px auto; }
.psec[open] > summary::after, .more[open] > summary::after, .feat-more[open] > summary::after, .import-box[open] > summary::after, .widget-preview[open] > summary::after { transform: rotate(225deg); margin-bottom: -2px; }
summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 10px; }

/* Drawer (slide-over on laptops, full-screen sheet on phones) */
html.drawer-open { overflow: hidden; }
dialog.drawer { position: fixed; inset: 0 0 0 auto; margin: 0; width: min(580px, 100vw); max-width: 100vw; height: 100dvh; max-height: 100dvh; padding: 0; border: 0; border-radius: 22px 0 0 22px;
  background: #fff; color: var(--body); box-shadow: -24px 0 70px rgba(11, 27, 43, .2); display: none; flex-direction: column; overflow: hidden; overflow: clip; }
/* clip, not just hidden: a hidden box can still be scrolled by the browser (focusing a chip's checkbox scrolled
   the whole drawer out of view and left it blank, Lauren, Nov 19, 2026). Only .drawer-body scrolls. */
dialog.drawer[open] { display: flex; animation: drawerIn .28s cubic-bezier(.2, .8, .2, 1); }
dialog.drawer::backdrop { background: rgba(11, 27, 43, .45); }
@keyframes drawerIn { from { transform: translateX(48px); opacity: 0; } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 22px; border-bottom: 1px solid var(--line); flex: none; }
.portal .drawer-head h2 { font-size: 1.3rem; }
.drawer-x { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: #fff; font: 400 1.6rem/1 var(--sans); color: var(--ink); cursor: pointer; padding: 0 0 3px; }
.drawer-x:hover { border-color: var(--brand); color: var(--brand); }
.drawer-x:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.drawer-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 18px 22px 0; display: grid; gap: 14px; align-content: start; }
.drawer-foot { position: sticky; bottom: 0; z-index: 2; display: flex; gap: 10px; margin: 2px -22px 0; padding: 12px 22px calc(12px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); }
.drawer-foot .btn { padding: 13px 20px; font-size: .95rem; }
.drawer-foot .btn-primary { flex: 1; }
.drawer-body .form .msg:empty { display: none; }

.form .row-3 { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.import-box { border: 1px solid var(--line); border-radius: 12px; background: var(--soft); padding: 0 14px; }
.import-box > summary { display: flex; align-items: center; gap: 8px; padding: 12px 0; font: 700 .95rem var(--display); color: var(--brand); }
.import-box .import { padding: 0 0 14px; box-shadow: none; gap: 8px; }
.import-box .import label { font-size: .88rem; font-weight: 500; color: var(--muted); }
.import-box .import-row input { background: #fff; }
.more { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.more > summary { display: flex; align-items: center; flex-wrap: wrap; gap: 2px 10px; padding: 13px 0; font: 700 .98rem var(--display); color: var(--brand); }
.more-hint { font: 500 .8rem var(--sans); color: var(--muted); flex: 1 1 200px; }
.more[open] > summary .more-hint { display: none; }
.more-body { display: grid; gap: 14px; padding: 2px 0 16px; }

/* Feature chips (event tags, venue amenities): open groups first, the rest folded */
.feat-pick { display: grid; gap: 12px; }
.feat-title { margin: 0; font: 700 .98rem var(--display); color: var(--ink); }
.feat-title .opt { font: 500 .82rem var(--sans); }
.feat-title + .fine { margin-top: -8px; }
.feat-more { border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; }
.feat-more > summary { display: flex; align-items: center; gap: 8px; padding: 10px 0; font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.feat-more .days { padding-bottom: 12px; }
.feat-count { font: 600 .7rem var(--mono); letter-spacing: 0; text-transform: none; background: var(--brand-soft); color: var(--brand); padding: 2px 7px; border-radius: 6px; }
.feat-count:empty { display: none; }
.feat-nudge { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; padding: 14px 16px; border: 1px solid var(--brand-line); border-radius: 14px; background: var(--brand-soft); }
.feat-nudge p { margin: 0; flex: 1 1 260px; font-size: .9rem; color: var(--body); }
.feat-nudge b { display: block; color: var(--ink); font-family: var(--display); }

/* Profile: setup steps for new businesses, collapsible sections afterwards */
.biz-form { gap: 14px; }
.biz-form-head .sub:first-of-type { margin-top: 4px; }
#biz-msg:empty { display: none; }
.psec { border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.psec > summary { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 0 10px; padding: 14px 16px; }
.psec > summary::after { grid-column: 3; grid-row: 1 / span 2; }
.psec-name { grid-column: 1; font: 700 1.02rem var(--display); color: var(--ink); }
.psec-sum { grid-column: 1; font-size: .86rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.psec-sum:empty { display: none; }
.psec-dirty { grid-column: 2; grid-row: 1 / span 2; font: 600 .68rem var(--mono); font-style: normal; background: #FFF1EC; color: var(--pulse-d); padding: 2px 7px; border-radius: 6px; }
.psec[open] { border-color: var(--brand-line); box-shadow: var(--shadow-sm); }
.psec[open] > summary { border-bottom: 1px solid var(--line); }
.psec-body { display: grid; gap: 14px; padding: 16px; }
.psec-save { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.psec-save .msg:empty { display: none; }
.step-title { display: none; }
.step-title:focus { outline: none; }
.step-title .opt { font: 500 .82rem var(--sans); color: var(--muted); letter-spacing: 0; }
.wizard .step-title { display: block; font-size: 1.15rem; }
.wizard .psec { border: 0; background: none; box-shadow: none; }
.wizard .psec > summary, .wizard .psec-save { display: none; }
.wizard .psec-body { padding: 0; }
.wiz-progress { display: grid; gap: 8px; }
.wiz-label { margin: 0; font: 500 .74rem var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.wiz-dots { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 0; margin: 0; }
.wiz-dots li { height: 5px; border-radius: 99px; background: var(--line); transition: background .2s; }
.wiz-dots li.done { background: var(--brand-line); }
.wiz-dots li.on { background: var(--brand); }
.wiz-nav { display: flex; align-items: center; gap: 14px; padding-top: 16px; border-top: 1px solid var(--line); }
.wiz-nav .btn { padding: 13px 22px; font-size: .95rem; }
.wiz-nav #wiz-next { margin-left: auto; }

/* Share */
.widget-preview > summary { display: flex; align-items: center; gap: 8px; padding: 0 0 8px; font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.widget-preview:not([open]) { border: 1px dashed var(--line); border-radius: 12px; padding: 12px 14px 4px; }

/* Team */
.team-card { max-width: 640px; display: grid; gap: 14px; box-shadow: var(--shadow-sm); }
.team-card .sub { margin: -8px 0 0; }
.team-add { display: grid; gap: 8px; }
.team-add label { font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.team-add .import-row .btn { padding: 11px 18px; font-size: .92rem; white-space: nowrap; }
.team-add .msg:empty { display: none; }

/* Admin */
.adm-biz { margin-bottom: 8px; }
.adm-biz .card { box-shadow: var(--shadow-sm); }
.adm-biz .card .items { margin-top: 12px; }

@media (max-width: 900px) {
  .tabs .tab-admin { margin-left: 8px; }
}
@media (max-width: 640px) {
  .portal-main { padding: 24px 0 64px; }
  .portal h1 { font-size: 1.9rem; }
  .dash-head { margin-bottom: 16px; gap: 12px; }
  .dash-head .label { margin-bottom: 6px; }
  .biz-switch select { min-width: 0; width: 100%; }
  .dash-tools, .biz-switch { width: 100%; }
  .dash-tools .btn { padding: 11px 16px; font-size: .92rem; }
  #stats.stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-bottom: 14px; }
  #stats .stat { padding: 10px 6px; border-radius: 12px; text-align: center; }
  #stats .stat b { font-size: 1.15rem; line-height: 1.3; }
  #stats #stat-plan { font-size: .92rem; line-height: 1.6; }
  #stats .stat span { display: block; font-size: .68rem; line-height: 1.25; }
  .tabs button { padding: 12px 12px; font-size: .95rem; }
  .tabs-wrap { margin-bottom: 18px; }
  .list-actions { width: 100%; }
  /* Wrap instead of squeezing: "+ New Event" was cut off beside Import from a Link (Tyler, Nov 18, 2026). */
  .list-actions .btn { flex: 1 1 auto; white-space: nowrap; }
  .list-actions .ev-view { flex: 0 0 auto; }
  dialog.drawer { width: 100vw; border-radius: 0; }
  @keyframes drawerIn { from { transform: translateY(32px); opacity: 0; } }
  .drawer-head { padding: 12px 16px; }
  .drawer-body { padding: 16px 16px 0; }
  .drawer-foot { margin: 2px -16px 0; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); }
  .form .row-3 input[type=time], .form .row-3 select.h-time, .form .row-3 input[type=date] { padding: 11px 8px; font-size: .95rem; }
  .biz-form.card { padding: 18px 16px; }
  .psec > summary { padding: 12px 14px; }
  .psec-body { padding: 14px; }
  .wiz-nav .btn { padding: 13px 16px; }
  .stats-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .stats-6 .stat { padding: 10px; border-radius: 12px; }
  .stats-6 .stat b { font-size: 1.2rem; }
  .stats-6 .stat span { font-size: .76rem; }
  .sec-head .seg { width: 100%; }
  .sec-head .seg button { flex: 1; white-space: nowrap; padding-left: 8px; padding-right: 8px; }
  .kit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; justify-items: center; }
  .sheet-preview { --s: .175; }
  .kit-item, .kit-item figcaption { justify-items: center; text-align: center; }
  .kit-item .btn { padding: 10px 12px; font-size: .85rem; }
  .team-add .import-row { flex-direction: row; }
  .team-add .import-row .btn { padding: 11px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  dialog.drawer[open] { animation: none; }
}
@media print { dialog.drawer { display: none !important; } }
.form .row > label { min-width: 0; }
.team-card { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 640px) {
  .form .row-3 { grid-template-columns: 1fr 1fr; }
  .form .row-3 > label:first-child { grid-column: 1 / -1; }
}
.team-add { grid-template-columns: minmax(0, 1fr); }
.team-add .import-row input { width: 0; }
/* The section title already says "Hours"; keep the legend for screen readers, show only its hint. */
.psec .hours legend { font-size: 0; margin-bottom: 4px; }
.psec .hours legend .opt { font-size: .82rem; margin: 0; }

/* Cover photos (event form and profile Basics) */
.cover-pick { display: grid; gap: 10px; }
.cover-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: var(--soft); border: 1.5px dashed var(--line); display: grid; place-items: center; }
.biz-form .cover-frame { aspect-ratio: 3 / 1; }
.biz-form .logo-pick .cover-frame { aspect-ratio: 1; width: 132px; border-radius: 22px; }
.logo-pick .cover-empty { font-size: .8rem; text-align: center; }
.biz-form .row { align-items: start; }
.cover-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover-frame:has(img:not([hidden])) { border-style: solid; }
.cover-empty { font-size: .88rem; font-weight: 600; color: var(--muted); text-align: center; padding: 0 16px; }
.cover-empty small { display: block; margin-top: 4px; font-size: .8rem; font-weight: 500; }
.cover-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.cover-actions .linkbtn { font-size: .86rem; }
.cover-pick .msg:empty { display: none; }

/* Event list thumbnails */
.item-main { display: flex; align-items: center; gap: 12px; min-width: 0; }
.item-thumb { width: 64px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; flex: none; background: var(--soft); }

/* Reviews tab (and the admin Reviews section) */
.rv-stars { color: #E8A317; letter-spacing: .06em; font-size: 1rem; white-space: nowrap; }
.rv-stars .rv-off { color: #C9D1DB; }
.rv-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 36px; padding: 20px 22px; margin-bottom: 14px; box-shadow: var(--shadow-sm); }
.rv-avg { display: grid; justify-items: start; gap: 2px; min-width: 120px; }
.rv-avg b { font: 800 2.6rem/1 var(--display); color: var(--ink); }
.rv-avg .rv-stars { font-size: 1.15rem; }
.rv-avg > span:last-child { font-size: .88rem; color: var(--muted); }
.rv-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; flex: 1; min-width: 220px; max-width: 460px; }
.rv-bars li { display: grid; grid-template-columns: 2.2em 1fr 2.6em; align-items: center; gap: 10px; font-size: .86rem; color: var(--muted); }
.rv-bar { height: 8px; border-radius: 999px; background: var(--soft); border: 1px solid var(--line); overflow: hidden; }
.rv-bar i { display: block; height: 100%; background: #E8A317; border-radius: 999px; }
.rv-bar-n { text-align: right; font-variant-numeric: tabular-nums; }
.rv-guide { margin: 0 0 14px; }
.rv-list .item.rv-item, .items .item.rv-item { display: grid; gap: 8px; align-items: start; justify-content: stretch; }
.rv-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.rv-head b { display: inline; }
.rv-head .tag { margin-top: 0; }
.rv-body { margin: 0; color: var(--body); white-space: pre-line; overflow-wrap: anywhere; }
.rv-reply { border-left: 3px solid var(--brand-line); background: var(--brand-soft); border-radius: 0 10px 10px 0; padding: 8px 12px; }
.rv-reply b { display: inline; font-size: .82rem; color: var(--brand); margin-right: 8px; }
.rv-reply span { font-size: .8rem; }
.rv-reply p { margin: 4px 0 0; color: var(--body); white-space: pre-line; overflow-wrap: anywhere; }
.rv-form { gap: 8px; }
.rv-form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.rv-form .msg:empty { display: none; }
.rv-item .item-actions { justify-content: flex-start; }
.rv-reasons b { color: var(--ink); }
.rv-empty { box-shadow: var(--shadow-sm); display: grid; gap: 4px; }
.rv-empty .copy-row { flex-wrap: wrap; }
.rv-link { flex: 1; min-width: 0; max-width: 420px; font: 500 .92rem var(--mono); color: var(--ink); border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 12px; background: var(--soft); }
.rv-share { margin-top: 14px; }
.rv-stat { margin-bottom: 16px; }
.rv-stat-n { color: var(--ink); font-family: var(--display); }
.adm-sub { margin-top: 22px !important; }
@media (max-width: 640px) {
  .rv-summary { gap: 16px; }
  .rv-bars { min-width: 0; width: 100%; }
}

/* ================================================================ faster start (Oct 2026) */
/* Sign-in landing */
.auth-land { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 440px); gap: 56px; align-items: start; max-width: 1080px; margin: 8px auto 0; }
/* The sign-in card sits at the top of its column and stays in view beside the long pitch (it floated in the middle, lower the shorter it got: Tyler, Nov 10). */
@media (min-width: 901px) { .auth-land > .auth-card { position: sticky; top: 96px; margin-top: 44px; } }
.portal .land-copy h1 { font-size: clamp(2.3rem, 4.6vw, 3.5rem); }
.land-copy .label { margin-bottom: 16px; }
.land-copy .lede { margin-top: 16px; }
.land-points { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 16px; }
.land-points li { display: flex; gap: 14px; align-items: flex-start; }
.lp-i { width: 40px; height: 40px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; flex: none; }
.lp-i svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.land-points b { display: block; color: var(--ink); font-family: var(--display); font-size: 1.02rem; line-height: 1.3; }
.land-points li > div > span { display: block; color: var(--muted); font-size: .94rem; line-height: 1.5; }
.founders-badge { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 16px; padding: 6px 14px 6px 11px; border-radius: 999px; background: #FFF1EC; color: var(--pulse-d); border: 1px solid #FFD6CB; font: 700 .84rem var(--display); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--pulse); animation: livePulse 1.8s infinite; flex: none; }
.founders-badge.full { background: #fff; color: var(--muted); border-color: var(--line); }
.founders-badge.full .live-dot { background: #A3ADB8; animation: none; }
@keyframes livePulse { 0% { box-shadow: 0 0 0 0 rgba(255, 90, 60, .55); } 70% { box-shadow: 0 0 0 8px rgba(255, 90, 60, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 90, 60, 0); } }
.founder-box { border-radius: 18px; padding: 16px 18px; margin: 0 0 22px; background: linear-gradient(135deg, #FFF1EC, #FFF9F7); border: 1px solid #FFD6CB; }
.founder-kicker { margin: 0; font: 500 .7rem var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--pulse-d); }
.founder-count { margin: 6px 0 0; font: 800 1.35rem/1.2 var(--display); color: var(--ink); }
.founder-text { margin: 6px 0 0; color: var(--body); font-size: .95rem; }

.auth-card { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 30px; box-shadow: var(--shadow); display: grid; gap: 16px; }
.portal .auth-card h2 { font-size: 1.4rem; }
.auth-invite { margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--brand-soft); border: 1px solid var(--brand-line); color: var(--ink); font-size: .92rem; }
.auth-link-err { padding: 10px 12px; border-radius: 12px; background: #FFF1EC; }
.oauth { display: grid; gap: 10px; }
.oauth-btn { width: 100%; padding: 13px 18px; font-size: .98rem; gap: 10px; border-radius: 12px; }
.oauth-btn svg { width: 20px; height: 20px; flex: none; }
.oauth-apple { background: #000; color: #fff; }
.oauth-apple:hover { background: #222; }
.oauth-google { background: #fff; color: var(--ink); border-color: var(--line); }
.oauth-google:hover { border-color: var(--brand); }
.or { display: flex; align-items: center; gap: 12px; margin: 4px 0 0; color: var(--muted); font-size: .82rem; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.otp-step { display: grid; gap: 14px; }
.otp-sent { margin: 0; font-size: .95rem; color: var(--body); line-height: 1.5; }
#otp-to { font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.otp-links { display: flex; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; }
/* Sign in with the code from the email (Nov 20, 2026). */
.otp-code-label { font-size: .85rem; font-weight: 600; color: var(--muted); margin-bottom: -6px; }
.otp-code-row { display: flex; gap: 10px; }
.otp-code-row input { flex: 1; min-width: 0; font-size: 1.15rem; letter-spacing: .3em; font-variant-numeric: tabular-nums; text-align: center; }
.otp-code-row .btn { flex: none; }
.auth-card .msg:empty { display: none; }
.auth-card .fine { text-align: center; }
.pw-wrap .seg { margin-bottom: 14px; }
.auth-foot { border-top: 1px solid var(--line); padding-top: 14px; display: flex; justify-content: center; }
.auth-foot .linkbtn { justify-self: center; }

/* Setup progress, draft restore */
.wiz-top { display: flex; justify-content: space-between; align-items: baseline; gap: 4px 12px; flex-wrap: wrap; }
.wiz-saved { margin: 0; font-size: .78rem; font-weight: 600; color: var(--avon); }
.wiz-saved:empty { display: none; }
.wiz-saved::before { content: "✓ "; }
.wiz-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.wiz-steps li { font-size: .76rem; font-weight: 600; line-height: 1.25; color: #8A949F; }
.wiz-steps li::before { content: ""; display: block; height: 6px; border-radius: 99px; background: var(--line); margin-bottom: 7px; transition: background .2s; }
.wiz-steps li.done { color: var(--muted); }
.wiz-steps li.done::before { background: var(--brand-line); }
.wiz-steps li.on { color: var(--brand); }
.wiz-steps li.on::before { background: var(--brand); }
.wiz-restored { display: flex; align-items: center; justify-content: space-between; gap: 6px 14px; flex-wrap: wrap; padding: 10px 14px; border-radius: 12px; background: #EEF6F2; }
.wiz-restored p { margin: 0; font-size: .9rem; color: var(--body); }
.vvp-note { margin: 0 0 14px; padding: 10px 14px; border-radius: 12px; background: #E8F5EE; border: 1px solid #BFE3CF; color: #1B6E4A; font-size: .92rem; }
.vvp-note .vvp-code { font-family: var(--mono, ui-monospace, monospace); letter-spacing: .06em; }

/* Fill it in from a link */
.fill-box { display: grid; gap: 8px; padding: 16px; border-radius: 16px; background: linear-gradient(135deg, var(--brand-soft), #F8FAFD); border: 1px solid var(--brand-line); }
.fill-title { margin: 0; font: 700 1.02rem var(--display); color: var(--ink); }
.fill-box .fine { margin-top: -4px; }
.fill-box .msg:empty { display: none; }
.fill-box .import-row input { background: #fff; }
.fill-box .import-row .btn { white-space: nowrap; padding: 11px 18px; font-size: .92rem; }
.form .just-filled, .hours-rows.just-filled { border-color: #8FC9AE !important; background-color: #F3FAF6 !important; }
.feat-suggest { margin: 0; padding: 9px 12px; border-radius: 10px; background: #FFF6E5; color: #7A5200; font-size: .88rem; font-weight: 600; }

/* Hours quick fill */
.hours-presets { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.hp-label { font-size: .74rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-right: 4px; }
.hp { border: 1.5px solid var(--line); background: #fff; color: var(--ink); font: 600 .84rem var(--sans); padding: 7px 12px; border-radius: 999px; cursor: pointer; }
.hp:hover { border-color: var(--brand); color: var(--brand); }
.hp:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* Profile + live preview */
.biz-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 360px); gap: 36px; align-items: start; }
.biz-preview { position: sticky; top: 92px; display: grid; gap: 10px; }
.pv-label { margin: 0; font: 500 .72rem var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.pv-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); }
.pv-cover { position: relative; aspect-ratio: 16 / 10; background: linear-gradient(135deg, var(--brand-2), var(--brand)); display: grid; place-items: center; }
.pv-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pv-mono { font: 800 3rem/1 var(--display); color: rgba(255, 255, 255, .92); }
.pv-body { padding: 16px 18px 18px; display: grid; gap: 4px; }
.portal .pv-name { font: 700 1.3rem/1.2 var(--display); color: var(--ink); overflow-wrap: anywhere; }
.portal .pv-name.ph { color: #A3ADB8; }
.pv-meta { margin: 0; color: var(--muted); font-size: .92rem; font-weight: 600; }
.pv-open { display: inline-flex; align-items: center; gap: 7px; justify-self: start; margin: 6px 0 0; padding: 4px 11px; border-radius: 999px; font-size: .84rem; font-weight: 600; color: var(--muted); background: var(--soft); }
.pv-open i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pv-open.is-open { color: var(--avon); background: #EEF6F2; }
.pv-addr { margin: 4px 0 0; font-size: .88rem; color: var(--body); }
.pv-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.pv-chips:empty { display: none; }
.pv-chips span { font-size: .76rem; font-weight: 600; color: var(--ink); padding: 4px 10px; border-radius: 999px; background: #fff; border: 1px solid var(--line); }
.pv-chips .more { color: var(--muted); }
.pv-actions { display: flex; gap: 8px; margin-top: 12px; }
.pv-actions span { flex: 1; text-align: center; padding: 9px 6px; border-radius: 12px; font: 700 .84rem var(--display); color: var(--brand); background: var(--brand-soft); }
.pv-actions .pv-follow { background: var(--pulse); color: #fff; }

/* Welcome checklist */
.app-flash:not(:empty) { padding: 12px 14px; border-radius: 12px; background: #EEF6F2; margin-bottom: 16px; }
.app-flash.err:not(:empty) { background: #FFF1EC; }
.cover-gate { margin-bottom: 16px; padding: 16px 20px; border-radius: 14px; background: #FFF4EF; border: 1px solid #FFC9B8; display: flex; align-items: center; gap: 16px; justify-content: space-between; flex-wrap: wrap; }
.cover-gate b { font-family: var(--display); font-size: 1.05rem; color: var(--ink); }
.cover-gate p { margin: 4px 0 0; color: var(--muted); font-size: .92rem; max-width: 46em; }
.checklist { margin-bottom: 20px; padding: 20px 22px; box-shadow: var(--shadow-sm); display: grid; gap: 14px; }
.cl-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px 24px; flex-wrap: wrap; }
.cl-head .sub { margin-top: 4px; font-size: .92rem; }
.cl-bar { flex: 0 1 240px; height: 8px; border-radius: 99px; background: var(--soft); border: 1px solid var(--line); overflow: hidden; margin-bottom: 6px; }
.cl-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--pulse), #FF8A6B); border-radius: 99px; }
.cl-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.cl-list button { width: 100%; height: 100%; display: flex; align-items: center; gap: 12px; text-align: left; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: #fff; cursor: pointer; font: inherit; color: inherit; transition: border-color .2s, box-shadow .2s; }
.cl-list button:hover { border-color: var(--brand); box-shadow: var(--shadow-sm); }
.cl-list button:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.cl-check { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--brand-line); flex: none; }
.cl-list button:not(:disabled) .cl-check:hover { border-color: var(--avon); box-shadow: 0 0 0 4px rgba(60, 203, 138, .15); }
.cl-list .ok .cl-check, .cl-badge { border-color: var(--avon); background: var(--avon) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/13px no-repeat; }
.cl-text b { display: block; color: var(--ink); font-size: .94rem; line-height: 1.3; }
.cl-text small { display: block; color: var(--muted); font-size: .8rem; line-height: 1.35; }
.cl-list .ok button { background: var(--soft); }
.cl-list .ok b { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(94, 106, 120, .45); }
.cl-done { display: flex; align-items: center; gap: 12px 16px; flex-wrap: wrap; }
.cl-done > div { flex: 1 1 240px; }
.cl-done .sub { margin-top: 2px; }
.cl-badge { width: 44px; height: 44px; border-radius: 50%; flex: none; background-size: 22px; }

/* Team invites */
.team-pending { display: grid; gap: 8px; }
.team-pending h3 { font-size: .95rem; }
.tag-invite { margin-top: 0; background: #FFF6E5; color: #7A5200; }

@media (max-width: 900px) {
  /* Phones/tablets: headline, then the sign-in card, then the benefits. */
  .auth-land { display: flex; flex-direction: column; gap: 0; max-width: 560px; }
  .land-copy { display: contents; }
  .founders-badge { align-self: flex-start; }
  /* Full width in both sign-in modes: Safari shrank the card to its content in password mode (Tyler, Nov 18, 2026). */
  .auth-card { order: 1; margin-top: 24px; width: 100%; align-self: stretch; box-sizing: border-box; }
  .land-points { order: 2; margin-top: 28px; }
  .biz-layout { grid-template-columns: minmax(0, 1fr); }
  .biz-preview { position: static; max-width: 420px; }
}
@media (max-width: 640px) {
  .auth-land { margin-top: 0; }
  .auth-card { margin-top: 20px; }
  .portal .land-copy h1 { font-size: 2.05rem; }
  .land-copy .lede { font-size: 1rem; margin-top: 12px; }
  .land-points { margin-top: 24px; gap: 12px; }
  .lp-i { width: 34px; height: 34px; border-radius: 10px; }
  .lp-i svg { width: 18px; height: 18px; }
  .land-points li > div > span { font-size: .88rem; }
  .auth-card { padding: 22px 18px; border-radius: 20px; gap: 14px; }
  .portal .auth-card h2 { font-size: 1.25rem; }
  .wiz-steps li span { display: none; }
  .fill-box { padding: 14px; }
  .fill-box .import-row { flex-direction: row; }
  .fill-box .import-row .btn { padding: 11px 14px; }
  .hp-label { width: 100%; }
  .checklist { padding: 16px; }
  .cl-list { grid-template-columns: minmax(0, 1fr); }
  .cl-list button { padding: 10px 12px; }
  .cl-bar { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }
.fill-box #fill-detail { margin-top: -4px; }
.fill-box #fill-detail:empty { display: none; }
.paused-date { font-size: 17px; color: var(--ink, #0D1D30); margin: 0 0 20px; }

/* Show/hide password eye (assets/js/password-toggle.js) */
.pw-field { position: relative; }
.pw-field input { padding-right: 48px !important; }
.pw-eye {
  position: absolute; right: 2px; bottom: 2px; width: 44px; height: 40px;
  display: grid; place-items: center; padding: 0; margin: 0;
  background: transparent; border: 0; border-radius: 8px; color: var(--muted); cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.pw-field:not(.pw-field-label) .pw-eye { top: 50%; bottom: auto; transform: translateY(-50%); }
.pw-eye:hover { color: var(--brand); }
.pw-eye:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.pw-eye[aria-pressed="true"] { color: var(--brand); }
input::-ms-reveal, input::-ms-clear { display: none; }

/* ---------------------------------------------------------------- agreement (agreement.js) */
body.agree-locked #stats, body.agree-locked #tabs-wrap, body.agree-locked #checklist,
body.agree-locked .tab-panel, body.agree-locked .drawer { display: none !important; }
.panel.agree-gate { max-width: 1120px; }
/* Desktop: the agreement reads on the left at full height, the signature sits beside it. */
@media (min-width: 960px) {
  #agree-form { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(320px, 1fr); column-gap: 36px; align-items: start; }
  #agree-mount { display: contents; }
  #agree-form .agree-doc { grid-column: 1; grid-row: 1 / span 3; margin: 0; max-height: calc(100vh - 230px); min-height: 440px; position: sticky; top: 92px; font-size: .98rem; padding: 24px 28px; }
  #agree-form .agree-form, #agree-submit, #agree-msg { grid-column: 2; }
  #agree-submit { margin-top: 6px; }
}
.agree-gate h2 { margin-top: 4px; }
.agree-doc { max-height: 46vh; overflow: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--soft, #F6F8FA); padding: 18px 20px; margin: 18px 0 20px; font-size: .92rem; line-height: 1.55; }
.agree-doc h3 { font-size: 1.1rem; margin: 0; }
.agree-doc h4 { font-size: .98rem; margin: 16px 0 4px; }
.agree-doc p { margin: 0 0 8px; color: var(--body); }
.agree-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sig-field { display: grid; gap: 6px; margin: 4px 0 10px; }
.sig-label { display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: .92rem; color: var(--ink); }
.sig-pad { width: 100%; height: 150px; background: #fff; border: 1.5px dashed #B9C4D2; border-radius: 12px; touch-action: none; cursor: crosshair; }
.agree-form input.ro { background: var(--soft, #F6F8FA); color: var(--muted); }
.agree-card { margin-top: 18px; }
/* Required statements above the signature, one checkbox each. */
.agree-acks { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px 4px; margin: 4px 0 12px; display: grid; gap: 8px; }
.agree-acks legend { font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); padding: 0 6px; }
.form .agree-acks .check { align-items: flex-start; font-size: .92rem; line-height: 1.45; }
.form .agree-acks .check input { flex: none; margin-top: 2px; }
/* "We've updated your agreement" note on the dashboard (owners who signed an older version). */
.agree-note { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  background: #EEF4FB; border: 1.5px solid #B9CDE6; color: var(--ink); border-radius: 14px; padding: 12px 16px; }
.agree-note-btns { display: flex; align-items: center; gap: 14px; }
#agree-later { margin-top: 8px; }
@media (min-width: 960px) { #agree-later { grid-column: 2; } }
@media (max-width: 560px) { .agree-form .row { grid-template-columns: 1fr; } }

/* Plan step: price cards and the founding-spot option */
.plan-card .pc-body { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; width: 100%; }
.plan-card .pc-body small { grid-column: 1 / -1; }
.plan-card .pc-points { grid-column: 1 / -1; display: grid; gap: 2px; margin-top: 2px; font-size: .9rem; color: var(--body); }
.plan-card .pc-points > span { position: relative; padding-left: 16px; }
.plan-card .pc-points > span::before { content: ""; position: absolute; left: 3px; top: .62em; width: 5px; height: 5px; border-radius: 50%; background: var(--pulse); }
.plan-compare { margin: 2px 0 4px; }
.plan-compare summary { cursor: pointer; font-weight: 700; color: var(--brand); padding: 4px 0; }
.plan-compare table { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: .86rem; }
.plan-compare th, .plan-compare td { padding: 7px 6px; border-bottom: 1px solid var(--line); text-align: center; }
.plan-compare thead th { font: 700 .8rem var(--display); color: var(--ink); }
.plan-compare tbody th { text-align: left; font-weight: 500; color: var(--body); }
.plan-compare td { color: var(--brand); font-weight: 700; white-space: nowrap; }
.plan-compare td.no { color: var(--muted); font-weight: 400; }
.plan-card .pc-price { font: 800 1.15rem var(--display); color: var(--ink); white-space: nowrap; }
.plan-card .pc-price small { font: 600 .8rem var(--display); color: var(--muted); }
.plan-tag-pop { background: var(--brand); }
.form .founder-pick { border-style: dashed; border-color: #FF9C87; background: #FFF6F3; margin-top: 4px; }
.form .founder-pick input[type=checkbox] { width: auto; margin-top: 3px; accent-color: var(--pulse); flex: none; }
.founder-pick:has(input:checked) { border-style: solid; border-color: var(--pulse); background: #FFEDE8; }
.founder-pick.off, .plan-opt.off { opacity: .55; }
.form .org-pick { border-style: solid; border-color: var(--brand-line); background: var(--brand-soft); }
.org-pick:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.form .org-pick input[type=checkbox] { accent-color: var(--brand); }
.plan-pick.org-on .plan-card, .plan-pick.org-on .founder-pick:not(.org-pick) { opacity: .45; pointer-events: none; }
.org-note { display: grid; gap: 4px; font-weight: 600; }
.org-ask { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.org-ask summary { cursor: pointer; font-weight: 700; color: var(--brand); }
.org-ask[open] { display: grid; }
.org-ask label { display: grid; gap: 4px; font-weight: 600; }
/* Safari doesn't lay out an open <details> as a grid, so space the button explicitly. */
.org-ask #org-ask-send { margin-top: 14px; }
.org-ask label { margin-top: 10px; }
#pay-founder-pick { margin-top: 12px; }
.plan-opt.off, .plan-opt.off input { cursor: not-allowed; }

/* Page preview: a floating button opens it over the form on phones and tablets. */
.pv-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pv-close, .preview-fab { display: none; }
@media (max-width: 900px) {
  .preview-fab { display: inline-flex; position: sticky; bottom: 14px; margin: 14px 0 0 auto; z-index: 20; align-items: center; gap: 6px;
    background: var(--ink); color: #fff; border: 0; border-radius: 999px; padding: 11px 18px; font: 700 .92rem var(--display); cursor: pointer; }
  .preview-fab::before { content: ""; width: 16px; height: 16px; background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2'%3E%3Cpath d='M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2'%3E%3Cpath d='M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center / contain no-repeat; }
  body.preview-open .biz-preview { position: fixed; inset: 0; z-index: 300; max-width: none; margin: 0; padding: 20px 16px;
    background: var(--soft, #F5F7FA); overflow: auto; align-content: start; }
  body.preview-open .biz-preview > * { width: 100%; max-width: 420px; margin: 0 auto; }
  body.preview-open .pv-close { display: inline-flex; }
  body.preview-open { overflow: hidden; }
}

/* "Not live yet: add payment" banner (awaiting the first Stripe checkout) */
.awaiting-note { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  background: #FFF6F3; border: 1.5px solid #FF9C87; color: var(--ink); border-radius: 14px; padding: 12px 16px; }
#manage-billing { margin-top: 8px; }
.other-tab-hide { display: none !important; }
#other-tab { grid-column: 1 / -1; }
.kit-places { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 0; }
.kit-places li { display: grid; grid-template-columns: 170px 1fr; gap: 16px; padding: 10px 4px; border-bottom: 1px solid var(--line); font-size: .92rem; }
.kit-places b { color: var(--ink); }
.kit-places span { color: var(--body); }
@media (max-width: 560px) { .kit-places li { grid-template-columns: 1fr; gap: 2px; } }
.welcome-pick { align-items: flex-start; }
.welcome-pick.off { opacity: .6; }
.welcome-pick .plan-tag { margin-left: 4px; }

/* Featured day booking (Pro) */
.feat-day { border: 1px solid var(--line); border-radius: 18px; background: #fff; padding: 18px 20px; margin: 0 0 18px; display: grid; gap: 12px; }
.feat-head { display: flex; gap: 16px; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; }
.feat-head h3 { margin: 0 0 4px; font-size: 1.05rem; }
.feat-head .fine { max-width: 560px; }
.feat-town { display: grid; gap: 4px; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.feat-town select { font: 600 .9rem var(--sans); padding: 8px 10px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); }
.feat-status { margin: 0; font-size: .92rem; display: flex; gap: 10px; flex-wrap: wrap; align-items: baseline; }
.feat-up { margin: 0; font-size: .9rem; color: var(--muted); }
.feat-up b { color: var(--ink); }
.feat-nav { display: flex; align-items: center; justify-content: center; gap: 14px; }
.feat-nav b { min-width: 150px; text-align: center; }
.feat-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.feat-dow { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); text-align: center; }
.feat-cell { position: relative; display: grid; gap: 2px; justify-items: center; padding: 8px 2px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); font: inherit; min-height: 54px; }
.feat-cell.blank { border: 0; background: none; }
.feat-cell b { font-size: .92rem; }
.feat-cell small { font-size: .66rem; color: var(--muted); white-space: nowrap; }
button.feat-cell:not(:disabled) { cursor: pointer; border-color: var(--brand); background: var(--brand-soft); }
button.feat-cell:not(:disabled):hover { box-shadow: 0 0 0 3px var(--brand-soft); }
.feat-cell:disabled { cursor: default; }
.feat-cell.past { opacity: .4; }
.feat-cell.full small { color: #b42318; }
.feat-cell.booked { background: var(--brand); border-color: var(--brand); color: #fff; opacity: 1; }
.feat-cell.booked small { color: #fff; }
.feat-cell.today b { text-decoration: underline; text-underline-offset: 3px; }
.feat-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.feat-cell .feat-dot { position: absolute; top: 6px; right: 6px; }
.feat-cell.booked .feat-dot { background: #fff; }
.feat-key { display: flex; gap: 6px; align-items: center; }
@media (max-width: 560px) {
  .feat-day { padding: 14px; }
  .feat-cal { gap: 3px; }
  .feat-cell { min-height: 46px; padding: 6px 0; }
  .feat-cell small { font-size: .58rem; }
}

/* Events tab: list or month calendar */
.ev-view { display: inline-flex; gap: 4px; padding: 3px; margin: 0; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.ev-view-btn { font: 700 .82rem var(--sans); padding: 6px 14px; border: 0; border-radius: 999px; background: none; color: var(--muted); cursor: pointer; }
.ev-view-btn[aria-pressed="true"] { background: var(--brand); color: #fff; }
.ev-cal { border: 1px solid var(--line); border-radius: 18px; background: #fff; padding: 18px 20px; margin: 0 0 14px; display: grid; gap: 12px; }
.feat-cal button.ev-cell.sel { background: var(--brand); border-color: var(--brand); color: #fff; opacity: 1; }
.feat-cal .ev-cell.sel small { color: #fff; }
.ev-draft-dot { position: absolute; top: 6px; right: 6px; width: 6px; height: 6px; border-radius: 50%; border: 1.5px solid var(--muted); }
.ev-cell.sel .ev-draft-dot { border-color: #fff; }
.ev-day-title { margin: 4px 0 0; font-size: 1rem; }
@media (max-width: 560px) { .ev-cal { padding: 14px; } }

/* Seasonal hours helper */
.hours-when { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.hours-when select, .hours-when input { width: auto; text-transform: none; letter-spacing: 0; font-weight: 600; }
#hours-sched-note { margin-top: 8px; }
.season { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin: 16px 0 0; display: grid; gap: 10px; }
.season legend { font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); padding: 0 6px; }

/* Game day */
.game-day { border: 1px solid var(--line); border-radius: 18px; background: #fff; padding: 18px 20px; margin: 0 0 18px; display: grid; gap: 12px; }
.gd-head h3 { margin: 0 0 4px; font-size: 1.05rem; }
.gd-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.gd-list li { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 8px 12px; background: var(--soft); border-radius: 10px; font-size: .92rem; }
.gd-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.gd-form label { display: grid; gap: 4px; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.gd-form input { font: 500 .92rem var(--sans); padding: 8px 10px; border: 1.5px solid var(--line); border-radius: 10px; color: var(--ink); }
.gd-form .gd-game { flex: 1; min-width: 180px; }
.gd-form .msg { flex-basis: 100%; margin: 0; }

/* Audience stats (Pro) */
.aud-card { display: grid; gap: 12px; }
.aud-card .sub b { color: var(--ink); }
.aud-key { display: flex; flex-wrap: wrap; gap: 16px; font-size: .85rem; color: var(--muted); }
.aud-key span { display: inline-flex; align-items: center; gap: 6px; }
.aud-key i { width: 14px; height: 8px; border-radius: 3px; display: inline-block; }
.aud-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.aud-grid h4 { margin: 0 0 8px; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.aud-row { display: grid; grid-template-columns: 110px 1fr 40px; gap: 10px; align-items: center; padding: 4px 0; }
.aud-label { font-size: .88rem; font-weight: 600; color: var(--ink); line-height: 1.2; }
.aud-label small { display: block; font-weight: 500; font-size: .72rem; color: var(--muted); }
.aud-bars { display: grid; gap: 3px; }
.aud-bars i { display: block; height: 8px; border-radius: 4px; min-width: 2px; }
.aud-me { background: var(--brand); }
.aud-peer { background: #C9D7E8; }
.aud-pct { font: 600 .82rem var(--mono); color: var(--ink); text-align: right; }
@media (max-width: 760px) { .aud-grid { grid-template-columns: 1fr; } .aud-row { grid-template-columns: 92px 1fr 36px; } }

/* Ask the Venue */
.q-body { margin-bottom: 28px; }
.q-item .q-main { display: grid; gap: 8px; width: 100%; }
.q-item b { font-size: 1rem; color: var(--ink); }
.q-form { display: grid; gap: 8px; }
.q-form textarea { font: 500 .95rem/1.45 var(--sans); padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px; color: var(--ink); width: 100%; resize: vertical; }
.q-form textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.q-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.q-actions .msg { margin: 0; }

/* AI post writer */
.ai-write { margin-top: -6px; display: grid; gap: 8px; }
.ai-write .ai-open { justify-self: start; font-size: .86rem; }
.ai-box { display: grid; gap: 8px; padding: 12px 14px; background: var(--brand-soft); border-radius: 12px; }
.ai-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ai-row .msg { margin: 0; }
#flyer-box { margin-top: 10px; }
#flyer-file { padding: 8px 10px; }

/* Field problems: red outline and a note right under the field (the page scrolls to the first one). */
.field-bad > input, .field-bad > select, .field-bad > textarea { border-color: #D92D20 !important; box-shadow: 0 0 0 3px rgba(217, 45, 32, .14); }
fieldset.field-bad { border-radius: 14px; box-shadow: 0 0 0 2px #D92D20; }
.field-err { margin: 6px 0 0; font: 600 .82rem/1.35 var(--sans); color: #B42318; text-transform: none; letter-spacing: 0; }
fieldset.field-bad > .field-err { padding: 0 4px 6px; }

/* "Post from your phone": only alongside the stats, i.e. once a business is loaded. */
.app-strip { display: none; align-items: center; gap: 16px; margin: 12px 0 4px; padding: 12px 16px;
  border: 1px solid var(--line, #E3E8EF); border-radius: 14px; background: #fff; }
#stats:not([hidden]) + .app-strip { display: flex; }
.app-strip p { margin: 0; flex: 1; font-size: 14px; line-height: 1.45; }
.app-strip-btn img { display: block; height: 40px; width: auto; }
/* Computers (a mouse or trackpad): a QR code to scan with the phone instead of the store button. */
.app-strip-qr { display: none; flex-direction: column; align-items: center; gap: 4px; }
.app-strip-qr img { display: block; width: 88px; height: 88px; padding: 4px; background: #fff; border-radius: 10px; border: 1px solid var(--line, #E3E8EF); }
.app-strip-qr span { font-size: 11.5px; font-weight: 600; color: var(--muted, #5B6B7C); white-space: nowrap; }
@media (hover: hover) and (pointer: fine) {
  .app-strip-qr { display: flex; }
  .app-strip-btn { display: none; }
}
@media (max-width: 560px) { .app-strip { flex-direction: column; align-items: flex-start; } }

/* The home page's business sections under the sign-in card: only while signed out. */
body:has(#view-auth[hidden]) .land-more { display: none; }
.land-more #how, .land-more #plans { scroll-margin-top: -10px; }
/* Those sections keep the home page's big headings (.portal h2 is the dashboard's small one). */
.portal .land-more h2 { font-family: var(--serif); font-size: clamp(2.1rem, 4.4vw, 3.4rem); font-weight: 800; line-height: 1.04;
  letter-spacing: -0.03em; color: var(--ink); }
.portal .land-more .section-dark h2, .portal .land-more .section-dark h3 { color: #fff; }
.portal .land-more .section-dark h2 em { color: #8FB4E3; }

/* Stats: custom date range (Pro). */
.date-range { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; padding: 16px 18px; margin-bottom: 18px; }
.date-range label { display: grid; gap: 6px; font: 600 .85rem var(--sans); color: var(--muted); }
.date-range input { height: 44px; box-sizing: border-box; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px; font: 500 .95rem var(--sans); color: inherit; background: #fff; }
.date-range .btn { height: 44px; padding-top: 0; padding-bottom: 0; }
.date-range .msg { flex-basis: 100%; margin: 0; }
.date-range .msg:empty { display: none; }
@media (max-width: 560px) { .date-range label { flex: 1 1 140px; } .date-range input { width: 100%; } .date-range .btn { flex: 1 1 100%; } }

/* Organization upgrades (promote.js) */
.org-hide { display: none !important; }
.org-upgrade { display: grid; gap: 12px; margin-top: 4px; }
.org-upgrade .org-free { margin: 0; }
.biz-promote { margin-top: 16px; }
.biz-promote h4 { margin: 0; }
.biz-promote > .sub { margin: 0; }
.org-card { display: grid; gap: 10px; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; }
.org-card.on { border-color: var(--brand); background: var(--brand-soft); }
.org-card > b { color: var(--ink); }
.org-card .sub { margin: 0; font-size: .9rem; }
.org-card .pc-body { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; }
.org-card .pc-body b { color: var(--ink); }
.org-card .pc-body small { grid-column: 1 / -1; color: var(--muted); font-size: .86rem; }
.org-card .pc-price { font: 800 1.15rem var(--display); color: var(--ink); white-space: nowrap; }
.org-card .pc-price small { font: 600 .8rem var(--display); color: var(--muted); }
.org-card label { display: grid; gap: 4px; font-weight: 600; }
.org-card .btn-row { display: flex; flex-wrap: wrap; gap: 8px; }
.promo-pick { margin: 0; }
.import-row { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; justify-content: space-between; padding: 10px 0; border-top: 1px solid var(--line); }
.import-row > div:first-child { display: grid; gap: 2px; min-width: 0; }
.import-row a { font-weight: 600; overflow-wrap: anywhere; }
.import-row small { color: var(--muted); font-size: .84rem; }
.org-card label.check { display: flex; gap: 8px; align-items: flex-start; font-weight: 500; }
.org-card label.check input { width: auto; margin-top: 3px; }

/* Plan step: Essentials, Pro and Concierge side by side (stacked when narrow); Just One Event below. */
.plan-pick { container-type: inline-size; }
.plan-tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; align-items: stretch; }
@container (max-width: 600px) { .plan-tiers { grid-template-columns: 1fr; } }
.form .plan-opt.plan-tier { position: relative; flex-direction: column; align-items: stretch; gap: 6px; padding: 18px 14px 14px; overflow: hidden; }
.plan-tier::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--brand-line); }
/* One gradient across Services, Essentials and Pro, like the /business plan cards (Tyler, Nov 14, 2026). */
.plan-tier.tier-services::before, .plan-tier.tier-starter::before, .plan-tier.tier-pro::before {
  background: linear-gradient(90deg, var(--brand) 0%, var(--brand-2) 16%, #4F86C6 40%, #8DB9EA 58%, #FF8A4C 76%, var(--pulse) 86%, #FFD27A 100%);
  background-size: 300% 100%;
}
.plan-tier.tier-services::before { background-position: 0% 0; }
.plan-tier.tier-starter::before { background-position: 50% 0; }
.plan-tier.tier-pro::before { background-position: 100% 0; }
.plan-tier.tier-concierge::before { background: linear-gradient(90deg, var(--brand), #2C5183); }
.form .plan-tier input[type=radio] { position: absolute; opacity: 0; pointer-events: none; }
.plan-tier:has(input:focus-visible) { outline: 3px solid var(--brand-soft); outline-offset: 2px; }
.plan-tier .pt-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-height: 20px; }
.plan-tier .pt-eyebrow { font: 700 .68rem var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.plan-tier .pt-name { font: 800 1.05rem var(--display); color: var(--ink); display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.plan-tier .pt-name .plan-tag { white-space: nowrap; }
.plan-tier .pt-price { display: block; font: 800 1.7rem/1 var(--display); color: var(--ink); margin: 2px 0 4px; }
.plan-tier .pt-price small { font: 600 .8rem var(--display); color: var(--muted); margin-left: 2px; }
.plan-tier .pc-points { gap: 6px; font-size: .86rem; flex: 1; align-content: start; padding-top: 10px; border-top: 1px solid var(--line); }
.plan-tier .pc-points > span { padding-left: 20px; }
.plan-tier .pc-points > span::before { content: "✓"; width: auto; height: auto; top: 0; left: 0; background: none; border-radius: 0; color: var(--brand); font-weight: 800; }
.plan-tier .pt-pick { display: block; margin-top: 10px; padding: 9px; border: 1.5px solid var(--brand); border-radius: 10px; text-align: center; font: 700 .85rem var(--display); color: var(--brand); }
.plan-tier .pt-pick::after { content: "Choose"; }
.plan-tier:has(input:checked) .pt-pick { background: var(--brand); color: #fff; }
.plan-tier:has(input:checked) .pt-pick::after { content: "✓ Selected"; }
.plan-tier.tier-starter:not(:has(input:checked)) { border-color: #FFB4A3; }
.plan-tier.off .pt-pick::after { content: "Full"; }
.form .plan-opt.plan-single { margin-top: 2px; }
.auto-import-card { margin: 0 0 18px; }
/* the event list sits right under its heading; the tools follow it */
#event-list, #event-cal { margin-bottom: 22px; }

/* This Month (dashboard card, insights.js renderMonthCard) */
.month-card { padding: 18px 20px; margin-bottom: 24px; box-shadow: var(--shadow-sm); }
.month-card .m-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.month-card .m-head h3 { margin: 0; }
.month-card .m-head .sub { margin: 2px 0 0; font-size: .88rem; }
.m-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.m-tile { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; background: #fff; min-width: 0; }
.m-tile b { display: block; font: 800 1.45rem var(--display); color: var(--ink); }
.m-tile span { display: block; font-size: .85rem; color: var(--muted); font-weight: 600; }
.m-tile em { display: block; margin-top: 4px; font-style: normal; font-size: .74rem; color: #8A949F; overflow-wrap: anywhere; }
.m-chg { display: block; margin-top: 6px; font-size: .74rem; font-weight: 700; color: #8A949F; }
.m-chg.up { color: var(--avon); } .m-chg.down { color: var(--pulse-d); }
.month-card .m-foot { margin: 12px 0 0; }
.month-card:has(.month-locked) { padding: 0; overflow: hidden; }
.month-locked { margin-top: 0; min-height: 300px; }
.month-locked .locked-fake { padding: 18px 20px; }
@media (max-width: 900px) { .m-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .month-card { padding: 14px; margin-bottom: 16px; }
  .m-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .m-tile { padding: 10px 12px; }
  .m-tile b { font-size: 1.2rem; }
}

/* Event dates: One Time / Several Dates / Repeats Weekly */
.when-pick { display: flex; flex-wrap: wrap; gap: 6px; border: 0; padding: 0; margin: 0; }
.when-pick legend { font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; padding: 0; }
.extra-dates { display: grid; gap: 8px; }
.extra-date { display: flex; gap: 8px; align-items: center; }
.extra-date input { max-width: 220px; }

/* Character counter under a text field */
.char-count { display: block; text-align: right; font-size: .78rem; color: var(--muted); font-weight: 600; margin-top: -4px; }
.char-count.near { color: var(--pulse-d); }

/* Featured Partner (Profile → Plan, Concierge) */
.feat-partner { display: grid; gap: 8px; margin-top: 16px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.feat-partner h4 { margin: 0; }
.feat-partner .fp-state { margin: 0; }
.feat-partner .fp-mine b, .feat-partner .fp-open b { color: var(--coral, #FF5A3C); }
.feat-partner .btn { justify-self: start; }
.feat-partner .fine { margin: 0; font-size: 12.5px; color: var(--muted); }

/* Concierge monthly note on the This Month card */
.month-card .m-note { margin-top: 14px; padding: 14px 16px; border-radius: 12px; background: var(--soft); border: 1px solid var(--line); }
.month-card .m-note p { margin: 0; }
.month-card .m-note .label { margin-bottom: 6px; }
.month-card .m-note-edit { display: grid; gap: 8px; }
.month-card .m-note-edit textarea { width: 100%; font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.month-card .m-note-edit .btn { justify-self: start; }
/* Phone nav: Change Email and Sign Out fit; the Admin Console link stays a desktop shortcut (admins use the app on phones). */
@media (max-width: 640px) {
  #admin-link { display: none !important; }
  #change-email { padding: 9px 12px; font-size: .8rem; }
}

/* Admin → Sponsors → Invoice */
.inv-panel { display: grid; gap: 14px; padding: 16px; margin-bottom: 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.inv-panel .list-head { margin: 0; }
.inv-panel h3 { margin: 0; }
.inv-panel .items { margin: 0; }

/* Profile → Plan → Set Up Your Giveaway (a purchased Sponsored Giveaway) */
.gv-setup { border-color: var(--brand); background: var(--brand-soft); }
.gv-setup .row { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; }
.gv-setup input:not([type=file]), .gv-setup textarea, .gv-setup select { font: inherit; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; width: 100%; box-sizing: border-box; }

/* Free Profile: what's included and what isn't (payment step and its dashboard note). */
.free-limits { margin: 12px 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--soft); display: grid; gap: 8px; }
.free-limits p { margin: 0; font-size: .9rem; line-height: 1.5; }
.free-note { margin-bottom: 16px; }
.free-note h3 { margin: 4px 0 0; }

/* Phones: keep the header on one line, and stop iPhone's date and time boxes from running past the card
   (Safari gives them a fixed natural width and ignores the grid unless their appearance is reset). */
@media (max-width: 640px) {
  .nav .logo span { white-space: nowrap; }
  .nav .nav-links { gap: 6px; }
  .nav .nav-cta { padding: 8px 12px; font-size: .82rem; white-space: nowrap; }
  .form input[type=date], .form input[type=time] {
    -webkit-appearance: none; appearance: none; display: block; width: 100%; min-width: 0; max-width: 100%; min-height: 44px; }
  .form input[type=date]::-webkit-date-and-time-value, .form input[type=time]::-webkit-date-and-time-value { text-align: left; }
  .form .row > label, .hrow > * { min-width: 0; }
  .hrow { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .preview-fab { padding: 9px 14px; font-size: .85rem; bottom: calc(12px + env(safe-area-inset-bottom)); }
  .preview-fab .fab-more { display: none; }
}

/* Specials & Happy Hours (portal.js renderSpecials): same card as Showing the Game. */
.specials-card .gd-list li { align-items: flex-start; }
.specials-card .sp-paused { opacity: .6; }
.specials-card .sp-acts { display: flex; gap: 10px; flex-shrink: 0; }
.sp-form select { font: 500 .92rem var(--sans); padding: 8px 10px; border: 1.5px solid var(--line); border-radius: 10px; color: var(--ink); background: #fff; }
.sp-form .sp-details { flex-basis: 100%; }
.sp-form .sp-days { flex-basis: 100%; border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.sp-form .sp-days label { display: inline-flex; align-items: center; gap: 5px; text-transform: none; letter-spacing: 0; font-size: .88rem; font-weight: 600; color: var(--ink); padding: 6px 10px; background: var(--soft); border-radius: 999px; cursor: pointer; }
.sp-form .sp-note { flex-basis: 100%; margin: 0; }

/* Terms agreement after first sign-in (portal.js termsGate). */
.terms-gate { margin-top: 32px; }
.terms-gate .terms-check { align-items: flex-start; font-size: .95rem; line-height: 1.45; }
.terms-gate .terms-check input { flex: none; margin-top: 3px; }
.terms-gate #terms-out { margin-top: 12px; }
.terms-gate .terms-check a { color: var(--brand); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }

/* Create Account / Sign In tabs at the top of the sign-in card. */
.auth-card .auth-seg { display: flex; width: 100%; margin: 6px 0 18px; }
.auth-card .auth-seg button { flex: 1; padding: 10px 16px; font-size: .95rem; }

/* Admin → Numbers: month-by-month table (scrolls sideways on phones). */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.adm-table { width: 100%; border-collapse: collapse; font-size: .88rem; min-width: 560px; }
.adm-table th, .adm-table td { padding: 8px 6px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.adm-table th:first-child { text-align: left; }
.adm-table thead th { font-size: .76rem; color: var(--muted); font-weight: 600; white-space: normal; }

/* Create Account: the optional "tips and offers" box; the one-time question for existing owners. */
.form .auth-news { font-size: .86rem; color: var(--muted); align-items: flex-start; gap: 8px; }
.news-ask { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.news-ask > div:first-child { display: grid; gap: 4px; flex: 1 1 320px; }
.news-ask span { color: var(--muted); font-size: .9rem; }

/* Plan step: Additional Locations count; the main business's Locations card. */
.loc-count { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; text-transform: none; letter-spacing: 0; }
.loc-count span { display: grid; gap: 3px; font-size: .95rem; color: var(--ink, #0D1D30); }
.loc-count small { color: var(--muted); font-weight: 500; font-size: .84rem; }
.loc-count input { width: 84px; text-align: center; font-size: 1.05rem; font-weight: 700; }
.pay-summary { margin-top: 12px; padding: 14px 16px; border: 2px solid var(--pulse, #FF5A3C); border-radius: 14px; background: #FFF6F3; display: grid; gap: 6px; }
.pay-summary .label { margin: 0 0 2px; }
.pay-summary .ps-row { display: flex; justify-content: space-between; gap: 12px; font-size: .95rem; color: var(--ink, #0D1D30); }
.pay-summary .ps-tot { border-top: 1px solid var(--line); padding-top: 8px; font-weight: 800; font-size: 1.05rem; }
.pay-summary .fine { margin: 4px 0 0; }
html[data-theme-auto] .pay-summary { background: var(--card); }
.loc-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.loc-card > div:first-child { display: grid; gap: 4px; flex: 1 1 320px; }
.loc-card span { color: var(--muted); font-size: .9rem; }
.loc-card .msg { flex-basis: 100%; margin: 0; }

/* Rewards (Oct 25, 2026) */
.rw-intro { margin: 0 0 12px; }
.rw-pin { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 14px; border: 1px solid var(--line, #e3e8ef); border-radius: 12px; margin: 0 0 14px; font-size: .92rem; }
.mode-pick { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.mode-pick legend { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }
.form .mode-pick .check { align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line, #e3e8ef); border-radius: 10px; cursor: pointer; }
.form .mode-pick .check:has(input:checked) { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand) inset; }
.mode-pick .check input { margin-top: 2px; flex: none; }
.mode-pick .check b { display: block; }

/* Phones and narrow windows (Tyler, Oct 25): every tab in view as wrapping pills, no hidden tabs to scroll to. */
@media (max-width: 760px) {
  .tabs-wrap::before, .tabs-wrap::after { display: none; }
  .tabs-wrap .tabs { flex-wrap: wrap; overflow: visible; gap: 8px; border-bottom: 0; }
  .tabs-wrap .tabs button { flex: none; padding: 9px 14px; font-size: .92rem; border: 1px solid var(--line); border-radius: 999px; background: #fff; margin: 0; }
  .tabs-wrap .tabs button[aria-selected="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
  .tabs-wrap .tabs .tab-admin { margin-left: 0; padding-left: 22px; }
  .tabs-wrap .tabs .tab-admin[aria-selected="true"] { background: var(--pulse-d); border-color: var(--pulse-d); color: #fff; }
  .tabs-wrap .tabs .tab-admin[aria-selected="true"]::before { background: #fff; }
}

/* Full page preview while setting up (Oct 25, 2026): every section of the app's place page as it fills in. */
.biz-preview { max-height: calc(100vh - 110px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.pv-title { display: flex; align-items: center; gap: 12px; }
.pv-logo { flex: none; width: 48px; height: 48px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #fff; }
.pv-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pv-title > div { min-width: 0; display: grid; gap: 2px; }
.pv-intro { margin: 8px 0 0; font-size: .92rem; color: var(--body); line-height: 1.45; }
.pv-closed { margin: 8px 0 0; padding: 8px 12px; border-radius: 12px; font-size: .84rem; font-weight: 600; color: #8A5A00; background: #FFF6E0; }
.pv-sec { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 12px; display: grid; gap: 6px; }
.pv-h { margin: 0; font: 700 .95rem var(--display); color: var(--ink); }
.pv-hours { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; font-size: .84rem; color: var(--body); }
.pv-hours li { display: flex; justify-content: space-between; gap: 10px; }
.pv-hours li.today { font-weight: 700; color: var(--ink); }
.pv-about { margin: 0; font-size: .88rem; color: var(--body); line-height: 1.5; white-space: pre-line; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.pv-sec .pv-chips { margin-top: 0; }
.pv-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: .84rem; }
.pv-contact li { display: flex; justify-content: space-between; gap: 12px; }
.pv-contact span { color: var(--muted); flex: none; }
.pv-contact b { font-weight: 600; color: var(--brand); text-align: right; overflow-wrap: anywhere; min-width: 0; }
.pv-soon { margin: 0; font-size: .84rem; color: var(--muted); }
@media (max-width: 900px) { .biz-preview { max-height: none; overflow: visible; } }

/* Monthly / Yearly switch on the Plan step (Nov 8, 2026). */
.bill-toggle { display: inline-flex; gap: 4px; padding: 4px; margin: 4px 0 12px; border-radius: 999px; background: var(--soft, #F5F7FA); border: 1px solid var(--line, #E3E8EF); }
.bill-toggle label { position: relative; cursor: pointer; }
.bill-toggle input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.bill-toggle span { display: block; padding: 7px 14px; border-radius: 999px; font-weight: 700; font-size: 14px; color: var(--muted, #5E6A78); }
.bill-toggle em { font-style: normal; font-weight: 700; color: #FF5A3C; margin-left: 4px; }
.bill-toggle input:checked + span { background: #fff; color: var(--ink, #0D1D30); box-shadow: 0 1px 4px rgba(13, 29, 48, .12); }
.bill-toggle input:focus-visible + span { outline: 2px solid #FF5A3C; outline-offset: 2px; }

/* Plan step: the picked plan lifts and glows, the others settle (Nov 8, 2026). */
.plan-card, .plan-opt.plan-card { transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s ease, border-color .25s ease; }
.plan-card:hover { transform: translateY(-3px); }
.plan-card:has(input:checked) { transform: translateY(-6px); border-color: #FF5A3C; box-shadow: 0 22px 40px -20px rgba(255, 90, 60, .45), 0 0 0 2px rgba(255, 90, 60, .25); }
.plan-tier:has(input:checked) { animation: planFloat 5s ease-in-out infinite; }
@keyframes planFloat { 0%, 100% { transform: translateY(-6px); } 50% { transform: translateY(-10px); } }
.bill-toggle span { transition: background .3s ease, color .3s ease, box-shadow .3s ease; }
.pt-price.pr-swap, .pc-price.pr-swap { animation: planRoll .45s cubic-bezier(.2, .8, .2, 1); }
@keyframes planRoll { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .plan-card, .plan-card:hover, .plan-card:has(input:checked), .plan-tier:has(input:checked) { animation: none; transform: none; transition: none; }
  .pt-price.pr-swap, .pc-price.pr-swap { animation: none; }
}

/* Post Creator (Posts tab, Nov 9, 2026; posts.js). */
.post-brand { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin: 4px 0 18px; }
.post-brand > div { flex: 1 1 260px; }
.post-brand .fine { margin: 2px 0 0; }
.post-color { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.post-color input { width: 46px; height: 34px; padding: 2px; border-radius: 8px; border: 1px solid var(--line); background: #fff; cursor: pointer; }
.seg-mini { display: flex; gap: 12px; border: 0; padding: 0; margin: 0; }
.seg-mini label { display: flex; gap: 6px; align-items: center; font-size: .9rem; }
.post-upsell { margin: 0 0 14px; }
.post-group { font: 700 1.05rem var(--display); color: var(--ink); margin: 18px 0 10px; }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.post-card { display: flex; flex-direction: column; gap: 8px; text-align: left; padding: 10px; border-radius: 14px; border: 1px solid var(--line); background: #fff; cursor: pointer; font: inherit; color: var(--body); transition: border-color .2s, box-shadow .2s, transform .2s; }
.post-card:hover { border-color: var(--brand-line, #cfd8e3); box-shadow: 0 14px 30px -18px rgba(11, 27, 43, .35); transform: translateY(-2px); }
.post-thumb { width: 100%; height: auto; aspect-ratio: 1; border-radius: 9px; background: #0D1D30; display: block; }
.post-card-text { display: grid; gap: 2px; padding: 0 2px; }
.post-card-text b { font: 700 .98rem/1.25 var(--display); color: var(--ink); }
.post-card-text small { color: var(--muted); font-size: .82rem; }
.post-card-cta { margin-top: auto; padding: 0 2px 2px; font-weight: 700; font-size: .85rem; color: var(--brand, #1B3554); }
.post-dlg { width: min(1040px, calc(100vw - 24px)); max-height: calc(100vh - 24px); padding: 0; border: 0; border-radius: 18px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .5); }
.post-dlg::backdrop { background: rgba(9, 18, 30, .6); }
.post-dlg-in { display: flex; flex-direction: column; max-height: calc(100vh - 24px); }
.post-dlg-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.post-dlg-head h2 { margin: 0; font-size: 1.2rem; }
.post-dlg-body { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px; padding: 18px 20px 20px; overflow: auto; }
.post-stage { display: grid; place-items: center; background: #EEF1F5; border-radius: 14px; padding: 14px; min-height: 300px; }
#post-canvas { max-width: 100%; max-height: 66vh; width: auto; height: auto; border-radius: 8px; box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .45); }
.post-side { display: grid; gap: 12px; align-content: start; }
.post-side label { display: grid; gap: 6px; font-weight: 600; }
.post-side input, .post-side textarea { font: inherit; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); }
.post-side .seg { flex-wrap: wrap; }
@media (max-width: 760px) { .post-dlg-body { grid-template-columns: 1fr; } }

.post-ai-pic { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: #FAFBFC; }
.post-ai-pic summary { cursor: pointer; font-weight: 700; color: var(--ink); }
.post-ai-pic[open] { display: grid; gap: 10px; }
.post-ai-pic .fine { margin: 6px 0 0; }
.post-side label .opt { font-weight: 400; color: var(--muted); font-size: .88rem; }

/* Admin navigation: grouped buttons, all visible (Nov 9, 2026). */
.adm-nav { display: grid; grid-template-columns: repeat(4, minmax(0, auto)); gap: 12px 28px; justify-content: start; padding: 16px 18px; margin: 4px 0 22px; border-radius: 18px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.adm-group { display: grid; gap: 8px; align-content: start; }
.adm-group-label { font: 700 .7rem/1 'JetBrains Mono', ui-monospace, monospace; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.adm-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.adm-chips button { border: 1px solid var(--line); background: var(--soft, #F4F6F9); color: var(--ink); font: 600 .88rem var(--sans); padding: 7px 13px; border-radius: 999px; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.adm-chips button:hover { border-color: #B9C4D2; background: #fff; }
.adm-chips button[aria-current="page"] { background: #1B3554; border-color: #1B3554; color: #fff; box-shadow: 0 6px 16px -8px rgba(13, 29, 48, .6); }
.adm-chips button:focus-visible { outline: 2px solid #FF5A3C; outline-offset: 2px; }
@media (max-width: 1100px) { .adm-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .adm-nav { grid-template-columns: 1fr; } }

/* Admin: room between cards and between the parts of a card (Nov 9, 2026). */
#admin-section { display: grid; gap: 22px; }
#admin-section > * { margin-top: 0; margin-bottom: 0; }
#admin-section .card > h2 { margin-bottom: 6px; }
#admin-section .card > h3 { margin: 26px 0 10px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 1.05rem; }
#admin-section .card > h2 + h3 { margin-top: 14px; padding-top: 0; border-top: 0; }
#admin-section .card > .fine, #admin-section .card > .sub { margin-top: 10px; }

/* Done For You is offered on request, not listed (Tyler, Nov 10, 2026). Admins and businesses already on it still see the row. */
.plan-opt.plan-retired { display: none !important; }
.dfy-ask { margin: 6px 2px 2px; }

/* Compare Plans toggle (Tyler, Nov 10, 2026): one card, two tables. */
.cmp-tabs { display: flex; flex-wrap: wrap; width: max-content; max-width: 100%; gap: 4px; padding: 4px; margin: 12px 0 14px; border-radius: 999px; background: var(--soft, #F5F7FA); border: 1px solid var(--line, #E3E8EF); }
.cmp-tab { appearance: none; border: 0; background: none; cursor: pointer; padding: 9px 18px; border-radius: 999px; font: 700 .95rem var(--display, inherit); color: var(--muted, #5E6A78); transition: background .25s ease, color .25s ease; }
.cmp-tab.on { background: var(--ink, #0D1D30); color: #fff; }
.cmp-tab:focus-visible { outline: 2px solid var(--pulse, #FF5A3C); outline-offset: 2px; }
.cmp-tabs-sm { margin: 8px 0 4px; }
.cmp-tabs-sm .cmp-tab { padding: 7px 14px; font-size: 14px; }
.cmp-pane[hidden] { display: none; }
.cmp-pane > p { margin: 0 0 10px; color: var(--muted, #5E6A78); }
@media (max-width: 560px) { .cmp-tabs { border-radius: 18px; } .cmp-tab { padding: 8px 12px; font-size: .86rem; } }

/* "For Businesses" beside the logo on the business pages (Tyler, Nov 10, 2026). */
.logo .logo-for { font: 600 .82rem/1 var(--display, inherit); font-style: normal; letter-spacing: 0; color: rgba(255, 255, 255, .72); margin-left: 4px; padding-left: 12px; border-left: 1px solid rgba(255, 255, 255, .28); white-space: nowrap; }
/* Phones: keep it while signed out (the header is empty then); hide it once the account buttons show. */
@media (max-width: 480px) { .logo .logo-for { font-size: .74rem; margin-left: 2px; padding-left: 9px; } .nav-in:has(#sign-out:not([hidden])) .logo-for, .nav-in:has(#who:not([hidden])) .logo-for { display: none; } }
@media (max-width: 350px) { .logo .logo-for { display: none; } }

/* Admin → Numbers growth chart (Nov 11, 2026). */
.gr-box { position: relative; margin-top: 12px; }
.gr-knob { position: absolute; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--pulse); transform: translate(-50%, -50%); pointer-events: none; }
.gr-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.gr-chips { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.gr-chips i { width: 10px; }
.gr-chip { font: 700 .82rem var(--sans, inherit); padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--body); cursor: pointer; }
.gr-chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.gr-when { margin: 10px 0 8px; font-weight: 800; color: var(--ink); }
.gr-svg { display: block; width: 100%; height: 260px; border: 1px solid var(--line); border-radius: 12px; background: #F7F8FA; cursor: crosshair; touch-action: none; }
.gr-grid { stroke: var(--line); stroke-width: 1; }
.gr-line { fill: none; stroke: var(--pulse); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.gr-cursor { stroke: var(--ink); stroke-opacity: .35; stroke-width: 1; }
.gr-axis { position: relative; height: 18px; margin-top: 6px; color: var(--muted); }
.gr-axis small { position: absolute; top: 0; white-space: nowrap; }
.gr-hint { margin: 4px 0 0; text-align: center; font-size: .8rem; color: var(--muted); }
.gr-dates { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 10px; }
.gr-dates label { display: flex; align-items: center; gap: 8px; font: 700 .82rem var(--sans, inherit); color: var(--body); }
.gr-dates input { font: inherit; padding: 6px 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); }

/* Admin → To Approve (Nov 15, 2026) */
.apv-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.apv-head h2 { margin: 0; }
.apv-item { align-items: center; }
/* Publish and Delete side by side, same size (they stacked unevenly, Nov 16). */
.apv-item .btn-row { display: flex; flex-wrap: nowrap; gap: 8px; flex: none; }
.apv-item .btn-row .btn { min-width: 84px; justify-content: center; margin: 0; }
.apv-item > div:first-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.apv-same { color: #B4441F; font-size: .86rem; }
@media (max-width: 560px) { .apv-item { flex-direction: column; align-items: stretch; } .apv-item .btn-row { justify-content: flex-start; } }

/* Showing the Game: Leagues We Show */
.gd-leagues { display: grid; gap: 8px; margin: 10px 0 14px; }
.gd-leagues .chips { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.gd-leagues .chip-check { margin: 0; }


/* ===== Dark mode for the signed-in portal (Nov 27, 2026) =====
   Generated from the light rules above that hard-code light colors: white cards become --card, white
   inputs --bg, the warm, green and blue tints their dark versions. Printables (QR kit, posters, the
   monthly report, sheets) stay white for paper. Tokens come from styles.css's dark block. */
@media screen and (prefers-color-scheme: dark) {
  html[data-theme-auto] .panel.narrow { background: var(--card); }
  html[data-theme-auto] .form input:not([type=checkbox]), html[data-theme-auto] .form select, html[data-theme-auto] .form textarea { background: var(--bg); }
  html[data-theme-auto] .day span { background: var(--card); }
  html[data-theme-auto] .biz-switch select { background: var(--bg); }
  html[data-theme-auto] .stat { background: var(--card); }
  html[data-theme-auto] .item { background: var(--card); }
  html[data-theme-auto] .tag-series { background: #11301F; }
  html[data-theme-auto] .tag-hot { background: #24140F; }
  html[data-theme-auto] .pinbox.ok { background: #11301F; }
  html[data-theme-auto] .pinbox.bad { background: #24140F; }
  html[data-theme-auto] .locked-over { background: linear-gradient(180deg, rgba(11, 22, 34, .4), rgba(11, 22, 34, .92) 45%); }
  html[data-theme-auto] .quota { background: #11301F; }
  html[data-theme-auto] .quota.full { background: #24140F; }
  html[data-theme-auto] .push-preview { background: linear-gradient(135deg, var(--card-2), var(--card-2)); }
  html[data-theme-auto] .tonight-card select { background: var(--bg); }
  html[data-theme-auto] .form .plan-opt { background: var(--card); }
  html[data-theme-auto] .tabs-wrap::before { background: linear-gradient(90deg, var(--soft) 20%, rgba(18, 33, 51, 0)); }
  html[data-theme-auto] .tabs-wrap::after { background: linear-gradient(270deg, var(--soft) 20%, rgba(18, 33, 51, 0)); }
  html[data-theme-auto] dialog.drawer { background: var(--card); }
  html[data-theme-auto] .drawer-x { background: var(--card); }
  html[data-theme-auto] .drawer-foot { background: var(--card); }
  html[data-theme-auto] .import-box .import-row input { background: var(--bg); }
  html[data-theme-auto] .psec { background: var(--card); }
  html[data-theme-auto] .psec-dirty { background: #24140F; }
  html[data-theme-auto] .founders-badge { background: #24140F; border: 1px solid #5A2A1F; }
  html[data-theme-auto] .founders-badge.full { background: var(--card); }
  html[data-theme-auto] .founder-box { background: linear-gradient(135deg, #24140F, #24140F); border: 1px solid #5A2A1F; }
  html[data-theme-auto] .auth-card { background: var(--card); }
  html[data-theme-auto] .auth-link-err { background: #24140F; }
  html[data-theme-auto] .wiz-restored { background: #11301F; }
  html[data-theme-auto] .vvp-note { background: #11301F; }
  html[data-theme-auto] .fill-box { background: linear-gradient(135deg, var(--brand-soft), var(--card-2)); }
  html[data-theme-auto] .fill-box .import-row input { background: var(--bg); }
  html[data-theme-auto] .form .just-filled, html[data-theme-auto] .hours-rows.just-filled { background-color: #11301F !important; }
  html[data-theme-auto] .feat-suggest { background: #24140F; }
  html[data-theme-auto] .hp { background: var(--card); }
  html[data-theme-auto] .pv-card { background: var(--card); }
  html[data-theme-auto] .pv-open.is-open { background: #11301F; }
  html[data-theme-auto] .pv-chips span { background: var(--card); }
  html[data-theme-auto] .app-flash:not(:empty) { background: #11301F; }
  html[data-theme-auto] .app-flash.err:not(:empty) { background: #24140F; }
  html[data-theme-auto] .cover-gate { background: #24140F; border: 1px solid #5A2A1F; }
  html[data-theme-auto] .cl-list button { background: var(--card); }
  html[data-theme-auto] .tag-invite { background: #24140F; }
  html[data-theme-auto] .agree-doc { background: var(--soft); }
  html[data-theme-auto] .agree-form input.ro { background: var(--soft); }
  html[data-theme-auto] .agree-note { background: var(--brand-soft); }
  html[data-theme-auto] .form .founder-pick { border-color: #5A2A1F; background: #24140F; }
  html[data-theme-auto] .founder-pick:has(input:checked) { background: #24140F; }
  @media (max-width: 900px) { html[data-theme-auto] body.preview-open .biz-preview { background: var(--soft); } }
  html[data-theme-auto] .awaiting-note { background: #24140F; border: 1.5px solid #5A2A1F; }
  html[data-theme-auto] .feat-day { background: var(--card); }
  html[data-theme-auto] .feat-town select { background: var(--bg); }
  html[data-theme-auto] .feat-cell { background: var(--card); }
  html[data-theme-auto] .feat-cell.booked .feat-dot { background: var(--card); }
  html[data-theme-auto] .ev-view { background: var(--card); }
  html[data-theme-auto] .ev-cal { background: var(--card); }
  html[data-theme-auto] .game-day { background: var(--card); }
  html[data-theme-auto] .app-strip { border: 1px solid var(--line); background: var(--card); }
  html[data-theme-auto] .date-range input { background: var(--bg); }
  html[data-theme-auto] .org-card { background: var(--card); }
  html[data-theme-auto] .m-tile { background: var(--card); }
  html[data-theme-auto] .feat-partner { background: var(--card); }
  html[data-theme-auto] .inv-panel { background: var(--card); }
  html[data-theme-auto] .gv-setup input:not([type=file]), html[data-theme-auto] .gv-setup textarea, html[data-theme-auto] .gv-setup select { background: var(--bg); }
  html[data-theme-auto] .sp-form select { background: var(--bg); }
  html[data-theme-auto] .loc-count { background: var(--card); }
  html[data-theme-auto] .rw-pin { border: 1px solid var(--line); }
  html[data-theme-auto] .form .mode-pick .check { border: 1px solid var(--line); }
  @media (max-width: 760px) { html[data-theme-auto] .tabs-wrap .tabs button { background: var(--card); } }
  @media (max-width: 760px) { html[data-theme-auto] .tabs-wrap .tabs .tab-admin[aria-selected="true"]::before { background: var(--bg); } }
  html[data-theme-auto] .pv-closed { background: #24140F; }
  html[data-theme-auto] .bill-toggle { background: var(--soft); border: 1px solid var(--line); }
  html[data-theme-auto] .bill-toggle input:checked + span { background: var(--bg); }
  html[data-theme-auto] .post-color input { background: var(--bg); }
  html[data-theme-auto] .post-card { background: var(--card); }
  html[data-theme-auto] .post-stage { background: var(--card-2); }
  html[data-theme-auto] .post-ai-pic { background: var(--card-2); }
  html[data-theme-auto] .adm-nav { background: var(--card); }
  html[data-theme-auto] .adm-chips button { background: var(--soft); }
  html[data-theme-auto] .adm-chips button:hover { background: var(--card); }
  html[data-theme-auto] .cmp-tabs { background: var(--soft); border: 1px solid var(--line); }
  html[data-theme-auto] .gr-chip { background: var(--card); }
  html[data-theme-auto] .gr-svg { background: var(--card-2); }
  html[data-theme-auto] .gr-dates input { background: var(--bg); }

  /* Printables stay paper-white: put the light tokens back inside them. */
  html[data-theme-auto] :is(.kit-sheet, .poster-sheet, .tent-sheet, .report-sheet, .sheet-preview, .checkin-qr) {
    color-scheme: light; color: #0D1D30;
    --brand: #1F3A5F; --brand-d: #16304F; --brand-2: #2C5183; --brand-soft: #EAF0F7; --brand-line: #C9D7E8; --navy: #0D1D30;
    --pulse-d: #D9432A; --ink: #0D1D30; --body: #3F4B58; --muted: #5E6A78; --bg: #FFFFFF; --soft: #F5F7FA; --line: #E3E8EF;
    --card: #FFFFFF; --card-2: #F5F7FA;
  }
  /* Text colors picked for light tints, lightened for the dark ones. */
  html[data-theme-auto] .vvp-note { color: #7FD9AE; }
  html[data-theme-auto] .feat-suggest, html[data-theme-auto] .tag-invite { color: #F2C66D; background: #2A2110; }
  html[data-theme-auto] .feat-cell.full small, html[data-theme-auto] .field-err { color: #FF8A7A; }
  html[data-theme-auto] .series-note { color: var(--brand-d); }
}
