/* Alpha Menu platform palette. Public restaurant menus retain their own branding. */
body.platform-light {
  --light-bg: #eaf3fa;
  --light-panel: #ffffff;
  --light-soft: #f2f8fd;
  --light-blue: #dcecf9;
  --light-border: #b8d0e5;
  --light-text: #17324b;
  --light-muted: #526e86;
  --light-action: #2e70a9;
  --light-action-hover: #235c90;
  color-scheme: light;
  background: var(--light-bg);
  color: var(--light-text);
}
body.platform-light a { color: #1b6097; }
body.platform-light :is(input, select, textarea) { color-scheme: light; }
body.platform-light :is(input, select, textarea):focus-visible,
body.platform-light button:focus-visible,
body.platform-light :is(a, summary, [role="tab"], [role="button"]):focus-visible { outline: 3px solid #b57505; outline-offset: 3px; }
body.platform-light :is(input, textarea)::placeholder { color: #526e86; opacity: 1; }
body.platform-light :is(button, [role="button"], [role="tab"], summary) { touch-action: manipulation; }

/* Management dashboard and its asynchronously loaded sections. */
body.platform-dashboard {
  --bg: #eaf3fa;
  --panel: #f7fbff;
  --panel2: #f0f7fd;
  --text: #17324b;
  --muted: #526e86;
  --border: #bfd4e7;
  --line: #bfd4e7;
  --shadow: 0 8px 25px #375c7a17;
}
.platform-dashboard :is(.sidebar, .sidebar .sb-nav, .topbar, .content) { background: var(--light-panel); color: var(--light-text); }
.platform-dashboard :is(.nav-item:hover, .nav-item.active, .icon, .toggle, .mobile-menu-toggle, .pill) { background: var(--light-blue); color: var(--light-text); border-color: var(--light-border); }
.platform-dashboard .nav-item.license-locked { background: var(--light-soft); }
.platform-dashboard .expiry-banner { color: #694916; background: #fff3d9; }
.platform-dashboard .expiry-banner.urgent { color: #8a2732; background: #ffe8e9; }
.platform-dashboard .dashboard-notice { background: #e3f6ea; color: #155637; box-shadow: 0 12px 32px #375c7a33; }
.platform-dashboard .dashboard-notice.error { background: #fde9ea; color: #862e36; }
.platform-dashboard .content :is(input:not([type=checkbox]):not([type=radio]):not([type=color]), select, textarea) {
  background: #fff !important; color: var(--light-text) !important; border-color: var(--light-border) !important;
}
.platform-dashboard .content :is(section, article, details, fieldset, .card, .panel, .box, .orders-settings, .printer-card, .target-picker, .programming-section) {
  border-color: var(--light-border);
}
.platform-dashboard .content :is(.orders-settings, .printer-card, .target-picker, .programming-section, .card, .panel, .box) {
  background: var(--light-panel) !important; color: var(--light-text) !important;
}
.platform-dashboard .content :is(.orders-settings > summary, .target-picker > summary, .programming-section > summary) {
  background: var(--light-blue) !important; color: var(--light-text) !important;
}
.platform-dashboard .content button:not(.selected):not(.danger):not(.printer-remove) {
  background: var(--light-action); color: #fff; border-color: #205b91;
}
.platform-dashboard .content :is(.warning, .notice) { background: #fff3d9; color: #684916; border-color: #dbb866; }
.platform-dashboard .content :is(.error, .bad) { background: #fde9eb; color: #8a2635; }
.platform-dashboard .content :is(.target-selected-names, .prebill-help, .target-empty) { color: var(--light-muted); }
.platform-dashboard .content :is(h1, h2, h3, p, label, legend, small, th, td) { color: var(--light-text); }
.platform-dashboard .content :is(.hint, .muted, .help, .prebill-help, .target-selected-names) { color: var(--light-muted); }
.platform-dashboard .content :is(.target-choice, .target-picker-body, .printer-grid, .programming-section-body) { border-color: var(--light-border); }
.platform-dashboard .content .target-choice.category-linked { background: #ddecfa; border-color: #78a8d1; }
.platform-dashboard .content :is(.danger, .printer-remove) { background: #a33748; color: #fff; }
.platform-dashboard .content :is(button, [role="tab"])[aria-pressed="true"],
.platform-dashboard .content :is(button, [role="tab"])[aria-selected="true"] {
  background: #f5c65e !important; color: #2b250f !important; border-color: #94650d !important;
  box-shadow: inset 0 0 0 1px #94650d;
}
.platform-dashboard .content :is(button, summary, [role="tab"], [role="button"]) { min-height: 40px; }
.platform-dashboard .content :is(input:not([type="checkbox"]):not([type="radio"]):not([type="color"]), select, textarea) { min-height: 40px; }
.platform-dashboard .content :is(input[type="checkbox"], input[type="radio"]) { width: 20px; height: 20px; accent-color: #236ba3; cursor: pointer; }
.platform-dashboard .content :is(button, [role="button"], [role="tab"]):hover:not(:disabled) { filter: brightness(.92); }
.platform-dashboard .content :is(button, [role="button"], [role="tab"]):disabled {
  opacity: 1; background: #e5ebf1 !important; color: #496075 !important; border-color: #b6c5d2 !important; cursor: not-allowed;
}
.platform-dashboard .content :is(input, select, textarea):disabled { opacity: 1; background: #edf2f7 !important; color: #496075 !important; }
.platform-dashboard .content :is(input, select, textarea) option { color: #17324b; background: #fff; }
.platform-dashboard .content .source-category.all-selected .source-products { opacity: 1; }
.platform-dashboard .content :is(.formats-page, .pizza-panel, .printer-settings, .orders-workspace) :is(label, small, summary) { color: var(--light-text); }

/* Text and nested surfaces supplied by the dashboard's individual pages. */
.platform-dashboard .content .modal { background: rgba(23, 50, 75, .45); }
.platform-dashboard .content .modal-card {
  background: var(--light-panel) !important; color: var(--light-text) !important;
  border-color: var(--light-border) !important; box-shadow: 0 18px 40px #17324b33;
}
.platform-dashboard .content .modal-card :is(h2, h3, h4, label) { color: var(--light-text) !important; }
.platform-dashboard .content .modal-card :is(p, .muted) { color: var(--light-muted) !important; opacity: 1; }
.platform-dashboard .legal-footer { background: #e4f0fa; color: #17324b; border-color: var(--light-border); }
.platform-dashboard .legal-footer a { color: #145785; }
.platform-dashboard .content :is(h4, summary, .tool-group-title, .eyebrow, .form-section-label) { color: var(--light-text); }
.platform-dashboard .content :is(.products-head .eyebrow, .catalog-head .eyebrow) { color: #245f90; }
.platform-dashboard .content :is(.product-variants-picker, .bulk-operations, .customer-card, .customers-metric, .customer-stats span, .variants-head, .variant-card, .variant-row, .variant-editor, .product-picker, .product-group) {
  background: var(--light-soft) !important; color: var(--light-text) !important; border-color: var(--light-border) !important;
}
.platform-dashboard .content :is(.customers-head p, .customer-contact, .customer-card > small, .variant-card > p, .variant-summary-price, .variant-summary-count, .variant-editor label, .variant-empty, .variant-selection-summary, .product-variant-empty) { color: var(--light-muted) !important; }
.platform-dashboard .content :is(.customer-stats span, .variant-summary-name, .product-picker > strong, .product-group > strong, .product-choice, .available, .bulk-operations summary, .product-variants-picker summary) { color: var(--light-text) !important; }
.platform-dashboard .content .customer-contact a { color: #145785; }
.platform-dashboard .content :is(#catForm, #scForm) { background: #fff; border-color: var(--light-border); box-shadow: 0 8px 22px #375c7a17; }
.platform-dashboard .content :is(#catForm, #scForm)::before { color: var(--light-text); }
.platform-dashboard .content :is(.variant-summary-status, .variant-summary-status.off) { color: #fff; }
.platform-dashboard .content :is(.store-preview, .store-image-field, .lang-card, .lang-option, .stat-card, .stats-panel, .order-stats-controls, .order-stats-split span, .license-card, .license-stat, .plan-card, .service-bar) {
  background: var(--light-soft) !important; color: var(--light-text) !important; border-color: var(--light-border) !important;
}
.platform-dashboard .content :is(.store-preview, .lang-info, .stat-card strong, .license-stat strong, .plan-card ul, .plan-kicker, .service-bar p, .order-stats-controls label) { color: var(--light-text) !important; }
.platform-dashboard .content .lang-info { background: #e4f2fd !important; border-color: #a8cbe8; }
.platform-dashboard .content :is(.lang-message.ok, .license-badge) { background: #e2f4e8; color: #155737; }
.platform-dashboard .content :is(.lang-message.error, .license-badge.off) { background: #fde9eb; color: #8a2635; }
.platform-dashboard .content :is(.license-stat small, .plan-card p, .plan-wrap > p) { color: var(--light-muted); }
.platform-dashboard .content :is(.plan-action, .service-link) { background: var(--light-action); color: #fff; border-color: #205b91; }
.platform-dashboard .content :is(.pending-plan, .expiry-warning) { background: #fff3d9; color: #684916; }
.platform-dashboard .content .expiry-warning.urgent { background: #fde9eb; color: #8a2635; }
.platform-dashboard .content :is(.home-dashboard, .home-hero, .quick-action, .home-tip, .useful-panel, .advice, .setup-card, .setup-item) { color: var(--light-text); }
.platform-dashboard .content :is(.home-hero, .home-tip, .useful-panel, .advice, .setup-card, .setup-item) { background: var(--light-soft); border-color: var(--light-border); }
.platform-dashboard .content :is(.home-hero p, .home-tip p, .advice p, .useful-panel span, .setup-item, .home-section-title) { color: var(--light-muted); }
.platform-dashboard .content button.quick-action { background: #fff !important; color: var(--light-text) !important; border-color: var(--light-border); }
.platform-dashboard .content button.quick-action.primary { background: #e4f1fc !important; }
.platform-dashboard .content button.quick-action:hover { background: #dcecf9 !important; }
.platform-dashboard .content .quick-action :is(strong, .action-copy span, .action-arrow) { color: var(--light-text); }
.platform-dashboard .content .useful-panel strong { color: var(--light-text); }
.platform-dashboard .content .setup-item.done { background: #e3f5e9; color: #155737; }
.platform-dashboard .guide-dialog { background: #fff; color: var(--light-text); border-color: var(--light-border); }
.platform-dashboard .guide-dialog :is(h2, p, .guide-fields, .guide-step-label) { color: var(--light-text); }
.platform-dashboard .guide-fields { background: var(--light-soft); }
.platform-dashboard .content .account-card { background: #fff; color: var(--light-text); border-color: var(--light-border); }
.platform-dashboard .content :is(.account-badge, .account-message.ok) { background: #e4f1fc; color: #164c75; border-color: #a8cbe8; }
.platform-dashboard .content .account-message.error { background: #fde9eb; color: #8a2635; }
.platform-dashboard .content :is(.account-sub, .account-note) { color: var(--light-muted); }
.platform-dashboard .content .account-logout { background: #fde9eb; color: #8a2635; }

/* Pizzeria and Formati are loaded after the dashboard stylesheet: keep their own surfaces light. */
.platform-dashboard .content :is(.pizza-panel, .formats-page) { color: var(--light-text); }
.platform-dashboard .content :is(.pizza-card, .formats-card) {
  background: #fff !important; color: var(--light-text) !important; border-color: var(--light-border) !important;
}
.platform-dashboard .content .pizza-notice { background: #e4f1fc !important; border-color: #9ec3e2 !important; }
.platform-dashboard .content :is(.pizza-card, .formats-card) :is(h2, h3, h4, strong, label, small, summary) { color: var(--light-text); }
.platform-dashboard .content :is(.pizza-panel, .formats-page) p { color: var(--light-muted); }
.platform-dashboard .content :is(.pizza-format, .pizza-preparation details, .pizza-quick-products label, .format-category, .stock-group, .format-row, .stock-format-row, .taste-sources, .source-category) {
  background: var(--light-soft) !important; color: var(--light-text) !important; border-color: var(--light-border) !important;
}
.platform-dashboard .content :is(.format-category, .stock-group) > summary {
  background: var(--light-blue) !important; color: var(--light-text) !important;
}
.platform-dashboard .content :is(.format-category, .stock-group) > summary :is(strong, small) { color: var(--light-text) !important; }

/* Adapt settings to the panel width, including when the sidebar is open. */
.platform-dashboard .content :is(.formats-page, .pizza-panel, .printer-settings) { container-type: inline-size; container-name: settings; min-width: 0; width: 100%; }
.platform-dashboard .content :is(.formats-page, .pizza-panel, .printer-settings) :is(input, select, textarea, label) { min-width: 0; max-width: 100%; box-sizing: border-box; }
.platform-dashboard .content :is(.formats-card, .pizza-card) { padding: 12px; }
.platform-dashboard .content :is(.formats-card, .pizza-card) > p { font-size: .85rem; margin: 6px 0 8px; }
.platform-dashboard .content :is(.format-category-body, .stock-group-body) { padding: 9px 10px; }
.platform-dashboard .content .format-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) auto; gap: 7px; }
.platform-dashboard .content .stock-format-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) 85px auto auto; gap: 7px; }
.platform-dashboard .content .pizza-overview { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.platform-dashboard .content .pizza-card label { margin: 7px 0; gap: 4px; }
.platform-dashboard .content .pizza-format { grid-template-columns: minmax(0, 1fr) 100px auto auto; }
.platform-dashboard .content .printer-card-head { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 110px 65px auto; }
.platform-dashboard .content .printer-settings .orders-settings > summary { min-height: 40px; padding: 8px 11px; font-size: .95rem; }
.platform-dashboard .content .printer-settings .panel-body { padding: 4px 10px 10px; }
.platform-dashboard .content .printer-settings .programming-section-body .printer-grid { grid-template-columns: 35px minmax(0, 1fr) 65px; }
@container settings (max-width: 760px) {
  .platform-dashboard .content :is(.stock-format-row, .printer-card-head, .pizza-format) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .platform-dashboard .content .stock-format-row .stock-format-picker { grid-column: 1 / -1; }
  .platform-dashboard .content .pizza-overview { grid-template-columns: minmax(0, 1fr); }
  .platform-dashboard .content .printer-settings #fiscalFields:not([hidden]) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .platform-dashboard .content .printer-settings #fiscalFields > .printer-grid { grid-column: 1 / -1; }
}
@container settings (max-width: 520px) {
  .platform-dashboard .content :is(.format-row, .stock-format-row, .printer-card-head, .printer-targets, .pizza-format) { grid-template-columns: minmax(0, 1fr); }
  .platform-dashboard .content :is(.format-row, .stock-format-row, .printer-card-head) > * { grid-column: auto; }
  .platform-dashboard .content .format-cuts { gap: 6px 10px; }
  .platform-dashboard .content .printer-settings .header-config-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .platform-dashboard .content .printer-settings .header-config-row label { grid-column: 1 / -1; }
  .platform-dashboard .content .target-options { grid-template-columns: minmax(0, 1fr); }
  .platform-dashboard .content .formats-toolbar button { flex: 1 1 auto; }
}
.platform-dashboard .content .formats-message,.platform-dashboard .content .pizza-message { color: #155737; }
.platform-dashboard .content :is(.pizza-panel, .formats-page) :is(input, select, textarea):focus-visible,
.platform-dashboard .content :is(.pizza-panel, .formats-page) :is(button, summary):focus-visible { outline: 3px solid #d6951e; outline-offset: 2px; }

/* Counter, tables, orders and receipts. Layout is unchanged. */
.platform-operations .order-lane {
  background: var(--light-soft); color: var(--light-text); border-color: var(--light-border);
}
.platform-operations .order-lane-head { color: var(--light-text); border-color: var(--light-border); }
.platform-operations .order-lane-head span {
  background: var(--light-blue); color: var(--light-text);
}
.platform-operations .order-lane.ready .order-lane-head span { background: #c7e2f8; color: #123c62; }
.platform-operations .order-lane.done .order-lane-head span { background: #e1e8ee; color: #37536e; }
.platform-operations :is(.order-lane-empty, .order-summary-count, .order-line-variants, .order-line-meta, #status) { color: var(--light-muted); }
.platform-operations .order-summary::after { color: var(--light-action); }
.platform-operations .order-card-body { border-color: var(--light-border); }
.platform-operations .order-card.done { background: #edf2f6; color: var(--light-muted); }
.platform-operations .order-card.done .meta { color: var(--light-muted); }
.platform-operations .order-product-group strong { color: var(--light-text); }
.platform-operations .filter-options > summary { background: var(--light-action); color: #fff; border-color: var(--light-border); }
.platform-operations :is(.topbar, .manual-order, .manual-catalog, .manual-cart, .tables-page, .receipts-page, .group, .order-card, .history, .table-room, .table-status-card, .table-account-items) {
  background: var(--light-panel); color: var(--light-text); border-color: var(--light-border);
}
.platform-operations :is(.banco-toolbar, .manual-dough-stock, .manual-dough-stock-card, .manual-product, .manual-cart-row, .table-account-line, .table-account-order, .receipt-row, .table-prebill-preview, .history-card, .metric, .prep-item, .prep, .order-card li, .empty, .table-quick-menu, .table-history-dialog, .product-quick-menu, .product-quick-edit, .table-save-dialog, .table-cancel-dialog, .table-prebill-dialog, .cart-edit-dialog, .banco-search-popover, .manual-search-panel, .filter-options .filter-content, .manual-customer, .manual-pickup) {
  background: var(--light-soft); color: var(--light-text); border-color: var(--light-border);
}
.platform-operations :is(.group-head, .manual-pizzeria-head, .payment-head) { background: var(--light-blue); color: var(--light-text); }
.platform-operations :is(.toplinks a, .side-view-nav button, .side-tools > summary, .sidebar-toggle, .banco-action-icon, .manual-categories button, .view-toggle button, .toolbar button, .quantity-switch button, .table-room-tab, .table-history-button, .counter-quick-actions button, .banco-keypad button) {
  background: var(--light-blue); color: var(--light-text); border-color: var(--light-border);
}
.platform-operations :is(.toplinks a, .side-view-nav button, .side-tools > summary):hover { background: #cbdff1; }
.platform-operations :is(.side-view-nav button[aria-pressed=true], .view-toggle button[aria-pressed=true], .manual-categories button.active, .table-room-tab[aria-selected=true]) {
  background: #c7e2f8; color: #123c62; border-color: #4f8cbd;
}
.platform-operations :is(.toolbar input, .toolbar select, .filter-content, .default-page select, .manual-order input:not([type=checkbox]), .manual-order select, .manual-order textarea, .history-controls input, .history-controls select, .banco-received, .banco-search-popover input, .product-quick-edit input, .product-quick-edit select, .product-quick-edit textarea) {
  background: #fff; color: var(--light-text); border-color: var(--light-border);
}
.platform-operations :is(.manual-order-head p, .manual-order label, .manual-product-price, .manual-product small, .manual-cart-empty, .manual-cart-meta, .history p, .table-preview, .order-card .meta, .lead, .metric span) {
  color: var(--light-muted);
}
.platform-operations :is(.receipt-row small, .receipts-note, .table-account-order-head, .table-account-items > strong, .order-summary-main small, .prep-category, .group-head span, .toolbar label) { color: var(--light-muted); }
.platform-operations .table-preview b { color: var(--light-text); }
.platform-operations .receipt-row { background: #fff; }
.platform-operations .receipt-actions button { background: var(--light-action); color: #fff; border-color: #3276ac; }
.platform-operations :is(.cart-edit-dialog input, .cart-edit-dialog select, .banco-search-popover input) { background: #fff; color: var(--light-text); border-color: var(--light-border); }
.platform-operations .cart-edit-dialog :is(h2, label, p) { color: var(--light-text); }
.platform-operations .cart-edit-dialog #counterDiscountTotal,
.platform-operations .cart-edit-dialog #counterDiscountHelp { color: var(--light-muted); margin: 0; }
.platform-operations .cart-edit-dialog .counter-discount-status { margin: 0; padding: 9px 11px; border-radius: 8px; background: #fde9eb; color: #8a2635; }
.platform-operations .cart-edit-dialog .counter-discount-status[hidden] { display: none; }
.platform-operations .manual-submit { background: var(--light-panel); color: var(--light-text); }
.platform-operations .brand small { color: var(--light-muted); }
.platform-operations :is(.prep strong, .prep-item .prep-total-number, .order-line-name, .brand, .manual-product strong) { color: var(--light-text); }
.platform-operations :is(.manual-product:hover, .manual-product:focus-visible, .order-summary:hover) { background: #e4f1fc; }
.platform-operations :is(.manual-order button, .history button, .table-quick-actions button, .table-save-actions button, .table-cancel-actions button, .table-prebill-actions button) { border-color: #3276ac; }
.platform-operations :is(.manual-order button, .history button, .table-quick-actions button, .table-save-actions button, .table-cancel-actions button, .table-prebill-actions button):not(.active):not(.selected):not(.save-only):not(.cancel):not(.danger):not(.cancel-back):not(.cancel-print):not(.table-add-products) { background: var(--light-action); color: #fff; }
.platform-operations .manual-order button.table-add-products { background: #17794e !important; color: #fff; }
.platform-operations :is(.table-account-banner, .table-save-dialog .save-only) { background: #fff1d2; color: #64450e; border-color: #d5a344; }
.platform-operations .table-account-banner * { color: inherit; }
.platform-operations :is(.manual-cart-row.selected, .table-account-line.selected) { background: #d9ebfa; color: var(--light-text); }
.platform-operations :is(.manual-categories button.active, .manual-combine button, .counter-quick-actions button.active) { background: #f5c65e; color: #3f300c; border-color: #d7a83d; }
.platform-operations .banco-mode .manual-combine button { background: #c7edf0; color: #164550; border-color: #3692a0; }
.platform-operations :is(.receipt-status, .table-state) { color: #fff; }
.platform-operations .manual-pickup > strong { color: #684916; }
.platform-operations .manual-slot-field > span { color: var(--light-text); }
.platform-operations .manual-order-top { background: var(--light-blue); border-color: var(--light-border); }
.platform-operations .manual-order :is(.manual-top-button, .manual-top-search)[aria-expanded=true] { background: #f5c65e !important; color: #2b250f !important; border-color: #ae790e !important; }
.platform-operations .manual-order .manual-slot-buttons button[aria-pressed=true] { background: #f5c65e !important; color: #2b250f !important; border-color: #ae790e !important; box-shadow: inset 0 0 0 2px #fff, 0 0 0 2px #ae790e; }
.platform-operations .manual-order .manual-inline-slots button[aria-pressed=true] { background: #f5c65e !important; color: #2b250f !important; border-color: #ae790e !important; box-shadow: inset 0 0 0 2px #fff, 0 0 0 2px #ae790e; }
.platform-operations :is(.manual-dough-stock-head strong, .manual-dough-stock-head span, .manual-customer-summary span) { color: var(--light-text); }
.platform-operations .manual-dough-stock-card { min-width: 150px; }
.platform-operations .manual-dough-stock-card > div > strong { color: #17324f; font-size: .76rem; }
.platform-operations .manual-dough-stock-card small,
.platform-operations .manual-dough-stock-note { color: #37536e; }
.platform-operations .manual-dough-stock-card:focus-visible { outline: 3px solid #2b74ad; outline-offset: 2px; }
.platform-operations .empty-confirm-dialog { background: #fff; color: var(--light-text); border-color: var(--light-border); }
.platform-operations .empty-confirm-actions button:first-child { background: var(--light-blue); color: var(--light-text); border-color: var(--light-border); }
.platform-operations .empty-confirm-actions .danger { background: #ad3540; color: #fff; border-color: #ad3540; }
.platform-operations :is(button, summary, [role="button"], [role="tab"]) { min-height: 40px; }
.platform-operations :is(.manual-order-workspace, .manual-catalog, .manual-cart, .manual-products, .banco-pay, .banco-keypad) { min-width: 0; }
.platform-operations :is(.manual-product, .manual-categories button, .table-room-tab, .banco-pay-methods button) { overflow-wrap: anywhere; }
.platform-operations :is(button, [role="tab"])[aria-pressed="true"],
.platform-operations :is(button, [role="tab"])[aria-selected="true"] { box-shadow: inset 0 0 0 2px #b57505, 0 0 0 1px #fff; }
.platform-operations :is(button, [role="tab"]):disabled { opacity: 1; background: #e5ebf1; color: #496075; border-color: #b6c5d2; cursor: not-allowed; }

/* Payment window is shared by order, table and counter checkout. */
.platform-light .payment-dialog { background: #fff; color: var(--light-text); border-color: var(--light-border); }
.platform-light .payment-head, .platform-light .payment-tools { background: var(--light-blue); color: var(--light-text); border-color: var(--light-border); }
.platform-light .payment-summary { background: var(--light-soft); color: var(--light-text); border-color: var(--light-border); }
.platform-light .payment-dialog button:not([aria-pressed=true]):not(.payment-submit) { background: var(--light-action); color: #fff; }
.platform-light .payment-controls input { background: #fff; color: var(--light-text); border-color: var(--light-border); }
.platform-light .payment-notice { color: var(--light-muted); }
.platform-light .payment-message { background: #fff3d9; color: #684916; }
.platform-light .payment-message.error { background: #fde9eb; color: #8a2635; }

/* Choice, employee and administrative screens. */
.platform-admin {
  --bg: #eaf3fa;
  --panel: #fff;
  --panel2: #f2f8fd;
  --text: #17324b;
  --muted: #526e86;
  --line: #bfd4e7;
}
.platform-admin header, .platform-operations > header { background: #fff; color: var(--light-text); border-color: var(--light-border); }
.platform-admin .wrap { background: var(--light-bg); }
.platform-admin .panel { background: #fff; }
.platform-admin button:not(.danger) { background: var(--light-action); color: #fff; border-color: #3276ac; }
.platform-operations :is(.tools, .tools select, .group h2, .card, .order-card) { background: var(--light-soft); color: var(--light-text); border-color: var(--light-border); }
.platform-operations :is(.tools input, .tools select) { background: #fff; color: var(--light-text); }
.platform-light .choice, .platform-light .choice.orders, .platform-light .panel, .platform-light .order-modal, .platform-light .paypal-dialog {
  background: #fff; color: var(--light-text); border-color: var(--light-border); box-shadow: 0 10px 30px #375c7a18;
}
.platform-light .choice:hover, .platform-light .choice.orders:hover { background: var(--light-soft); }
.platform-light .choice span:last-child, .platform-light .intro { color: var(--light-muted); }
.platform-light .panel :is(input, select), .platform-light .order-modal :is(input, select, textarea) {
  background: #fff; color: var(--light-text); border-color: var(--light-border);
}
.platform-light :is(.order-modal, .paypal-dialog) button:not(.danger) { background: var(--light-action); color: #fff; }
.platform-light .paypal-details, .platform-light .table-wrap { background: var(--light-soft); color: var(--light-text); border-color: var(--light-border); }
.platform-light th { background: var(--light-blue); color: var(--light-text); }

/* Alpha Menu landing page. Restaurant-specific published menus are untouched. */
.platform-marketing {
  --bg: #eaf3fa;
  --text: #17324b;
  --muted: #526e86;
  --card: #fff;
  --line: #bfd4e7;
  --shadow: 0 14px 35px #375c7a1c;
}
.platform-marketing :is(.hero, main, .highlight, .footer) { background: var(--light-bg); color: var(--light-text); border-color: var(--light-border); }
.platform-marketing .hero { background: radial-gradient(circle at 80% 15%, #d4e8f9, transparent 43%), linear-gradient(145deg,#f8fbff,#e9f3fb); }
.platform-marketing .nav, .platform-marketing :is(.hero-card, .grid article, .price-card, .demo-shell, .demo-toolbar, .modal-card) {
  background: #fff; color: var(--light-text); border-color: var(--light-border); box-shadow: var(--shadow);
}
.platform-marketing h1 { background: none; -webkit-background-clip: initial; background-clip: initial; color: #163f63; }
.platform-marketing :is(.subtitle, .section-header p, .menu-item span, .demo-toolbar small) { color: var(--light-muted); }
.platform-marketing :is(.nav-link, .footer a, .demo-toolbar a, .price) { color: #1b6097; }
.platform-marketing :is(.stats > div, .btn-secondary, .btn-outline) { background: var(--light-soft); color: var(--light-text); border-color: var(--light-border); }
.platform-marketing .stats strong { color: var(--light-text); }
.platform-marketing :is(.pill, .section-kicker) { color: #955027; background: #fff0db; border-color: #ead0a9; }
.platform-marketing .badge { color: #17603d; background: #e3f5e9; border-color: #9ed5b1; }
.platform-marketing .btn-primary { background: #2e70a9; color: #fff; box-shadow: 0 8px 20px #2e70a933; }
.platform-marketing :is(.modal-card input, .modal-card select) { background: #fff; color: var(--light-text); border-color: var(--light-border); }

/* Account entry screens retain their layout but no longer use a dark photo wash. */
.platform-auth { background: radial-gradient(circle at 75% 10%,#d7ebfb,#eaf3fa 55%,#f9fcff) !important; }
.platform-auth::before { display: none; }
.platform-auth :is(.login-card, .register-card, .trial-card, .card) { background: #fff; color: var(--light-text); box-shadow: 0 16px 44px #375c7a25; }
.platform-auth :is(.benefits, .provider-btn) { background: var(--light-soft); color: var(--light-text); border-color: var(--light-border); }
.platform-auth :is(.btn:not(.provider-btn), .cta) { background: #2e70a9; color: #fff; }
.platform-auth .apple-btn { background: #111 !important; color: #fff !important; }
.platform-auth .legal-links { color: var(--light-muted); }
.platform-operations #manualCustomer { padding: 8px 10px; }
.platform-operations #manualCustomer .manual-customer-details { gap: 5px; }
.platform-operations #manualCustomer label { align-content: start; gap: 3px; }
.platform-operations #manualCustomer .manual-client-fields { align-items: start; gap: 8px; }
.platform-operations #manualCustomer input:not([type=checkbox]):not([type=hidden]),
.platform-operations #manualCustomer textarea { height: 32px; min-height: 32px; padding: 5px 8px; }
.platform-operations #manualCustomer small { font-size: .72rem; line-height: 1.25; }
.platform-operations #manualCustomer summary { min-height: 28px; padding-block: 3px; }
.platform-operations #manualCustomer .customer-options { display: flex; flex-wrap: wrap; gap: 5px 18px; align-items: center; }
.platform-operations #manualCustomer .customer-options label { margin: 0; }
.platform-operations #manualCustomer .customer-editor-actions { gap: 6px; margin-top: 2px; }
.platform-operations #manualCustomer .customer-editor-actions button { min-height: 34px; padding: 5px 9px; }
.platform-operations #manualCustomer :is(#customerResults, #manualCustomerStatus, #customerCityStatus, #customerVatStatus):empty { display: none; }
.platform-operations #manualCustomer #manualCustomerStatus { margin: 0; }
