/* Workspace: calm surfaces, visible actions and touch-sized controls. */
:root[data-theme] body:not(.pos-mode) .content{max-width:1600px;margin-inline:auto}
:root[data-theme] body:not(.pos-mode) .page-head{margin:18px 0 22px;gap:16px}
:root[data-theme] body:not(.pos-mode) .page-head h1{font-size:30px;letter-spacing:-1px}
:root[data-theme] body:not(.pos-mode) .page-head .eyebrow{display:none}
:root[data-theme] body:not(.pos-mode) .page-head p{margin-top:7px;font-size:13px}
:root[data-theme] :is(.main,.modal) button:not(.public-site button):not(.design-thumb button){touch-action:manipulation}
:root[data-theme] body:not(.pos-mode) :is(.main,.modal) button:not(.public-site button):not(.design-thumb button){min-height:44px}
:root[data-theme] body:not(.pos-mode) :is(.main,.modal) :is(input,select,textarea):not([type=checkbox]):not([type=radio]):not(.public-site input):not(.public-site select){font-size:16px;min-height:44px}
:root[data-theme] body:not(.pos-mode) .panel{padding:22px;border-radius:18px;box-shadow:none;backdrop-filter:none}
:root[data-theme] body:not(.pos-mode) .panel-head h2{font-size:18px;letter-spacing:-.4px}
:root[data-theme] body:not(.pos-mode) .panel-head p{font-size:12px;line-height:1.6}
:root[data-theme] body:not(.pos-mode) .metric{padding:19px 20px;min-height:0;box-shadow:none;backdrop-filter:none;border-radius:16px}
:root[data-theme] body:not(.pos-mode) .metric-value{font-size:28px;margin:10px 0 7px;font-variant-numeric:tabular-nums}
:root[data-theme] body:not(.pos-mode) .metric-title{font-size:12px}
:root[data-theme] body:not(.pos-mode) .metric-foot{font-size:11px;line-height:1.5}
:root[data-theme] .workspace-history>summary{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:44px;cursor:pointer;font-size:17px;font-weight:600;list-style:none}
:root[data-theme] .workspace-history>summary:after{content:'+';font-size:24px;font-weight:400;color:var(--muted)}
:root[data-theme] .workspace-history[open]>summary:after{content:'−'}
:root[data-theme] .workspace-history>summary small{font-size:12px;font-weight:400;color:var(--muted);margin-left:auto}
:root[data-theme] .workspace-history[open]>summary{margin-bottom:12px}
:root[data-theme] .workspace-history>.panel-head{margin-bottom:12px}
:root[data-theme] .workspace-pager{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:16px;font-size:12px;color:var(--muted)}
:root[data-theme] .workspace-pager button{min-height:44px}
:root[data-theme] .workspace-launcher{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:18px}
:root[data-theme] .workspace-launcher button{display:flex;text-align:left;align-items:center;gap:12px;padding:14px;background:var(--surface-2);border:1px solid var(--line);border-radius:12px;min-height:62px;color:var(--ink)}
:root[data-theme] .workspace-launcher button .icon:first-child{width:23px;height:23px;color:var(--accent);flex-shrink:0}
:root[data-theme] .workspace-launcher button .icon:last-child{margin-left:auto;width:16px;flex-shrink:0}
:root[data-theme] .workspace-launcher button span{font-size:14px}
:root[data-theme] .workspace-launcher button[hidden],[hidden]{display:none!important}
:root[data-theme] [data-module-search]{width:100%;min-height:48px;font-size:16px}
:root[data-theme] .workspace-menu{display:inline-flex!important;align-items:center;gap:8px}
:root[data-theme] .wallet-intro{padding:16px 20px;margin-bottom:18px;box-shadow:none}
:root[data-theme] .wallet-intro h2{font-size:20px;margin:0}
:root[data-theme] .wallet-intro .eyebrow,:root[data-theme] .wallet-intro-symbol{display:none}
:root[data-theme] .wallet-intro p{font-size:12px;margin:6px 0 0}
:root[data-theme] .cards:has(.customer-card){grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:14px}
:root[data-theme] .customer-card{padding:20px;box-shadow:none;backdrop-filter:none;border-radius:18px}
:root[data-theme] .customer-card .entity-avatar{width:36px;height:36px;font-size:12px;border-radius:12px}
:root[data-theme] .customer-card h2{font-size:18px;margin:12px 0 4px}
:root[data-theme] .customer-balance{font-size:26px;margin-block:14px}
:root[data-theme] .customer-card>.actions:last-child{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:16px}
:root[data-theme] .customer-card>.actions:last-child button{font-size:13px;padding-inline:10px}
:root[data-theme] .entity-tabs,:root[data-theme] .builder-tabs{gap:6px;scrollbar-width:thin}
:root[data-theme] .entity-tabs button,:root[data-theme] .builder-tabs button{font-size:13px;min-height:44px;padding:10px 15px}
:root[data-theme] .prep-card button{min-height:44px;font-size:13px;padding:10px 13px}
:root[data-theme] .prep-tabs button{min-height:44px;font-size:13px}
:root[data-theme] .prep-item-title strong{font-size:15px}
:root[data-theme] .prep-card{box-shadow:none;backdrop-filter:none}
:root[data-theme] .studio-pane-switch{display:none}
:root[data-theme] #view-body:has(.builder-layout){display:flex;flex-direction:column;flex:1;min-height:0}
@media(max-width:1180px){
 :root[data-theme] body:not(.pos-mode) .shell{display:block;padding:16px;max-width:none}
 :root[data-theme] body:not(.pos-mode) .sidebar{display:none}
 :root[data-theme] body:not(.pos-mode) .main{margin:0;width:100%;min-width:0}
 :root[data-theme] body:not(.pos-mode) .content{padding:8px 4px 92px}
 :root[data-theme] body:not(.pos-mode) .topbar{gap:10px;min-height:50px;padding:0 4px}
 :root[data-theme] body:not(.pos-mode) .breadcrumb{display:none}
 :root[data-theme] body:not(.pos-mode) .mobile-bottom{display:flex;position:fixed;bottom:12px;left:50%;transform:translateX(-50%);width:min(620px,calc(100% - 28px));z-index:40;justify-content:space-around;border:1px solid var(--line);border-radius:21px;background:var(--side);box-shadow:var(--shadow);padding:6px 8px max(6px,env(safe-area-inset-bottom));gap:4px}
 :root[data-theme] body:not(.pos-mode) .mobile-bottom button{display:flex;flex:1;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-height:51px;padding:6px 4px;border:0;background:transparent;color:var(--muted);border-radius:13px}
 :root[data-theme] body:not(.pos-mode) .mobile-bottom button span{font-size:10px;white-space:nowrap}
 :root[data-theme] body:not(.pos-mode) .mobile-bottom button.active{background:var(--selected);color:var(--ink)}
 :root[data-theme] body:not(.pos-mode) .top-actions .status{display:none}
 :root[data-theme] .demo-banner{padding:8px 12px;margin-bottom:16px}
 :root[data-theme] .demo-banner>span:last-child{display:none}
 :root[data-theme] .grid-2,:root[data-theme] .grid-equal{grid-template-columns:repeat(2,minmax(0,1fr))}
 :root[data-theme] .main:has(.builder-layout){height:auto;overflow:visible;display:block}
 :root[data-theme] .builder-layout{display:block;overflow:visible}
 :root[data-theme] .builder-controls{height:auto;max-height:none;overflow:visible}
 :root[data-theme] .builder-preview{display:none}
 :root[data-theme] .builder-layout.preview-active .builder-controls{display:none}
 :root[data-theme] .builder-layout.preview-active .builder-preview{display:block}
 :root[data-theme] .preview-frame{max-height:none;overflow:visible}
 :root[data-theme] .studio-pane-switch{display:flex;gap:6px;margin-bottom:14px;background:var(--surface-2);padding:5px;border-radius:13px}
 :root[data-theme] .studio-pane-switch button{flex:1;border:0;background:transparent}
 :root[data-theme] .studio-pane-switch button.active{background:var(--surface);color:var(--ink);box-shadow:var(--shadow)}
 :root[data-theme] .builder-toolbar{position:static;flex-wrap:wrap;gap:12px}
}
@media(max-width:700px){
 :root[data-theme] body:not(.pos-mode) .shell{padding:10px}
 :root[data-theme] body:not(.pos-mode) .page-head{align-items:flex-start;flex-direction:column;margin:14px 0 20px}
 :root[data-theme] body:not(.pos-mode) .page-head h1{font-size:27px}
 :root[data-theme] body:not(.pos-mode) .page-head p{display:none}
 :root[data-theme] body:not(.pos-mode) .page-head>.actions{width:100%;flex-wrap:wrap}
 :root[data-theme] body:not(.pos-mode) .page-head>.actions button{flex:1;font-size:13px}
 :root[data-theme] body:not(.pos-mode) .top-actions{gap:6px}
 :root[data-theme] body:not(.pos-mode) .top-actions>button[data-action=roles]{max-width:104px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;padding-inline:8px}
 :root[data-theme] body:not(.pos-mode) .workspace-menu span{display:none}
 :root[data-theme] body:not(.pos-mode) .top-actions .assistant-launch span{display:none}
 :root[data-theme] body:not(.pos-mode) .panel{padding:16px}
 :root[data-theme] .grid-2,:root[data-theme] .grid-equal{grid-template-columns:1fr}
 :root[data-theme] body:not(.pos-mode) .metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 :root[data-theme] body:not(.pos-mode) .metric{padding:15px 12px}
 :root[data-theme] body:not(.pos-mode) .metric-value{font-size:24px;overflow-wrap:anywhere}
 :root[data-theme] body:not(.pos-mode) .metric-icon{display:none}
 :root[data-theme] .workspace-history>summary small{display:none}
 :root[data-theme] body:not(.pos-mode) #view-body .table-wrap{overflow:visible;max-height:none}
 :root[data-theme] body:not(.pos-mode) #view-body table{min-width:0!important;width:100%}
 :root[data-theme] body:not(.pos-mode) #view-body :is(table,tbody){display:block}
 :root[data-theme] body:not(.pos-mode) #view-body thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 :root[data-theme] body:not(.pos-mode) #view-body tbody>tr{display:block;border:1px solid var(--line);border-radius:12px;padding:8px 12px;margin-bottom:12px;background:var(--surface)}
 :root[data-theme] body:not(.pos-mode) #view-body tbody>tr>td{display:grid;grid-template-columns:minmax(95px,.8fr) minmax(0,1.2fr);gap:6px 10px;border:0;padding:9px 0;font-size:13px;white-space:normal;overflow-wrap:anywhere}
 :root[data-theme] body:not(.pos-mode) #view-body td[data-label]:before{content:attr(data-label);font-size:12px;font-weight:400;color:var(--muted);grid-column:1;grid-row:1 / span 5}
 :root[data-theme] body:not(.pos-mode) #view-body td[data-label]>br{display:none}
 :root[data-theme] body:not(.pos-mode) #view-body td[data-label]>:is(strong,small,span,button,div){grid-column:2}
 :root[data-theme] body:not(.pos-mode) #view-body td[data-label=""],:root[data-theme] body:not(.pos-mode) #view-body td[colspan]{display:flex;flex-wrap:wrap;gap:8px}
 :root[data-theme] body:not(.pos-mode) #view-body td[data-label=""]:before{display:none}
 :root[data-theme] .workspace-launcher{grid-template-columns:1fr}
 :root[data-theme] .prep-controls{gap:12px;align-items:stretch}
 :root[data-theme] .prep-tabs{overflow:auto;flex-wrap:nowrap;max-width:100%}
 :root[data-theme] .prep-tabs button{flex-shrink:0}
}
@media(prefers-reduced-motion:reduce){:root[data-theme] .main *{animation:none!important;transition:none!important}}

.pos-mode #view-body{flex:1;display:flex;flex-direction:column;min-height:0}
@media(min-width:900px){:root[data-theme] body:not(.pos-mode) .metrics{grid-template-columns:repeat(4,minmax(0,1fr))}:root[data-theme] body:not(.pos-mode) .wallet-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(min-width:900px){
 :root[data-theme] .kitchen-pro .op-toolbar{flex-direction:row;align-items:end;justify-content:space-between;gap:16px}
 :root[data-theme] .kitchen-pro .op-toolbar .actions{margin-left:auto}
 :root[data-theme] .kitchen-pro .prep-controls{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:16px;align-items:center}
 :root[data-theme] .kitchen-pro .prep-tabs{flex-wrap:nowrap;overflow:auto}
 :root[data-theme] .kitchen-pro .prep-tabs button{flex-shrink:0;padding-inline:12px}
 :root[data-theme] .kitchen-pro .prep-board{max-height:calc(100dvh - 390px);min-height:280px;overflow:hidden;align-items:stretch}
 :root[data-theme] .kitchen-pro .prep-column{min-height:0;overflow-y:auto;overscroll-behavior:contain;padding-bottom:12px;scrollbar-width:thin}
}
:root[data-theme] .wallet-overview{padding:12px 18px;margin-bottom:18px;box-shadow:none;border-radius:14px}
:root[data-theme] .wallet-overview>summary{min-height:44px;display:flex;align-items:center;justify-content:space-between;gap:12px;cursor:pointer;font-size:14px;font-weight:600;list-style:none}
:root[data-theme] .wallet-overview>summary:after{content:'+';font-size:24px;color:var(--muted);font-weight:400}
:root[data-theme] .wallet-overview[open]>summary:after{content:'−'}
:root[data-theme] .wallet-overview>summary small{margin-left:auto;font-size:12px;font-weight:400;color:var(--muted)}
:root[data-theme] .wallet-overview .metrics{margin-block:14px 0}
@media(max-width:700px){
 :root[data-theme] body:not(.pos-mode) .page-head>.actions{max-width:none;width:100%}
 :root[data-theme] body:not(.pos-mode) .page-head>.actions>button{white-space:nowrap}
 :root[data-theme] .wallet-overview>summary{flex-wrap:wrap;gap:6px;font-size:13px}
 :root[data-theme] .wallet-overview>summary small{font-size:11px}
 :root[data-theme] body:not(.pos-mode) .filters:has([data-wallet-filter]){display:grid;grid-template-columns:1fr}
}
