/* Shared workbench entry; Assessment remains the existing #main workspace. */
.assessment-return-bar { display:flex; align-items:center; gap:16px; padding:10px 20px; border-bottom:1px solid var(--border,#d9dde4); background:var(--bg,#f5f6f8); }
.assessment-return-bar button { min-height:40px; border:1px solid var(--border,#d9dde4); border-radius:8px; padding:8px 14px; background:var(--surface,#fff); color:var(--text,#182334); cursor:pointer; font:inherit; }
#navigation-save-status { font-size:12px; color:var(--text-secondary,#667085); }
.mobile-app-page[hidden] { display:none!important; }
@media(min-width:769px) {
 body[data-mobile-app-view]:not([data-mobile-app-view="assessment"]) #main,
 body[data-mobile-app-view]:not([data-mobile-app-view="assessment"]) #sidebar { display:none!important; }
 body[data-mobile-app-view="assessment"] #mobile-app-shell { display:none; }
 body[data-mobile-app-view]:not([data-mobile-app-view="assessment"]) #mobile-app-shell { display:block; flex:1; height:100vh; overflow:auto; background:#f5f3ee; color:#192432; padding:32px max(32px,calc((100vw - 1120px)/2)); padding-bottom:110px; }
 body[data-mobile-app-view]:not([data-mobile-app-view="assessment"]) #mobile-bottom-nav { display:flex; position:fixed; bottom:24px; left:50%; transform:translateX(-50%); z-index:20; border:1px solid #d2d8e0; border-radius:14px; background:#fff; box-shadow:0 8px 24px #15243c18; padding:8px; gap:4px; }
 #mobile-bottom-nav button { border:0; border-radius:8px; background:transparent; padding:12px 24px; color:#536277; cursor:pointer; }
 #mobile-bottom-nav button[aria-current] { background:#edf1f9; color:#3155a6; }
 #mobile-bottom-nav svg { display:none; }
 .mobile-app-page-header { display:flex; justify-content:space-between; align-items:center; padding:24px 0 36px; }
 .mobile-app-page-header h1 { margin:8px 0; font-size:36px; letter-spacing:-1px; }
 .mobile-app-page-header span { font-size:11px; letter-spacing:2px; color:#61718a; }
 .mobile-app-page-header img { width:42px; height:auto; }
 .mobile-app-page-body { max-width:1120px; margin:auto; }
 [data-mobile-app-page="home"] .mobile-app-page-body { display:grid; grid-template-columns:1.3fr 1fr; gap:28px; }
 [data-mobile-app-page="home"] .mobile-app-page-body>section:first-child { grid-column:1/-1; }
 .mobile-app-section-title { font-size:14px; margin:0 0 12px; color:#536277; }
 .mobile-current-card { display:flex; justify-content:space-between; align-items:center; min-height:150px; padding:32px; background:#3155a6; color:white; border-radius:16px; }
 .mobile-current-copy { display:grid; gap:10px; }
 .mobile-current-copy strong { font-size:28px; }
 .mobile-current-copy span { opacity:.8; }
 .mobile-current-card button { border:0; border-radius:8px; padding:14px 24px; background:#fff; color:#254682; font-size:16px; cursor:pointer; }
 .mobile-quick-actions { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
 .mobile-quick-actions button { min-height:106px; border:1px solid #dce0e5; background:white; border-radius:12px; text-align:left; padding:20px; cursor:pointer; }
 .mobile-quick-actions svg { display:block; width:24px; height:24px; stroke-width:1.6; margin-bottom:12px; color:#3155a6; }
 .mobile-list { border:1px solid #dce0e5; border-radius:12px; overflow:hidden; background:white; }
 .mobile-list-row { display:flex; align-items:center; justify-content:space-between; width:100%; padding:18px 20px; border:0; border-bottom:1px solid #e9ebef; background:white; text-align:left; cursor:pointer; }
 .mobile-list-copy { display:grid; gap:6px; }
 .mobile-list-copy strong { font-size:15px; }.mobile-list-copy small { color:#768294; }
 .mobile-client-search { display:flex; align-items:center; gap:12px; padding:16px; background:white; border:1px solid #dce0e5; border-radius:10px; }.mobile-client-search svg { width:22px; height:22px; }
 .mobile-client-search input { width:100%; border:0; background:transparent; font:inherit; }
 .mobile-client-segments { display:flex; gap:12px; margin:20px 0; }.mobile-client-segments button,.mobile-header-cta { padding:10px 18px; border:1px solid #dce0e5; background:white; border-radius:8px; cursor:pointer; }.mobile-header-cta svg { width:20px; }
 .mobile-detail-header button { width:44px; height:44px; background:white; border:1px solid #dce0e5; border-radius:8px; }.mobile-detail-header svg { width:24px; }
 .mobile-bottom-sheet-layer:not([hidden]) { display:flex; position:fixed; inset:0; z-index:200; align-items:center; justify-content:center; }
 .mobile-sheet-backdrop { position:absolute; inset:0; width:100%; height:100%; border:0; background:#15243c66; }.mobile-bottom-sheet { position:relative; background:white; color:#192432; padding:24px; border-radius:16px; width:480px; max-height:80vh; overflow:auto; }
 .mobile-bottom-sheet header { display:flex; justify-content:space-between; align-items:center; }.mobile-bottom-sheet button { cursor:pointer; }
}
@media(max-width:768px) {
 .assessment-return-bar { padding:6px 12px; flex-wrap:wrap; gap:6px; }
 .assessment-return-bar button { padding:6px 10px; min-height:36px; font-size:13px; }
}
/* Keep the return control reachable without losing the reading position. */
.assessment-return-bar { position:sticky; top:0; z-index:116; min-height:61px; }
@media(min-width:769px) { body[data-mobile-app-view="assessment"] #topbar { top:61px; } }
@media(max-width:768px) {
 .assessment-return-bar { top:calc(var(--mobile-app-header-height) + env(safe-area-inset-top)); min-height:49px; }
 body[data-mobile-app-view="assessment"] #topbar { top:calc(var(--mobile-app-header-height) + 49px + env(safe-area-inset-top)); }
 body[data-mobile-app-view="assessment"] #structure-page-utilities #assessment-section-nav { top:calc(var(--mobile-app-header-height) + 99px + env(safe-area-inset-top)); }
}
