/* Phone, touch tablet and desktop are distinct layouts; business components stay shared. */
html[data-role-layout=tablet]{--app-width:min(100vw,1024px);--rpx:.6px;--gutter:max(0px,calc((100vw - 1024px)/2));background:#f3f5f8}
html[data-role-layout=tablet] body{width:var(--app-width);max-width:1024px;box-shadow:none;background:#f3f5f8}
html[data-role-layout=tablet] .work-shell{height:var(--app-height)}
html[data-role-layout=tablet] .work-main,html[data-role-layout=tablet] .work-content,html[data-role-layout=tablet] .h5-role-surface{height:100%}
html[data-role-layout=tablet] .work-main{display:flex;flex-direction:column}
html[data-role-layout=tablet] .work-content{flex:1;min-height:0;height:0}
html[data-role-layout=tablet] .h5-role-body{height:0;flex:1;min-height:0}
html[data-role-layout=tablet] #app[data-view-style=role] .workbench{height:100%;background:#f3f5f8}
html[data-role-layout=tablet] #app[data-view-style=role] .workbench .page-inner{max-width:960px;width:100%;margin:auto;padding:0 24px 24px}
html[data-role-layout=tablet] #app[data-view-style=role] .workbench .metrics{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
html[data-role-layout=tablet] #app[data-view-style=role] .workbench .menu-card{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding:20px 10px 10px}
html[data-role-layout=tablet] #app[data-view-style=role] .workbench .menu-card>.section-title{grid-column:1/-1}
html[data-role-layout=tablet] #app[data-view-style=role] .workbench .menu-row{border:0;border-radius:10px;padding:18px 14px}
html[data-role-layout=tablet] #app[data-view-style=role] .workbench .record-card{padding:22px;margin:16px 0}
html[data-role-layout=tablet] #app[data-view-style=role] .workbench .chat-scroll{padding:12px 25px}
html[data-role-layout=tablet] #app[data-view-style=role] .workbench .composer{padding:16px 24px calc(16px + env(safe-area-inset-bottom))}
html[data-role-layout=tablet] #app[data-view-style=role] .workbench .modal{max-width:620px}
html[data-role-layout=tablet] #app[data-view-style=role] .workbench .role-nav{padding:12px 28px calc(12px + env(safe-area-inset-bottom))}
html[data-role-layout=tablet] #app[data-view-style=role] .workbench .nav-item{font-size:13px;min-height:48px;justify-content:center}
@media(min-width:1024px){html[data-role-layout=tablet] .work-compact-toolbar{display:flex;justify-content:flex-end;padding:8px 20px;background:#fff;border-bottom:1px solid #e0e7ef;flex-shrink:0}}
html[data-role-layout=tablet] .work-shell.is-login .work-content{height:auto;min-height:100%}
@media(max-width:759px){html[data-role-layout=tablet] #app[data-view-style=role] .workbench .metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* A login screen never shows a desktop illustration inside a narrow/touch presentation. */
html[data-role-layout=tablet] #app[data-view-style=role] .work-shell.is-login .ra-story,html[data-role-layout=mobile] #app[data-view-style=role] .work-shell.is-login .ra-story{display:none!important}
html[data-role-layout=tablet] #app[data-view-style=role] .work-shell.is-login .ra-panel,html[data-role-layout=mobile] #app[data-view-style=role] .work-shell.is-login .ra-panel{display:block;max-width:460px;margin:0 auto}
html[data-role-layout=tablet] #app[data-view-style=role] .work-shell.is-login .auth-view .page-inner{padding:0 28px;max-width:900px}
html[data-role-layout=tablet] #app[data-view-style=role] .work-shell.is-login .ra-top{max-width:460px;margin:0 auto;padding:30px 0}
html[data-role-layout=tablet] #app[data-view-style=role] .work-shell.is-login .ra-card{width:100%;max-width:460px;margin:0 auto;padding:32px}
html[data-role-layout=tablet] #app[data-view-style=role] .work-shell.is-login .ra-title{font-size:28px}
html[data-role-layout=tablet] #app[data-view-style=role] .work-shell.is-login .ra-footer{padding:30px 0 calc(28px + env(safe-area-inset-bottom));font-size:12px}
@media(max-height:600px){
 html #app[data-view-style=role] .work-shell.is-login .ra-story{display:none!important}
 html #app[data-view-style=role] .work-shell.is-login .ra-panel{display:block;max-width:520px;margin:0 auto}
 html #app[data-view-style=role] .work-shell.is-login .ra-top{padding:14px 0;max-width:520px;margin:auto}
 html #app[data-view-style=role] .work-shell.is-login .ra-card{max-width:520px;width:100%;margin:0 auto;padding:22px 28px}
 html #app[data-view-style=role] .work-shell.is-login .ra-card-icon{display:none}
 html #app[data-view-style=role] .work-shell.is-login .ra-subtitle{margin-bottom:20px}
 html #app[data-view-style=role] .work-shell.is-login .ra-footer{padding:18px 0 calc(18px + env(safe-area-inset-bottom))}
}
/* Long labels and split-screen windows must wrap instead of enlarging the viewport. */
.work-shell .ra-brand>div{min-width:0}.work-shell .ra-brand-name{overflow-wrap:anywhere}.work-shell .ra-help{overflow-wrap:anywhere}
.work-shell .record-actions,.work-shell .action-grid{flex-wrap:wrap}
@media(pointer:coarse){.work-shell .work-layout-choice select{min-height:44px}.work-shell .work-session-list a{min-height:56px}}
/* One viewport, with the header and bottom navigation sharing its height. */
html[data-role-layout] #app[data-view-style=role],html[data-role-layout] #app[data-view-style=workspace]{height:var(--app-height);min-height:0}
html[data-role-layout] .work-shell.is-authenticated{height:var(--app-height);min-height:0;overflow:hidden}
html[data-role-layout] .work-shell.is-authenticated .work-main{display:flex;flex-direction:column;height:100%;min-height:0}
html[data-role-layout] .work-shell.is-authenticated .work-content{flex:1;min-height:0;overflow:hidden}
html[data-role-layout] .work-shell.is-authenticated .h5-role-surface{height:100%;min-height:0;display:flex;flex-direction:column;overflow:hidden}
html[data-role-layout] #app[data-view-style] .work-shell.is-authenticated .h5-role-surface{height:100%!important}
html[data-role-layout] .work-shell.is-authenticated .h5-role-surface>.h5-header{position:relative;flex:0 0 48px}
html[data-role-layout] .work-shell.is-authenticated .h5-role-body{flex:1;height:0;min-height:0;min-width:0}
html[data-role-layout] #app[data-view-style=role] .work-shell.is-authenticated .role-page,html[data-role-layout] #app[data-view-style=workspace] .work-shell.is-authenticated .workspace{height:100%;min-height:0}
html[data-role-layout] #app[data-view-style=role] .work-shell.is-authenticated .role-scroll{flex:1;height:0;min-height:0;overflow-y:auto;overscroll-behavior-y:contain}
html[data-role-layout] #app[data-view-style=role] .work-shell .role-nav{position:relative;bottom:auto;flex:none;min-height:70px;padding:8px 10px calc(8px + env(safe-area-inset-bottom));box-sizing:border-box}
html[data-role-layout] #app[data-view-style=role] .work-shell .role-nav .nav-item{font-size:12px;line-height:18px;gap:2px;min-height:54px;justify-content:center}
html[data-role-layout] #app[data-view-style=role] .work-shell .role-nav .nav-icon{width:calc(52 * var(--rpx));height:calc(52 * var(--rpx));max-width:40px;max-height:40px;object-fit:contain;flex:none}
