/* Producers panel, on top of ui.css: a side menu grouped by task on
 * computers, a top bar and a bottom tab bar on phones, and the panel's
 * cards, tables and forms. */

body:has(.ad-shell) { padding-bottom: 0; }
.ad-shell { display: grid; grid-template-columns: 264px minmax(0, 1fr); min-height: 100vh; }
.ad-body { min-width: 0; }

/* ---------- Side menu ---------- */

.ad-side { position: sticky; top: 0; display: flex; flex-direction: column; gap: 14px; height: 100vh; padding: 20px 14px; overflow-y: auto; background: var(--surface); border-right: 1px solid var(--line); }
.ad-side__logo { padding: 0 8px; font-size: 18px; }
.ad-badge { display: inline-flex; padding: 3px 9px; border-radius: 999px; background: var(--brand-50); color: var(--brand-700); font-size: 11px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.ad-switch { display: flex; align-items: center; gap: 8px; min-height: 44px; margin: 0; padding: 0 10px 0 12px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--surface-2); font-weight: 700; }
.ad-switch .i { width: 18px; height: 18px; color: var(--brand); }
.ad-switch select { flex: 1; min-width: 0; min-height: 40px; border: 0; background: transparent; color: var(--ink); font: 700 14px var(--font); cursor: pointer; }
.ad-switch span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ad-menu { display: grid; gap: 2px; }
.ad-menu__group { margin: 12px 12px 4px; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.ad-menu__group:first-child { margin-top: 0; }
.ad-menu a { display: flex; align-items: center; gap: 12px; min-height: 42px; padding: 0 12px; border-radius: 12px; color: var(--ink-2); font-weight: 600; text-decoration: none; }
.ad-menu a .i { color: var(--muted); }
.ad-menu a:hover { background: var(--sunken); color: var(--ink); }
.ad-menu a[aria-current="page"] { background: var(--brand-50); color: var(--brand-700); }
.ad-menu a[aria-current="page"] .i { color: var(--brand); }
.ad-me { display: flex; align-items: center; gap: 10px; margin-top: auto; padding: 10px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.ad-me__avatar { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 auto; border-radius: 999px; background: var(--brand); color: #fff; font-weight: 800; }
.ad-me__who { display: grid; flex: 1; min-width: 0; line-height: 1.25; }
.ad-me__who strong, .ad-me__who small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ad-me__who small { color: var(--muted); }
.ad-me form { margin: 0; }
.ad-me__out { display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; }
.ad-me__out:hover { background: var(--bad-50); color: var(--bad); }

/* ---------- Phones: top bar and bottom tab bar ---------- */

.ad-top, .ad-tabbar { display: none; }
@media (max-width: 960px) {
	.ad-shell { grid-template-columns: minmax(0, 1fr); }
	.ad-side { display: none; }
	body:has(.ad-shell) { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
	.ad-top { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: rgba(248, 244, 238, 0.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
	.ad-top .ad-switch { flex: 1; min-width: 0; background: var(--surface); }
	.ad-tabbar {
		position: fixed; inset: auto 0 0; z-index: 50; display: grid; grid-template-columns: repeat(5, 1fr);
		padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -6px 24px rgba(28, 25, 22, 0.06);
	}
	.ad-tabbar > a, .ad-more > summary { display: grid; justify-items: center; gap: 3px; padding: 6px 2px; border-radius: 12px; color: var(--muted); font-size: 11.5px; font-weight: 700; text-decoration: none; cursor: pointer; list-style: none; }
	.ad-more > summary::-webkit-details-marker { display: none; }
	.ad-tabbar .i { width: 24px; height: 24px; }
	.ad-tabbar > a[aria-current="page"], .ad-more[open] > summary { color: var(--ink); }
	.ad-tabbar > a[aria-current="page"] .i, .ad-more[open] > summary .i { color: var(--brand); }
	.ad-more__sheet { position: fixed; left: 10px; right: 10px; bottom: calc(76px + env(safe-area-inset-bottom)); display: grid; gap: 12px; max-height: 70vh; padding: 14px; overflow: auto; border-radius: var(--radius-l); background: var(--surface); box-shadow: 0 0 0 100vmax rgba(28, 25, 22, 0.35), var(--shadow-l); }
}

/* ---------- Page ---------- */

.ad-page { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; max-width: 1240px; margin: 0 auto; padding: clamp(18px, 3vw, 32px) clamp(16px, 3vw, 36px) 56px; }
.ad-page > h1, .ad-head h1 { font-size: clamp(24px, 3vw, 30px); font-weight: 800; letter-spacing: -0.02em; }
.ad-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.ad-head > div:first-child { min-width: 0; }
.ad-head p { color: var(--muted); }
.ad-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.ad-muted { margin: 0; color: var(--muted); font-size: 14px; }
.ad-muted a { font-weight: 600; }
.ad-ok, .ad-error { display: flex; align-items: center; gap: 10px; margin: 0; padding: 12px 16px; border-radius: 14px; font-weight: 600; }
.ad-ok { background: var(--ok-50); color: var(--ok); }
.ad-alert { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 14px; background: var(--warn-50); color: var(--warn); font-weight: 700; text-decoration: none; }
.ad-alert span { flex: 1; }
.ad-error { background: var(--bad-50); color: var(--bad); }
.ad-page h1, .ad-page p { overflow-wrap: anywhere; }
/* In tables, words break only when they must; numbers and amounts never. */
.ad-page td { overflow-wrap: break-word; }
.ad-table td.num, .ad-table td > a:only-child, .ad-pill { white-space: nowrap; }

/* Cards */
.ad-card { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 20px; border-radius: var(--radius-l); background: var(--surface); box-shadow: var(--shadow); }
.ad-card h2 { display: flex; align-items: center; gap: 10px; font-size: 17px; }
.ad-card h2 .i { color: var(--brand); }
.ad-card input:not([type=checkbox]):not([type=radio]), .ad-card select, .ad-card textarea {
	max-width: 100%; min-height: 46px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); font: 15px var(--font);
}
.ad-card textarea { padding: 10px 14px; resize: vertical; }
/* Safari ignores the height of native selects and date fields: draw them
   ourselves so every field in a row has the same height. */
.ad-card select {
	-webkit-appearance: none; appearance: none; height: 46px; padding-right: 40px; line-height: 1.2; cursor: pointer;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23ec6a2c' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 14px center; background-size: 16px;
}
.ad-card select[multiple] { height: auto; padding-right: 14px; background-image: none; }
.ad-card input[type=date], .ad-card input[type=datetime-local], .ad-card input[type=time] { -webkit-appearance: none; appearance: none; height: 46px; line-height: 46px; }
.ad-when { display: grid; grid-template-columns: minmax(0, 1fr) minmax(96px, 0.6fr); gap: 8px; }
.ad-when > * { min-width: 0; width: 100%; }
.ad-card input:focus, .ad-card select:focus, .ad-card textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-50); }
.ad-card .vt-mk-btn, .ad-card .ui-btn { justify-self: start; }
.ad-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr)); gap: 18px; align-items: start; }
.ad-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ad-inline > input, .ad-inline > select { flex: 1 1 180px; }
.ad-qr svg { width: 200px; height: 200px; }
.ad-key { padding: 4px 10px; border-radius: 8px; background: var(--brand-50); font-size: 15px; letter-spacing: 0.06em; overflow-wrap: anywhere; }
.ad-help { color: var(--muted); font-size: 13px; }
.ad-link-button { padding: 0; border: 0; background: none; color: var(--brand-600); font: 600 14px var(--font); text-decoration: underline; cursor: pointer; }
.ad-danger { border-color: #f1c7c7 !important; color: var(--bad) !important; }
.ad-danger:hover { background: var(--bad-50) !important; }
.ad-empty { display: grid; justify-items: center; gap: 8px; padding: 32px 16px; color: var(--muted); text-align: center; }
.ad-empty .i { width: 34px; height: 34px; color: var(--brand); }
.ad-empty strong { color: var(--ink); }

/* Figures */
.ad-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr)); gap: 14px; }
.ad-stat { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 4px 14px; padding: 16px; border-radius: var(--radius-l); background: var(--surface); box-shadow: var(--shadow); }
.ad-stat__icon { grid-row: span 2; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--brand-50); color: var(--brand); }
.ad-stat span { color: var(--muted); font-size: 13px; }
.ad-stat strong { font-size: 22px; font-weight: 800; letter-spacing: -0.01em; }
.ad-stat--ok .ad-stat__icon { background: var(--ok-50); color: var(--ok); }
.ad-stat--warn .ad-stat__icon { background: var(--warn-50); color: var(--warn); }
.ad-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ad-mini { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow); color: var(--ink-2); font-size: 13px; }
.ad-mini strong { color: var(--ink); }
.ad-mini .i { width: 16px; height: 16px; color: var(--brand); }

/* Quick actions */
.ad-quick { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr)); gap: 12px; }
.ad-quick a { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); color: var(--ink); font-weight: 700; text-decoration: none; }
.ad-quick a:hover { color: var(--ink); box-shadow: var(--shadow-l); }
.ad-quick a .i { display: block; width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--brand); color: #fff; }
.ad-quick a:nth-child(2) .i { background: var(--ink); }
.ad-quick a:nth-child(3) .i { background: var(--brand-50); color: var(--brand-700); }
.ad-quick a:nth-child(4) .i { background: var(--sunken); color: var(--ink); }

/* Event cards (dashboard and list) */
.ad-events { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.ad-ev { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 12px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--line); }
.ad-card .ad-ev { background: var(--surface-2); }
.ad-ev__date { display: grid; place-items: center; width: 58px; height: 62px; border-radius: 14px; background: var(--brand-50); color: var(--brand-700); line-height: 1.05; text-align: center; }
.ad-ev__date strong { font-size: 22px; }
.ad-ev__date small { font-size: 12px; font-weight: 700; text-transform: uppercase; }
.ad-ev__body { display: grid; gap: 4px; min-width: 0; }
.ad-ev__body a { color: var(--ink); font-weight: 700; text-decoration: none; }
.ad-ev__body a:hover { color: var(--brand-700); }
.ad-ev__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; color: var(--muted); font-size: 13px; }
.ad-ev__meta span { display: inline-flex; align-items: center; gap: 5px; }
.ad-ev__meta .i { width: 15px; height: 15px; color: var(--brand); }
.ad-ev__actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
@media (max-width: 600px) {
	.ad-ev { grid-template-columns: 58px minmax(0, 1fr); }
	.ad-ev__actions { grid-column: 1 / -1; justify-content: stretch; }
	.ad-ev__actions .ui-btn { flex: 1; }
}

/* Status pills */
.ad-pill { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; background: var(--sunken); color: var(--ink-2); font-size: 12px; font-weight: 700; white-space: nowrap; }
.ad-pill--paid, .ad-pill--available, .ad-pill--on_sale, .ad-pill--published, .ad-pill--active { background: var(--ok-50); color: var(--ok); }
.ad-pill--pending, .ad-pill--review, .ad-pill--blocked, .ad-pill--paused, .ad-pill--draft { background: var(--warn-50); color: var(--warn); }
.ad-pill--cancelled, .ad-pill--refunded, .ad-pill--taken, .ad-pill--sold_out, .ad-pill--closed { background: var(--bad-50); color: var(--bad); }
.ad-pill--hidden, .ad-pill--archived { background: var(--sunken); color: var(--muted); }

/* Tables */
.ad-scroll { overflow-x: auto; margin: 0 -4px; padding: 0 4px; }
.ad-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
.ad-table th, .ad-table td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.ad-table th { background: var(--surface-2); color: var(--muted); font-size: 11.5px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.ad-table th:first-child { border-top-left-radius: 12px; }
.ad-table th:last-child { border-top-right-radius: 12px; }
.ad-table tbody tr:hover td { background: var(--surface-2); }
.ad-table tbody tr:last-child td { border-bottom: 0; }
.ad-table td.num, .ad-table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.ad-table a { font-weight: 700; text-decoration: none; }
.ad-table form { margin: 0; }
.ad-table form button, .ad-table .ad-inline button { min-height: 36px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font: 600 13px var(--font); cursor: pointer; }
.ad-table form button:hover { border-color: var(--brand-100); color: var(--brand-700); }
.ad-table select { height: 38px; min-height: 38px !important; }

/* Search and pages (orders) */
.ad-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ad-filters input { flex: 1 1 220px; }
.ad-pages { display: flex; justify-content: space-between; gap: 10px; margin-top: 8px; }

/* ---------- Forms (events and offers) ---------- */

.ad-form { grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 16px 18px; }
.ad-form-section { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 16px 18px; padding-top: 18px; border-top: 1.5px dashed var(--line); }
.ad-form-section:first-of-type { padding-top: 0; border-top: 0; }
.ad-form-section > h2 { grid-column: 1 / -1; }
.ad-field { display: grid; gap: 6px; align-content: start; }
.ad-field--wide { grid-column: 1 / -1; }
.ad-field label, .ad-field legend { font-size: 14px; font-weight: 700; }
.ad-field--check label { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; }
.ad-field--check input { width: 20px; height: 20px; accent-color: var(--brand); }
.ad-field input[type=color] { width: 72px; padding: 4px; }
.ad-field-error { margin: 0; color: var(--bad); font-size: 13px; font-weight: 700; }
.ad-places { margin: 0; padding: 14px; border: 1.5px solid var(--line); border-radius: 14px; }
.ad-places__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px 14px; max-height: 320px; overflow: auto; }
.ad-places__grid label { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.ad-places__grid input { accent-color: var(--brand); }
.ad-actions .ui-btn, .ad-actions .vt-mk-btn { min-height: 48px; }

/* ---------- Sign-in pages ---------- */

.ad-auth { display: grid; place-items: center; min-height: 100vh; padding: 24px 16px; background: radial-gradient(circle at 20% 0, var(--brand-50), transparent 45%), var(--bg); }
.ad-auth__card { width: min(420px, 100%); gap: 14px; padding: 28px; }
.ad-auth__card h1 { font-size: 24px; font-weight: 800; }
.ad-auth__card label { font-size: 14px; font-weight: 700; }
.ad-auth__card .vt-mk-btn, .ad-auth__card .ui-btn { justify-self: stretch; min-height: 50px; }
.ad-auth__form { display: grid; gap: 10px; }

/* ---------- Team, emails, door ---------- */

.ad-invite-link { border: 2px solid var(--brand); }
.ad-invite-link .ad-key { letter-spacing: 0; }
.ad-email-text { margin: 0; padding: 14px; border-radius: 12px; background: var(--surface-2); font: 13px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.ad-door__count { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 8px 14px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow); font-size: 17px; font-weight: 800; }
.ad-door__code { flex: 1 1 260px; min-height: 52px !important; font-size: 17px !important; }
.ad-door__result { padding: 20px 22px; border-radius: var(--radius-l); background: var(--bad); color: #fff; }
.ad-door__result h2 { margin: 0 0 6px; font-size: 26px; }
.ad-door__result p { margin: 4px 0; }
.ad-door__result--ok { background: var(--ok); }
.ad-door__result--not_paid, .ad-door__result--disputed { background: var(--warn); }
.ad-door__result .ad-link-button { margin-top: 8px; color: #fff; }
.ad-door__camera { display: grid; gap: 10px; justify-items: start; }
.ad-door__camera video { width: min(100%, 420px); aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); background: #111; }

/* ---------- Phones ---------- */

@media (max-width: 700px) {
	.ad-card { padding: 16px; }
	.ad-card .vt-mk-btn, .ad-card .ui-btn { justify-self: stretch; }
	.ad-head > .ad-actions { flex: 1 1 100%; }
	.ad-head .vt-mk-btn, .ad-head .ui-btn { flex: 1 1 auto; }

	/* Tables become one card per row, "label: value"; site.js copies the
	   column names into data-label. Without it the table scrolls. */
	.ad-table.ad-table--cards thead { display: none; }
	.ad-table.ad-table--cards, .ad-table.ad-table--cards tbody, .ad-table.ad-table--cards tr, .ad-table.ad-table--cards td { display: block; width: 100%; }
	.ad-table.ad-table--cards tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; margin-bottom: 10px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
	.ad-table.ad-table--cards tbody tr:hover td { background: none; }
	/* Phones: the first cell is the card's title, the rest go in two
	   columns with the label above the value, and actions take the width. */
	.ad-table.ad-table--cards td { display: block; min-width: 0; padding: 6px 0; border-bottom: 0; text-align: left; overflow-wrap: anywhere; }
	.ad-table.ad-table--cards td, .ad-table.ad-table--cards td a { white-space: normal; }
	.ad-table.ad-table--cards td:first-child { grid-column: 1 / -1; margin-bottom: 4px; padding-bottom: 8px; border-bottom: 1px dashed var(--line); font-size: 16px; font-weight: 700; }
	.ad-table.ad-table--cards td:first-child::before { content: none; }
	.ad-table.ad-table--cards td:has(form, button, .ui-btn, select, input:not([type=checkbox])) { grid-column: 1 / -1; }
	.ad-table.ad-table--cards td::before { content: attr(data-label); display: block; margin-bottom: 2px; color: var(--muted); font-size: 11px; font-weight: 800; line-height: 1.3; letter-spacing: 0.05em; text-transform: uppercase; }
	.ad-table.ad-table--cards td:not([data-label])::before, .ad-table.ad-table--cards td[data-label=""]::before { content: none; }
	.ad-table.ad-table--cards td:empty { display: none; }
	.ad-table.ad-table--cards td form { display: flex; flex-wrap: wrap; gap: 8px; }
	.ad-table.ad-table--cards td form button, .ad-table.ad-table--cards td > .ui-btn { min-height: 44px; }
	.ad-table.ad-table--cards td input:not([type=checkbox]) { width: 100%; }
}
@media (max-width: 560px) {
	.ad-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
	.ad-stat { grid-template-columns: minmax(0, 1fr); padding: 14px; }
	.ad-stat__icon { grid-row: auto; width: 36px; height: 36px; border-radius: 11px; }
	.ad-stat__icon .i { width: 18px; height: 18px; }
	.ad-stat strong { font-size: 18px; }
	.ad-quick { grid-template-columns: 1fr 1fr; }
	.ad-quick a { flex-direction: column; align-items: flex-start; gap: 8px; font-size: 14px; }
}
.ad-stat:not(:has(.ad-stat__icon)) { grid-template-columns: minmax(0, 1fr); }
.ad-more:not([open]) .ad-more__sheet { display: none; }
.ad-more__sheet { overflow-x: hidden; overflow-y: auto; }
/* Issue passes: the kind as big choices, quantities in the table. */
.ad-choice { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 10px; margin: 0; padding: 0; border: 0; }
.ad-choice label { display: flex; align-items: flex-start; gap: 10px; padding: 14px; border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer; font-weight: 500; }
.ad-choice label:has(input:checked) { border-color: var(--brand); background: var(--brand-50); }
.ad-choice label .i { color: var(--brand); margin-top: 2px; }
.ad-choice input { margin-top: 4px; accent-color: var(--brand); }
.ad-choice span { display: grid; gap: 2px; }
.ad-choice small { color: var(--muted); }
.ad-qty { width: 90px !important; min-height: 40px !important; text-align: right; }
/* Sales chart */
.ad-chart { width: 100%; height: auto; max-height: 240px; }
.ad-chart__bar { fill: var(--brand); }
.ad-chart g:hover .ad-chart__bar { fill: var(--brand-700); }
.ad-chart__axis { stroke: var(--line); stroke-width: 2; }
.ad-chart__label { fill: var(--muted); font-size: 10px; }

/* ---------- Venues ---------- */
.ad-venues { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.ad-venue__head { display: flex; align-items: flex-start; gap: 12px; }
.ad-venue__head h2 { margin: 0; }
.ad-venue__head .ad-pill { margin-left: auto; }
.ad-venue__head p { display: flex; align-items: center; gap: 4px; margin: 4px 0 0; }
.ad-venue__icon { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 14px; background: var(--brand-50); color: var(--brand); }
.ad-venue__stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0; }
.ad-venue__stats div { padding: 10px; border-radius: 12px; background: var(--bg); }
.ad-venue__stats dt { color: var(--muted); font-size: 12px; }
.ad-venue__stats dd { margin: 2px 0 0; font-size: 18px; font-weight: 800; }

/* ---------- Map builder ---------- */
.ad-page--builder { max-width: none; }
.mb-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px; }
.mb-top h1 { margin: 0; }
.mb-saved { margin: 0; color: var(--muted); font-size: 13px; font-weight: 600; }
.mb-draft { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; background: #fff7ed; }
.mb { display: grid; grid-template-rows: auto minmax(0, 1fr); height: calc(100vh - 150px); min-height: 560px; overflow: hidden; border-radius: var(--radius-l); background: var(--surface); box-shadow: var(--shadow); }
.mb-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 8px 10px; border-bottom: 1.5px solid var(--line); }
.mb-bar__group { display: flex; align-items: center; gap: 2px; padding-right: 10px; border-right: 1.5px solid var(--line); }
.mb-btn { display: inline-flex; align-items: center; justify-content: center; gap: 2px; min-width: 36px; height: 36px; padding: 0 6px; border: 0; border-radius: 10px; background: transparent; color: var(--ink); cursor: pointer; list-style: none; }
.mb-btn::-webkit-details-marker { display: none; }
.mb-btn .i { width: 19px; height: 19px; }
.mb-btn:hover:not(:disabled) { background: var(--bg); }
.mb-btn:disabled { opacity: 0.35; cursor: default; }
.mb-btn[aria-pressed="true"] { background: var(--brand-50); color: var(--brand-600); }
.mb-btn--bad:not(:disabled) { color: var(--bad); }
.mb-zoom { min-width: 46px; font-size: 13px; font-weight: 700; text-align: center; }
.mb-top__save { display: flex; align-items: center; gap: 12px; }
.mb-save.is-dirty { box-shadow: 0 0 0 4px var(--brand-50); }
.mb-menu { position: relative; }
.mb-menu summary .i:last-child { width: 14px; height: 14px; }
.mb-menu__list { position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; display: grid; min-width: 230px; padding: 6px; border-radius: 14px; background: var(--surface); box-shadow: 0 12px 32px rgba(40, 25, 10, 0.18); }
.mb-menu__list button { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 0; border-radius: 10px; background: none; color: var(--ink); font: 600 14px var(--font); text-align: left; cursor: pointer; }
.mb-menu__list button:hover:not(:disabled) { background: var(--bg); }
.mb-menu__list button:disabled { opacity: 0.4; cursor: default; }
.mb-main { display: grid; grid-template-columns: 236px minmax(0, 1fr) 308px; min-height: 0; }
.mb-palette, .mb-side { min-height: 0; overflow-y: auto; }
.mb-palette { padding: 10px; border-right: 1.5px solid var(--line); }
.mb-search { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; padding: 0 12px; border: 1.5px solid var(--line); border-radius: 999px; color: var(--muted); }
.mb-search input { flex: 1; min-width: 0; height: 38px; border: 0; background: transparent; font: 14px var(--font); }
.mb-search input:focus { outline: none; }
.mb-group summary { padding: 8px 4px; font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); cursor: pointer; }
.mb-items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding-bottom: 6px; }
.mb-item { display: grid; justify-items: center; gap: 4px; padding: 8px 4px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); font: 600 11.5px/1.2 var(--font); text-align: center; cursor: grab; }
.mb-item:hover:not(:disabled) { border-color: var(--brand); background: var(--brand-50); }
.mb-item svg { width: 44px; height: 44px; }
.mb-stage { position: relative; min-width: 0; min-height: 0; overflow: hidden; background: #efe9e0; }
.mb-svg { display: block; width: 100%; height: 100%; touch-action: none; user-select: none; -webkit-user-select: none; cursor: default; }
.mb-svg:focus { outline: none; }
.is-hand .mb-svg, .is-panning .mb-svg { cursor: grab; }
.mb-paper { fill: #fff; filter: drop-shadow(0 4px 14px rgba(40, 25, 10, 0.12)); }
.mb-grid-minor { fill: none; stroke: #efe8de; stroke-width: 1; vector-effect: non-scaling-stroke; }
.mb-grid-major { fill: none; stroke: #e2d8ca; stroke-width: 1; vector-effect: non-scaling-stroke; }
.mb-el { cursor: move; }
.mb-el.is-locked { cursor: default; }
.mb-selbox { fill: none; stroke: var(--brand); stroke-dasharray: 6 4; pointer-events: none; }
.mb-handle { fill: #fff; stroke: var(--brand); cursor: nwse-resize; }
.mb-handle--rotate { cursor: grab; }
.mb-rotline { stroke: var(--brand); pointer-events: none; }
.mb-guide { stroke: #e0457b; stroke-width: 1; stroke-dasharray: 4 3; vector-effect: non-scaling-stroke; pointer-events: none; }
.mb-marquee { fill: rgba(236, 106, 44, 0.08); stroke: var(--brand); pointer-events: none; }
.mb.is-preview .mb-el { cursor: default; }
.mb-status { position: absolute; left: 12px; bottom: 10px; display: flex; gap: 12px; margin: 0; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.92); color: var(--ink-2); font-size: 12.5px; font-weight: 600; pointer-events: none; }
.mb-toast { position: absolute; z-index: 5; top: 12px; left: 50%; max-width: min(560px, 90%); margin: 0; padding: 10px 16px; border-radius: 14px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 600; transform: translateX(-50%); box-shadow: var(--shadow); }
.mb-toast.is-bad { background: var(--bad); }
.mb-side { border-left: 1.5px solid var(--line); }
.mb-tabs { position: sticky; top: 0; z-index: 2; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 8px; background: var(--surface); border-bottom: 1.5px solid var(--line); }
.mb-tabs button { display: flex; align-items: center; justify-content: center; gap: 6px; height: 36px; border: 0; border-radius: 10px; background: transparent; color: var(--ink-2); font: 700 13px var(--font); cursor: pointer; }
.mb-tabs button .i { width: 16px; height: 16px; }
.mb-tabs button[aria-selected="true"] { background: var(--brand-50); color: var(--brand-600); }
.mb-panel { display: grid; gap: 12px; padding: 14px; }
.mb-panel[hidden] { display: none; }
.mb-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.mb-head strong { font-size: 16px; }
.mb-tag { padding: 3px 10px; border-radius: 999px; background: #fff7ed; color: #b45309; font-size: 12px; font-weight: 700; }
.mb-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.mb-fields--geo { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mb-field { display: grid; gap: 4px; min-width: 0; font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
.mb-field--wide { grid-column: 1 / -1; }
.mb-field input:not([type=checkbox]):not([type=range]):not([type=color]), .mb-field select, .mb-add input {
	width: 100%; min-width: 0; height: 38px; padding: 0 10px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); font: 14px var(--font);
}
.mb-field select { -webkit-appearance: none; appearance: none; padding-right: 30px; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23ec6a2c' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center / 14px; }
.mb-field input:focus, .mb-field select:focus, .mb-add input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-50); }
.mb-field input[type=color], .mb-section input[type=color] { width: 44px; height: 34px; padding: 2px; border: 1.5px solid var(--line); border-radius: 8px; background: var(--surface); }
.mb-field input:disabled, .mb-field select:disabled { opacity: 0.55; }
.mb-check { display: flex; align-items: center; gap: 8px; grid-column: 1 / -1; font-size: 13.5px; font-weight: 600; }
.mb-check input { width: 18px; height: 18px; accent-color: var(--brand); }
.mb-sub { margin: 4px 0 0; font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.mb-hint { margin: 0; color: var(--muted); font-size: 13px; }
.mb-empty { display: grid; gap: 4px; padding: 14px; border-radius: 14px; background: var(--bg); }
.mb-empty p { margin: 0; color: var(--ink-2); font-size: 13.5px; }
.mb-tool { padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 14px; }
.mb-tool summary { font-size: 14px; font-weight: 700; cursor: pointer; }
.mb-tool[open] summary { margin-bottom: 10px; }
.mb-tool .ui-btn { margin-top: 10px; }
.mb-keys { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 0; font-size: 13px; }
.mb-keys dt { font-weight: 700; white-space: nowrap; }
.mb-keys dd { margin: 0; color: var(--ink-2); }
.mb-link { padding: 0; border: 0; background: none; color: var(--brand-600); font: 700 13px var(--font); cursor: pointer; justify-self: start; }
.mb-link:disabled { opacity: 0.4; cursor: default; }
.mb-link--bad { color: var(--bad); }
.mb-sections { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.mb-section { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 6px 10px; padding: 10px; border-radius: 14px; background: var(--bg); }
.mb-section input[type=text] { width: 100%; min-width: 0; height: 34px; padding: 0 10px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--surface); font: 600 14px var(--font); }
.mb-section small { grid-column: 2; color: var(--muted); font-size: 12px; }
.mb-section .mb-link { grid-column: 2; }
.mb-section .mb-link + .mb-link { grid-column: 2; }
.mb-add { display: flex; gap: 8px; }
.mb-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; }
.mb-stats div { padding: 10px; border-radius: 12px; background: var(--bg); }
.mb-stats dt { color: var(--muted); font-size: 12px; }
.mb-stats dd { margin: 2px 0 0; font-size: 18px; font-weight: 800; }
.mb-templates { display: flex; flex-wrap: wrap; gap: 6px; }
.mb-problems { padding: 12px; border-radius: 12px; background: #fdecec; color: #9b1c1c; font-size: 13.5px; }
.mb-problems ul, .mb-warn { margin: 6px 0 0; padding-left: 18px; }
.mb-warn { color: #92400e; font-size: 13px; }
@media (max-width: 1100px) {
	.mb-main { grid-template-columns: 200px minmax(0, 1fr); }
	.mb-side { grid-column: 1 / -1; max-height: 42vh; border-left: 0; border-top: 1.5px solid var(--line); }
	.mb { height: auto; grid-template-rows: auto auto; }
	.mb-stage { height: 62vh; }
}
@media (max-width: 720px) {
	.mb-main { grid-template-columns: minmax(0, 1fr); }
	.mb-palette { max-height: 220px; border-right: 0; border-bottom: 1.5px solid var(--line); }
	.mb-items { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); }
	.mb-bar__group { border-right: 0; padding-right: 0; }
}
.mb-file { justify-self: start; cursor: pointer; }

/* ---------- Phones: the door puts the camera first ---------- */
@media (max-width: 700px) {
	.ad-door [data-tk-camera] { order: -1; flex: 1 1 100%; justify-content: center; min-height: 56px; font-size: 17px; }
	.ad-door [data-tk-camera] .i { width: 22px; height: 22px; }
	.ad-door .ad-door__count { font-size: 15px; }
	.ad-door__result h2 { font-size: 26px; }
	.ad-door .ad-table--cards td form, .ad-door .ad-table--cards td form button { width: 100%; }
	.ad-door .ad-table--cards td form button { min-height: 50px; border: 0; border-radius: 999px; background: var(--brand-strong); color: #fff; font: 700 16px var(--font); }
	.ad-door .ad-table--cards td form input[name="action"][value="undo"] + * , .ad-door .ad-table--cards td form:has(input[value="undo"]) button { background: var(--bg); color: var(--ink); }
}

/* − and + around a number (box office quantities). */
.ad-stepper { display: inline-flex; align-items: center; gap: 6px; }
.ad-stepper .ad-qty { width: 64px !important; min-width: 0; text-align: center; -moz-appearance: textfield; }
.ad-stepper .ad-qty::-webkit-outer-spin-button, .ad-stepper .ad-qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ad-stepper__btn { display: grid; place-items: center; width: 44px; height: 44px; border: 1.5px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--ink); font: 700 22px/1 var(--font); cursor: pointer; }
.ad-stepper__btn:hover { border-color: var(--brand); color: var(--brand-600); }

/* ---------- Map builder on phones: full canvas and bottom sheets ---------- */
.mb-dock, .mb-sheet-head, .mb-touch-only { display: none; }
@media (pointer: coarse) {
	.mb-touch-only { display: inline-flex; }
}
@media (max-width: 720px) {
	body:has(.ad-page--builder) .ad-tabbar, body:has(.ad-page--builder) .ad-top { display: none; }
	.ad-page--builder { gap: 8px; padding: 8px 8px 0; }
	.ad-page--builder .ad-ok { font-size: 13px; }
	.mb-top { flex-wrap: nowrap; align-items: center; }
	.mb-top h1 { font-size: 19px; line-height: 1.2; }
	.mb-top .ad-muted { margin: 0; font-size: 13px; }
	.mb-top__save { gap: 8px; }
	.mb-top__save .mb-saved { display: none; }
	.mb-top__save .ui-btn { min-height: 42px; padding: 0 14px; font-size: 14px; }
	.mb { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; height: calc(100dvh - 92px); min-height: 380px; border-radius: 18px; }
	.mb-bar { flex-wrap: nowrap; gap: 2px; padding: 4px 6px; overflow-x: auto; scrollbar-width: none; }
	.mb-bar::-webkit-scrollbar { display: none; }
	.mb-bar__group { flex: none; padding-right: 4px; border-right: 0; }
	.mb-btn { min-width: 42px; height: 42px; }
	.mb-menu__list { position: fixed; top: auto; bottom: 84px; left: 10px; right: 10px; }
	.mb-main { grid-template-columns: minmax(0, 1fr); }
	.mb-stage { height: auto; }
	.mb-status { left: 8px; bottom: 8px; font-size: 11.5px; }
	.mb-palette, .mb-side {
		position: fixed; z-index: 70; left: 0; right: 0; bottom: 0; max-height: min(72dvh, 560px); padding-bottom: env(safe-area-inset-bottom);
		border: 0; border-radius: 22px 22px 0 0; background: var(--surface); box-shadow: 0 -14px 40px rgba(40, 25, 10, 0.22);
		transform: translateY(105%); transition: transform 0.22s ease; overflow-y: auto; overscroll-behavior: contain;
	}
	.mb-palette { padding: 0 12px 12px; }
	.mb.show-palette .mb-palette, .mb.show-side .mb-side { transform: none; }
	.mb-sheet-head { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between; padding: 10px 4px 6px 14px; background: var(--surface); }
	.mb-palette .mb-sheet-head { margin: 0 -12px 4px; }
	.mb-sheet-head strong { font-size: 17px; }
	.mb-side .mb-tabs { top: 56px; }
	.mb-items { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
	.mb-item { min-height: 92px; }
	.mb-fields--geo { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.mb-field input:not([type=checkbox]):not([type=range]):not([type=color]), .mb-field select { height: 44px; font-size: 16px; }
	.mb-dock { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); border-top: 1.5px solid var(--line); background: var(--surface); }
	.mb-dock button { display: grid; justify-items: center; gap: 2px; min-width: 0; min-height: 52px; padding: 4px; border: 0; border-radius: 12px; background: none; color: var(--ink-2); font: 700 12px var(--font); cursor: pointer; }
	.mb-dock button span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
	.mb-dock button .i { width: 22px; height: 22px; }
	.mb-dock button[aria-pressed="true"], .mb-dock button.has-selection { background: var(--brand-50); color: var(--brand-600); }
	.mb-dock button:disabled { opacity: 0.4; }
}

/* Group passes at the door: how many come in now. */
.ad-door__count-line { font-weight: 700; }
.ad-door__choose { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.ad-door__choose button { min-width: 56px; min-height: 56px; padding: 0 14px; border: 0; border-radius: 16px; background: #fff; color: var(--ink); font: 800 20px var(--font); cursor: pointer; }
.ad-door__choose button.is-all { background: var(--ink); color: #fff; font-size: 17px; }
.ad-door__result--choose { background: #fff4ec; color: var(--ink); }
.ad-door__result--collect { background: var(--warn-50); color: var(--ink); }
.ad-door__collect { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.ad-door__collect form { display: contents; }
.ad-door__collect button { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 52px; padding: 8px 10px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); font: 700 15px var(--font); cursor: pointer; }
.ad-door__collect button .i { color: var(--brand); }
.ad-door__result--wait_host { background: #fff4dd; color: #6b4a07; }
.ad-links { margin: 0; padding-left: 18px; font-size: 13px; color: var(--ink-2); }
.ad-links code { overflow-wrap: anywhere; }

/* ---------- Payments to check and payment methods ---------- */

.ad-paylist { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap: 16px; align-items: start; }
.ad-pay { display: grid; gap: 12px; border-left: 4px solid var(--line); }
.ad-pay.is-reported { border-left-color: var(--warn); }
.ad-pay__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.ad-pay__method { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.ad-pay__method .i { color: var(--brand); }
.ad-pay__amount { color: var(--brand-600); font-size: 22px; white-space: nowrap; }
.ad-pay__facts { display: grid; gap: 6px; margin: 0; }
.ad-pay__facts div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 8px; }
.ad-pay__facts dt { color: var(--muted); font-size: 13px; font-weight: 600; }
.ad-pay__facts dd { margin: 0; overflow-wrap: anywhere; }
.ad-pay__proof img { display: block; width: 100%; max-height: 260px; object-fit: contain; border-radius: 12px; background: var(--sunken); }
.ad-pay__actions { display: grid; gap: 10px; }
.ad-pay__actions .ui-btn { width: 100%; }
.ad-pay__reject summary { color: var(--bad); font-weight: 700; cursor: pointer; }
.ad-pay__reject form { display: grid; gap: 8px; margin-top: 10px; }
.ad-methods { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.ad-method { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 14px; border: 1.5px solid var(--line); border-radius: 16px; }
.ad-method.is-off { opacity: 0.6; }
.ad-method__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--brand-50); color: var(--brand); }
.ad-method__body { display: grid; gap: 4px; }
.ad-method__details { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
.ad-method__body small { color: var(--muted); }
.ad-method__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
@media (max-width: 640px) {
	.ad-method { grid-template-columns: auto minmax(0, 1fr); }
	.ad-method__actions { grid-column: 1 / -1; justify-content: flex-start; }
}
.ad-accounts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 14px; }
.ad-account { display: grid; gap: 12px; align-content: start; padding: 16px; border: 1.5px solid var(--line); border-radius: 16px; }
.ad-account.is-off { opacity: 0.7; }
.ad-account__head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ad-account__head strong { font-size: 17px; }
.ad-account__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.ad-account .ad-key { overflow-wrap: anywhere; }

/* ---------- The venue on the map ---------- */

.ad-venue-map { height: 320px; margin-top: 10px; border-radius: 16px; background: var(--sunken); overflow: hidden; }
.ad-place-search gmp-place-autocomplete { width: 100%; }
.ad-map-preview { width: 100%; height: 280px; border: 0; border-radius: 16px; background: var(--sunken); }
.ad-coords summary { font-size: 14px; font-weight: 700; cursor: pointer; }
.ad-coords__row { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr)); gap: 12px; margin-top: 10px; }
.ad-coords__row label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }

/* ---------- Promoters' withdrawals ---------- */

.ad-payouts { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.ad-payout { display: grid; gap: 6px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 14px; }
.ad-payout--requested { border-color: var(--warn); background: var(--warn-50); }
.ad-payout--disputed { border-color: var(--bad); }
.ad-payout__top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ad-payout__details { margin: 0; white-space: pre-line; font-weight: 600; }
.ad-payout small { color: var(--muted); }
.ad-payout__note { margin: 0; font-style: italic; }
.ad-payout__actions { display: grid; gap: 10px; }
.ad-payout__pay { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ad-payout__actions details form { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.ad-payout__actions summary { color: var(--bad); font-weight: 700; cursor: pointer; }
.ad-inline { display: flex; flex-wrap: wrap; gap: 8px; }
.ad-inline input { flex: 1 1 220px; }
.ad-invite { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ad-invite code { padding: 4px 8px; border-radius: 8px; background: var(--sunken); overflow-wrap: anywhere; }
.ad-chips-check { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.ad-chips-check label { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1.5px solid var(--line); border-radius: 99px; font-weight: 600; cursor: pointer; }
.ad-chips-check input { accent-color: var(--brand); }

.ad-row-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.ad-archived { margin-top: 12px; }
.ad-archived summary { font-weight: 700; cursor: pointer; color: var(--muted); }
.ad-archived__list { display: grid; gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
.ad-archived__list li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

/* Membership */
.ad-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0; padding: 10px 20px; background: var(--brand-50, #fdf0e8); color: var(--ink); font-size: 14px; font-weight: 600; }
.ad-banner span { flex: 1; min-width: 200px; }
.ad-banner a { font-weight: 800; }
.ad-banner--warn { background: var(--warn-50); color: var(--warn); }
.org-start__list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.org-start__list li { display: flex; gap: 8px; }
.org-start__list svg { flex: none; width: 18px; height: 18px; }
.org-status__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.org-status__head h2 { margin: 0; }
.org-status__big { margin: 0; font-size: 28px; font-weight: 800; }
.org-status__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.org-status__actions form { margin: 0; }
.org-plan-form { display: flex; flex-wrap: wrap; gap: 10px; }
.org-plan-form select { flex: 1; min-width: 200px; }
.ad-pill--trialing { background: var(--ok-50); color: var(--ok); }
.ad-pill--past_due, .ad-pill--incomplete, .ad-pill--failed { background: var(--warn-50); color: var(--warn); }
.ad-pill--expired { background: var(--bad-50); color: var(--bad); }
.ad-request.is-done { opacity: 0.75; }
.ad-quote { margin: 0; padding: 10px 14px; border-left: 3px solid var(--line); background: var(--surface-2); border-radius: 8px; white-space: pre-line; }
.ad-request__form { display: grid; gap: 10px; }
.ad-request__form textarea { width: 100%; }
.ad-danger { border: 1.5px solid var(--bad-50); }

/* Image uploads (posters, logos) */
.ad-upload__row { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.ad-upload__preview { max-width: 240px; height: auto; border-radius: 12px; object-fit: cover; box-shadow: var(--shadow); }
.ad-upload__empty { display: grid; place-items: center; width: 160px; height: 107px; border: 1.5px dashed var(--line); border-radius: 12px; color: var(--muted); }
.ad-upload form { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 8px 0; }
.ad-card p, .ad-table td { overflow-wrap: anywhere; }
/* Evidence of an order: facts in two columns, printed without the panel. */
.ad-facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; }
.ad-facts dt { color: var(--muted); }
.ad-facts dd { margin: 0; overflow-wrap: anywhere; }
@media print {
	.ad-side, .ad-top, .ad-tabbar, .ad-banner, [data-no-print] { display: none !important; }
	.ad-evidence .ad-card { box-shadow: none; border: 1px solid #ccc; break-inside: avoid; }
}
/* Reading a sketch: the button waits, the reading's notes stand out. */
.mb-file.is-busy { opacity: .7; cursor: progress; }
.mb-notes { padding: 8px 10px; border-radius: 10px; background: var(--warn-50); color: var(--ink); }
