/*
 * admin-module-utilities.css — shared styles for admin feature modules.
 *
 * These selectors belong to shared admin JavaScript modules, so their styles
 * must live once rather than drift between the super and tenant shells. Keep
 * shell layout in the shell stylesheets and cross-cutting polish in
 * admin-shared.css. This file loads after the shell stylesheet.
 */

/* ───────────────────────────────────────────────────────────────
 * DS-1 admin inline-style extraction (2026-06-23)
 *
 * Token-driven utility classes that replace repeated inline style=""
 * attributes in the admin innerHTML templates (admin-revenue.js,
 * admin-overview.js, admin-customers.js, admin-waiting-list.js,
 * admin-notices.js, admin-catalog.js, admin-logs.js). Values are copied
 * verbatim from the inline styles they replace — behaviour-preserving.
 * The JavaScript modules are shared by both admin shells, so these rules are
 * centralized here and must not be copied back into either shell stylesheet.
 * ─────────────────────────────────────────────────────────────── */

/* ── Tenant Overview: exception-first operational command centre ── */
.overview-loading-skeleton {
  display: grid;
  gap: var(--space-4xl, 24px);
  min-width: 0;
}
.overview-loading-skeleton__label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.overview-loading-skeleton__masthead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-2xl, 16px);
  padding: var(--space-xl, 14px) 0 var(--space-lg, 12px);
  border-bottom: 1px solid var(--border);
}
.overview-loading-skeleton__copy {
  display: grid;
  gap: var(--space-sm, 8px);
  width: min(520px, 100%);
}
.overview-loading-skeleton__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: var(--space-sm, 8px);
}
.overview-loading-skeleton__block {
  display: block;
  border-radius: var(--radius-sm, 6px);
  background-color: var(--border);
  background-image: linear-gradient(105deg, transparent 30%, var(--card) 48%, transparent 66%);
  background-position: 150% 0;
  background-repeat: no-repeat;
  background-size: 250% 100%;
  animation: overview-skeleton-shimmer 1.25s ease-in-out infinite;
  will-change: background-position;
}
.overview-loading-skeleton__block--kicker { width: 92px; height: 10px; }
.overview-loading-skeleton__block--title { width: min(360px, 78%); height: 25px; }
.overview-loading-skeleton__block--copy { width: min(470px, 92%); height: 13px; }
.overview-loading-skeleton__block--button { width: 92px; height: 36px; border-radius: var(--radius-sm, 6px); }
.overview-loading-skeleton__status {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--card);
}
.overview-loading-skeleton__status--items-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.overview-loading-skeleton__status > div {
  display: grid;
  gap: var(--space-sm, 8px);
  min-width: 0;
  padding: var(--space-xl, 14px) var(--space-2xl, 16px);
  border-right: 1px solid var(--border);
}
.overview-loading-skeleton__status > div:last-child { border-right: 0; }
.overview-loading-skeleton__block--badge { width: 72px; height: 22px; border-radius: 999px; }
.overview-loading-skeleton__block--status-copy { width: min(190px, 78%); height: 12px; }
.overview-loading-skeleton__attention { display: grid; gap: var(--space-lg, 12px); }
.overview-loading-skeleton__block--section-title { width: 150px; height: 21px; }
.overview-loading-skeleton__attention-row {
  display: grid;
  gap: var(--space-sm, 8px);
  padding: var(--space-xl, 14px) var(--space-2xl, 16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--card);
}
.overview-loading-skeleton__block--attention-title { width: min(300px, 58%); height: 14px; }
.overview-loading-skeleton__block--attention-copy { width: min(520px, 82%); height: 12px; }
.overview-loading-skeleton__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
  align-items: start;
  gap: var(--space-3xl, 20px);
}
.overview-loading-skeleton__card { display: grid; gap: var(--space-lg, 12px); min-width: 0; }
.overview-loading-skeleton__card > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-md, 10px);
  min-height: 116px;
  padding: var(--space-2xl, 16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--card);
}
.overview-loading-skeleton__block--card-title { width: min(210px, 52%); height: 21px; }
.overview-loading-skeleton__block--metric { height: 76px; border-radius: var(--radius-card); }
@keyframes overview-skeleton-shimmer {
  0% { background-position: 150% 0; }
  100% { background-position: -150% 0; }
}
.overview-ops-grid > [data-overview-region] { min-width: 0; }
.overview-ops {
  display: grid;
  gap: var(--space-4xl, 24px);
  min-width: 0;
}
.overview-ops-masthead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-2xl, 16px);
  padding: var(--space-xl, 14px) 0 var(--space-lg, 12px);
  border-bottom: 1px solid var(--border);
}
.overview-ops-masthead h1,
.overview-ops-section__heading h2,
.overview-ops-card__header h2 {
  margin: 3px 0 0;
  color: var(--text);
  font-family: var(--font-display, inherit);
  font-size: 21px;
  line-height: 1.2;
  letter-spacing: -.02em;
}
.overview-ops-masthead p,
.overview-ops-section__heading p,
.overview-ops-card__header p {
  margin: var(--space-xs, 6px) 0 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.5;
}
.overview-ops-kicker {
  color: var(--primary);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1.2;
  text-transform: uppercase;
}
.overview-ops-masthead__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: var(--space-sm, 8px);
}
.overview-ops-status {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--card);
}
.overview-ops-status--items-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.overview-ops-status__item {
  display: grid;
  align-content: start;
  gap: var(--space-sm, 8px);
  min-width: 0;
  padding: var(--space-xl, 14px) var(--space-2xl, 16px);
  border-right: 1px solid var(--border);
}
.overview-ops-status__item:last-child { border-right: 0; }
.overview-ops-status__item gk-badge { justify-self: start; }
.overview-ops-status__item > span {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.45;
}
.overview-ops-section,
.overview-ops-card { display: grid; gap: var(--space-lg, 12px); min-width: 0; }
.overview-ops-section__heading,
.overview-ops-card__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-lg, 12px);
}
.overview-attention-list { min-width: 0; }
.overview-attention-row {
  display: grid;
  grid-template-columns: 4px minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-xl, 14px);
  padding: var(--space-xl, 14px) var(--space-2xl, 16px);
  border-bottom: 1px solid var(--border);
}
.overview-attention-row:last-child { border-bottom: 0; }
.overview-attention-row__marker {
  width: 4px;
  height: 38px;
  border-radius: 999px;
  background: var(--accent);
}
.overview-attention-row[data-priority="critical"] .overview-attention-row__marker { background: var(--danger-text); }
.overview-attention-row[data-priority="warning"] .overview-attention-row__marker { background: var(--caution-text); }
.overview-attention-row__copy { min-width: 0; }
.overview-attention-row__copy > div { display: flex; align-items: center; gap: var(--space-sm, 8px); min-width: 0; }
.overview-attention-row__copy h3 {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--text);
  font-family: var(--font-display, inherit);
  font-size: 14px;
  line-height: 1.35;
}
.overview-attention-row__copy p {
  margin: var(--space-2xs, 4px) 0 0;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.45;
}
.overview-ops-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
  align-items: start;
  gap: var(--space-3xl, 20px);
}
.overview-ops-card > gk-card { min-width: 0; height: 100%; }
.overview-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-md, 10px);
}
.overview-metric-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.overview-metric-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.overview-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg, 12px);
  margin-top: var(--space-2xl, 16px);
  padding-top: var(--space-lg, 12px);
  border-top: 1px solid var(--border);
}
.overview-card-footer--flush { margin: 0; padding: var(--space-lg, 12px) var(--space-2xl, 16px); }
.overview-card-footer--actions { flex-wrap: wrap; justify-content: flex-start; }
.overview-card-footer p {
  min-width: 0;
  margin: 0;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.45;
}
.overview-card-footer p strong { color: var(--text); }
.overview-inline-unavailable {
  margin: 0 0 var(--space-lg, 12px);
  color: var(--caution-text);
  font-size: 12px;
}
.overview-activity-list { display: grid; }
.overview-activity-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-lg, 12px);
  padding: var(--space-lg, 12px) var(--space-2xl, 16px);
  border-bottom: 1px solid var(--border);
}
.overview-activity-row > div { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: var(--space-xs, 6px) var(--space-sm, 8px); min-width: 0; }
.overview-activity-row strong { min-width: 0; overflow-wrap: anywhere; color: var(--text); font-size: 13px; }
.overview-activity-row span:not(.overview-activity-row__amount) { grid-column: 2; color: var(--text-muted); font-size: 11px; }
.overview-activity-row__amount { flex: 0 0 auto; color: var(--text); font-size: 13px; font-weight: 700; }
.overview-ops-freshness { margin: 0; color: var(--text-muted); font-size: 11px; text-align: right; }

@media (max-width: 1100px) {
  .overview-loading-skeleton__grid { grid-template-columns: 1fr; }
  .overview-ops-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .overview-loading-skeleton__masthead { align-items: stretch; flex-direction: column; }
  .overview-loading-skeleton__actions { justify-content: flex-start; }
  .overview-loading-skeleton__status { grid-template-columns: 1fr; }
  .overview-loading-skeleton__status > div { border-right: 0; border-bottom: 1px solid var(--border); }
  .overview-loading-skeleton__status > div:last-child { border-bottom: 0; }
  .overview-ops-masthead { align-items: stretch; flex-direction: column; }
  .overview-ops-masthead__actions { justify-content: flex-start; }
  .overview-ops-status { grid-template-columns: 1fr; }
  .overview-ops-status__item { border-right: 0; border-bottom: 1px solid var(--border); }
  .overview-ops-status__item:last-child { border-bottom: 0; }
  .overview-metric-grid,
  .overview-metric-grid--three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .overview-loading-skeleton__card > div { grid-template-columns: 1fr; }
  .overview-loading-skeleton__block--metric { height: 58px; }
  .overview-attention-row { grid-template-columns: 4px minmax(0, 1fr); }
  .overview-attention-row > gk-button { grid-column: 2; justify-self: start; }
  .overview-attention-row__copy > div { align-items: flex-start; flex-direction: column; }
  .overview-metric-grid,
  .overview-metric-grid--two,
  .overview-metric-grid--three { grid-template-columns: 1fr; }
  .overview-card-footer { align-items: flex-start; flex-direction: column; }
  .overview-activity-row { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  .overview-loading-skeleton__block {
    animation: none;
    background: var(--border);
    will-change: auto;
  }
}
.adm-num            { text-align: right; }
.adm-muted          { color: var(--text-muted); }
.adm-warn           { color: var(--danger-text); }
.adm-fs-10          { font-size: 10px; }
.adm-fs-11          { font-size: 11px; }
.adm-fs-12          { font-size: 12px; }
.adm-fs-13          { font-size: 13px; }
.adm-muted-12       { color: var(--text-muted); font-size: 12px; }
.adm-muted-11       { color: var(--text-muted); font-size: 11px; }
.adm-bar            { background: var(--accent); height: 14px; border-radius: 3px; }
.adm-total-row      { font-weight: 600; border-top: 2px solid var(--border); }

/* ── DS-1 customer-records (admin-customers.js) inline-style extraction ── */
.cust-card-pad      { padding: 20px; margin-bottom: 16px; }
.cust-card-pad-only { padding: 20px; }
.cust-card-pad h2,
.cust-card-pad-only h2 { margin-top: 0; }
.cust-detail-email  { color: var(--text-muted); margin-top: 4px; }
.cust-detail-phone  { color: var(--text-muted); margin-top: 2px; }
.cust-detail-source { margin-top: 8px; font-size: 12px; color: var(--text-light); }
.cust-detail-back   { margin-bottom: 16px; }
.cust-section-head  { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); margin-top: 16px; margin-bottom: 4px; }
.cust-mono-12       { font-size: 12px; font-family: monospace; }
.cust-grid-4        { grid-template-columns: 120px 1fr 80px 100px; }
.cust-grid-3        { grid-template-columns: 1fr 1fr 80px; }
.cust-table-mt      { margin-top: 12px; }
.cust-empty-mt      { margin-top: 8px; }
.cust-empty-mt0     { margin-top: 8px; margin-bottom: 0; }
.cust-status-cancelled { color: var(--danger, var(--c-red-400)); font-size: 12px; font-weight: 600; }
.cust-status-checkedin { color: var(--success, var(--c-green-600-c)); font-size: 12px; font-weight: 600; }
.cust-status-expired   { color: var(--danger-text); font-size: 12px; font-weight: 600; }
.cust-status-pending   { color: var(--text-muted); font-size: 12px; }
.cust-row-link      { cursor: pointer; }
.cust-dash          { color: var(--text-muted); }
.cust-error         { color: var(--error-text); }
.cust-notes-textarea { width: 100%; margin-top: 8px; font-family: inherit; font-size: 14px; padding: 8px; border: 1px solid var(--border); border-radius: 8px; resize: vertical; }
.cust-notes-save    { margin-top: 8px; }
/* ── DS-1 waiting-list (admin-waiting-list.js) inline-style extraction ── */
.adm-meta-line      { margin-top: 2px; font-size: 12px; color: var(--text-muted); }
.adm-actions-row    { display: flex; gap: 6px; margin-top: 6px; }
.adm-tag-mt         { margin-top: 4px; display: inline-block; }
.adm-event-row      { padding: 4px 0; border-bottom: 1px solid var(--border); }
.adm-pre-meta       { margin: 4px 0 0; font-size: 11px; color: var(--text-muted); white-space: pre-wrap; }
.adm-detail-body    { font-size: 14px; line-height: 1.6; }
.adm-events-wrap    { margin-top: 12px; }
.adm-events-list    { margin-top: 6px; font-size: 13px; }
/* ── DS-1 notices (admin-notices.js) inline-style extraction ── */
.adm-muted-13       { color: var(--text-muted); font-size: 13px; }
.adm-warn-13        { color: var(--danger-text); font-size: 13px; }
.adm-scroll-300     { max-height: 300px; overflow-y: auto; }
.adm-mb-6           { margin-bottom: 6px; }
.adm-notice-confirmed { font-size: 11px; color: var(--success-text); margin-left: 6px; }
.adm-h4-flush       { margin: 0 0 8px; }
/* ── DS-1 catalog (admin-catalog.js) inline-style extraction ── */
.cat-loading        { color: var(--text-muted); }
.cat-empty-products { color: var(--text-muted); padding: 12px 14px; margin: 0; }
.cat-name-uncat     { font-weight: 400; }
.cat-chip-sm        { font-size: 10px; cursor: pointer; }
.cat-chip-all       { font-size: 10px; background: var(--primary-surface); border-color: var(--primary); }
.cat-edit-fields    { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.cat-edit-label     { display: grid; gap: 3px; color: var(--text-muted); font-size: 11px; font-weight: 600; }
.cat-edit-input     { font-size: 13px; }
.cat-edit-actions   { display: flex; gap: 6px; justify-content: flex-end; }
.adm-muted-11-mt    { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

/* ───────────────────────────────────────────────────────────────
 * DS-1 admin inline-style extraction — phase 0/1 (2026-06-24)
 *
 * Behaviour-preserving CSS for inline style="" attributes removed from
 * admin innerHTML templates. Values copied VERBATIM from the inline
 * styles they replace. The admin JS modules are shared across both shells, so
 * their common presentation is owned by this stylesheet.
 *
 * Covers: admin-email, admin-deferred-revenue, admin-vouchers,
 * admin-auth, admin-revenue, admin-setup,
 * admin-notifications-health, admin-platform-settings, admin-org,
 * admin-status, admin-lightspeed-connection, admin-courses, admin-feedback,
 * admin-teesheet, admin-errors, admin-theme-fields, admin-theme-preview.
 * ─────────────────────────────────────────────────────────────── */

/* ── Shared micro-utilities ── */
.adm-flush          { margin: 0; }
.adm-mt4            { margin-top: 4px; }

/* ── channel-specific email settings ── */
/* Health chain: wrap the step→step→step row instead of overflowing on narrow
   panels. Each step stays intact (its icon + label never split across lines). */
#emailHealthChain   { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
#emailHealthChain > span { white-space: nowrap; }
#emailHealthStatus  { display: block; margin-top: 4px; overflow-wrap: anywhere; }
.em-chain-ok        { color: var(--success-text); }
.em-chain-bad       { color: var(--danger-text); }
.em-chain-broken    { font-weight: 700; }
.em-chain-arrow     { color: var(--text-light); }
.em-status-ok       { color: var(--success-text); font-weight: 600; }
.em-status-warn     { color: var(--danger-text); font-weight: 600; }
/* Built-in connector tag — small neutral pill next to the connector name. */
.em-builtin-tag     { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px;
                      font-size: 11px; font-weight: 600; line-height: 1.5; white-space: nowrap;
                      color: var(--text-muted); background: var(--c-neutral-50-b, var(--admin-table-head));
                      border: 1px solid var(--border); cursor: help; vertical-align: middle; }
/* Fallback only — used if gkServiceBadge is unavailable when rendering runtime health. */
.em-health-warn     { color: var(--danger-text); font-weight: 600; }
.em-connector-empty { margin: 0; padding: 14px 14px 0; }
.em-cell-bold       { font-weight: 600; }
.em-btn-sm          { padding: 4px 10px; font-size: 12px; }
.em-route-connector { font-size: 12px; padding: 4px 6px; max-width: 180px; }
.em-tpl-titlerow    { justify-content: space-between; align-items: center; margin-bottom: 8px; }
.em-label-note      { font-weight: 400; color: var(--text-muted); font-size: 12px; }
.em-hint-mt4        { margin-top: 4px; }
.em-hint-mt6        { margin-top: 6px; }
.em-hint-mt10       { margin-top: 10px; }
.em-fg-flush        { margin-top: 0; }
.em-recip-expand    { display: flex; align-items: center; gap: 6px; cursor: pointer; user-select: none; }
.em-recip-chevron   { font-size: 10px; transition: transform .15s; }
.em-recip-label     { font-size: 12px; font-weight: 600; }
.em-recip-note      { font-size: 11px; color: var(--text-muted); }
.em-cond-header     { border-top: 1px solid var(--border); padding-top: 12px; margin-top: 4px; }
.em-cond-header-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.em-cond-title      { font-weight: 500; font-size: 13px; }
.em-cond-subtitle   { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.em-cond-config     { background: var(--surface-raised, var(--c-neutral-50-b)); border: 1px solid var(--border); border-radius: 6px; padding: 12px; margin-top: 4px; }
.em-cond-config-row { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; }
.em-cond-field-path { flex: 2; min-width: 140px; margin: 0; }
.em-cond-field-op   { flex: 1; min-width: 110px; margin: 0; }
.em-cond-field-value { flex: 2; min-width: 140px; margin: 0; }
.em-cond-help       { margin-top: 8px; margin-bottom: 0; }
.em-preview-panel   { margin-top: 12px; padding: 0; overflow: hidden; }
.em-error-cell      { max-width: 260px; word-break: break-word; }
.em-hint-flush      { margin: 0; }
.em-hint-warn       { color: var(--danger-text); margin: 0; }

/* ── admin-deferred-revenue.js ── */
.dr-table-mb        { margin-bottom: 12px; }
.dr-total-row       { font-weight: 700; border-top: 2px solid var(--border); }
.dr-bar-col         { min-width: 80px; }
.dr-bar             { height: 10px; border-radius: 2px; }
.dr-bar--cash       { background: var(--accent); }
.dr-bar--rev        { background: var(--c-green-400); }
.dr-noshow-count    { font-size: 20px; font-weight: 700; }
.dr-noshow-pct      { margin-left: 8px; }

/* ── admin-vouchers.js ── */
.vch-empty          { padding: 8px 0; }
/* Base table styling comes from `.gk-table .gk-table--compact` (admin-shared.css);
 * the voucher table self-wraps in a bordered, rounded, clipped card. */
.vch-table          { border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.vch-thead-row      { background: var(--admin-table-head); text-align: left; }
/* Scoped under `.vch-table` so these win over the `.gk-table--compact` cell
 * rhythm and keep the voucher table's slightly tighter 5px body rows. The
 * voucher table separates rows with zebra striping (`.vch-row-alt`), not the
 * base per-row border, so the `.gk-table` cell border is neutralised here. */
.vch-table .vch-th  { padding: 6px 8px; border-bottom: none; }
.vch-th-intent      { font-family: var(--mono); font-size: 11px; }
.vch-row-alt        { background: var(--c-neutral-50-b); }
.vch-table .vch-td  { padding: 5px 8px; border-bottom: none; }
.vch-mono           { font-family: var(--mono); }
.vch-intent         { font-size: 11px; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vch-page-btn       { padding: 4px 10px; }
.vch-error          { color: var(--danger-text); padding: 8px 0; }

/* ── admin-auth.js ── */
/* The access card itself (.au-screen, .au-card, .au-signin-btn) is shell
 * chrome and lives in admin-shell-layout.css with the auth-prompt layout. */
/* Venue chooser shown when a tenant admin with multiple venues hits /admin. */
.au-venue-list     { display: flex; flex-direction: column; gap: 8px; text-align: left; max-width: 24rem; margin: 0 auto; }
.au-venue-item      { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border: 1px solid var(--border); border-radius: var(--radius-btn, 8px); background: var(--card); color: var(--text); font-size: 14px; font-weight: 600; text-decoration: none; transition: border-color .15s, background .15s; }
.au-venue-item:hover { border-color: var(--primary); background: var(--primary-subtle, var(--card)); }
/* A closed venue is listed but not a link: no hover, muted name. */
.au-venue-item[aria-disabled="true"],
.au-venue-item[aria-disabled="true"]:hover { border-color: var(--border); background: var(--card); color: var(--text-muted); cursor: default; }
.au-venue-go        { color: var(--text-muted); }

/* ── admin-revenue.js ── */
.rev-bar-col        { min-width: 120px; }
.rev-bar-cell       { min-width: 140px; }
.rev-bar-track      { height: 8px; overflow: hidden; border: 1px solid var(--border); border-radius: 999px; background: var(--primary-surface); }
.rev-bar-fill       { height: 100%; min-width: 0; border-radius: inherit; background: var(--accent); }
.rev-funnel         { display: grid; gap: 10px; padding: 4px 0; }
.rev-funnel-header  { display: grid; grid-template-columns: minmax(150px, .9fr) minmax(220px, 2fr); gap: 14px; color: var(--text-muted); font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.rev-funnel-header span:last-child { text-align: right; }
.rev-funnel-list    { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.rev-funnel-row     { display: grid; grid-template-columns: minmax(150px, .9fr) minmax(220px, 2fr); gap: 4px 14px; align-items: center; padding: 9px 10px; border: 1px solid var(--border); border-radius: var(--radius-sm, 6px); background: var(--card); }
.rev-funnel-label   { min-width: 0; color: var(--text); font-size: 13px; }
.rev-funnel-stage   { font-weight: 600; }
.rev-funnel-tag     { display: inline-block; margin-left: 5px; padding: 2px 5px; border-radius: 999px; background: var(--primary-surface); color: var(--text-muted); font-size: 10px; font-weight: 600; vertical-align: 1px; }
.rev-funnel-split   { display: inline-block; margin-left: 6px; color: var(--text-muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.rev-funnel-measure { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.rev-funnel-track   { height: 10px; overflow: hidden; border: 1px solid var(--border); border-radius: 999px; background: var(--primary-surface); }
.rev-funnel-fill    { height: 100%; min-width: 0; border-radius: inherit; background: var(--accent); transition: width var(--dur-slow, .25s) var(--ease, ease); }
.rev-funnel-count   { min-width: 3ch; color: var(--text); font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.rev-funnel-annotation { grid-column: 2; margin: 0; color: var(--text-muted); font-size: 11px; line-height: 1.3; }
.rev-funnel-overall { display: flex; align-items: baseline; gap: 7px; margin-top: 2px; padding: 10px 12px; border-left: 3px solid var(--accent); border-radius: 0 var(--radius-sm, 6px) var(--radius-sm, 6px) 0; background: var(--primary-surface); color: var(--text-muted); font-size: 12px; }
.rev-funnel-overall strong { color: var(--text); font-size: 18px; font-variant-numeric: tabular-nums; }
.rev-funnel-row--offpath { background: var(--primary-surface); }
.rev-funnel-row--offpath .rev-funnel-fill { background: var(--text-muted); opacity: .72; }
@media (max-width: 720px) {
  .rev-funnel-header { display: none; }
  .rev-funnel-row { grid-template-columns: 1fr; gap: 7px; padding: 10px; }
  .rev-funnel-label { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
  .rev-funnel-tag { margin-left: auto; }
  .rev-funnel-annotation { grid-column: 1; }
  .rev-funnel-overall { flex-wrap: wrap; }
}

/* ── admin-setup.js ── */
.setup-link-list    { display: flex; flex-direction: column; gap: 10px; }
.setup-link-card    { padding: 14px; }
.setup-link-row     { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.setup-link-provider { font-weight: 600; color: var(--text); }

/* ── admin-notifications-health.js ── */
.nh-link            { white-space: nowrap; }
.nh-link-icon       { font-weight: 700; }
.nh-arrow           { color: var(--text-light); }
.nh-summary-ok      { color: var(--success-text); font-weight: 600; }
.nh-summary-warn    { color: var(--danger-text); font-weight: 600; }

/* ── admin-platform-settings.js ── */
.ps-field gk-field  { max-width: 480px; }
.ps-setting         { padding: 14px; margin-bottom: 12px; }
.ps-field           { margin-bottom: 6px; }
.ps-input           { width: 100%; max-width: 480px; font-family: monospace; font-size: 13px; }
.ps-input--choice   { font-family: inherit; }
.ps-default         { margin-top: 2px; margin-bottom: 8px; }
.ps-actions         { display: flex; flex-wrap: wrap; gap: 8px; }

/* ── admin-org.js ── */
.org-picker-card    { max-width: 440px; }
.org-picker-msg     { margin-bottom: 10px; }
.org-picker-input   { width: 100%; box-sizing: border-box; margin-bottom: 8px; }
.org-picker-list    { position: static; max-height: 240px; overflow-y: auto; border: 1px solid var(--border); border-radius: var(--radius-input, 8px); display: block; }
.org-picker-empty   { padding: 12px; color: var(--text-muted); font-size: 13px; }

/* ── admin-status.js ── */
.st-dl-dismiss      { flex-shrink: 0; font-size: 0.82em; padding: 4px 10px; }
.st-tooltip-meta-mt { margin-top: 8px; margin-bottom: 4px; }

/* ── admin-lightspeed-connection.js ── */
.lightspeed-venue-result { display: block; width: 100%; margin-bottom: var(--space-xs, 6px); text-align: left; --btn-pad-y: 8px; --btn-pad-x: 10px; }
.lightspeed-venue-result__content { display: block; width: 100%; text-align: left; white-space: normal; }
.lightspeed-venue-name { display: block; font-size: 13px; font-weight: 600; }
.lightspeed-venue-id   { display: block; font-size: 11px; color: var(--text-muted); font-family: var(--mono); }
.lightspeed-venue-warn { display: block; font-size: 11px; color: var(--danger-text); }
.lightspeed-warn-text  { color: var(--danger-text); }

/* ── admin-courses.js ── */
.crs-overrides      { margin-top: 8px; }
.crs-field-grid     { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-md); }
.crs-field-grid .crs-field--wide { grid-column: 1 / -1; }
.crs-input          { width: 100%; }
.crs-save-btn       { margin-top: 6px; }
@media (max-width: 720px) { .crs-field-grid { grid-template-columns: minmax(0, 1fr); } }

/* ── admin-feedback.js ── */
.fb-table           { width: 100%; }
.fb-date            { white-space: nowrap; font-size: 12px; }
.fb-message         { max-width: 360px; white-space: pre-wrap; word-break: break-word; }

/* ── admin-teesheet.js ── */
.ts-checkin-close   { padding-top: 8px; }

/* ── admin-errors.js ── */
.err-col-chevron    { width: 24px; }

/* ── admin-theme-fields.js ── */
.tf-section-hint    { margin-bottom: 10px; font-size: 12px; color: var(--text-muted); }
.tf-field-hint      { color: var(--text-muted); margin-top: 2px; }
.tf-field-source    { display: block; margin-top: 4px; font-size: 11px; font-weight: 700; letter-spacing: .01em; }
.tf-field-source--inherited { color: var(--text-muted); }
.tf-field-source--custom    { color: var(--success-text); }
.tf-field-source--pending   { color: var(--danger-text); }
.tf-field-reset     { appearance: none; border: 0; padding: 0; background: transparent; color: var(--link); font: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.tf-field-reset:focus-visible { outline: 2px solid var(--focus-ring, var(--link)); outline-offset: 2px; border-radius: 2px; }
.tf-step-labels     { margin-top: 12px; }
.tf-grid-6          { grid-template-columns: repeat(6, 1fr); }
.tf-input-center    { text-align: center; }
.tf-input-xs        { width: var(--control-width-xs); max-width: 100%; }
.tf-input-sm        { width: var(--control-width-sm); max-width: 100%; }
.tf-subgroup        { margin-top: 14px; }

@media (max-width: 720px) {
  .tf-grid-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tf-grid-6 > gk-field { min-width: 0; }
}

/* ── admin-theme-preview.js ── */
.tpv-desc           { font-size: 12px; color: var(--text-muted); margin-bottom: 4px; }

/* ═══ Theme editor workspace + booking-page preview ══════════════
   Emitted by packages/admin-features/theme/admin-theme-preview.js and the
   shared theme-editor page recipe (tenant Appearance/Booking-content and
   super-admin Default Branding/Default Copy use the same markup). */
/* ── Theme token preview ─────────────────────────────────────── */
.theme-editor-workspace {
  display: grid;
  grid-template-columns: minmax(340px, 420px) minmax(400px, 1fr);
  align-items: start;
  gap: var(--space-xl);
}
.theme-editor-workspace > gk-tabs { min-width: 0; }
.theme-preview-strip {
  container-type: inline-size;
  position: sticky;
  top: var(--space-lg);
  z-index: 20;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: var(--space-lg);
  box-shadow: 0 8px 28px rgba(22, 37, 45, 0.08);
  max-height: calc(100vh - 32px);
  overflow: auto;
}
.theme-preview-strip--active {
  border-top-color: var(--primary-muted);
}
.theme-preview-strip--hidden .theme-preview__body {
  display: none;
}
.theme-preview-strip--hidden {
  min-height: 0;
  padding: var(--space-sm) var(--space-3xl);
}
.theme-preview__body {
  min-width: 0;
}
.theme-preview__heading > span {
  display: block;
  margin-bottom: var(--space-2xs);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}
.theme-preview__desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
}
.theme-preview__note {
  margin: var(--space-sm) 0 0;
  color: var(--text-light);
  font-size: 11px;
  line-height: 1.4;
}
.theme-preview__snippet {
  min-width: 0;
  margin-top: var(--space-lg);
}
.theme-preview__toggle {
  appearance: none;
  border: none;
  background: none;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-light);
  cursor: pointer;
  white-space: nowrap;
  padding: var(--space-2xs) 0;
  font-family: inherit;
}
.theme-preview__toggle:hover {
  color: var(--text-muted);
}
.theme-preview-inline {
  container-type: inline-size;
  display: none;
  margin: var(--space-sm) 0 var(--space-2xs);
  padding: var(--space-md) var(--space-xl);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-btn);
  background: var(--card);
  grid-column: 1 / -1;
}

@media (max-width: 720px) {
  .theme-editor-workspace { display:block; }
  .theme-preview-strip { display: none; }
  .theme-preview-inline { padding:var(--space-md); }
  .theme-preview-inline:not(:empty) { display:block; }
  .tpv-summary { display:none; }
  .tpv-header__left > i, .tpv-subtitle, .tpv-header .tpv-header__action { display:none; }
}
@media (min-width: 721px) {
  .theme-preview-inline { display: none !important; }
}
/* Account for the persistent admin rail and panel gutters: at common laptop
   widths the workspace is substantially narrower than the viewport. */
@media (max-width: 1100px) {
  .theme-editor-workspace { grid-template-columns:1fr; }
  .theme-preview-strip { position:static; max-height:none; }
}

/* ── Booking-page preview ───────────────────────────────────────
   Emitted by admin-theme-preview.js. These scenes use the storefront's
   canonical custom-property names (injected per-render from the unsaved
   form) and model one real customer state at a time. Structure and values
   mirror the real storefront (apps/booking) — when the storefront look
   changes, this preview must follow. */
.tpv-page {
  width: 100%;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  box-shadow: var(--shadow-lg);
}
.tpv-browser-tab {
  display: flex;
  height: 30px;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  background: var(--primary-surface);
  color: var(--text-muted);
  font: 10px/1 Arial, sans-serif;
}
.tpv-browser-tab img,
.tpv-browser-tab > span:first-child {
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
  border-radius: 3px;
  background: var(--primary);
  object-fit: cover;
}
.tpv-browser-tab > span:nth-child(2) {
  overflow: hidden;
  flex: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tpv-browser-tab > b {
  color: var(--primary-muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.tpv-site {
  min-height: 0;
  background: var(--bg);
  font-size: 13px;
}
.tpv-hero {
  position: relative;
  min-height: 126px;
  padding: 0;
  background-color: var(--primary);
  background-image:
    linear-gradient(180deg, var(--hero-overlay-start) 0%, var(--hero-overlay-mid) 30%, var(--hero-overlay-end) 60%, var(--bg) 100%),
    var(--hero-image, linear-gradient(135deg, var(--primary), var(--accent)));
  background-position: center 60%;
  background-size: cover;
}
.tpv-page--overview .tpv-hero,
.tpv-page--landing .tpv-hero,
.tpv-page--calendar .tpv-hero {
  min-height: 340px;
}
.tpv-page--overview .tpv-hero { min-height:300px; }
.tpv-hero::after,
.tpv-page--overview .tpv-site::after,
.tpv-page--landing .tpv-site::after { content:none; }
.tpv-header {
  position: relative;
  z-index: 4;
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3xl);
  padding: 0 28px;
  background: transparent;
  color: rgb(var(--white-rgb));
}
.tpv-header__left {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 16px;
}
.tpv-header__left > i {
  width: 1px;
  height: 24px;
  background: rgba(var(--white-rgb), .45);
}
.tpv-wordmark {
  overflow: hidden;
  color: rgb(var(--white-rgb));
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tpv-logo {
  display: block;
  max-width: 155px;
  max-height: 40px;
  object-fit: contain;
  object-position: left center;
}
.tpv-subtitle {
  color: rgb(var(--white-rgb));
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.tpv-header__action {
  display: inline-block;
  /* Mirrors the storefront .header-btn glass treatment (booking/index.css). */
  flex: 0 0 auto;
  border: 1px solid rgba(var(--white-rgb), .25);
  border-radius: var(--radius-sm, 6px);
  background: rgba(var(--white-rgb), .15);
  backdrop-filter: blur(4px);
  color: rgb(var(--white-rgb));
  padding: 9px var(--space-xl);
  font: 600 11px var(--font-body);
}
.tpv-search {
  position: absolute;
  z-index: 5;
  top: 108px;
  right: 7%;
  bottom: auto;
  left: 7%;
  display: flex;
  align-items: stretch;
  padding: 8px;
  border-radius: var(--radius-hero-search);
  background: rgb(var(--white-rgb));
  box-shadow: var(--shadow-lg);
  color: var(--text);
}
.tpv-search__field {
  position: relative;
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: var(--radius-input);
}
.tpv-search__field.is-open {
  background: var(--primary-surface);
  box-shadow: inset 0 0 0 2px var(--accent);
}
.tpv-search__field > span {
  display: grid;
  min-width: 0;
  flex: 1;
  gap: 2px;
}
.tpv-search__field small {
  color: var(--text-muted);
  font-size: 9px;
}
.tpv-search__field strong {
  overflow: hidden;
  color: var(--text);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tpv-search__field > b,
.tpv-icon {
  color: var(--primary-muted);
  font-style: normal;
}
.tpv-search__divider {
  width: 1px;
  margin: 8px 0;
  background: var(--border);
}
.tpv-action {
  border: 0;
  border-radius: var(--radius-btn);
  background: var(--primary);
  color: rgb(var(--white-rgb));
  font: 700 12px var(--font-body);
}
.tpv-search__button {
  margin-left: 8px;
  padding: 0 24px;
}
.tpv-calendar {
  position: absolute;
  z-index: 8;
  top: calc(100% + 12px);
  left: 0;
  width: 285px;
  padding: var(--space-2xl);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--card);
  box-shadow: var(--shadow-lg);
}
.tpv-calendar__head,
.tpv-calendar__week,
.tpv-calendar__grid,
.tpv-calendar__legend {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  align-items: center;
  gap: 4px;
}
.tpv-calendar__head {
  grid-template-columns: auto 1fr auto;
  margin-bottom: 10px;
}
.tpv-calendar__head strong { color:var(--primary); text-align:center; }
.tpv-calendar__nav { display:inline-block; padding:var(--space-3xs) var(--space-xs); border:0; background:transparent; color:var(--primary); font:inherit; }
.tpv-calendar__week { margin-bottom:4px; color:var(--text-light); font-size:8px; text-align:center; }
.tpv-calendar__day,
.tpv-calendar__grid > .is-empty {
  display: grid;
  height: 27px;
  place-items: center;
  border-radius: 50%;
  font-size: 9px;
}
.tpv-calendar__day { color:var(--text); }
.tpv-calendar__day.is-selected { background:var(--accent); color:rgb(var(--white-rgb)); }
.tpv-calendar__day.is-limited { background:var(--highlight-subtle); box-shadow:inset 0 0 0 1px var(--highlight-muted); color:var(--highlight); }
.tpv-calendar__day.is-unavailable { background:var(--highlight-subtle); color:var(--highlight); text-decoration:line-through; opacity:.7; }
.tpv-calendar__legend {
  grid-template-columns: auto auto;
  justify-content: start;
  gap: 12px;
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 8px;
}
.tpv-calendar__legend span { display:flex; align-items:center; gap:4px; }
.tpv-calendar__legend i { width:7px; height:7px; border-radius:50%; }
.tpv-calendar__legend i.is-available { background:var(--accent); }
.tpv-calendar__legend i.is-limited { background:var(--highlight); }
.tpv-landing-space { height:90px; }
.tpv-shell {
  position: relative;
  z-index: 2;
  display: grid;
  max-width: 1040px;
  margin: calc(-1 * var(--space-4xl)) auto 0;
  padding: 0 24px 28px;
  gap: var(--space-3xl);
  align-items: start;
}
.tpv-shell--journey { grid-template-columns:minmax(0, 1fr) minmax(190px, 30%); }
.tpv-content,
.tpv-summary {
  border-radius: var(--radius-card);
  background: var(--card);
  box-shadow: var(--shadow-lg);
}
.tpv-content { display:block; min-width:0; padding:var(--space-4xl); }
.tpv-summary { padding:var(--space-4xl); }
.tpv-results-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}
.tpv-results-head h2,
.tpv-heading h2 {
  margin: 0;
  color: var(--primary);
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
}
.tpv-results-head p,
.tpv-heading p { margin:5px 0 0; color:var(--text-muted); font-size:11px; }
.tpv-results-head > div:last-child { display:grid; justify-items:end; gap:7px; color:var(--text-muted); font-size:10px; }
.tpv-results-head b { padding:6px 9px; border-radius:999px; background:var(--primary-surface); color:var(--primary); font-size:9px; }
.tpv-hour { display:flex; align-items:center; gap:10px; margin-bottom:9px; color:var(--primary-muted); font-size:9px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; }
.tpv-hour i { height:1px; flex:1; background:var(--border); }
.tpv-loading-grid { display:grid; grid-template-columns:repeat(2, 1fr); gap:10px; }
.tpv-loading-grid i {
  height: 76px;
  border-radius: var(--radius-card);
  background: linear-gradient(90deg, var(--primary-surface) 25%, var(--primary-subtle) 50%, var(--primary-surface) 75%);
  background-size: 200% 100%;
}
.tpv-loading-copy { margin:var(--space-3xl) 0 0; color:var(--text-muted); font-size:11px; text-align:center; }
.tpv-steps { display:flex; align-items:flex-start; margin-bottom:24px; }
.tpv-step { position:relative; display:grid; flex:1; justify-items:start; gap:5px; color:var(--primary-muted); }
.tpv-step > span { position:relative; z-index:2; display:grid; width:24px; height:24px; place-items:center; border-radius:50%; font-size:9px; font-weight:800; }
.tpv-step > small { font-size:8px; font-weight:700; letter-spacing:.04em; text-transform:uppercase; }
.tpv-step > i { position:absolute; top:11px; right:6px; left:29px; height:2px; background:var(--primary-surface); }
.tpv-step.is-done > span { background:var(--accent); color:rgb(var(--white-rgb)); }
.tpv-step.is-done > i { background:var(--accent); opacity:.55; }
.tpv-step.is-active { color:var(--primary); }
.tpv-step.is-active > span { background:var(--primary); box-shadow:0 0 0 3px var(--focus-ring); color:rgb(var(--white-rgb)); }
.tpv-step.is-pending > span { background:var(--primary-surface); color:var(--primary-muted); }
.tpv-heading { margin-bottom:var(--space-3xl); }
.tpv-heading__back { display:inline-block; margin:0 0 12px; border:0; background:transparent; color:var(--primary); padding:0; font:700 9px var(--font-body); }
.tpv-rate-grid { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:12px; }
.tpv-rate {
  position: relative;
  min-width: 0;
  padding: var(--space-3xl);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--card);
  box-shadow: var(--shadow);
}
.tpv-rate.is-selected { border:2px solid var(--accent-muted); background:linear-gradient(135deg, var(--accent-subtle), var(--card) 62%); }
.tpv-rate > b { position:absolute; top:0; right:0; border-radius:0 var(--radius-card) 0 var(--radius-card); background:var(--accent); color:rgb(var(--white-rgb)); padding:5px 7px; font-size:7px; letter-spacing:.06em; }
.tpv-check { position:absolute; top:10px; right:10px; display:grid; width:18px; height:18px; place-items:center; border-radius:50%; background:var(--accent); color:rgb(var(--white-rgb)); font-size:9px; }
.tpv-rate h3 { margin:0 20px 7px 0; color:var(--text); font-size:13px; }
.tpv-rate p { margin:0 0 4px; color:var(--text-muted); font-size:10px; }
.tpv-rate small { display:block; min-height:28px; color:var(--text-light); font-size:9px; line-height:1.4; }
.tpv-rate > strong { display:block; margin-top:var(--space-xl); color:var(--primary); font-family:var(--font-display); font-size:25px; }
.tpv-continue { width:100%; margin-top:16px; padding:12px; }
.tpv-continue.is-hovered { background:var(--primary-hover); box-shadow:var(--shadow); }
.tpv-summary > p { margin:0 0 7px; color:var(--primary-muted); font-size:9px; font-weight:800; letter-spacing:.08em; }
.tpv-summary h4 { margin:0 0 4px; color:var(--primary); font-family:var(--font-display); font-size:28px; }
.tpv-summary > span { color:var(--text-muted); font-size:10px; }
.tpv-summary hr { margin:14px 0; border:0; border-top:1px solid var(--border); }
.tpv-summary div { display:flex; justify-content:space-between; gap:8px; margin-top:8px; color:var(--text-muted); font-size:10px; }
.tpv-summary div strong { color:var(--text); }
.tpv-summary .tpv-summary__total { align-items:end; color:var(--text); font-weight:700; }
.tpv-summary__total strong { color:var(--primary) !important; font-family:var(--font-display); font-size:21px; }
.tpv-details-card { padding:20px; border:1px solid var(--border); border-radius:var(--radius-card); background:var(--card); box-shadow:var(--shadow); }
.tpv-details-card > b { display:inline-block; margin-bottom:14px; padding:4px 7px; border-radius:4px; background:var(--primary-surface); color:var(--primary); font-size:8px; letter-spacing:.06em; }
.tpv-field-grid { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:14px; }
.tpv-field-grid label { display:grid; min-width:0; gap:5px; color:var(--text-muted); font-size:9px; font-weight:700; }
.tpv-field-grid em { color:var(--highlight); font-style:normal; }
.tpv-field-grid label > span { color:var(--text-light); font-weight:400; }
.tpv-field-grid input { width:100%; box-sizing:border-box; border:1px solid var(--border); border-radius:var(--radius-input); background:var(--card); color:var(--text); padding:9px 10px; font:10px var(--font-body); }
.tpv-field-grid input.is-invalid { border-color:var(--highlight-muted); box-shadow:0 0 0 1px var(--highlight-muted); }
.tpv-field-grid input.is-invalid + small { color:var(--highlight); font-size:8px; }
.tpv-field-grid label:nth-child(2) input { box-shadow:0 0 0 3px var(--focus-ring); }
.tpv-consent { display:flex; gap:8px; margin-top:16px; padding-top:14px; border-top:1px solid var(--border); color:var(--text-muted); font-size:9px; line-height:1.45; }
.tpv-consent i { display:grid; width:15px; height:15px; flex:0 0 15px; place-items:center; border-radius:3px; background:var(--accent); color:rgb(var(--white-rgb)); font-size:8px; font-style:normal; }

/* Quiet admin-only emphasis: affected elements stay in their full context. */
.tpv-page[data-focus="colors.primary"] .tpv-heading h2,
.tpv-page[data-focus="colors.primary"] .tpv-continue,
.tpv-page[data-focus="colors.primary"] .tpv-summary__total strong,
.tpv-page[data-focus="colors.primaryHover"] .tpv-continue,
.tpv-page[data-focus="colors.primaryMuted"] .tpv-icon,
.tpv-page[data-focus="colors.primarySubtle"] .tpv-loading-grid,
.tpv-page[data-focus="colors.primarySurface"] .tpv-search__field.is-open,
.tpv-page[data-focus^="colors.accent"] .tpv-rate.is-selected,
.tpv-page[data-focus="colors.highlight"] input.is-invalid + small,
.tpv-page[data-focus="colors.highlightMuted"] input.is-invalid,
.tpv-page[data-focus="colors.highlightSubtle"] .tpv-calendar__day.is-limited,
.tpv-page[data-focus="colors.card"] .tpv-rate-grid,
.tpv-page[data-focus="colors.text"] .tpv-details-card,
.tpv-page[data-focus="colors.textMuted"] .tpv-heading p,
.tpv-page[data-focus="colors.textLight"] .tpv-field-grid label:last-child,
.tpv-page[data-focus="colors.border"] .tpv-details-card,
.tpv-page[data-focus="colors.focusRing"] input.is-invalid,
.tpv-page[data-focus^="colors.heroOverlay"] .tpv-hero,
.tpv-page[data-focus="brand.logoUrl"] .tpv-header__left,
.tpv-page[data-focus="brand.heroImageUrl"] .tpv-hero,
.tpv-page[data-focus="brand.faviconUrl"] .tpv-browser-tab,
.tpv-page[data-focus="fonts.display"] .tpv-heading h2,
.tpv-page[data-focus="fonts.display"] .tpv-summary h4,
.tpv-page[data-focus="fonts.body"] .tpv-field-grid,
.tpv-page[data-focus="styles.radiusCard"] .tpv-rate,
.tpv-page[data-focus="styles.radiusButton"] .tpv-continue,
.tpv-page[data-focus="styles.radiusInput"] .tpv-field-grid input,
.tpv-page[data-focus="styles.radiusHeroSearch"] .tpv-search,
.tpv-page[data-focus="styles.shadowCard"] .tpv-rate,
.tpv-page[data-focus="styles.shadowLarge"] .tpv-calendar {
  outline: 3px solid color-mix(in srgb, var(--accent) 42%, transparent);
  outline-offset: 3px;
}
.tpv-page[data-focus="colors.bg"] .tpv-site { outline:3px solid color-mix(in srgb, var(--accent) 42%, transparent); outline-offset:-3px; }

@container (max-width: 620px) {
  .tpv-shell--journey { grid-template-columns:1fr; }
  .tpv-summary { display:none; }
  .tpv-header { padding-inline:var(--space-3xl); }
  .tpv-search { right:4%; left:4%; }
  .tpv-search__button { padding-inline:14px; }
  .tpv-rate-grid,
  .tpv-field-grid { grid-template-columns:1fr; }
}

/* ───────────────────────────────────────────────────────────────
 * DS-1 admin inline-style extraction — phase 3 (2026-07-23)
 *
 * Behaviour-preserving CSS for the inline style="" attributes the earlier
 * phases deferred. Values copied verbatim. Covers: admin-webhooks,
 * admin commerce (merchant readiness), admin-auth (venue plan banner),
 * admin-customers (attribute editor), admin-service-keys,
 * admin-theme-fields (full-width grid items).
 * ─────────────────────────────────────────────────────────────── */

/* shared micro-utilities. The doubled .hint selector keeps the margin when the
   utility sits on a .hint — admin-shared.css's `.hint { margin: 0 }` loads
   after this file and would otherwise win the cascade tie. */
.adm-center         { text-align: center; }
.adm-mt-12, .hint.adm-mt-12 { margin-top: 12px; }

/* ── admin-webhooks.js ── */
.wh-empty-note      { padding: 12px 16px; margin: 0; }
.wh-empty-log       { padding: 16px 0; }
.wh-btn-xs          { padding: 3px 10px; font-size: 12px; }
.wh-page-label      { font-size: 12px; color: var(--text-muted); padding: 0 12px; }
.wh-copy-btn        { padding: 2px 8px; font-size: 11px; margin-left: 8px; }
.wh-payload-code--clamped { max-height: 160px; }
.wh-drawer-actions  { margin-top: 16px; display: flex; gap: 8px; }

/* ── Booking commerce merchant-readiness status ── */
.pay-step           { margin-bottom: 6px; }
.pay-status-note    { margin-top: 0.35rem; }

/* ── admin-auth.js (venue plan banner) ── */
.au-plan-row        { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 10px; }
.au-plan-meta       { font-size: 13px; color: var(--text-muted); }
.au-plan-meta strong { color: var(--text); }

/* ── admin-customers.js (attribute editor) ── */
.cust-attr-editor   { box-sizing: border-box; width: 100%; font-family: monospace; }
.hint.cust-attr-hint { margin-top: 6px; }

/* ── admin-service-keys.js ── */
.sk-evt--top        { align-items: flex-start; margin-bottom: 8px; }

/* ── admin-theme-fields.js ── */
.tf-span-all        { grid-column: 1 / -1; }

/* ───────────────────────────────────────────────────────────────
 * Native-element base (opt-in: `.gk-admin-native`)
 *
 * A product console or a mounted product panel that draws bare <table>,
 * <input>, <select>, <textarea>, <fieldset>, <legend> and <label> puts
 * `gk-admin-native` on its root element and gets the same look as gk-field and
 * gk-data-table without a stylesheet of its own. Anything outside that root is
 * untouched: this file is not loaded by the Extras Stock console, and no rule
 * here matches without the class.
 *
 * Every selector is wrapped in :where(), so each rule has zero specificity. A
 * product's own class or element rule always wins, and a product deletes its
 * local control styles by removing them, not by fighting this layer. Values
 * are the same tokens gk-field and gk-data-table read.
 * ─────────────────────────────────────────────────────────────── */
:where(.gk-admin-native) {
  color: var(--text);
  font-family: var(--font-body);
}
:where(.gk-admin-native *, .gk-admin-native *::before, .gk-admin-native *::after) { box-sizing: border-box; }

/* Text-entry controls, matching gk-field's slotted control. */
:where(.gk-admin-native input:not([type="checkbox"], [type="radio"], [type="range"], [type="file"], [type="color"], [type="hidden"], [type="button"], [type="submit"], [type="reset"], [type="image"]),
.gk-admin-native select,
.gk-admin-native textarea) {
  max-width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
  background-color: var(--card);
  color: var(--text);
  padding: var(--space-md) var(--space-lg);
  font-family: var(--font-body);
  font-size: var(--fs-14);
  font-weight: 400;
  line-height: var(--lh-normal);
  letter-spacing: normal;
  text-transform: none;
  transition: var(--transition-control);
}
:where(.gk-admin-native input:not([type="checkbox"], [type="radio"], [type="range"], [type="file"], [type="color"], [type="hidden"], [type="button"], [type="submit"], [type="reset"], [type="image"]):hover,
.gk-admin-native select:hover,
.gk-admin-native textarea:hover) {
  border-color: var(--primary-muted);
}
:where(.gk-admin-native input:not([type="checkbox"], [type="radio"], [type="range"], [type="file"], [type="color"], [type="hidden"], [type="button"], [type="submit"], [type="reset"], [type="image"]):focus,
.gk-admin-native select:focus,
.gk-admin-native textarea:focus) {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 var(--focus-glow-width) var(--focus-ring);
}
:where(.gk-admin-native input[aria-invalid="true"], .gk-admin-native select[aria-invalid="true"], .gk-admin-native textarea[aria-invalid="true"]) {
  border-color: var(--danger-text);
}
:where(.gk-admin-native input[aria-invalid="true"]:focus, .gk-admin-native select[aria-invalid="true"]:focus, .gk-admin-native textarea[aria-invalid="true"]:focus) {
  box-shadow: 0 0 0 var(--focus-glow-width) var(--danger-bg);
}
:where(.gk-admin-native input:disabled, .gk-admin-native select:disabled, .gk-admin-native textarea:disabled) {
  background-color: var(--primary-surface);
  color: var(--text-muted);
  cursor: not-allowed;
}
:where(.gk-admin-native input::placeholder, .gk-admin-native textarea::placeholder) { color: var(--text-placeholder); }
:where(.gk-admin-native textarea) { min-height: 5rem; resize: vertical; }

/* Dropdown: the native arrow is replaced by two gradients, so the caret needs
 * no image request and follows the text colour. */
:where(.gk-admin-native select:not([multiple], [size])) {
  appearance: none;
  padding-right: 34px;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-muted) 50%), linear-gradient(135deg, var(--text-muted) 50%, transparent 50%);
  background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

/* Tick boxes and radios keep the platform control, drawn in the accent, and
 * take the shared focus ring. */
:where(.gk-admin-native input[type="checkbox"], .gk-admin-native input[type="radio"]) {
  accent-color: var(--accent);
  margin: 0;
}
:where(.gk-admin-native input[type="checkbox"]:focus-visible, .gk-admin-native input[type="radio"]:focus-visible, .gk-admin-native input[type="range"]:focus-visible, .gk-admin-native input[type="file"]:focus-visible) {
  outline: var(--focus-outline-width) solid var(--focus-ring-color);
  outline-offset: var(--focus-outline-offset);
}

/* A label that wraps a control stacks its caption above it, in gk-field's
 * caption style. A label around a tick box or radio reads inline in body text. */
:where(.gk-admin-native label:has(> input, > select, > textarea)) {
  display: grid;
  gap: var(--space-xs);
  align-content: start;
  color: var(--text-muted);
  font-size: var(--fs-11);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
:where(.gk-admin-native label:has(> input[type="checkbox"], > input[type="radio"])) {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--text);
  font-size: var(--fs-14);
  font-weight: 500;
  letter-spacing: normal;
  text-transform: none;
}
:where(.gk-admin-native label:has(> input, > select, > textarea) > input:not([type="checkbox"], [type="radio"]),
.gk-admin-native label:has(> input, > select, > textarea) > select,
.gk-admin-native label:has(> input, > select, > textarea) > textarea) { width: 100%; }

/* Fieldset: a bordered group with a caption, like a gk-card section. */
:where(.gk-admin-native fieldset) {
  min-width: 0;
  margin: 0;
  padding: var(--space-lg) var(--space-2xl) var(--space-2xl);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
}
:where(.gk-admin-native legend) {
  padding: 0 var(--space-xs);
  color: var(--text-muted);
  font-size: var(--fs-11);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Table: gk-data-table's look on a bare <table>. The frame is the table's own
 * border with clipped corners; the head row is muted bold on the table-head
 * wash; rows are ruled by --border and the last rule is dropped. */
:where(.gk-admin-native table) {
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  border-collapse: separate;
  border-spacing: 0;
  background: var(--card);
  font-family: var(--font-body);
  font-size: var(--fs-13);
}
/* A table inside gk-data-table sits in that component's frame, so it draws no frame of its own. */
:where(.gk-admin-native gk-data-table > table) {
  overflow: visible;
  border: 0;
  border-radius: 0;
}
:where(.gk-admin-native caption) {
  padding: var(--space-md) var(--space-lg);
  color: var(--text-muted);
  font-size: var(--fs-12);
  text-align: left;
}
:where(.gk-admin-native th) {
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--border);
  background: var(--admin-table-head);
  color: var(--text-muted);
  font-weight: 700;
  text-align: left;
  white-space: nowrap;
}
:where(.gk-admin-native td) {
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: middle;
}
:where(.gk-admin-native tbody tr:last-child > td, .gk-admin-native tbody tr:last-child > th) { border-bottom: 0; }
:where(.gk-admin-native tbody tr:hover) { background: var(--primary-surface); }

/* Disclosure: a bordered panel whose summary is the caption row. The summary is
 * at least the shared touch-target height, and the body takes the panel's
 * gutter, so a form inside a <details> needs no wrapper of its own. */
:where(.gk-admin-native details) {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--card);
}
:where(.gk-admin-native summary) {
  display: flex;
  list-style: none;
  align-items: center;
  min-height: var(--gk-min-tap);
  padding: var(--space-md) var(--space-2xl);
  border-radius: var(--radius-card);
  color: var(--text);
  font-size: var(--fs-14);
  font-weight: 700;
  cursor: pointer;
}
:where(.gk-admin-native summary)::before {
  content: "";
  flex: none;
  width: 0.45em;
  height: 0.45em;
  margin-right: var(--space-md);
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(-45deg);
  transition: var(--transition-control);
}
:where(.gk-admin-native details[open] > summary)::before { transform: rotate(45deg); }
:where(.gk-admin-native details[open] > summary) { border-bottom: 1px solid var(--border); border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
:where(.gk-admin-native summary:focus-visible) {
  outline: var(--focus-outline-width) solid var(--focus-ring-color);
  outline-offset: var(--focus-outline-offset-inset);
}
:where(.gk-admin-native details > :not(summary)) { margin-inline: var(--space-2xl); }
:where(.gk-admin-native details[open] > summary + *) { margin-block-start: var(--space-lg); }
:where(.gk-admin-native details > :last-child:not(summary)) { margin-block-end: var(--space-2xl); }
