@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@600;700;800&display=swap');

:root {
  --ink: #16211d;
  --muted: #68756f;
  --cream: #f6f7f1;
  --paper: #fffefb;
  --line: #dfe5dd;
  --green: #174c3c;
  --mint: #ccead8;
  --lime: #d9f275;
  --orange: #ee7048;
  --shadow: 0 20px 60px rgba(28, 53, 43, .09);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--cream); font: 15px/1.5 'DM Sans', sans-serif; }
button, input, textarea, select { font: inherit; }
button, select, label[for] { cursor: pointer; }
button { color: inherit; }
button:focus-visible, a:focus-visible, select:focus-visible { outline: 3px solid #69a182; outline-offset: 3px; }
button:disabled { cursor: not-allowed; opacity: .58; transform: none !important; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 242px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 29px 20px 22px; color: #edf6f0; background: var(--green); z-index: 20; }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 10px 30px; color: white; text-decoration: none; font: 800 23px 'Manrope', sans-serif; letter-spacing: -.04em; }
.brand-mark { width: 31px; height: 31px; position: relative; display: block; transform: rotate(-5deg); }
.brand-mark i { position: absolute; display: block; width: 22px; height: 7px; left: 3px; border: 2px solid var(--lime); border-radius: 1px 6px 6px 1px; transform: skewY(-13deg); }
.brand-mark i:nth-child(1) { top: 2px; }.brand-mark i:nth-child(2) { top: 11px; left: 6px; }.brand-mark i:nth-child(3) { top: 20px; left: 9px; }
.sidebar nav { display: grid; gap: 7px; }
.nav-item { width: 100%; display: flex; align-items: center; gap: 12px; border: 0; border-radius: 11px; padding: 11px 13px; color: rgba(255,255,255,.68); background: transparent; text-align: left; text-decoration:none; font-weight: 600; }
.nav-item[aria-disabled="true"] { opacity:.45;cursor:not-allowed; }
.nav-item span { width: 21px; color: var(--mint); text-align: center; }
.nav-item:hover, .nav-item.is-active { color: white; background: rgba(255,255,255,.095); }
.nav-item.is-active { box-shadow: inset 3px 0 var(--lime); }
.sidebar-bottom { margin-top: auto; display: grid; gap: 10px; }
.storage-card { padding: 14px; border: 1px solid rgba(255,255,255,.13); border-radius: 12px; background: rgba(0,0,0,.08); }
.storage-card > div { display: flex; align-items: center; gap: 8px; font-size: 13px; }.storage-card p { margin: 6px 0 0; color: rgba(255,255,255,.58); font-size: 12px; line-height: 1.4; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(217,242,117,.12); }

.workspace { min-width: 0; }
.topbar { height: 84px; display: flex; align-items: center; gap: 15px; padding: 0 clamp(22px, 4vw, 58px); border-bottom: 1px solid var(--line); background: rgba(255,254,251,.8); backdrop-filter: blur(15px); }
.company-picker,.menu-picker { display: grid; gap: 2px; }.company-picker label,.menu-picker label { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; }.company-picker select,.menu-picker select { min-width: 170px; padding: 4px 28px 4px 0; border: 0; outline: 0; color: var(--ink); background: transparent; font-weight: 700; }.menu-picker { padding-left:15px;border-left:1px solid var(--line); }.menu-actions { display:flex;align-items:center;gap:6px; }.menu-actions .button { min-height:36px;padding:8px 11px; }.menu-actions .icon-button { flex:none;color:var(--green);font-weight:900; }.menu-actions .icon-button.danger { color:#a23f32;border-color:#ecd5d1;background:#fff8f5; }.menu-actions .icon-button:disabled { cursor:not-allowed;opacity:.4; }
.account-block { min-width: 0; margin-left: auto; text-align: right; }.account-block > span { display: block; max-width: 260px; overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.save-status-row { display: flex; align-items: center; justify-content: flex-end; gap: 9px; }
.save-state { color: var(--muted); font-size: 12px; }.save-state::before { content: '·'; display: inline-grid; place-items: center; width: 19px; height: 19px; margin-right: 6px; border-radius: 50%; color: #5d6c65; background: #e8ede7; font-size: 13px; font-weight: 700; }
.save-state[data-state="saved"]::before { content: '✓'; color: white; background: #438360; font-size: 11px; }
.save-state[data-state="pending"], .save-state[data-state="loading"] { color: #846515; }.save-state[data-state="pending"]::before, .save-state[data-state="loading"]::before { content: '…'; color: #846515; background: #fff0c9; }
.save-state[data-state="error"] { color: #a23f32; }.save-state[data-state="error"]::before { content: '!'; color: white; background: #a23f32; }
#retrySave { flex-shrink: 0; padding: 3px 7px; border: 1px solid #dfb8b0; border-radius: 5px; color: #973b2f; background: #fff4ef; font-size: 11px; font-weight: 700; }
.mobile-menu { display: none; border: 0; background: none; font-size: 22px; }

.view { display: none; padding: clamp(34px, 5vw, 68px); animation: appear .28s ease; }.view.is-visible { display: block; }
@keyframes appear { from { opacity: 0; transform: translateY(5px); } }
h1, h2, h3, p { margin-top: 0; } h1, h2, h3 { font-family: 'Manrope', sans-serif; }
h1 { margin-bottom: 10px; font-size: clamp(36px, 4vw, 58px); line-height: 1.03; letter-spacing: -.055em; } h2 { letter-spacing: -.035em; }
.eyebrow { display: block; margin-bottom: 11px; color: var(--orange); font-size: 11px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.hero-row, .section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 38px; }.hero-row p, .section-heading p { margin: 0; color: var(--muted); font-size: 17px; }
.section-heading.compact h1 { font-size: clamp(32px, 4vw, 48px); }.heading-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
[data-view-panel="preview"] .section-heading { align-items:flex-start;flex-wrap:wrap; }
[data-view-panel="preview"] .section-heading>div:first-child { flex:1 1 320px;min-width:0; }
[data-view-panel="preview"] .heading-actions { flex:1 1 720px;min-width:0;flex-wrap:wrap;justify-content:flex-end; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 10px; min-height: 43px; padding: 10px 17px; border: 1px solid transparent; border-radius: 9px; text-decoration:none;font-weight: 700; transition: transform .15s, background .15s; }.button:hover { transform: translateY(-1px); }.button.primary { color: white; background: var(--green); }.button.primary:hover { background: #0e3b2d; }.button.secondary { color: var(--green); border-color: #b9cabe; background: #eef5ee; }.button.ghost { border-color: var(--line); background: var(--paper); }.button.wide { width: 100%; }.button[aria-disabled="true"] { opacity:.52;cursor:not-allowed;transform:none; }

.metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 17px; }.metric-card { position: relative; overflow: hidden; padding: 22px 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); box-shadow: 0 8px 30px rgba(20,60,45,.035); }.metric-card::after { content:''; position: absolute; right: -20px; top: -30px; width: 100px; height: 100px; border: 20px solid rgba(23,76,60,.04); border-radius: 50%; }.metric-card > span, .metric-card small { display: block; color: var(--muted); }.metric-card > strong { display: block; margin: 7px 0 2px; font: 800 33px 'Manrope', sans-serif; letter-spacing: -.04em; }.metric-card.accent { border-color: transparent; background: var(--mint); }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(290px, .7fr); gap: 17px; }.panel { border: 1px solid var(--line); border-radius: 15px; background: var(--paper); box-shadow: var(--shadow); }.import-panel, .activity-panel { padding: 26px; }.panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 15px; }.panel-heading > div { display: flex; align-items: center; gap: 11px; }.panel-heading h2 { margin: 0; font-size: 20px; }.step { display: inline-grid; place-items: center; min-width: 29px; height: 29px; border-radius: 7px; color: var(--green); background: var(--mint); font-size: 10px; font-weight: 800; }.badge { padding: 5px 9px; border-radius: 99px; color: var(--green); background: #eaf4e9; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }.panel > p { color: var(--muted); }
.upload-zone { margin-top: 20px; min-height: 180px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1.5px dashed #9db8a8; border-radius: 12px; background: #f6faf4; text-align: center; }.upload-zone:hover, .upload-zone.is-dragging { border-color: var(--green); background: #eff8ee; }.upload-zone input { position: absolute; width: 1px; height: 1px; opacity: 0; }.upload-zone strong { margin-top: 10px; }.upload-zone > span:last-of-type { color: var(--muted); font-size: 13px; }.upload-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: white; background: var(--green); font-size: 20px; }.format-note { margin-top: 12px; padding: 10px 13px; border-radius: 8px; color: #7a6740; background: #fff8e6; font-size: 12px; }
.screenshot-upload{display:flex;width:max-content;margin:12px auto 0}.screenshot-upload input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.activity-list { margin-top: 19px; }.activity { display: grid; grid-template-columns: 34px 1fr; gap: 11px; padding: 13px 0; border-top: 1px solid var(--line); }.activity:first-child { border-top: 0; }.activity-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: var(--green); background: #e9f2e8; font-weight: 800; }.activity p { margin: 0; color: var(--ink); font-size: 13px; }.activity time { color: var(--muted); font-size: 11px; }.empty { padding: 28px 0; color: var(--muted); text-align: center; }

.editor-layout { display: grid; grid-template-columns: 285px minmax(0, 1fr); gap: 18px; align-items: start; }.settings-panel { position: sticky; top: 102px; padding: 23px; }.settings-panel h2 { font-size: 20px; }.settings-panel > label, .modal label { display: grid; gap: 6px; margin: 14px 0; color: var(--muted); font-size: 12px; font-weight: 700; }.settings-panel input, .settings-panel textarea, .modal textarea, .item-edit input, .item-edit textarea, .category-name { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 10px 11px; color: var(--ink); background: white; outline: none; }.settings-panel input:focus, .settings-panel textarea:focus, .modal textarea:focus, .item-edit input:focus, .item-edit textarea:focus, .category-name:focus { border-color: #69a182; box-shadow: 0 0 0 3px rgba(105,161,130,.14); }.settings-panel fieldset { margin: 20px 0 0; padding: 0; border: 0; }.settings-panel legend { margin-bottom: 7px; font-size: 12px; font-weight: 700; }.template-choice { display: grid; grid-template-columns: 17px 38px 1fr; align-items: center; gap: 9px; padding: 9px 4px; }.template-choice small, .template-choice strong { display: block; }.template-choice small { color: var(--muted); font-size: 11px; }.swatch { width: 38px; height: 29px; border-radius: 6px; border: 2px solid white; box-shadow: 0 0 0 1px var(--line); }.swatch.sunset { background: linear-gradient(135deg,#ffede0 50%,#de5a34 50%); }.swatch.forest { background: linear-gradient(135deg,#e5f1e6 50%,#285a43 50%); }.swatch.midnight { background: linear-gradient(135deg,#e7e9f5 50%,#20233a 50%); }
.menu-builder { padding: 24px; }.builder-head { display: flex; justify-content: space-between; gap: 15px; align-items: start; margin-bottom: 20px; }.builder-head h2 { margin-bottom: 2px; }.builder-head p { margin: 0; color: var(--muted); font-size: 12px; }.category-card { margin-top: 13px; border: 1px solid var(--line); border-radius: 11px; overflow: hidden; }.category-head { display: grid; grid-template-columns: minmax(150px, 1fr) auto auto; align-items: center; gap: 9px; padding: 12px; background: #f3f6f0; }.category-name { padding: 7px 9px; font-weight: 800; background: transparent; }.count-pill { padding: 4px 8px; border-radius: 99px; color: var(--muted); background: white; font-size: 11px; }.icon-button { width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 7px; background: white; }.item-edit { display: grid; grid-template-columns: 1.1fr 1.6fr 90px 34px; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); }.item-edit input, .item-edit textarea { padding: 8px 9px; font-size: 13px; resize: vertical; }.item-edit .delete { color: #a23f32; border-color: #ecd5d1; }.add-item { width: calc(100% - 24px); margin: 10px 12px 12px; min-height: 35px; border: 1px dashed #a9bbae; border-radius: 7px; color: var(--green); background: #f8faf6; font-weight: 700; }

.preview-stage { padding: 18px; border-radius: 18px; background: #dfe5dd; overflow: auto; }.preview-frame { width: 100%; margin: auto; border: 8px solid #202b27; border-radius: 18px; background: white; overflow: hidden; box-shadow: 0 25px 60px rgba(21,36,30,.2); transition: width .3s; }.preview-frame.is-mobile { width: min(390px, 100%); }.preview-frame menu-flip, .preview-frame vari-menu { min-height: 680px; }.device-switcher { display: flex; gap: 10px; }.device-switcher button.is-active { color: white; border-color: var(--green); background: var(--green); }
.publish-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }.publish-card, .embed-card { padding: 28px; }.publish-card h2, .embed-card h2 { margin: 13px 0 7px; }.embed-card pre { max-height: 230px; overflow: auto; padding: 16px; border-radius: 9px; color: #dceee5; background: #132c24; font: 12px/1.6 ui-monospace, monospace; white-space: pre-wrap; }.fine-print { margin: 12px 0 0; font-size: 11px; }.publish-result { margin-top: 13px; padding: 11px; border-radius: 8px; color: #24523f; background: #e8f5ea; font-size: 13px; }
.live-menu-button { margin-top:10px; }

.modal { width: min(590px, calc(100% - 28px)); padding: 0; border: 0; border-radius: 16px; box-shadow: 0 30px 100px rgba(0,0,0,.25); }.modal::backdrop { background: rgba(10,25,19,.55); backdrop-filter: blur(3px); }.modal form { position: relative; padding: 30px; }.modal h2 { margin-bottom: 8px; font-size: 28px; }.modal p { color: var(--muted); }.modal textarea { min-height: 155px; font-family: ui-monospace, monospace; font-size: 12px; }.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }.modal-close { position: absolute; right: 17px; top: 15px; border: 0; background: transparent; font-size: 26px; }.cost-callout { padding: 12px 14px; border: 1px solid #efdca6; border-radius: 8px; color: #755b22; background: #fff8e5; font-size: 12px; }.form-error { min-height: 20px; margin: 10px 0 0; color: #a23f32 !important; font-size: 12px; }
.auth-modal { width: min(450px, calc(100% - 28px)); color: var(--ink); background: var(--paper); }.auth-modal form { padding: 36px; }.auth-modal .eyebrow { padding-right: 20px; }.auth-modal h2 { font-size: 27px; }.auth-modal p { font-size: 14px; }
.auth-modal input { width: 100%; min-height: 46px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: white; outline: none; font-size: 15px; font-weight: 400; }.auth-modal input:focus { border-color: #69a182; box-shadow: 0 0 0 3px rgba(105,161,130,.14); }.auth-modal input::placeholder { color: #85928b; }.auth-modal .button.wide { margin-top: 9px; }
.auth-links { display: grid; justify-items: center; gap: 10px; margin-top: 20px; }.auth-links button { border: 0; padding: 2px; color: var(--green); background: transparent; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }.auth-modal .form-error { margin-top: 16px; font-size: 13px; }
.toast { position: fixed; left: 50%; bottom: 25px; z-index: 100; transform: translate(-50%, 20px); padding: 10px 16px; border-radius: 8px; color: white; background: #142d24; box-shadow: 0 12px 40px rgba(0,0,0,.22); opacity: 0; pointer-events: none; transition: .2s; }.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.export-control { display:flex;align-items:center;gap:7px;min-height:43px;padding:5px 10px;border:1px solid var(--line);border-radius:9px;background:var(--paper); }.export-control span { color:var(--muted);font-size:11px; }.export-control select { border:0;outline:0;color:var(--ink);background:transparent;font-weight:800; }
.template-control { display:grid;gap:2px;min-height:43px;padding:4px 10px;border:1px solid var(--line);border-radius:9px;background:var(--paper); }.template-control span { color:var(--muted);font-size:9px;font-weight:700;letter-spacing:.08em;text-transform:uppercase; }.template-control select { min-width:118px;border:0;outline:0;color:var(--ink);background:transparent;font-size:12px;font-weight:800; }
/* The UpdatedMenu design is now fixed; Studio keeps only the requested phone/computer preview switch. */
.scheme-control,#openBackground{display:none}
.scheme-control select { min-width:105px; }
.background-modal { width:min(660px,calc(100% - 28px));color:var(--ink);background:var(--paper); }
.background-modal form { position:relative;padding:30px; }
.background-modal form>p { color:var(--muted); }
.background-drop { min-height:170px;display:grid!important;place-content:center;justify-items:center;gap:7px;margin:22px 0!important;padding:24px;border:2px dashed #a7baad;border-radius:13px;color:var(--muted);background:#f4f8f2;text-align:center;cursor:pointer;transition:.18s ease; }
.background-drop:hover,.background-drop.is-dragging { border-color:var(--green);background:#e8f2e8;transform:translateY(-2px); }
.background-drop.is-processing { pointer-events:none;opacity:.68; }
.background-drop input { position:absolute;width:1px;height:1px;opacity:0;pointer-events:none; }
.background-drop strong { color:var(--ink);font-size:15px; }
.background-drop>span:not(.background-drop-icon) { font-size:11px;font-weight:500; }
.background-drop-icon { width:42px;height:42px;display:grid;place-items:center;border-radius:12px;color:white;background:var(--green);font-size:20px; }
.background-divider { display:flex;align-items:center;gap:12px;color:var(--muted);font-size:10px;font-weight:800;letter-spacing:.12em;text-transform:uppercase; }
.background-divider::before,.background-divider::after { height:1px;flex:1;content:'';background:var(--line); }
.background-color-row { display:flex;align-items:end;gap:15px;margin:18px 0; }
.background-color-row label { flex:1;margin:0!important; }
.background-color-row input[type=color] { width:100%;height:43px;padding:4px;border:1px solid var(--line);border-radius:8px;background:white;cursor:pointer; }
.background-current { display:flex;align-items:center;gap:12px;padding:13px;border:1px solid var(--line);border-radius:10px;background:#fafbf8; }
.background-swatch { width:58px;height:45px;flex:none;border:1px solid rgba(0,0,0,.12);border-radius:7px;background-position:center!important;background-size:cover!important; }
.background-current strong,.background-current small { display:block; }
.background-current small { margin-top:2px;color:var(--muted); }
.button.danger { color:#8c2f1e;border-color:#dfb9ad;background:#fff2ed; }
.toast-export-modal { width:min(690px,calc(100% - 28px));color:var(--ink);background:var(--paper); }.toast-mappings { max-height:42vh;overflow:auto;margin:20px 0;padding-right:5px; }.toast-mappings label { grid-template-columns:minmax(150px,.8fr) minmax(220px,1.2fr);align-items:center;gap:16px;padding:12px 0;border-top:1px solid var(--line);margin:0; }.toast-mappings label>span { display:block; }.toast-mappings strong,.toast-mappings small { display:block; }.toast-mappings small { margin-top:2px;color:var(--muted);font-weight:500; }.toast-mappings input { width:100%;padding:10px 11px;border:1px solid var(--line);border-radius:8px;outline:0; }.toast-mappings input:focus { border-color:#69a182;box-shadow:0 0 0 3px rgba(105,161,130,.14); }.toast-export-note { padding:11px 13px;border:1px solid #efdca6;border-radius:8px;color:#755b22;background:#fff8e5;font-size:12px; }
.ocr-modal { width:min(920px,calc(100% - 28px)); }.ocr-dialog-content { position:relative;padding:30px; }.ocr-workspace { display:grid;grid-template-columns:minmax(260px,.8fr) minmax(320px,1.2fr);gap:20px;margin-top:22px; }.ocr-image-wrap { position:relative;min-height:360px;display:grid;place-items:center;padding:12px;border-radius:11px;background:#e8ece7;overflow:hidden; }.ocr-image-wrap img { max-width:100%;max-height:480px;object-fit:contain;box-shadow:0 10px 30px rgba(20,42,34,.14); }.ocr-image-wrap span { position:absolute;left:12px;bottom:12px;padding:5px 9px;border-radius:99px;color:white;background:rgba(16,44,35,.78);font-size:11px; }
.ocr-results { min-width:0; }.ocr-progress-row { display:flex;justify-content:space-between;gap:15px;margin-bottom:7px;color:var(--muted);font-size:12px; }.ocr-progress-row strong { color:var(--green); }.ocr-results progress { width:100%;height:8px;margin-bottom:19px;accent-color:var(--green); }.ocr-results label { display:block;margin-bottom:6px;color:var(--muted);font-size:12px;font-weight:700; }.ocr-results textarea { min-height:310px;resize:vertical;line-height:1.55; }.ocr-results textarea:disabled { color:#718078;background:#f2f4f0; }.ocr-help { margin-top:15px;padding:11px 13px;border:1px solid #dce4da;border-radius:8px;color:#64736c;background:#f5f8f3;font-size:12px; }.ocr-help code { color:#284f40;background:#e5ede3; }.ocr-modal .form-error { text-align:right; }

@media (max-width: 960px) {
  .app-shell { grid-template-columns: 1fr; }.sidebar { position: fixed; left: 0; transform: translateX(-100%); width: 242px; transition: transform .2s; }.sidebar.is-open { transform: none; }.mobile-menu { display: block; }.topbar { height:auto;min-height:84px;flex-wrap:wrap;padding-top:12px;padding-bottom:12px; }.account-block { margin-left:auto; }.view { padding: 34px 24px; }.dashboard-grid, .editor-layout { grid-template-columns: 1fr; }.settings-panel { position: static; }.metric-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 680px) {
  .topbar { height: auto; min-height: 76px; padding: 13px 17px; flex-wrap: wrap; }.account-block { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; margin: 0; text-align: left; }.account-block > span { flex: 1; min-width: 0; }.save-status-row { flex-wrap: wrap; gap: 4px; }.save-state { margin: 0; }.company-picker,.menu-picker { flex: 1; }.company-picker select,.menu-picker select { min-width: 0; max-width: 170px; }.menu-picker { padding-left:0;border-left:0; }.menu-actions { width:100%; }.menu-actions #newMenu { flex:1; }.view { padding: 29px 16px; }.hero-row, .section-heading { align-items: flex-start; flex-direction: column; margin-bottom: 28px; }.heading-actions { width: 100%; flex-wrap: wrap; }.metric-grid, .publish-grid { grid-template-columns: 1fr; }.dashboard-grid { grid-template-columns: 1fr; }.item-edit { grid-template-columns: 1fr 80px 34px; }.item-edit textarea { grid-column: 1 / -1; grid-row: 2; }.category-head { grid-template-columns: 1fr auto; }.count-pill { display: none; }.auth-modal form { padding: 32px 23px 23px; }
}
@media (max-width: 760px) { .ocr-workspace { grid-template-columns:1fr; }.ocr-image-wrap { min-height:220px; }.ocr-dialog-content { padding:24px 18px; }.export-control { order:4; } }
@media (max-width: 560px) { [data-view-panel="preview"] .heading-actions { justify-content:flex-start; }.template-control,.scheme-control,.export-control { flex:1 1 145px;min-width:0; }.template-control select,.scheme-control select,.export-control select { min-width:0;width:100%; }.device-switcher { flex:1 1 auto; }.device-switcher button { flex:1; }.heading-actions>.button { flex:1 1 auto; } }
@media (max-width: 680px) { .toast-mappings label { grid-template-columns:1fr;gap:7px; } }
@media (max-width: 560px) { .background-modal form { padding:26px 18px 20px; }.background-color-row { align-items:stretch;flex-direction:column; }.background-color-row .button { width:100%; }.background-drop { min-height:150px; } }

/* Phone workspace: larger touch targets, compact chrome, and a full-width menu canvas. */
@media (max-width: 680px) {
  .topbar { position:sticky;top:0;z-index:15;gap:10px;padding:10px 12px;background:rgba(255,254,251,.96); }
  .mobile-menu,.menu-actions .icon-button { min-width:44px;min-height:44px; }
  .company-picker,.menu-picker { min-width:0;flex:1 1 calc(50% - 30px); }
  .company-picker select,.menu-picker select { width:100%;max-width:none;font-size:14px; }
  .menu-actions { overflow-x:auto;overscroll-behavior-x:contain;padding-bottom:2px;scrollbar-width:none; }
  .menu-actions::-webkit-scrollbar { display:none; }
  .menu-actions .button { min-height:44px;white-space:nowrap; }
  .account-block { padding-top:8px;border-top:1px solid var(--line); }
  .view { padding:22px 10px 34px; }
  .section-heading.compact { gap:18px;margin-bottom:18px; }
  .section-heading.compact h1 { font-size:34px; }
  [data-view-panel="preview"] .heading-actions { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px; }
  [data-view-panel="preview"] .device-switcher { grid-column:1/-1;min-height:44px; }
  [data-view-panel="preview"] .heading-actions>.button,[data-view-panel="preview"] .export-control { width:100%;min-width:0; }
  .preview-stage { margin-inline:-10px;padding:0;border-radius:0;background:transparent;overflow-x:auto; }
  .preview-frame,.preview-frame.is-mobile { width:100%;border:0;border-radius:0;box-shadow:none; }
  .upload-zone { min-height:150px;padding:22px 14px; }
  .panel,.publish-card,.embed-card { border-radius:12px; }
  .import-panel,.activity-panel,.publish-card,.embed-card { padding:20px 17px; }
  .modal { max-height:calc(100dvh - 20px);overflow:auto; }
  .modal-actions { flex-wrap:wrap; }
  .modal-actions .button { min-height:44px;flex:1; }
  .toast { width:calc(100% - 24px);bottom:12px;text-align:center; }
}
