:root{--rb-ink:#243f33;--rb-muted:#597064;--rb-line:#cbd9ce;--rb-paper:#f8f9f3;--rb-green:#285b44;--rb-header-height:56px;--rb-process-height:0px}
body.rb-navigation{margin:0;color:var(--rb-ink);padding-top:var(--ed-bar-height,0px)!important}
#rb-global-header,#rb-process-nav{box-sizing:border-box;font:14px/1.4 system-ui,sans-serif;color:var(--rb-ink)}
#rb-global-header * ,#rb-process-nav *{box-sizing:border-box}
#rb-global-header{position:relative;z-index:70;height:56px;min-height:56px;display:flex;align-items:center;gap:26px;padding:0 24px;background:#fbfcf8;border-bottom:1px solid var(--rb-line);width:100%}
#rb-global-header .rb-logo{font-weight:850;font-size:15px;letter-spacing:.09em;text-decoration:none;color:var(--rb-green);white-space:nowrap}
#rb-main-nav{display:flex;align-self:stretch;gap:8px;align-items:stretch}
#rb-main-nav>a{display:flex;align-items:center;min-height:44px;padding:0 13px;text-decoration:none;color:var(--rb-muted);font-weight:600;border-bottom:3px solid transparent}
#rb-main-nav>a[aria-current]{color:var(--rb-green);border-bottom-color:var(--rb-green);background:#edf3e9}
#rb-account-slot{position:relative;margin-left:auto;display:flex;align-items:center;gap:8px}
#rb-global-header button{font:600 13px/1.2 system-ui;background:white;border:1px solid var(--rb-line);border-radius:8px;padding:8px 13px;min-height:40px;color:var(--rb-ink);cursor:pointer;white-space:nowrap}
#rb-menu-toggle,#rb-actions-toggle{display:none}
#rb-global-header :focus-visible,#rb-process-nav :focus-visible,.rb-home :focus-visible{outline:3px solid #286eb5;outline-offset:2px}
#rb-audit-account{position:absolute;right:0;top:45px;background:white;border:1px solid var(--rb-line);border-radius:10px;padding:10px;box-shadow:0 8px 24px #18372820;min-width:180px}
#rb-audit-account[hidden]{display:none}
#rb-process-nav{position:relative;z-index:45;min-height:52px;display:flex;align-items:center;gap:12px;padding:5px 310px 5px 20px;border-bottom:1px solid var(--rb-line);background:#f2f5ed}
#rb-process-nav>nav{display:flex;align-items:center;gap:4px;white-space:nowrap}
#rb-process-nav>nav>a{padding:9px 11px;min-height:40px;text-decoration:none;color:var(--rb-muted);border-radius:6px;font-size:13px}
#rb-process-nav>nav>a[aria-current]{background:var(--rb-green);color:white;font-weight:650}
#rb-process-nav label{font-size:11px;line-height:1.2;color:var(--rb-muted);display:grid;gap:2px;margin:0;white-space:nowrap}
#rb-process-nav select{font:600 12px/1.2 system-ui;border:1px solid var(--rb-line);border-radius:6px;background:#fff;color:var(--rb-ink);padding:7px 8px;max-width:175px;min-height:36px}
#rb-process-nav .rb-reader-choice{display:none}
.rb-resources{position:relative;font-size:12px;white-space:nowrap}
.rb-resources summary{cursor:pointer;padding:9px;border:1px solid var(--rb-line);border-radius:6px;background:white;min-height:40px;display:flex;align-items:center}
.rb-resources summary::after{content:'⌄';margin-left:8px}
.rb-resources>div{position:absolute;right:0;top:100%;width:235px;background:white;border:1px solid var(--rb-line);padding:8px;border-radius:8px;box-shadow:0 8px 24px #18372820;display:grid}
.rb-resources a{color:var(--rb-ink);text-decoration:none;padding:10px;border-radius:5px;white-space:normal}
.rb-resources a:hover{background:#edf3e9}
body.rb-navigation .architecture-shell,body.rb-navigation .static-shell{height:calc(100dvh - var(--ed-bar-height,0px) - var(--rb-header-height) - var(--rb-process-height))!important;min-height:0!important}
body.rb-navigation #bonus-root{height:calc(100dvh - var(--ed-bar-height,0px) - var(--rb-header-height));min-height:0}
body.rb-navigation #direction-root{height:calc(100dvh - var(--ed-bar-height,0px) - var(--rb-header-height) - var(--rb-process-height));min-height:0}
body.rb-navigation .architecture-header,body.rb-navigation .static-header{position:absolute;right:16px;top:calc(var(--ed-bar-height,0px) + 61px);z-index:50;min-height:40px!important;height:40px;padding:0!important;border:0;background:transparent;display:flex;align-items:center;gap:8px;max-width:290px;flex-wrap:nowrap}
body.rb-navigation .architecture-header>h1,body.rb-navigation .static-header>h1,body.rb-navigation .architecture-functioning,body.rb-navigation .static-mode,body.rb-navigation .architecture-header>.architecture-resources,body.rb-navigation .static-tabs{display:none!important}
body.rb-navigation .architecture-header button,body.rb-navigation .static-header button{min-height:36px;font:600 12px/1.2 system-ui;padding:8px 10px;margin:0;white-space:nowrap}
body.rb-navigation .architecture-content{min-height:0}
body.rb-navigation .architecture-v2.v2-app{padding:5px 16px 10px}
body.rb-navigation .v2-commandbar{padding:0 0 5px;min-height:46px;gap:8px}
body.rb-navigation .v2-diagram-toolbar{min-height:42px;padding:3px 8px}
body.rb-navigation .v2-diagram-toolbar small{display:none}
body.rb-navigation .v2-legend{font-size:10px}
body.rb-navigation .static-workspace{min-height:0;flex:1}
body.rb-navigation[data-rb-space=process] .direction-functioning{display:none}
body.rb-navigation .rb-modify{border:1px solid var(--rb-line);background:white;color:var(--rb-ink);border-radius:8px;padding:9px 12px;font:600 12px/1.2 system-ui;cursor:pointer;min-height:36px}
body.rb-navigation .direction-controls .direction-identity>a{display:none}
body.rb-navigation .rankabiz-pdf-dialog{margin:auto!important;inset:0!important;position:fixed}
.rb-home{max-width:1250px!important;padding:46px 28px!important;margin:0 auto!important;font:16px/1.6 system-ui,sans-serif}
.rb-home .intro{padding:0;margin:0 0 32px}
.rb-home .intro h1{font:400 clamp(30px,3.3vw,43px)/1.15 Georgia,serif;letter-spacing:-.025em;margin:8px 0 15px;color:var(--rb-ink)}
.rb-home .intro>p{color:var(--rb-muted);font-size:16px;margin:0}
.rb-home .intro>.eyebrow{font-size:11px;font-weight:750;letter-spacing:.14em;color:var(--rb-green)}
.rb-home-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.rb-home-card{border:1px solid var(--rb-line);border-radius:13px;background:#fcfdf8;padding:26px;display:flex;flex-direction:column;min-height:245px;box-shadow:0 4px 16px #203c2c05}
.rb-home-card:first-child{border-top:4px solid #b4612b}
.rb-home-card:nth-child(2){border-top:4px solid var(--rb-green)}
.rb-home-card:nth-child(3){border-top:4px solid #6985a1}
.rb-home-card h2{font:400 28px/1.2 Georgia,serif;margin:8px 0 16px;color:var(--rb-ink)}
.rb-home-card .status{font-size:10px;font-weight:750;letter-spacing:.09em;color:var(--rb-muted);margin:0}
.rb-home-card p{font-size:15px;color:var(--rb-muted);margin:0 0 24px;max-width:none}
.rb-home-card .open-view{margin-top:auto;display:block;color:white;background:var(--rb-green);border:0;border-radius:8px;text-decoration:none;padding:11px 14px;font-size:14px;font-weight:650;min-height:44px}
.rb-home-card:first-child .open-view{background:#985128}
.rb-text-link{font-size:13px;color:var(--rb-green);font-weight:650;text-decoration:underline;text-underline-offset:4px;padding:12px 0 0;min-height:44px}
.rb-resume{display:inline-block;margin-top:18px;color:var(--rb-green);border:1px solid var(--rb-line);background:#edf3e9;padding:10px 14px;border-radius:8px;text-decoration:none;font-size:14px}
.rb-resume[hidden]{display:none}
.rb-offline{margin-top:26px;border-top:1px solid var(--rb-line);padding:22px 0;display:flex;align-items:center;justify-content:space-between;gap:30px}
.rb-offline h2{font-size:17px;margin:0 0 4px}
.rb-offline p{font-size:14px;color:var(--rb-muted);margin:0;max-width:630px}
.rb-offline .pdf-home{font-size:14px;min-height:44px;margin:0;white-space:nowrap}
.rb-home-actions{position:absolute;right:24px;top:86px}
@media(max-width:1250px){#rb-process-nav>nav{display:none}#rb-process-nav .rb-reader-choice{display:grid}#rb-process-nav{gap:16px}}
@media(max-width:800px){#rb-global-header{padding:0 12px;gap:8px}#rb-global-header .rb-logo{font-size:13px;margin-right:auto}#rb-menu-toggle,#rb-actions-toggle{display:block}#rb-account-slot{margin-left:0}#rb-global-header button{padding:8px 10px;min-height:40px;font-size:12px}#rb-main-nav{display:none;position:absolute;left:10px;right:10px;top:54px;background:#fff;border:1px solid var(--rb-line);border-radius:10px;padding:8px;box-shadow:0 10px 30px #18372820;z-index:75}#rb-global-header.rb-menu-open #rb-main-nav{display:grid}#rb-main-nav>a{padding:12px;min-height:44px;border-bottom:0;border-left:3px solid transparent}#rb-main-nav>a[aria-current]{border-left-color:var(--rb-green)}
#rb-process-nav{padding:4px 10px;gap:10px;min-height:55px;justify-content:space-between}#rb-process-nav select{max-width:170px;min-height:36px;font-size:12px}#rb-process-nav .rb-resources{display:none}#rb-process-nav label{font-size:10px}.rb-reader-choice{flex:1;min-width:0}#rb-function-slot{min-width:0;flex:1}#rb-process-nav select{max-width:100%;width:100%}
body.rb-navigation .architecture-header,body.rb-navigation .static-header{display:none;top:56px;left:10px;right:10px;max-width:none;height:auto;min-height:56px!important;padding:10px!important;border:1px solid var(--rb-line);background:#fff;box-shadow:0 10px 30px #18372820;border-radius:10px;flex-wrap:wrap;justify-content:flex-end;z-index:65}
body.rb-actions-open .architecture-header,body.rb-actions-open .static-header{display:flex}
body.rb-navigation .architecture-header button,body.rb-navigation .static-header button{min-height:44px}
body.rb-navigation .architecture-v2.v2-app{padding:5px 8px 8px}
body.rb-navigation .direction-commands{display:none}body.rb-actions-open .direction-commands{display:flex;position:absolute;top:8px;right:10px;background:white;padding:8px;border:1px solid var(--rb-line);border-radius:8px;box-shadow:0 10px 30px #18372820;z-index:65;flex-wrap:wrap}
body.rb-navigation .audit-header>.rankabiz-pdf-button,body.rb-navigation .audit-header .rb-modify{display:none}body.rb-actions-open .audit-header>.rankabiz-pdf-button,body.rb-actions-open .audit-header .rb-modify{display:block}
.rb-home{padding:28px 18px!important}.rb-home .intro{margin-bottom:24px}.rb-home .intro h1{font-size:31px}.rb-home-grid{grid-template-columns:1fr;gap:14px}.rb-home-card{padding:22px;min-height:0}.rb-home-card h2{font-size:25px;margin-bottom:12px}.rb-home-card p{margin-bottom:18px}.rb-home-card .status{font-size:10px}.rb-offline{align-items:flex-start;gap:16px;flex-direction:column}.rb-home-actions{display:none}body.rb-actions-open .rb-home-actions{display:block;position:absolute;top:60px;right:12px;z-index:65;background:white;padding:12px;border:1px solid var(--rb-line);border-radius:8px}
body.rb-navigation .rankabiz-pdf-dialog{max-height:calc(100dvh - 20px);width:calc(100vw - 20px);padding:20px}.rankabiz-pdf-dialog .pdf-dialog-heading h2{font-size:21px}
}
@media print{#rb-global-header,#rb-process-nav{display:none!important}}
/* Final integration: one compact row for reading modes, controls on the canvas. */
#rb-process-nav{min-height:48px}
#rb-process-nav label{display:flex;align-items:center;gap:6px}
#rb-process-nav .rb-reader-choice{display:none}
#rb-process-nav select{min-height:34px}
body.rb-navigation .v2-diagram-area{position:relative}
body.rb-navigation .v2-diagram-toolbar{position:absolute;right:8px;top:6px;z-index:12;min-height:32px;height:32px;max-width:60%;padding:0;border:0;border-radius:6px;background:#fffefa;box-shadow:none}
body.rb-navigation .v2-diagram-toolbar .v2-scope-count{display:none}
#rb-audit-account a{display:block;text-decoration:none;color:var(--rb-ink);padding:11px 9px;font:14px/1.3 system-ui;border-radius:5px}
#rb-audit-account a:hover{background:#edf3e9}
#rb-audit-account p{font:12px/1.4 system-ui;color:var(--rb-muted);padding:0 9px;margin:0 0 8px}
#rb-global-header #ed-management-toggle::after{content:none}
@media(max-width:1250px){#rb-process-nav .rb-reader-choice{display:flex}}
@media(max-width:800px){#rb-process-nav{min-height:55px}#rb-process-nav label{display:grid;gap:2px}body.rb-navigation .direction-controls>.rb-modify,body.rb-navigation .audit-header .rb-edit-action{display:none}body.rb-actions-open .direction-controls>.rb-modify,body.rb-actions-open .audit-header .rb-edit-action{display:inline-flex}body.rb-navigation .audit-document[data-editing=true] .rb-edit-action{display:inline-flex}body.rb-actions-open .direction-controls>.rb-modify{position:absolute;right:18px;top:58px;z-index:66;min-height:44px}body.rb-navigation .v2-diagram-toolbar{max-width:58%;right:6px}#rb-global-header #ed-management-toggle{font:600 12px/1.2 system-ui;min-height:40px;min-width:0;padding:8px 10px}}
body.rb-navigation .architecture-v2.v2-app{gap:4px;padding-top:2px}
body.rb-navigation .v2-commandbar{margin:0;padding-bottom:2px;min-height:44px}
html.diagram-expanded body.rb-navigation #rb-global-header,html.diagram-expanded body.rb-navigation #rb-process-nav{display:none!important}
html.diagram-expanded body.rb-navigation .architecture-shell{height:100dvh!important}
html.diagram-expanded body.rb-navigation .architecture-header{position:static;max-width:none;height:auto;justify-content:flex-end;padding:6px!important}
html.diagram-expanded body.rb-navigation .show-expanded-controls .architecture-functioning{display:flex!important}
html.diagram-expanded body.rb-navigation .show-expanded-controls .architecture-header>.architecture-resources{display:block!important}
.rb-home .intro h1{text-wrap:balance}
@media(max-width:800px){#rb-global-header button,#rb-global-header #ed-management-toggle{min-height:44px}#rb-process-nav select{min-height:44px}.rankabiz-pdf-dialog button{min-height:44px}}
body.rb-navigation.ed-editing .rb-modify{display:none!important}
#rb-global-header{position:sticky;top:var(--ed-bar-height,0px)}
.audit-slide{scroll-margin-top:calc(var(--rb-header-height,56px) + 12px)}
@media(max-width:800px){body.rb-actions-open .direction-commands{position:fixed;top:calc(var(--ed-bar-height,0px) + 60px);right:10px;left:10px;z-index:80;justify-content:flex-end}body.rb-actions-open .audit-header>.rankabiz-pdf-button{position:fixed;top:calc(var(--ed-bar-height,0px) + 60px);right:12px;z-index:80;min-height:44px;background:white;box-shadow:0 8px 20px #18372825}body.rb-actions-open .audit-header .rb-edit-action{position:fixed;top:calc(var(--ed-bar-height,0px) + 112px);right:12px;z-index:80;min-height:44px;background:white;box-shadow:0 8px 20px #18372825}.audit-document[data-editing=true]>.audit-header{position:sticky;top:var(--rb-header-height,56px);z-index:60}}

/* Compact reading shell shared by every page. Text stays in the document flow. */
#rb-global-header{gap:20px}
#rb-global-header #rb-actions-toggle,#rb-global-header #rb-reading-toggle{display:inline-flex;align-items:center;gap:7px;min-height:44px}
#rb-reading-toggle{margin-left:auto}
#rb-account-slot{margin-left:0}
#rb-reading-toggle svg,#rb-actions-toggle svg{width:18px;height:18px;flex:none}
#rb-global-header button[hidden],#rb-page-actions[hidden],#rb-view-choices[hidden],#rb-reading-exit[hidden]{display:none!important}
#rb-page-actions{position:absolute;right:24px;top:calc(100% + 6px);width:250px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 80px);overflow:auto;padding:8px;background:#fffef9;border:1px solid var(--rb-line);border-radius:9px;box-shadow:0 8px 28px #18372820;z-index:90;display:grid;gap:5px}
#rb-page-actions button{text-align:left;white-space:normal;width:100%;min-height:44px}
#rb-page-actions button:hover{background:#edf3e9}
#rb-process-nav{position:relative;display:flex;align-items:center;gap:16px;min-height:60px;padding:7px clamp(16px,3vw,44px);background:#f5f5ef;z-index:50}
.rb-view-selector{position:relative;min-width:0}
#rb-views-toggle{display:flex;align-items:center;gap:8px;font:600 14px/1.35 system-ui;min-height:44px;padding:8px 12px;border:1px solid var(--rb-line);border-radius:6px;background:#fcfdf9;color:var(--rb-ink);cursor:pointer;text-align:left}
#rb-views-toggle svg{width:17px;height:17px;flex:none;margin-left:auto}
.rb-view-prefix{font-weight:400;color:var(--rb-muted)}
#rb-view-choices{position:absolute;left:0;top:calc(100% + 6px);width:390px;max-width:calc(100vw - 32px);max-height:calc(100dvh - 160px);overflow:auto;padding:6px;display:grid;gap:3px;background:#fffef9;border:1px solid var(--rb-line);border-radius:9px;box-shadow:0 8px 28px #18372820;z-index:60}
#rb-process-nav #rb-view-choices>a{display:flex;align-items:flex-start;gap:12px;min-height:66px;padding:12px;color:var(--rb-ink);border:0;border-radius:6px;background:transparent;white-space:normal;text-decoration:none}
#rb-process-nav #rb-view-choices>a:hover{background:#edf3e9}
#rb-process-nav #rb-view-choices>a[aria-current]{background:var(--rb-green);color:white}
.rb-choice-icon svg{width:24px;height:24px;flex:none}
.rb-choice-copy{display:grid;gap:4px}
.rb-choice-copy strong{font:650 14px/1.35 system-ui}
.rb-choice-copy>span{font:400 12px/1.4 system-ui;opacity:.85}
#rb-function-slot{margin-left:auto}
#rb-process-nav .rb-function-label{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:400}
#rb-process-nav select{width:200px;max-width:100%;min-height:44px;font:600 13px/1.3 system-ui;padding:8px;background:#fcfdf9}
#rb-process-nav .rb-resources{display:block;position:relative}
#rb-process-nav .rb-resources summary{display:flex;align-items:center;gap:8px;min-height:44px;padding:8px 10px;font:600 13px/1.3 system-ui;list-style:none;border:0;background:transparent}
#rb-process-nav .rb-resources summary::-webkit-details-marker{display:none}
#rb-process-nav .rb-resources summary::after{content:none}
#rb-process-nav .rb-resources summary svg{width:16px;height:16px}
#rb-process-nav .rb-resources>div{width:245px;z-index:65}
#rb-process-nav .rb-resources a{min-height:44px;font-size:14px}
body.rb-navigation .architecture-header,body.rb-navigation .static-header,
body.rb-navigation .direction-commands,body.rb-navigation .rb-home-actions,
body.rb-navigation .audit-header>.rankabiz-pdf-button,body.rb-navigation .audit-header .rb-edit-action,body.rb-navigation .audit-header .rb-modify{display:none!important}
/* Static readers have one document scrollbar, including an opened procedure. */
body.rb-navigation[data-editorial-view=static]{overflow:auto}
body.rb-navigation .static-shell{height:auto!important;min-height:calc(100dvh - var(--rb-header-height) - var(--rb-process-height))!important;overflow:visible}
body.rb-navigation .static-workspace{flex:none;overflow:visible;display:block}
body.rb-navigation .static-main{overflow:visible;max-height:none}
body.rb-navigation .static-directory,body.rb-navigation .static-route{position:static}
body.rb-navigation .static-workspace.with-detail>.static-main{display:none}
body.rb-navigation .static-workspace.with-detail>.static-detail{position:relative;inset:auto;width:100%;height:auto;max-height:none;overflow:visible;border:0;padding:24px clamp(16px,4vw,52px)}
body.rb-navigation .static-detail>p,body.rb-navigation .static-detail>section,body.rb-navigation .static-detail>details{max-width:85ch}
body.rb-navigation .static-book-directory{align-self:start}
body.rb-navigation .static-detail-top{position:static}
/* Rankabiz OS text flows as a page; its optional detail drawers remain bounded. */
body.rb-navigation[data-editorial-view=bonus]{overflow:auto}
body.rb-navigation #bonus-root{height:auto!important;min-height:calc(100dvh - var(--rb-header-height))}
body.rb-navigation #bonus-root>.direction-shell{height:auto;min-height:inherit}
body.rb-navigation #bonus-root .bonus-layout{display:block;flex:none}
body.rb-navigation #bonus-root .bonus-os-scroll{overflow:visible!important;max-height:none}
body.rb-navigation #bonus-root .direction-controls{position:static;padding:6px 20px;min-height:56px}
body.rb-navigation #bonus-root .direction-identity{display:none}
body.rb-navigation .bonus-detail,body.rb-navigation .bonus-os-detail{position:fixed;top:calc(var(--rb-header-height) + 12px);bottom:12px;max-height:none;overflow:auto;z-index:55}
body.rb-navigation .audit-header{padding:8px 24px;min-height:52px}
body.rb-navigation .audit-gallery{padding-top:28px}
body.rb-navigation .audit-gallery-intro{margin-bottom:24px}
body.rb-navigation .audit-document-tools{position:static;min-height:44px;padding-top:4px;padding-bottom:4px}
.rb-home{padding-top:28px!important;padding-bottom:28px!important}
.rb-home .intro{margin-bottom:22px}
.rb-home .intro h1{margin:6px 0 10px}
/* Reading is an application mode, available without browser fullscreen permission. */
#rb-reading-exit{position:fixed;right:12px;top:8px;z-index:110;min-height:44px;padding:9px 14px;background:#fffef9;color:var(--rb-green);border:1px solid var(--rb-line);border-radius:7px;font:600 14px/1.3 system-ui;box-shadow:0 3px 12px #18372815;cursor:pointer}
#rb-reading-exit:focus-visible{outline:3px solid #286eb5;outline-offset:2px}
html.rb-reading body.rb-navigation{padding-top:56px!important;--rb-header-height:0px;--rb-process-height:0px}
html.rb-reading #rb-global-header,html.rb-reading #rb-process-nav,
html.rb-reading .audit-header,html.rb-reading .audit-document-tools,
html.rb-reading .direction-controls,html.rb-reading .direction-roles,
html.rb-reading .direction-context,html.rb-reading .direction-more{display:none!important}
html.rb-reading body.rb-navigation .architecture-shell,html.rb-reading body.rb-navigation #direction-root{height:calc(100dvh - 56px)!important}
html.rb-reading .static-directory{display:none!important}
html.rb-reading .static-book,html.rb-reading .static-roles{grid-template-columns:1fr!important}
html.rb-reading .bonus-detail,html.rb-reading .bonus-os-detail{top:60px!important}
@media(max-width:1050px){#rb-global-header{gap:8px;padding:0 14px}#rb-main-nav{gap:0}#rb-main-nav>a{padding:0 9px}#rb-global-header #rb-reading-toggle span{display:none}}
@media(max-width:800px){
 #rb-global-header{height:56px;min-height:56px;padding:0 10px;gap:6px}
 #rb-global-header .rb-logo{font-size:12px;margin-right:auto}
 #rb-global-header button{padding:8px;font-size:12px;min-height:44px}
 #rb-global-header #rb-reading-toggle,#rb-global-header #rb-actions-toggle{width:44px;justify-content:center;padding:8px;margin:0}
 #rb-global-header #rb-reading-toggle span,#rb-global-header #rb-actions-toggle span{display:none}
 #rb-main-nav{top:56px}
 #rb-page-actions{right:10px}
 #rb-process-nav{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px;padding:6px 12px;min-height:108px}
 .rb-view-selector{grid-column:1/-1}
 #rb-views-toggle{width:100%;font-size:13px;min-height:44px}
 #rb-view-choices{width:calc(100vw - 24px);max-width:calc(100vw - 24px)}
 #rb-function-slot{margin:0;min-width:0}
 #rb-process-nav .rb-function-label{display:block}
 #rb-process-nav .rb-function-label>span{display:none}
 #rb-process-nav select{width:100%;max-width:100%;font-size:13px;min-height:44px}
 #rb-process-nav .rb-resources summary{font-size:12px;padding:8px;min-height:44px}
 #rb-process-nav .rb-resources>div{right:0;left:auto}
 body.rb-navigation #bonus-root .direction-controls{min-height:54px;padding:6px 12px}
 #bonus-root .bonus-section-select{display:block!important;flex:1;font-size:0}
 #bonus-root .bonus-section-select select{margin:0;width:100%;max-width:none;font-size:14px;min-height:44px}
 body.rb-navigation .audit-header{padding:6px 12px;gap:6px;flex-wrap:wrap}
 .rb-home{padding-top:22px!important}
 body.rb-navigation .bonus-os-detail,body.rb-navigation .bonus-detail{left:10px;right:10px;width:auto}
}
@media print{#rb-reading-exit,#rb-global-header,#rb-process-nav{display:none!important}html.rb-reading body.rb-navigation{padding-top:0!important}}

/* Function selection opens on demand rather than preceding the article. */
body.rb-navigation .static-roles{display:block}
body.rb-navigation .static-roles>.static-directory{display:block;margin-bottom:20px;max-width:85ch}
.static-role-picker>summary{min-height:44px;padding:10px 12px;border:1px solid var(--rb-line);border-radius:7px;background:#fffef9;font-weight:600;cursor:pointer}
.static-role-picker>div{display:flex;flex-wrap:wrap;gap:8px;padding:10px 0}
.static-role-picker button{min-height:44px}
html.rb-reading .v2-commandbar,html.rb-reading .architecture-phase-intro,html.rb-reading .diagram-toolbar{display:none!important}

/* Resource articles are readers too, rather than short scrollable canvases. */
body.rb-navigation:is([data-rb-section=tools],[data-rb-section=knowledge],[data-rb-section=glossary]) .architecture-shell{height:auto!important;min-height:calc(100dvh - var(--rb-header-height) - var(--rb-process-height))!important;overflow:visible}
body.rb-navigation:is([data-rb-section=tools],[data-rb-section=knowledge],[data-rb-section=glossary]) .architecture-document-content{flex:none;overflow:visible}
body.rb-navigation #audit-root:has(.audit-gallery) .audit-header{display:none!important}

/* Fullscreen shares the same clear control in every reader. */
#rb-fullscreen-status{position:fixed;left:12px;top:7px;z-index:111;max-width:calc(100vw - 230px);margin:0;padding:8px 10px;border:1px solid var(--rb-line);border-radius:6px;background:#fffef9;color:var(--rb-ink);font:12px/1.35 system-ui}
#rb-fullscreen-status[hidden]{display:none!important}
@media(max-width:600px){#rb-fullscreen-status{top:60px;left:10px;right:10px;max-width:none}}
