/* Shared preferences are applied before paint. Business images and controls stay available. */
:root { --a11y-focus:#ffbb70; scroll-padding-top:6rem; }
/* Opt-in contrast has priority over custom themes as well as product styles. */
html[data-a11y-contrast="true"] body {--a11y-ink:#fff;--a11y-paper:#101010;--a11y-muted:#eee;--a11y-focus:#ffdf70;}
html[data-a11y-contrast="true"] body,
html[data-a11y-contrast="true"] :is(.sidebar,.topbar,.public-hero,.report-public-hero,.guest-destination,.panel,.card,.modal,dialog,.guest-category,.guest-dish,.dish-detail,.guest-menu-intro,.welcome-card,.menu-home-card,.restaurant-card,.report-card,.settings-card,.notification-toast,.public-header,.app-footer,.dropdown-menu,.live-map-detail,.live-map-sidebar,.report-workspace-header,.map-report-row,.geo-toolbar,.filter-bar,.field-group,.menu-tabs,.restaurant-nav,.report-nav,input,select,textarea,.button.secondary,.icon-button,.menu-category-tab,.menu-tab,.pill,.badge) {background:var(--a11y-paper)!important;color:var(--a11y-ink)!important;border-color:var(--a11y-ink)!important;box-shadow:none!important;}
html[data-a11y-contrast="true"] :is(h1,h2,h3,h4,p,label,legend,strong,small,.muted,a,span,th,td) {color:var(--a11y-ink)!important;text-shadow:none!important;}
html[data-a11y-contrast="true"] :is(.button:not(.secondary),.notification-count) {background:var(--a11y-ink)!important;color:var(--a11y-paper)!important;border:2px solid var(--a11y-ink)!important;}
html[data-a11y-contrast="true"] .button:not(.secondary) :is(span,svg) {color:var(--a11y-paper)!important;}
html[data-a11y-contrast="true"] a:not(.button) {text-decoration:underline!important;}
html[data-a11y-font="true"] body,
html[data-a11y-font="true"] :is(button,input,select,textarea,h1,h2,h3,h4,p,label,legend,small,span,a,td,th) {font-family:Verdana,Arial,sans-serif!important;}
html[data-a11y-spacing="true"] body {line-height:1.5!important;letter-spacing:.12em!important;word-spacing:.16em!important;}
html[data-a11y-spacing="true"] :is(p,li,label,button,input,select,textarea,h1,h2,h3,h4,td,th,small,span,a) {line-height:1.5!important;letter-spacing:.12em!important;word-spacing:.16em!important;}
html[data-a11y-spacing="true"] p {margin-bottom:2em!important;}
html[data-a11y-motion="true"] *,html[data-a11y-motion="true"] *::before,html[data-a11y-motion="true"] *::after {animation:none!important;transition:none!important;scroll-behavior:auto!important;}
html[data-a11y-targets="true"] :is(button,.button,a[role="button"],.icon-button,.menu-category-tab,.menu-tab,.restaurant-nav a,.report-nav a,.mapboxgl-ctrl button) {min-width:44px!important;min-height:44px!important;}
html[data-a11y-targets="true"] label:has(input:is([type="checkbox"],[type="radio"])) {min-height:44px;display:flex;align-items:center;gap:.75rem;}
html[data-a11y-decorative="true"] [data-a11y-decorative] {display:none!important;}
html[data-a11y-simplified="true"] :is(.cards,.card-grid,.stats-grid,.form-grid,.guest-dishes,.guest-menu-grid,.menu-home-grid,.restaurant-grid,.report-sites-grid,.report-equipment-grid,.live-map-layout) {grid-template-columns:minmax(0,1fr)!important;}
html[data-a11y-simplified="true"] :is(.guest-dish,.menu-home-card) {max-width:100%;}
[data-map-presentation="list"] [data-live-canvas] {display:none!important;}
[data-map-presentation="list"] .live-map-layout {display:flex!important;flex-direction:column;}
[data-map-presentation="list"] .live-map-sidebar {position:static;max-height:none;width:100%;}
[data-map-presentation="list"] .live-map-stage {min-height:0;}
.a11y-table-scroll {max-width:100%;overflow-x:auto;overscroll-behavior-inline:contain;}
.a11y-table-scroll table {min-width:100%;}
:focus-visible {outline:3px solid var(--a11y-focus)!important;outline-offset:3px!important;box-shadow:0 0 0 5px var(--a11y-paper,#182522)!important;}
/* Navigation focuses static headings for screen readers without framing the title. */
:is(h1,h2)[tabindex="-1"]:focus {outline:none!important;box-shadow:none!important;}
[aria-invalid="true"] {border:2px dashed currentColor!important;}
.a11y-dialog-open {overflow:hidden;}
.a11y-panel {width:min(42rem,calc(100% - 2rem));max-width:calc(100% - 2rem);max-height:calc(100dvh - 2rem);padding:0;border:1px solid var(--border,#68716b);border-radius:1.25rem;background:var(--theme-panel,var(--card,#202725));color:var(--theme-text,var(--ink,#f5f4ef));overflow:auto;overscroll-behavior:contain;box-sizing:border-box;}
.a11y-panel::backdrop {background:rgb(0 0 0 / .65);}
.a11y-panel-header {position:relative;display:flex;gap:1rem;align-items:flex-start;justify-content:space-between;padding:1rem;background:inherit;border-bottom:1px solid currentColor;}
.a11y-panel-header h2 {margin:0;font-size:1.25rem;line-height:1.4;overflow-wrap:anywhere;}
.a11y-panel-header button {display:flex;align-items:center;gap:.5rem;flex-shrink:0;min-width:44px;min-height:44px;}
.a11y-panel-header svg {width:1.25rem;height:1.25rem;flex-shrink:0;}
.a11y-panel-content {padding:1rem;min-width:0;}
.a11y-panel-content p {font-size:1rem;}
.a11y-panel fieldset {min-width:0;margin:1rem 0;padding:1rem;border:1px solid currentColor;border-radius:.75rem;}
.a11y-panel legend {padding:0 .4rem;font-weight:700;font-size:1.125rem;}
.a11y-panel label {font-size:1rem;}
.a11y-panel select {display:block;box-sizing:border-box;width:100%;min-width:0;min-height:44px;margin:.5rem 0 1rem;font-size:1rem;}
.a11y-panel .a11y-choice {display:flex;gap:.75rem;align-items:flex-start;min-height:44px;padding:.5rem 0;cursor:pointer;}
.a11y-choice input {appearance:auto!important;position:static!important;flex:0 0 1.25rem;width:1.25rem!important;height:1.25rem!important;min-height:0!important;margin:.15rem 0 0!important;opacity:1!important;}
.a11y-choice span {min-width:0;overflow-wrap:anywhere;}
.a11y-choice small {display:block;margin-top:.25rem;font-size:.875rem;line-height:1.5;}
.a11y-panel-footer {display:flex;flex-wrap:wrap;gap:.75rem;padding:1rem max(1rem,env(safe-area-inset-right)) max(1rem,env(safe-area-inset-bottom)) max(1rem,env(safe-area-inset-left));border-top:1px solid currentColor;}
/* Shared temporal inputs inherit each product's colours and custom theme. */
html body input:is([type="date"],[type="datetime-local"],[type="month"],[type="week"],[type="time"])[type] {display:block;width:100%;min-width:0;min-height:48px;max-width:100%;box-sizing:border-box;padding:.625rem .75rem;border:1px solid var(--border);border-radius:var(--radius-md,12px);background:var(--card);color:var(--ink);font-family:inherit;font-size:1rem;line-height:1.5;font-variant-numeric:tabular-nums;box-shadow:inset 0 1px 2px #00000008;transition:border-color .15s,box-shadow .15s;}
html body input:is([type="date"],[type="datetime-local"],[type="month"],[type="week"],[type="time"])[type]:hover:not(:disabled) {border-color:var(--cyan);}
html body input:is([type="date"],[type="datetime-local"],[type="month"],[type="week"],[type="time"])[type]:focus-visible {border-color:var(--cyan);outline:2px solid var(--cyan);outline-offset:3px;box-shadow:0 0 0 4px color-mix(in srgb,var(--cyan) 12%,transparent);}
html body input:is([type="date"],[type="datetime-local"],[type="month"],[type="week"],[type="time"])[type]:disabled {opacity:.55;cursor:not-allowed;}
input:is([type="date"],[type="datetime-local"],[type="month"],[type="week"],[type="time"])::-webkit-calendar-picker-indicator {width:1.125rem;height:1.125rem;margin:0 0 0 .5rem;padding:.375rem;border-radius:8px;background-color:color-mix(in srgb,var(--cyan) 14%,transparent);cursor:pointer;opacity:1;}
input:is([type="date"],[type="datetime-local"],[type="month"],[type="week"],[type="time"])::-webkit-datetime-edit {min-width:0;padding:0;}
input:is([type="date"],[type="datetime-local"],[type="month"],[type="week"],[type="time"])::-webkit-datetime-edit-fields-wrapper {padding:0;}
.accessibility-trigger {display:inline-flex;align-items:center;justify-content:center;gap:.5rem;width:auto;flex:0 0 auto;min-height:44px!important;min-width:44px!important;}
.topbar .a11y-trigger-label {display:none;}
.topbar .profile-menu-button {min-height:48px;padding:0;gap:10px;}
.topbar .profile-menu-button > .avatar.small {width:48px;height:48px;min-width:48px;display:flex;align-items:center;justify-content:center;border-radius:14px;font-size:.9375rem;}
.profile-company-logo {display:block;width:100%;height:100%;object-fit:contain;padding:4px;border-radius:inherit;}
.public-header .a11y-trigger-label {display:none;}
.report-team-cards {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(300px,100%),1fr));gap:16px;margin:20px 0 32px;}
html body .report-site-nav .tab {display:flex;flex-wrap:nowrap;gap:6px;align-items:center;}
html body .report-site-nav .tab > span:not(.report-pro-badge) {white-space:nowrap;}
html body .report-site-nav .report-pro-badge {flex-shrink:0;margin:0;}
html body .report-site-nav {grid-template-columns:repeat(auto-fit,minmax(205px,1fr));}
html body [data-report-builder] .report-zone > details {background:transparent!important;color:var(--ink);}
.report-team-cards .card {min-width:0;overflow-wrap:anywhere;}
.report-team-cards .section-heading {align-items:flex-start;gap:12px;flex-wrap:wrap;}
.report-team-cards .inline {gap:8px;}
.report-edit-dialog .section-heading {gap:16px;align-items:flex-start;}
.report-edit-dialog .section-heading h2 {min-width:0;overflow-wrap:anywhere;}
.report-edit-dialog .section-heading > button.icon-button {flex:0 0 48px;width:48px!important;min-width:48px;height:48px;padding:0!important;display:flex;align-items:center;justify-content:center;}
.api-doc-section,.api-endpoint {min-width:0;}
.api-endpoint > summary {display:flex;align-items:center;flex-wrap:wrap;gap:10px;}
.api-method {display:inline-flex;align-items:center;justify-content:center;min-width:64px;padding:4px 10px;border-radius:6px;font:700 .75rem ui-monospace,Consolas,monospace;background:#1c514b;color:#b6e6dc;}
.api-method-post {background:#51472b;color:#ffe1a0;}
.api-method-patch {background:#393c68;color:#d9d6ff;}
.api-code-block {min-width:0;margin:20px 0;border:1px solid var(--border);border-radius:12px;overflow:hidden;background:#101d25;color:#e1e9ee;}
.api-code-toolbar {display:flex;align-items:center;gap:12px;padding:10px 14px;border-bottom:1px solid #ffffff19;background:#ffffff05;font-size:.8125rem;}
.api-code-toolbar > span {margin-left:auto;color:#a8bec9;font-family:ui-monospace,Consolas,monospace;}
.api-code-toolbar .button {margin:0;min-height:36px;padding:6px 10px;gap:6px;}
.api-code-block pre {margin:0;padding:18px;max-height:520px;overflow:auto;tab-size:2;font: .8125rem/1.8 ui-monospace,SFMono-Regular,Consolas,monospace;white-space:pre;}
.api-code-block code {font:inherit;background:none;}
.report-secret-dialog .api-code-block pre {white-space:pre-wrap;overflow-wrap:anywhere;}
.report-secret-dialog [data-copy-status] {margin:0;padding:0 18px 12px;color:inherit;}
.report-secret-dialog [data-copy-status]:empty {display:none;}
.report-api-key > span {min-width:0;overflow-wrap:anywhere;}
.report-key-actions {position:relative;flex-shrink:0;}
.report-key-menu {position:absolute;right:0;top:calc(100% + 6px);z-index:40;width:180px;padding:6px;background:var(--card);color:var(--ink);border:1px solid var(--border);border-radius:12px;box-shadow:0 12px 30px #0003;}
.report-key-menu button {display:flex;align-items:center;gap:10px;width:100%;min-height:44px;padding:10px;border:0;border-radius:8px;background:transparent;color:inherit;text-align:left;cursor:pointer;}
.report-key-menu button:hover {background:color-mix(in srgb,var(--ink) 8%,transparent);}
.report-key-menu form {margin:0;}
.report-key-menu svg {width:18px;height:18px;flex-shrink:0;}
.api-token-key {color:#8ad5e6;}
.api-token-string {color:#b5db9c;}
.api-token-literal {color:#e9b681;}
.api-doc-section p > code {padding:2px 5px;border-radius:4px;background:#ffffff0a;font-family:ui-monospace,Consolas,monospace;overflow-wrap:anywhere;}
@media(max-width:600px) {.api-code-toolbar {flex-wrap:wrap;gap:8px;}.api-code-block pre {padding:12px;}}
.billing-plan-actions {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;align-items:stretch;}
.billing-plan-actions > form {display:flex;margin:0;min-width:0;}
.product-card .billing-plan-actions .button {width:100%;margin:0;white-space:nowrap;min-height:50px;padding-inline:10px;justify-content:center;}
html body[data-product="q-resto"] .restaurant-workspace .badge.green.restaurant-report-status-resolved {background:#191c20;border-color:#484d54;color:#aab0b8;}
html body[data-product="q-resto"] .restaurant-settings .settings-section-content > .panel {background:transparent!important;border:0;box-shadow:none;}
html body.public-body[data-product="q-resto"] .public-header {background:transparent!important;box-shadow:none;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);z-index:30;}
html body.public-body[data-product="q-resto"] .menu-search {top:calc(var(--public-header-height,100px) - 1px);background:transparent!important;box-shadow:none;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);z-index:25;}
html[data-a11y-contrast="true"] body.public-body[data-product="q-resto"] .public-header {background:var(--a11y-paper)!important;}
html[data-a11y-contrast="true"] body.public-body[data-product="q-resto"] .menu-search {background:var(--a11y-paper)!important;}
html body.public-body.is-menu-scrolled[data-product="q-resto"] :is(.public-header,.menu-search) {background:var(--bg)!important;backdrop-filter:none;-webkit-backdrop-filter:none;}
html[data-a11y-contrast="true"] body.public-body.is-menu-scrolled[data-product="q-resto"] :is(.public-header,.menu-search,.guest-category.is-open > h2) {background:var(--a11y-paper)!important;}
html body.public-body[data-product="q-resto"] .selection-fab {left:16px;right:auto;transform:none;bottom:calc(18px + env(safe-area-inset-bottom));min-height:52px!important;max-width:calc(50vw - 24px);white-space:normal;}
html body.public-body[data-product="q-resto"] .menu-ai-fab {inset-inline-end:16px;bottom:calc(18px + env(safe-area-inset-bottom));min-height:52px;}
@media(max-width:600px) {
 html body.public-body[data-product="q-resto"] .selection-fab {max-width:calc(100vw - 100px);}
 html body.public-body[data-product="q-resto"] .menu-ai-fab {width:52px;padding:14px;justify-content:center;}
 html body.public-body[data-product="q-resto"] .menu-ai-fab span {display:none;}
}
.guest-dish-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:16px 0 24px;}
.guest-category {scroll-margin-top:calc(var(--public-header-height,100px) + var(--menu-search-height,152px) + 12px);}
html body.public-body[data-product="q-resto"] .menu-search .tabs {display:flex;flex-wrap:wrap;gap:10px;overflow:visible;align-items:stretch;}
html body.public-body[data-product="q-resto"] .menu-search .tab {flex:1 0 auto;white-space:nowrap;text-align:center;justify-content:center;margin:0;min-width:0;min-height:48px;max-width:100%;overflow:hidden;text-overflow:ellipsis;}
.guest-category {margin-top:20px;}
/* Overlap the sticky surfaces by one pixel to prevent fractional-height seams. */
.guest-category.is-open > h2 {position:sticky;top:calc(var(--public-header-height,100px) + var(--menu-search-height,80px) - 2px);z-index:24;background:var(--bg);}
html[data-a11y-contrast="true"] .guest-category.is-open > h2 {background:var(--a11y-paper);}
.menu-search ~ .guest-category:first-of-type {margin-top:32px;}
.guest-category-toggle {display:flex;align-items:center;gap:12px;width:100%;min-height:56px;padding:12px 0;border:0;background:transparent;color:inherit;text-align:start;font:inherit;cursor:pointer;}
.guest-category-count {margin-left:auto;font-size:.8125rem;font-weight:400;white-space:nowrap;color:var(--muted);}
.guest-category-toggle > .icon:last-child {transition:transform .25s ease;}
.guest-category.is-open .guest-category-toggle > .icon:last-child {transform:rotate(180deg);}
.guest-category-collapse {display:grid;grid-template-rows:0fr;visibility:hidden;transition:grid-template-rows .3s ease,visibility .3s;}
.guest-category.is-open .guest-category-collapse {grid-template-rows:1fr;visibility:visible;}
.guest-category-inner {min-height:0;overflow:hidden;}
@media(prefers-reduced-motion:reduce) {.guest-category-collapse,.guest-category-toggle > .icon:last-child {transition:none;}}
.guest-dish-grid > .dish-card {position:relative;isolation:isolate;aspect-ratio:1;min-width:0;margin:0;padding:0;display:flex;flex-direction:column;overflow:hidden;}
.guest-dish-grid > .dish-card > .dish-photo {position:absolute;inset:0;width:100%;height:100%;margin:0;border-radius:0;object-fit:cover;z-index:-2;}
.guest-dish-grid > .dish-card:has(> .dish-photo)::before {content:'';position:absolute;inset:0;background:linear-gradient(180deg,#0001,#0005 35%,#000e);z-index:-1;}
.guest-dish-grid .dish-content {position:relative;display:flex;flex-direction:column;justify-content:flex-end;gap:4px;padding:12px;min-width:0;width:100%;flex:1;}
.guest-dish-grid .dish-title {display:flex;flex-direction:column;align-items:flex-start;gap:4px;min-width:0;}
.guest-dish-grid .dish-title h3 {font-size:.875rem;line-height:1.3;margin:0;overflow-wrap:anywhere;}
.guest-dish-grid .dish-price {font-size:.9375rem;}
.guest-dish-grid .dish-detail-link {align-self:flex-start;min-height:44px;padding:4px 44px 4px 0;font-size:.8125rem;white-space:normal;text-align:left;}
.guest-dish-grid > .dish-card > .dish-content > form .heart-button {position:absolute;right:8px;bottom:8px;width:44px;height:44px;min-width:44px;}
.guest-dish-grid > .dish-card:has(> .dish-photo) :is(.dish-content,h3,.dish-detail-link) {color:#fff!important;}
html[data-a11y-simplified="true"] .guest-dish-grid {grid-template-columns:minmax(0,1fr);}
@media(max-width:600px) {
 html:is([data-a11y-size="150"],[data-a11y-size="175"],[data-a11y-size="200"]) .guest-dish-grid {grid-template-columns:minmax(0,1fr);}
 .guest-dish-grid .dish-content {padding:10px;}
}
html body .menu-ai-form textarea,
html body .menu-ai-form textarea:focus,
html body .menu-ai-form textarea:focus-visible {background:transparent!important;border:0;outline:none!important;box-shadow:none!important;}
html body .menu-ai-form:focus-within {outline:3px solid var(--a11y-focus)!important;outline-offset:3px!important;}
.public-header [data-header-language] select {min-width:6rem;max-width:7rem;padding-left:2.75rem;background-repeat:no-repeat;background-position:.75rem center;background-size:1.5rem 1rem;}
.public-header .brand img {width:auto;max-width:154px;max-height:64px;object-fit:contain;}
.public-header .public-language-picker {position:relative;margin:0;padding:0;border:0;border-radius:0;background:transparent!important;box-shadow:none;}
.public-header .public-language-picker[open]>summary {margin-bottom:0;}
.public-language-picker summary {display:flex;align-items:center;gap:.5rem;min-height:44px;padding:.65rem .75rem;border:1px solid var(--border);border-radius:12px;background:var(--card);cursor:pointer;list-style:none;}
.public-language-picker summary::-webkit-details-marker {display:none;}
.public-language-options {position:absolute;inset:auto 0 auto auto;top:calc(100% + .5rem);z-index:50;min-width:8rem;padding:.375rem;background:var(--card);border:1px solid var(--border);border-radius:12px;box-shadow:0 8px 24px #0004;max-height:60dvh;overflow-y:auto;}
.public-language-options button {display:flex;align-items:center;gap:.65rem;width:100%;min-height:44px;padding:.65rem;border:0;border-radius:8px;background:transparent;color:var(--ink);}
.public-language-options button:hover,.public-language-options button[aria-current] {background:color-mix(in srgb,var(--cyan) 18%,transparent);}
.accessibility-trigger svg {width:1.5rem;height:1.5rem;flex-shrink:0;}
.a11y-trigger-label {font-size:.875rem;}
.public-header-tools,.topbar-right {flex-wrap:wrap;min-width:0;}
.restaurant-menu-tools {align-items:flex-end;}
.resto-editor-modal>.section-heading {display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:1rem;}
.resto-editor-modal>.section-heading>div {min-width:0;overflow-wrap:anywhere;}
.resto-editor-modal>.section-heading>[data-resto-modal-close] {flex-shrink:0;margin:0;min-width:44px;min-height:44px;}
.filter-actions {align-self:end;}
body[data-product="q-report"] .badge.report-status-new {background:#e6aa7d;color:#302013;border-color:#f1c7a7;font-weight:700;}
html[data-a11y-contrast="true"] body[data-product="q-report"] .badge.report-status-new {background:var(--ink)!important;color:var(--bg)!important;border:2px solid var(--ink);}
.restaurant-menu-tools :is(input,select,.filter-actions>.button) {min-height:3.5rem;}
.public-header,.topbar {height:auto;min-height:4rem;gap:.75rem;}
main,.public-shell,.app-shell,.form-grid>*,.guest-dish>* {min-width:0;}
input,select,textarea {max-width:100%;box-sizing:border-box;}
.public-body :is(input,select,textarea) {font-size:max(1rem,1em);}
.a11y-panel :is(button,input,select) {font-size:1rem;}
html[data-a11y-size="150"] :is(.form-grid,.stats-grid),html[data-a11y-size="175"] :is(.form-grid,.stats-grid),html[data-a11y-size="200"] :is(.form-grid,.stats-grid) {grid-template-columns:minmax(0,1fr)!important;}
html[data-a11y-size="200"] :is(.guest-dish,.guest-menu-intro,.section-heading,.report-workspace-header,.page-heading) {flex-wrap:wrap;height:auto;}
html[data-a11y-spacing="true"] :is(.button,.badge,.pill,.menu-tab,.menu-category-tab) {height:auto;white-space:normal;}
html[data-a11y-size="200"] :is(.dish-description,.guest-dish-description,.report-card p) {max-height:none;-webkit-line-clamp:unset;white-space:normal;}
@media(max-width:600px) {
    label:has(>input:is([type="date"],[type="datetime-local"],[type="month"],[type="week"])),.field:has(input:is([type="date"],[type="datetime-local"],[type="month"],[type="week"])) {grid-column:1/-1;min-width:0;width:100%;}
    .a11y-panel {width:calc(100% - 1rem);max-width:calc(100% - 1rem);max-height:calc(100dvh - 1rem);border-radius:1rem;padding-bottom:env(safe-area-inset-bottom);}
    .a11y-panel-header {padding:.75rem;flex-wrap:wrap;}
    .a11y-panel-content {padding:.75rem;}
    .a11y-panel fieldset {padding:.75rem;}
    .a11y-trigger-label {display:none;}
    .public-header .brand img {min-width:0;max-width:100%;}
    .public-header {flex-wrap:wrap;}
    html[data-a11y-size="200"] :is(.public-shell,.app-shell) {max-width:100%;padding-inline:.75rem;}
}
@media(forced-colors:active) { :focus-visible {outline:3px solid Highlight!important;} .a11y-panel,.a11y-choice input {forced-color-adjust:auto;} }

.site-confirmation {width:min(34rem,calc(100% - 2rem));max-width:calc(100% - 2rem);max-height:calc(100dvh - 2rem);overflow:auto;box-sizing:border-box;border:1px solid var(--border,#68716b);border-radius:1.25rem;padding:1.5rem;background:var(--theme-panel,var(--card,#202725));color:var(--theme-text,var(--ink,#f5f4ef));}
.site-confirmation::backdrop {background:rgb(0 0 0 / .65);}
.site-confirmation h2 {font-size:1.25rem;margin:0 0 1rem;}
.site-confirmation p {overflow-wrap:anywhere;white-space:pre-line;}
.site-confirmation-actions {display:flex;justify-content:flex-end;flex-wrap:wrap;gap:.75rem;margin-top:1.5rem;}
.site-confirmation-actions button {min-width:44px;min-height:44px;}

html[data-a11y-contrast="true"] body[data-product] :is(div,section,article,header,footer,nav,aside,fieldset,details,summary,dialog,form) {background:var(--a11y-paper)!important;color:var(--a11y-ink)!important;border-color:var(--a11y-ink)!important;}
html[data-a11y-contrast="true"] .public-hero {border:1px solid var(--a11y-ink)!important;}

body[data-color-mode="red-green"] {--brand:#93631e;--action:#79511a;--action-hover:#644315;--cyan:#e7c57b;--accent:#e7c57b;--guest-action:#79511a;--guest-accent:#e7c57b;}
body[data-color-mode="blue-yellow"] {--brand:#995376;--action:#813354;--action-hover:#64213f;--cyan:#f6c3db;--accent:#f6c3db;--guest-action:#813354;--guest-accent:#f6c3db;}
body[data-color-mode="monochrome"] {--brand:#777;--action:#505050;--action-hover:#383838;--cyan:#e8e8e8;--accent:#e8e8e8;--guest-action:#505050;--guest-accent:#e8e8e8;}
/* Public palettes take priority over product branding and inline custom themes.
   Photos/logos are not filtered; labels and checked controls retain their meaning. */
body[data-color-mode="red-green"] {--a11y-palette-action:#79511a;--a11y-palette-hover:#644315;--a11y-palette-accent:#e7c57b;}
body[data-color-mode="blue-yellow"] {--a11y-palette-action:#813354;--a11y-palette-hover:#64213f;--a11y-palette-accent:#f6c3db;}
body[data-color-mode="monochrome"] {--a11y-palette-action:#505050;--a11y-palette-hover:#383838;--a11y-palette-accent:#e8e8e8;}
html:not([data-a11y-contrast="true"]) body.public-body:is([data-color-mode="red-green"],[data-color-mode="blue-yellow"],[data-color-mode="monochrome"]) {
 --brand:var(--a11y-palette-action)!important;--action:var(--a11y-palette-action)!important;--action-hover:var(--a11y-palette-hover)!important;
 --cyan:var(--a11y-palette-accent)!important;--accent:var(--a11y-palette-accent)!important;--guest-action:var(--a11y-palette-action)!important;--guest-accent:var(--a11y-palette-accent)!important;
 --blue:var(--a11y-palette-action)!important;--green:var(--a11y-palette-action)!important;--orange:var(--a11y-palette-action)!important;--purple:var(--a11y-palette-accent)!important;
 --bg:#161616!important;--card:#292929!important;--ink:#ffffff!important;--muted:#d0d0d0!important;--border:#949494!important;
 --theme-primary:var(--a11y-palette-action)!important;--theme-accent:var(--a11y-palette-accent)!important;--theme-on-primary:#ffffff!important;
 --theme-background:#161616!important;--theme-surface:#292929!important;--theme-panel:#292929!important;--theme-text:#ffffff!important;--theme-muted:#d0d0d0!important;
 --report-surface-soft:#292929!important;--report-highlight:#3b3b3b!important;--a11y-focus:var(--a11y-palette-accent);
 background:var(--bg)!important;color:var(--ink);
}
html:not([data-a11y-contrast="true"]) body.public-body:is([data-color-mode="red-green"],[data-color-mode="blue-yellow"],[data-color-mode="monochrome"]) :is(.button:not(.secondary),.badge) {
 background:var(--action)!important;color:#fff!important;border-color:var(--guest-accent);
}
html:not([data-a11y-contrast="true"]) body.public-body:is([data-color-mode="red-green"],[data-color-mode="blue-yellow"],[data-color-mode="monochrome"]) :is(.button:not(.secondary),.badge):is(:hover,:active) {background:var(--action-hover)!important;}
html:not([data-a11y-contrast="true"]) body.public-body:is([data-color-mode="red-green"],[data-color-mode="blue-yellow"],[data-color-mode="monochrome"]) .option-radio:has(input:checked) {background:var(--report-highlight)!important;border-color:var(--guest-accent)!important;}
html:not([data-a11y-contrast="true"]) body.public-body:is([data-color-mode="red-green"],[data-color-mode="blue-yellow"],[data-color-mode="monochrome"]) :is(.report-public-hero,.guest-home-banner,.menu-welcome,.welcome-table) {background:var(--card)!important;}
html:not([data-a11y-contrast="true"]) body.public-body:is([data-color-mode="red-green"],[data-color-mode="blue-yellow"],[data-color-mode="monochrome"]) :is(.report-public-hero,.guest-home-banner.has-photo,.welcome-with-photo)::after {background:linear-gradient(0deg,#000e,#0004)!important;}
html:not([data-a11y-contrast="true"]) body.public-body:is([data-color-mode="red-green"],[data-color-mode="blue-yellow"],[data-color-mode="monochrome"]) .guest-abstract-background {background:none;}
html:not([data-a11y-contrast="true"]) body.public-body:is([data-color-mode="red-green"],[data-color-mode="blue-yellow"],[data-color-mode="monochrome"]) .guest-destinations>a:not(.guest-destination-photo) {background:var(--card)!important;color:var(--ink);border-color:var(--border);}
html:not([data-a11y-contrast="true"]) body.public-body:is([data-color-mode="red-green"],[data-color-mode="blue-yellow"],[data-color-mode="monochrome"]) .guest-destinations>a:first-child:not(.guest-destination-photo) {background:var(--action)!important;color:#fff;}
html:not([data-a11y-contrast="true"]) body.public-body:is([data-color-mode="red-green"],[data-color-mode="blue-yellow"],[data-color-mode="monochrome"]) .guest-destinations>a:first-child:not(.guest-destination-photo) small {color:#fff;}
html:not([data-a11y-contrast="true"]) body.public-body:is([data-color-mode="red-green"],[data-color-mode="blue-yellow"],[data-color-mode="monochrome"]) .guest-destinations>a:not(:first-child) small {color:var(--muted);}
html:not([data-a11y-contrast="true"]) body.public-body:is([data-color-mode="red-green"],[data-color-mode="blue-yellow"],[data-color-mode="monochrome"]) :is(.public-hero,.guest-home-banner,.menu-welcome,.welcome-table,input,select,textarea) {border-color:var(--border)!important;}
html:not([data-a11y-contrast="true"]) body.public-body:is([data-color-mode="red-green"],[data-color-mode="blue-yellow"],[data-color-mode="monochrome"]) :is(input,textarea)::placeholder {color:var(--muted)!important;opacity:1;}
html:not([data-a11y-contrast="true"]) body.public-body:is([data-color-mode="red-green"],[data-color-mode="blue-yellow"],[data-color-mode="monochrome"]) :is(.guest-home-banner p,.welcome-with-photo .muted) {color:var(--muted)!important;}
html[data-a11y-contrast="true"] body {--bg:var(--a11y-paper)!important;--card:var(--a11y-paper)!important;--ink:var(--a11y-ink)!important;--theme-background:var(--a11y-paper)!important;--theme-panel:var(--a11y-paper)!important;--theme-text:var(--a11y-ink)!important;--theme-muted:var(--a11y-ink)!important;}
html[data-a11y-contrast="true"] :is(.badge,.pill,.notification-count,.map-status) {border:1px solid currentColor!important;}

.site-confirmation-open {overflow:hidden;}
html[data-a11y-spacing="true"] :is(.dish-description,.guest-dish-description,.report-card p) {max-height:none;-webkit-line-clamp:unset;white-space:normal;}
.chart-data {margin-top:1rem;}
.chart-data summary {min-height:44px;cursor:pointer;}

.report-option-group {min-width:0;border:0;padding:0;margin:0;}
.team-card {display:flex;flex-direction:column;min-width:0;}
.team-card h3,.team-card p {overflow-wrap:anywhere;}
.team-card > .button {align-self:flex-start;margin-top:auto;}
.team-permissions {border:0;padding:0;margin:1.25rem 0;min-width:0;}
.team-permissions:disabled {opacity:.55;}
.team-remove {margin-top:1.5rem;padding-top:1rem;border-top:1px solid var(--border);}
.resto-editor-modal fieldset.team-permissions {border:0;padding:0;min-width:0;}
/* Keep a usable fallback before dynamic viewport units, including mobile landscape. */
:is(.resto-editor-modal,.report-edit-dialog,.floor-dialog,.site-confirmation,.a11y-panel) {max-width:calc(100vw - 2rem);max-height:calc(100vh - 2rem);max-height:calc(100dvh - 2rem);box-sizing:border-box;overscroll-behavior:contain;}
@supports selector(:has(dialog[open])) {
 html:has(dialog[open]),body:has(dialog[open]) {overflow:hidden;}
}
.topbar .breadcrumb {min-width:0;}
.topbar-right {min-width:0;flex-wrap:wrap;justify-content:flex-end;}
.language-choice > span:last-child {min-width:0;overflow-wrap:anywhere;}
summary {overflow-wrap:anywhere;white-space:normal;}
:is(#legacy-orders,#orders) .section-heading{flex-wrap:wrap}
:is(#legacy-orders,#orders) .section-heading>h2{min-width:0;max-width:100%;overflow-wrap:anywhere}
:is(#legacy-orders,#orders) .section-heading>form{min-width:0;max-width:100%}
:is(#legacy-orders,#orders) .section-heading select{width:100%;min-width:0;max-width:100%}
.sidebar .nav-item {min-width:0;overflow-wrap:anywhere;white-space:normal;}
@media(max-width:600px) {
 .topbar {gap:8px;padding-inline:12px;flex-wrap:wrap;}
 .topbar .breadcrumb {display:none;}
 .topbar-right {margin-left:auto;gap:8px;}
 html:is([data-a11y-size="150"],[data-a11y-size="175"],[data-a11y-size="200"]) .report-nav {grid-template-columns:minmax(0,1fr);}
 .report-nav .tab > span {min-width:0;white-space:normal;}
 html:is([data-a11y-size="150"],[data-a11y-size="175"],[data-a11y-size="200"]) .qreport-filters,
 html:is([data-a11y-size="150"],[data-a11y-size="175"],[data-a11y-size="200"]) .report-more-filters .signalment-filters {grid-template-columns:minmax(0,1fr);}
 .report-more-filters {min-width:0;}
}

html body .location-editor > label.checkbox {display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:.625rem;min-height:44px;text-align:left;}
html body .location-editor > label.checkbox > input[type="checkbox"] {width:44px;min-width:44px;max-width:44px;height:44px;min-height:44px;flex:0 0 44px;padding:0;margin:0;border:0;background:transparent;box-shadow:none;}
html body .location-editor > label.checkbox > span {flex:0 1 auto;min-width:0;overflow-wrap:anywhere;}

.a11y-panel :is(p,button,label,legend) {overflow-wrap:anywhere;white-space:normal;max-width:100%;}
html:is([data-a11y-size="150"],[data-a11y-size="175"],[data-a11y-size="200"]) .report-qr-actions .button{white-space:normal;text-align:center}
.report-detail-grid>*{min-width:0}
html:is([data-a11y-spacing="true"],[data-a11y-size="150"],[data-a11y-size="175"],[data-a11y-size="200"]) main :is(h1,h2,h3,h4,p,label,legend,button,a,td,th,small,strong,span) {overflow-wrap:anywhere;}
@media(max-width:600px) {
 html:is([data-a11y-spacing="true"],[data-a11y-size="150"],[data-a11y-size="175"],[data-a11y-size="200"]) .option-radio {flex-wrap:wrap;gap:.5rem;}
 html:is([data-a11y-spacing="true"],[data-a11y-size="150"],[data-a11y-size="175"],[data-a11y-size="200"]) .option-radio small {flex-basis:100%;white-space:normal!important;margin-left:0!important;}
}

/* A continuous, full-width frosted surface avoids cutting off the mobile halo. */
@media(max-width:700px){
 html:not([data-a11y-contrast="true"]) body.public-body.is-menu-scrolled[data-product="q-resto"] :is(.public-header,.menu-search,.guest-category.is-open > h2){background:transparent!important;backdrop-filter:none;-webkit-backdrop-filter:none;isolation:isolate;}
 html:not([data-a11y-contrast="true"]) body.public-body.is-menu-scrolled[data-product="q-resto"] :is(.public-header,.menu-search,.guest-category.is-open > h2)::before{content:"";position:absolute;inset-block:0;inset-inline:calc((100% - 100vw)/2);z-index:-1;pointer-events:none;background:color-mix(in srgb,var(--bg) 88%,transparent);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);}
}

/* Keep hidden icon radios inside their tiles, including narrow editor dialogs. */
.food-icon-grid label{position:relative;min-width:0;overflow-wrap:anywhere}
.food-icon-grid input[type="radio"]{left:0;top:0;width:1px;min-width:0;max-width:1px;padding:0;border:0}

/* Keep concise visual actions and their complete screen-reader names. */
html body .a11y-panel-footer .button {white-space:nowrap;overflow-wrap:normal;word-break:normal;padding-inline:8px;}
@media(max-width:700px) {
 .a11y-panel-footer {flex-direction:column;align-items:stretch;}
}
@media(max-width:1100px) {
 :is([data-admin-workspace],.public-body,.auth-body) .button .manager-action-label-full {display:none;}
 :is([data-admin-workspace],.public-body,.auth-body) .button .manager-action-label-compact[hidden] {display:inline!important;}
 :is([data-admin-workspace],.public-body,.auth-body) .button:has(.manager-action-label-compact) {white-space:nowrap;overflow-wrap:normal;word-break:normal;padding-inline:8px;gap:6px;}
}
html:is([data-a11y-size="150"],[data-a11y-size="175"],[data-a11y-size="200"]) .button .manager-action-label-full {display:none;}
html:is([data-a11y-size="150"],[data-a11y-size="175"],[data-a11y-size="200"]) .button .manager-action-label-compact[hidden] {display:inline!important;}
html:is([data-a11y-size="150"],[data-a11y-size="175"],[data-a11y-size="200"]) .button:has(.manager-action-label-compact) {white-space:nowrap;overflow-wrap:normal;word-break:normal;padding-inline:8px;gap:6px;}
html body .button :is(.manager-action-label-full,.manager-action-label-compact) {white-space:nowrap;overflow-wrap:normal;word-break:normal;}
html:is([data-a11y-size="150"],[data-a11y-size="175"],[data-a11y-size="200"]) .commerce-workspace .commerce-filters {grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));}
html:is([data-a11y-size="150"],[data-a11y-size="175"],[data-a11y-size="200"]) .commerce-workspace .commerce-filters>.field:first-child {grid-column:auto;}

/* At large text sizes, stacked sticky headers must not cover menu actions. */
@media(max-width:600px){
 html:is([data-a11y-size="175"],[data-a11y-size="200"]) body.public-body[data-product="q-resto"] :is(.public-header,.menu-search,.guest-category.is-open>h2){position:static;top:auto}
 html:is([data-a11y-size="175"],[data-a11y-size="200"]) body.public-body[data-product="q-resto"] .guest-category{scroll-margin-top:16px}
}
