/* Second pass: normalize legacy header internals and application rhythm. */
:root{--iivd-shell-control:40px}
.iivd-app-header .iivd-shell-inner{min-height:0;max-height:100%;gap:16px;line-height:20px}
.iivd-app-header .iivd-shell-brand{font-weight:650;line-height:24px}
.iivd-app-header .iivd-shell-app{font-size:17px;font-weight:600;line-height:24px}
.iivd-app-header .iivd-shell-divider{height:20px}
.iivd-app-header .iivd-shell-actions,.iivd-app-header .iivd-shell-switch{height:var(--iivd-shell-control);min-height:0;line-height:20px}
.iivd-app-header .iivd-shell-switch summary{height:var(--iivd-shell-control);margin:0;padding:0 8px;line-height:20px;font-size:14px}
.iivd-app-header .iivd-shell-ask{display:flex;align-items:center;height:var(--iivd-shell-control);padding:0;line-height:20px;color:#617287}
.iivd-app-header .iivd-shell-menu{top:calc(100% + (var(--iivd-shell-height) - var(--iivd-shell-control))/2 + 9px);line-height:21px}
body.iivd-app-surface{background:#f5f7f9;color:#21364a;--bg:#f5f7f9;--surface:#fff;--surface-2:#edf1f4;--border:#e0e6eb;--line:#e0e6eb;--text:#21364a;--brand-ink:#21364a;--muted:#66788a;--faint:#7c8d9e;color-scheme:light}
/* The business navigation starts 20px below the common header on every app. */
body.iivd-app-surface>main{padding-top:20px}
body.iivd-app-surface>main .library.wrap{padding-top:0}
body.iivd-app-surface .tool-tabs,body.iivd-app-surface .toolbox-view-tabs,body.iivd-app-surface .library-toolbar .tabs,body.iivd-app-surface .proc-business-bar nav{display:flex;align-items:stretch;gap:24px;height:48px;min-height:48px;margin:0;padding:0;flex-wrap:nowrap}
body.iivd-app-surface .tool-tabs,body.iivd-app-surface .toolbox-view-tabs{margin-bottom:20px;border-bottom:1px solid #e0e6eb}
body.iivd-app-surface .tool-tabs>a,body.iivd-app-surface .toolbox-view-tabs>button,body.iivd-app-surface .library-toolbar .tabs>button,body.iivd-app-surface .proc-business-bar nav>a{display:flex;align-items:center;flex:none;gap:7px;height:48px;box-sizing:border-box;padding:0 0 2px;margin:0;background:none;border:0;border-radius:0;border-bottom:2px solid transparent;font-size:16px;line-height:24px;font-weight:500;color:#66788a;white-space:nowrap;text-decoration:none;cursor:pointer}
body.iivd-app-surface .tool-tabs>a.selected,body.iivd-app-surface .toolbox-view-tabs>button.is-active,body.iivd-app-surface .library-toolbar .tabs>button[aria-selected=true],body.iivd-app-surface .proc-business-bar nav>a.active{color:#ac541d;font-weight:650;border-bottom-color:#d76b28;background:none}
body.iivd-app-surface .library-toolbar .tabs>button:after{display:none}
body.iivd-app-surface .library-toolbar{min-height:48px;align-items:center;border-bottom:1px solid #e0e6eb}
body.iivd-app-surface .library-toolbar .tabs>button span,body.iivd-app-surface .toolbox-view-tabs>button span{font-size:12px;font-weight:400;color:#7c8d9e}
body.iivd-app-surface .library-toolbar .search-form{height:40px}
body.iivd-app-surface .proc-business-bar{margin:20px auto 0;padding-top:0;padding-bottom:0}
/* Keep the medical title and view switch in a single compact row. */
body.iivd-app-surface .query-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 18px;min-height:40px}
body.iivd-app-surface .query-toolbar .query-head{margin:0;padding:0;flex:none}
body.iivd-app-surface .query-toolbar .query-head h1{margin:0;font-size:18px;font-weight:650;line-height:28px}
body.iivd-app-surface .query-toolbar .query-subnav{display:flex;gap:3px;margin:0;padding:3px;border:0;border-radius:8px;background:#eaf0f4;font-size:13px;line-height:20px}
body.iivd-app-surface .query-toolbar .query-subnav>a{padding:6px 12px;border:0;border-radius:5px;white-space:nowrap;color:#66788a;text-decoration:none}
body.iivd-app-surface .query-toolbar .query-subnav>a[aria-current=page]{background:#fff;color:#21364a;box-shadow:0 1px 3px #21364a0c}
body.iivd-app-surface .query-toolbar .query-subnav .query-return{margin-left:5px;color:#246b90}
/* Toolbox search and purpose sit together rather than in a tall introduction. */
body.iivd-app-surface .iivd-toolbox-hero{display:grid;grid-template-columns:minmax(300px,.9fr) minmax(440px,1.2fr);column-gap:32px;row-gap:8px;padding:0 0 20px}
body.iivd-app-surface .iivd-toolbox-hero-top{grid-column:1;grid-row:1;align-self:center}
body.iivd-app-surface .iivd-toolbox-title{font-size:24px;line-height:32px}
body.iivd-app-surface .iivd-toolbox-subtitle{font-size:13px;line-height:21px;margin:4px 0 0}
body.iivd-app-surface .iivd-toolbox-search-row{grid-column:2;grid-row:1;align-self:center;gap:10px}
body.iivd-app-surface .iivd-toolbox-search input,body.iivd-app-surface .iivd-toolbox-region{height:44px}
body.iivd-app-surface .iivd-toolbox-meta{grid-column:1/-1;margin:0;gap:16px;font-size:11px;line-height:20px}
body.iivd-app-surface .iivd-toolbox-meta strong{font-size:12px}
body.iivd-app-surface .iivd-toolbox-collections{margin-bottom:20px}
body.iivd-app-surface .toolbox-common-title{margin:0 0 8px;font-size:13px}
body.iivd-app-surface #iivdCommonTools{background:transparent;border:0;display:flex;align-items:flex-start;gap:8px}
body.iivd-app-surface #iivdCommonQuickList{flex:1;min-width:0;display:flex;flex-wrap:wrap;gap:8px;background:transparent}
body.iivd-app-surface .iivd-toolbox-quick{padding:6px 10px;border:1px solid #e0e6eb;background:#fff;font-size:12px;line-height:20px;border-radius:6px;white-space:normal}
body.iivd-app-surface #iivdCommonTools:not(.is-expanded) #iivdCommonQuickList>a:nth-child(n+7){display:none}
body.iivd-app-surface .toolbox-common-more{flex:none;border:0;background:none;color:#617287;font:inherit;font-size:12px;padding:6px 3px;min-height:32px;cursor:pointer;white-space:nowrap}
body.iivd-app-surface .toolbox-common-more[data-count="5"],body.iivd-app-surface .toolbox-common-more[data-count="6"]{display:none}
/* Natural title height removes the empty line under one-line tool names. */
body.iivd-app-surface .iivd-toolbox-card{min-height:0}
body.iivd-app-surface .iivd-toolbox-card-link{padding:16px 16px 12px}
body.iivd-app-surface .iivd-toolbox-card-top{min-height:0;line-height:23px}
body.iivd-app-surface .iivd-toolbox-card-name{min-height:0;font-size:15px;line-height:23px}
body.iivd-app-surface .iivd-toolbox-description{min-height:0;margin:6px 0 10px;font-size:13px;line-height:21px;color:#66788a}
body.iivd-app-surface .iivd-toolbox-card-foot{font-size:12px;line-height:18px;color:#728394}
body.iivd-app-surface .iivd-toolbox-card-actions{padding:3px 10px}
body.iivd-app-surface .iivd-toolbox-action{font-size:12px;min-height:32px;padding:4px 6px;line-height:20px;color:#728394}
body.iivd-app-surface .iivd-toolbox-badge{font-size:11px;line-height:17px}
/* Academy retains cover proportions and learning-state colours. */
body.iivd-app-surface .course-card{border-color:#e0e6eb}
body.iivd-app-surface .course-body{padding:12px 16px 14px}
body.iivd-app-surface .course-category{font-size:12px;color:#728394}
body.iivd-app-surface .course-title{min-height:0;margin-top:6px;font-size:16px;line-height:24px;color:#21364a}
body.iivd-app-surface .course-footer{margin:0 16px;padding:10px 0 12px;font-size:12px;border-color:#e8edf1}
body.iivd-app-surface .course-footer a{font-size:12px;color:#617287}
@media(max-width:1100px){body.iivd-app-surface .iivd-toolbox-hero{grid-template-columns:minmax(0,1fr);row-gap:10px}body.iivd-app-surface .iivd-toolbox-hero-top,body.iivd-app-surface .iivd-toolbox-search-row,body.iivd-app-surface .iivd-toolbox-meta{grid-column:1;grid-row:auto}}
@media(max-width:700px){body.iivd-app-surface .library-toolbar{height:auto;gap:12px;align-items:stretch;border-bottom:0}body.iivd-app-surface .library-toolbar .tabs{justify-content:space-between;gap:12px;border-bottom:1px solid #e0e6eb}body.iivd-app-surface .iivd-toolbox-hero{padding-bottom:16px}body.iivd-app-surface .iivd-toolbox-title{font-size:22px;line-height:30px}body.iivd-app-surface .iivd-toolbox-subtitle{font-size:12px;line-height:20px}body.iivd-app-surface #iivdCommonTools{flex-wrap:wrap}body.iivd-app-surface #iivdCommonQuickList{flex-basis:100%}body.iivd-app-surface #iivdCommonTools:not(.is-expanded) #iivdCommonQuickList>a:nth-child(n+5){display:none}body.iivd-app-surface .toolbox-common-more[data-count]{display:block;padding:2px 0;min-height:30px}body.iivd-app-surface .iivd-toolbox-card-actions{padding:2px 10px}body.iivd-app-surface .iivd-toolbox-action{min-height:36px}body.iivd-app-surface .course-body{padding:11px 12px 9px}body.iivd-app-surface .course-title{font-size:14px;line-height:21px}body.iivd-app-surface .course-category{font-size:11px}body.iivd-app-surface .course-footer{margin:0 12px;padding:8px 0 10px}}
@media(max-width:600px){:root{--iivd-shell-control:44px}.iivd-app-header .iivd-shell-inner{gap:10px}.iivd-app-header .iivd-shell-app{font-size:15px;line-height:22px}.iivd-app-header .iivd-shell-divider{height:18px}.iivd-app-header .iivd-shell-switch summary{font-size:13px}body.iivd-app-surface>main{padding-top:12px}body.iivd-app-surface .proc-business-bar{margin-top:12px}body.iivd-app-surface .tool-tabs,body.iivd-app-surface .toolbox-view-tabs,body.iivd-app-surface .library-toolbar .tabs,body.iivd-app-surface .proc-business-bar nav{gap:20px;height:44px;min-height:44px}body.iivd-app-surface .tool-tabs>a,body.iivd-app-surface .toolbox-view-tabs>button,body.iivd-app-surface .library-toolbar .tabs>button,body.iivd-app-surface .proc-business-bar nav>a{height:44px;font-size:14px;line-height:22px}body.iivd-app-surface .library-toolbar .tabs{gap:8px}body.iivd-app-surface .library-toolbar .tabs>button{gap:4px}body.iivd-app-surface .library-toolbar .tabs>button span{font-size:10px}body.iivd-app-surface .query-toolbar{flex-direction:column;align-items:flex-start;gap:9px;margin-bottom:14px}body.iivd-app-surface .query-toolbar .query-head h1{font-size:17px;line-height:26px}body.iivd-app-surface .query-toolbar .query-subnav{max-width:100%;flex-wrap:wrap;gap:3px}body.iivd-app-surface .query-toolbar .query-subnav>a{padding:6px 9px;font-size:12px}body.iivd-app-surface .query-toolbar .query-subnav .query-return{margin-left:0}body.iivd-app-surface .iivd-toolbox-meta{gap:12px}body.iivd-app-surface .iivd-toolbox-region{height:40px}}
@media(max-width:700px){body.iivd-app-surface .toolbox-filters-inline .iivd-toolbox-search-row{display:flex;flex-wrap:wrap;gap:10px}body.iivd-app-surface .toolbox-filters-inline .iivd-toolbox-search{flex-basis:100%}body.iivd-app-surface .toolbox-filters-inline .iivd-toolbox-region,body.iivd-app-surface .toolbox-filters-inline .iivd-toolbox-search-row>#toolboxCategory{display:block;flex:1 1 0;min-width:0;width:0;margin:0;height:40px;font-size:13px}body.iivd-app-surface .toolbox-filters-inline .toolbox-sidebar{display:none}}
