:root {
  color-scheme: light;
  --ink: #182130;
  --muted: #697386;
  --line: #dfe4ec;
  --mist: #f4f6f9;
  --paper: #ffffff;
  --blue: #1769e0;
  --blue-soft: #eaf2ff;
  --green: #147d55;
  --green-soft: #e9f7f0;
  --amber: #a7650b;
  --amber-soft: #fff5df;
  --danger: #b63a48;
  --radius: 12px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--mist); font-size: 14px; overflow: hidden; }
button, input, select { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid rgba(23,105,224,.24); outline-offset: 2px; }
.topbar { height: 72px; display: grid; grid-template-columns: 280px 1fr 280px; align-items: center; padding: 0 20px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.94); }
.brand { color: inherit; display: flex; gap: 11px; align-items: center; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; color: white; background: var(--blue); border-radius: 10px; font-weight: 750; font-size: 17px; }
.brand strong, .brand small { display: block; }.brand small { color: var(--muted); margin-top: 2px; font-size: 11px; }
.steps { display: flex; justify-content: center; gap: 5px; }
.step { border: 0; background: none; display: flex; align-items: center; gap: 7px; padding: 8px 10px; color: var(--muted); }
.step span { display: grid; place-items: center; width: 22px; height: 22px; border: 1px solid var(--line); border-radius: 50%; font-size: 11px; }
.step.complete span { color: var(--green); background: var(--green-soft); border-color: transparent; }.step.current { color: var(--ink); font-weight: 650; }.step.current span { color: white; background: var(--blue); border-color: var(--blue); }
.top-actions { display: flex; align-items: center; justify-content: flex-end; gap: 7px; }
.icon-button { border: 0; background: transparent; border-radius: 8px; min-width: 34px; height: 34px; font-size: 18px; cursor: pointer; }
.primary, .secondary { border: 0; border-radius: 9px; padding: 10px 15px; cursor: pointer; font-weight: 650; }.primary { background: var(--blue); color: white; }.secondary { background: var(--mist); }
.workspace { height: calc(100vh - 142px); display: grid; grid-template-columns: 330px minmax(520px, 1fr) 300px; }
.source-panel, .inspector { background: var(--paper); overflow: auto; }.source-panel { border-right: 1px solid var(--line); }.inspector { border-left: 1px solid var(--line); padding: 18px; }
.panel-heading, .canvas-heading, .inspector-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }.panel-heading { padding: 20px 18px 14px; }
.panel-actions { display: flex; gap: 2px; }
.kicker { color: var(--muted); font-size: 11px; margin: 0 0 4px; }.panel-heading h1, .canvas-heading h2 { margin: 0; font-size: 18px; letter-spacing: -.02em; }
.source-tabs { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0 14px 14px; padding: 3px; background: var(--mist); border-radius: 10px; }
.source-tabs button { border: 0; background: transparent; border-radius: 7px; padding: 8px 2px; font-size: 12px; cursor: pointer; }.source-tabs button[aria-selected="true"] { background: white; box-shadow: 0 1px 4px rgba(24,33,48,.12); font-weight: 650; }
.search { margin: 0 14px 14px; height: 38px; background: var(--mist); border: 1px solid transparent; border-radius: 9px; display: flex; align-items: center; gap: 8px; padding: 0 10px; }.search input { width: 100%; border: 0; outline: 0; background: transparent; }
.source-summary { display: flex; justify-content: space-between; padding: 4px 18px 10px; color: var(--muted); font-size: 11px; }.source-summary button { border: 0; background: none; color: var(--blue); font-size: 11px; }
.group-title { width: 100%; display: grid; grid-template-columns: 18px 1fr auto; align-items: center; text-align: left; gap: 5px; padding: 10px 16px; border: 0; border-top: 1px solid var(--line); background: white; }.group-title small { color: var(--muted); }.drag-hint { grid-column: 2; color: var(--blue); font-size: 10px; }
.source-items { padding: 4px 10px 16px; }.source-card { display: grid; grid-template-columns: 48px 1fr 30px; gap: 10px; align-items: center; padding: 8px; margin: 4px 0; border: 1px solid transparent; border-radius: 11px; cursor: grab; }.source-card:hover, .source-card.selected { border-color: #b9d1f7; background: var(--blue-soft); }.source-card strong, .source-card span, .source-card small { display: block; line-height: 1.45; }.source-card span { font-weight: 650; }.source-card small { color: var(--muted); }.source-card small b { color: var(--amber); font-weight: 600; }.source-card small .verified { color: var(--green); }.source-card > button { border: 0; background: transparent; color: var(--blue); font-size: 20px; }
.food-image { display: grid; place-items: center; aspect-ratio: 1; border-radius: 9px; font-size: 25px; }.food-image.red { background: #feece8; }.food-image.green { background: #e9f4e8; }.food-image.amber { background: #fff2d9; }
.canvas-panel { overflow: auto; padding: 22px 24px 40px; }.canvas-heading h2 { font-size: 22px; }.view-controls { display: flex; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: white; }.view-controls button { border: 0; background: transparent; border-radius: 7px; padding: 7px 10px; font-size: 12px; }.view-controls .active { background: var(--mist); font-weight: 650; }
.canvas-meta { display: flex; gap: 18px; padding: 14px 0 18px; color: var(--muted); font-size: 12px; }.canvas-meta b { color: var(--ink); }.canvas-meta .autosave { margin-left: auto; color: var(--green); }
.menu-groups { display: grid; gap: 12px; }.menu-group { background: white; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 4px 14px rgba(32,48,70,.045); overflow: hidden; }.menu-group > header { display: grid; grid-template-columns: 28px 42px 1fr auto; align-items: center; gap: 8px; padding: 14px; }.grab, .more { border: 0; background: none; color: #8791a2; cursor: grab; }.group-actions { display: flex; }.group-actions .more { padding: 5px; cursor: pointer; }.group-actions svg { width: 15px; }.group-icon { display: grid; place-items: center; width: 38px; height: 38px; background: var(--mist); border-radius: 10px; font-size: 20px; }.menu-group h3 { margin: 0 0 2px; font-size: 15px; }.menu-group p { margin: 0; color: var(--muted); font-size: 11px; }
.product-grid { border-top: 1px solid var(--line); background: #fafbfc; padding: 12px; display: grid; grid-template-columns: repeat(auto-fill, minmax(185px, 1fr)); gap: 9px; }.product-card { min-height: 82px; background: white; border: 1px solid var(--line); border-radius: 11px; padding: 8px; display: grid; grid-template-columns: 18px 52px 1fr; gap: 7px; align-items: center; }.product-card.selected { border-color: var(--blue); box-shadow: 0 0 0 2px rgba(23,105,224,.1); }.product-copy strong, .product-copy span, .product-copy small { display: block; }.product-copy span { margin: 3px 0; font-weight: 650; }.product-copy small { display: flex; gap: 6px; align-items: center; }.product-copy small b { color: var(--green); background: var(--green-soft); padding: 2px 5px; border-radius: 5px; }.product-copy small i { color: var(--blue); font-style: normal; }
.drop-card { min-height: 82px; border: 1px dashed #aeb8c8; border-radius: 11px; background: transparent; color: var(--muted); }.drop-card span { display: block; color: var(--blue); font-size: 22px; }.collapsed header { padding-block: 12px; }
.inspector-heading { margin-bottom: 12px; }.inspector-image { position: relative; height: 134px; display: grid; place-items: center; background: #edf4e9; border-radius: 12px; font-size: 58px; margin-bottom: 18px; }.inspector-image button { position: absolute; bottom: 8px; right: 8px; border: 0; background: rgba(255,255,255,.9); border-radius: 7px; padding: 7px 9px; font-size: 11px; }
.inspector label { display: block; margin: 12px 0; color: var(--muted); font-size: 11px; }.inspector input, .inspector select { width: 100%; height: 38px; margin-top: 6px; border: 1px solid var(--line); border-radius: 8px; padding: 0 10px; color: var(--ink); background: white; }.field-row { display: grid; grid-template-columns: 1fr 82px; gap: 8px; }.field-row label { position: relative; }.field-row label > span { position: absolute; right: 9px; top: 31px; color: var(--muted); }.code-field { position: relative; }.code-field span { position: absolute; right: 8px; top: 15px; color: var(--green); font-size: 11px; }.inspector label > small { display: block; margin-top: 5px; color: var(--muted); }
details { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 12px; }summary { display: flex; justify-content: space-between; cursor: pointer; font-weight: 650; }summary::marker { content: ''; }summary small { color: var(--muted); font-weight: 400; }.lista { display: flex; align-items: center; justify-content: space-between; padding: 10px; margin-top: 8px; background: var(--mist); border-radius: 9px; }.lista strong, .lista small { display: block; }.lista small { color: var(--muted); font-size: 10px; margin-top: 3px; }.lista button { border: 0; background: none; font-size: 22px; }.wide { width: 100%; margin-top: 8px; }.danger-link { margin-top: 18px; padding: 8px 0; border: 0; background: none; color: var(--danger); }
.guidance { height: 70px; display: grid; grid-template-columns: 36px 1fr auto auto; align-items: center; gap: 12px; padding: 9px 20px; border-top: 1px solid #ead7b0; background: var(--amber-soft); }.guidance-icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; color: var(--amber); background: #ffe5ad; font-weight: 750; }.guidance strong, .guidance p { display: block; margin: 0; }.guidance p { color: #7a6544; margin-top: 3px; font-size: 11px; }.guidance > button:not(.primary) { border: 0; background: transparent; color: var(--amber); font-weight: 650; }
@media (max-width: 1050px) { .workspace { grid-template-columns: 290px 1fr; }.inspector { position: fixed; z-index: 4; right: 0; top: 72px; bottom: 70px; width: 300px; box-shadow: -10px 0 30px rgba(24,33,48,.12); }.topbar { grid-template-columns: 240px 1fr auto; }.steps .step { font-size: 0; }.step span { font-size: 11px; } }
@media (max-width: 760px) { body { overflow: auto; }.topbar { grid-template-columns: 1fr auto; }.steps { display: none; }.workspace { height: auto; min-height: calc(100vh - 142px); grid-template-columns: 1fr; }.source-panel { max-height: 44vh; border-right: 0; border-bottom: 1px solid var(--line); }.canvas-panel { padding: 18px 14px 100px; }.inspector { display: none; }.guidance { position: fixed; bottom: 0; left: 0; right: 0; grid-template-columns: 32px 1fr auto; }.guidance p, .guidance > button:not(.primary) { display: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }

/* Live workspace refinements */
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-button { display: inline-grid; place-items: center; }.icon-button:disabled { opacity: .35; cursor: default; }
.primary svg, .secondary svg, .view-controls svg, .danger-link svg { width: 14px; height: 14px; vertical-align: -2px; margin-right: 4px; }
.search svg { width: 15px; color: var(--muted); }
.source-content { padding-bottom: 26px; }
.group-title { cursor: pointer; }.group-title svg { width: 14px; transition: transform .16s ease; }.group-title[aria-expanded="true"] svg { transform: rotate(90deg); }
.food-image { background: #edf1f6; overflow: hidden; }.food-image img { width: 100%; height: 100%; object-fit: cover; }.food-image > span { display: none; color: #97a2b2; }.food-image.image-failed > span { display: grid; place-items: center; }.food-image.image-failed svg { width: 20px; height: 20px; }
.grab svg { width: 17px; }.more { cursor: pointer; }.group-icon { color: var(--blue); }.group-copy { border: 0; background: none; padding: 0; text-align: left; cursor: pointer; }.menu-group.drag-over { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(23,105,224,.12); }
.product-copy small b.missing-code { color: var(--amber); background: var(--amber-soft); }
.drop-card { display: grid; place-items: center; align-content: center; gap: 4px; }.drop-card svg { color: var(--blue); }.drop-card span { color: var(--muted); font-size: 12px; }
.inspector-photo { width: 100%; height: 100%; display: grid; place-items: center; }.inspector-photo img { width: 100%; height: 100%; object-fit: cover; }.inspector-photo > span { display: none; color: #97a2b2; }.inspector-photo.image-failed > span { display: grid; }.inspector-photo.image-failed svg { width: 32px; height: 32px; }.inspector-image button { display: flex; align-items: center; gap: 5px; }.inspector-image button svg { width: 14px; }
.guidance-icon svg { width: 17px; }.guidance.info { border-color: var(--line); background: #f4f7fb; }.guidance.info .guidance-icon { color: var(--blue); background: var(--blue-soft); }.guidance.success { border-color: #bfe5d4; background: var(--green-soft); }.guidance.success .guidance-icon { color: var(--green); background: white; }
.empty-state, .empty-inspector { min-height: 180px; display: grid; place-items: center; align-content: center; text-align: center; gap: 7px; color: var(--muted); padding: 24px; }.empty-state svg, .empty-inspector svg { width: 27px; height: 27px; color: #91a0b5; }.empty-state strong, .empty-inspector strong { color: var(--ink); }.empty-state p, .empty-inspector p { max-width: 230px; margin: 0; font-size: 12px; line-height: 1.45; }
.empty-canvas { width: 100%; min-height: 180px; border: 1px dashed #aeb8c8; border-radius: 14px; background: rgba(255,255,255,.55); display: grid; place-items: center; align-content: center; gap: 6px; color: var(--muted); }.empty-canvas svg { color: var(--blue); width: 28px; height: 28px; }.empty-canvas strong { color: var(--ink); }
.project-dialog { border: 0; border-radius: 16px; padding: 0; width: min(520px, calc(100vw - 30px)); box-shadow: 0 24px 70px rgba(24,33,48,.24); }.project-dialog::backdrop { background: rgba(20,29,42,.35); backdrop-filter: blur(4px); }.dialog-card { padding: 22px; max-height: calc(100vh - 40px); overflow: auto; }.dialog-heading { display: flex; justify-content: space-between; align-items: center; }.dialog-heading h2 { margin: 0; font-size: 21px; }.dialog-card > label { display: block; color: var(--muted); font-size: 12px; margin: 20px 0; }.dialog-card > label input { width: 100%; height: 40px; margin-top: 6px; border: 1px solid var(--line); border-radius: 9px; padding: 0 10px; }.dialog-card fieldset { border: 0; padding: 0; margin: 0; }.dialog-card legend { color: var(--muted); font-size: 12px; margin-bottom: 6px; }.source-option { display: block; }.source-option input { position: absolute; opacity: 0; }.source-option > span { display: grid; grid-template-columns: 30px 1fr; gap: 2px 10px; align-items: center; border: 1px solid var(--line); border-radius: 10px; padding: 12px; }.source-option input:checked + span { border-color: var(--blue); background: var(--blue-soft); }.source-option svg { grid-row: 1 / 3; color: var(--blue); }.source-option strong, .source-option small { grid-column: 2; }.source-option small { color: var(--muted); }.dialog-help { color: var(--muted); font-size: 12px; }.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.source-divider { display: flex; align-items: center; gap: 10px; margin: 14px 0 10px; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .06em; }.source-divider::before, .source-divider::after { content: ''; height: 1px; background: var(--line); flex: 1; }.file-source { border: 1px solid var(--line); border-radius: 11px; padding: 11px; }.file-drop { display: grid; grid-template-columns: 30px 1fr; align-items: center; gap: 10px; cursor: pointer; }.file-drop svg { width: 22px; color: var(--blue); }.file-drop strong, .file-drop small { display: block; }.file-drop small { color: var(--muted); margin-top: 2px; }.file-drop input { position: absolute; opacity: 0; pointer-events: none; }.file-source:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }.file-source-settings { display: grid; grid-template-columns: 1fr 1.25fr; gap: 8px; margin-top: 10px; }.file-source-settings label { color: var(--muted); font-size: 10px; }.file-source-settings select, .file-source-settings input { width: 100%; height: 34px; margin-top: 4px; padding: 0 8px; border: 1px solid var(--line); border-radius: 7px; background: white; }
.saved-projects { max-height: 128px; overflow: auto; display: grid; gap: 5px; }.saved-projects button { display: flex; justify-content: space-between; align-items: center; border: 1px solid var(--line); background: white; border-radius: 8px; padding: 9px 10px; text-align: left; cursor: pointer; }.saved-projects button:hover { border-color: #b9d1f7; background: var(--blue-soft); }.saved-projects small { color: var(--muted); }
.toast { position: fixed; z-index: 20; left: 50%; bottom: 86px; transform: translate(-50%, 10px); opacity: 0; pointer-events: none; padding: 10px 14px; border-radius: 9px; color: white; background: #263143; box-shadow: 0 8px 28px rgba(24,33,48,.22); transition: .18s ease; }.toast.visible { transform: translate(-50%, 0); opacity: 1; }
.login-dialog { width: min(440px, calc(100vw - 30px)); }.login-dialog::backdrop { background: rgba(18,23,29,.52); backdrop-filter: blur(10px); }.login-error { margin: 0; padding: 10px 12px; border-radius: 10px; color: #9f2c2c; background: #fff0f0; font-size: 13px; }
.export-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 20px 0 14px; }.export-summary span { background: var(--mist); border-radius: 9px; padding: 10px; color: var(--muted); font-size: 11px; }.export-summary b { display: block; color: var(--ink); font-size: 17px; margin-bottom: 2px; }.export-options { display: grid; gap: 8px; margin: 16px 0; }.export-option { display: grid; grid-template-columns: 35px 1fr; gap: 10px; align-items: center; text-align: left; border: 1px solid var(--line); background: white; border-radius: 11px; padding: 13px; cursor: pointer; }.export-option:hover, .export-option.recommended { border-color: #b9d1f7; }.export-option.recommended { background: var(--blue-soft); }.export-option svg { color: var(--blue); width: 22px; height: 22px; }.export-option strong, .export-option small { display: block; }.export-option small { color: var(--muted); margin-top: 3px; }.export-option.working { opacity: .55; cursor: wait; }
.deployment-options:not(:empty) { border-top: 1px solid var(--line); padding-top: 12px; }.deployment-options h3 { margin: 0 0 8px; font-size: 12px; }.deployment-options button { width: 100%; border: 1px solid #efc5ca; background: #fff7f8; color: var(--danger); border-radius: 9px; padding: 10px; text-align: left; cursor: pointer; }.deployment-options small { display: block; color: var(--muted); margin-top: 3px; }
.template-picker { padding: 0 12px 12px; display: flex; flex-wrap: wrap; gap: 5px; }.template-picker > button { border: 1px solid var(--line); background: white; border-radius: 8px; padding: 7px 9px; font-size: 11px; cursor: pointer; }.template-picker > button.active { color: var(--blue); border-color: #b9d1f7; background: var(--blue-soft); font-weight: 650; }.template-picker > .apply-template { flex-basis: 100%; display: flex; align-items: center; justify-content: center; gap: 4px; color: white; border-color: var(--blue); background: var(--blue); }.template-picker > .apply-template svg { width: 13px; }.template-picker p { margin: 2px 1px 0; color: var(--muted); font-size: 11px; line-height: 1.4; }
.lista-dialog { width: min(640px, calc(100vw - 30px)); }.lista-catalogue { display: grid; gap: 7px; max-height: 55vh; overflow: auto; margin: 18px 0; }.lista-catalogue article { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 7px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; }.lista-catalogue strong, .lista-catalogue small { display: block; }.lista-catalogue small { color: var(--muted); margin-top: 3px; }.attached { color: var(--green); font-size: 11px; }.back-link { border: 0; background: none; color: var(--blue); padding: 12px 0; }.lista-editor label { display: block; color: var(--muted); font-size: 11px; margin: 9px 0; }.lista-editor input, .add-option select { width: 100%; height: 38px; margin-top: 5px; border: 1px solid var(--line); border-radius: 8px; padding: 0 9px; background: white; }.lista-editor h3 { display: flex; justify-content: space-between; margin: 18px 0 7px; font-size: 14px; }.lista-editor h3 span { color: var(--muted); font-weight: 400; }.lista-options { max-height: 250px; overflow: auto; }.lista-options article { display: flex; justify-content: space-between; align-items: center; padding: 9px 4px; border-bottom: 1px solid var(--line); }.lista-options strong, .lista-options small { display: block; }.lista-options small { color: var(--muted); margin-top: 2px; font-size: 10px; }.lista-options button { border: 0; background: none; color: var(--danger); font-size: 18px; }.add-option { display: grid; grid-template-columns: 1fr auto auto; gap: 7px; margin-top: 12px; }.lista > span { display: flex; }

html[data-density="compact"] .product-grid { display: block; padding: 5px 10px; }
html[data-density="compact"] .source-card { grid-template-columns: 1fr 30px; padding-block: 6px; }
html[data-density="compact"] .source-card > .food-image { display: none; }
html[data-density="compact"] .product-card { min-height: 42px; grid-template-columns: 18px minmax(120px, 1fr); border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 5px 4px; }
html[data-density="compact"] .product-card > .food-image { display: none; }
html[data-density="compact"] .product-copy { display: grid; grid-template-columns: minmax(120px, 1fr) 72px 145px; align-items: center; gap: 8px; }
html[data-density="compact"] .product-copy span { margin: 0; text-align: right; }
html[data-density="compact"] .product-copy small { justify-content: flex-end; }
html[data-density="compact"] .drop-card { min-height: 40px; margin: 5px 0; grid-auto-flow: column; justify-content: center; }
html[data-density="compact"] .drop-card svg { width: 15px; }

@media (max-width: 760px) {
  html[data-density="compact"] .product-copy { grid-template-columns: 1fr auto; }
  html[data-density="compact"] .product-copy small { grid-column: 1 / -1; justify-content: flex-start; }
}
