/* Merchant-only warm palette; hotel controls and shared admin themes stay unchanged. */
body[data-merchant]{
 --paper:#f3f1eb;--paper-deep:#eae6dc;--panel:#fffdf7;--panel-tint:#fffdf7;
 --navy:#f0eee7;--navy-soft:#eceee7;--surface-subtle:#fffdf7;--surface-raised:#e5eadf;--field-background:#fffdf7;
 --ink:#27312b;--ink-soft:#475046;--muted:#62685f;
 --blue:#476653;--blue-deep:#395643;--blue-pale:#dfe7dc;
 --button-background:#476653;--button-foreground:#fff;--button-hover-background:#395643;
 --hover-background:#e1e7dc;--focus:#476653;--line:#dadcd1;--line-strong:#b9c3b3;
}
/* Shared account behavior is retained; merchant layout follows the M3 reference. */
.registration-trap{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}
#status.registration-success{color:var(--green)}
.merchant-recovery{margin-top:24px;font-size:14px;line-height:1.7}
.merchant-recovery summary{cursor:pointer;color:var(--ink-soft)}
.merchant-recovery p{color:var(--muted)}
body[data-merchant] .platform-body{min-width:0}
body[data-merchant] .merchant-surface{max-width:1440px;padding:0 0 32px;margin-inline:auto}
body[data-merchant] .merchant-form-width{max-width:1440px}
body[data-merchant] .merchant-heading{margin-bottom:8px;padding:56px;background:var(--panel);border-radius:24px;min-height:285px;box-sizing:border-box}
body[data-merchant] .merchant-heading h2{margin:0 0 12px;font-size:clamp(48px,6.875vw,88px);line-height:1.1;font-weight:400;letter-spacing:-.03em}
body[data-merchant] .merchant-heading p{margin:24px 0 0;color:var(--ink-soft);font-size:22px;line-height:1.5;max-width:65ch}
body[data-merchant] h3{font-size:18px;font-weight:600;line-height:1.5;margin:0 0 8px}
body[data-merchant] h4{font-size:18px;line-height:1.5;margin:0 0 6px}
body[data-merchant] .merchant-start,body[data-merchant] .merchant-service{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:24px;border:0;border-radius:24px}
body[data-merchant] .merchant-start{background:var(--surface-raised)}
body[data-merchant] .merchant-service{background:var(--paper-deep);margin-top:32px}
body[data-merchant] .merchant-start p,body[data-merchant] .merchant-service p{margin:0;color:var(--muted);line-height:1.7}
body[data-merchant] .button-link{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:12px 24px;box-sizing:border-box;border:0;background:var(--blue-pale);border-radius:999px;text-decoration:none;color:var(--ink);font-size:14px;white-space:nowrap}
body[data-merchant] .merchant-primary{background:var(--button-background);color:var(--button-foreground);border-color:transparent}
body[data-merchant] .button-link:hover{background:var(--hover-background)}
body[data-merchant] .merchant-primary:hover{background:var(--button-hover-background)}
body[data-merchant] .merchant-progress{margin:36px 0 0}
body[data-merchant] .merchant-progress>h3{margin-bottom:16px}
body[data-merchant] .merchant-shop-row{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:20px 24px;margin-bottom:12px;background:var(--surface-subtle);border:0;border-radius:24px}
body[data-merchant] .merchant-shop-row>div{min-width:0;overflow-wrap:anywhere}
body[data-merchant] .merchant-shop-status{color:var(--ink-soft);margin:0;font-size:14px}
body[data-merchant] .merchant-note{display:block;color:var(--muted);font-size:12px;line-height:1.7;margin:12px 0 0;max-width:65ch}
body[data-merchant] .merchant-empty{padding:24px;margin:0;background:var(--surface-subtle);border-radius:24px;color:var(--muted);line-height:1.7}
body[data-merchant] .merchant-actions{display:flex;align-items:center;gap:24px;margin-top:28px}
body[data-merchant] form{display:block;min-width:0}
body[data-merchant] label{display:block;margin:20px 0;font-size:14px;font-weight:500}
body[data-merchant] label input,body[data-merchant] label textarea,body[data-merchant] label select{display:block;margin-top:8px;width:100%;box-sizing:border-box;max-width:100%;min-width:0}
body[data-merchant] input[type=file]{padding:12px;border:1px solid var(--line-strong);border-radius:24px;font-weight:400}
body[data-merchant] input[type=file]::file-selector-button{border:1px solid var(--line-strong);border-radius:24px;background:var(--surface-subtle);color:var(--ink);padding:8px 12px;margin-right:12px;cursor:pointer}
body[data-merchant] button:disabled{cursor:wait;opacity:.6}
body[data-merchant] .merchant-success{color:var(--green);line-height:1.7;margin:0 0 24px}
body[data-merchant] #apply-status,body[data-merchant] #custom-status,body[data-merchant] #form-message{line-height:1.7;overflow-wrap:anywhere}
body[data-merchant] .merchant-history-heading{margin-top:40px}
body[data-merchant] .merchant-request-row{padding:20px 24px;margin-bottom:12px;background:var(--surface-subtle);border:0;border-radius:24px;overflow-wrap:anywhere}
body[data-merchant] .merchant-request-row p{color:var(--muted);line-height:1.7}
body[data-merchant] #main{padding:0;max-width:900px;min-width:0}
body[data-merchant] .builder-layout{display:block}
body[data-merchant] .form-sheet{max-width:640px}
body[data-merchant] .field-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 24px}
body[data-merchant] .field.full{grid-column:1/-1}
body[data-merchant] .form-section{display:block;margin-bottom:32px}
body[data-merchant] .section-heading{display:block;margin:24px 0 16px}
body[data-merchant] .section-heading p,body[data-merchant] .helper,body[data-merchant] .required-note{color:var(--muted);line-height:1.7;font-size:12px}
body[data-merchant] .form-section svg{width:24px;height:24px;fill:none;stroke:currentColor}
body[data-merchant] .steps{display:none}
body[data-merchant] .merchant-extra,body[data-merchant] .merchant-preview{border:0;border-radius:24px;background:var(--surface-subtle);padding:20px;margin:20px 0}
body[data-merchant] summary{cursor:pointer;font-weight:500}
body[data-merchant] .merchant-preview{max-width:640px}
body[data-merchant] .site-preview img{width:100%;max-height:240px;object-fit:cover}
body[data-merchant] .preview-heading{display:flex;justify-content:space-between;margin:20px 0}
body[data-merchant] .browser-bar,body[data-merchant] .preview-sections{display:none}
body[data-merchant] .site-preview-copy{padding:20px 0}
body[data-merchant] .upload-title,body[data-merchant] .file-name{display:block}
body[data-merchant] .upload-icon{display:none}
body[data-merchant] .upload-field small,body[data-merchant] .proof-copy small{display:block;color:var(--muted);margin-top:6px}
body[data-merchant] .style-options,body[data-merchant] .form-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:16px}
body[data-merchant] .form-actions{align-items:center}
body[data-merchant] .form-actions button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:40px}
body[data-merchant] .form-actions svg{width:18px;height:18px;flex:0 0 18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
body[data-merchant] .form-actions .secondary-button{background:transparent;color:var(--ink);border-color:var(--line-strong)}
body[data-merchant] .form-actions .secondary-button:hover:not(:disabled){background:var(--hover-background)}
body[data-merchant] .account-row{margin:24px 0;font-size:12px;color:var(--muted)}
body[data-merchant] .account-row strong{display:block;margin-top:6px;overflow-wrap:anywhere}
body[data-merchant] .topbar .workspace-title{display:none!important}
body[data-merchant] .button-link:focus-visible,body[data-merchant] summary:focus-visible{outline:2px solid var(--focus);outline-offset:4px}
@media(max-width:700px){body[data-merchant] .merchant-heading h2{font-size:21px}body[data-merchant] .merchant-start,body[data-merchant] .merchant-service,body[data-merchant] .merchant-shop-row{align-items:flex-start;flex-direction:column;gap:16px}body[data-merchant] .field-grid{grid-template-columns:1fr}body[data-merchant] .merchant-actions{flex-wrap:wrap}body[data-merchant] .form-actions button{width:100%}}

/* Keep the merchant account menu focused on account settings and sign-out. */
body[data-merchant] #account-popover>a,
body[data-merchant] #account-popover .account-popover-theme,
body[data-merchant] #account-popover .account-popover-context,
body[data-merchant] #account-popover .account-popover-quota,
body[data-merchant] .release-dot,
body[data-merchant] .release-notice,
body[data-merchant] #login-theme-picker{display:none!important}

/* M3 site proportions: 88px rail, 8px surface gutter, 24px large corners. */
body[data-merchant] #content{padding:8px 8px 32px 96px}
body[data-merchant] .workflow{gap:0}
body[data-merchant] .workflow>.step{padding:0;background:none;border:0;border-radius:0}
body[data-merchant] .topbar{left:auto;right:24px;top:24px;width:auto;height:48px;background:transparent}
body[data-merchant] .topbar::before,body[data-merchant] .topbar::after{display:none}
body[data-merchant] .topbar-inner{padding:0;justify-content:flex-end}
body[data-merchant] .workflow-nav{width:88px;padding:16px 8px;background:var(--paper-deep);box-sizing:border-box}
body[data-merchant] .hotel-switcher{padding:0;margin:0 0 24px}
body[data-merchant] .workspace-brand{padding:12px 0;text-align:center}
body[data-merchant] .workspace-brand strong{font-size:10px;letter-spacing:.02em;color:var(--ink)}
body[data-merchant] .workspace-brand span,body[data-merchant] .nav-group-label,body[data-merchant] .rail-console-note,body[data-merchant] .rail-account-details{display:none}
body[data-merchant] .workflow-nav nav{gap:8px}
body[data-merchant] .workflow-nav .nav-group{gap:8px}
body[data-merchant] .workflow-nav nav a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-height:76px;padding:8px 0;border:0;border-radius:24px;font-size:12px;text-align:center;background:transparent;color:var(--ink-soft)}
body[data-merchant] .workflow-nav nav a span{white-space:normal;line-height:1.4}
body[data-merchant] .workflow-nav nav a svg{width:24px;height:24px;flex:none;box-sizing:content-box;padding:4px 16px;border-radius:999px}
body[data-merchant] .workflow-nav nav a.active svg{background:var(--blue-pale);color:var(--blue-deep)}
body[data-merchant] .workflow-nav nav a:hover{background:var(--hover-background)}
body[data-merchant] .rail-footer{padding:8px 0;border:0}
body[data-merchant] .rail-account{justify-content:center;width:100%;margin:0;padding:12px 0;border-radius:24px}
body[data-merchant] #account-popover{border:0;border-radius:24px}
body[data-merchant] #home .merchant-surface{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(280px,1fr);gap:8px}
body[data-merchant] #home .merchant-heading,body[data-merchant] .merchant-start,body[data-merchant] #home>.platform-body .merchant-note{grid-column:1/-1}
body[data-merchant] #home .merchant-heading{margin:0}
body[data-merchant] .merchant-start{padding:40px 56px;min-height:168px;box-sizing:border-box}
body[data-merchant] .merchant-start h3{font-size:32px;font-weight:400;margin-bottom:12px}
body[data-merchant] .merchant-start p{max-width:50ch;font-size:16px}
body[data-merchant] .merchant-progress{margin:0;padding:32px 0 0}
body[data-merchant] .merchant-progress>h3{font-size:24px;font-weight:400;padding-inline:32px;margin-bottom:16px}
body[data-merchant] .merchant-shop-row,body[data-merchant] .merchant-empty{padding:32px;margin-bottom:8px;min-height:144px;box-sizing:border-box}
body[data-merchant] .merchant-service{margin:0;padding:32px;flex-direction:column;align-items:flex-start;justify-content:space-between;gap:24px;min-height:224px}
body[data-merchant] .merchant-service h3{font-size:24px;font-weight:400}
body[data-merchant] #home .merchant-surface>.merchant-note{padding:8px 32px;margin:0}
body[data-merchant] .merchant-form-width>form{max-width:720px;margin:8px auto 32px;background:var(--panel);padding:40px;border-radius:24px;box-sizing:border-box}
body[data-merchant] .merchant-form-width>.merchant-history-heading,body[data-merchant] .merchant-form-width>#custom-history{max-width:720px;margin-inline:auto}
body[data-merchant] input,body[data-merchant] textarea,body[data-merchant] select{border-radius:12px;min-height:48px;background:var(--field-background)}
body[data-merchant] button:not(.rail-account):not(.account-theme-option):not(.style-option){border-radius:999px}
body[data-merchant] .form-actions button{min-height:48px;padding:12px 24px}
body[data-merchant] .form-sheet{max-width:800px;padding:40px;background:var(--panel);border-radius:24px;box-sizing:border-box}
body[data-merchant] #main{max-width:1440px;padding:32px;box-sizing:border-box}
body[data-merchant] .merchant-extra,body[data-merchant] .merchant-preview{background:var(--paper-deep)}
body[data-merchant] ::selection{background:var(--blue-pale);color:var(--ink)}
@media(max-width:900px){
 body[data-merchant] #home .merchant-surface{grid-template-columns:1fr}
 body[data-merchant] .merchant-heading{padding:48px 32px;min-height:240px}
 body[data-merchant] .merchant-heading p{font-size:20px}
 body[data-merchant] .merchant-start{padding:32px}
 body[data-merchant] .merchant-service{min-height:180px}
}
@media(max-width:700px){
 body[data-merchant] #content{padding:72px 8px 24px}
 body[data-merchant] .topbar{left:0;right:0;top:0;height:64px;width:auto;background:var(--paper)}
 body[data-merchant] .topbar-inner{padding:0 16px;justify-content:space-between}
 body[data-merchant] .workflow-nav{top:64px;width:88px;height:calc(100dvh - 64px);box-shadow:none;background:var(--paper-deep)}
 body[data-merchant] .merchant-heading{padding:32px 24px;min-height:220px}
 body[data-merchant] .merchant-heading h2{font-size:40px;line-height:1.2}
 body[data-merchant] .merchant-heading p{font-size:18px;margin-top:20px}
 body[data-merchant] .merchant-start{padding:32px 24px;min-height:220px}
 body[data-merchant] .merchant-start h3{font-size:28px}
 body[data-merchant] .merchant-shop-row,body[data-merchant] .merchant-empty,body[data-merchant] .merchant-service{padding:24px}
 body[data-merchant] .merchant-progress>h3{padding-inline:24px}
 body[data-merchant] .merchant-form-width>form,body[data-merchant] .form-sheet{padding:24px;max-width:100%}
 body[data-merchant] #main{padding:24px 8px}
 body[data-merchant] .merchant-form-width>.merchant-history-heading,body[data-merchant] .merchant-form-width>#custom-history{padding-inline:24px}
}

body[data-merchant]>.skip{position:absolute;left:96px;top:8px;z-index:30;padding:12px 20px;background:var(--panel);border-radius:999px;clip-path:inset(50%);width:1px;height:1px;overflow:hidden}
body[data-merchant]>.skip:focus{clip-path:none;width:auto;height:auto}
body[data-merchant].workspace-ready .workflow-nav nav a.active{background:transparent!important}
body[data-merchant] .workspace-brand{justify-content:center}
body[data-merchant] .merchant-heading{padding-right:100px}
@media(max-width:700px){body[data-merchant] .merchant-heading{padding-right:24px}}

body[data-merchant] .workflow-nav{overflow:visible}
body[data-merchant] .workflow-nav nav{overflow-y:auto;min-height:0}
body[data-merchant] #account-popover{position:fixed;left:96px!important;right:auto;bottom:24px;top:auto!important;width:280px!important;max-width:calc(100vw - 112px);box-sizing:border-box}
@media(max-width:700px){body[data-merchant] #account-popover{left:96px!important;bottom:16px;width:260px!important;max-width:calc(100vw - 112px)}}

body[data-merchant] #home .merchant-management{grid-template-columns:1fr}
body[data-merchant] .merchant-management .merchant-progress{padding:24px 0 0}
body[data-merchant] .merchant-restaurant-actions{display:flex;flex-wrap:wrap;gap:8px;flex-shrink:0}
@media(max-width:700px){
 body[data-merchant] #content{padding-bottom:calc(104px + env(safe-area-inset-bottom))}
 body[data-merchant] .mobile-menu{display:none!important}
 body[data-merchant] .workflow-nav,body[data-merchant].nav-open .workflow-nav{display:flex;flex-direction:row;align-items:center;inset:auto 0 0;width:100%;height:calc(80px + env(safe-area-inset-bottom));padding:4px 16px calc(4px + env(safe-area-inset-bottom));gap:8px;background:var(--paper-deep);z-index:20}
 body[data-merchant] .hotel-switcher{display:none}
 body[data-merchant] .workflow-nav nav{flex:1;overflow:visible}
 body[data-merchant] .workflow-nav nav a{min-height:64px;padding:4px 0;gap:4px}
 body[data-merchant] .workflow-nav nav a[href="#apply"]{display:none}
 body[data-merchant] .rail-footer{flex:1;margin:0;padding:0;display:block}
 body[data-merchant] .rail-account{display:flex;flex-direction:column;gap:4px;padding:4px 0;min-height:64px}
 body[data-merchant] .rail-account::after{content:'账号';font-size:12px;line-height:17px;color:var(--ink-soft)}
 body[data-merchant] .rail-avatar-wrap,body[data-merchant] .rail-avatar{width:32px;height:32px;flex-basis:32px}
 body[data-merchant] #account-popover{left:16px!important;bottom:calc(88px + env(safe-area-inset-bottom));width:calc(100vw - 32px)!important;max-width:none}
 body[data-merchant] .topbar-inner{justify-content:flex-end}
 body[data-merchant] .merchant-restaurant-actions{width:100%}
}

body[data-merchant] .merchant-back{display:none;align-items:center;gap:4px;min-height:48px;margin-right:auto;padding:0 12px;color:var(--ink);background:var(--paper-deep);border-radius:24px;text-decoration:none;font-size:14px;white-space:nowrap}
body[data-merchant] .merchant-back svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
body[data-merchant][data-view="home"] .merchant-back{display:none}

body[data-merchant] .merchant-account-page{max-width:720px;margin:0 auto;background:var(--panel);border-radius:24px;padding:24px}
body[data-merchant] .merchant-account-page>h2{font-size:28px;margin:0 0 24px}
body[data-merchant] .merchant-account-page>h3{margin:32px 0 16px;font-size:20px}
body[data-merchant] .merchant-account-page .account-profile-layout{display:flex;flex-direction:column;gap:24px}
body[data-merchant] .merchant-account-page .account-profile-form,body[data-merchant] .merchant-account-page #password{width:100%;min-width:0;display:grid;gap:20px}
body[data-merchant] .merchant-account-page .account-profile-facts{display:none}
body[data-merchant] .merchant-account-page .account-security{padding:0;border:0;margin:0}
body[data-merchant] .merchant-account-page .account-avatar-control{align-items:flex-start}
body[data-merchant] .merchant-account-page .account-avatar-frame{width:80px;height:80px;border-radius:50%;overflow:hidden}
body[data-merchant] .merchant-account-page .account-avatar-image{width:100%;height:100%;object-fit:cover}
body[data-merchant] .merchant-account-page .merchant-account-logout{margin-top:32px;width:100%;min-height:48px}
@media(max-width:700px){body[data-merchant] #account-popover{display:none!important}body[data-merchant][data-view="merchant-account"] .rail-account{background:var(--blue-pale)}}

/* Login fields must not inherit the workspace's section-sized label margins. */
body[data-merchant] .login-shell{width:min(440px,calc(100% - 32px));max-width:440px;min-height:0;box-sizing:border-box;padding:32px;margin:32px auto;border:0;border-radius:24px;box-shadow:none}
body[data-merchant] #login-view{display:grid;grid-template-columns:1fr auto;column-gap:16px;row-gap:16px}
body[data-merchant] .login-brand{grid-column:1/-1;display:flex;flex-direction:column;align-items:flex-start;gap:8px;margin:0 0 16px}
body[data-merchant] .login-brand h1{font-size:32px;line-height:1.15;letter-spacing:-.03em}
body[data-merchant] .login-brand span{font-size:15px;line-height:1.5;font-weight:400}
body[data-merchant] .login-shell #login{grid-column:1/-1;gap:20px}
body[data-merchant] .login-shell .login-field{gap:8px}
body[data-merchant] .login-shell .login-field>label{margin:0;font-size:14px;line-height:20px}
body[data-merchant] .login-shell .login-field input{height:48px;min-height:48px;box-sizing:border-box;font-size:16px}
body[data-merchant] .login-shell #login>.login-submit{min-height:48px;margin-top:4px;font-size:16px}
/* 保持登录: one row; negative margins keep the 44px tap target without doubling the 20px field gap. */
body[data-merchant] .login-shell #login>.login-remember{display:flex;align-items:center;gap:10px;justify-self:start;min-height:44px;margin:-12px 0;font-size:14px;line-height:20px;font-weight:500;color:var(--ink-soft)}
body[data-merchant] .login-shell #login>.login-remember input[type=checkbox]{flex:none;width:18px;height:18px;min-height:0;margin:0;padding:0;border-radius:4px}
body[data-merchant] #login-view>p{margin:0;font-size:14px;line-height:20px}
body[data-merchant] #login-view>p>a{display:inline-flex;align-items:center;min-height:44px;text-decoration:none;color:var(--blue-deep)}
body[data-merchant] #login-view>.merchant-recovery{margin:0;font-size:14px;line-height:1.6}
body[data-merchant] .login-shell .merchant-recovery summary{display:flex;align-items:center;min-height:44px;list-style:none;font-weight:400;color:var(--ink-soft)}
body[data-merchant] .login-shell .merchant-recovery summary::-webkit-details-marker{display:none}
body[data-merchant] .login-shell .merchant-recovery[open]{grid-column:1/-1;background:var(--paper);border-radius:16px;padding:0 16px 12px}
body[data-merchant] .login-shell .merchant-recovery p{margin:8px 0;font-size:13px}
body[data-merchant] .login-shell #status:empty{display:none}
@media(max-width:480px){body[data-merchant] .login-shell{padding:28px 24px;margin:24px auto}body[data-merchant] .login-brand h1{font-size:30px}}

/* The restaurant list is the homepage's main task, so keep its introduction compact. */
body[data-merchant] #home .merchant-heading{min-height:0;padding:32px 100px 32px 32px}
body[data-merchant] #home .merchant-heading h2{font-size:36px;line-height:1.25;letter-spacing:-.02em;margin:0}
body[data-merchant] #home .merchant-heading p{font-size:16px;line-height:1.6;margin:12px 0 0}
@media(max-width:700px){
 body[data-merchant] #home .merchant-heading{padding:24px}
 body[data-merchant] #home .merchant-heading h2{font-size:28px}
 body[data-merchant] #home .merchant-heading p{font-size:14px;margin-top:8px}
}

body[data-merchant] .merchant-account-options{display:grid;gap:12px}
body[data-merchant] .merchant-account-options a{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px;background:var(--paper);border-radius:16px;text-decoration:none;color:var(--ink);min-height:72px;box-sizing:border-box}
body[data-merchant] .merchant-account-options strong{display:block;font-size:16px;font-weight:500}
body[data-merchant] .merchant-account-options small{display:block;font-size:13px;line-height:1.5;margin-top:4px;color:var(--muted)}
body[data-merchant] .merchant-account-options svg{width:20px;height:20px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
body[data-merchant] .merchant-account-options a:focus-visible{outline:2px solid var(--focus);outline-offset:3px}
@media(max-width:700px){body[data-merchant][data-view^="merchant-account"] .rail-account{background:var(--blue-pale)}}

@media(max-width:700px){
 body[data-merchant] [id^="merchant-account-"] .merchant-account-page{width:100%;max-width:480px;box-sizing:border-box;padding:24px;min-height:0}
 body[data-merchant] [id^="merchant-account-"] .merchant-account-page>h2{font-size:24px;line-height:1.3;margin:0 0 24px}
 body[data-merchant] [id^="merchant-account-"] .account-profile-layout{gap:20px}
 body[data-merchant] [id^="merchant-account-"] .account-avatar-frame{width:64px;height:64px}
 body[data-merchant] [id^="merchant-account-"] .account-avatar-control{display:flex;flex-wrap:wrap;flex-direction:row;align-items:center;gap:12px}
 body[data-merchant] [id^="merchant-account-"] .account-avatar-control>small{flex-basis:100%;font-size:12px;line-height:1.5}
 body[data-merchant] [id^="merchant-account-"] .account-avatar-actions{display:flex;flex-wrap:wrap;gap:8px}
 body[data-merchant] [id^="merchant-account-"] .account-avatar-picker{margin:0;min-height:44px;display:inline-flex;align-items:center;padding:0 16px;border-radius:22px;background:var(--paper)}
 body[data-merchant] [id^="merchant-account-"] .account-profile-form,
 body[data-merchant] [id^="merchant-account-"] #password{gap:20px}
 body[data-merchant] [id^="merchant-account-"] form label{margin:0;font-size:14px;line-height:20px}
 body[data-merchant] [id^="merchant-account-"] form input{height:48px;min-height:48px;margin-top:8px;padding:12px 14px;font-size:16px;box-sizing:border-box}
 body[data-merchant] [id^="merchant-account-"] form small{display:block;margin-top:6px;font-size:12px;line-height:1.5}
 body[data-merchant] [id^="merchant-account-"] form button{width:100%;min-height:48px;padding:12px 20px;font-size:15px}
 body[data-merchant] [id^="merchant-account-"] .account-profile-actions{display:block;margin:0}
 body[data-merchant] [id^="merchant-account-"] .account-profile-result:empty,
 body[data-merchant] [id^="merchant-account-"] .platform-result:empty{display:none}
}
@media(max-width:700px){
 body[data-merchant] [id^="merchant-account-"] .account-avatar-control{display:grid;grid-template-columns:64px minmax(0,1fr);align-items:center}
 body[data-merchant] [id^="merchant-account-"] .account-avatar-frame{display:flex;align-items:center;justify-content:center;background:var(--blue-pale);font-size:28px;color:var(--ink);flex-shrink:0}
 body[data-merchant] [id^="merchant-account-"] .account-avatar-control>small{grid-column:1/-1}
 body[data-merchant] [id^="merchant-account-"] .account-avatar-picker{position:relative;overflow:hidden;font-size:14px;box-sizing:border-box}
 body[data-merchant] [id^="merchant-account-"] .account-avatar-picker input[type="file"]{position:absolute;inset:0;width:100%;height:100%;opacity:0;margin:0;padding:0;cursor:pointer}
 body[data-merchant] [id^="merchant-account-"] .account-avatar-picker:focus-within{outline:2px solid var(--focus);outline-offset:3px}
 body[data-merchant] [id^="merchant-account-"] .account-avatar-remove{min-height:44px;padding:0 12px;font-size:13px}
}

/* One compact heading scale across the merchant workspace. */
body[data-merchant] .merchant-heading,
body[data-merchant] #home .merchant-heading{min-height:0;padding:24px 100px 24px 24px}
body[data-merchant] .workflow h2,
body[data-merchant] .merchant-heading h2,
body[data-merchant] #home .merchant-heading h2,
body[data-merchant] .merchant-account-page>h2{font-size:28px;line-height:1.3;letter-spacing:-.02em;font-weight:500}
body[data-merchant] .merchant-heading h2,
body[data-merchant] #home .merchant-heading h2{margin:0}
body[data-merchant] .merchant-heading p,
body[data-merchant] #home .merchant-heading p{font-size:16px;line-height:1.6;margin:10px 0 0}
body[data-merchant] .merchant-start{min-height:0;padding:24px}
body[data-merchant] .merchant-start h3{font-size:22px;line-height:1.4;margin-bottom:8px}
@media(max-width:700px){
 body[data-merchant] .merchant-heading,
 body[data-merchant] #home .merchant-heading{padding:20px 24px;min-height:0}
 body[data-merchant] .workflow h2,
 body[data-merchant] .merchant-heading h2,
 body[data-merchant] #home .merchant-heading h2,
 body[data-merchant] .merchant-account-page>h2,
 body[data-merchant] [id^="merchant-account-"] .merchant-account-page>h2{font-size:22px;line-height:1.35}
 body[data-merchant] .merchant-heading p,
 body[data-merchant] #home .merchant-heading p{font-size:14px;line-height:1.6;margin-top:8px}
 body[data-merchant] .merchant-start{padding:20px 24px;min-height:0}
 body[data-merchant] .merchant-start h3{font-size:20px}
}

@media(max-width:700px){body[data-merchant] .merchant-back{display:inline-flex}}

/* Application and editing share the same full-width form. */
body[data-merchant] .merchant-surface{max-width:none;width:100%;box-sizing:border-box}
body[data-merchant] #main{width:100%;max-width:none;padding:0;margin:0}
body[data-merchant] .form-sheet,body[data-merchant] .merchant-form-width>form{width:100%;max-width:none;padding:32px;margin:8px 0 32px;box-sizing:border-box}
body[data-merchant] .form-sheet .section-heading{margin-top:0}
body[data-merchant] .field-grid{gap:24px}
body[data-merchant] .field-grid>.field{margin:0}
body[data-merchant] .form-sheet .required-note{margin:0 0 24px}
body[data-merchant] .merchant-form-width>.merchant-history-heading,body[data-merchant] .merchant-form-width>#custom-history{max-width:none}
@media(max-width:700px){
 body[data-merchant] .form-sheet,body[data-merchant] .merchant-form-width>form{padding:24px}
 body[data-merchant] .workflow-nav nav{flex:2}
 body[data-merchant] .workflow-nav .nav-group{display:flex;flex-direction:row;gap:8px}
 body[data-merchant] .workflow-nav .nav-group>a{flex:1;min-width:0}
 body[data-merchant] .workflow-nav nav a[href="/merchant/workspace#apply"]{display:none}
}

body[data-merchant] #store-form button[type="submit"][hidden]{display:none!important}

/* Three stages share one draft; the actual website stays visible alongside. */
body[data-merchant] .builder-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px;align-items:start}
body[data-merchant] .builder-layout .form-sheet{margin:0;padding:28px;min-width:0}
body[data-merchant] .form-section[hidden]{display:none!important}
body[data-merchant] .builder-progress{display:flex;gap:8px;margin-bottom:28px;flex-wrap:wrap}
body[data-merchant] .builder-progress button{flex:1;min-width:110px;background:var(--paper-deep);color:var(--muted);padding:10px 12px;height:auto;min-height:44px;border:0;white-space:normal;font-size:13px}
body[data-merchant] .builder-progress button.selected{background:var(--blue-pale);color:var(--blue-deep)}
body[data-merchant] .form-section{margin-bottom:24px}
body[data-merchant] .preview-column{min-width:0;position:sticky;top:16px;background:var(--panel);border-radius:24px;padding:20px;box-sizing:border-box}
body[data-merchant] .preview-heading{margin:0 0 16px;font-size:14px;gap:12px}
body[data-merchant] #live-preview{display:block;width:100%;height:calc(100dvh - 260px);min-height:440px;border:0;border-radius:16px;background:var(--paper)}
body[data-merchant] .form-actions button[hidden]{display:none!important}
body[data-merchant] #store-form:not([data-current-step="2"]) button[type=submit]{display:none!important}
body[data-merchant] .builder-layout .field-grid{grid-template-columns:1fr;gap:20px}
body[data-merchant] .form-actions{gap:10px}.merchant-restaurant-actions{display:flex;gap:8px;flex-wrap:wrap}
body[data-merchant] .delete-restaurant{color:#963c31;background:transparent}
body[data-merchant] .merchant-delete-dialog{width:min(460px,calc(100vw - 32px));border:0;border-radius:24px;padding:28px;background:var(--panel);color:var(--ink)}
body[data-merchant] .merchant-delete-dialog::backdrop{background:rgba(32,43,35,.3);backdrop-filter:blur(8px)}
body[data-merchant] .merchant-delete-dialog h2{font-size:22px;margin:0 0 12px}
body[data-merchant] .merchant-delete-dialog p{font-size:14px;line-height:1.7}
body[data-merchant] .merchant-delete-dialog .actions{display:flex;gap:12px;margin-top:24px}
@media(max-width:1000px){body[data-merchant] .builder-layout{grid-template-columns:1fr}body[data-merchant] .preview-column{position:static}body[data-merchant] #live-preview{height:620px}}
@media(max-width:700px){body[data-merchant] .builder-layout{gap:16px}body[data-merchant] .builder-layout .form-sheet{padding:20px}body[data-merchant] .builder-progress{gap:6px}body[data-merchant] .builder-progress button{min-width:0;font-size:12px;padding:8px}body[data-merchant] .form-actions button{width:auto;flex:1 1 130px}body[data-merchant] #live-preview{height:540px;min-height:0}}

@media(min-width:1001px){body[data-merchant] #preview-button{display:none}}

/* Keep fields, explanations and workflow actions at distinct levels. */
body[data-merchant] #store-form{scroll-margin-top:72px}
body[data-merchant] #store-form .section-heading{margin:0 0 24px}
body[data-merchant] #store-form .section-heading h2{font-size:20px;line-height:1.4;font-weight:600;letter-spacing:0;margin:0}
body[data-merchant] #store-form .section-heading p{font-size:13px;line-height:1.6;margin:8px 0 0}
body[data-merchant] #store-form .field{font-size:14px;line-height:1.5}
body[data-merchant] #store-form .field-title,body[data-merchant] #store-form .upload-field strong,body[data-merchant] #store-form .proof-copy strong{font-size:14px;font-weight:600}
body[data-merchant] #store-form .helper{display:block;margin-top:10px;font-size:12px;line-height:1.6}
body[data-merchant] #store-form .upload-grid{display:grid;gap:12px}
body[data-merchant] #store-form .upload-field,body[data-merchant] #store-form .proof-upload{margin:0;padding:16px;background:var(--paper);border-radius:16px;min-width:0}
body[data-merchant] #store-form .upload-field small,body[data-merchant] #store-form .proof-copy small{font-size:12px;line-height:1.6;margin-top:4px;font-weight:400}
/* Our own "选择文件" button replaces the native control, so the browser's "no file chosen" text and hover tooltip never show; the count line below reports the state. */
body[data-merchant] #store-form .upload-field,body[data-merchant] #store-form .proof-upload{position:relative}
body[data-merchant] #store-form input[type=file]{position:absolute;width:1px;height:1px;margin:0;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
body[data-merchant] #store-form .upload-button{display:inline-flex;align-items:center;justify-content:center;width:max-content;min-height:44px;margin-top:12px;padding:10px 18px;box-sizing:border-box;border:1px solid var(--line-strong);border-radius:999px;background:transparent;color:var(--ink);font-size:13px;line-height:1;cursor:pointer}
body[data-merchant] #store-form .upload-button:hover{background:var(--hover-background)}
body[data-merchant] #store-form label:has(input[type=file]:focus-visible) .upload-button{outline:2px solid var(--focus);outline-offset:3px}
body[data-merchant] #store-form .file-name{font-size:12px;font-weight:400;line-height:1.6;color:var(--muted);overflow-wrap:anywhere;margin-top:6px}
body[data-merchant] #store-form #uploaded-files:empty{display:none}
body[data-merchant] #store-form #uploaded-files{display:grid;gap:8px;margin-top:16px}
body[data-merchant] #store-form #uploaded-files>div{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:13px}
body[data-merchant] #store-form #uploaded-files button{min-height:44px;border:0;background:var(--paper);color:var(--ink);--button-foreground:var(--ink);--button-hover-background:var(--hover-background)}
body[data-merchant] #store-form .upload-grid~.field{margin-top:28px}
body[data-merchant] #store-form .style-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:10px}
body[data-merchant] #store-form .style-option{display:flex;align-items:center;justify-content:center;gap:8px;min-width:0;min-height:48px;padding:10px 12px;border:0;border-radius:12px;background:var(--paper);color:var(--ink);font-size:14px;font-weight:500;box-shadow:none;--button-foreground:var(--ink);--button-hover-background:var(--hover-background)}
body[data-merchant] #store-form .style-option[aria-pressed=true]{background:var(--blue-pale);color:var(--blue-deep);font-weight:600;--button-foreground:var(--blue-deep)}
body[data-merchant] #store-form .swatch{display:block;width:16px;height:16px;border-radius:50%;flex-shrink:0}
body[data-merchant] #store-form .swatch.classic{background:#182f3a}
body[data-merchant] #store-form .swatch.cream{background:#eee5d8}
body[data-merchant] #store-form .swatch.warm{background:#552923}
body[data-merchant] #store-form .swatch.dessert{background:#f1d58a}
body[data-merchant] #store-form .swatch.green{background:#243f2e}
body[data-merchant] #store-form .swatch.night{background:#343b45}
body[data-merchant] #store-form .custom-color-options{margin-top:16px;padding:16px;border-radius:16px;background:var(--paper)}
body[data-merchant] #store-form .custom-color-options>label{font-size:13px;font-weight:600}
body[data-merchant] #store-form .custom-color-controls{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin-top:10px}
body[data-merchant] #store-form #site-color{flex:0 0 64px;width:64px;min-width:64px;max-width:64px;height:44px;min-height:44px;padding:4px;border:0;border-radius:10px;background:var(--panel);cursor:pointer}
body[data-merchant] #store-form .custom-color-controls output{font-size:13px;font-variant-numeric:tabular-nums}
body[data-merchant] #store-form #pick-site-color{display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:10px 16px;background:var(--panel);color:var(--ink)}
body[data-merchant] #store-form #pick-site-color svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
body[data-merchant] #store-form #site-color-status{margin:8px 0 0;font-size:12px;color:var(--muted)}
body[data-merchant] #store-form #site-color-status:empty{display:none}
body[data-merchant] #store-form .proof-current{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:16px;padding:0 4px}
body[data-merchant] #store-form .proof-current>span{min-width:0}
body[data-merchant] #store-form .proof-current small{font-size:12px;color:var(--muted)}
body[data-merchant] #store-form .proof-current .file-name{margin-top:4px;font-size:13px;color:var(--ink)}
body[data-merchant] #store-form .proof-view{flex-shrink:0;border:0;min-height:44px;font-size:13px;padding:10px 16px;background:var(--paper);color:var(--ink)}
body[data-merchant] #store-form .proof-view[hidden]{display:none}
body[data-merchant] #store-form .form-actions{margin-top:32px;gap:8px}
body[data-merchant] #store-form .form-actions button{flex:0 1 auto;width:auto;min-height:44px;font-size:14px;line-height:1.5;padding:10px 16px;border:0}
body[data-merchant] #store-form .form-actions .secondary-button,body[data-merchant] #store-form #editor-back{background:var(--paper);color:var(--ink);--button-foreground:var(--ink);--button-hover-background:var(--hover-background)}
body[data-merchant] #store-form .save-preview-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;width:320px;max-width:100%}
body[data-merchant] #store-form .save-preview-actions button{display:inline-flex;width:100%;min-width:0;min-height:48px;padding:10px 12px}
body[data-merchant] #store-form #editor-next,body[data-merchant] #store-form button[type=submit]{margin-inline-start:auto}
body[data-merchant] #store-form .account-row{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap;margin:16px 0 0;font-size:12px;line-height:1.6}
body[data-merchant] #store-form .account-row strong{display:inline;margin:0;font-weight:400}
body[data-merchant] #store-form #form-message{margin:8px 0 0;font-size:12px;line-height:1.6;color:var(--muted)}
@media(max-width:700px){
 body[data-merchant] #store-form .section-heading h2{font-size:18px}
 body[data-merchant] #store-form .section-heading{margin-bottom:20px}
 body[data-merchant] #store-form .form-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));margin-top:24px}
 body[data-merchant] #store-form .form-actions button{width:100%;min-height:48px}
 body[data-merchant] #store-form .save-preview-actions{grid-column:1/-1;width:100%}
 body[data-merchant] #store-form #editor-next,body[data-merchant] #store-form button[type=submit]{grid-column:1/-1;margin-inline-start:0}
}

/* Media stays inside its upload container, with native horizontal scrolling. */
body[data-merchant] #store-form .media-upload{min-width:0;overflow:hidden;padding:16px;background:var(--paper);border-radius:16px}
body[data-merchant] #store-form .media-upload .upload-field{padding:0;background:none;border-radius:0}
body[data-merchant] #store-form .media-gallery{display:flex;gap:12px;position:relative;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity;scrollbar-width:thin;scrollbar-color:var(--line-strong) transparent;padding:4px 0 8px;margin-top:16px;min-width:0;min-height:116px}
body[data-merchant] #store-form .media-gallery:focus-visible{outline:2px solid var(--focus);outline-offset:2px;border-radius:12px}
body[data-merchant] #store-form .media-gallery.is-empty{align-items:center;justify-content:center;background:var(--panel);border-radius:12px;padding:20px;box-sizing:border-box}
body[data-merchant] #store-form .media-empty{font-size:12px;line-height:1.6;color:var(--muted);text-align:center;margin:0;max-width:32ch}
body[data-merchant] #store-form .media-item{flex:0 0 164px;min-width:0;scroll-snap-align:start;cursor:grab}
body[data-merchant] #store-form .media-thumbnail{position:relative;display:flex;align-items:center;justify-content:center;width:100%;height:124px;min-height:0;padding:0;border:0;border-radius:12px;overflow:hidden;background:var(--panel);color:var(--ink);--button-foreground:var(--ink);--button-hover-background:var(--panel)}
body[data-merchant] #store-form .media-thumbnail img{display:block;width:100%;height:100%;object-fit:cover}
body[data-merchant] #store-form .media-thumbnail [hidden]{display:none}
body[data-merchant] #store-form .media-fallback{font-size:13px;font-weight:400}
body[data-merchant] #store-form .media-caption{display:block;margin:8px 0 4px;font-size:12px;color:var(--ink-soft)}
body[data-merchant] #store-form .media-help{margin:8px 0 0;color:var(--muted);font-size:12px;line-height:1.6}

body[data-merchant] #store-form .media-item{position:relative}
body[data-merchant] #store-form .media-remove{position:absolute;z-index:1;top:4px;right:4px;display:flex;align-items:center;justify-content:center;width:44px;height:44px;min-height:44px;padding:12px;border:0;border-radius:50%;background:#fffdf7;color:#27312b;--hover-background:#e1e7dc}
body[data-merchant] #store-form .media-remove svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
body[data-merchant] #store-form .media-remove:focus-visible{outline:2px solid var(--focus);outline-offset:2px}
body[data-merchant] #store-form .media-thumbnail{-webkit-touch-callout:none;user-select:none;-webkit-user-select:none}
body[data-merchant] #store-form .media-gallery.is-sorting{scroll-snap-type:none}
body[data-merchant] .media-drag-ghost{position:fixed;z-index:10000;pointer-events:none;padding:0;overflow:hidden;border:0;border-radius:12px;box-shadow:0 8px 20px rgba(39,49,43,.22);opacity:1!important;background:var(--panel);color:var(--ink)}
body[data-merchant] .media-drag-ghost img{display:block;width:100%;height:100%;object-fit:cover}
body[data-merchant] .media-drag-ghost [hidden]{display:none}

body[data-merchant] #store-form .is-sort-source{visibility:hidden}
body[data-merchant] #store-form .media-thumbnail:focus-visible{outline:2px solid var(--focus);outline-offset:2px;box-shadow:none}

body[data-merchant] #store-form .store-tags{margin-top:4px}
body[data-merchant] #store-form .store-tags .field-title{display:block}
body[data-merchant] #store-form .store-tags small{font-size:12px;font-weight:400;color:var(--muted)}
body[data-merchant] #store-form .store-tags .helper{margin:6px 0 12px}
body[data-merchant] #store-form .tag-options{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:12px}
body[data-merchant] #store-form .tag-options:empty{display:none}
body[data-merchant] #store-form .tag-chip{display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:8px 14px;border:0;background:var(--paper);color:var(--ink);font-size:13px;font-weight:400}
body[data-merchant] #store-form .tag-chip[aria-pressed=true],body[data-merchant] #store-form .tag-chip.tag-selected{background:var(--blue-pale);color:var(--blue-deep);font-weight:600}
body[data-merchant] #store-form .tag-chip svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
body[data-merchant] #store-form .tag-entry{display:flex;gap:8px;align-items:center}
body[data-merchant] #store-form .tag-entry input{flex:1;min-width:0;margin:0;font-size:14px}
body[data-merchant] #store-form #store-tag-add{flex-shrink:0;min-height:48px;border:0;padding:10px 16px;font-size:14px;background:var(--paper);color:var(--ink)}
body[data-merchant] #store-form .tag-status{margin:8px 0 0;font-size:12px;line-height:1.6;color:var(--muted)}
body[data-merchant] #store-form #store-tag-input:focus{outline:2px solid var(--focus);outline-offset:2px;border-color:var(--line-strong);box-shadow:none}

body[data-merchant] #registration-verification{min-width:0;margin:4px 0 8px}body[data-merchant] .verification-label{display:block;margin-bottom:8px;font-size:14px;font-weight:600;color:var(--ink-soft)}body[data-merchant] #verification-widget{min-width:0}body[data-merchant] #verification-status{margin:8px 0 0;font-size:12px;line-height:1.6;color:var(--muted)}body[data-merchant] #verification-retry{min-height:44px;margin-top:4px;padding:8px 14px;border:0}body[data-merchant] #verification-retry[hidden]{display:none}body[data-merchant] #verification-support{margin:8px 0 0;font-size:12px;line-height:1.6;color:var(--ink-soft)}body[data-merchant] #verification-support[hidden]{display:none}body[data-merchant] #verification-support a{overflow-wrap:anywhere}

@media(min-width:701px){
 body[data-merchant] .topbar-actions{min-width:var(--language-action-width)}
 body[data-merchant] .console-language-switch{position:fixed;top:24px;right:24px;z-index:20}
 body[data-merchant] .preview-column{top:88px}
}

body[data-merchant] #store-form .submit-feedback{display:inline-grid;position:relative;place-items:center;flex:0 1 auto;max-width:100%;overflow:visible}
body[data-merchant] #store-form .submit-feedback[hidden]{display:none!important}
body[data-merchant] #store-form .submit-feedback button.submit-confirmed{position:relative;width:48px;height:48px;min-width:48px;min-height:48px;padding:0;border-radius:50%;background:var(--button-background);color:var(--button-foreground);opacity:1;cursor:default;overflow:visible}
body[data-merchant] #store-form .submit-label{display:inline-flex;align-items:center;gap:8px;white-space:nowrap;opacity:0}
body[data-merchant] #store-form .submit-check{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:24px;height:24px;stroke-width:2.2;fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
body[data-merchant] #store-form .submit-particle{position:absolute;left:calc(50% - 2px);top:calc(50% - 2px);width:4px;height:4px;border-radius:50%;background:var(--blue);pointer-events:none;opacity:0}
body[data-merchant] #store-form .submit-particle:nth-child(even){background:var(--blue-deep)}

#upload-results li { overflow-wrap: anywhere; margin-block: .5rem; }

#save-status { font-weight: 600; font-size: .95rem; overflow-wrap: anywhere; }

.editor-confirm { max-width: min(42rem, 90vw); max-height: 85vh; overflow: auto; padding: 1.5rem; border: 1px solid var(--line, currentColor); border-radius: 12px; background: var(--panel, var(--surface, #fffdf7)); color: var(--ink, #24352c); }
.editor-confirm p { white-space: pre-wrap; overflow-wrap: anywhere; }
.editor-confirm section { padding-block: .75rem; border-bottom: 1px solid currentColor; }
.editor-confirm .form-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

body[data-merchant] .merchant-shop-row{flex-wrap:wrap}
body[data-merchant] .merchant-shop-row>div:first-child{flex:1 1 260px}
body[data-merchant] .merchant-restaurant-actions{flex-shrink:1;max-width:100%}
body[data-merchant] .merchant-public-url a{overflow-wrap:anywhere;user-select:text}
@media(max-width:700px){body[data-merchant] .merchant-shop-row>div:first-child{flex:initial;width:100%}}
body[data-merchant] #store-form .media-upload.is-empty{padding:12px 16px}
body[data-merchant] #store-form .media-upload.is-empty .media-gallery{min-height:0;margin-top:4px;padding:0;background:none;justify-content:flex-start}
body[data-merchant] #store-form .media-upload.is-empty .media-gallery:not(:has(.media-empty)),body[data-merchant] #store-form .media-upload.is-empty .media-help{display:none}
body[data-merchant] #store-form .media-upload.is-empty .media-empty{text-align:left;max-width:none}
body[data-merchant] #store-form .media-optional{background:var(--paper);border-radius:16px;padding:12px 16px}
body[data-merchant] #store-form .media-optional>summary{cursor:pointer;font-size:14px;font-weight:600}
body[data-merchant] #store-form .media-optional[open]>summary{margin-bottom:12px}
body[data-merchant] #store-form .media-optional .media-upload{padding:0;background:none}

/* The optional-fields section reads as a control: a full-width summary target and room before the first field when open. */
body[data-merchant] .merchant-extra>summary{display:flex;align-items:center;min-height:40px;cursor:pointer;font-weight:600}
body[data-merchant] .merchant-extra[open]>summary{margin-bottom:16px}
body[data-merchant] .merchant-extra>summary::-webkit-details-marker{display:none}
body[data-merchant] .merchant-extra>summary{list-style:none}
body[data-merchant] .merchant-extra>summary::after{content:"";width:8px;height:8px;margin-left:auto;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg);transition:transform 180ms ease}
body[data-merchant] .merchant-extra[open]>summary::after{transform:rotate(-135deg)}
/* Shop photos and dish photos are two separate uploads: each gets its own surface inside the optional section. */
body[data-merchant] #store-form .upload-grid > .media-upload{padding:16px;border-radius:16px;background:var(--paper)}

/* Notifications in the avatar menu (2026-10-20): a count on the avatar, cards in a dialog, no divider lines. */
body[data-merchant] .rail-avatar-wrap{position:relative}
body[data-merchant] .notice-count{position:absolute;top:-4px;right:-6px;min-width:18px;height:18px;padding:0 5px;box-sizing:border-box;border-radius:999px;background:var(--danger,#b4483a);color:#fff;font-size:11px;font-weight:600;line-height:18px;text-align:center;box-shadow:0 0 0 2px var(--panel)}
body[data-merchant] .notice-count[hidden]{display:none}
body[data-merchant] .notice-dialog{width:min(520px,calc(100vw - 32px))}
body[data-merchant] .notice-list{display:grid;gap:10px;max-height:min(60dvh,520px);overflow:auto;margin:4px 0 0}
body[data-merchant] .notice-list article{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 16px;align-items:center;padding:14px 16px;border-radius:16px;background:var(--paper)}
body[data-merchant] .notice-list article p{grid-column:1;margin:0;font-size:14px;line-height:1.6;overflow-wrap:anywhere}
body[data-merchant] .notice-list article small{grid-column:1;color:var(--muted);font-size:12px}
body[data-merchant] .notice-list article .button-link{grid-column:2;grid-row:1/span 2;min-height:40px;padding:8px 18px}
body[data-merchant] .notice-empty{margin:4px 0 0;color:var(--muted);font-size:14px}
body[data-merchant] .notice-empty[hidden]{display:none}
body[data-merchant] .notice-dialog .actions{margin-top:20px}
@media(max-width:600px){body[data-merchant] .notice-list article{grid-template-columns:minmax(0,1fr)}body[data-merchant] .notice-list article .button-link{grid-column:1;grid-row:auto;justify-self:start}}
/* Disclosure row: chevron instead of the native triangle, same shape as the console disclosure (2026-10-22). */
body[data-merchant] details.disclosure>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;list-style:none;cursor:pointer;border-radius:8px}
body[data-merchant] details.disclosure>summary::-webkit-details-marker{display:none}
body[data-merchant] details.disclosure>summary::after{content:"";flex:none;width:12px;height:12px;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='m2.5 4.5 3.5 3 3.5-3' fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.4'/%3E%3C/svg%3E") center/12px no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='m2.5 4.5 3.5 3 3.5-3' fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.4'/%3E%3C/svg%3E") center/12px no-repeat;transition:transform 180ms ease}
body[data-merchant] details.disclosure[open]>summary::after{transform:rotate(180deg)}
body[data-merchant] details.disclosure>summary:hover{color:var(--ink)}
body[data-merchant] details.disclosure>summary:focus-visible{outline:2px solid var(--focus);outline-offset:2px}
@media (prefers-reduced-motion:reduce){body[data-merchant] details.disclosure>summary::after{transition:none}}
