/* ── auth ── */
#auth-screen { min-height: calc(100vh - 56px); display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding: 40px 16px 56px; background: radial-gradient(circle at 20% 15%, rgba(33, 88, 166,0.05), transparent 45%), radial-gradient(circle at 85% 85%, rgba(11, 100, 120,0.05), transparent 45%); }
.auth-layout { width: 100%; max-width: 620px; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.auth-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 36px 32px; width: 100%; max-width: 380px; box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.auth-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; opacity: 0.7; background: linear-gradient(90deg, var(--accent) 0%, var(--accent) 60%, var(--accent-register) 100%); transition: background 0.25s ease; }
.auth-card.register-mode::before { background: linear-gradient(90deg, var(--accent-register) 0%, var(--accent-register) 60%, var(--accent) 100%); }
.mode-badge { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px; padding: 5px 12px; border-radius: 20px; background: var(--accent-light); color: var(--accent-dark); margin-bottom: 16px; }
.auth-card.register-mode .mode-badge { background: var(--accent-register-light); color: var(--accent-register); }
.auth-card h1 { font-family: var(--font-display); font-size: 26px; font-weight: 600; letter-spacing: -0.3px; margin-bottom: 6px; color: var(--text); }
.auth-card p.sub { color: var(--muted); font-size: 13.5px; margin-bottom: 26px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 11.5px; font-weight: 700; margin-bottom: 6px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.6px; }
.field input { width: 100%; padding: 11px 13px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-size: 14px; background: var(--surface); outline: none; transition: border-color 0.2s, box-shadow 0.2s; font-family: var(--font-body); }
.field input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-light); }
.auth-card.register-mode .field input:focus { border-color: var(--accent-register); box-shadow: 0 0 0 3px var(--accent-register-light); }
.forgot-pass-link { display: block; text-align: right; font-size: 12px; font-weight: 600; color: var(--muted); text-decoration: none; margin-top: 7px; cursor: pointer; transition: color 0.15s ease; }
.forgot-pass-link:hover { color: var(--accent); text-decoration: underline; }
.auth-card.register-mode .forgot-pass-link { display: none; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 16px; border-radius: var(--radius-sm); border: none; font-size: 13px; font-weight: 700; cursor: pointer; transition: all 0.18s ease; font-family: var(--font-body); }
.btn-primary { background: var(--accent); color: #fff; width: 100%; padding: 12px; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--accent-dark); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.auth-card.register-mode .btn-primary { background: var(--accent-register); }
.auth-card.register-mode .btn-primary:hover { background: #084e5d; }
.btn-secondary { background: var(--accent-light); color: var(--accent-dark); border: 1px solid transparent; }
.btn-secondary:hover { background: #d5e3f5; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 18px 0; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.auth-divider span { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; }
.btn-google { width: 100%; padding: 11px; background: #fff; color: var(--text); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: 600; }
.btn-google:hover { background: #F5F7FA; border-color: #CBD5E1; }
.btn-google:disabled { opacity: 0.6; cursor: default; }
.btn-danger { background: transparent; color: var(--danger); border: 1px solid var(--border); }
.btn-danger:hover { background: var(--danger-light); border-color: #f0c6bd; }
.btn-sm { padding: 7px 14px; font-size: 12px; width: auto; }
.auth-toggle { text-align: center; margin-top: 22px; font-size: 13px; color: var(--muted); }
.auth-toggle a { color: var(--accent); cursor: pointer; font-weight: 700; text-decoration: none; }
.auth-toggle a:hover { text-decoration: underline; }
.auth-card.register-mode .auth-toggle a { color: var(--accent-register); }
.err { background: var(--danger-light); color: var(--danger); border: 1px solid #f0c6bd; border-radius: var(--radius-sm); padding: 9px 13px; font-size: 12.5px; font-weight: 600; margin-bottom: 16px; display: none; }
.err.auth-msg-success { background: var(--accent-light); color: var(--accent-dark); border-color: #bcd4ee; }

/* ── dashboard ── */
#app-screen { display: none; padding: 28px 0 60px; }
.app-header { margin-bottom: 18px; }
.app-header h2 { font-family: var(--font-display); font-size: 26px; font-weight: 600; letter-spacing: -0.3px; }
.preview-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 18px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; box-shadow: var(--shadow-sm); position: relative; overflow: hidden; }
.preview-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--accent), var(--accent-register)); }
.preview-link-box { flex: 1; font-size: 13px; color: var(--muted); min-width: 200px; }
.preview-link-box span { font-weight: 700; color: var(--text); text-transform: uppercase; letter-spacing: 0.6px; font-size: 11px; }
.preview-link-box a { color: var(--accent); text-decoration: none; font-weight: 700; display: block; margin-top: 4px; word-break: break-all; }
.preview-link-box a:hover { text-decoration: underline; }
.qr-box { display: flex; align-items: center; gap: 12px; }
#qr-canvas { width: 48px; height: 48px; border-radius: 6px; border: 1px solid var(--border); }
.qr-box-buttons { display: flex; flex-direction: column; gap: 6px; }
.editable-field-wrap { position: relative; display: flex; align-items: center; }
.editable-field-wrap input { border-bottom: 1.5px dashed var(--border) !important; padding-bottom: 3px !important; padding-right: 24px !important; transition: border-color 0.15s ease; }
.editable-field-wrap input:hover, .editable-field-wrap input:focus { border-bottom-color: var(--accent) !important; }
.editable-field-wrap input::placeholder { color: #ADB3A6; }
.editable-icon { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 13px; color: var(--muted); pointer-events: none; opacity: 0.75; }
.editable-field-wrap:hover .editable-icon, .editable-field-wrap input:focus ~ .editable-icon { color: var(--accent); opacity: 1; }
.sections-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 2px 2px 4px; flex-wrap: wrap; }
.sections-toolbar-hint { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; }
.sections-toolbar-actions { display: flex; gap: 8px; }
.sections-area { display: grid; gap: 18px; }
.section-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: box-shadow 0.2s ease, opacity 0.2s ease; }
.section-card:hover { box-shadow: var(--shadow-md); }
.section-card.is-hidden { opacity: 0.6; }
.section-card.is-hidden .section-header { background: #F6F1E9; }
.section-header { display: flex; align-items: flex-start; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--border); background: #FAFAF7; border-radius: var(--radius) var(--radius) 0 0; flex-wrap: wrap; }
.section-card.is-open .section-header { border-radius: var(--radius) var(--radius) 0 0; }
.section-card:not(.is-open) .section-header { border-bottom-color: transparent; border-radius: var(--radius); }
.section-collapse-toggle { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; margin-top: 1px; border: 1px solid var(--border); border-radius: 50%; background: var(--surface); color: var(--muted); cursor: pointer; transition: all 0.2s ease; }
.section-collapse-toggle:hover { border-color: var(--accent); color: var(--accent); }
.section-card.is-open .section-collapse-toggle { background: var(--accent); border-color: var(--accent); color: #fff; }
.icon-chevron { width: 15px; height: 15px; display: block; transform: rotate(-90deg); transition: transform 0.25s ease; }
.section-card.is-open .icon-chevron { transform: rotate(0deg); }
.section-title-block { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.section-meta-badges { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.section-dish-count { font-size: 10.5px; font-weight: 700; color: var(--muted); background: var(--bg); border: 1px solid var(--border); border-radius: 20px; padding: 2px 9px; }
.section-hidden-badge { font-size: 10.5px; font-weight: 700; color: #A9663A; background: #F3E3D3; border: 1px solid #E9CBA9; border-radius: 20px; padding: 2px 9px; }
.section-name-wrap { width: 100%; }
.section-desc-wrap { width: 100%; }
.trev-retranslate-bar { display: flex; justify-content: flex-end; padding: 2px 0 10px; }
.section-desc-input { font-size: 13px; font-weight: 500; color: var(--muted); border: none; background: transparent; outline: none; width: 100%; padding: 1px 22px 3px 0; }
.section-desc-input::placeholder { color: var(--muted); opacity: .7; }
.section-name-input { font-family: var(--font-display); font-size: 17px; font-weight: 600; color: var(--text); border: none; background: transparent; outline: none; width: 100%; padding: 1px 22px 3px 0; }
.section-body { padding: 14px; }
.section-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; flex-wrap: wrap; justify-content: flex-end; margin-top: 2px; }
.btn-icon-toggle { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border: 1px solid var(--border); border-radius: 50%; background: var(--surface); color: var(--accent); cursor: pointer; transition: all 0.15s ease; flex-shrink: 0; }
.section-visibility-btn:hover { border-color: var(--accent); background: var(--accent-light); }
.section-visibility-btn.is-off { color: #A9663A; border-color: #E9CBA9; background: #F9F1E7; }
.section-visibility-btn.is-off:hover { background: #F3E3D3; }
.icon-layout { width: 16px; height: 16px; display: block; }
.section-open-btn.is-off { color: var(--muted); border-color: var(--border); background: var(--bg); }
.section-open-btn.is-off:hover { background: var(--accent-light); color: var(--accent); border-color: var(--accent); }
@media (max-width: 600px) {
  .section-header { padding: 12px; }
  .section-actions { width: 100%; justify-content: flex-start; margin-top: 8px; }
}
.dish-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
/* ── dish row (dashboard) ──
   A grid: info | price | tools. On phones the tools drop onto their own line, so no button is ever
   positioned over another one and a long name or label can never push the layout around. */
.dish-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "info price tools"; align-items: center; gap: 8px 14px; padding: 11px 13px; border: 1px solid #EEEFEA; border-radius: var(--radius-sm); background: #FCFCFA; transition: border-color 0.15s ease, background 0.15s ease; }
.dish-row:hover { border-color: var(--border); }
.dish-row.dish-row-editing { border-color: var(--accent); background: var(--accent-light); }
.dish-row.dish-row-unavailable { background: #F6F1E9; border-color: #E7E1D6; }
.dish-row.dish-row-unavailable .dish-info, .dish-row.dish-row-unavailable .dish-price { opacity: 0.6; }
.dish-info { grid-area: info; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.dish-headline { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; min-width: 0; }
.dish-row .dish-name { font-weight: 700; min-width: 0; overflow-wrap: break-word; }
.dish-row .dish-desc { font-size: 12.5px; line-height: 1.4; color: var(--muted); overflow-wrap: break-word; }
.dish-row .dish-price { grid-area: price; font-family: var(--font-display); font-weight: 600; color: var(--accent-dark); font-size: 16px; white-space: nowrap; text-align: end; }
.dish-unavailable-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; color: #A9663A; background: #F3E3D3; border: 1px solid #E9CBA9; border-radius: 4px; padding: 2px 6px; white-space: nowrap; }
.dish-unavailable-badge svg { width: 11px; height: 11px; flex-shrink: 0; }
.dish-row .dish-tag { border: 1px solid var(--accent-light); background: var(--accent-light); color: var(--accent-dark); border-radius: 4px; padding: 2px 8px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; white-space: nowrap; flex-shrink: 0; }
.dish-toolbar { grid-area: tools; display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; }
.dish-tools, .dish-move { display: flex; align-items: center; gap: 6px; }
/* tools: the same round buttons as the category header */
.dish-tools .btn-icon-toggle svg, .dish-tools .toggle-dish-soldout svg { width: 16px; height: 16px; display: block; }
.dish-edit-btn:hover { border-color: var(--accent); background: var(--accent-light); }
.dish-del-btn { color: var(--danger); }
.dish-del-btn:hover { background: var(--danger-light); border-color: #f0c6bd; }
/* arrows: the same tinted look as the category arrows, with a real gap between them */
.dish-move-btn { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 30px; padding: 0; border: 1px solid transparent; border-radius: 9px; background: var(--accent-light); color: var(--accent-dark); cursor: pointer; transition: background 0.15s ease; }
.dish-move-btn:hover { background: #d5e3f5; }
.dish-move-btn svg { width: 15px; height: 15px; display: block; }
.icon-eye { width: 17px; height: 17px; display: block; }
.icon-trash { width: 14px; height: 14px; display: block; }
.icon-edit { width: 15px; height: 15px; display: block; }
.btn-danger svg { display: block; }
@media (max-width: 600px) {
  .dish-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "info price" "tools tools"; }
  .dish-row .dish-price { align-self: start; }
  .dish-toolbar { justify-content: space-between; padding-top: 10px; border-top: 1px solid rgba(33, 88, 166, .08); }
}
@media (max-width: 359px) {
  .dish-tools, .dish-move { gap: 4px; }
}
.edit-badge { width: 100%; background: var(--accent-light); color: var(--accent-dark); font-size: 12px; font-weight: 700; padding: 7px 11px; border-radius: var(--radius-sm); margin-bottom: 8px; display: flex; justify-content: space-between; align-items: center; }
.cancel-edit { cursor: pointer; text-decoration: underline; font-weight: 700; }
.add-dish-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-end; padding-top: 14px; border-top: 1px dashed var(--border); }
.add-dish-form .f { flex: 2; min-width: 100px; }
.add-dish-form .f-sm { flex: 1; min-width: 70px; }
.add-dish-form label { display: block; font-size: 10px; font-weight: 700; color: var(--muted); margin-bottom: 5px; text-transform: uppercase; letter-spacing: 0.6px; }
.add-dish-form input, .add-dish-form select { width: 100%; padding: 9px 11px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 13px; background: var(--surface); outline: none; font-family: var(--font-body); transition: border-color 0.2s, box-shadow 0.2s; }
.add-dish-form input:focus, .add-dish-form select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-light); }
.add-section-area { background: var(--surface); border: 1.5px dashed var(--border); border-radius: var(--radius); padding: 14px; display: flex; gap: 8px; align-items: center; margin-top: 18px; transition: border-color 0.2s ease; }
.add-section-area:focus-within { border-color: var(--accent); }
.add-section-area input { flex: 1; padding: 11px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 14px; outline: none; font-family: var(--font-body); }
.add-section-area input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-light); }
.empty { text-align: center; padding: 34px 16px; color: var(--muted); font-size: 13.5px; }
#loading { position: fixed; inset: 0; background: var(--bg); display: flex; align-items: center; justify-content: center; z-index: 999; }
.spinner { border: 2.5px solid var(--border); border-top: 2.5px solid var(--accent); border-radius: 50%; width: 26px; height: 26px; animation: spin 0.8s linear infinite; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%) translateY(10px); background: var(--accent-dark); color: #fff; border-radius: var(--radius-sm); padding: 11px 18px; font-size: 13px; font-weight: 600; z-index: 9999; opacity: 0; box-shadow: var(--shadow-lg); transition: all 0.3s ease; pointer-events: none; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.subsections-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.subsection-card { border: 1px solid var(--border); border-left: 3px solid #C5D6EC; border-radius: var(--radius-sm); background: var(--surface); }
.subsection-header { display: flex; align-items: center; gap: 10px; padding: 10px 12px 8px; border-bottom: 1px solid var(--border); background: #FAFAF7; flex-wrap: wrap; }
.subsection-name-wrap { flex: 1 1 200px; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.subsection-eyebrow { display: block; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px; color: var(--muted); margin-bottom: 2px; }
.subsection-name-input { font-family: var(--font-display); font-size: 14.5px; font-weight: 600; color: var(--text); border: none; background: transparent; outline: none; width: 100%; padding: 1px 22px 3px 0; }
.subsection-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; flex-wrap: wrap; justify-content: flex-end; }
.subsection-hidden-badge { align-self: flex-start; margin-top: 4px; }
.subsection-body { padding: 12px; background: var(--surface); border-radius: 0 0 var(--radius-sm) var(--radius-sm); }
.add-subsection-area { display: flex; gap: 8px; align-items: center; margin-top: 4px; }
.add-subsection-area input { flex: 1; padding: 9px 11px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 13px; outline: none; font-family: var(--font-body); }
.add-subsection-area input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-light); }
.add-subsection-hint { margin-top: 10px; }
.add-subsection-link { font-size: 12px; font-weight: 600; color: var(--accent); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 600px) {
  .subsection-header { flex-wrap: wrap; align-items: center; row-gap: 6px; }
  .subsection-name-wrap { flex: 1 1 140px; min-width: 0; }
  .subsection-actions { flex: 1 1 100%; width: 100%; justify-content: flex-start; }
  .subsection-header { padding: 10px 12px; }
  .subsection-eyebrow { display: none; }
}

/* ── public-menu ── */
#menu-screen { background: var(--bg); min-height: 100vh; --menu-content-width: 620px; }
@media (min-width: 650px) {
  #menu-screen { --menu-content-width: 700px; }
}
.public-menu-header { padding: 40px 20px 28px; text-align: center; background: linear-gradient(180deg, var(--accent-light) 0%, var(--bg) 100%); border-bottom: 2px solid var(--text) !important; box-shadow: none; margin-bottom: 8px; }
.public-menu-title { font-family: var(--font-display); font-size: 30px; font-weight: 600; letter-spacing: -0.5px; color: var(--accent-dark); }
.lang-switch { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.lang-select-wrap { position: relative; display: block; width: min(100%, 176px); height: 34px; color: var(--text); background: var(--section-bg, var(--surface)); border: 1.5px solid var(--border); border: 1.5px solid color-mix(in srgb, var(--text) 30%, transparent); border-radius: 999px; box-shadow: 0 1px 5px rgba(0, 0, 0, 0.06); transition: border-color 0.2s ease, box-shadow 0.2s ease; opacity: 0.88; }
.lang-select-wrap:hover, .lang-select-wrap:focus-within { opacity: 1; }
.lang-select-wrap select { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0 30px 0 32px; margin: 0; border: 0; border-radius: 999px; outline: none; background: transparent; color: inherit; font-family: var(--font-body); font-size: 16px; font-weight: 600; text-overflow: ellipsis; cursor: pointer; -webkit-appearance: none; appearance: none; }
.lang-select-wrap select option { color: #16201a; background: #fff; }
.lang-select-globe { position: absolute; left: 11px; top: 50%; width: 15px; height: 15px; margin-top: -7.5px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.lang-select-wrap::after { content: ''; position: absolute; right: 14px; top: 50%; width: 6px; height: 6px; margin-top: -5px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); pointer-events: none; }
.lang-select-wrap:focus-within { border-color: var(--text); box-shadow: 0 0 0 3px color-mix(in srgb, var(--text) 18%, transparent); }
@media (hover: hover) and (pointer: fine) {
  .lang-select-wrap:hover { border-color: var(--text); }
}
.lang-switch button { border: 1px solid var(--border); background: var(--surface); color: var(--muted); padding: 6px 14px; border-radius: 20px; font-size: 12px; font-weight: 700; font-family: var(--font-body); cursor: pointer; transition: all 0.15s ease; }
.lang-switch button:hover { border-color: var(--accent); color: var(--accent-dark); }
.lang-switch button.active { background: var(--accent-dark); border-color: var(--accent-dark); color: var(--on-accent, #fff); }
.lang-switch button:disabled { opacity: 0.6; cursor: default; }
.public-menu-body { max-width: calc(var(--menu-content-width, 620px) + 32px); margin: 0 auto; padding: 22px 16px 40px; display: flex; flex-direction: column; gap: 12px; }
.public-section { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; transition: box-shadow 0.2s ease, border-color 0.2s ease; }
@media (hover: hover) and (pointer: fine) {
  .public-section:hover { box-shadow: var(--shadow-md); }
}
.public-section.open { box-shadow: var(--shadow-md); }
.public-section-toggle { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; min-height: 54px; background-color: rgba(0, 0, 0, 0); border: none; border-bottom: 1px solid transparent; text-align: left; cursor: pointer; font-family: var(--font-body); -webkit-tap-highlight-color: transparent; transition: background-color 0.5s ease, border-color 0.2s ease; }
@media (hover: hover) and (pointer: fine) {
  .public-section-toggle:hover { background-color: rgba(0, 0, 0, 0.045); transition-duration: 0.2s, 0.2s; }
}
.public-section-toggle.is-touched { background-color: rgba(0, 0, 0, 0.055); transition-duration: 0.1s, 0.2s; }
.public-section.open .public-section-toggle { border-bottom-color: var(--border); }
.public-section-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.public-section-title { font-family: var(--font-display); font-size: 21px; font-weight: 600; color: var(--accent-dark); letter-spacing: -0.2px; transition: color 0.15s ease; line-height: 1.2; display: flex; align-items: center; margin: 0; padding: 0; }
.public-section-meta { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; margin-left: auto; min-width: 24px; height: 100%; align-self: center; }
.public-section-chevron { font-size: 12px; color: var(--muted); display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: var(--bg); transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.2s ease, color 0.2s ease; }
.public-section.open .public-section-chevron { transform: rotate(180deg); background: var(--accent); color: var(--on-accent, #fff); }
.public-dish-list-wrap { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.32s cubic-bezier(0.4, 0, 0.2, 1); }
.public-section.open .public-dish-list-wrap { grid-template-rows: 1fr; }
.public-dish-list { overflow: hidden; min-height: 0; display: flex; flex-direction: column; padding: 0 20px; transition: padding 0.32s cubic-bezier(0.4, 0, 0.2, 1); }
.public-section.open .public-dish-list { padding: 4px 20px 14px; }
.public-dish-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.public-dish-row:last-child { border-bottom: none; }
.public-dish-row, .public-dish-row:hover, .public-dish-row:active, .public-dish-row:focus, .public-dish-row:focus-within { background: transparent; }
.public-dish-row { -webkit-tap-highlight-color: transparent; }
.public-dish-info { flex: 1 1 0; min-width: 0; }
.public-dish-name-line { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; row-gap: 6px; }
.public-dish-name { font-weight: 700; font-size: 14px; color: var(--text); min-width: 0; overflow-wrap: anywhere; word-break: break-word; }
.public-dish-tag { border: 1px solid var(--accent-light); background: var(--accent-light); color: var(--accent-dark); border-radius: 4px; padding: 1px 7px; font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.public-dish-desc { font-size: 13px; color: var(--muted); margin-top: 3px; line-height: 1.4; min-width: 0; overflow-wrap: anywhere; word-break: break-word; }
.public-dish-price { font-family: var(--font-display); font-weight: 600; color: var(--accent-dark); font-size: 15px; letter-spacing: -0.3px; white-space: nowrap; flex-shrink: 0; margin-left: auto; }
.public-subsection { margin: 4px 0 18px; }
.public-subsection:last-child { margin-bottom: 4px; }
.public-subsection-title { font-family: var(--font-display); font-size: 15px; font-weight: 700; letter-spacing: 0.1px; color: var(--accent-dark); background: var(--accent-light); border-left: 3px solid var(--accent-dark); border-radius: 6px; padding: 7px 12px; margin: 0 0 10px; }

/* ── customization ── */
.color-pickers-row { display: flex; gap: 24px; align-items: flex-end; flex-wrap: wrap; }
.color-picker-group { display: flex; flex-direction: column; gap: 6px; }
.color-picker-group label { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.6px; }
.color-picker-group input[type="color"] { width: 64px; height: 40px; border: 1px solid var(--border); border-radius: 8px; cursor: pointer; padding: 3px; background: var(--surface); transition: border-color 0.15s ease; }
.color-picker-group input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
.color-picker-group input[type="color"]::-webkit-color-swatch { border: 1px solid rgba(0,0,0,0.1); border-radius: 5px; }
.color-picker-group input[type="color"]:hover { border-color: var(--accent); }
.section-color-block { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); }
.section-color-help { font-size: 12.5px; color: var(--muted); margin: 10px 0 0; line-height: 1.45; max-width: 520px; }
.section-color-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.section-color-title { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.6px; }
.section-color-block .section-color-help { margin-top: 12px; }
/* the base .color-picker-group rule sets display:flex, which silently overrides the hidden attribute */
.color-picker-group[hidden] { display: none; }
.section-color-picker { flex-direction: row; align-items: center; gap: 12px; margin-top: 14px; padding: 10px 14px; border: 1px solid var(--accent); border-radius: 12px; background: var(--accent-light); width: fit-content; }
.section-color-hex { font-size: 13px; font-weight: 700; letter-spacing: 0.4px; color: var(--text); font-variant-numeric: tabular-nums; }
.contrast-hint { margin: 10px 0 0; font-size: 12.5px; font-weight: 700; }
.contrast-hint.is-good { color: #0B6478; }
.contrast-hint.is-low { color: #B5451F; }
@media (max-width: 600px) {
  .public-menu-header { padding: 32px 16px 22px; }
  .public-menu-title { font-size: 24px; }
  .public-section-toggle { padding: 15px 16px; }
  .public-section-title { font-size: 17.5px; }
  .public-section.open .public-dish-list { padding: 4px 16px 12px; }
  .public-dish-list { padding: 0 16px; }
}
.print-card { display: none; }
@media print {
  body * { visibility: hidden; }
  #print-card, #print-card * { visibility: visible; }
  #print-card { display: flex !important; flex-direction: column; align-items: center; justify-content: flex-start; gap: 6px; position: absolute; top: 0; left: 0; width: 6.5cm; padding: 0.6cm 0.4cm; border: 1px dashed #999; text-align: center; }
  .print-card-name { font-family: var(--font-display), Georgia, serif; font-size: 15px; font-weight: 700; line-height: 1.2; max-width: 100%; word-break: break-word; }
  .print-card-qr { width: 3.6cm; height: 3.6cm; display: block; }
  .print-card-label { font-family: var(--font-body), sans-serif; font-size: 11px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: #333; }
  @page { size: auto; margin: 0.5cm; }
}
.header-mode-toggle { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.header-mode-option { display: flex; align-items: center; gap: 6px; padding: 8px 14px; border: 1.5px solid var(--border); border-radius: 999px; background: var(--bg); font-size: 12.5px; font-weight: 600; color: var(--muted); cursor: pointer; transition: all 0.15s ease; }
.header-mode-option:hover { border-color: var(--accent); color: var(--accent-dark); }
.header-mode-option.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.logo-upload-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.logo-preview { width: 72px; height: 72px; border: 1.5px dashed var(--border); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; background: var(--bg); flex-shrink: 0; overflow: hidden; }
#logo-preview-placeholder { font-size: 10px; color: var(--muted); text-align: center; padding: 4px; }
.logo-preview img { max-width: 100%; max-height: 100%; object-fit: contain; }
.logo-upload-actions { display: flex; flex-direction: column; gap: 5px; flex: 1; min-width: 200px; }
.logo-upload-hint { font-size: 11px; color: var(--muted); line-height: 1.4; }
.logo-upload-status { font-size: 11.5px; font-weight: 600; color: var(--accent-dark); min-height: 14px; }
.logo-upload-status.error { color: var(--danger); }

/* ── notes-and-layout ── */
.notes-card-field { margin-bottom: 12px; }
.notes-card-field label { display: block; font-size: 10px; font-weight: 700; color: var(--muted); margin-bottom: 5px; text-transform: uppercase; letter-spacing: 0.6px; }
.notes-card-field textarea { width: 100%; padding: 10px 11px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 13px; background: var(--bg); outline: none; font-family: var(--font-body); resize: vertical; min-height: 70px; line-height: 1.5; transition: border-color 0.2s, box-shadow 0.2s; }
.notes-card-field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-light); }
.notes-card-actions { display: flex; justify-content: flex-end; }
.public-notes-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 16px 18px; font-size: 13px; line-height: 1.6; color: var(--text); opacity: 0.9; white-space: pre-line; }
@media (max-width: 600px) {
  .header-mode-toggle { flex-direction: column; }
  .header-mode-option { justify-content: center; }
  .logo-upload-row { flex-direction: column; align-items: flex-start; }
}
.public-menu-logo { height: 108px; width: auto; max-width: 340px; object-fit: contain; display: block; margin: 0 auto; }
@media (max-width: 600px) {
  .public-menu-logo { height: 80px; max-width: 240px; }
}
#menu-screen .public-section, #menu-screen .section-card { background-color: var(--section-bg) !important; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: 10px; box-shadow: var(--shadow-sm); }
#menu-screen .public-section-title, #menu-screen .public-section h2 { background-color: transparent !important; border-bottom: none !important; padding: 0 !important; margin: 0; color: var(--text); }
#menu-screen .dish-row { background-color: transparent; }
body:not(.public-menu-mode) hr, body:not(#menu-screen) hr { border: none !important; border-top: 1px solid var(--accent) !important; opacity: 0.2; margin: 20px 0; }
#menu-screen hr { border: none !important; border-top: 1px solid var(--text) !important; background: transparent !important; height: 1px !important; box-shadow: none !important; opacity: 1 !important; margin: 24px 0; }
#menu-screen header, #menu-screen .public-menu-header { border: none !important; border-bottom: 1px solid var(--text) !important; box-shadow: none !important; background: transparent !important; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
@media (max-width: 600px) {
  .auth-card { padding: 28px 20px; border: none; border-bottom: 1px solid var(--border); border-radius: 0; box-shadow: none; }
  .app-header h2 { font-size: 22px; }
  nav { padding: 0 12px; gap: 6px; }
  .logo { font-size: 16px; }
  #nav-user { gap: 8px; }
  .status-badge { font-size: 10px; padding: 4px 8px; }
  .account-dropdown { right: 0; left: auto; min-width: 200px; }
  #currency-selector { width: 100%; flex: 1 1 auto; }
  .preview-card { flex-direction: column; align-items: stretch; padding: 14px; gap: 12px; }
  .qr-box { align-items: center; width: 100%; border-top: 1px solid var(--border); padding-top: 12px; gap: 12px; }
  .qr-box-buttons { flex: 1; flex-direction: column; }
  .qr-box-buttons .btn { width: 100%; }
  .dish-row { padding: 9px 11px; }
  .add-dish-form { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .add-dish-form .edit-badge { grid-column: span 2; }
  .add-dish-form > div:last-child { grid-column: span 2; margin-top: 4px; }
  .add-dish-form > div:last-child button { width: 100%; padding: 11px; }
}

/* ── pricing-landing ── */
.landing-extras { width: 100%; max-width: 620px; margin: 0; text-align: center; }
.trial-banner { background: var(--accent-light); border: 1px solid var(--accent); color: var(--accent-dark); padding: 16px 20px; border-radius: var(--radius); margin-bottom: 24px; }
.trial-banner h3 { font-family: var(--font-display); font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.trial-banner p { font-size: 13.5px; opacity: 0.9; }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 40px; }
.clickable-card { display: flex; flex-direction: column; justify-content: space-between; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 20px; box-shadow: var(--shadow-sm); text-decoration: none; color: var(--text); cursor: pointer; -webkit-user-select: none; user-select: none; transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.25s, box-shadow 0.25s; }
.clickable-card:hover { transform: translateY(-5px); border-color: var(--accent); box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08); }
.pricing-card h4 { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; margin-bottom: 12px; }
.pricing-card .price { font-family: var(--font-display); font-size: 28px; font-weight: 800; color: var(--text); margin-bottom: 8px; line-height: 1; }
.pricing-card .price span { font-size: 14px; color: var(--muted); font-weight: 500; }
.pricing-card p { font-size: 13px; color: var(--muted); margin-bottom: 20px; flex-grow: 1; }
.clickable-card.highlighted { border-color: var(--accent-register); position: relative; }
.clickable-card.highlighted:hover { box-shadow: 0 10px 25px rgba(11, 100, 120, 0.2); border-color: var(--accent-register); }
.card-action-btn { display: block; width: 100%; padding: 10px 12px; border-radius: var(--radius); font-size: 13px; font-weight: 600; text-align: center; background: var(--border); color: var(--text); transition: background 0.2s, color 0.2s; }
.clickable-card:hover .card-action-btn { background: var(--text); color: var(--surface); }
.clickable-card:hover .card-action-btn.primary { background: var(--accent); color: white; }
.clickable-card.highlighted:hover .card-action-btn.primary { background: var(--accent-register); color: white; }
.faq-section h3 { font-family: var(--font-display); font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.faq-section p { font-size: 14px; color: var(--muted); margin-bottom: 20px; }
.faq-buttons { display: flex; flex-direction: column; gap: 12px; max-width: 420px; margin: 0 auto; }
.faq-buttons a.btn { width: 100%; text-decoration: none; font-size: 13.5px; font-weight: 500; padding: 12px; }
.site-credit { text-align: center; margin-top: 28px; font-size: 12px; color: var(--muted); opacity: 0.8; }
.site-credit a { color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.site-credit a:hover { opacity: 1; color: var(--accent-dark); }

/* ── public-menu-refinements ── */
#menu-screen .public-menu-header { border-bottom: 3px solid var(--text) !important; border-image: none !important; }
#menu-screen .public-section-toggle { display: flex !important; align-items: center !important; justify-content: space-between !important; }
#menu-screen .public-section-title { line-height: 1.2 !important; margin: 0 !important; display: inline-block !important; vertical-align: middle !important; }
#menu-screen .public-section-chevron { display: inline-flex !important; align-items: center !important; justify-content: center !important; transform: translateY(1px) !important; }
.dish-photo-upload-wrap { flex: 1 1 140px; min-width: 140px; }
.dish-photo-upload { display: flex; align-items: center; gap: 8px; margin-top: 3px; flex-wrap: wrap; position: relative; min-height: 36px; }
.dish-photo-upload .btn { flex-shrink: 0; }
.dish-photo-upload .badge-optional { margin-left: 2px; }
.dish-photo-preview { width: 36px; height: 36px; border-radius: 6px; border: 1px dashed var(--border); object-fit: cover; }
.badge-optional { display: inline-flex; align-items: center; background: var(--accent-light); color: var(--accent-dark); font-size: 9px; font-weight: 700; padding: 1px 5px; border-radius: 4px; text-transform: uppercase; letter-spacing: 0.3px; line-height: 1.1; }
.public-dish-photo-icon { display: inline-flex; align-items: center; justify-content: center; margin-left: 4px; padding: 5px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--accent-dark); cursor: pointer; transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease; vertical-align: middle; flex-shrink: 0; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06); }
.public-dish-photo-icon:hover { transform: scale(1.05); box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12); background: var(--accent-light); }
.public-dish-photo-icon svg { width: 16px; height: 16px; fill: currentColor; }
.photo-modal { display: none; position: fixed; z-index: 99999; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(27, 33, 29, 0.3); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s ease; }
.photo-modal.show { display: flex; opacity: 1; }
.photo-modal-content { max-width: 90%; max-height: 80vh; border-radius: var(--radius); box-shadow: var(--shadow-lg); object-fit: contain; transform: scale(0.95); transition: transform 0.3s ease; background: var(--surface); }
.photo-modal.show .photo-modal-content { transform: scale(1); }
.photo-modal-close { position: absolute; top: 20px; right: 24px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; background: rgba(20,30,25,.55); color: #fff; cursor: pointer; transition: transform 0.2s; }
.photo-modal-close svg { display: block; width: 20px; height: 20px; }
.photo-modal-close:hover { transform: scale(1.2); }

/* ── cookie-banner ── */
#cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; max-width: 560px; margin: 0 auto; background: var(--surface); border: 1px solid rgba(0, 0, 0, 0.25); border-radius: var(--radius); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); padding: 16px 18px; z-index: 500; display: none; align-items: center; gap: 14px; flex-wrap: wrap; }
#cookie-banner.show { display: flex; }
#cookie-banner p { flex: 1 1 260px; font-size: 12.5px; line-height: 1.5; color: var(--muted); margin: 0; }
#cookie-banner p strong { color: var(--text); }
#cookie-banner a { color: var(--accent-dark); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
#cookie-banner-actions { flex-shrink: 0; display: flex; align-items: center; }
#cookie-banner-actions .btn { white-space: nowrap; margin: 0; }
@media (max-width: 600px) {
  #cookie-banner { flex-direction: column; align-items: stretch; padding: 14px; gap: 12px; }
  #cookie-banner p { flex: 1 1 auto; }
  #cookie-banner-actions { width: 100%; }
  #cookie-banner-actions .btn { width: 100%; }
}

/* ── modern-refresh ── */
:root { --radius: 16px; --radius-sm: 10px; --shadow-sm: 0 1px 3px rgba(20, 30, 25, .055); --shadow-md: 0 12px 32px rgba(20, 30, 25, .09); --shadow-lg: 0 24px 64px rgba(20, 30, 25, .16); }
body { -webkit-font-smoothing: antialiased; }
button, a, input, select, textarea { transition-duration: .2s; }
.btn { border-radius: 11px; }
.auth-card, .preview-card, .paywall-card { box-shadow: var(--shadow-sm); }
.auth-card:hover, .preview-card:hover { box-shadow: 0 8px 28px rgba(20, 30, 25, .075); }
input:focus, select:focus, textarea:focus { box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 13%, transparent); }
#menu-screen { overflow-x: clip; }
#menu-screen .public-menu-header { position: relative; padding: clamp(34px, 7vw, 64px) 20px 30px; border-bottom-width: 1px !important; background: radial-gradient(circle at 15% 0%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 36%), linear-gradient(180deg, color-mix(in srgb, var(--bg) 75%, white), var(--bg)); }
#menu-screen .public-menu-title { font-size: clamp(30px, 7vw, 44px); letter-spacing: -.045em; }
#menu-screen .public-menu-logo { max-height: 118px; max-width: min(360px, 82vw); }
.public-menu-tools { position: sticky; top: 0; z-index: 20; padding: 12px max(16px, calc((100% - var(--menu-content-width, 620px)) / 2)); background: color-mix(in srgb, var(--bg) 88%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.public-search { position: relative; display: block; }
.public-search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; }
.public-search input { width: 100%; height: 44px; padding: 0 42px; border: 1px solid var(--border); border-radius: 14px; background: color-mix(in srgb, var(--surface) 92%, transparent); outline: none; color: var(--text); }
.public-search input:focus { border-color: var(--accent); }
.public-search input::placeholder { color: var(--muted); opacity: 0.85; }
.public-category-nav { display: flex; gap: 7px; overflow-x: auto; padding: 10px 1px 1px; scrollbar-width: none; scroll-snap-type: x proximity; }
.public-category-nav::-webkit-scrollbar { display: none; }
.public-category-nav button { flex: 0 0 auto; scroll-snap-align: start; border: 1px solid var(--border); background: var(--surface); color: var(--text); border-radius: 999px; padding: 7px 12px; font-size: 11px; font-weight: 700; cursor: pointer; }
.public-category-nav button:hover { border-color: var(--accent); background: var(--accent-light); }
#menu-screen .public-menu-body { padding-top: 16px; }
#menu-screen .public-section { scroll-margin-top: 122px; border-radius: 18px; }
#menu-screen .public-section-toggle { padding: 17px 18px; }
#menu-screen .public-section-title { font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
#menu-screen .public-section-meta { gap: 8px; }
#menu-screen .public-section-count { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px; background: var(--accent-light); color: var(--accent-dark); font-size: 10px; font-weight: 800; }
#menu-screen .public-dish-row { padding: 9px 0; }
#menu-screen .public-dish-name { font-size: 14.5px; }
#menu-screen .public-dish-desc { margin-top: 2px; line-height: 1.48; color: var(--desc, var(--muted)); }
#menu-screen .public-dish-price { font-family: var(--font-body); font-weight: 800; }
.public-no-results { padding: 42px 16px; text-align: center; color: var(--muted); }
.public-no-results[hidden], .public-section[hidden], .public-dish-row[hidden], .public-subsection[hidden] { display: none !important; }
body.modal-open { overflow: hidden; }
.photo-modal-content { max-width: min(92%, 900px); max-height: 84vh; border-radius: 20px; }
@media (max-width: 640px) {
  nav { padding-inline: 16px; }
  .public-menu-tools { padding-top: 10px; padding-bottom: 9px; padding-inline: max(12px, calc((100% - var(--menu-content-width, 620px)) / 2)); }
  #menu-screen .public-menu-body { padding-inline: 12px; gap: 10px; }
  #menu-screen .public-section.open .public-dish-list { padding-inline: 16px; }
  #menu-screen .public-dish-row { gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ── interface-refresh ── */
:root { --bg: #f3f5f1; --surface-soft: #f8faf7; --ink-soft: #35423b; --line-soft: rgba(15, 56, 104, .11); }
body { background: radial-gradient(circle at 8% 10%, rgba(33, 88, 166, .055), transparent 28rem), var(--bg); }
nav { height: 68px; padding-inline: clamp(18px, 4vw, 48px); background: rgba(255, 255, 255, .88); border-color: rgba(33, 88, 166, .10); box-shadow: 0 1px 0 rgba(33, 88, 166, .03); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.logo { display: inline-flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 800; letter-spacing: -.045em; }
.logo-mark { display: grid; place-items: center; width: 32px; height: 32px; color: #fff; border-radius: 10px; background: linear-gradient(145deg, var(--brand-orange), var(--accent-dark)); box-shadow: 0 7px 18px rgba(15, 56, 104, .19); font-size: 15px; letter-spacing: 0; }
.account-trigger { width: 38px; height: 38px; color: var(--accent-dark); border-color: rgba(33, 88, 166, .14); box-shadow: 0 3px 12px rgba(15, 56, 104, .07); }
.account-avatar { display: grid; place-items: center; }
.account-dropdown { border-radius: 14px; padding: 7px; }
.account-dropdown-item { border-radius: 9px; }
#auth-screen { min-height: calc(100vh - 68px); padding: clamp(34px, 6vw, 76px) clamp(16px, 4vw, 42px) 72px; background: radial-gradient(circle at 12% 6%, rgba(33, 88, 166, .12), transparent 28%), radial-gradient(circle at 92% 32%, rgba(11, 100, 120, .09), transparent 24%); }
.auth-layout { max-width: 1120px; display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(360px, .82fr); align-items: center; gap: clamp(38px, 7vw, 94px); }
.auth-hero { width: 100%; max-width: 620px; padding: clamp(12px, 2vw, 24px) 0; }
.auth-hero-kicker { display: flex; align-items: center; gap: 9px; margin-bottom: 18px; color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.auth-hero-kicker span:first-child { width: 26px; height: 2px; border-radius: 999px; background: var(--accent-register); }
.auth-hero h2 { max-width: 590px; margin-bottom: 18px; font-family: var(--font-display); font-size: clamp(38px, 5.2vw, 64px); font-weight: 750; line-height: 1.04; letter-spacing: -.06em; color: #17241e; }
.auth-hero > p { max-width: 570px; color: var(--ink-soft); font-size: clamp(15px, 1.5vw, 17px); line-height: 1.72; }
.auth-benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 30px; }
.auth-benefit { min-width: 0; padding: 15px 13px; border: 1px solid var(--line-soft); border-radius: 16px; background: rgba(255, 255, 255, .54); }
.benefit-icon { display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 12px; color: var(--accent); border-radius: 10px; background: var(--accent-light); }
.benefit-icon svg { width: 18px; height: 18px; }
.auth-benefit strong { display: block; margin-bottom: 4px; font-size: 12.5px; line-height: 1.35; }
.auth-benefit small { display: block; color: var(--muted); font-size: 10.5px; line-height: 1.45; }
.auth-hero-note { display: inline-flex; align-items: center; gap: 12px; margin-top: 24px; padding: 9px 12px; color: var(--accent-dark); border: 1px solid rgba(33, 88, 166, .12); border-radius: 999px; background: rgba(255, 255, 255, .68); font-size: 11.5px; }
.auth-hero-note strong { font-weight: 800; }
.auth-hero-note span { padding-left: 12px; border-left: 1px solid var(--border); color: var(--muted); }
.auth-card { justify-self: end; max-width: 430px; padding: 38px 36px 34px; border: 1px solid rgba(33, 88, 166, .11); border-radius: 24px; box-shadow: 0 28px 80px rgba(15, 56, 104, .14); }
.auth-card::before { height: 4px; opacity: 1; }
.mode-badge { margin-bottom: 18px; padding: 6px 11px; font-size: 10px; }
.auth-card h1 { font-size: 31px; font-weight: 750; letter-spacing: -.045em; }
.auth-card p.sub { margin-bottom: 25px; font-size: 13.5px; }
.field { margin-bottom: 17px; }
.field label { margin-bottom: 7px; font-size: 10.5px; letter-spacing: .08em; }
.field input { min-height: 48px; padding: 11px 14px; border-width: 1px; border-radius: 12px; background: var(--surface-soft); }
.field input:hover { border-color: #c2cedb; }
.auth-card .btn-primary { min-height: 48px; border-radius: 12px; }
.btn-google { min-height: 46px; border-radius: 12px; }
.auth-toggle { padding-top: 18px; border-top: 1px solid var(--border); }
.err { border-radius: 11px; }
.landing-extras { grid-column: 1 / -1; max-width: 1120px; margin-top: clamp(8px, 2vw, 24px); }
.trial-banner { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 18px; padding: 15px 20px; border-color: rgba(33, 88, 166, .16); border-radius: 16px; text-align: left; }
.trial-banner h3 { flex: 0 0 auto; margin: 0; }
.trial-banner p { max-width: 650px; padding-left: 14px; border-left: 1px solid rgba(33, 88, 166, .17); }
.pricing-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 48px; }
.clickable-card { min-height: 225px; padding: 24px; border-radius: 18px; text-align: left; }
.pricing-card .price { font-size: 30px; letter-spacing: -.035em; }
.card-action-btn { border-radius: 10px; }
.faq-section { padding: 30px; border: 1px solid var(--line-soft); border-radius: 18px; background: rgba(255,255,255,.58); }
.faq-buttons { max-width: 720px; flex-direction: row; }
.faq-buttons a.btn { min-height: 46px; }
.landing-extras .fx-note { width: fit-content; max-width: 760px; margin: -29px auto 32px !important; padding: 9px 13px; border: 1px solid var(--line-soft); border-radius: 999px; background: rgba(255, 255, 255, .58); line-height: 1.5; }
#app-screen { padding: 36px 0 78px; }
#app-screen .container { max-width: 1180px; padding-inline: clamp(16px, 3vw, 32px); }
.app-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 22px; }
.app-eyebrow { display: block; margin-bottom: 4px; color: var(--accent); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.app-header h2 { font-size: clamp(26px, 3vw, 34px); font-weight: 750; letter-spacing: -.045em; }
.app-header p { margin-top: 5px; color: var(--muted); font-size: 13px; }
.preview-card, .section-card, .paywall-card { border-color: var(--line-soft); border-radius: 18px; box-shadow: 0 8px 28px rgba(15, 56, 104, .055); }
.preview-card { padding: 22px 24px; margin-bottom: 22px; background: linear-gradient(125deg, #fff 0%, #fff 70%, #eef3fb 100%); }
.preview-card::before { height: 4px; }
.preview-link-box > span:first-child { display: inline-block; margin-bottom: 4px; color: var(--accent); }
.preview-link-box a { width: fit-content; max-width: 100%; margin-top: 8px; padding: 6px 10px; border-radius: 8px; background: var(--accent-light); }
#qr-canvas { width: 62px; height: 62px; padding: 4px; background: #fff; }
#menu-baselang-selector { width: min(100%, 420px); min-height: 44px; margin-top: 15px; padding: 9px 38px 9px 12px; border: 1px solid var(--border); border-radius: 11px; background-color: var(--surface-soft); font-weight: 600; outline: none; }
#menu-baselang-selector:focus { border-color: var(--accent); }
.header-mode-option { min-height: 45px; border-radius: 11px; }
.logo-preview { border-radius: 14px; }
.sections-area { gap: 15px; }
.section-card { overflow: hidden; }
.section-card:hover { border-color: rgba(33, 88, 166, .2); box-shadow: 0 14px 38px rgba(15, 56, 104, .08); }
.section-header { padding: 16px 18px; background: #fafbf9; }
.section-body { padding: 17px; }
.section-collapse-toggle, .btn-icon-toggle { background: #fff; box-shadow: 0 2px 7px rgba(15, 56, 104, .05); }
.dish-row { border-color: rgba(33, 88, 166, .09); border-radius: 11px; background: #fdfefd; }
.dish-row:hover { background: #fafcfb; border-color: rgba(33, 88, 166, .18); }
.add-dish-form { padding: 14px 14px 16px; border: 1px dashed rgba(33, 88, 166, .24); border-radius: 13px; background: var(--surface-soft); }
.add-section-area { margin-top: 18px; padding: 14px; border: 1px dashed rgba(33, 88, 166, .24); border-radius: 15px; background: rgba(255,255,255,.45); }
.add-section-area input { min-height: 42px; background: #fff; }
.btn { min-height: 36px; }
.btn-sm { min-height: 34px; }
.btn-primary { box-shadow: 0 7px 16px rgba(33, 88, 166, .14); }
.toast { border-radius: 12px; }
@media (max-width: 860px) {
  .auth-layout { grid-template-columns: 1fr; max-width: 600px; gap: 26px; }
  .auth-card { order: 1; justify-self: center; max-width: 470px; }
  .auth-hero { order: 2; max-width: 600px; text-align: center; }
  .auth-hero-kicker { justify-content: center; }
  .auth-hero h2 { margin-inline: auto; font-size: clamp(34px, 8vw, 50px); }
  .auth-hero > p { margin-inline: auto; }
  .auth-benefit { text-align: left; }
  .auth-hero-note { margin-inline: auto; }
  .landing-extras { order: 3; }
  .trial-banner { flex-direction: column; text-align: center; }
  .trial-banner p { padding: 0; border: 0; }
  .faq-buttons { flex-direction: column; max-width: 460px; }
}
@media (max-width: 640px) {
  nav { height: 60px; padding-inline: 14px; }
  .logo { gap: 8px; font-size: 16px; }
  .logo-mark { width: 30px; height: 30px; border-radius: 9px; }
  #auth-screen { min-height: calc(100vh - 60px); padding: 20px 12px 52px; }
  .auth-layout { gap: 30px; }
  .auth-card { width: 100%; padding: 28px 20px 24px; border: 1px solid rgba(33, 88, 166, .11); border-radius: 20px; box-shadow: 0 18px 48px rgba(15, 56, 104, .11); }
  .auth-card h1 { font-size: 28px; }
  .auth-hero { padding: 6px 4px; }
  .auth-hero h2 { font-size: clamp(32px, 11vw, 42px); }
  .auth-hero > p { font-size: 14px; }
  .auth-benefits { grid-template-columns: 1fr; gap: 8px; }
  .auth-benefit { display: flex; align-items: center; gap: 12px; padding: 12px; }
  .benefit-icon { flex: 0 0 auto; margin: 0; }
  .auth-benefit strong { margin-bottom: 2px; }
  .auth-hero-note { width: 100%; justify-content: center; }
  .landing-extras { margin-top: 2px; }
  .pricing-grid { grid-template-columns: 1fr; gap: 11px; }
  .clickable-card { min-height: 0; padding: 21px; }
  .landing-extras .fx-note { width: 100%; margin-top: -17px !important; border-radius: 13px; }
  .trial-banner { padding: 17px; }
  .faq-section { padding: 24px 16px; }
  .site-credit { margin-top: 24px; }
  #app-screen { padding-top: 25px; }
  .app-header { padding-inline: 2px; }
  .app-header h2 { font-size: 25px; }
  .app-header p { font-size: 12px; }
  .preview-card { padding: 17px; }
  .preview-link-box a { width: 100%; }
  .section-header { padding: 13px; }
  .section-body { padding: 12px; }
  .add-section-area { flex-direction: column; align-items: stretch; padding: 12px; }
  .add-section-area .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .auth-card, .auth-benefit { transition: none; }
}

/* ── dashboard-refresh ── */
#app-screen, #nav-user, .modal { --muted: #434f48; --text: #16201a; --border: #cfd6cb; }
#app-screen .editable-icon, #app-screen .section-collapse-toggle, #app-screen .section-dish-count, #app-screen .subsection-eyebrow, #app-screen .add-dish-form label, #app-screen .sections-toolbar-hint { color: var(--muted); }
#app-screen .editable-field-wrap input::placeholder, #app-screen input::placeholder, #app-screen textarea::placeholder, .modal input::placeholder { color: #66726b; opacity: 1; }
#app-screen .badge-optional { color: #4d5952; }
#app-screen .dish-row .dish-desc { color: #36423b; font-size: 12.5px; }
#app-screen .dish-row .dish-name { color: var(--text); }
#app-screen .no-dishes { font-size: 12.5px; color: var(--muted); padding: 4px 0; }
#app-screen .section-hidden-badge, #app-screen .dish-unavailable-badge { color: #7d4416; }
#app-screen .empty { color: var(--muted); }
button.logo { background: none; border: 0; cursor: pointer; font-family: var(--font-display); padding: 4px 6px; margin-left: -6px; border-radius: 12px; color: var(--accent-dark); }
button.logo:hover { background: rgba(33, 88, 166, .07); }
button.logo:active { transform: scale(.98); }
#nav-user { gap: 10px; }
.ui-lang { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 8px 0 11px; border: 1px solid rgba(33, 88, 166, .28); border-radius: 999px; background: #fff; color: var(--accent-dark); cursor: pointer; box-shadow: 0 2px 8px rgba(15, 56, 104, .06); }
.ui-lang:hover, .ui-lang:focus-within { border-color: var(--accent); background: var(--accent-light); }
.ui-lang svg { flex: 0 0 auto; }
.ui-lang select { appearance: none; -webkit-appearance: none; border: 0; background: transparent; outline: 0; cursor: pointer; font-size: 13px; font-weight: 700; color: var(--accent-dark); padding: 0 18px 0 0; max-width: 168px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none' stroke='%230F3868' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 2px center; }
.ui-lang #menu-baselang-selector { width: auto; min-width: 0; min-height: 0; height: auto; margin: 0; padding: 0 20px 0 0; border: 0; border-radius: 0; background-color: transparent; box-shadow: none; }
.ui-lang #menu-baselang-selector:focus { border: 0; box-shadow: none; }
.account-dropdown { min-width: 240px; }
.account-dropdown-email { color: var(--muted); }
.account-dropdown-sep { height: 1px; background: var(--border); margin: 6px 4px; }
.account-dropdown-item.dash-nav-item { display: flex; align-items: center; gap: 10px; }
.account-dropdown-item.dash-nav-item svg { flex: 0 0 auto; color: var(--muted); }
#app-screen.is-blocked .dash-nav-item, #nav-user.is-blocked .dash-nav-item { display: none; }
.app-header { align-items: center; gap: 12px; flex-wrap: wrap; }
.app-header-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
#btn-view-menu { min-height: 48px; padding: 0 24px; gap: 10px; border-radius: 999px; font-size: 15px; font-weight: 800; letter-spacing: -.01em; text-decoration: none; color: #fff; background: var(--accent-dark); border: 1px solid var(--accent-dark); box-shadow: 0 8px 22px rgba(15, 56, 104, .30); }
#btn-view-menu:hover { background: #0a2a50; transform: translateY(-1px); box-shadow: 0 12px 26px rgba(15, 56, 104, .36); }
#btn-view-menu:active { transform: none; }
#btn-view-menu:focus-visible { outline: 3px solid rgba(33, 88, 166, .35); outline-offset: 2px; }
#btn-view-menu svg { flex: 0 0 auto; }
.app-header h2 { color: var(--text); overflow-wrap: anywhere; }
#app-screen .app-eyebrow { color: var(--accent-dark); }
.dash-tabs { position: sticky; top: 68px; z-index: 90; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -4px 20px; padding: 8px 4px; background: color-mix(in srgb, var(--bg) 90%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.dash-tabs::-webkit-scrollbar { display: none; }
.dash-tab { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px; border: 1px solid var(--border); border-radius: 999px; background: #fff; color: var(--text); font-size: 13.5px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.dash-tab svg { width: 17px; height: 17px; }
.dash-tab:hover { border-color: var(--accent); background: var(--accent-light); }
.dash-tab.active { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; box-shadow: 0 6px 16px rgba(15, 56, 104, .22); }
.tab-panel[hidden], .modal[hidden] { display: none !important; }
.tab-panel { animation: panelIn .18s ease; }
@keyframes panelIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
#app-screen.is-blocked #dash-tabs { display: none; }
#app-screen.is-blocked #panel-share[hidden] { display: block !important; }
.profile-block > label, .notes-card-field label, .color-picker-group label { font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
#currency-selector { flex: 1 1 auto; width: 100%; max-width: none; min-width: 0; min-height: 44px; margin: 0; padding: 9px 12px; border: 1px solid var(--border); border-radius: 11px; background-color: var(--surface-soft, #f8faf7); font-size: 13.5px; font-weight: 600; font-family: var(--font-body); color: var(--text); }
#panel-menu .add-section-area { margin: 18px 0 0; }
#panel-menu .sections-area { margin-top: 0; }
.section-jump { display: flex; gap: 7px; overflow-x: auto; padding: 2px 2px 8px; scrollbar-width: thin; }
.section-jump-chip { flex: 0 0 auto; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 7px 13px; border: 1px solid var(--border); border-radius: 999px; background: #fff; color: var(--text); font-size: 12.5px; font-weight: 700; cursor: pointer; }
.section-jump-chip:hover { border-color: var(--accent); background: var(--accent-light); }
.section-jump-chip.is-hidden { opacity: .6; text-decoration: line-through; }
.section-card { scroll-margin-top: 140px; }
.panel-card { background: #fff; border: 1px solid var(--line-soft); border-radius: 18px; padding: 22px; margin-bottom: 16px; box-shadow: 0 8px 28px rgba(15, 56, 104, .055); }
.panel-title { font-family: var(--font-display); font-size: 17px; font-weight: 800; letter-spacing: -.02em; color: var(--text); margin: 0 0 4px; }
.panel-sub { max-width: 680px; margin: 0 0 16px; font-size: 13px; line-height: 1.55; color: var(--muted); }
.panel-card .notes-card-field textarea { background: var(--surface-soft, #f8faf7); min-height: 120px; font-size: 14px; color: var(--text); }
.panel-card .color-pickers-row { margin-top: 4px; }
#panel-share .preview-card { align-items: flex-start; gap: 28px; padding: 24px; background: #fff; }
#panel-share .preview-link-box { min-width: 260px; }
.link-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 4px 0 12px; }
.link-row a { margin: 0 !important; color: var(--accent-dark); font-weight: 800; }
.link-meta { margin: 0 0 12px; font-size: 12.5px; line-height: 1.5; color: var(--muted); text-transform: none; }
.link-meta span { display: block; font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.link-meta a { display: block; word-break: break-all; color: var(--muted); font-weight: 600; }
#panel-share .qr-box { flex-direction: column; align-items: center; text-align: center; max-width: 230px; gap: 10px; }
#panel-share #qr-canvas { width: 168px; height: 168px; padding: 8px; border-radius: 14px; }
#panel-share .qr-box-buttons { width: 100%; }
#panel-share .qr-box-buttons .btn { width: 100%; }
.modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(15, 25, 20, .52); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.modal-card { position: relative; width: 100%; max-width: 540px; max-height: calc(100vh - 32px); display: flex; flex-direction: column; background: #fff; border-radius: 22px; box-shadow: 0 30px 80px rgba(15, 25, 20, .35); overflow: hidden; animation: panelIn .2s ease; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--border); }
.modal-head h3 { font-family: var(--font-display); font-size: 18px; font-weight: 800; letter-spacing: -.02em; color: var(--text); }
.modal-close { flex: 0 0 auto; display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 1px solid var(--border); border-radius: 50%; background: #fff; cursor: pointer; color: var(--text); }
.modal-close:hover { background: var(--accent-light); border-color: var(--accent); }
.modal-body { overflow-y: auto; padding: 8px 22px 22px; }
.profile-block { padding: 18px 0; border-bottom: 1px solid var(--border); }
.profile-block:last-child { border-bottom: 0; padding-bottom: 0; }
.profile-block > label { display: block; margin-bottom: 8px; }
.profile-help { margin: -2px 0 10px; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.support-links { display: flex; flex-direction: column; gap: 8px; }
.support-links a.btn { width: 100%; text-decoration: none; text-align: center; }
#btn-install-pwa { margin-bottom: 10px; }
.pwa-manual-instructions { display: grid; gap: 6px; margin-top: 4px; }
.pwa-instruction { border: 1px solid var(--border); border-radius: 10px; padding: 8px 12px; background: var(--surface-soft, #f8faf7); }
.pwa-instruction summary { cursor: pointer; font-weight: 700; font-size: 13px; list-style: none; color: var(--text); }
.pwa-instruction summary::-webkit-details-marker { display: none; }
.pwa-instruction summary::before { content: '▸'; display: inline-block; width: 12px; margin-right: 4px; color: var(--accent); transition: transform 0.2s ease; }
.pwa-instruction[open] summary::before { transform: rotate(90deg); }
.pwa-instruction p { margin: 6px 0 0; font-size: 12.5px; color: var(--muted); }
.profile-row { display: flex; gap: 10px; align-items: stretch; }
.profile-row + .profile-row { margin-top: 10px; }
.profile-row .btn { flex: 0 0 auto; min-height: 46px; }
.profile-row input, #profile-email-pass { flex: 1 1 auto; min-width: 0; width: 100%; min-height: 46px; padding: 10px 13px; border: 1.5px solid var(--border); border-radius: 12px; background: var(--surface-soft, #f8faf7); font-size: 14.5px; font-weight: 600; color: var(--text); outline: none; }
.profile-row input:focus, #profile-email-pass:focus { border-color: var(--accent); background: #fff; }
.profile-row input:disabled { opacity: .7; cursor: not-allowed; }
#profile-email-pass-row { margin-top: 10px; }
.slug-field { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; align-items: stretch; border: 1.5px solid var(--border); border-radius: 12px; background: var(--surface-soft, #f8faf7); overflow: hidden; }
.slug-field:focus-within { border-color: var(--accent); background: #fff; }
.slug-prefix { padding: 9px 13px 0; font-size: 12px; font-weight: 600; color: var(--muted); overflow-wrap: anywhere; }
.slug-field input { border: 0 !important; background: transparent !important; min-height: 0; padding: 4px 13px 11px; box-shadow: none !important; }
.slug-status, .profile-msg { min-height: 20px; margin: 8px 0 0; font-size: 12.5px; font-weight: 700; line-height: 1.45; color: var(--muted); }
.slug-status.is-ok, .profile-msg.is-ok { color: #14663f; }
.slug-status.is-error, .profile-msg.is-error { color: #b3261e; }
.slug-status.is-pending, .profile-msg.is-info { color: #7d4416; }
@media (max-width: 640px) {
  .dash-tabs { top: 60px; margin-inline: -12px; padding-inline: 12px; }
  .dash-tab { padding: 0 14px; min-height: 40px; font-size: 13px; }
  #nav-user { gap: 6px; }
  .ui-lang { height: 36px; padding-left: 9px; }
  .ui-lang select { max-width: 92px; font-size: 12.5px; }
  .app-header-text { flex: 1 1 auto; min-width: 0; }
  .app-header-actions { display: contents; }
  #account-status-badge { order: 1; flex: 0 0 auto; align-self: flex-start; }
  #btn-view-menu { order: 2; flex: 1 1 100%; justify-content: center; }
  .panel-card { padding: 17px; }
  #panel-share .preview-card { flex-direction: column; align-items: stretch; }
  #panel-share .qr-box { max-width: none; width: 100%; border-top: 1px solid var(--border); padding-top: 16px; }
  .modal { align-items: flex-end; padding: 0; }
  .modal-card { max-width: none; max-height: 92vh; border-radius: 22px 22px 0 0; }
  .profile-row { flex-direction: column; }
  .profile-row .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .tab-panel, .modal-card { animation: none; }
}

/* ── csv-import ── */
.csv-import-card { margin-bottom: 18px; }
.csv-import-card .panel-sub { margin-bottom: 14px; }
.csv-import-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.csv-import-help { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.csv-template-note { padding: 14px 18px; border: 1px dashed var(--border); border-radius: var(--radius-sm); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.csv-template-note p { margin: 0; font-size: 12.5px; color: var(--muted); flex: 1 1 220px; }
.btn-link { background: none; border: none; padding: 0; margin: 0; color: var(--accent); font-family: var(--font-body); font-size: 12.5px; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; flex-shrink: 0; white-space: nowrap; }
.btn-link:hover { color: var(--accent-dark); }
.csv-import-modal-card { width: 100%; max-width: 640px; }
.csv-empty-hint { margin: 6px 0; font-size: 13.5px; color: var(--muted); }
.csv-summary { margin: 0 0 6px; font-size: 15px; font-weight: 800; color: var(--text); }
.csv-note { margin: 0 0 14px; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.csv-issue-block { margin: 0 0 16px; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--border); }
.csv-issue-block h4 { margin: 0 0 8px; font-size: 13px; font-weight: 800; }
.csv-issue-block ul { margin: 0; padding-left: 18px; font-size: 12.5px; line-height: 1.6; }
.csv-issue-errors { background: var(--danger-light); border-color: var(--danger); }
.csv-issue-errors h4 { color: var(--danger); }
.csv-issue-warnings { background: var(--accent-register-light); border-color: var(--accent-register); }
.csv-issue-warnings h4 { color: #7d4416; }
.csv-preview-tree h4 { margin: 0 0 10px; font-size: 13px; font-weight: 800; color: var(--text); }
.csv-preview-section { margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.csv-preview-section:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.csv-preview-section-name { font-size: 14px; font-weight: 800; color: var(--accent); margin-bottom: 6px; }
.csv-preview-subsection { margin: 8px 0 8px 12px; }
.csv-preview-subsection-name { font-size: 12.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; margin-bottom: 4px; }
.csv-dish-list { list-style: none; margin: 0; padding: 0; }
.csv-dish-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 10px; padding: 5px 0; font-size: 13px; border-top: 1px dashed var(--border); }
.csv-dish-row:first-child { border-top: 0; }
.csv-dish-name { font-weight: 700; color: var(--text); }
.csv-dish-price { color: var(--muted); font-weight: 700; }
.csv-dish-tag { font-size: 11.5px; padding: 2px 8px; border-radius: 999px; background: var(--accent-light); color: var(--accent); }
.csv-dish-unavailable { font-size: 12px; }
.csv-import-footer { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 22px; border-top: 1px solid var(--border); }
@media (max-width: 640px) {
  .csv-import-actions { flex-direction: column; }
  .csv-import-actions .btn { width: 100%; }
  .csv-import-footer { flex-direction: column-reverse; padding: 14px 16px; }
  .csv-import-footer .btn { width: 100%; }
}

/* ── translations (glossary + review window) ── */
.trans-card input[type="text"] { width: 100%; padding: 11px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 14px; font-family: var(--font-body); background: var(--surface-soft, #f8faf7); color: var(--text); outline: none; }
.trans-card input[type="text"]:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-light); }
.trans-card .notes-card-field .panel-sub { margin: 0 0 10px; }
.trans-actions { display: flex; gap: 10px; margin-top: 4px; }
.trans-sep { height: 1px; background: var(--line-soft); margin: 20px 0 16px; }
.trev-modal-card { width: 100%; max-width: 720px; }
.trev-toolbar { display: flex; align-items: center; gap: 10px; margin: 8px 0 14px; }
.trev-toolbar label { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.trev-toolbar select { flex: 1; max-width: 280px; padding: 9px 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 14px; font-family: var(--font-body); background: #fff; color: var(--text); }
.trev-row { padding: 12px 0; border-top: 1px solid var(--line-soft); }
.trev-row:first-child { border-top: 0; }
.trev-label { margin-bottom: 4px; font-size: 12px; font-weight: 800; color: var(--text); }
.trev-orig { margin-bottom: 6px; font-size: 13px; line-height: 1.45; color: var(--muted); overflow-wrap: anywhere; }
.trev-cap { display: inline-block; margin-right: 6px; padding: 1px 6px; border-radius: 6px; background: var(--surface-soft, #f1f4ef); font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.trev-input { width: 100%; min-height: 44px; padding: 9px 11px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 14px; line-height: 1.45; font-family: var(--font-body); color: var(--text); background: #fff; resize: vertical; outline: none; }
.trev-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-light); }
.trev-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 6px; min-height: 4px; }
.trev-badge { padding: 2px 8px; border-radius: 999px; background: var(--accent-light); color: var(--accent-dark, var(--accent)); font-size: 11px; font-weight: 800; }
.trev-badge-stale { background: var(--accent-register-light); color: #7d4416; }

/* ── photo menu (viewMode: visual) ── */
#menu-screen.view-visual { --menu-content-width: 1040px; }
/* Photo menu: the search stays pinned while scrolling, exactly like the list menu, and the category bar pins right under it.
   --search-bar-h is measured by setupPublicCategorySpy() (public-menu.js); 60px is the fallback before it runs. */
#menu-screen #menu-content .public-menu-tools-search { position: sticky; top: 0; z-index: 21; background: color-mix(in srgb, var(--bg) 88%, transparent); border-bottom: 0; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); padding-bottom: 6px; }
#menu-screen.view-visual .public-category-bar { top: var(--search-bar-h, 60px); }
.public-category-bar { position: sticky; top: 0; z-index: 20; padding: 8px max(16px, calc((100% - var(--menu-content-width, 620px)) / 2)); background: color-mix(in srgb, var(--bg) 88%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.public-category-bar .public-category-nav { padding: 0 1px; }
.public-category-nav button.active { background: var(--accent); border-color: var(--accent); color: var(--on-accent, #fff); }
#menu-screen.view-visual .public-section { scroll-margin-top: calc(var(--cat-bar-h, 56px) + 10px); }
.public-dish-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 6px 0 4px; }
.public-dish-card { display: flex; flex-direction: column; min-width: 0; background: var(--bg); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: transform .15s ease, box-shadow .2s ease; }
@media (hover: hover) { .public-dish-card:hover { box-shadow: 0 6px 18px rgba(0, 0, 0, .12); } }
.public-dish-card:active { transform: scale(.985); }
.public-dish-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.public-dish-card[hidden] { display: none !important; }
.public-dish-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: linear-gradient(135deg, var(--section-title-bg), var(--accent-light)); }
.public-dish-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transition: opacity .25s ease; }
.public-dish-media img.loaded { opacity: 1; }
.public-dish-media.is-loading::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, color-mix(in srgb, var(--bg) 55%, transparent) 50%, transparent 70%); transform: translateX(-100%); animation: pubShimmer 1.4s infinite; }
@keyframes pubShimmer { to { transform: translateX(100%); } }
#menu-screen .public-dish-card .public-dish-tag { position: absolute; top: 8px; inset-inline-start: 8px; z-index: 1; max-width: calc(100% - 16px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: var(--accent); border-color: var(--accent); color: var(--on-accent, #fff); box-shadow: 0 1px 4px rgba(0, 0, 0, .25); }
.public-dish-card-body { display: flex; flex-direction: column; flex: 1; gap: 2px; min-width: 0; padding: 8px 10px 9px; }
#menu-screen .public-dish-card .public-dish-name { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; font-size: 13.5px; font-weight: 700; line-height: 1.2; }
#menu-screen .public-dish-card .public-dish-desc { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; margin-top: 0; font-size: 12px; line-height: 1.3; }
#menu-screen .public-dish-card .public-dish-price { margin: auto 0 0; padding-top: 4px; font-size: 14.5px; line-height: 1.2; }
@media (min-width: 600px) { .public-dish-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; } }
@media (min-width: 900px) { .public-dish-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }
@media (max-width: 640px) { #menu-screen.view-visual .public-section.open .public-dish-list { padding-inline: 10px; } .public-category-bar { padding-inline: max(12px, calc((100% - var(--menu-content-width, 620px)) / 2)); } }
@media (prefers-reduced-motion: reduce) { .public-dish-media.is-loading::after { animation: none; } .public-dish-card, .public-dish-media img { transition: none; } }

/* dish viewer: photo + details (visual mode) */
.photo-modal { flex-direction: column; gap: 12px; }
.photo-modal.has-info .photo-modal-content { max-height: 52vh; }
.photo-modal.is-loading::after { content: ''; width: 34px; height: 34px; border: 3px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: pubSpin .8s linear infinite; }
@keyframes pubSpin { to { transform: rotate(360deg); } }
.photo-modal-info { width: min(92%, 460px); max-height: 34vh; overflow-y: auto; padding: 14px 16px 16px; border-radius: 18px; background: var(--vw-bg, #fff); color: var(--vw-text, #1b211d); box-shadow: var(--shadow-lg); text-align: start; }
.photo-modal-info[hidden] { display: none; }
.photo-info-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.photo-info-name { margin: 0; font-size: 18px; font-weight: 800; line-height: 1.25; overflow-wrap: anywhere; }
.photo-info-price { font-size: 17px; font-weight: 800; white-space: nowrap; }
.photo-info-tag { display: inline-block; margin-top: 8px; padding: 2px 8px; border-radius: 6px; background: var(--vw-text, #1b211d); color: var(--vw-bg, #fff); font-size: 11px; font-weight: 800; }
.photo-info-desc { margin: 10px 0 0; font-size: 14px; line-height: 1.5; color: var(--vw-desc, #3d4741); overflow-wrap: anywhere; }

/* dashboard: menu layout choice */
.viewmode-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 14px 0 12px; }
.viewmode-option { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 14px; border: 1.5px solid var(--border); border-radius: 14px; background: #fff; color: var(--text); font-family: var(--font-body); text-align: start; cursor: pointer; transition: border-color .15s ease, box-shadow .15s ease; }
.viewmode-option:hover { border-color: var(--accent); }
.viewmode-option.active { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-light); }
.viewmode-art { width: 100%; max-width: 120px; height: auto; color: var(--muted); }
.viewmode-option.active .viewmode-art { color: var(--accent); }
.viewmode-name { font-size: 14px; font-weight: 800; }
.viewmode-hint { font-size: 12px; line-height: 1.4; color: var(--muted); }
.viewmode-photos { margin: 0; font-size: 13px; font-weight: 700; }
.viewmode-tip { margin: 6px 0 0; font-size: 12px; line-height: 1.45; color: var(--muted); }
@media (max-width: 420px) { .viewmode-toggle { grid-template-columns: 1fr; } }

/* ── restaurant links: row of icons (public menu) and fields (profile) ── */
.profile-links-fields { display: grid; gap: 10px; margin-bottom: 12px; }
.profile-link-error { grid-column: 2; margin: -4px 0 0; font-size: 12px; color: #c0392b; }

/* password confirmation window */
.reauth-modal-card { max-width: 420px; }
.reauth-modal-card input[type="password"] { width: 100%; min-height: 44px; margin-top: 10px; padding: 9px 12px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-size: 15px; font-family: var(--font-body); }
.reauth-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }

/* display:flex / inline-flex on these classes silently overrides the hidden attribute */
.btn[hidden], .profile-row[hidden] { display: none !important; }

/* ── dish options & prices: editor in the dashboard ── */
.f-full { flex: 1 1 100%; min-width: 0; }
.dopt-base-note { display: block; margin-top: 4px; font-size: 11px; line-height: 1.3; color: var(--muted); }
.dish-opt-badge { display: inline-block; margin-left: 4px; padding: 0 6px; border-radius: 999px; background: var(--accent-light); color: var(--accent); font-size: 11px; font-weight: 800; vertical-align: 1px; }

/* ── dish options & prices (public menu) ── */
.public-sizes { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 6px; }
.public-size { font-size: 13px; line-height: 1.3; color: var(--desc, var(--muted)); }
.public-size b { color: var(--text); font-weight: 800; white-space: nowrap; }
.public-options-btn { margin-top: 8px; padding: 5px 12px; border: 1px solid var(--border); border-radius: 999px; background: transparent; color: var(--text); font-size: 12px; font-weight: 700; font-family: inherit; cursor: pointer; }
.public-options-btn:hover, .public-options-btn:focus-visible { background: var(--accent); border-color: var(--accent); color: var(--on-accent, #fff); }
.photo-info-options { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--vw-border, rgba(0,0,0,.12)); }
.po-group { margin: 0 0 12px; padding: 0; border: 0; }
.po-group legend { padding: 0; margin-bottom: 4px; font-size: 13px; font-weight: 800; }
.po-group legend small { margin-left: 6px; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--vw-desc, #555); }
.po-choice { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 8px; min-height: 38px; padding: 4px 0; font-size: 14px; cursor: pointer; }
.po-choice input { width: 18px; height: 18px; margin: 0; accent-color: var(--vw-accent, #2158a6); }
.po-name { overflow-wrap: anywhere; }
.po-price { font-weight: 700; white-space: nowrap; color: var(--vw-desc, #555); }
.po-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 10px; border-top: 1px solid var(--vw-border, rgba(0,0,0,.12)); font-size: 15px; }
.po-total strong { font-size: 19px; font-weight: 800; }

/* ── v2: public footer + links, dish form, options editor, links in profile ── */
.public-menu-footer { text-align: center; padding: 12px 16px 38px; font-size: 14px; color: var(--muted); opacity: 0.85; }
.public-menu-footer a { color: inherit; font-size: 15px; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.public-menu-footer a:hover { opacity: 1; }
.public-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 26px 0 6px; }
/* è un <nav>: annulla la regola globale della barra superiore (altezza 68px, sfondo bianco, blur) */
nav.public-links { position: static; height: auto; padding: 0 0 24px; background: transparent; border: 0; border-bottom: 1px solid var(--border); box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.public-link { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--brand, #475569); color: var(--ink, #fff); text-decoration: none; box-shadow: 0 3px 8px rgba(0,0,0,.16); -webkit-tap-highlight-color: transparent; transition: filter .15s ease, transform .15s ease, opacity .15s ease; }
.public-link svg { width: 22px; height: 22px; display: block; }
.public-link:hover, .public-link:focus-visible { filter: brightness(1.1); transform: translateY(-2px); }
.public-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (max-width: 420px) { .public-links { gap: 8px; } .public-link { width: 40px; height: 40px; } .public-link svg { width: 21px; height: 21px; } }

.dopt-base-note[hidden] { display: none; }
.dish-submit .btn { width: 100%; min-height: 44px; }
.dish-options { width: 100%; padding: 14px; border: 1px solid var(--border); border-radius: 14px; background: #fff; }
.dopt-title { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 800; }
.dopt-count { padding: 0 8px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 11px; }
.dopt-hint { margin: 4px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.dopt-groups { display: grid; gap: 10px; margin-top: 12px; }
.dopt-group { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: 12px; background: var(--surface-soft, #f8faf7); }
.dopt-group-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.dopt-type { font-size: 11.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--accent); }
.dopt-choices { display: grid; gap: 8px; }
.dopt-choice { display: grid; grid-template-columns: minmax(0, 1fr) 92px 36px; gap: 6px; align-items: center; }
.dopt-input { width: 100%; min-width: 0; min-height: 42px; padding: 8px 11px; border: 1px solid var(--border); border-radius: 10px; font-size: 15px; font-family: var(--font-body); background: #fff; color: var(--text); }
.dopt-input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-light); }
.dopt-remove { flex: 0 0 auto; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer; }
.dopt-remove svg { display: block; width: 18px; height: 18px; }
.dopt-remove:hover { background: #fbeaea; color: #c0392b; }
.dopt-add-choice { justify-self: start; padding: 6px 2px; border: 0; background: none; color: var(--accent); font-size: 13.5px; font-weight: 700; cursor: pointer; }
.dopt-add { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.dopt-chip { min-height: 38px; padding: 8px 14px; border: 0; border-radius: 999px; background: var(--accent-light); color: var(--accent-dark); font-size: 13.5px; font-weight: 700; cursor: pointer; }
.dopt-chip[disabled] { opacity: .45; cursor: not-allowed; }

.plink-list { list-style: none; display: grid; gap: 8px; margin: 0 0 12px; padding: 0; }
.plink-item { display: grid; grid-template-columns: 40px minmax(0, 1fr) 36px; gap: 12px; align-items: center; padding: 8px 8px 8px 10px; border: 1px solid var(--border); border-radius: 14px; background: #fff; }
.plink-icon { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--brand, #475569); color: var(--ink, #fff); }
.plink-icon svg { width: 21px; height: 21px; }
.plink-text b { display: block; font-size: 14.5px; }
.plink-text small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; color: var(--muted); }
.plink-btn { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer; }
.plink-btn svg { display: block; width: 18px; height: 18px; }
.plink-btn:hover { background: var(--accent-light); color: var(--accent-dark); }
.plink-remove:hover { background: var(--danger-light); color: var(--danger); }
.plink-empty { margin: 0 0 12px; font-size: 13px; color: var(--muted); }
.plink-add { width: 100%; min-height: 44px; }
.plink-panel { display: grid; gap: 10px; padding: 14px; border: 1px dashed rgba(33, 88, 166, .3); border-radius: 14px; background: var(--surface-soft, #f8faf7); }
.plink-select-row { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 10px; align-items: center; }
.plink-panel select, .plink-panel input { width: 100%; min-width: 0; min-height: 46px; padding: 10px 12px; border: 1.5px solid var(--border); border-radius: 12px; background: #fff; font-size: 15px; font-family: var(--font-body); color: var(--text); }
.plink-panel select:focus, .plink-panel input:focus { border-color: var(--accent); outline: none; }
.plink-panel input[aria-invalid="true"] { border-color: #c0392b; }
.plink-panel .profile-link-error { grid-column: auto; margin: 0; }
.plink-actions { display: flex; gap: 10px; }
.plink-actions .btn { flex: 1; min-height: 44px; }
.profile-row:has(#btn-save-links) { display: none; }   /* links are saved as soon as they are added or removed */

@media (max-width: 600px) {
  .add-dish-form { align-items: start; }
  .add-dish-form > * { min-width: 0; }
  .add-dish-form .f, .add-dish-form .f-full { grid-column: span 2; }
  .add-dish-form .f-sm { grid-column: span 1; }
  .add-dish-form label { font-size: 11.5px; }
  .add-dish-form input, .add-dish-form select { min-height: 44px; font-size: 15px; }
  .badge-optional, #app-screen .badge-optional { font-size: 10.5px; padding: 2px 6px; }
  .dopt-base-note { font-size: 12.5px; }
  .dish-row .dish-desc { font-size: 13px; }
}

/* social icons: "menu colors" = the menu's own colours instead of each brand's */
/* No disc, no box, no border: the icon is drawn straight on the menu's background, in the menu's text colour */
.public-links-menu .public-link { background: transparent; color: var(--text); border: 0; box-shadow: none; -webkit-tap-highlight-color: transparent; }
.public-links-menu .public-link svg { width: 26px; height: 26px; }
.public-links-menu .public-link:hover, .public-links-menu .public-link:focus-visible { background: transparent; color: var(--text); opacity: .7; filter: none; }
.public-links-menu .public-link:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.linkstyle-art { display: flex; gap: 8px; }
.linkstyle-art i { display: block; width: 28px; height: 28px; border-radius: 50%; background: #475569; }
.linkstyle-art .ls-ig { background: linear-gradient(45deg, #F9A03F, #E1306C 55%, #7B3FBF); }
.linkstyle-art .ls-fb { background: #1877F2; }
.linkstyle-art .ls-wa { background: #25D366; }
.linkstyle-art-menu i { background: transparent; border: 1.5px solid var(--muted); }

/* ── Public menu: centered titles ──
   Section titles sit in the middle of the bar, the count + arrow stay on the
   right (3-column grid: empty | title | count+arrow). Subcategory titles are
   centered too. Dish rows keep name on the left and price on the right. */
#menu-screen .public-section-toggle { display: grid !important; grid-template-columns: minmax(64px, 1fr) minmax(0, auto) minmax(64px, 1fr); align-items: center !important; justify-content: initial !important; }
#menu-screen .public-section-title { grid-column: 2; display: block !important; text-align: center; overflow-wrap: anywhere; }
/* optional description: its own row under the title, as wide as the header, centred */
#menu-screen .public-section-desc { grid-column: 1 / -1; grid-row: 2; display: block; margin-top: 4px; text-align: center; overflow-wrap: anywhere; font-size: 13px; font-weight: 500; line-height: 1.35; color: var(--muted); }
#menu-screen .public-section-meta { grid-column: 3; justify-self: end; margin-left: 0; }
#menu-screen .public-subsection-title { text-align: center; border-left: 0; }

/* ── Profile: reorder social links (arrows next to each link) ── */
.plink-item { grid-template-columns: 40px minmax(0, 1fr) auto 36px 36px; align-items: center; gap: 8px; }
.plink-item.is-editing { grid-template-columns: 40px minmax(0, 1fr); align-items: start; }
.plink-editbox { display: grid; gap: 8px; min-width: 0; }
.plink-editbox b { font-size: 14.5px; }
.plink-editbox input { width: 100%; min-width: 0; min-height: 44px; padding: 9px 12px; border: 1.5px solid var(--border); border-radius: 12px; background: #fff; font-size: 15px; font-family: var(--font-body); color: var(--text); }
.plink-editbox input:focus { border-color: var(--accent); outline: none; }
.plink-editbox input[aria-invalid="true"] { border-color: var(--danger); }
.plink-editbox .profile-link-error { margin: 0; }
/* the two arrows are SVG chevrons centred in equal boxes (text glyphs sat off-centre); the × is centred the same way */
.plink-move { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.plink-move button { display: grid; place-items: center; width: 36px; height: 26px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; }
.plink-move svg { display: block; width: 16px; height: 16px; }
.plink-move button:hover:not(:disabled) { background: var(--accent-light); color: var(--accent-dark); }
.plink-move button:focus-visible, .plink-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.plink-move button:disabled { opacity: .25; cursor: default; }
/* ── QR studio: "Customize & print" window of the Share & QR tab (js/qr-studio.js) ── */
.qrs-card { max-width: 880px; }
.qrs-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px); gap: 22px; align-items: start; padding-top: 14px; }
.qrs-preview { min-width: 0; display: grid; gap: 10px; }
.qrs-stage { display: grid; place-items: center; padding: 18px; border: 1px solid var(--border); border-radius: 16px; background: #eef1ec; max-height: min(64vh, 680px); overflow: auto; }
/* width:auto beats the inline width set by the script: the whole card always fits in the box, ratio kept */
.qrs-stage canvas { display: block; width: auto !important; height: auto; max-width: 100%; max-height: min(58vh, 620px); background: #fff; box-shadow: 0 6px 22px rgba(15, 25, 20, .18); }
.qrs-meta { margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--muted); text-align: center; }
.qrs-controls { display: grid; gap: 14px; min-width: 0; }
.qrs-field { margin: 0; padding: 0; border: 0; min-width: 0; display: grid; gap: 6px; }
.qrs-field > label, .qrs-field > legend, .qrs-row > label { padding: 0; font-size: 12.5px; font-weight: 700; color: var(--text); }
.qrs-field select, .qrs-field input[type="text"] { width: 100%; min-width: 0; min-height: 44px; padding: 9px 12px; border: 1.5px solid var(--border); border-radius: 12px; background: #fff; font-size: 15px; font-family: var(--font-body); color: var(--text); }
.qrs-field select:focus, .qrs-field input[type="text"]:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-light); }
.qrs-seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.qrs-seg label { position: relative; display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 6px 6px; border: 1.5px solid var(--border); border-radius: 12px; background: #fff; color: var(--text); font-size: 12.5px; font-weight: 700; line-height: 1.2; text-align: center; cursor: pointer; }
.qrs-seg input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.qrs-seg label:hover { border-color: var(--accent); }
.qrs-seg label:has(input:checked) { border-color: var(--accent); background: var(--accent-light); color: var(--accent-dark); }
.qrs-seg label:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.qrs-checks { gap: 2px; }
.qrs-check { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 14px; font-weight: 600; color: var(--text); cursor: pointer; }
.qrs-check input { width: 20px; height: 20px; margin: 0; flex: 0 0 auto; accent-color: var(--accent); }
.qrs-check input:disabled + span { opacity: .55; }
.qrs-sheet { padding-top: 12px; border-top: 1px solid var(--border); }
.qrs-row { display: grid; grid-template-columns: minmax(0, 1fr) 88px; gap: 10px; align-items: center; }
.qrs-note { margin: 0; font-size: 12px; line-height: 1.45; color: var(--muted); }
.qrs-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.qrs-actions .btn { flex: 1 1 140px; width: auto; min-height: 46px; padding: 10px 14px; font-size: 14px; }
.qrs-actions .btn:disabled { opacity: .6; cursor: progress; transform: none; }
.qrs-status { min-height: 20px; margin: 10px 0 0; font-size: 13px; font-weight: 600; color: var(--accent-dark); text-align: center; }
.qrs-status.error { color: var(--danger); }
@media (max-width: 760px) {
  .qrs-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .qrs-stage { padding: 12px; }
  .qrs-stage canvas { max-height: 42vh; }
  .qrs-card .modal-body { padding: 4px 16px 18px; }
}
@media (prefers-reduced-motion: reduce) { .qrs-seg label { transition: none; } }

/* The A4 sheet of the studio goes to the printer through a block that exists only while printing
   (js/qr-studio.js): everything else on the page is removed, and the old small card stays untouched. */
.print-studio { display: none; }
@media print {
  body.printing-studio > *:not(.print-studio) { display: none !important; }
  body.printing-studio { background: #fff !important; margin: 0 !important; padding: 0 !important; }
  body.printing-studio .print-studio, body.printing-studio .print-studio * { visibility: visible; }
  body.printing-studio .print-studio { display: block; position: relative; width: 210mm; height: 296mm; overflow: hidden; margin: 0; padding: 0; page-break-after: avoid; break-after: avoid; }
  body.printing-studio .print-studio img { position: absolute; display: block; max-width: none; }
  body.printing-studio .print-studio .print-studio-cut { outline: 0.25mm dashed #666; outline-offset: 0.4mm; }
}


/* ── Public menu: sizes / variants, one per line, price on the right like every other price ── */
.public-sizes { display: block; margin: 7px 0 0; padding: 0; list-style: none; }
.public-sizes-title { margin: 0 0 2px; font-size: 11.5px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; color: var(--desc, var(--muted)); }
.public-size { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding: 5px 0; font-size: 14px; line-height: 1.35; color: var(--text); border-top: 1px dotted var(--border); }
.public-size:first-child, .public-sizes-title + .public-size { border-top: 0; }
.public-size-name { flex: 1 1 auto; min-width: 0; font-weight: 600; overflow-wrap: anywhere; word-break: break-word; }
.public-size .public-dish-price { flex: 0 0 auto; margin-inline-start: auto; }
@media (max-width: 420px) { .public-size { gap: 10px; font-size: 13.5px; } }

/* ── Feedback, accessibility and finishing touches ──
   Added last on purpose: these rules refine what is defined above. */

/* A button that is saving: spinner + label, clearly "working", cannot be pressed again. */
.btn { -webkit-tap-highlight-color: transparent; }
.btn:active:not(:disabled) { transform: scale(.97); transition-duration: .06s; }
.btn-primary:active:not(:disabled) { transform: translateY(0) scale(.97); box-shadow: var(--shadow-sm); }
.btn:disabled { cursor: default; }
.btn.is-busy, .btn.is-busy:hover { cursor: progress; opacity: 1; transform: none; background: var(--accent-dark); color: #fff; }
.btn-secondary.is-busy, .btn-secondary.is-busy:hover { background: var(--accent-light); color: var(--accent-dark); }
.btn-spinner { flex: 0 0 auto; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; opacity: .85; animation: spin .7s linear infinite; }
.btn.is-busy { gap: 8px; }

/* The dish form while it is saving: visibly "taken", no further typing or tapping. */
.add-dish-form.is-saving { pointer-events: none; }
.add-dish-form.is-saving .f, .add-dish-form.is-saving .f-sm, .add-dish-form.is-saving .f-full:not(.dish-submit) { opacity: .6; transition: opacity .2s ease; }

/* Required field left empty. */
.add-dish-form input[aria-invalid="true"], .add-section-area input[aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 3px var(--danger-light); }

/* Section description: a quiet link until the owner wants it. */
.section-desc-add { align-self: flex-start; margin: 1px 0 0; padding: 2px 0; border: 0; background: none; font-size: 12px; font-weight: 600; color: var(--muted); cursor: pointer; text-decoration: none; opacity: .85; transition: color .15s ease, opacity .15s ease; }
.section-desc-add:hover, .section-desc-add:focus-visible { color: var(--accent); opacity: 1; text-decoration: underline; text-underline-offset: 2px; }
.section-desc-wrap[hidden] { display: none; }
.section-desc-input { font-size: 12.5px; line-height: 1.4; }

/* Dish row actions are real buttons (keyboard + screen readers). */
.dish-move-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (pointer: coarse) {
  .section-collapse-toggle, .btn-icon-toggle { width: 36px; height: 36px; }
  .dish-move-btn { width: 38px; height: 36px; }
}

/* Toast: readable on small screens, clear of the phone's home bar, never wider than the screen. */
.toast { max-width: min(92vw, 460px); text-align: center; bottom: max(20px, env(safe-area-inset-bottom)); }

@media (prefers-reduced-motion: reduce) {
  .btn:active:not(:disabled) { transform: none; }
  .btn-spinner { animation-duration: 1.6s; }
}

/* Section description: the small icon next to it chooses where it shows on the public menu
   (accent = always, muted = only when the section is open). */
.section-desc-wrap { gap: 8px; }
.section-desc-wrap .section-desc-input { flex: 1 1 auto; min-width: 0; padding-right: 0 !important; }
.section-desc-mode-btn { width: 28px; height: 28px; }
.section-desc-mode-btn:hover { border-color: var(--accent); background: var(--accent-light); }
.section-desc-mode-btn.is-off { color: var(--muted); border-color: var(--border); background: var(--bg); }
.section-desc-mode-btn.is-off:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-light); }
@media (pointer: coarse) { .section-desc-mode-btn { width: 36px; height: 36px; } }

/* Public menu: the description shown only once the section is open (first thing inside it). */
#menu-screen .public-section-desc.public-section-desc-open { grid-column: auto; grid-row: auto; margin: 2px 0 10px; padding: 0 4px; }

/* ── Dropdowns (select): ONE custom arrow, 14px from the right edge, text never runs under it ──
   (the browser's own arrow sits flush against the edge and looked cut off). The language pills
   (.lang-select-wrap, .ui-lang) draw their own arrow and are not listed here. */
:is(#currency-selector, .add-dish-form select, .trev-toolbar select, .plink-panel select, .qrs-field select) {
  -webkit-appearance: none; appearance: none;
  padding-right: 40px; text-overflow: ellipsis; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%236B7268' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 12px 8px;
}
:is(#currency-selector, .add-dish-form select, .trev-toolbar select, .plink-panel select, .qrs-field select):focus {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%232158A6' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
}

/* ── Admin: subcategories open/close like the categories ── */
.subsection-collapse-toggle { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; align-self: center; width: 30px; height: 30px; padding: 0; box-shadow: 0 2px 7px rgba(15, 56, 104, .05); border: 1px solid var(--border); border-radius: 50%; background: #fff; color: var(--muted); cursor: pointer; transition: all 0.2s ease; }
.subsection-collapse-toggle:hover { border-color: var(--accent); color: var(--accent); }
.subsection-card:not(.is-collapsed) .subsection-collapse-toggle { background: var(--accent); border-color: var(--accent); color: #fff; }
.subsection-collapse-toggle .icon-chevron { width: 15px; height: 15px; display: block; transform: rotate(0deg); }
.subsection-card.is-collapsed .subsection-collapse-toggle .icon-chevron { transform: rotate(-90deg); }
.subsection-card.is-collapsed .subsection-header { border-bottom: 0; }
.subsection-collapse-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn .icon-arrow { display: block; width: 14px; height: 14px; }
@media (pointer: coarse) { .subsection-collapse-toggle { width: 36px; height: 36px; } }

/* ── Public menu: subcategories open/close like the categories ──
   Same look as a category bar: dish count + arrow in a circle on the right. Closed = grey circle,
   arrow down ("open me"); open = coloured circle, arrow up. The bar darkens a little on hover. */
#menu-screen button.public-subsection-title { display: grid; grid-template-columns: minmax(64px, 1fr) minmax(0, auto) minmax(64px, 1fr); align-items: center; gap: 8px; width: 100%; border: 0; cursor: pointer; text-align: center; -webkit-tap-highlight-color: transparent; transition: filter 0.15s ease; }
@media (hover: hover) { #menu-screen button.public-subsection-title:hover { filter: brightness(0.95); } }
#menu-screen .public-subsection-name { grid-column: 2; overflow-wrap: anywhere; }
#menu-screen .public-subsection-meta { grid-column: 3; justify-self: end; display: inline-flex; align-items: center; gap: 8px; }
#menu-screen .public-subsection-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--surface); color: var(--accent-dark); font-size: 10px; font-weight: 800; font-family: var(--font-body); line-height: 1; }
#menu-screen .public-subsection-chevron { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: var(--on-accent, #fff); transform: rotate(180deg); transition: transform 0.25s ease, background 0.2s ease, color 0.2s ease; }
#menu-screen .public-subsection-chevron svg { display: block; width: 14px; height: 14px; }
#menu-screen .public-subsection.collapsed .public-subsection-chevron { transform: rotate(0deg); background: var(--surface); color: var(--muted); }
#menu-screen .public-subsection.collapsed > :not(.public-subsection-title) { display: none; }
#menu-screen .public-subsection.collapsed .public-subsection-title { margin-bottom: 0; }
#menu-screen .public-subsection-title:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ── Appearance: menu font picker (each option is drawn in its own fonts: --fd titles, --fb text) ── */
.font-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 14px 0 0; }
.font-option { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; padding: 14px; border: 1.5px solid var(--border); border-radius: 14px; background: #fff; color: var(--text); text-align: start; cursor: pointer; transition: border-color .15s ease, box-shadow .15s ease; }
.font-option:hover { border-color: var(--accent); }
.font-option.active { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-light); }
.font-sample { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--fd); font-size: 22px; font-weight: 600; line-height: 1.25; }
.font-names { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--fb); font-size: 13px; color: var(--muted); }
@media (max-width: 420px) { .font-options { grid-template-columns: 1fr; } }
.subsection-card.is-hidden { opacity: 0.6; }
.subsection-card.is-hidden .subsection-header { background: #F6F1E9; }

/* ── compact language selector next to the search (public menu) ──
   --lang-p (0..1) is set by updatePublicLangDock() in public-menu.js: 0 = header selector still visible. */
.public-tools-row { display: flex; align-items: center; min-width: 0; overflow: hidden; padding: 4px; margin: -4px; }
.public-tools-row > .public-search { flex: 1 1 auto; min-width: 0; }
.public-tools-row > .public-category-nav { flex: 1 1 auto; min-width: 0; }
.lang-dock { --dock-size: 44px; --dock-gap: 8px; flex: 0 0 auto; position: relative; width: calc(var(--lang-p, 0) * (var(--dock-size) + var(--dock-gap))); height: var(--dock-size); visibility: hidden; }
.lang-dock.is-on { visibility: visible; }
.public-category-bar .lang-dock { --dock-size: 32px; --dock-gap: 6px; }
.lang-dock-btn { position: absolute; top: 0; inset-inline-start: var(--dock-gap); display: grid; place-items: center; width: var(--dock-size); height: var(--dock-size); margin: 0; border: 1px solid var(--border); border-radius: 14px; background: color-mix(in srgb, var(--surface) 92%, transparent); color: var(--text); opacity: calc(var(--lang-p, 0) * 1.8); transform: translateX(calc((1 - var(--lang-p, 0)) * 16px)); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.public-category-bar .lang-dock-btn { border-radius: 11px; }
#menu-screen.lang-rtl .lang-dock-btn { transform: translateX(calc((1 - var(--lang-p, 0)) * -16px)); }
.lang-dock-btn:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.lang-dock-flag { font-size: 20px; line-height: 1; pointer-events: none; }
.public-category-bar .lang-dock-flag { font-size: 17px; }
.lang-dock-btn select { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; opacity: 0; font-size: 16px; cursor: pointer; -webkit-appearance: none; appearance: none; }
.lang-dock-btn select option { color: #16201a; background: #fff; }
@media (prefers-reduced-motion: reduce) { .lang-dock-btn { transform: none; } }

/* ── v22: sold-out dishes, allergen icons, photo-less tiles ── */
#menu-screen .public-soldout-badge, .public-soldout-badge.viewer-soldout { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 6px; background: var(--text, #1b211d); color: var(--bg, #fff); font-size: 10.5px; font-weight: 800; letter-spacing: .3px; text-transform: uppercase; white-space: nowrap; line-height: 1.4; }
.public-soldout-badge.viewer-soldout { --text: var(--vw-text, #1b211d); --bg: var(--vw-bg, #fff); margin-top: 8px; margin-inline-end: 6px; }
#menu-screen .public-dish-row.is-sold-out .public-dish-name,
#menu-screen .public-dish-row.is-sold-out .public-dish-desc,
#menu-screen .public-dish-row.is-sold-out .public-dish-price,
#menu-screen .public-dish-row.is-sold-out .public-sizes,
#menu-screen .public-dish-row.is-sold-out .public-allergens { opacity: .5; }
#menu-screen .public-dish-row.is-sold-out .public-dish-price { text-decoration: line-through; }
#menu-screen .public-dish-card.is-sold-out .public-dish-media img { filter: grayscale(1); }
#menu-screen .public-dish-card.is-sold-out .public-dish-card-body > * { opacity: .55; }
#menu-screen .public-dish-card.is-sold-out .public-dish-price { text-decoration: line-through; }
#menu-screen .public-dish-card .public-soldout-badge { position: absolute; bottom: 8px; inset-inline-start: 8px; z-index: 1; box-shadow: 0 1px 4px rgba(0, 0, 0, .25); }

.xi { display: block; flex: none; width: 1em; height: 1em; }
.public-allergens { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; color: var(--text, inherit); }
.allergen-ico { display: inline-grid; place-items: center; box-sizing: border-box; width: 27px; height: 27px; padding: 0; border: 1px solid color-mix(in srgb, currentColor 24%, transparent); border-radius: 8px; background: transparent; color: inherit; cursor: default; -webkit-tap-highlight-color: transparent; }
.allergen-ico .xi { width: 17px; height: 17px; }
.photo-info-allergens { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.viewer-allergen { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 8px; font-size: 12.5px; font-weight: 600; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--vw-text, #1b211d) 20%, transparent); color: var(--vw-text, #1b211d); }
.viewer-allergen .xi { width: 16px; height: 16px; }

.public-dish-initial { display: none; }
.public-dish-media.no-photo .public-dish-initial { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: clamp(34px, 9vw, 52px); color: var(--accent-dark, currentColor); opacity: .28; -webkit-user-select: none; user-select: none; }

.toggle-dish-soldout { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 30px; height: 30px; padding: 0; border: 1px solid var(--border); border-radius: 50%; background: var(--surface); color: var(--muted, #7a857f); cursor: pointer; transition: all .15s ease; }
.toggle-dish-soldout:hover { border-color: var(--accent); background: var(--accent-light); color: var(--accent); }
.toggle-dish-soldout.is-on { color: #A9663A; border-color: #E9CBA9; background: #F9F1E7; }
.toggle-dish-soldout:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (pointer: coarse) { .toggle-dish-soldout { width: 36px; height: 36px; } }
.dish-soldout-badge { display: inline-flex; align-items: center; font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: #8a4a12; background: #FBE9D4; border: 1px solid #EBC697; border-radius: 4px; padding: 2px 6px; white-space: nowrap; }

/* ── dish form: allergens / diets / features picker ──
   NB: `.add-dish-form label` and `.add-dish-form input` (tiny uppercase labels, full-width fields) also match what is inside
   the picker, so these rules are written with a longer selector on purpose. */
.add-dish-form .dish-allergens { overflow: hidden; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-soft, #f8faf7); }
.dish-allergens > summary { display: flex; align-items: center; gap: 8px; min-height: 50px; padding: 10px 14px; cursor: pointer; list-style: none; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
.dish-allergens > summary::-webkit-details-marker { display: none; }
.dish-allergens > summary::marker { content: ''; }
.dish-allergens > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 14px; }
.dish-allergens[open] > summary { border-bottom: 1px solid var(--border); }
.dish-allergens-title { font-size: 14px; font-weight: 700; color: var(--text); }
.dish-allergens-badge { display: inline-flex; align-items: center; }
.dish-allergens > summary .badge-optional { margin-inline-start: auto; }
.dish-allergens-chev { flex: 0 0 auto; width: 18px; height: 18px; color: var(--muted); transition: transform .2s ease; }
.dish-allergens[open] > summary .dish-allergens-chev { transform: rotate(180deg); }
.dish-allergens-body { padding: 2px 14px 14px; }
.dish-allergens-hint { margin: 10px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.dish-allergens-group { min-width: 0; margin: 16px 0 0; padding: 0; border: 0; }
.dish-allergens-group legend { margin-bottom: 8px; padding: 0; font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.dish-allergens-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.add-dish-form .allergen-chip { position: relative; display: flex; align-items: center; gap: 10px; min-height: 48px; margin: 0; padding: 8px 10px; border: 1.5px solid var(--border); border-radius: 12px; background: #fff; font-size: 13.5px; font-weight: 600; letter-spacing: 0; line-height: 1.25; text-transform: none; color: var(--text); cursor: pointer; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; transition: border-color .15s ease, background-color .15s ease; }
.add-dish-form .allergen-chip:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--border)); }
.add-dish-form .allergen-chip input.allergen-check { position: absolute; width: 1px; height: 1px; min-height: 0; margin: 0; padding: 0; border: 0; opacity: 0; pointer-events: none; }
.allergen-chip-ico { flex: 0 0 auto; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--accent-light); color: var(--accent-dark); transition: background-color .15s ease, color .15s ease; }
.allergen-chip-ico .xi { width: 20px; height: 20px; }
.allergen-chip-name { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.allergen-chip-tick { flex: 0 0 auto; display: grid; place-items: center; width: 20px; height: 20px; border: 1.5px solid var(--border); border-radius: 50%; background: #fff; color: transparent; transition: background-color .15s ease, border-color .15s ease, color .15s ease; }
.allergen-chip-tick svg { width: 12px; height: 12px; }
.add-dish-form .allergen-chip:has(.allergen-check:checked) { border-color: var(--accent); background: var(--accent-light); }
.allergen-chip:has(.allergen-check:checked) .allergen-chip-ico { background: var(--accent); color: #fff; }
.allergen-chip:has(.allergen-check:checked) .allergen-chip-tick { border-color: var(--accent); background: var(--accent); color: #fff; }
.allergen-chip:has(.allergen-check:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 600px) {
  .dish-allergens-body { padding: 2px 12px 12px; }
  .dish-allergens-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
  .add-dish-form .allergen-chip { gap: 8px; padding: 7px 8px; font-size: 13px; }
  .allergen-chip-ico { width: 30px; height: 30px; }
}
@media (prefers-reduced-motion: reduce) { .dish-allergens-chev, .add-dish-form .allergen-chip, .allergen-chip-ico, .allergen-chip-tick { transition: none; } }
.dish-allergens-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-inline-start: 6px; border-radius: 999px; background: var(--accent-light); color: var(--accent-dark, var(--accent)); font-size: 11px; font-weight: 800; }

/* allergens, diets and features are shown apart */
.allergen-ico.is-tag { border-color: transparent; border-radius: 999px; background: color-mix(in srgb, currentColor 11%, transparent); }
.allergen-ico:not(.is-tag) + .allergen-ico.is-tag { margin-inline-start: 6px; }
.viewer-allergen.is-tag { border-color: transparent; background: color-mix(in srgb, var(--vw-text, #1b211d) 9%, transparent); }
.public-legend { margin: 18px 4px 0; padding: 12px 14px; border: 1px solid var(--border); border-radius: 14px; background: var(--section-bg, transparent); font-size: 12.5px; line-height: 1.8; color: var(--desc, var(--muted)); }
.public-legend-line { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 0; }
.public-legend-line + .public-legend-line { margin-top: 4px; }
.public-legend-line strong { margin-inline-end: 8px; color: var(--text); font-weight: 700; }
.public-legend-item { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; margin-inline-end: 12px; color: var(--text); }
.public-legend-item .xi { width: 15px; height: 15px; }

/* ── password show/hide button + menu loading placeholder ── */
.pw-wrap { position: relative; display: block; flex: 1 1 auto; min-width: 0; width: 100%; }
.pw-wrap .pw-input { padding-inline-end: 46px !important; margin: 0 !important; }
/* ROOT CAUSE of the "two eyes" in the password field: Microsoft Edge (and Chromium on Windows) draws its OWN
   "reveal password" eye inside every type=password input as soon as something is typed, on top of the SpeedMenu
   button. The native one is switched off here, so only the SpeedMenu eye (which also works on every browser,
   mobile included) remains. The clear "x" of Edge is hidden for the same reason. */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear { display: none !important; width: 0; height: 0; }
.pw-input::-ms-reveal, .pw-input::-ms-clear { display: none !important; }
.reauth-modal-card .pw-wrap { margin-top: 10px; }
.pw-toggle { position: absolute; top: 50%; inset-inline-end: 5px; transform: translateY(-50%); display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer; -webkit-tap-highlight-color: transparent; transition: color .15s ease, background .15s ease; }
.pw-toggle svg { display: block; width: 20px; height: 20px; }
.pw-toggle:hover { color: var(--accent); background: var(--accent-light); }
.pw-toggle[aria-pressed="true"] { color: var(--accent); }
.pw-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; }
.auth-card.register-mode .pw-toggle:hover, .auth-card.register-mode .pw-toggle[aria-pressed="true"] { color: var(--accent-register); }

.menu-skeleton { display: grid; gap: 15px; }
.menu-skeleton-label { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 8px 0 2px; color: var(--muted); font-size: 13.5px; font-weight: 700; }
.menu-skeleton-label .spinner { flex: 0 0 auto; width: 22px; height: 22px; }
.menu-skeleton-card { display: flex; align-items: center; gap: 14px; height: 64px; padding: 0 18px; border: 1px solid var(--line-soft, var(--border)); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-sm); }
.menu-skeleton-card .sk-dot { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; }
.menu-skeleton-card .sk-bar { flex: 1 1 auto; max-width: 260px; height: 14px; border-radius: 7px; }
.menu-skeleton-card:nth-of-type(2) .sk-bar { max-width: 200px; }
.menu-skeleton-card:nth-of-type(3) .sk-bar { max-width: 230px; }
.menu-skeleton-card .sk-dot, .menu-skeleton-card .sk-bar { background: linear-gradient(100deg, var(--border) 30%, var(--accent-light) 50%, var(--border) 70%); background-size: 220% 100%; animation: skShimmer 1.4s ease-in-out infinite; }
@keyframes skShimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@media (prefers-reduced-motion: reduce) { .menu-skeleton-card .sk-dot, .menu-skeleton-card .sk-bar { animation: none; } }
/* ==========================================================================
   Restaurant showcase (js/discover.js), city / showcase settings (js/directory-admin.js)
   ========================================================================== */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ── toggle switch (settings) ── */
/* NB: `.profile-block > label` (small uppercase caption) has a longer selector than `.switch-row` and used to win,
   which turned the row into a block and collapsed the switch into a stray dot. `label.switch-row` below beats it. */
.switch-row, .profile-block > label.switch-row { position: relative; display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin: 0; font-size: 14px; font-weight: 400; line-height: 1.5; color: var(--text); text-transform: none !important; letter-spacing: 0 !important; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.switch-row > input { position: absolute; top: 0; inset-inline-start: 0; width: 1px; height: 1px; margin: 0; padding: 0; opacity: 0; pointer-events: none; }
.switch-ui { order: 2; flex: 0 0 auto; position: relative; width: 48px; height: 28px; margin-top: 0; border-radius: 999px; background: #c3cbc0; box-shadow: inset 0 0 0 1px rgba(20, 30, 25, .06); transition: background-color .2s ease; }
.switch-row:hover > input:not(:checked):not(:disabled) + .switch-ui { background: #b4beb1; }
.switch-ui::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(20, 30, 25, .3); transition: transform .2s ease; }
.switch-row > input:checked + .switch-ui { background: var(--accent); }
.switch-row > input:checked + .switch-ui::after { transform: translateX(20px); }
[dir="rtl"] .switch-row > input:checked + .switch-ui::after { transform: translateX(-20px); }
.switch-row > input:focus-visible + .switch-ui { outline: 3px solid color-mix(in srgb, var(--accent) 35%, transparent); outline-offset: 2px; }
.switch-row > input:disabled + .switch-ui { opacity: .55; }
.switch-text { order: 1; flex: 1 1 auto; display: block; min-width: 0; }
.switch-text strong { display: block; font-size: 14px; font-weight: 700; color: var(--text); text-transform: none; letter-spacing: 0; }
.switch-text small { display: block; margin-top: 3px; font-size: 12.5px; font-weight: 400; line-height: 1.5; color: var(--muted); text-transform: none; letter-spacing: 0; }
.switch-text .switch-status { display: flex; align-items: center; gap: 7px; min-height: 0; margin-top: 8px; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.switch-text .switch-status:empty { display: none; }
.switch-text .switch-status.has-dot::before { content: ""; flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%; background: #aab3a7; }
.switch-text .switch-status.has-dot.is-on { color: #14663f; }
.switch-text .switch-status.has-dot.is-on::before { background: #2f9e5b; box-shadow: 0 0 0 3px rgba(47, 158, 91, .18); }
.panel-card .switch-row { margin-bottom: 4px; }

/* ── location picker: country > region > province > city (js/directory-admin.js) ── */
.geo-form { display: block; }
.geo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; }
.geo-field { min-width: 0; }
.geo-field[hidden] { display: none; }
.geo-field-city { grid-column: 1 / -1; }
.profile-block .geo-label { display: block; margin: 0 0 6px; font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.profile-block select.geo-select, .profile-block input.geo-input { display: block; width: 100%; min-width: 0; min-height: 46px; padding: 10px 13px; border: 1.5px solid var(--border); border-radius: 12px; background-color: var(--surface-soft, #f8faf7); font-size: 14.5px; font-weight: 600; color: var(--text); outline: none; transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease; }
.profile-block select.geo-select { appearance: none; -webkit-appearance: none; padding-inline-end: 38px; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B7268' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; }
[dir="rtl"] .profile-block select.geo-select { background-position: left 12px center; }
.profile-block select.geo-select:disabled, .profile-block input.geo-input:disabled { opacity: .55; cursor: not-allowed; }
.profile-block select.geo-select:focus, .profile-block input.geo-input:focus { border-color: var(--accent); background-color: #fff; }
.geo-combo { position: relative; }
.profile-block input.geo-input { padding-inline-end: 42px; }
.geo-clear { position: absolute; top: 50%; inset-inline-end: 6px; transform: translateY(-50%); display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--muted); font-size: 22px; line-height: 1; cursor: pointer; }
.geo-clear[hidden] { display: none; }
.geo-clear:hover { background: var(--accent-light); color: var(--accent-dark); }
.geo-list { position: absolute; z-index: 30; inset-inline: 0; top: calc(100% + 6px); max-height: min(300px, 46vh); margin: 0; padding: 6px; overflow-y: auto; overscroll-behavior: contain; list-style: none; border: 1px solid var(--border); border-radius: 14px; background: #fff; box-shadow: var(--shadow-lg); }
.geo-list[hidden] { display: none; }
.geo-opt { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; padding: 9px 12px; border-radius: 10px; font-size: 14.5px; font-weight: 600; color: var(--text); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.geo-opt small { flex: 0 0 auto; font-size: 12px; font-weight: 600; color: var(--muted); }
.geo-opt.is-active, .geo-opt:hover { background: var(--accent-light); color: var(--accent-dark); }
.geo-opt-add { justify-content: flex-start; margin-top: 4px; border-top: 1px solid var(--border); border-radius: 10px; color: var(--accent-dark); font-weight: 700; }
.geo-plus { flex: 0 0 auto; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 16px; line-height: 1; }
.geo-empty { padding: 12px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.geo-hint { min-height: 0; margin: 6px 0 0; font-size: 12.5px; line-height: 1.45; color: #7d4416; }
.geo-hint:empty { display: none; }
.geo-actions { margin-top: 14px; }
@media (max-width: 560px) {
  .geo-grid { grid-template-columns: 1fr; }
  .geo-actions .btn { width: 100%; min-height: 46px; }
}

/* ── city / country fields ── */
.loc-row { flex-wrap: wrap; }
.loc-row select { flex: 1 1 170px; min-width: 0; min-height: 46px; padding: 10px 12px; border: 1.5px solid var(--border); border-radius: 12px; background: var(--surface-soft, #f8faf7); font-size: 14.5px; font-weight: 600; color: var(--text); }
.loc-row input { flex: 1 1 150px; }
.loc-nudge { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; padding: 6px 6px 6px 14px; border: 1px solid var(--border); border-radius: 12px; background: #fff; color: var(--muted); font-size: 12.5px; font-weight: 600; line-height: 1.35; }
.loc-nudge-text { flex: 1 1 auto; min-width: 0; }
.loc-nudge-btn { flex: 0 0 auto; min-height: 30px; padding: 0 12px; font-size: 12px; white-space: nowrap; }
.loc-nudge-close { flex: 0 0 auto; display: grid; place-items: center; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; }
.loc-nudge-close:hover { background: var(--accent-light); color: var(--text); }

/* ── restaurant cards ── */
.rest-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--line-soft, rgba(15, 56, 104, .11)); border-radius: 18px; background: #fff; color: var(--text); text-decoration: none; box-shadow: 0 6px 22px rgba(15, 56, 104, .06); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.rest-card:hover, .rest-card:focus-visible { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 35%, transparent); box-shadow: 0 16px 38px rgba(15, 56, 104, .13); }
.rest-card:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 40%, transparent); outline-offset: 2px; }
.rest-card-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: linear-gradient(135deg, hsl(var(--hue, 210) 45% 92%), hsl(calc(var(--hue, 210) + 30) 50% 84%)); }
.rest-card-media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rest-card-media--logo { display: grid; place-items: center; }
.rest-card-logobox { display: grid; place-items: center; width: 96px; height: 96px; padding: 10px; border-radius: 22px; background: #fff; box-shadow: 0 6px 20px rgba(20, 30, 25, .14); }
.rest-card-logobox img { max-width: 100%; max-height: 100%; object-fit: contain; }
.rest-card-logo { position: absolute; inset-inline-start: 12px; bottom: 12px; display: grid; place-items: center; width: 46px; height: 46px; overflow: hidden; border: 2px solid #fff; border-radius: 12px; background: #fff; box-shadow: 0 4px 14px rgba(20, 30, 25, .22); }
.rest-card-logo img { width: 100%; height: 100%; object-fit: contain; }
/* no image: a text card with a coloured top edge */
.rest-card--plain { border-top: 5px solid hsl(var(--hue, 210) 55% 52%); }
.rest-card-head { display: flex; align-items: center; gap: 10px; }
.rest-card-mono { flex: 0 0 auto; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: hsl(var(--hue, 210) 55% 92%); color: hsl(var(--hue, 210) 55% 30%); font-family: var(--font-display); font-size: 16px; font-weight: 800; }
.rest-card-list { margin: 2px 0 0; padding: 0; list-style: none; font-size: 12.5px; line-height: 1.55; color: var(--ink-soft, #35423b); }
.rest-card-list li { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rest-card-list li::before { content: "•"; margin-inline-end: 7px; color: hsl(var(--hue, 210) 55% 52%); }
.discover-more { display: block; margin: 22px auto 0; padding: 11px 26px; border: 1.5px solid var(--accent); border-radius: 999px; background: #fff; color: var(--accent); font-size: 13.5px; font-weight: 800; cursor: pointer; }
.discover-more:hover { background: var(--accent-light); }
.discover-more:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 40%, transparent); outline-offset: 2px; }
.discover-more--cities { margin: 0; padding: 8px 14px; font-size: 13px; }
.discover-cities a[hidden] { display: none; }
.rest-card-body { display: flex; flex: 1; flex-direction: column; gap: 5px; padding: 14px 16px 16px; }
.rest-card-name { font-family: var(--font-display); font-size: 17px; font-weight: 750; letter-spacing: -.02em; line-height: 1.25; overflow-wrap: anywhere; }
.rest-card-meta { font-size: 12px; font-weight: 600; color: var(--muted); }
.rest-card-dishes { display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 12.5px; line-height: 1.5; color: var(--ink-soft, #35423b); }
.rest-card-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 2px; }
.rest-card-chips span { padding: 3px 9px; border-radius: 999px; background: var(--accent-light); color: var(--accent-dark); font-size: 10.5px; font-weight: 700; }
.rest-card-cta { margin-top: auto; padding-top: 8px; color: var(--accent); font-size: 12.5px; font-weight: 800; }

/* ── teaser on the home page ── */
.landing-extras, .discover-teaser { min-width: 0; max-width: 100%; }   /* a horizontally scrolling row must not widen the page grid */
.discover-teaser { margin: 0 0 clamp(28px, 4vw, 48px); text-align: start; }
.discover-teaser[hidden] { display: none; }
.discover-teaser-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.discover-teaser-head h3 { font-family: var(--font-display); font-size: clamp(22px, 3vw, 30px); font-weight: 750; letter-spacing: -.035em; color: #17241e; }
.discover-teaser-head p { max-width: 560px; margin-top: 4px; color: var(--muted); font-size: 13.5px; line-height: 1.55; }
.discover-seeall { flex: 0 0 auto; color: var(--accent); font-size: 13px; font-weight: 800; text-decoration: none; }
.discover-seeall:hover { text-decoration: underline; text-underline-offset: 3px; }
.discover-search { position: relative; display: block; margin-bottom: 14px; }
.discover-search svg { position: absolute; inset-inline-start: 14px; top: 50%; width: 18px; transform: translateY(-50%); fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; pointer-events: none; }
.discover-search input { width: 100%; height: 46px; padding: 0 14px; padding-inline-start: 42px; border: 1.5px solid var(--border); border-radius: 14px; background: #fff; font-size: 14px; outline: none; }
.discover-search input:focus { border-color: var(--accent); }
.discover-rail { display: flex; gap: 14px; overflow-x: auto; padding: 4px 2px 16px; scroll-snap-type: x proximity; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.discover-rail .rest-card { flex: 0 0 min(264px, 74vw); scroll-snap-align: start; }

/* ── discover page ── */
#discover-screen { min-height: calc(100vh - 68px); padding: clamp(22px, 4vw, 52px) clamp(16px, 4vw, 42px) 72px; background: radial-gradient(circle at 10% 0%, rgba(33, 88, 166, .10), transparent 30%), radial-gradient(circle at 95% 20%, rgba(11, 100, 120, .08), transparent 26%); }
.discover-wrap { max-width: 1120px; margin: 0 auto; }
.discover-back { display: inline-block; margin-bottom: 14px; color: var(--accent); font-size: 13px; font-weight: 700; text-decoration: none; }
.discover-back:hover { text-decoration: underline; text-underline-offset: 3px; }
.discover-title { font-family: var(--font-display); font-size: clamp(30px, 5vw, 48px); font-weight: 780; line-height: 1.08; letter-spacing: -.05em; color: #17241e; overflow-wrap: anywhere; }
.discover-intro { max-width: 620px; margin-top: 10px; color: var(--ink-soft, #35423b); font-size: clamp(14px, 1.6vw, 16.5px); line-height: 1.65; }
.discover-controls { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 6px; }
.discover-controls .discover-search { flex: 1 1 320px; margin: 0; }
.discover-country { flex: 0 1 220px; }
.discover-country select { width: 100%; height: 46px; padding: 0 12px; border: 1.5px solid var(--border); border-radius: 14px; background: #fff; font-size: 14px; font-weight: 600; }
.discover-block { margin-top: 30px; }
.discover-block > h2 { margin-bottom: 14px; font-family: var(--font-display); font-size: clamp(19px, 2.4vw, 24px); font-weight: 750; letter-spacing: -.03em; color: #17241e; }
.rest-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 18px; }
.discover-content { margin-top: 26px; }
.discover-content > .rest-grid { margin-top: 0; }
.discover-empty { padding: 40px 12px; text-align: center; color: var(--muted); font-size: 14px; }
.discover-cities { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 34px; }
.discover-cities a { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border: 1px solid var(--border); border-radius: 999px; background: #fff; color: var(--text); font-size: 13px; font-weight: 700; text-decoration: none; }
.discover-cities a:hover { border-color: var(--accent); background: var(--accent-light); }
.discover-cities small { color: var(--muted); font-size: 11px; font-weight: 700; }
.discover-owner { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 44px; padding: 18px 20px; border: 1px solid var(--line-soft, rgba(15, 56, 104, .11)); border-radius: 18px; background: rgba(255, 255, 255, .72); font-size: 13.5px; }
.discover-owner[hidden] { display: none; }
.discover-owner a { text-decoration: none; }
.discover-owner span { flex: 1 1 260px; color: var(--muted); }
.discover-owner strong { flex: 1 1 100%; font-size: 15px; }
/* server-written fallback list (shown only until the script replaces it) */
.discover-ssr h1 { font-family: var(--font-display); font-size: clamp(28px, 5vw, 44px); letter-spacing: -.04em; }
.discover-ssr p { margin: 8px 0 14px; color: var(--muted); }
.discover-ssr ul { margin: 0 0 14px 18px; line-height: 1.8; }
.discover-ssr a { color: var(--accent); font-weight: 600; }

/* ── quiet link at the bottom of public menus ── */
.public-menu-footer .public-discover-link { display: block; width: fit-content; margin: 8px auto 0; font-size: 12px; font-weight: 600; text-decoration: none; opacity: .75; }
.public-menu-footer .public-discover-link:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 560px) {
  .discover-teaser-head { align-items: flex-start; }
  .rest-grid { gap: 14px; }
  .discover-country { flex: 1 1 100%; }
  .loc-row select, .loc-row input { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) { .rest-card, .switch-ui, .switch-ui::after { transition: none; } .rest-card:hover { transform: none; } }

/* ── public menu: icons and round badges use a quieter tone (--icon), so they never outweigh names and prices ── */
#menu-screen .public-section.open .public-section-chevron, #menu-screen .public-subsection-chevron { background: var(--icon, var(--accent)); }
#menu-screen .public-dish-photo-icon, #menu-screen .public-section-count, #menu-screen .public-subsection-count { color: var(--icon, var(--accent-dark)); }
#menu-screen .public-allergens { color: var(--icon, var(--text)); }
#menu-screen .lang-switch button.active { background: var(--icon, var(--accent-dark)); border-color: var(--icon, var(--accent-dark)); }

/* ── import menu from photo ── */
.csv-import-actions + .csv-import-help { margin-top: 2px; }
.photo-busy { display: grid; justify-items: center; gap: 14px; padding: 28px 8px; text-align: center; }
.photo-spinner { width: 34px; height: 34px; border: 3px solid var(--accent-light); border-top-color: var(--accent); border-radius: 50%; animation: photoSpin .8s linear infinite; }
@keyframes photoSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .photo-spinner { animation-duration: 2.4s; } }
.photo-warn { padding: 8px 10px; border-radius: 10px; background: var(--accent-light); color: var(--text); }
.photo-list { display: grid; gap: 10px; margin-bottom: 12px; }
.photo-card { position: relative; display: grid; gap: 8px; padding: 12px 38px 12px 12px; border: 1px solid var(--border); border-radius: 14px; background: #fff; }
.photo-card input[type="text"] { width: 100%; min-width: 0; min-height: 36px; padding: 6px 10px; border: 1px solid var(--border); border-radius: 9px; background: #fff; color: var(--text); font: inherit; font-size: 13.5px; }
.photo-card input[type="text"]:focus { outline: 2px solid color-mix(in srgb, var(--accent) 40%, transparent); outline-offset: 0; border-color: var(--accent); }
.photo-card input.is-invalid { border-color: var(--danger); background: var(--danger-light); }
.photo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.photo-grid .photo-dish { grid-column: 1 / 2; font-weight: 700; }
.photo-grid .photo-price { grid-column: 2 / 3; }
.photo-card-remove { position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--muted); font-size: 18px; line-height: 1; cursor: pointer; }
.photo-card-remove:hover { background: var(--danger-light); color: var(--danger); }
.photo-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.photo-chip { display: inline-flex; align-items: center; gap: 5px; min-height: 28px; padding: 3px 9px 3px 6px; border: 1px solid var(--border); border-radius: 999px; background: #fff; color: var(--muted); font-size: 11.5px; font-weight: 600; cursor: pointer; }
.photo-chip .xi { width: 15px; height: 15px; }
.photo-chip.on { border-color: var(--accent); background: var(--accent-light); color: var(--accent-dark); }
.photo-opts { display: flex; flex-wrap: wrap; gap: 5px; }
.photo-opt { display: inline-flex; align-items: center; gap: 4px; padding: 3px 4px 3px 10px; border-radius: 999px; background: var(--accent-light); color: var(--accent-dark); font-size: 11.5px; font-weight: 600; }
.photo-opt button { width: 20px; height: 20px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: inherit; font-size: 14px; line-height: 1; cursor: pointer; }
.photo-opt button:hover { background: rgba(0, 0, 0, .08); }
.photo-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.photo-bar { position: sticky; bottom: -1px; display: flex; justify-content: flex-end; gap: 10px; padding: 12px 0 2px; background: linear-gradient(to top, var(--surface, #fff) 70%, transparent); }
@media (max-width: 520px) {
  .photo-grid { grid-template-columns: 1fr; }
  .photo-grid .photo-dish, .photo-grid .photo-price { grid-column: auto; }
  .photo-bar { flex-direction: column-reverse; }
  .photo-bar .btn { width: 100%; }
}

/* ── quieter "open" indicators: dashboard section/subsection arrows and public menu category filter ── */
.section-card.is-open .section-collapse-toggle, .subsection-card:not(.is-collapsed) .subsection-collapse-toggle { background: var(--accent-light); border-color: color-mix(in srgb, var(--accent) 45%, transparent); color: var(--accent); }
#menu-screen .public-category-nav button.active { background: var(--icon, var(--accent)); border-color: var(--icon, var(--accent)); }
/* ── landing (sign-in screen): how it works, features, pricing polish ── */
.auth-hero h2 { letter-spacing: -.045em; }
.auth-benefit strong { font-size: 13.5px; }
.auth-benefit small { font-size: 12px; line-height: 1.5; }
.land-cta-row { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 22px; margin-top: 26px; }
.land-cta-row .land-cta { width: auto; min-height: 50px; padding: 0 28px; display: inline-flex; align-items: center; justify-content: center; border-radius: 14px; font-size: 15px; font-weight: 700; text-decoration: none; }
.land-link { color: var(--accent-dark); font-size: 14px; font-weight: 700; text-decoration: none; padding: 10px 2px; border-bottom: 2px solid rgba(33, 88, 166, .25); }
.land-link:hover { border-bottom-color: var(--accent); }
.land-cta-row + .auth-hero-note { margin-top: 22px; }
.land-sec { scroll-margin-top: 80px; margin: clamp(44px, 7vw, 84px) 0; text-align: center; }
.land-h { font-family: var(--font-display); font-size: clamp(26px, 3.6vw, 38px); font-weight: 750; letter-spacing: -.04em; line-height: 1.12; color: #17241e; }
.land-sub { max-width: 560px; margin: 10px auto 0; color: var(--muted); font-size: clamp(14.5px, 1.5vw, 16px); line-height: 1.6; }
.land-steps { list-style: none; display: grid; grid-template-columns: 1fr; gap: 12px; margin: 28px 0 0; padding: 0; counter-reset: none; }
.land-step { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 24px 20px; border: 1px solid var(--line-soft); border-radius: 20px; background: rgba(255, 255, 255, .72); }
.land-num { width: 38px; height: 38px; margin-bottom: 6px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: #fff; font-family: var(--font-display); font-size: 17px; font-weight: 750; }
.land-step:nth-child(2) .land-num { background: var(--accent-register); }
.land-step strong { font-size: 17px; line-height: 1.3; }
.land-step small { max-width: 300px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.land-grid { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 28px; text-align: left; }
.land-card { display: flex; align-items: flex-start; gap: 14px; min-width: 0; padding: 20px; border: 1px solid var(--line-soft); border-radius: 18px; background: rgba(255, 255, 255, .8); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.land-card:hover { transform: translateY(-2px); border-color: rgba(33, 88, 166, .25); box-shadow: 0 14px 34px rgba(15, 56, 104, .09); }
.land-card .benefit-icon { flex: 0 0 auto; }
.land-card strong { display: block; margin-bottom: 4px; font-size: 15.5px; line-height: 1.35; }
.land-card small { display: block; color: var(--muted); font-size: 13.5px; line-height: 1.55; }
.land-allincl { margin: 0 0 16px; color: var(--accent-dark); font-size: 14px; font-weight: 700; }
.pricing-card { border-radius: 20px; }
.pricing-card.highlighted { box-shadow: 0 18px 44px rgba(33, 88, 166, .16); }
@media (min-width: 640px) {
  .land-steps { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .land-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .land-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (min-width: 1000px) {
  .land-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .land-card:last-child:nth-child(odd) { grid-column: auto; }
  .land-card { padding: 24px; }
}
@media (min-width: 1500px) {
  .auth-layout, .landing-extras { max-width: 1240px; }
}
@media (max-width: 600px) {
  .land-cta-row { flex-direction: column; align-items: stretch; text-align: center; gap: 8px; }
  .land-cta-row .land-cta { width: 100%; }
  .land-sec { margin: 44px 0; }
}
@media (max-width: 899px) {
  .land-cta-row { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .land-card { transition: none; } .land-card:hover { transform: none; } }
/* ── landing: tighter spacing + top dropdown menu ── */
.auth-layout { row-gap: clamp(8px, 2vw, 24px); }
.landing-extras { margin-top: 0; }
.land-sec { margin: clamp(30px, 4.5vw, 56px) 0; }
.landing-extras > .land-sec:first-child { margin-top: clamp(14px, 2.5vw, 32px); }
.land-steps, .land-grid { margin-top: 22px; }
.trial-banner, .faq-section { scroll-margin-top: 84px; }
@media (max-width: 600px) {
  .land-sec { margin: 32px 0; }
  .landing-extras > .land-sec:first-child { margin-top: 20px; }
  .auth-layout { gap: 22px; }
}
#auth-lang[style*="inline-flex"] { margin-left: auto; }
.land-nav { display: none; position: relative; margin-left: 10px; }
#auth-lang[style*="inline-flex"] + .land-nav { display: block; }
.land-nav-btn { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px 0 13px; border: 1px solid rgba(33, 88, 166, .28); border-radius: 999px; background: #fff; color: var(--accent-dark); font-size: 13px; font-weight: 700; cursor: pointer; box-shadow: 0 2px 8px rgba(15, 56, 104, .06); transition: background .15s, border-color .15s; }
.land-nav-btn:hover, .land-nav-btn.open { border-color: var(--accent); background: var(--accent-light); }
.land-nav-btn:focus-visible, .land-nav-item:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.land-nav-chev { transition: transform .18s ease; }
.land-nav-btn.open .land-nav-chev { transform: rotate(180deg); }
.land-nav-menu { position: absolute; top: calc(100% + 10px); right: 0; z-index: 200; width: 264px; max-width: calc(100vw - 24px); padding: 8px; border: 1px solid rgba(33, 88, 166, .14); border-radius: 18px; background: #fff; box-shadow: 0 22px 60px rgba(15, 56, 104, .18); animation: landNavIn .16s ease; }
.land-nav-menu[hidden] { display: none; }
@keyframes landNavIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.land-nav-item { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; color: var(--text); font-size: 14.5px; font-weight: 600; text-decoration: none; cursor: pointer; }
.land-nav-item svg { flex: 0 0 auto; color: var(--accent); }
.land-nav-item:hover, .land-nav-item:focus-visible { background: var(--accent-light); color: var(--accent-dark); }
.land-nav-item[aria-current="true"] { background: var(--accent-light); color: var(--accent-dark); }
.land-nav-sep { height: 1px; margin: 6px 4px; background: var(--border); }
.land-nav-cta { justify-content: center; margin-top: 4px; background: var(--accent); color: #fff; font-weight: 700; }
.land-nav-cta:hover, .land-nav-cta:focus-visible { background: var(--accent-dark); color: #fff; }
@media (max-width: 480px) {
  .land-nav { margin-left: 6px; }
  .land-nav-btn { height: 36px; padding: 0 10px; gap: 6px; }
}
@media (prefers-reduced-motion: reduce) { .land-nav-menu { animation: none; } .land-nav-chev { transition: none; } }