/* Mobile: one readable demonstration, one control level, then a clear way forward. */
.wb-mobile-guide,.wb-mobile-exit{display:none}
.sec-mobile-copy{display:none}
@media(max-width:760px){
 #workbench .wb-tabs{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0 0 22px;border:0}
 #workbench .wb-tabs button{display:flex;align-items:center;justify-content:center;text-align:center;min-height:48px;padding:12px 10px;border:1px solid #f8f9f3;border-radius:12px;background:var(--paper);box-shadow:3px 3px 9px #ccd1c6,-3px -3px 9px #fffffc;font-size:17px;line-height:1.2;letter-spacing:-.025em;color:#63705f}
 #workbench .wb-tabs button::after{display:none}
 #workbench .wb-tabs button[aria-selected=true]{background:var(--accent-deep);border-color:var(--accent-deep);color:#fffffc;font-weight:550;box-shadow:inset 0 1px 1px #ffffff24,2px 3px 8px #425a4c22}
 #workbench .wb-mobile-guide{display:flex;flex-direction:column;gap:7px;margin:0 0 18px;padding:0 2px;min-height:65px;color:var(--ink)}
 #workbench .wb-mobile-guide [data-mobile-headline]{font-size:20px;line-height:1.3;letter-spacing:-.035em;font-weight:500}
 #workbench .wb-mobile-guide [data-mobile-stage]{font-size:14px;line-height:1.5;color:#647560}
 #workbench .wb-mobile-exit{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:48px;margin:22px 0 0;padding:14px 16px;border:1px solid #d0d7c9;border-radius:12px;font-size:15px;line-height:1.4;color:var(--accent-deep);text-decoration:none;box-shadow:2px 2px 7px #ccd1c680,-2px -2px 7px #fffffc99}
 #workbench .wb-mobile-exit svg{width:20px;height:20px;flex-shrink:0}
 #workbench .wb-panel{padding:16px;min-height:0;border-radius:16px;animation:none}
 #workbench .wb-build-steps,#workbench .sys-case-menu,#workbench .wb-style-note,#workbench .wb-grid,#workbench .sys-bottom-note,#workbench .sec-context,#workbench .sec-bottom-note{display:none!important}
 #workbench .wb-control-row{gap:0;min-height:0;margin:0 0 18px;padding:0;border:0;flex-direction:row;align-items:center;justify-content:flex-end}
 #workbench [data-builder=interface]{display:none!important}
 #workbench [data-builder=identity]{min-height:44px}
 #workbench .wb-control-row[data-active-step="0"] .wb-identity-toolbar{display:flex}
 #workbench .wb-control-row .web-modes{width:100%;justify-content:center;border-radius:10px}
 #workbench .web-modes button{flex:1;justify-content:center;font-size:14px;padding:10px 12px}
 #workbench .wb-control-row .wb-identity-toolbar{justify-content:center;width:100%}
 #workbench .wb-color-control{flex-direction:row;justify-content:center;width:100%}
 #workbench .wb-visual-options{padding:0 4px;border:0;background:none}
 #workbench .wb-palette button{width:48px;height:44px}
 #workbench .wb-palette button::before{width:22px;height:22px}
 #workbench .sys-control-row{justify-content:flex-end;margin-bottom:10px;min-height:44px}
 #workbench .sys-demo-note{margin-left:auto;font-size:0;gap:0}
 #workbench .sys-demo-note>i{display:none}
 #workbench .sys-auto-toggle{width:44px;height:44px;min-height:44px;font-size:14px;border-radius:10px}
 #workbench .sys-demo-note button svg{width:20px;height:20px}

 /* A login becomes its workspace. An archive becomes its dashboard. */
 #workbench .sys-case{display:block;position:relative;height:390px;min-height:0;gap:0}
 #workbench .sys-source,#workbench .sys-destination{position:absolute;inset:0;min-height:0;width:100%;border-radius:12px;overflow:visible;transition:opacity .45s ease,visibility .45s ease,transform .45s ease}
 #workbench .sys-source{padding:18px;opacity:1;visibility:visible;transform:none;pointer-events:auto}
 #workbench .sys-destination{opacity:0;visibility:hidden;transform:translateY(12px);pointer-events:none}
 #workbench .sys-bridge,#workbench .sys-member-avatar{display:none}
 #workbench .sys-demo[data-member-state=open] [data-system-panel=members] .sys-source,
 #workbench .sys-demo[data-data-state="1"] [data-system-panel=data] .sys-source,
 #workbench .sys-demo:not([data-flow-step="0"]) [data-system-panel=automation] .sys-source{opacity:0;visibility:hidden;transform:translateY(-10px);pointer-events:none}
 #workbench .sys-demo[data-member-state=open] [data-system-panel=members] .sys-destination,
 #workbench .sys-demo[data-data-state="1"] [data-system-panel=data] .sys-destination,
 #workbench .sys-demo:not([data-flow-step="0"]) [data-system-panel=automation] .sys-destination{opacity:1;visibility:visible;transform:none;pointer-events:auto}
 #workbench .sys-surface-title{font-size:15px;gap:9px;line-height:1.4}
 #workbench .sys-symbol{width:32px;height:32px}
 #workbench .sys-login-fields{margin-top:26px;gap:6px}
 #workbench .sys-login-fields>span{font-size:14px;margin-top:5px}
 #workbench .sys-login-fields>div{height:44px;font-size:14px;padding:0 10px;overflow:visible;word-break:break-word}
 #workbench .sys-login-fields .sys-password{font-size:18px;letter-spacing:3px}
 #workbench .sys-action{min-height:46px;font-size:14px;padding:10px 12px}
 #workbench .sys-source .sys-action{margin-top:24px}
 #workbench .sys-caption{font-size:14px;line-height:1.5;margin-top:15px}
 #workbench .sys-window-top{padding:12px;gap:7px;min-height:50px;font-size:14px;flex-wrap:wrap}
 #workbench .sys-window-dots{display:none}
 #workbench .sys-access-badge{font-size:14px}
 #workbench .sys-workspace-body,#workbench .sys-dashboard-body{padding:17px 14px}
 #workbench .sys-welcome{margin-bottom:18px;gap:10px}
 #workbench .sys-welcome strong{font-size:20px;line-height:1.3}
 #workbench .sys-welcome div>span{font-size:14px}
 #workbench .sys-person-mini{width:34px;height:34px;flex-shrink:0}
 #workbench .sys-resource-grid{grid-template-columns:1fr;gap:12px}
 #workbench .sys-resource{display:grid;grid-template-columns:26px 1fr;gap:3px 10px;padding:14px;min-height:68px}
 #workbench .sys-resource>svg{grid-row:1/3;align-self:center;width:25px;height:25px;margin:0}
 #workbench .sys-resource strong{font-size:15px;line-height:1.35}
 #workbench .sys-resource>span{grid-column:2;font-size:14px;line-height:1.4}
 #workbench .sys-resource>i{display:none}
 #workbench .sys-member-progress{margin-top:20px;font-size:14px;line-height:1.4;gap:9px}
 #workbench .sys-table-head{padding-top:18px;font-size:14px}
 #workbench .sys-record{padding:13px 0}
 #workbench .sys-record>span{font-size:14px;gap:8px;white-space:normal}
 #workbench .sys-record>b{font-size:13px;padding:3px 5px}
 #workbench .sys-record-count{font-size:13px;flex-basis:100%;margin-left:41px}
 #workbench .sys-record i{width:27px;height:27px;flex-shrink:0}
 #workbench .sys-stat-grid{gap:10px}
 #workbench .sys-stat-grid>div{padding:13px 10px}
 #workbench .sys-stat-grid strong{font-size:32px}
 #workbench .sys-stat-grid span{font-size:14px}
 #workbench .sys-stat-grid i{display:none}
 #workbench .sys-sync{font-size:13px}
 #workbench .sys-chart-header{margin-top:16px;font-size:14px;line-height:1.4}
 #workbench .sys-chart{height:74px;margin-top:12px;gap:8px}
 #workbench .sys-data-event{font-size:14px;line-height:1.45;padding-top:17px;gap:7px}
 #workbench .sys-data-event svg{flex-shrink:0}
 #workbench .sys-trigger{display:flex;align-items:flex-start}
 #workbench .sys-trigger .sys-envelope{width:56px;height:56px;margin-top:26px}
 #workbench .sys-trigger>strong{font-size:23px;margin-top:18px}
 #workbench .sys-trigger-copy{font-size:15px;line-height:1.55;margin-top:10px;margin-bottom:24px}
 #workbench .sys-trigger .sys-action{margin-top:auto}
 #workbench .sys-flow-status{font-size:13px}
 #workbench .sys-flow-visual{padding:36px 14px 18px;min-height:0}
 #workbench .sys-flow-actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
 #workbench .sys-flow-node{display:grid;grid-template-columns:1fr;justify-items:center;padding:16px 8px;gap:8px;text-align:center;min-height:137px}
 #workbench .sys-flow-node>svg{grid-row:auto;width:24px;height:24px}
 #workbench .sys-flow-node strong{font-size:14px;line-height:1.35}
 #workbench .sys-flow-node>span{grid-column:auto;font-size:13px;line-height:1.4}
 #workbench .sys-flow-node>i{right:-4px}
 #workbench .sys-flow-result{margin-top:32px;padding:12px;min-height:78px;gap:9px}
 #workbench .sys-flow-result>svg{width:22px;height:22px;flex-shrink:0}
 #workbench .sys-flow-result strong{font-size:14px;line-height:1.4}
 #workbench .sys-flow-result span{font-size:13px;line-height:1.4}
 #workbench .sys-demo .sys-flow-lines{display:block;left:14px;width:calc(100% - 28px);height:214px}

 /* Brand applications remain visible together, at the scale of a phone. */
 #workbench .wb-brand-rules{grid-template-columns:1fr 78px 1fr;gap:7px;margin-top:8px}
 #workbench .wb-brand-source{width:76px;height:76px;padding:16px;border-radius:18px}
 #workbench .wb-brand-type strong{font-size:34px}
 #workbench .wb-brand-rule>span{font-size:12px;line-height:1.35;margin-top:9px}
 #workbench .wb-brand-colors>div{gap:4px}
 #workbench .wb-brand-colors i{width:14px;height:14px}
 #workbench .wb .wb-brand-connections{height:48px}
 #workbench .wb-brand-applications{gap:9px}
 #workbench .wb-brand-mock{aspect-ratio:auto;height:142px;padding:8px;border-radius:8px}
 #workbench .wb-brand-mock-header{height:17px;margin-bottom:10px}
 #workbench .wb-brand-mini-dashboard{height:99px;gap:4px;grid-template-columns:6px 1fr}
 #workbench .wb-brand-stats{gap:4px}
 #workbench .wb-brand-stats i{height:15px}
 #workbench .wb-brand-bars{height:55px;gap:4px;margin-top:8px}
 #workbench .wb-brand-copy{margin-top:7px}
 #workbench .wb-brand-marketing .wb-brand-campaign{height:52px}
 #workbench .wb-brand-campaign .wb-example-mark{width:25px;height:25px}
 #workbench .wb-brand-graphics{padding:6px}
 #workbench .wb-brand-poster{height:114px;padding:9px}
 #workbench .wb-brand-poster .wb-example-mark{width:28px;height:28px}
 #workbench .wb-brand-application>span{font-size:12px;line-height:1.4;margin-top:10px;overflow-wrap:normal}

 /* Security is three concise foundations rather than three full dashboards. */
 #workbench .sec-structure{padding-top:0}
 #workbench .sec-core{display:flex;justify-content:center;align-items:center;gap:0;margin:0 0 18px}
 #workbench .sec-core>div:not(.sec-shield),#workbench .sec-desktop-copy{display:none}
 #workbench .sec-mobile-copy{display:inline}
 #workbench .sec-shield{width:48px;height:48px;border-radius:14px;margin:0;box-shadow:3px 3px 8px #cbd0c5,-3px -3px 8px #fffffc}
 #workbench .sec-shield>svg{width:30px;height:30px}
 #workbench .sec-shield-ring{inset:-4px;border-radius:18px}
 #workbench .sec-core h3{font-size:22px;line-height:1.2;margin:0 0 7px}
 #workbench .sec-core p{display:none}
 #workbench .sec-demo .sec-connections,#workbench .sec-role-menu,#workbench .sec-access-view,#workbench .sec-information,#workbench .sec-privacy .sec-card-note{display:none!important}
 #workbench .sec-cards{grid-template-columns:1fr;gap:12px}
 #workbench .sec-card{padding:14px;border-radius:12px;box-shadow:3px 3px 9px #cbd0c5,-3px -3px 9px #fffffc}
 #workbench .sec-card-heading{gap:10px}
 #workbench .sec-icon{width:30px;height:30px;border-radius:9px}
 #workbench .sec-icon svg{width:18px;height:18px}
 #workbench .sec-card h4{font-size:18px;line-height:1.3;letter-spacing:-.025em}
 #workbench .sec-card>p{font-size:14px;line-height:1.5;margin:9px 0 0;min-height:0}
 #workbench .sec-cookies>p{display:none}
 #workbench .sec-consent-control{margin-top:9px;font-size:14px;min-height:44px;gap:8px}
 #workbench .sec-consent-status{font-size:13px;line-height:1.4;margin-top:4px;min-height:19px;gap:6px}
 #workbench .sec-cookies .sec-card-note{font-size:12px;line-height:1.4;margin-top:7px;padding:0}
}
@media(max-width:360px){
 #workbench .wb-panel{padding:12px}
 #workbench .wb-tabs button{font-size:16px}
 #workbench .wb-mobile-guide [data-mobile-headline]{font-size:19px}
 #workbench .sys-source{padding:15px}
 #workbench .sys-flow-actions{grid-template-columns:1fr;gap:13px}
 #workbench .sys-flow-node{grid-template-columns:24px 1fr;justify-items:start;text-align:left;gap:3px 10px;padding:12px;min-height:70px}
 #workbench .sys-flow-node>svg{grid-row:1/3;align-self:center}
 #workbench .sys-flow-node>span{grid-column:2}
 #workbench .sys-flow-visual{padding:24px 12px 15px}
 #workbench .sys-demo .sys-flow-lines{display:none}
 #workbench .sys-flow-result{margin-top:19px}
 #workbench .wb-brand-applications{gap:7px}
 #workbench .wb-brand-application>span{font-size:12px}
 #workbench .sec-core{gap:12px}
 #workbench .sec-card{padding:12px}
}
@media(prefers-reduced-motion:reduce){
 #workbench .sys-source,#workbench .sys-destination{transition:none}
}
