/* Business demo controls inherit each presentation scheme, never override its visual tokens. */
.bu-identity{display:flex;align-items:center;gap:16px;flex-wrap:wrap;border:1px solid var(--line);border-radius:10px;padding:15px 18px;margin:18px 0 6px;background:var(--white,#fff);color:var(--ink);font-size:12px}.bu-identity-copy{display:grid;gap:5px;margin-right:auto;min-width:150px}.bu-identity-copy span{font-size:10px;color:var(--muted)}.bu-actor-label{display:grid;gap:5px;font-size:10px;color:var(--muted)}.bu-actor-label select{min-height:44px;border:1px solid var(--line);border-radius:6px;padding:8px;color:var(--ink);background:var(--bg);max-width:260px}.bu-identity-actions{display:flex;gap:6px;flex-wrap:wrap}.business-ui{min-width:0}.business-ui .btn,.business-ui button,.bu-identity button{min-height:44px}.business-ui .text-btn{padding:10px}.business-ui input:not([type=checkbox]),.business-ui select{min-height:44px}.business-ui input[type=checkbox]{width:20px;height:20px;flex:none;accent-color:var(--green)}.business-ui .check-row{align-items:center;min-height:44px}.business-ui .check-row input{margin-top:0}.business-ui .card h2{font-size:20px;line-height:1.5;letter-spacing:0}.business-ui .card h3{font-size:16px;line-height:1.5}.business-ui p,.business-ui td,.business-ui small{overflow-wrap:anywhere}.bu-page-head{padding-top:30px}.bu-page-head h1{font-size:32px;letter-spacing:-.6px}.bu-demo-note{font-size:11px}.bu-two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.bu-three{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.bu-two>*{min-width:0}.bu-three>*{min-width:0}.bu-order-columns{grid-template-columns:minmax(0,1.5fr) minmax(300px,1fr);align-items:start}.bu-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin-bottom:22px}.bu-kpis .stat-card strong{overflow-wrap:anywhere}.bu-kv{display:flex;flex-wrap:wrap;gap:18px 30px;margin:18px 0}.bu-kv>div{display:grid;gap:7px;min-width:100px}.bu-kv small{color:var(--muted);font-size:10px}.bu-kv strong,.bu-kv b{font-size:17px;font-weight:600}.bu-form{min-width:0}.bu-form .field{font-size:12px}.bu-form-error{color:var(--orange,#a74a30);font-size:12px;margin:10px 0 0;min-height:0}.bu-form-error:empty{display:none}.bu-details{border:1px solid var(--line);border-radius:8px;margin:16px 0;background:var(--white,#fff);min-width:0}.bu-details summary{cursor:pointer;min-height:48px;padding:14px 16px;font-size:12px;line-height:1.6;color:var(--ink)}.bu-details summary::marker{color:var(--green)}.bu-details[open]>summary{border-bottom:1px solid var(--line)}.bu-details-body{padding:18px;min-width:0}.bu-record{padding:17px 0;border-top:1px solid var(--line);font-size:12px;min-width:0}.bu-record:first-child{border-top:0}.bu-record p{margin:9px 0;white-space:pre-wrap;line-height:1.75}.bu-record>small{display:block;color:var(--muted);font-size:10px}.bu-record>div:last-child{margin-top:12px}.bu-record-head{display:flex;gap:12px;justify-content:space-between;align-items:start;flex-wrap:wrap}.bu-record-head h2,.bu-record-head h3{margin-bottom:0}.bu-record .inline-actions{margin-top:12px}.bu-empty{padding:25px 15px;border:1px dashed var(--line);border-radius:8px;text-align:center;font-size:12px;color:var(--muted);line-height:1.8}.bu-table-wrap{border:1px solid var(--line);border-radius:8px}.business-ui .data-table{min-width:620px}.business-ui .data-table td{font-size:11px}.business-ui .data-table td .btn{margin:3px;white-space:nowrap}.bu-ledger-amount{font-variant-numeric:tabular-nums;white-space:nowrap}.bu-rating{display:grid;gap:5px;margin:12px 0 18px}.bu-rating span{font-size:12px}.bu-rating small{font-size:10px;line-height:1.8;color:var(--muted)}.bu-star-card{padding:18px;border:1px solid var(--line);border-radius:10px;background:var(--bg)}.bu-star-card .bu-details-body{padding:12px}.bu-star-card .bu-record{font-size:11px}.bu-steps{padding-left:20px;font-size:12px;color:var(--muted);line-height:2.3}.bu-thread{max-height:420px;overflow:auto;padding:3px;overscroll-behavior:contain;margin-bottom:20px}.bu-thread .chat-message{max-width:96%;overflow-wrap:anywhere}.bu-thread .chat-message small{font-size:10px;color:var(--muted)}.bu-thread .chat-message p{margin:5px 0 0;white-space:pre-wrap}.business-ui .field textarea{min-height:100px}.bu-order-card>.btn{margin-top:8px}.business-ui .inline-actions{gap:8px}.business-ui .btn.small{font-size:11px}.business-ui .notice{line-height:1.8}.bu-consult-layout{grid-template-columns:minmax(0,1.7fr) minmax(260px,1fr)}.business-ui .card>.bu-details:last-child{margin-bottom:0}
@media(max-width:1100px){.bu-three{grid-template-columns:1fr}.bu-order-columns{grid-template-columns:minmax(0,1.3fr) minmax(280px,1fr)}.bu-identity-actions{width:100%}.bu-page-head h1{font-size:29px}.business-ui .form-grid{grid-template-columns:1fr}.business-ui .bu-kv{gap:15px 24px}}
@media(max-width:800px){.bu-two,.bu-order-columns,.bu-consult-layout{grid-template-columns:1fr;gap:0}.bu-kpis{grid-template-columns:1fr 1fr;gap:10px}.bu-kpis .stat-card:last-child{grid-column:1/-1}.bu-page-head h1{font-size:28px}.bu-identity{padding:14px;gap:12px}.bu-identity-copy{width:100%}.bu-actor-label{width:100%}.bu-actor-label select{max-width:none;width:100%}.bu-identity-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.bu-identity-actions button{font-size:10px;padding:8px;justify-content:center}.business-ui .card{padding:20px}.bu-details-body{padding:14px}.business-ui .card h2{font-size:18px}.business-ui .btn{white-space:normal;text-align:center}.business-ui .data-table{min-width:580px}.bu-three{gap:0}.bu-kv>div{min-width:95px}.bu-record-head .tag{max-width:100%}}
@media(max-width:400px){.bu-kpis{grid-template-columns:1fr}.bu-kpis .stat-card:last-child{grid-column:auto}.business-ui .inline-actions>.btn{width:100%}.bu-page-head h1{font-size:25px}.business-ui .card{padding:17px}}
.bu-payment-configuration p{margin:7px 0 0;line-height:1.8}.bu-corporate-account{padding:16px;border:1px solid var(--line);border-radius:8px;background:var(--bg);margin-bottom:20px}.bu-corporate-account h3{margin:0 0 12px}.bu-corporate-account dl{margin:0;display:grid;gap:11px}.bu-corporate-account dl>div{display:grid;grid-template-columns:75px minmax(0,1fr);gap:12px;font-size:12px}.bu-corporate-account dt{color:var(--muted)}.bu-corporate-account dd{margin:0;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}.bu-corporate-account .help{margin:14px 0 0}@media(max-width:400px){.bu-corporate-account dl>div{grid-template-columns:1fr;gap:4px}}
.bu-invite-share{padding:16px;border:1px solid var(--line);border-radius:8px;background:var(--bg);margin:15px 0}.bu-invite-share .field{margin-bottom:10px}.bu-invite-share input[readonly]{font-size:11px;cursor:text}.bu-invite-share .help{margin-bottom:0}

/* v1.1.1: compact preview utilities, outside the three product presentations. */
.preview-tools{border-bottom:1px solid var(--line);background:var(--white,#fff);color:var(--ink)}
.preview-tools-inner{max-width:1244px;margin:0 auto;padding:8px 0 0;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:18px}
.preview-demo-note{max-width:1244px;margin:0 auto;padding:0 0 8px;font-size:10px;line-height:1.5;color:var(--muted)}
.preview-tools .bu-identity{position:relative;display:flex;align-items:center;gap:12px;min-width:0;margin:0;padding:0;border:0;border-radius:0;background:transparent;font-size:12px}
.bu-identity-current{display:flex;align-items:center;gap:8px;min-width:0}.bu-identity-current strong{font-size:12px;font-weight:650;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:180px}.bu-demo-badge{flex:none;background:var(--bg);border:1px solid var(--line);border-radius:4px;padding:3px 5px;font-size:9px;font-weight:700;letter-spacing:.5px}.bu-current-role{font-size:10px;color:var(--muted);white-space:nowrap}.bu-quick-actions{display:flex;gap:4px;flex:none}.bu-quick-actions .btn{min-height:44px;padding:8px;font-size:11px;border:0;background:transparent;box-shadow:none;white-space:nowrap}.bu-demo-tools{margin-left:0;flex:none}.bu-demo-tools>summary{display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:8px 12px;border:1px solid var(--line);border-radius:6px;cursor:pointer;list-style:none;font-size:11px;white-space:nowrap;background:var(--bg)}.bu-demo-tools>summary::-webkit-details-marker{display:none}.bu-demo-tools>summary:focus-visible{outline:3px solid #a3bf68;outline-offset:3px}.bu-demo-tools[open]>summary{border-color:var(--green)}.bu-demo-tools[open]>summary>span{transform:rotate(180deg)}
.bu-demo-panel{position:absolute;top:calc(100% + 8px);right:0;width:min(420px,calc(100vw - 32px));max-height:70vh;max-height:min(70dvh,560px);overflow:auto;padding:20px;background:var(--white,#fff);border:1px solid var(--line);border-radius:10px;box-shadow:0 16px 44px #162d2b26;z-index:70;overscroll-behavior:contain}.bu-tools-heading{display:grid;gap:5px;margin-bottom:17px}.bu-tools-heading strong{font-size:14px}.bu-tools-heading span,.bu-tools-note{font-size:11px;line-height:1.7;color:var(--muted)}.bu-tools-note{margin:14px 0 0}.preview-tools .bu-actor-label{width:100%;font-size:11px;gap:7px}.preview-tools .bu-actor-label select{max-width:none;width:100%;min-height:44px;font-size:12px}.preview-tools .bu-identity-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;width:100%;margin-top:16px}.preview-tools .bu-identity-actions .btn{min-width:0;min-height:44px;justify-content:center;padding:8px;font-size:11px;white-space:normal}
.preview-tools .scheme-switcher{display:flex;align-items:center;gap:10px;padding:0;background:transparent;border:0;min-width:0;font-size:11px}.scheme-caption{font-size:10px;color:var(--muted);white-space:nowrap}.scheme-caption small{display:none}.preview-tools .scheme-switcher nav{display:flex;gap:4px;min-width:0}.preview-tools .scheme-switcher a{display:flex;align-items:center;justify-content:center;min-height:40px;padding:8px 11px;font-size:11px;border-radius:5px}
.header{position:relative;min-width:0}.header-actions{flex:none}.header .admin-switch{min-height:40px}.header .mobile-toggle{min-width:44px;min-height:44px}.main,.main>*{min-width:0}.dialog{overflow-wrap:anywhere}.field,.field>*{min-width:0}.table-wrap{max-width:100%}.bu-thread{max-width:100%}.bu-thread .chat-message{width:fit-content;max-width:94%}.bu-thread .chat-message.me{margin-left:auto}
@media(max-width:1300px){.preview-tools-inner,.preview-demo-note{margin-left:38px;margin-right:38px}}
@media(max-width:1100px){.bu-demo-tools{margin-left:auto}.header{height:76px;gap:16px;justify-content:space-between}.header-actions{margin-left:auto}.header .mobile-toggle{display:block;border:1px solid var(--line);border-radius:6px;background:var(--white,#fff);color:var(--green);font-size:18px;padding:6px 10px}.header .nav{display:none;position:absolute;top:100%;left:18px;right:18px;margin:0;padding:12px;z-index:50;border:1px solid var(--line);border-radius:8px;background:var(--bg);box-shadow:0 14px 30px #162d2b18;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px}.header .nav.open{display:grid}.header .nav button{min-height:44px;padding:10px 12px;text-align:left;white-space:normal}.header .nav button.active:after{left:12px;right:12px;bottom:4px}.bu-quick-actions{display:none}}
@media(max-width:1000px){.preview-tools-inner{grid-template-columns:1fr;gap:6px}.preview-tools .scheme-switcher{justify-content:space-between}.preview-tools .scheme-switcher nav{flex:1;justify-content:flex-end}.preview-tools .scheme-switcher a{min-height:38px}.preview-demo-note{padding-top:5px}.bu-identity-current strong{max-width:300px}}
@media(max-width:800px){.preview-tools-inner,.preview-demo-note{margin-left:20px;margin-right:20px}.header{padding-left:20px;padding-right:20px}.preview-tools .bu-identity{padding:0;gap:8px}.bu-demo-panel{padding:17px}.bu-identity-current strong{max-width:180px}.preview-tools .bu-identity-actions{gap:7px}.business-ui input:not([type=checkbox]),.business-ui select,.business-ui textarea,.preview-tools select,.dialog input:not([type=checkbox]),.dialog select,.dialog textarea{font-size:16px}.dialog-backdrop{padding:16px}.dialog{max-width:100%;max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);padding:22px}.dialog-close{min-width:44px;min-height:44px;padding:0;font-size:24px}.bu-demo-tools>summary{padding-left:10px;padding-right:10px}.scheme-caption{display:none}.preview-tools .scheme-switcher nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%;gap:5px}.preview-tools .scheme-switcher a{padding:7px 4px;white-space:normal;font-size:11px}.preview-demo-note{font-size:9px;padding-bottom:7px}.header{height:68px;gap:10px}.header .brand{font-size:15px;gap:8px}.header .brand small{font-size:7px;letter-spacing:1px}.header .brand-mark{width:31px;height:33px;font-size:19px}.header .header-actions{gap:6px}.header .admin-switch{font-size:11px;padding:8px 10px;min-height:44px}.header .nav{left:16px;right:16px}.header .nav button{font-size:13px}.bu-identity-current{gap:6px}.bu-current-role{font-size:9px}}
@media(max-width:400px){.preview-tools-inner,.preview-demo-note{margin-left:16px;margin-right:16px}.main{margin-left:16px;margin-right:16px}.header{padding-left:16px;padding-right:16px}.bu-identity-current strong{max-width:126px}.bu-current-role{display:none}.bu-demo-tools>summary{font-size:10px}.preview-tools .bu-actor-label select{font-size:16px}.bu-demo-panel{width:calc(100vw - 32px)}.preview-demo-note{font-size:9px}.header .brand{font-size:14px}.header .brand small{font-size:6px;letter-spacing:.8px}.header .admin-switch{padding:8px}.dialog{padding:18px}.business-ui .data-table{min-width:540px}}
/* Long metadata stays inside its own grid or scroll container. */
.grid-2>*,.grid-sidebar>*{min-width:0}
@media(max-width:640px){.dv-board-sheet small{white-space:normal;overflow-wrap:anywhere}.bu-thread .chat-message{max-width:96%}.bu-thread .chat-message p{overflow-wrap:anywhere}}

@media(max-width:1050px) and (min-width:801px){.preview-tools-inner,.preview-demo-note{margin-left:25px;margin-right:25px}}

/* v1.1.2: one primary phone navigation, shared by the three presentations. */
.mobile-tabbar{display:none}.mobile-hub{min-width:0}.mobile-hub-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-bottom:22px}.mobile-hub-link{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:21px 22px;min-height:92px;min-width:0;text-align:left;color:var(--ink);background:var(--white,#fff);border:1px solid var(--line);border-radius:10px;font:inherit}.mobile-hub-link>span:first-child{display:grid;gap:8px;min-width:0}.mobile-hub-link b{font-size:17px;overflow-wrap:anywhere}.mobile-hub-link small{font-size:12px;color:var(--muted);line-height:1.7;overflow-wrap:anywhere}.mobile-hub-link>span:last-child{color:var(--green);font-size:22px;flex:none}.mobile-hub-link.featured{border-color:var(--green);background:var(--bg)}.mobile-hub .notice{margin-bottom:24px}.mobile-more .mobile-hub-grid{margin-bottom:0}.mobile-more h2{font-size:21px}
@media(max-width:800px){
 :root{--mobile-tabbar-height:64px;--mobile-bottom-space:calc(var(--mobile-tabbar-height) + env(safe-area-inset-bottom,0px) + 18px)}
 html{scroll-padding-bottom:var(--mobile-bottom-space)}
 .main{padding-bottom:var(--mobile-bottom-space)}
 .header .nav,.header .nav.open,.header .mobile-toggle,.header .admin-switch{display:none}
 .header{height:62px}.header .header-actions{display:none}
 .mobile-tabbar{position:fixed;left:0;right:0;bottom:0;z-index:60;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:0;min-height:var(--mobile-tabbar-height);padding:4px max(8px,env(safe-area-inset-left,0px)) calc(4px + env(safe-area-inset-bottom,0px)) max(8px,env(safe-area-inset-right,0px));background:var(--white,#fff);border-top:1px solid var(--line);box-shadow:0 -5px 20px #162d2b08}
 .mobile-tab{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:56px;min-width:0;padding:5px 2px;border:0;border-radius:8px;background:transparent;color:var(--muted);font:inherit;cursor:pointer}
 .mobile-tab svg{flex:none}.mobile-tab span{font-size:12px;line-height:1.25;white-space:nowrap}.mobile-tab.active{color:var(--green);background:var(--bg);font-weight:700}.mobile-tab:focus-visible{outline:3px solid var(--green);outline-offset:-3px}
 body[data-modal="open"] .mobile-tabbar,body[data-keyboard="open"] .mobile-tabbar{visibility:hidden;pointer-events:none}
 .mobile-hub-grid{grid-template-columns:1fr;gap:10px;margin-bottom:18px}.mobile-hub-link{padding:18px;min-height:82px}.mobile-hub-link b{font-size:16px}.mobile-hub-link small{font-size:12px}.mobile-more .mobile-hub-link{padding:15px;min-height:76px}.mobile-hub .page-head{padding-top:24px;padding-bottom:20px}
 .dialog-backdrop{height:var(--app-visual-height,100dvh);bottom:auto;padding:12px}
 .dialog{max-height:calc(var(--app-visual-height,100dvh) - 24px)}
 .dialog:has(.support-chat){height:min(760px,calc(var(--app-visual-height,100dvh) - 24px));max-height:calc(var(--app-visual-height,100dvh) - 24px)}
 .support-chat-compose{padding-bottom:env(safe-area-inset-bottom,0px)}
 #toast{bottom:calc(var(--mobile-bottom-space) + 8px);max-width:calc(100vw - 32px)}
 body[data-modal="open"] #toast,body[data-keyboard="open"] #toast{bottom:16px}
}
