/* ── 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; }
#currency-selector { flex: 0 1 auto; max-width: 100%; min-width: 0; padding: 7px 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 13px; background: var(--surface); color: var(--text); font-family: var(--font-body); }
.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-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 { display: flex; align-items: center; gap: 10px; padding: 11px 13px; border: 1px solid #EEEFEA; border-radius: var(--radius-sm); background: #FCFCFA; transition: border-color 0.15s ease, background 0.15s ease, opacity 0.15s ease; position: relative; padding-right: 116px; }
.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: #F3EFE9; border-color: #E7E1D6; opacity: 0.6; }
.dish-row.dish-row-unavailable:hover { opacity: 0.85; }
.dish-row .dish-name { font-weight: 700; flex: 1 1 auto; min-height: 20px; display: flex; align-items: center; gap: 6px; word-break: break-word; }
.dish-unavailable-badge { display: inline-flex; align-items: center; gap: 3px; 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-row .dish-price { font-family: var(--font-display); font-weight: 600; color: var(--accent-dark); font-size: 16px; flex-shrink: 0; margin-left: auto; }
.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-actions { display: flex; gap: 4px; position: absolute; top: 8px; right: 8px; z-index: 2; }
.btn-move { background: var(--surface); border: 1px solid var(--border); color: var(--muted); padding: 4px 7px; font-size: 11px; cursor: pointer; border-radius: 5px; transition: all 0.15s ease; min-width: 24px; }
.btn-move:hover { border-color: var(--accent); color: var(--accent); }
.toggle-dish-availability { cursor: pointer; padding: 0 6px; line-height: 1; color: #3FA35A; -webkit-user-select: none; user-select: none; display: inline-flex; align-items: center; justify-content: center; min-width: 26px; min-height: 26px; transition: color 0.15s ease, transform 0.15s ease; }
.toggle-dish-availability:hover { transform: scale(1.08); }
.toggle-dish-availability.is-off { color: #D64545; }
.icon-eye { width: 17px; height: 17px; display: block; }
.icon-trash { width: 14px; height: 14px; display: block; }
.edit-dish { cursor: pointer; color: var(--muted); font-size: 16px; padding: 0 6px; line-height: 1; -webkit-user-select: none; user-select: none; transition: color 0.15s ease; display: inline-flex; align-items: center; justify-content: center; min-width: 22px; min-height: 22px; }
.edit-dish:hover { color: var(--accent); }
.del-dish { cursor: pointer; color: var(--danger); padding: 0 6px; line-height: 1; -webkit-user-select: none; user-select: none; transition: color 0.15s ease, transform 0.15s ease; display: inline-flex; align-items: center; justify-content: center; min-width: 22px; min-height: 22px; }
.del-dish:hover { color: #c62828; transform: scale(1.1); }
.btn-danger svg { display: block; }
.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); }
@media (max-width: 600px) {
  .dish-list .dish-row { padding-right: 75px !important; flex-wrap: wrap !important; gap: 8px 12px !important; }
  .dish-list .dish-row .dish-name { flex: 1 1 100% !important; width: 100% !important; }
  .dish-list .dish-row .dish-price { margin-left: 0 !important; }
  .dish-list .dish-actions { position: static !important; display: flex !important; gap: 8px !important; align-items: center !important; margin-left: 0 !important; z-index: auto !important; }
  .dish-list .dish-row .btn-move { position: absolute !important; top: 11px !important; right: 13px !important; }
  .dish-list .dish-row .btn-move:has(+ .btn-move) { right: 42px !important; }
}
.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; gap: 4px; flex-shrink: 0; }
.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: 0 0 auto; }
  .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-menu-footer { text-align: center; padding: 10px 16px 34px; font-size: 11.5px; color: var(--muted); opacity: 0.75; }
.public-menu-footer a { color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.public-menu-footer a:hover { opacity: 1; }
.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 { flex-wrap: wrap; padding: 9px 11px; gap: 4px 8px; }
  .dish-row .dish-name { flex: 1 1 60%; }
  .dish-row .dish-price { flex: 0 0 auto; font-size: 16px; }
  .dish-row .dish-desc { flex: 1 1 100%; white-space: normal; margin-top: 2px; font-size: 12px; }
  .add-dish-form { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .add-dish-form .edit-badge { grid-column: span 2; }
  .add-dish-form .f:first-of-type { grid-column: span 2; }
  .add-dish-form .f:nth-of-type(2) { 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; color: #fff; font-size: 36px; font-weight: 300; cursor: pointer; line-height: 1; text-shadow: 0 2px 6px rgba(0,0,0,0.6); transition: transform 0.2s; }
.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-close { 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); font: 300 30px/1 sans-serif; }
.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 .btn-move, #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 { width: 100%; max-width: none; 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; 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; }
#menu-screen #menu-content .public-menu-tools-search { position: static; background: transparent; border-bottom: 0; -webkit-backdrop-filter: none; backdrop-filter: none; padding-bottom: 4px; }
.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; }
.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: 3px; min-width: 0; padding: 10px 11px 11px; }
#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: 14px; font-weight: 700; line-height: 1.25; }
#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: 12.5px; line-height: 1.4; }
#menu-screen .public-dish-card .public-dish-price { margin: auto 0 0; padding-top: 6px; font-size: 15px; }
@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; } }