
#fm-three{--paper:light-dark(#fff,#161616);--ink:light-dark(#262328,#f9f5f7);--line:light-dark(#e9e1e5,#423a40);--soft:light-dark(#faf5f7,#251e22);--muted:light-dark(#776872,#c2b3bd);font:15px/1.5 Arial,sans-serif;background:var(--paper);color:var(--ink);border-radius:22px;overflow:hidden}#fm-three *{box-sizing:border-box}#fm-three header{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:20px 24px;border-bottom:1px solid var(--line)}#fm-three .brand{font-size:24px;font-weight:700;letter-spacing:-1px}#fm-three .brand span{color:#d83668}#fm-three small{font-size:12px;color:var(--muted)}#fm-three nav{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;padding:18px 12px}#fm-three button{cursor:pointer;min-height:44px;font:inherit;padding:10px 16px;background:var(--paper);color:var(--ink);border:1px solid var(--line);border-radius:12px}#fm-three button.active,#fm-three .primary{background:#bd2855;color:#fff;border-color:#bd2855}#fm-three nav button{font-size:12px;padding:8px 10px}#fm-three main{padding:10px 28px 28px}#fm-three h1{font-size:30px;letter-spacing:-.8px;text-align:center;margin:8px 0}#fm-three .sub{text-align:center;color:var(--muted);margin:0 0 26px}#fm-three .choices{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:24px 0}#fm-three .swatch{display:block;text-align:left;padding:14px 10px;border-radius:12px;margin-bottom:10px;min-height:130px}#fm-three .swatch b{display:block;font-size:14px}#fm-three .swatch em{display:block;height:10px;width:65%;background:currentColor;opacity:.2;border-radius:4px;margin:12px 0}#fm-three .light{--menu-bg:#fff;--menu-text:#242028;--menu-panel:#f6f1f3;--menu-border:#e8dfe3}#fm-three .dark{--menu-bg:#1c2230;--menu-text:#faf7fb;--menu-panel:#2b3342;--menu-border:#414a5a}#fm-three .black{--menu-bg:#000;--menu-text:#fff;--menu-panel:#141414;--menu-border:#333}#fm-three .swatch,#fm-three .menu{background:var(--menu-bg);color:var(--menu-text)}#fm-three .menu{padding:20px;border:1px solid var(--menu-border);border-radius:24px;max-width:420px;margin:20px auto}#fm-three .menu h2{text-align:center;font-size:24px;margin:12px 0 4px}#fm-three .menu p{text-align:center;opacity:.7;font-size:13px}#fm-three .logo{width:64px;height:64px;border-radius:50%;background:#bd2855;color:#fff;display:grid;place-items:center;margin:auto;font-size:22px;object-fit:cover}#fm-three .menus{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin:22px 0}#fm-three .menus button{background:var(--menu-panel);color:var(--menu-text);border-color:var(--menu-border)}#fm-three .menus button.active{background:#bd2855;color:white}#fm-three .dish{padding:16px 0;border-bottom:1px solid var(--menu-border);display:flex;justify-content:space-between;gap:12px;align-items:center}#fm-three .dish img{width:52px;height:52px;object-fit:cover;border-radius:10px}#fm-three .dish span{flex:1}#fm-three .dish small{color:inherit;opacity:.7}#fm-three .menu .add{width:100%;border:1px dashed var(--menu-border);color:var(--menu-text);background:var(--menu-panel);margin:12px 0}#fm-three .formgrid{display:grid;grid-template-columns:1fr 1fr;gap:4px 18px}#fm-three label{display:block;font-size:13px;margin:12px 0 5px}#fm-three input,#fm-three textarea,#fm-three select{width:100%;font:16px Arial,sans-serif;color:var(--ink);background:var(--paper);border:1px solid var(--line);border-radius:10px;padding:12px;min-width:0}#fm-three input[type=file]{font-size:12px}#fm-three footer{margin-top:24px;padding-top:18px;border-top:1px solid var(--line);display:flex;gap:12px;justify-content:space-between;flex-wrap:wrap}#fm-three .hint{padding:14px;background:var(--soft);border-radius:12px;color:var(--muted);font-size:13px}#fm-three .editor{background:var(--soft);border:1px solid var(--line);padding:18px;border-radius:16px;margin:16px 0}#fm-three .plans{display:grid;grid-template-columns:1fr 1fr;gap:16px}#fm-three .plan{border:1px solid var(--line);border-radius:18px;padding:22px}#fm-three .price{font-size:38px;font-weight:700;margin:12px 0}#fm-three .plan p{color:var(--muted)}#fm-three .editlinks{display:flex;justify-content:center;gap:8px;flex-wrap:wrap}#fm-three .status{text-align:center;color:var(--muted);margin-top:20px}@media(max-width:500px){#fm-three main{padding:8px 16px 20px}#fm-three .formgrid,#fm-three .plans{grid-template-columns:1fr}#fm-three .choices{gap:6px}#fm-three .choices button{padding:8px 6px}#fm-three .swatch{padding:10px 6px;min-height:105px}#fm-three .swatch b{font-size:11px}#fm-three header{padding:16px}#fm-three h1{font-size:26px}}
#fm-three{--button-fill:#bd2855;--button-text:#fff}#fm-three button.active,#fm-three .primary,#fm-three .menus button.active{background:var(--button-fill);color:var(--button-text);border-color:var(--button-fill)}#fm-three .logo{background:var(--button-fill);color:var(--button-text)}#fm-three .color-row{display:flex;gap:12px;align-items:center;flex-wrap:wrap}#fm-three input[type=color]{width:64px;height:48px;padding:4px;cursor:pointer}#fm-three .menu h2,#fm-three .menu b,#fm-three .menu .dish{color:var(--menu-text)}#fm-three .menu p,#fm-three .menu small{color:var(--menu-text);opacity:.85}
#fm-three .device{width:min(100%,350px);margin:28px auto 32px;padding:7px;border:2px solid #98999c;border-radius:48px;background:linear-gradient(125deg,#dedfe2,#55575b 30%,#b9bbc0 65%,#707276);box-shadow:0 15px 35px #00000025;position:relative}#fm-three .device:before{content:'';position:absolute;left:-5px;top:105px;width:3px;height:56px;border-radius:3px;background:#77797d}#fm-three .device:after{content:'';position:absolute;right:-5px;top:150px;width:3px;height:65px;border-radius:3px;background:#77797d}#fm-three .screen{border:4px solid #111;border-radius:39px;background:var(--menu-bg);color:var(--menu-text);overflow:hidden;min-height:560px;display:flex;flex-direction:column}#fm-three .phone-status{padding:17px 22px 5px;display:flex;justify-content:space-between;font-size:12px;color:var(--menu-text)}#fm-three .device .menu{width:100%;border:0;border-radius:0;margin:0;padding:28px 18px 16px;flex:1}#fm-three .phone-address{margin:14px 16px 8px;padding:11px 8px;text-align:center;border-radius:15px;background:var(--menu-panel);color:var(--menu-text);font-size:12px;overflow-wrap:anywhere}#fm-three .home-indicator{height:4px;width:100px;background:var(--menu-text);border-radius:6px;margin:8px auto 10px}#fm-three .device .dish{overflow-wrap:anywhere}#fm-three .device .dish span{min-width:0}
#fm-three nav{display:flex;flex-wrap:nowrap;gap:0;max-width:540px;margin:auto;padding:24px 12px}#fm-three nav .progress-step{flex:1;min-width:0;border:0;padding:0 3px;background:transparent;color:var(--ink);position:relative;display:flex;align-items:center;flex-direction:column;gap:7px;border-radius:0}#fm-three .progress-step:not(:last-child):after{content:'';height:3px;background:var(--line);position:absolute;left:calc(50% + 21px);right:calc(-50% + 21px);top:16px}#fm-three .progress-step.complete:not(:last-child):after{background:var(--button-fill)}#fm-three .step-number{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:var(--soft);border:1px solid var(--line);font-size:14px;font-weight:bold;color:var(--ink)}#fm-three .current .step-number,#fm-three .complete .step-number{background:var(--button-fill);color:var(--button-text);border-color:var(--button-fill)}#fm-three .step-label{font-size:11px}#fm-three .layout-picker{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:18px}#fm-three .dish-layout{display:grid;gap:12px;margin:14px 0}#fm-three .dish-layout.grid{grid-template-columns:repeat(2,minmax(0,1fr))}#fm-three .dish-layout.list{grid-template-columns:1fr}#fm-three .dish-layout .dish{border:1px solid var(--menu-border);background:var(--menu-panel);border-radius:14px;padding:12px;min-width:0;color:var(--menu-text)}#fm-three .dish-layout.grid .dish{flex-direction:column;align-items:stretch;min-height:150px}#fm-three .dish-layout.grid .dish img{width:100%;height:100px;object-fit:cover}#fm-three .dish-layout .dish span{overflow-wrap:anywhere;font-size:13px}#fm-three .dish-layout .dish b{font-size:13px}#fm-three .menu .show-more{display:block;width:100%;background:var(--menu-panel);color:var(--menu-text);border:1px solid var(--menu-border);font-weight:600;opacity:1}#fm-three .menu.light .show-more{color:#242028;background:#f6f1f3}#fm-three .menu.dark .show-more,#fm-three .menu.black .show-more{color:#fff}
#fm-three .logo-field{text-align:center;margin:28px 0}#fm-three .logo-field label{font-size:16px;font-weight:600}#fm-three .logo-upload{display:grid;place-items:center;width:160px;height:160px;padding:15px;border-radius:50%;margin:14px auto;background:var(--paper);border:2px solid var(--line);color:var(--muted)}#fm-three .logo-upload img{width:100%;height:100%;object-fit:contain;border-radius:50%}#fm-three .logo-upload svg{width:44px;height:44px;margin:auto}#fm-three .logo-field small{display:block;margin:10px}#fm-three #auto-url{overflow-wrap:anywhere}#fm-three .crop-editor{padding:24px;max-width:450px;margin:auto;background:var(--paper);color:var(--ink)}#fm-three .crop-editor canvas{width:100%;height:auto;display:block;border:2px solid var(--ink);background:repeating-conic-gradient(var(--paper) 0% 25%,var(--line) 0% 50%) 50% / 20px 20px;touch-action:none;cursor:grab}#fm-three .crop-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin:16px 0}#fm-three .crop-editor p{color:var(--muted)}

body{margin:0;background:#f8f7f9;font-family:Arial,sans-serif}#fm-three{max-width:900px;margin:24px auto;--paper:#fff;--ink:#262328;--line:#e9e1e5;--soft:#faf5f7;--muted:#675860}#fm-three a{color:#9b2046;text-decoration:none}#fm-three main:focus{outline:none}#fm-three .notice{padding:14px;margin:14px 0;border-radius:12px;background:var(--soft);color:var(--ink)}#fm-three .error{color:#a61730}#fm-three input[hidden],#fm-three [hidden]{display:none!important}#fm-three .actions{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}#fm-three .menu .actions button{font-size:12px;background:var(--menu-panel);color:var(--menu-text)}#fm-three .category-heading{margin-top:24px}#fm-three .upload-thumb{width:60px;height:60px;object-fit:cover;border-radius:10px}#fm-three .dish{position:relative}#fm-three .dish .edit-item{font-size:12px;background:var(--menu-bg);color:var(--menu-text);border-color:var(--menu-border);padding:6px;min-height:36px}#fm-three .mini-label{display:block;font-size:12px;color:var(--muted)}#fm-three #fm-status{padding:0 24px 20px}#fm-three .plan button{width:100%}#fm-three .plan{display:flex;flex-direction:column}#fm-three .plan button{margin-top:auto}#fm-three .formgrid label{font-size:14px}#fm-three .dish-layout.grid .dish img{height:130px}#fm-three .dish-layout.list .dish img{width:70px;height:70px}#fm-three .crop-editor{max-width:460px}#fm-three .logo{object-fit:contain;background:var(--menu-panel);color:var(--menu-text)}#fm-three .color-row input[type=text]{max-width:130px}#fm-three .crop-editor canvas{touch-action:none}#fm-three button:disabled{opacity:.6;cursor:wait}#fm-three .plan .price{font-size:30px}#fm-three .screen{min-height:550px}#fm-three .brand{color:var(--ink)}#fm-three .menu .logo{background:var(--menu-panel)}#fm-three .sub{line-height:1.6}#fm-three .plans{grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}#fm-three .device .dish-layout.grid .dish img{height:95px}#fm-three .device .dish-layout.list .dish img{width:50px;height:50px}@media(max-width:600px){#fm-three{margin:0;border-radius:0}#fm-three .formgrid{grid-template-columns:1fr}} 
/* Keep the confirmation phone proportional; the menu scrolls inside it. */
#fm-three .device .screen{height:650px;min-height:0}
#fm-three .device .menu{min-height:0;overflow-y:auto;flex:1}
#fm-three .phone-status,#fm-three .phone-address,#fm-three .home-indicator{flex-shrink:0}
@media(max-width:360px){#fm-three .device .screen{height:570px}}
/* A56 — setup branding is independent from restaurant appearance. */
#fm-three{max-width:1100px}
#fm-three header .brand img{display:block;width:auto;max-width:180px;height:42px;object-fit:contain}
#fm-three header .brand ._dark_logo{display:none}
#fm-three svg{width:22px;height:22px;flex-shrink:0;vertical-align:middle}
#fm-three .layout-picker button{display:inline-flex;align-items:center;gap:8px}
#fm-three .choices button.active{background:var(--paper);color:var(--ink);border:2px solid var(--button-fill);box-shadow:0 0 0 3px color-mix(in srgb,var(--button-fill) 10%,transparent)}
#fm-three .logo-field{margin:18px 0 28px}
#fm-three .builder-options{max-width:520px;margin:0 auto 24px;padding:18px;border:1px solid var(--line);border-radius:18px}
#fm-three .feature-options{display:grid;grid-template-columns:1fr 1fr;gap:12px 18px;margin-bottom:14px}
#fm-three .feature-options label{display:flex;align-items:center;gap:8px;font-size:14px;margin:0;cursor:pointer;position:relative}
#fm-three .feature-options input{position:absolute;width:1px;height:1px;opacity:0;padding:0}
#fm-three .switch{width:32px;height:20px;background:#bbc1c9;border-radius:20px;margin-left:auto;flex-shrink:0;position:relative}
#fm-three .switch:before{content:'';position:absolute;width:14px;height:14px;left:3px;top:3px;background:#fff;border-radius:50%}
#fm-three input:checked+.switch{background:var(--button-fill)}
#fm-three input:checked+.switch:before{left:15px}
#fm-three input:focus-visible+.switch{outline:2px solid var(--ink);outline-offset:3px}
#fm-three .menu{max-width:480px;padding:16px;background:var(--menu-bg);color:var(--menu-text);--button-fill:var(--restaurant-fill);--button-text:var(--restaurant-label)}
#fm-three .menu.light{--menu-bg:#f4f6fa;--menu-text:#273248;--menu-panel:#f7f9fc;--menu-border:#e1e5ec}
#fm-three .restaurant-toolbar{display:flex;align-items:center;justify-content:space-between;gap:6px;min-height:62px}
#fm-three .restaurant-toolbar>div{display:flex;align-items:center;gap:2px}
#fm-three .restaurant-toolbar button,#fm-three .service-shortcuts button{display:grid;place-items:center;padding:5px;width:34px;min-height:40px;border:0;background:transparent;color:var(--menu-text)}
#fm-three .restaurant-toolbar .logo{margin:0;width:58px;height:58px;object-fit:contain;flex-shrink:0;background:transparent;border-radius:50%}
#fm-three .restaurant-toolbar svg{width:23px;height:23px}
#fm-three .service-shortcuts{display:flex;justify-content:flex-end;gap:6px}
#fm-three .restaurant-heading h2{font-size:19px;margin:8px 0 2px}
#fm-three .restaurant-heading p{margin:0 0 12px}
#fm-three .banner-section{display:flex;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;margin:14px 0}
#fm-three .banner-slide{position:relative;flex:0 0 100%;scroll-snap-align:start;overflow:hidden;border-radius:18px}
#fm-three .banner-slide img{display:block;width:100%;aspect-ratio:2/1;object-fit:cover}
#fm-three .banner-add{flex:0 0 100%;height:145px;display:flex;justify-content:center;align-items:center;gap:8px}
#fm-three .banner-thumb{width:100%;max-height:200px;object-fit:contain}
#fm-three .menus{gap:12px;justify-content:center;align-items:stretch;margin:20px 0}
#fm-three .menu-tab{position:relative;min-width:72px;max-width:110px}
#fm-three .menu-tab>button:first-child{width:100%;height:100%;display:flex;align-items:center;flex-direction:column;gap:5px;border-radius:16px;font-size:12px;overflow-wrap:anywhere;padding:13px 12px}
#fm-three .menu .corner-edit{position:absolute;right:-5px;top:-10px;z-index:2;width:30px;height:30px;min-height:30px;padding:5px;border-radius:50%;background:var(--menu-text);color:var(--menu-bg);border:2px solid var(--menu-bg);display:grid;place-items:center}
#fm-three .menu .corner-edit svg{width:16px;height:16px}
#fm-three .banner-slide .corner-edit,#fm-three .dish .corner-edit{right:5px;top:5px}
#fm-three .menu .add-menu{background:var(--menu-panel);color:var(--menu-text);border:1px dashed var(--menu-border);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;font-size:12px}
#fm-three .category-nav{display:flex;align-items:center;gap:9px;overflow:auto;padding:12px 2px;border-top:1px solid var(--menu-border);border-bottom:1px solid var(--menu-border)}
#fm-three .category-nav button{min-height:32px;padding:5px 10px;white-space:nowrap;border-color:var(--menu-border);background:var(--menu-panel);color:var(--menu-text);font-size:12px}
#fm-three .category-nav button:first-of-type{background:var(--restaurant-fill);color:var(--restaurant-label)}
#fm-three .category-heading{position:relative;display:flex;align-items:center;gap:12px;margin-top:24px;padding-right:30px;text-transform:uppercase;font-size:18px}
#fm-three .view-icons{display:flex;gap:7px;opacity:.65}
#fm-three .view-icons svg{width:17px;height:17px}
#fm-three .dish-layout .dish{padding:0;gap:0;box-shadow:0 9px 20px #00000012;position:relative;border:1px solid var(--menu-border);border-radius:15px}
#fm-three .dish-layout.grid .dish{min-height:190px;overflow:hidden}
#fm-three .dish-layout.grid .dish img{width:100%;height:130px;border-radius:14px 14px 0 0}
#fm-three .dish .dish-copy{display:flex;flex-direction:column;gap:4px;padding:10px;align-self:stretch;min-width:0}
#fm-three .dish .dish-copy>span{font-weight:600;text-transform:uppercase;line-height:1.3}
#fm-three .dish .dish-copy small{font-size:11px;line-height:1.3;display:block}
#fm-three .dish .dish-copy b{margin-top:auto;padding-top:12px;font-weight:700;color:var(--menu-text)}
#fm-three .dish-layout.list .dish{min-height:88px;align-items:stretch}
#fm-three .dish-layout.list .dish img{width:86px;height:86px;border-radius:14px 0 0 14px;align-self:center}
#fm-three .dish-layout.list .dish-copy{padding-right:35px}
#fm-three .menu .dish .item-plus{position:absolute;bottom:7px;right:7px;width:28px;height:28px;min-height:28px;padding:4px;border:0;border-radius:50%;background:#72767c;color:#fff}
#fm-three .item-plus svg{width:18px;height:18px}
#fm-three .dish-layout .add-item{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:8px;border:1px dashed var(--menu-border);background:var(--menu-panel);color:var(--menu-text);box-shadow:none;min-height:90px;padding:14px}
#fm-three .menu .preview-checkout{display:flex;justify-content:center;align-items:center;gap:10px;width:100%;background:var(--restaurant-fill);color:var(--restaurant-label);border-color:var(--restaurant-fill);margin-top:20px}
#fm-three .device .menu{padding:10px 12px 16px}
#fm-three .device .restaurant-toolbar .logo{width:46px;height:46px}
#fm-three .device .restaurant-toolbar button{width:29px;padding:3px}
#fm-three .device .restaurant-toolbar svg{width:20px;height:20px}
#fm-three .device .dish-layout.grid .dish img{height:104px}
#fm-three .device .dish-layout.list .dish img{width:67px;height:80px}
#fm-three .device .dish-layout{gap:9px}
#fm-three .phone-status{position:relative;min-height:45px;padding-top:15px}
#fm-three .camera-island{position:absolute;left:50%;top:9px;transform:translateX(-50%);width:90px;height:25px;border-radius:22px;background:#050505;box-shadow:inset 0 0 0 1px #333}
#fm-three .camera-island:after{content:'';position:absolute;right:8px;top:7px;width:10px;height:10px;border-radius:50%;background:#111b2a;border:2px solid #080b10}
@media(max-width:400px){#fm-three .feature-options{gap:12px 8px}#fm-three .feature-options label{font-size:12px}#fm-three .builder-options{padding:12px}#fm-three .feature-options svg{width:18px;height:18px}#fm-three header .brand img{max-width:150px;height:35px}}
/* A57: three-step setup and compact inline controls. */
#fm-three .feature-options{grid-template-columns:1fr;gap:10px}
#fm-three .feature-options label{padding:14px;border:1px solid var(--line);border-radius:12px;background:var(--soft);gap:12px}
#fm-three .feature-options .switch{margin:0;width:40px;height:24px}
#fm-three .feature-options .switch:before{width:18px;height:18px}
#fm-three .feature-options input:checked+.switch:before{left:19px}
#fm-three .toggle-copy{display:flex;flex-direction:column;gap:3px}
#fm-three .toggle-copy small{font-size:12px}
#fm-three .cart-help{font-size:12px;color:var(--muted);margin:12px 0 20px}
#fm-three .appearance-controls{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;flex-wrap:wrap}
#fm-three .appearance-controls .layout-picker{margin:0}
#fm-three .appearance-controls label{margin-top:0}
#fm-three .color-row{gap:8px;font-size:12px}
#fm-three .menu .menus .menu-tab>button:first-child,#fm-three .menu .menus .menu-tab>button.active{background:transparent;color:var(--menu-text);border:2px solid var(--restaurant-fill);box-shadow:none}
#fm-three .menu .category-nav button:first-of-type{background:transparent;color:var(--menu-text);border-color:var(--restaurant-fill)}
#fm-three .banner-editor{flex:0 0 100%;margin:0;background:var(--menu-panel);color:var(--menu-text);min-width:0}
#fm-three .banner-editor input{background:var(--menu-bg);color:var(--menu-text);border-color:var(--menu-border)}
#fm-three .banner-editor .actions button{background:var(--menu-bg);color:var(--menu-text)}
#fm-three .banner-editor .actions .primary{background:var(--restaurant-fill);color:var(--restaurant-label)}
#fm-three .crop-image-wrap{position:relative}
#fm-three .crop-remove{position:absolute;right:8px;top:8px;z-index:1;border-radius:50%;background:#222;color:#fff;width:34px;height:34px;min-height:34px;padding:0;font-size:24px;border:1px solid white}
#fm-three .banner-open{display:block;width:100%;padding:0;border:0;border-radius:18px;background:transparent;overflow:hidden}
/* A58: distinct menu/category styling and visible multi-photo slider controls. */
#fm-three .menu .category-nav button{min-height:46px;padding:10px 20px;font-size:15px;border-radius:18px;background:var(--restaurant-fill);color:var(--restaurant-label);border-color:var(--restaurant-fill)}
#fm-three .menu .category-nav button:first-of-type{background:var(--restaurant-fill);color:var(--restaurant-label);border-color:var(--restaurant-fill)}
#fm-three .banner-section{display:block;overflow:visible;margin:14px 0 22px}
#fm-three .slider-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 10px;font-size:13px;font-weight:600}
#fm-three .slider-heading small{margin-left:5px}
#fm-three .menu .slider-plus{display:grid;place-items:center;width:36px;height:36px;min-height:36px;padding:6px;background:var(--menu-panel);color:var(--menu-text);border-color:var(--menu-border);border-radius:50%}
#fm-three .slider-empty{width:100%;min-height:140px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;border:1px dashed var(--menu-border);background:var(--menu-panel);color:var(--menu-text)}
#fm-three .slider-empty b{font-size:14px}
#fm-three .slider-thumbnails{display:flex;gap:8px;overflow:auto;margin-top:10px;padding:3px}
#fm-three .slider-thumbnails button{width:54px;height:42px;min-height:42px;flex-shrink:0;padding:2px;background:transparent;border:2px solid transparent;border-radius:9px}
#fm-three .slider-thumbnails button.selected{border-color:var(--restaurant-fill)}
#fm-three .slider-thumbnails img{display:block;width:100%;height:100%;object-fit:cover;border-radius:5px}
#fm-three .banner-editor{padding:14px}
#fm-three .photo-drop{display:flex;flex-direction:column;align-items:center;gap:10px;border:1px dashed var(--menu-border);border-radius:12px;padding:16px;cursor:pointer;text-align:center}
#fm-three .photo-drop input{font-size:12px;max-width:100%}
#fm-three .photo-drop #fm-photo-preview{display:block;width:100%}
#fm-three .photo-drop .banner-thumb{display:block;max-height:140px;margin:auto;border-radius:10px}
/* A59: exact color, system icons, horizontal menu strip and bounded builder. */
#fm-three #fm-color-value{width:104px;min-height:44px;font-size:14px;text-transform:uppercase}
#fm-three #fm-color-error{flex-basis:100%;color:#a61730}
#fm-three .menu .menus{display:flex;flex-wrap:nowrap;justify-content:flex-start;gap:8px;overflow-x:scroll;overflow-y:hidden;padding:14px 0 12px;position:relative;scrollbar-width:auto;scrollbar-color:#858b96 var(--menu-panel)}
#fm-three .menu .menus::-webkit-scrollbar{height:8px}
#fm-three .menu .menus::-webkit-scrollbar-thumb{background:#858b96;border-radius:8px}
#fm-three .menu .menus::-webkit-scrollbar-track{background:var(--menu-panel)}
#fm-three .menu .menu-tab{flex:0 0 calc((100% - 24px)/4);min-width:0;max-width:none}
#fm-three .menu .add-menu{flex:0 0 calc((100% - 24px)/4);min-width:0;padding:8px;font-size:11px}
#fm-three .menu .menu-tab>button:first-child{padding:10px 4px;font-size:11px;min-height:76px}
#fm-three .menu .menus .menu-tab>button:first-child{border:2px solid var(--menu-border);background:transparent;color:var(--menu-text)}
#fm-three .menu .menus .menu-tab>button.active{border-color:var(--restaurant-fill);background:transparent;color:var(--menu-text)}
#fm-three .menu .menu-tab .corner-edit{right:1px;top:-10px}
#fm-three .builder-workspace{max-width:520px;max-height:680px;height:72vh;min-height:380px;overflow-y:auto;overflow-x:hidden;overscroll-behavior-y:contain;scrollbar-gutter:stable;margin:0 auto;border:1px solid var(--line);border-radius:20px;background:var(--soft)}
#fm-three .builder-workspace .menu{margin:0;border:0;border-radius:0;max-width:none}
#fm-three .builder-scroll-hint{text-align:center;font-size:12px;color:var(--muted);margin:0 0 10px}
#fm-three .builder-workspace #fm-editor{padding:0 12px}
#fm-three .menu-icon-picker{border:0;padding:0;margin:16px 0}
#fm-three .menu-icon-picker legend{font-size:14px;font-weight:bold;margin-bottom:8px}
#fm-three .icon-options{display:grid;grid-template-columns:repeat(auto-fill,minmax(44px,1fr));gap:6px;max-height:180px;overflow-y:auto;padding:4px}
#fm-three .icon-options button{padding:8px;min-width:0;display:grid;place-items:center;font-size:21px}
#fm-three .menu-tab .fa,#fm-three .catalog-emoji{font-size:23px;line-height:1.2}
/* A60: connected scrolling and directional sticky setup navigation. */
#fm-three{overflow:visible}
#fm-three .builder-workspace{overscroll-behavior-y:auto}
#fm-three .menu .selected-menu-help{font-size:12px;line-height:1.6;text-align:left;color:var(--menu-text);opacity:1;background:var(--menu-panel);border:1px solid var(--menu-border);border-radius:12px;padding:12px;margin:4px 0 16px}
#fm-three .selected-menu-help strong{font-weight:700}
/* A61: center short menu rows; overflowing rows retain all scrollable buttons. */
#fm-three .menu .menus>:first-child{margin-left:auto}
#fm-three .menu .menus>:last-child{margin-right:auto}
/* A62: editors stay inside the visible phone viewport above the keyboard. */
#fm-three input,#fm-three textarea,#fm-three select{scroll-margin-block:24px}
@media(max-width:600px){
 body.fm-mobile-editor{overflow:hidden}
 #fm-three .builder-workspace .editor{position:fixed;z-index:1000;top:var(--keyboard-top,0px);left:0;right:0;height:var(--keyboard-height,100dvh);max-height:var(--keyboard-height,100dvh);margin:0;border:0;border-radius:0;padding:20px 18px max(20px,env(safe-area-inset-bottom));overflow-y:auto;overscroll-behavior:contain;background:var(--paper);color:var(--ink);box-sizing:border-box;-webkit-overflow-scrolling:touch}
 #fm-three .builder-workspace .editor input,#fm-three .builder-workspace .editor textarea{background:var(--paper);color:var(--ink);font-size:16px}
 #fm-three .builder-workspace .editor>.actions{position:sticky;bottom:0;background:var(--paper);padding:12px 0;margin-bottom:0;z-index:2}
 #fm-three .builder-workspace .editor h2{margin:0 0 14px;font-size:22px}
 #fm-three .builder-workspace .editor .icon-options{max-height:130px}
}

/* A64: setup sign-in action, independent of restaurant theme color. */
#fm-three header .setup-sign-in{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 18px;border:1px solid #000;border-radius:9px;background:#000;color:#fff;text-decoration:none;white-space:nowrap}
#fm-three header .setup-sign-in:hover,#fm-three header .setup-sign-in:focus{background:#000;color:#fff}
#fm-three header .setup-sign-in:focus-visible{outline:2px solid #2463a7;outline-offset:3px}
