/* Dimensions and palette supplied in the approved layout specification.
   Original supplied module icons and DigiCop logo are bundled. */
:root{--navy:#172f43;--teal:#047daa;--muted:#62778a;--line:#dfe8ee;color:#172f43;background:#f3f7fa}
.top{height:65px;padding:0 28px}.brand{text-decoration:none;color:var(--navy);font-size:16px}.edap-brand{width:105px;height:46px;object-fit:contain}.layout{grid-template-columns:248px minmax(0,1fr);min-height:calc(100vh - 65px)}.sidebar{background:#f1f6fa;padding:18px 12px}.module-row{height:38px;display:flex;justify-content:space-between;align-items:center;padding:0 12px;color:#172f43;text-decoration:none;font-size:14px;border-radius:5px}.module-row:hover,.submodule-row:hover{background:#dfeff6}.submodule-row{display:block;padding:5px 18px 5px 32px;font-size:13px;text-decoration:none;color:#62778a}.nav-item{min-height:38px;margin:0;font-size:14px}.sidebar footer{padding:14px 10px;margin-top:20px}.main{max-width:none;margin:0;padding:26px 32px}.main h1{font-size:26px;letter-spacing:-.5px}.compact-search{max-width:none;margin:20px 0 24px}.compact-search label{display:block;font-size:12px;color:var(--muted);margin-bottom:5px}.compact-search input{height:44px;padding:9px 14px}.screen-groups{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;align-items:start}.screen-group{background:white;border:1px solid var(--line);border-radius:9px;overflow:hidden}.screen-group h2{font-size:14px;height:45px;padding:12px 14px;margin:0;background:#edf6fa;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center}.screen-group h2 span{color:var(--muted);font-size:12px}.screen-row{min-height:40px;padding:8px 14px;display:flex;align-items:center;justify-content:space-between;gap:10px;color:var(--navy);font-size:13px;text-decoration:none;border-bottom:1px solid #edf1f4}.screen-row:last-child{border-bottom:0}.screen-row:hover{background:#f1f9fd}.row-meta{font-size:11px;color:var(--muted);white-space:nowrap}.review-banner{display:flex;justify-content:space-between;align-items:center;gap:18px;background:#edf7fb;border:1px solid #c5e1ee;border-radius:8px;padding:14px 18px;margin-bottom:22px}.review-banner p{font-size:12px;color:var(--muted);margin:0}.reader-tabs{display:flex;gap:18px;align-items:center;border-bottom:1px solid var(--line);margin:24px 0 0;flex-wrap:wrap;background:white;padding:0 18px}.reader-tabs button{border:0;border-radius:0;border-bottom:3px solid transparent;background:none;padding:12px 0;min-height:46px;font-size:13px;color:var(--muted)}.reader-tabs button.active{color:#047daa;border-bottom-color:#047daa;font-weight:650}.more-tabs{font-size:13px;color:var(--muted);display:flex;align-items:center;gap:8px}.more-tabs select{max-width:210px;border:1px solid var(--line);border-radius:5px;background:white;padding:7px;font-size:12px}.review-article{border-top-left-radius:0;border-top-right-radius:0;padding:28px}.review-section{scroll-margin-top:25px}.review-section figure{margin:16px 0 22px}.review-section figure img{width:100%;height:auto;object-fit:contain}.review-section figcaption{font-size:11px;color:var(--muted)}.review-section table{display:table;width:100%;font-size:13px}.table-scroll{overflow:auto}.review-section th:first-child{width:22%}.review-section th:nth-child(2){width:43%}.workflow-note{padding:10px 14px;border-left:3px solid #61b2d3;background:#f0f8fb}.review-section [id]{scroll-margin-top:30px}button.primary{background:#047daa;border-color:#047daa}.pill{background:#e8f4fb;color:#076d96}
.auth{grid-template-columns:60% 40%;background:#fff}.auth-story{background:#f2fbfe;border-right:3px solid #12a6d7;color:#172f43;padding:42px clamp(30px,6vw,95px);gap:40px}.auth-story p{color:#62778a;max-width:570px}.auth-story h1{font-size:clamp(36px,3.6vw,56px);line-height:1.16;max-width:600px}.login-edap-logo{width:200px;height:auto;mix-blend-mode:multiply}.auth-form{padding:40px;max-width:510px}.auth-form .pill{margin-bottom:18px}.auth-form h1{font-size:30px}.auth-form>p{font-size:14px;color:#62778a}.auth-story footer{font-size:12px;color:#62778a}.library-heading{font-size:12px;letter-spacing:1.3px;text-transform:uppercase;color:#047daa;margin-top:30px}.login-benefits{list-style:decimal-leading-zero;padding-left:34px;color:#047daa}.login-benefits li{padding:8px 0 8px 12px}.login-benefits strong{display:block;font-size:16px;color:#172f43}.login-benefits span{display:block;font-size:13px;color:#62778a}.auth-story .eyebrow{color:#047daa}.auth-form .field{font-size:13px}.password-row button{color:#047daa}
@media(max-width:1100px){.screen-groups{grid-template-columns:repeat(2,minmax(0,1fr))}.main{padding:24px}.auth-story{padding:35px}.auth-form{padding:30px}}
@media(max-width:760px){.top{height:auto;min-height:65px;padding:10px 16px}.layout{grid-template-columns:1fr}.main{padding:20px 16px}.screen-groups{grid-template-columns:1fr}.auth{grid-template-columns:1fr}.auth-story{border-right:0;border-bottom:3px solid #12a6d7;padding:26px;gap:20px}.auth-story h1{font-size:34px}.login-benefits,.library-heading{display:none}.login-edap-logo{width:150px}.review-banner{align-items:flex-start;flex-direction:column}.reader-tabs{gap:14px;padding:0 10px}.review-article{padding:18px}.review-section table{min-width:540px}.more-tabs{padding-bottom:8px}.brand span{font-size:14px}}
@media print{body{background:white}.top,.sidebar,.breadcrumbs,.reader-tabs,#print-review,.skip,#notice{display:none!important}.layout{display:block}.main{padding:0}.review-article{border:0;padding:0}.review-section[hidden],#review-overview[hidden],#review-steps[hidden]{display:block!important}.review-section{break-before:auto}.review-section figure{break-inside:avoid}.review-section table{display:table;font-size:10pt}.review-section tr{break-inside:avoid}.review-section figure img{max-height:650px;object-fit:contain}a{color:inherit;text-decoration:none}.table-scroll{overflow:visible}}

.module-row{justify-content:flex-start;gap:10px}.module-row img{width:24px;height:24px;object-fit:contain}.module-row span:last-child{margin-left:auto}.admin-navigation{border-top:1px solid var(--line);margin-top:18px;padding-top:5px}.admin-navigation h3{margin:10px 12px}.unavailable{color:#62778a}.unavailable:hover{background:white}.auth-story h1 span{color:#009dcc}.form-logo{display:block;width:175px;height:auto;margin:0 auto 22px}.powered-by{display:flex;justify-content:center;align-items:center;gap:10px;font-size:11px;color:var(--muted);margin-top:20px}.powered-by img{width:110px;height:auto}.login-mode .auth-story{padding:32px clamp(30px,5vw,80px);gap:18px}.login-mode .auth-story h1{font-size:clamp(30px,3.1vw,48px);margin-bottom:18px}.login-mode .auth-form{padding:24px 38px}.login-mode .auth-form>h1,.login-mode .auth-form>p{text-align:center}.login-mode .auth-form h1{margin-bottom:8px}.login-mode .field{margin-bottom:12px}.login-mode .library-heading{margin:22px 0 0;padding:10px 18px;background:#e7f5fb;border-radius:10px 10px 0 0}.login-mode .login-benefits{background:white;padding:10px 24px 10px 48px;margin:0;border-radius:0 0 10px 10px}.login-mode .login-benefits li{padding:5px}.login-mode .auth-story footer{background:#e6f5fa;border-radius:30px;padding:10px 18px;align-self:flex-start}.login-mode .error:empty{min-height:0;margin:0}.login-mode #refresh-auth{font-size:12px;min-height:32px;padding:4px;border:0}.login-mode .auth-form>.fine{margin:10px 0;font-size:11px}.login-mode .help{font-size:11px}
@media(min-width:761px) and (min-height:650px){.login-mode{height:100dvh;min-height:650px}.login-mode .auth-story{gap:12px}.login-mode .auth-story>div:nth-child(2){margin:auto 0}.login-mode .login-edap-logo{width:170px}.login-mode .form-logo{width:150px;margin-bottom:18px}}
@media(min-width:761px) and (max-height:760px){.login-mode .auth-story{padding-top:20px;padding-bottom:20px}.login-mode .auth-story h1{font-size:34px}.login-mode .auth-story p{font-size:13px;margin-bottom:10px}.login-mode .library-heading{margin-top:12px}.login-mode .login-benefits span{font-size:12px}.login-mode .login-benefits strong{font-size:14px}.login-mode .powered-by{margin-top:10px}}
@media(max-width:760px){.login-mode .auth-story{padding:22px}.login-mode .auth-story>div:nth-child(2){display:none}.login-mode .auth-form{padding:26px 22px}.login-mode .auth-story .login-edap-logo{width:130px}.login-mode .auth-story footer{display:none}}

.approved-document{display:block;width:100%;height:85vh;min-height:500px;border:0;background:white;border-radius:8px;margin-top:16px}

/* Compact EDAP workspace navigation; manual iframe styles remain unchanged. */
:root{--teal:#087fa6;--navy:#173b50;--line:#dce8ee;--muted:#5c7482}a{color:#08789d}button:hover,.button:hover{background:#edf8fc}button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible{outline:3px solid #0785b1;outline-offset:3px}button[aria-pressed=true],a[aria-current=page]{background:#e3f4fb;color:#075f81;border-color:#8ac8df}.top{position:sticky;top:0;z-index:30;height:72px;padding:0 26px}.layout{grid-template-columns:264px minmax(0,1fr);min-height:calc(100vh - 72px)}.sidebar{height:calc(100vh - 72px);position:sticky;top:72px;overflow-y:auto;padding:20px 14px}.main{align-self:start;margin:0 auto;padding:28px clamp(18px,3vw,44px)}.nav-tools{display:flex;flex-wrap:wrap;gap:5px;align-items:center;margin:22px 8px 10px}.nav-tools .eyebrow{width:100%}.nav-tools button{padding:4px 7px;font-size:11px;min-height:32px}.nav-module{border:1px solid transparent;border-radius:9px;margin:5px 0}.nav-module.selected{border-color:#b7dcea;background:#f2faff}.nav-module summary{cursor:pointer;padding:10px 8px;font-size:13px;font-weight:650;list-style:none;display:flex;align-items:center;gap:9px}.nav-module summary:after{content:'›';margin-left:auto;font-size:20px;line-height:1}.nav-module[open]>summary:after{transform:rotate(90deg)}.nav-module summary img{width:23px;height:23px;object-fit:contain}.nav-module summary::-webkit-details-marker{display:none}.nav-module .module-row{font-size:12px;padding:8px 12px 8px 39px}.submodule-row{display:block;margin:3px 8px 3px 30px;border-left:2px solid #d7e8ef;padding:8px 10px;text-decoration:none;border-radius:0 5px 5px 0;font-size:12px}.submodule-row[aria-current]{border-left-color:#0783ad;font-weight:700}.screen-group{background:white;border:1px solid var(--line);border-radius:10px;overflow:hidden;margin-bottom:16px}.screen-group>summary{padding:14px 18px;background:#f1f8fc;color:#234c60;font-size:15px;font-weight:700;cursor:pointer}.screen-group>summary span{font-size:11px;background:white;border-radius:20px;padding:3px 9px;margin-left:8px}.screen-row{min-height:48px;padding:12px 18px;gap:20px}.screen-row:hover{background:#f2faff}.screen-row.unavailable{background:#f8fafb}.screen-row .row-meta{font-size:11px;max-width:43%;text-align:right}.submodule-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0}.submodule-tabs .button{font-size:13px;padding:8px 14px}.breadcrumbs{line-height:1.8;margin-bottom:14px;overflow-wrap:anywhere}.settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.setting-link{text-decoration:none;color:inherit}.setting-link:hover{border-color:#72bbd6}.settings-grid h2{font-size:20px}.bookmark-list{display:grid;gap:12px}.bookmark-list h2{font-size:18px;margin:6px 0}.manual-tools{display:flex;justify-content:flex-end;margin-bottom:12px}.manual-outline{background:white;border:1px solid var(--line);border-radius:8px;padding:12px 16px;margin:14px 0}.manual-outline summary{cursor:pointer;font-weight:650;color:#13799d}.manual-outline nav{display:flex;gap:8px 18px;flex-wrap:wrap;margin-top:12px}.manual-outline a{font-size:13px}.tabs{display:flex;gap:8px;overflow-x:auto;padding-bottom:10px}.tabs button{white-space:nowrap}.compact-ui .screen-row{min-height:38px;padding-top:7px;padding-bottom:7px}.compact-ui .panel{padding:18px}.nav-backdrop{display:none}.main h1{font-size:clamp(26px,3vw,36px)}.main .compact-search{margin:22px 0 14px;max-width:760px}.main .compact-search label{display:block;font-size:12px;font-weight:700;margin-bottom:6px}.admin-grid{align-items:start}.panel{box-shadow:0 4px 18px #123c5005}
@media(max-width:900px){.layout{display:block}.sidebar{display:none;position:fixed;z-index:45;left:0;top:72px;width:min(300px,85vw);height:calc(100dvh - 72px);box-shadow:12px 0 40px #173b5025}.sidebar.open{display:block}.nav-backdrop:not([hidden]){display:block;position:fixed;inset:72px 0 0;z-index:40;background:#173b5066;border:0;border-radius:0}.mobile-nav{display:inline-block}.main{padding:24px 18px}.settings-grid,.admin-grid{grid-template-columns:1fr}.top{padding:0 14px}.username{display:none}.brand span{font-size:14px}.top-actions{gap:6px}.top-actions button{padding:8px 10px}.screen-row{gap:10px}.screen-row .row-meta{max-width:45%}.manual-tools{justify-content:flex-start}.submodule-tabs{flex-wrap:nowrap;overflow-x:auto;padding-bottom:6px}.submodule-tabs a{white-space:nowrap}}

.settings-grid input[type=checkbox]{display:inline-block;width:auto;min-height:0;margin:0 8px 0 0;vertical-align:middle}

@media(max-width:900px){.top{flex-wrap:nowrap;min-height:72px;gap:8px}.top-actions{flex-shrink:0}.screen-row .row-meta{white-space:normal}}@media(max-width:480px){.brand span{display:none}.edap-brand{width:94px}.top-actions button{font-size:13px}}

/* Reading workspace refinement: compact controls override legacy link/card rules. */
.top{height:56px;min-height:56px;padding:0 18px}.edap-brand{width:92px;height:38px}.brand{gap:9px}.brand span{font-size:14px}.top-actions button{min-height:32px;padding:4px 11px;font-size:12px}.layout{grid-template-columns:232px minmax(0,1fr);min-height:calc(100vh - 56px)}.sidebar{top:56px;height:calc(100vh - 56px);padding:10px 9px}.main{padding:18px 24px;max-width:1320px}.main h1{font-size:26px;margin-bottom:8px}.main h2{font-size:18px}.breadcrumbs{margin-bottom:8px;font-size:11px}.main>p{margin-bottom:12px}.nav-item{min-height:32px;padding:6px 10px;margin:3px 0;font-size:12px;text-decoration:none!important;border-radius:6px;color:#234c60}.utility-item{display:flex;gap:9px;align-items:center;background:#fff;border:1px solid #d6e6ef;font-weight:600}.utility-item>span{font-size:17px;width:18px;text-align:center}.nav-item:hover{background:#e3f1f8}.nav-item[aria-current=page]{background:#087da5;color:white;border-color:#087da5}.nav-tools{margin:13px 5px 6px;gap:4px}.nav-tools .eyebrow{width:auto;margin-right:auto;font-size:9px}.nav-tools button{font-size:10px;min-height:26px;padding:2px 5px}.nav-module{margin:2px 0;border-radius:6px}.nav-module summary,.module-leaf{min-height:34px;padding:6px;font-size:12px;gap:8px}.nav-module summary img,.module-leaf img{width:20px;height:20px;object-fit:contain}.module-leaf{display:flex;align-items:center;text-decoration:none;color:#234c60;font-weight:650;border:1px solid transparent;border-radius:6px}.module-leaf:hover{background:#e3f1f8}.module-leaf.selected{background:#e3f1f8;border-color:#b7dcea}.submodule-row{font-size:11px;padding:5px 8px;margin:1px 5px 2px 25px}.sidebar .admin-navigation{margin-top:10px;padding-top:4px}.sidebar .admin-navigation h3{margin:5px 8px;font-size:9px}.sidebar footer{padding:8px 6px;margin-top:10px}.sidebar footer p{font-size:10px;margin:0}.screen-groups{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.screen-group{margin-bottom:10px;border-radius:7px}.screen-group>summary{padding:8px 12px;font-size:13px}.screen-row,.compact-ui .screen-row{min-height:34px;padding:7px 12px;font-size:12px}.screen-row .row-meta{font-size:10px;white-space:normal}.submodule-tabs{margin:10px 0;gap:5px}.submodule-tabs .button{min-height:30px;padding:4px 10px;font-size:12px}.main .compact-search{margin:12px 0 10px;max-width:none}.compact-search input{height:36px;padding:6px 10px}.panel,.compact-ui .panel{padding:14px;border-radius:8px;box-shadow:none}.settings-grid{gap:10px;max-width:960px}.settings-grid h2{font-size:16px;margin:4px 0 8px}.settings-grid p{font-size:12px;margin:0 0 6px}.settings-grid .field{margin:6px 0 10px}.settings-grid .help{font-size:11px}.settings-grid .button{font-size:12px;min-height:30px;padding:4px 10px}.setting-link{border-left:3px solid #0a88b2;display:block}.setting-link:hover{background:#f3faff}.manual-tools{margin-bottom:6px}.manual-tools button{min-height:30px;font-size:12px;padding:4px 10px}.manual-outline{padding:8px 12px;margin:8px 0;font-size:12px}.approved-document{margin-top:8px}.bookmark-list{gap:8px}.bookmark-list h2{font-size:16px}.tabs{margin-bottom:12px;gap:5px}.tabs button{min-height:32px;padding:5px 10px;font-size:12px}.manual-media{border:1px solid #c6e1ec;border-radius:7px;padding:10px 12px;background:#f3faff;margin:8px 0}.manual-media h2{font-size:15px;margin:0 0 5px}.manual-media p{font-size:12px;margin:0 0 8px}.manual-media video{display:block;width:100%;max-height:65vh;background:#142f40}.manual-media button{min-height:32px;padding:5px 12px;font-size:12px}
@media(max-width:900px){.sidebar{top:56px;height:calc(100dvh - 56px)}.nav-backdrop:not([hidden]){inset:56px 0 0}.top{height:56px;min-height:56px}.main{padding:14px}.layout{display:block}.screen-groups{grid-template-columns:1fr}.settings-grid{grid-template-columns:1fr}.main h1{font-size:23px}.top-actions button{padding:4px 9px}.brand span{display:none}}

.manual-media .view-video-button{display:inline-flex;align-items:center;gap:9px;min-height:40px;padding:7px 15px;border:1px solid #087da5;border-radius:7px;background:#087da5;color:#fff;font-weight:650;font-size:13px;box-shadow:0 2px 5px #173b5015}.manual-media .view-video-button:hover{background:#066687;border-color:#066687}.manual-media .view-video-button:focus-visible{outline:3px solid #087da5;outline-offset:3px;box-shadow:0 0 0 2px #fff}.video-play-icon{display:inline-grid;place-items:center;width:23px;height:23px;border-radius:50%;background:#ffffff24;font-size:11px;padding-left:1px}

/* Inline preview stays compact; native fullscreen is available on user request. */
.manual-media{max-width:520px;padding:10px 12px;margin:8px 0 12px}.manual-media h2{font-size:14px;margin-bottom:5px}.manual-media>p{font-size:11px;line-height:1.5;margin-bottom:6px}.manual-media video{width:100%;max-width:480px;height:auto;max-height:280px;aspect-ratio:16/10;object-fit:contain;border-radius:5px;margin-top:8px}.manual-media .view-video-button{min-height:36px;padding:5px 12px;font-size:12px}@media(max-width:560px){.manual-media{max-width:100%}.manual-media video{max-height:220px}}

/* Sidebar order: brand, modules, then tools. Icons require no remote fonts. */
.sidebar-brand{display:flex;flex-direction:column;align-items:flex-start;gap:0;padding:3px 7px 9px;border-bottom:1px solid var(--line);margin-bottom:6px}.sidebar-brand .edap-brand{width:112px;height:44px}.sidebar-brand span{display:block;font-size:11px;color:var(--muted)}.sidebar-shortcuts{border-top:1px solid var(--line);margin-top:12px;padding-top:9px}.nav-icon{display:block;flex:0 0 20px;width:20px;height:20px;color:currentColor}.utility-item .nav-icon{width:18px;height:18px;flex-basis:18px}.sidebar a:focus-visible,.sidebar summary:focus-visible{outline:2px solid #087da5;outline-offset:2px}

/* Compact header: logo at the top; module controls start directly below. */
:root{--portal-header-height:52px}
.top{height:var(--portal-header-height);min-height:var(--portal-header-height);padding:0 16px;gap:12px;background:linear-gradient(100deg,#fff 0%,#fff 55%,#eff7fc 100%);border-bottom:1px solid #c8dfe9;box-shadow:0 1px 4px #173b5008;flex-wrap:nowrap}
.header-brand{min-width:0;gap:16px;align-items:center;line-height:1.2}
.header-brand .edap-brand{display:block;width:112px;height:40px;object-fit:contain;flex-shrink:0}
.header-brand .header-title{display:block;padding-left:16px;border-left:1px solid #c8dfe9;font-size:14px;font-weight:650;letter-spacing:.1px;color:#234c60}
.top-actions{gap:9px;flex-shrink:0}.top-actions .username{max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#526d7d;font-size:12px}.top-actions button{height:30px;min-height:30px;padding:3px 11px;border-color:#c8dfe9;background:#fff;color:#24536a;border-radius:6px}.top-actions button:hover{background:#e8f4fa;border-color:#87b9ce}
.layout{min-height:calc(100vh - var(--portal-header-height))}.sidebar{top:var(--portal-header-height);height:calc(100vh - var(--portal-header-height));padding-top:4px}.sidebar .nav-tools{margin:0 5px 4px;min-height:28px}.sidebar .nav-tools .eyebrow{font-size:10px;letter-spacing:1px}.sidebar .nav-module:first-of-type{margin-top:0}
@media(max-width:900px){.top{padding:0 12px}.sidebar{top:var(--portal-header-height);height:calc(100dvh - var(--portal-header-height))}.nav-backdrop:not([hidden]){inset:var(--portal-header-height) 0 0}.top-actions .username{display:none}}
@media(max-width:480px){.header-brand{gap:0}.header-brand .header-title{display:none}.header-brand .edap-brand{width:100px;height:38px}.top-actions{gap:6px}.top-actions button{padding:3px 8px}}

/* Module labels stay regular, including the selected module. */
.sidebar .nav-module>summary,.sidebar .nav-module.selected>summary,.sidebar .module-leaf,.sidebar .module-leaf.selected{font-weight:400}

/* Moderate navigation density and matching native scroll affordances. */
.sidebar .nav-module>summary,.sidebar .module-leaf{min-height:32px;padding:5px 6px;line-height:20px;font-weight:400}.sidebar .nav-module{margin:1px 0}
html,.sidebar,.main{scrollbar-width:thin;scrollbar-color:#528ba5 #edf5f9}::-webkit-scrollbar{width:10px;height:10px}::-webkit-scrollbar-track{background:#edf5f9}::-webkit-scrollbar-thumb{background:#528ba5;border:2px solid #edf5f9;border-radius:8px}::-webkit-scrollbar-thumb:hover{background:#226783}.sidebar:focus-within,.main:focus-within{scrollbar-color:#226783 #edf5f9}.sidebar:focus-visible{outline:2px solid #087da5;outline-offset:-2px}
.top{border-bottom-color:#b8d6e5;box-shadow:inset 0 2px 0 #087da5,0 1px 4px #173b5008}.header-brand .header-title{color:#21546d}.top-actions button:focus-visible{outline:2px solid #087da5;outline-offset:2px}
.workflow-links{margin:8px 0 10px;padding:9px 12px;border:1px solid #c8dfe9;border-left:3px solid #087da5;border-radius:6px;background:#f3f9fc}.main .workflow-links h2{font-size:13px;margin:0 0 5px;font-weight:600}.workflow-links ul{display:flex;flex-wrap:wrap;gap:8px 18px;list-style:none;padding:0;margin:0}.workflow-links li{display:flex;gap:6px;align-items:baseline;font-size:12px}.workflow-links li span{color:#526d7d}.workflow-links a{color:#086b91;text-underline-offset:3px}.workflow-links a:hover{color:#14445c}.workflow-links a:focus-visible{outline:2px solid #087da5;outline-offset:2px}.workflow-links p{font-size:11px;color:#526d7d;margin:6px 0 0;line-height:1.5}

/* Continuous reader: quiet framing, original manual typography. */
.manual-tools.reader-toolbar{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding:10px 12px;margin:0 0 7px;background:#f7fbfe;border:1px solid #d2e4ee;border-left:3px solid #087da5;border-radius:7px}.reader-navigation{flex:1;min-width:0}.reader-toolbar .breadcrumbs{margin:0;font-size:11px;line-height:1.6}.reader-toolbar .manual-outline{margin:6px 0 0;padding:0;background:transparent;border:0;border-radius:0}.reader-toolbar .manual-outline summary{font-size:12px;font-weight:400;color:#176987}.reader-toolbar .manual-outline nav{margin-top:7px;gap:6px 16px}.reader-toolbar .manual-outline a{font-size:11px}.reader-toolbar #manual-bookmark-slot{flex-shrink:0}.reader-toolbar button{min-height:32px;font-size:12px;padding:5px 10px}.reader-meta{margin:0 0 8px;color:#62778a;font-size:11px}.approved-document{border:1px solid #d7e5ed;border-radius:8px;background:white;box-shadow:0 2px 8px #173b5006}.reader-toolbar a:focus-visible,.reader-toolbar summary:focus-visible{outline:2px solid #087da5;outline-offset:2px}
/* Login-only visual refinement. Form fields, handlers and security are unchanged. */
.login-mode{grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);background:linear-gradient(120deg,#eef8fc,#f8fbfd 65%);min-height:100dvh}.login-mode .auth-story{background:linear-gradient(145deg,#f7fcff,#e7f4fb);border-right:1px solid #cde4ee;padding:28px clamp(24px,4vw,64px);gap:16px}.login-mode .auth-story .login-edap-logo{width:154px}.login-mode .auth-story h1{font-size:clamp(28px,2.8vw,38px);line-height:1.2;letter-spacing:-.6px;margin:0 0 14px}.login-mode .auth-story h1 span{color:#087da5}.login-mode .auth-story p{font-size:14px;line-height:1.6;max-width:460px;margin-bottom:14px}.login-mode .library-heading{background:transparent;padding:8px 0;border-bottom:1px solid #c5dfeb;border-radius:0;margin:16px 0 0;font-size:11px}.login-mode .login-benefits{background:transparent;padding:10px 0 0 28px;border-radius:0}.login-mode .login-benefits li{padding:6px 0 6px 7px}.login-mode .login-benefits strong{font-size:14px;font-weight:600}.login-mode .login-benefits span{font-size:12px;line-height:1.5}.login-mode .auth-story footer{padding:8px 0;background:transparent;border-radius:0;font-size:11px;color:#526d7d}.login-mode .auth-form{width:calc(100% - 40px);max-width:460px;padding:24px 28px;background:white;border:1px solid #d6e7ef;border-top:3px solid #087da5;border-radius:12px;box-shadow:0 8px 28px #193f5010}.login-mode .form-logo{width:125px;margin-bottom:14px}.login-mode .auth-form h1{font-size:25px;letter-spacing:-.4px;margin-bottom:6px}.login-mode .auth-form>p{font-size:12px;line-height:1.5}.login-mode .field{margin-bottom:11px}.login-mode .field label{font-size:13px;color:#254b60}.login-mode .password-row input{min-height:40px;border-color:#bbd3df;border-radius:6px}.login-mode input:focus-visible,.login-mode select:focus-visible,.login-mode button:focus-visible{outline:2px solid #087da5;outline-offset:2px}.login-mode input:focus{border-color:#087da5}.login-mode #auth>button.primary{min-height:40px;border-radius:6px;background:#087da5;font-weight:600;box-shadow:0 2px 4px #087da519}.login-mode #auth>button.primary:hover{background:#066b90}.login-mode #refresh-auth{color:#286d88;margin-top:7px}.login-mode .powered-by{border-top:1px solid #e1ecf2;padding-top:12px;margin-top:12px}.login-mode .powered-by img{width:96px}.login-mode .help{font-size:11px;line-height:1.45}.login-mode .field-error{font-size:11px}
@media(min-width:761px) and (min-height:680px){.login-mode{height:100dvh;min-height:680px}}
@media(max-height:679px) and (min-width:761px){.login-mode{height:auto;min-height:100dvh}.login-mode .auth-story{padding:22px 28px}.login-mode .auth-form{margin:18px auto;padding:20px 24px}.login-mode .auth-story h1{font-size:29px}}
@media(max-width:760px){.login-mode{display:block;height:auto;min-height:100dvh;padding-bottom:20px}.login-mode .auth-story{padding:15px 22px;border-right:0;border-bottom:1px solid #cde4ee}.login-mode .auth-story .login-edap-logo{width:126px}.login-mode .auth-form{width:calc(100% - 28px);margin:18px auto 0;padding:22px}.reader-toolbar{flex-wrap:wrap}.reader-toolbar #manual-bookmark-slot{margin-left:auto}}

/* Shared shell hierarchy and spacing; iframe manual styles remain separate. */
:root{--shell-h1:24px;--shell-h2:18px;--shell-h3:15px;--shell-group-heading:14px;--shell-gap:12px;--shell-pad-y:18px;--shell-pad-x:24px;--shell-panel-pad:14px;--shell-row-y:7px;--shell-row-x:12px}
.main{padding:var(--shell-pad-y) var(--shell-pad-x)}.main>h1,.main>.row h1,.main .panel h1{font-size:var(--shell-h1);font-weight:600;line-height:1.25;margin-bottom:8px}.main>h2,.main .panel h2,.main .settings-grid h2{font-size:var(--shell-h2);font-weight:600;line-height:1.3}.main .panel h3,.main .admin-grid h3{font-size:var(--shell-h3);font-weight:600;line-height:1.35}.main .panel,.compact-ui .main .panel{padding:var(--shell-panel-pad)}.screen-groups{gap:var(--shell-gap);grid-template-columns:repeat(2,minmax(0,1fr))}.screen-group>summary{font-size:var(--shell-group-heading);font-weight:600;padding:8px var(--shell-row-x);overflow-wrap:anywhere}.screen-row,.compact-ui .screen-row{padding:var(--shell-row-y) var(--shell-row-x);min-width:0}.screen-row>span:first-child{min-width:0;overflow-wrap:anywhere}.screen-row .row-meta{white-space:normal;overflow-wrap:anywhere;flex-shrink:0;max-width:40%}
@media(min-width:1200px){.screen-groups{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:700px){.screen-groups{grid-template-columns:1fr}.main{padding:14px}}
@supports(container-type:inline-size){.main{container-type:inline-size;container-name:manual-shell}@container manual-shell (min-width:900px){.screen-groups{grid-template-columns:repeat(3,minmax(0,1fr))}}@container manual-shell (min-width:580px) and (max-width:899px){.screen-groups{grid-template-columns:repeat(2,minmax(0,1fr))}}@container manual-shell (max-width:579px){.screen-groups{grid-template-columns:1fr}}}
.reader-controls{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;margin-top:8px;padding-top:7px;border-top:1px solid #dce9f0}.reader-search,.reader-text-tools{display:flex;align-items:center;gap:5px;flex-wrap:wrap}.reader-controls label,.reader-controls [role=status]{font-size:11px;color:#526d7d}.reader-search input{width:145px;max-width:100%;min-width:90px;padding:5px 7px;border:1px solid #bfd6e2;border-radius:5px;font-size:12px;background:white}.reader-controls button{min-height:30px;padding:4px 7px;font-size:11px}.reader-controls input:focus-visible,.reader-controls button:focus-visible{outline:2px solid #087da5;outline-offset:2px}.reader-controls [hidden]{display:none!important}.reader-text-tools{border-left:1px solid #d3e3ec;padding-left:9px}.reader-controls #reader-tool-status:empty{display:none}.reader-controls #reader-find-status:empty{display:none}
@media(max-width:600px){.reader-controls{align-items:flex-start}.reader-search{width:100%}.reader-search input{flex:1}.reader-text-tools{border-left:0;padding-left:0}}

/* Eye control stays inside its input; authentication behavior is unchanged. */
.auth .password-row.secret-row{position:relative;display:block}.auth .secret-row input{width:100%;padding-right:48px;min-height:44px}.auth .secret-row .password-toggle{position:absolute;right:4px;bottom:4px;width:40px;height:36px;min-height:36px;margin:0;padding:7px 10px;border:0;border-radius:5px;display:grid;place-items:center;background:transparent;color:#376c85;cursor:pointer}.auth .password-toggle svg{display:block;pointer-events:none}.auth .secret-row .password-toggle:hover{background:#e7f3fa;color:#075e81}.auth .secret-row .password-toggle:focus-visible{outline:2px solid #087da5;outline-offset:-2px;background:#edf7fc}.login-mode .auth-form{border-color:#cadfe9;border-top-color:#087da5;box-shadow:0 10px 30px #183e5012}.login-mode .password-row input{background:#fbfdff;transition:border-color .15s,background-color .15s}.login-mode .password-row input:hover{border-color:#86b4c9}.login-mode .password-row input:focus{background:#fff;border-color:#087da5}.login-mode .auth-form>h1{color:#183f55}.login-mode .powered-by{color:#627b89}@media(prefers-reduced-motion:reduce){.login-mode .password-row input{transition:none}}

/* Screen names are the links; no redundant CTA column or reserved space. */
.screen-groups .screen-row,.compact-ui .screen-groups .screen-row{min-height:30px;padding:5px 10px;gap:8px;align-items:center;border-radius:0}.screen-groups .screen-row>span:first-child{flex:1;min-width:0;overflow-wrap:anywhere;line-height:1.45}.screen-groups .coverage-badge{font-size:10px;color:#526d7d;background:#edf4f8;padding:2px 5px;border-radius:4px;max-width:40%;white-space:normal}.screen-groups a.screen-row:focus-visible{outline:2px solid #087da5;outline-offset:-2px;background:#edf7fc}.screen-group>summary{padding:7px 10px}.nav-module>summary:focus-visible{outline:2px solid #087da5;outline-offset:1px}

/* Full-width Find toolbar; genuine video action aligns at its far right. */
.manual-tools.reader-toolbar{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start}.reader-toolbar #manual-bookmark-slot{justify-self:end}.reader-toolbar .reader-controls{grid-column:1/-1;margin-top:0}.reader-controls .view-video-button{margin-left:auto;display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:32px;padding:5px 11px;border:1px solid #087da5;border-radius:6px;background:#087da5;color:#fff;font-size:12px;font-weight:600;white-space:nowrap}.reader-controls .view-video-button:hover{background:#066b90;border-color:#066b90}.reader-controls .view-video-button:focus-visible{outline:2px solid #087da5;outline-offset:3px}.reader-controls .video-play-icon{width:20px;height:20px;font-size:10px}.toolbar-video-player[hidden]{display:none!important}.toolbar-video-player{margin:7px 0 10px;padding:8px 10px}.toolbar-video-player .video-scope{margin-top:6px;font-size:11px;color:#526d7d}.video-scope summary{cursor:pointer}.toolbar-video-player .video-scope p{font-size:11px;margin:5px 0 0;line-height:1.45}@media(max-width:480px){.reader-toolbar .reader-navigation{grid-column:1/-1}.reader-toolbar #manual-bookmark-slot{grid-column:2}.reader-controls .view-video-button{margin-left:auto}}

/* Only the existing Modules-list controls; labels/actions remain unchanged. */
.sidebar .nav-tools{align-items:center;gap:5px}.sidebar .nav-tools button{display:inline-flex;align-items:center;justify-content:center;min-height:28px;padding:4px 7px;border:1px solid #a9cddd;border-radius:5px;background:#eef7fc;color:#175d7b;font-family:inherit;font-size:10px;font-weight:500;line-height:1.3;box-shadow:0 1px 1px #173b5006;white-space:nowrap}.sidebar .nav-tools #expand-modules{background:#087da5;border-color:#087da5;color:#fff}.sidebar .nav-tools button:hover:not(:disabled){background:#dceef8;border-color:#6eaac4;color:#174d66}.sidebar .nav-tools #expand-modules:hover:not(:disabled){background:#066b90;border-color:#066b90;color:#fff}.sidebar .nav-tools button:active:not(:disabled){background:#cce4f1;box-shadow:inset 0 1px 2px #173b5020}.sidebar .nav-tools #expand-modules:active:not(:disabled){background:#075c7b;border-color:#075c7b}.sidebar .nav-tools button:focus-visible{outline:2px solid #087da5;outline-offset:2px;box-shadow:0 0 0 2px #fff}.sidebar .nav-tools button:disabled{background:#edf2f5;border-color:#d1dde4;color:#6e8290;cursor:not-allowed;box-shadow:none}.sidebar .nav-tools button svg{width:14px;height:14px;stroke-width:1.8;flex-shrink:0}

/* Shared portal button family. Source manuals, screenshots and native video controls are separate. */
:root{--button-font:12px;--button-compact-font:11px;--button-radius:6px;--button-height:34px;--button-compact-height:30px;--button-border:#accddd;--button-text:#245b73;--button-bg:#fff;--button-hover:#e5f2fa;--button-primary:#087da5;--button-primary-hover:#066b90;--button-danger:#a4313c;--button-danger-bg:#fff4f4;--button-focus:#087da5}
button:not(.nav-backdrop),a.button{font-family:inherit;font-size:var(--button-font);font-weight:500;line-height:1.3;min-height:var(--button-height);padding:7px 11px;border:1px solid var(--button-border);border-radius:var(--button-radius);background:var(--button-bg);color:var(--button-text);vertical-align:middle;box-shadow:none;text-decoration:none;gap:6px}button:not(.nav-backdrop):hover:not(:disabled),a.button:hover{background:var(--button-hover);border-color:#74abc4}button:not(.nav-backdrop):active:not(:disabled),a.button:active{box-shadow:inset 0 1px 2px #173b501b}button:not(.nav-backdrop):focus-visible,a.button:focus-visible{outline:2px solid var(--button-focus);outline-offset:2px}button:not(.nav-backdrop):disabled{opacity:.55;cursor:not-allowed;box-shadow:none}
button.primary,.login-mode #auth>button.primary,.reader-controls .view-video-button,.sidebar .nav-tools #expand-modules{background:var(--button-primary);border-color:var(--button-primary);color:#fff;font-weight:600;border-radius:var(--button-radius)}button.primary:hover:not(:disabled),.login-mode #auth>button.primary:hover:not(:disabled),.reader-controls .view-video-button:hover:not(:disabled),.sidebar .nav-tools #expand-modules:hover:not(:disabled){background:var(--button-primary-hover);border-color:var(--button-primary-hover);color:#fff}
button.button-danger,button[data-unlink]{background:var(--button-danger-bg);color:var(--button-danger);border-color:#d8a5aa}button.button-danger:hover:not(:disabled),button[data-unlink]:hover:not(:disabled){background:#ffe5e7;border-color:var(--button-danger);color:#852631}button.button-danger:focus-visible{outline-color:var(--button-danger)}.tabs button.active,.reader-tabs button.active,button[data-bookmark-item][aria-pressed=true]{background:#e2f1f9;border-color:#79b7d0;color:#08648a}
.top-actions button,.sidebar .nav-tools button,.reader-controls button,.reader-toolbar button,.tabs button,.settings-grid .button{font-family:inherit;font-size:var(--button-compact-font);font-weight:500;line-height:1.3;min-height:var(--button-compact-height);padding:5px 8px;border-radius:var(--button-radius);gap:6px}.sidebar .nav-tools button{font-size:10px;padding:4px 5px;gap:4px}.reader-controls .view-video-button{font-size:12px;min-height:32px;padding:5px 11px}.auth #auth>button.primary{min-height:40px}.auth .secret-row .password-toggle{width:40px;height:36px;min-height:36px;padding:8px 11px;border:0;border-radius:var(--button-radius);background:transparent;color:var(--button-text)}.auth .secret-row .password-toggle:hover{background:var(--button-hover)}.auth .secret-row .password-toggle:focus-visible{outline:2px solid var(--button-focus);outline-offset:-2px}.auth .password-toggle svg{width:18px;height:18px}.sidebar button.nav-item{display:flex;align-items:center;text-align:left}
.button-icon{display:inline-block;width:16px;height:16px;flex:0 0 16px;vertical-align:-3px;stroke-width:1.8;pointer-events:none}button>.button-icon{margin-right:6px}.reader-controls button>.button-icon,.sidebar .nav-tools button>.button-icon,.sidebar button.nav-item>.button-icon{margin-right:0}.reader-controls button:has(>.button-icon),.sidebar .nav-tools button:has(>.button-icon),.sidebar button.nav-item:has(>.button-icon){display:inline-flex;align-items:center;justify-content:center}.reader-controls .video-play-icon .button-icon{margin:0;width:16px;height:16px}.reader-controls #reader-find-prev,.reader-controls #reader-find-next{width:30px;min-width:30px;padding:6px}

/* Native modal supplies focus containment; media never plays automatically. */
.sidebar .nav-tools button .button-icon{width:16px;height:16px}
dialog.toolbar-video-player{position:fixed;inset:0;margin:auto;width:min(900px,calc(100vw - 32px));max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);padding:12px;border:1px solid #accddd;border-radius:9px;background:#fff;box-shadow:0 18px 60px #173b5040;overflow:auto}
dialog.toolbar-video-player::backdrop{background:#102f49a6}
.video-dialog-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px;color:#245b73;font-size:14px;position:sticky;top:0;background:#fff;z-index:1}
.video-dialog-header #close-manual-video{display:grid;place-items:center;flex:0 0 34px;width:34px;height:34px;padding:8px}.video-dialog-header svg{width:18px;height:18px}
dialog.toolbar-video-player video{display:block;width:100%;max-width:100%;height:auto;max-height:calc(100dvh - 170px);aspect-ratio:auto;object-fit:contain;margin:0;background:#102531}
@media(max-width:560px){dialog.toolbar-video-player{width:calc(100vw - 16px);max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px);padding:8px}}

.sidebar .nav-tools #expand-modules,.sidebar .nav-tools #collapse-modules{width:30px;min-width:30px;height:30px;flex:0 0 30px;padding:6px;white-space:nowrap}.sidebar .nav-tools{flex-wrap:nowrap}.sidebar .nav-tools button>.button-icon{margin:0}
dialog.toolbar-video-player.video-dialog-fallback{display:block;z-index:10000;box-shadow:0 0 0 100vmax #102f49a6,0 18px 60px #173b5040}.video-error{color:#a4313c;font-size:12px;margin:8px 0}

/* Reserve actual video proportions before metadata/playback. Entity tkhd 1280x1040; Academic Register 1280x960. */
dialog.toolbar-video-player{--video-ratio:4/3;width:min(900px,calc(100vw - 32px),calc((100dvh - 170px)*4/3))}
dialog.toolbar-video-player[data-video-shape="entity"]{--video-ratio:16/13;width:min(900px,calc(100vw - 32px),calc((100dvh - 170px)*16/13))}
dialog.toolbar-video-player #manual-video-player{width:100%;aspect-ratio:var(--video-ratio);background:#102531;border-radius:5px;overflow:hidden}
dialog.toolbar-video-player video{width:100%;height:100%;max-height:none;aspect-ratio:var(--video-ratio);object-fit:contain}
.video-dialog-header strong{min-width:0;overflow-wrap:anywhere}
@media(max-width:560px){dialog.toolbar-video-player{width:min(calc(100vw - 16px),calc((100dvh - 170px)*4/3))}dialog.toolbar-video-player[data-video-shape="entity"]{width:min(calc(100vw - 16px),calc((100dvh - 170px)*16/13))}}

/* Chevron belongs to the summary row, never the expanded details container. */
.sidebar .nav-module>summary{display:grid;grid-template-columns:20px minmax(0,1fr) 16px;align-items:center;gap:9px;min-height:32px}
.sidebar .nav-module>summary>span{min-width:0;overflow-wrap:anywhere}
.sidebar .nav-module>summary::after{content:'';display:block;position:static;box-sizing:border-box;width:8px;height:8px;margin:0;justify-self:center;align-self:center;border:solid currentColor;border-width:0 1.8px 1.8px 0;transform:rotate(-45deg);transform-origin:center}
.sidebar .nav-module[open]>summary::after{transform:rotate(45deg)}

.video-dialog-header #fullscreen-manual-video{margin-left:auto;display:inline-flex;align-items:center;gap:6px;min-height:34px;padding:6px 9px;white-space:nowrap}.video-dialog-header #fullscreen-manual-video svg{width:16px;height:16px}
.video-fullscreen-surface:fullscreen{box-sizing:border-box;width:100vw;height:100dvh;padding:12px;display:flex;flex-direction:column;background:#102531;color:#fff;overflow:auto}
.video-fullscreen-surface:fullscreen .video-dialog-header{flex:0 0 auto;background:#fff;padding:6px 10px;border-radius:6px}
dialog.toolbar-video-player .video-fullscreen-surface:fullscreen #manual-video-player{flex:1;min-height:0;aspect-ratio:auto;display:flex;align-items:center;justify-content:center}
dialog.toolbar-video-player .video-fullscreen-surface:fullscreen video{width:100%;height:100%;max-height:100%;object-fit:contain}
.video-fullscreen-surface:fullscreen .video-scope{color:#fff;flex:0 0 auto}
@media(max-width:480px){.video-dialog-header{gap:6px}.video-dialog-header #fullscreen-manual-video{font-size:11px;padding:6px}}

/* Submodule route links share the compact button family; no source-manual overrides. */
.main .submodule-tabs{gap:6px;margin:10px 0;flex-wrap:wrap;overflow:visible}
.main .submodule-tabs .button{display:inline-flex;align-items:center;justify-content:center;font-family:inherit;font-size:var(--button-compact-font);font-weight:500;line-height:1.3;min-height:var(--button-compact-height);max-width:100%;padding:5px 8px;border:1px solid var(--button-border);border-radius:var(--button-radius);background:var(--button-bg);color:var(--button-text);white-space:normal;overflow-wrap:anywhere;text-align:center}
.main .submodule-tabs .button:hover{background:var(--button-hover);border-color:#74abc4}
.main .submodule-tabs .button[aria-current="page"]{background:#e2f1f9;border-color:#79b7d0;color:#08648a}
.main .submodule-tabs .button:focus-visible{outline:2px solid var(--button-focus);outline-offset:2px}
:root{--shell-search-font:13px;--shell-search-heading:20px}
.main .compact-search input{font-family:inherit;font-size:var(--shell-search-font);font-weight:400;line-height:1.4;min-width:0;width:100%;height:36px;padding:6px 10px;border-radius:var(--button-radius)}
.main .compact-search input::placeholder{font-size:inherit;line-height:inherit;color:#5c7482;opacity:1}
.main .compact-search label{font-size:12px;font-weight:500;line-height:1.4;margin-bottom:5px}
.main:has(>.compact-search)>h1,.main:has(>.compact-search)>.row h1{font-size:var(--shell-search-heading);font-weight:600;line-height:1.3;letter-spacing:-.2px;margin-bottom:6px;overflow-wrap:anywhere}

/* Group disclosures and submodule-name links share centered theme controls. */
.main .submodule-tabs .button{box-sizing:border-box;align-self:stretch;align-items:center;justify-content:center;margin:0;line-height:1.3}
.main .screen-group>summary{display:grid;grid-template-columns:12px minmax(0,1fr) auto;align-items:center;gap:8px;box-sizing:border-box;min-height:var(--button-height);padding:7px 10px;list-style:none;font-family:inherit;font-size:var(--button-font);font-weight:500;line-height:1.3;background:#eef7fc;color:var(--button-text);border:0;border-bottom:1px solid var(--button-border);border-radius:var(--button-radius) var(--button-radius) 0 0}
.main .screen-group>summary::-webkit-details-marker{display:none}
.main .screen-group>summary::before{content:'';width:6px;height:6px;box-sizing:border-box;border:solid currentColor;border-width:0 1.5px 1.5px 0;transform:rotate(-45deg);transform-origin:center;justify-self:center}
.main .screen-group[open]>summary::before{transform:rotate(45deg)}
.main .screen-group>summary .screen-group-title{margin:0;padding:0;background:none;border:0;min-width:0;font:inherit;line-height:inherit;white-space:normal;overflow-wrap:anywhere}
.main .screen-group>summary .screen-group-count{display:inline-flex;align-items:center;justify-content:center;margin:0;padding:2px 6px;min-width:22px;line-height:1.3;font-size:11px;background:#fff;border:1px solid #c8dfe9;border-radius:4px}
.main .screen-group>summary:hover{background:var(--button-hover)}
.main .screen-group>summary:focus-visible{outline:2px solid var(--button-focus);outline-offset:-2px}

/* Screen groups follow available main-content width, not viewport width.
   210px minimum per card + existing 12px gaps: 2=432, 3=654, 4=876, 5=1098. */
.main .screen-groups{grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr));gap:12px}
@supports(container-type:inline-size){
 @container manual-shell (max-width:431px){.main .screen-groups{grid-template-columns:minmax(0,1fr)}}
 @container manual-shell (min-width:432px) and (max-width:653px){.main .screen-groups{grid-template-columns:repeat(2,minmax(0,1fr))}}
 @container manual-shell (min-width:654px) and (max-width:875px){.main .screen-groups{grid-template-columns:repeat(3,minmax(0,1fr))}}
 @container manual-shell (min-width:876px) and (max-width:1097px){.main .screen-groups{grid-template-columns:repeat(4,minmax(0,1fr))}}
 @container manual-shell (min-width:1098px){.main .screen-groups{grid-template-columns:repeat(5,minmax(0,1fr))}}
}
.main .screen-groups>.screen-group{min-width:0;max-width:100%}

/* Screen-name finder replaces only the System Settings navigation entry. */
.sidebar-screen-search{margin:5px 5px 9px;padding:8px;border:1px solid #c8dfe9;border-radius:6px;background:#fff}
.sidebar-screen-search label{display:block;font-size:11px;font-weight:500;color:#245b73;margin-bottom:4px}
.sidebar-screen-search input{width:100%;min-width:0;height:32px;border:1px solid #accddd;border-radius:6px;padding:5px 7px;font:inherit;font-size:12px;line-height:1.4;background:#fbfdff}
.sidebar-screen-search p{font-size:10px;line-height:1.4;color:#526d7d;margin:5px 0 0}
#screen-name-results{max-height:300px;overflow:auto;margin-top:6px;border-top:1px solid #dce8ee}
#screen-name-results[hidden]{display:none}
#screen-name-results a{display:block;padding:7px 3px;border-bottom:1px solid #e4edf3;color:#245b73;text-decoration:none;overflow-wrap:anywhere}
#screen-name-results a strong{display:block;font-size:12px;font-weight:500;line-height:1.4}
#screen-name-results a span{display:block;font-size:10px;color:#5c7482;line-height:1.4;margin-top:2px}
#screen-name-results a:hover{background:#e5f2fa}.sidebar-screen-search input:focus-visible,#screen-name-results a:focus-visible{outline:2px solid #087da5;outline-offset:-2px}

/* Plain sidebar finder: no visible heading, card or idle instructions. */
.sidebar-screen-search{position:relative;margin:5px 5px 9px;padding:0;border:0;border-radius:0;background:transparent}
.sidebar-screen-search .screen-search-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.sidebar-screen-search input{display:block;background:#fff}
#screen-name-results:not([hidden]),.sidebar-screen-search .screen-search-no-match{position:absolute;top:100%;left:0;right:0;z-index:5;margin:3px 0 0;padding:5px 7px;border:1px solid #c8dfe9;border-radius:6px;background:#fff;box-shadow:0 4px 12px #173b5017}

/* Locale presentation keeps images and native video controls unmirrored. */
#manual-language{font:inherit;font-size:12px;min-height:30px;max-width:125px;padding:4px 7px;border:1px solid #accddd;border-radius:6px;background:#fff;color:#245b73}
#app[dir="rtl"] .sidebar,#app[dir="rtl"] .main{text-align:right}
#app[dir="rtl"] .sidebar .nav-tools .eyebrow{margin-right:0;margin-left:auto}
#app[dir="rtl"] .submodule-row{margin-left:5px;margin-right:25px;border-left:0;border-right:2px solid #d7e8ef}
#app[dir="rtl"] .header-brand .header-title{border-left:0;border-right:1px solid #c8dfe9;padding-left:0;padding-right:16px}
#app[dir="rtl"] .reader-controls .view-video-button{margin-left:0;margin-right:auto}
#app[dir="rtl"] .video-dialog-header #fullscreen-manual-video{margin-left:0;margin-right:auto}
#app[dir="rtl"] video{direction:ltr}

/* Logical trailing chevron: right in LTR, left in RTL; expansion always down. */
#app[dir="ltr"] .sidebar .nav-module>summary::after{transform:rotate(-45deg)}
#app[dir="rtl"] .sidebar .nav-module>summary::after{transform:rotate(135deg)}
#app[dir] .sidebar .nav-module[open]>summary::after{transform:rotate(45deg)}
.sidebar .nav-module>summary::after{grid-column:3;grid-row:1;align-self:center;justify-self:center;transform-origin:center}
#language-loading{position:fixed;z-index:10020;top:60px;inset-inline-end:18px;display:flex;align-items:center;gap:10px;max-width:calc(100vw - 32px);padding:12px 16px;border:1px solid #a9cddd;border-radius:7px;background:#f2f9fd;color:#174f69;box-shadow:0 5px 20px #173b5025;font-size:13px;line-height:1.4}
#language-loading[hidden]{display:none}#language-loading.loading::before{content:'';width:18px;height:18px;flex:0 0 18px;border:2px solid #b4d5e5;border-top-color:#087da5;border-radius:50%;animation:locale-loading-spin .8s linear infinite}
@keyframes locale-loading-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){#language-loading.loading::before{animation:none}}

#manual-language{width:150px;max-width:150px;padding-inline:10px 28px;flex:0 0 auto}@media(max-width:480px){#manual-language{width:125px;max-width:125px;padding-inline:8px 24px}}

/* Centered, moderately sized language status; existing lifecycle remains unchanged. */
#language-loading{top:50%;inset-inline-end:auto;left:50%;right:auto;transform:translate(-50%,-50%);flex-direction:column;justify-content:center;gap:14px;width:min(340px,calc(100vw - 32px));max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);overflow:auto;padding:24px 22px;text-align:center;font-size:14px;line-height:1.5;border-radius:10px;box-shadow:0 12px 38px #173b5030}
#language-loading.loading::before{width:40px;height:40px;flex:0 0 40px;border-width:3px}
#language-loading>span{display:block;overflow-wrap:anywhere}
@media(max-height:400px){#language-loading{padding:16px;gap:10px}#language-loading.loading::before{width:32px;height:32px;flex-basis:32px}}
