/* Preserve EUVIMED's navigator, isolate it from CareLit's global page geometry. */
body#carelit.euvimed-tree-page {height:100dvh;overflow:hidden;padding-top:0!important;}
body#carelit.euvimed-tree-page .ff-page {min-height:0;}
body#carelit.euvimed-tree-page .ff-mainnav-wrap {margin-bottom:0!important;}
body#carelit .journal-tree-main {
 --cadet:#159aa6;--cadet-dark:#0f7480;--cadet-deep:#082f49;--cadet-soft:#ddf3f4;
 --ink:#172326;--muted:#627276;--line:#d7e1e2;--paper:#fff;--canvas:#f4f7f7;
 --amber:#f2a321;--amber-soft:#fff3de;--coral:#c85b50;--coral-soft:#fbe8e6;--green:#397b5d;--green-soft:#e4f3eb;
 height:var(--tree-available-height,calc(100dvh - 155px));min-height:0;flex:none;margin:0!important;
 width:100%;max-width:none!important;padding:0!important;
 color:var(--ink);font-size:16px;line-height:1.5;
}
.journal-tree-main button,.journal-tree-main input,.journal-tree-main select {font-family:inherit;color:inherit;letter-spacing:0;}
.journal-tree-main a {color:inherit;}
body#carelit.euvimed-tree-page .journal-tree-main .tree-detail-actions a.primary,body#carelit.euvimed-tree-page .journal-tree-main .tree-detail-actions a.primary i {color:white!important;}
.journal-tree-main .explorer-eyebrow {margin:0 0 6px;color:var(--cadet-dark);font-size:14px;font-weight:850;text-transform:uppercase;}
.journal-tree-main h1,.journal-tree-main h2,.journal-tree-main h3 {color:inherit;}
.journal-tree-main .tree-overview-hero {color:white;}
body#carelit.euvimed-tree-page .journal-tree-main .tree-overview-hero :is(h1,h2,h3,p){color:#fff!important;}
body#carelit.euvimed-tree-page .journal-tree-main .tree-overview-hero .explorer-eyebrow{color:#c4f2ef!important;}
.journal-tree-main .tree-pane>header>div,.journal-tree-main .tree-inspector>header>div {min-width:0;overflow-wrap:anywhere;}
.journal-tree-main .tree-pane>header>b {flex-shrink:0;max-width:45%;font-size:clamp(14px,1.5vw,20px);overflow-wrap:anywhere;}
.journal-tree-main #treeCloseInspector {flex:0 0 40px;}
.tree-archive-pages {display:flex;gap:6px;align-items:center;flex-wrap:wrap;padding:10px;border-top:1px solid #d7e1e2;}
.journal-tree-main .tree-issues {grid-template-rows:var(--tree-header) 43px minmax(0,1fr) auto;}
.tree-archive-pages button {border:1px solid #b8ced0;background:white;border-radius:4px;padding:5px 8px;}
.tree-archive-pages small {flex-basis:100%;}
.tree-detail-actions {flex-wrap:wrap;}
/* Two compact command rows; optional filters occupy space only when expanded. */
body#carelit.euvimed-tree-page .journal-tree-main{--tree-header:38px;grid-template-rows:auto auto auto minmax(0,1fr)}
body#carelit.euvimed-tree-page .tree-commandbar{min-height:44px;grid-template-columns:auto minmax(0,1fr) auto;gap:12px;padding:5px 12px}
body#carelit.euvimed-tree-page .tree-title{display:flex;flex-wrap:nowrap;gap:8px}
body#carelit.euvimed-tree-page .tree-title h1{font-size:19px!important;line-height:1.2;flex-basis:auto;margin:0!important}
body#carelit.euvimed-tree-page .tree-title>i{color:#087c88;font-size:20px}
body#carelit.euvimed-tree-page .tree-command-actions>span{font-size:12px}
body#carelit.euvimed-tree-page .tree-command-actions button{width:32px;height:32px;justify-content:center;padding:0}
body#carelit.euvimed-tree-page .tree-filter-toggle{width:auto;grid-template-columns:20px auto 18px;gap:5px;padding:4px 8px;background:#e5f1f1;font-size:12px;min-height:30px}
body#carelit.euvimed-tree-page .tree-filter-toggle small{display:none}
body#carelit.euvimed-tree-page .tree-breadcrumbs{min-height:34px;padding:2px 10px}
body#carelit.euvimed-tree-page .tree-breadcrumbs button{height:28px;font-size:12px}
body#carelit.euvimed-tree-page .tree-smartbar{min-height:0;padding:0;border:0}
body#carelit.euvimed-tree-page .tree-smartbar.open{padding:8px 12px;border-bottom:1px solid #c6dadc}
body#carelit.euvimed-tree-page .tree-filter-controls{gap:8px;padding:0;flex-wrap:wrap}
body#carelit.euvimed-tree-page .tree-filter-controls>label{flex:1 1 150px;min-width:0}
body#carelit.euvimed-tree-page .tree-filter-controls :is(input,select){width:100%;height:34px!important;min-height:0!important;padding:5px 8px!important;font-size:12px!important;border:1px solid #bcd3d5;border-radius:4px;box-shadow:none!important}
body#carelit.euvimed-tree-page .tree-filter-controls label>span{font-size:11px}
body#carelit.euvimed-tree-page .tree-article-tools{flex:1 1 350px;border:0;padding:0;align-self:end}
body#carelit.euvimed-tree-page .tree-article-filters{flex:1 1 100%;padding:0;border:0;flex-wrap:wrap}
body#carelit.euvimed-tree-page .tree-navigator-head{display:none}
body#carelit.euvimed-tree-page .tree-navigator{grid-template-rows:36px minmax(0,1fr)}
body#carelit.euvimed-tree-page .tree-navigator-tabs{grid-template-columns:1fr 1fr}
body#carelit.euvimed-tree-page .tree-pane>header{min-height:38px;padding:5px 9px}
body#carelit.euvimed-tree-page .tree-pane>header h2{font-size:15px!important;margin:0!important}
body#carelit.euvimed-tree-page .tree-pane>header div>span{display:none}
body#carelit.euvimed-tree-page .tree-catalog-head{position:relative;gap:6px;overflow:visible}
body#carelit.euvimed-tree-page .tree-mini-search{display:flex;align-items:center;gap:5px;flex:1;min-width:0;margin:0;color:#087c88}
body#carelit.euvimed-tree-page .tree-mini-search input{width:100%;min-width:0;height:28px!important;min-height:0!important;border:1px solid #bcd3d5!important;border-radius:4px!important;background:#fff!important;color:#192b30!important;padding:3px 6px!important;font-size:12px!important;box-shadow:none!important}
body#carelit.euvimed-tree-page .tree-mini-search input:focus{outline:2px solid #087c88;outline-offset:1px}
body#carelit.euvimed-tree-page .tree-catalog-head>b{font-size:12px;padding:2px 5px}
body#carelit.euvimed-tree-page #treeJournalSuggestions{position:absolute;top:100%;left:6px;right:6px;z-index:20;max-height:min(320px,45vh);overflow-y:auto;background:#fff;border:1px solid #bcd3d5;box-shadow:0 5px 14px #082f4926;border-radius:4px}
body#carelit.euvimed-tree-page #treeJournalSuggestions[hidden]{display:none}
body#carelit.euvimed-tree-page #treeJournalSuggestions button{display:block;width:100%;padding:7px 9px;border:0;border-bottom:1px solid #e4eded;border-radius:0!important;text-align:left;background:#fff;color:#192b30;font-size:12px}
body#carelit.euvimed-tree-page #treeJournalSuggestions button:is(:hover,[aria-selected="true"]){background:#e3f2f1}
body#carelit.euvimed-tree-page #treeJournalSuggestions strong{display:block;font-size:12px;overflow-wrap:anywhere}
body#carelit.euvimed-tree-page #treeJournalSuggestions small{display:block;font-size:10px;color:#587178}
body#carelit.euvimed-tree-page .tree-years{grid-template-rows:38px 34px minmax(0,1fr) auto}
body#carelit.euvimed-tree-page .tree-articles{grid-template-rows:38px auto minmax(0,1fr)}
/* Filters live in the command bar; the article list belongs to the third pane row. */
body#carelit.euvimed-tree-page .tree-articles>.tree-article-list{grid-row:3}
body#carelit.euvimed-tree-page .tree-enrichment-status{font-size:11px;padding:4px 8px;min-height:0}
body#carelit.euvimed-tree-page .eu-tree-year{border-bottom:1px solid #d7e1e2}
body#carelit.euvimed-tree-page .eu-tree-year-toggle,body#carelit.euvimed-tree-page .eu-tree-issue{display:flex;align-items:center;gap:8px;width:100%;padding:9px;border:0;background:#fff;text-align:left;color:#183d47;font-size:13px}
body#carelit.euvimed-tree-page .eu-tree-year-toggle b,body#carelit.euvimed-tree-page .eu-tree-issue b{margin-left:auto;font-size:11px;font-weight:400}
body#carelit.euvimed-tree-page .eu-tree-issues{border-left:2px solid #b7d6d8;margin:0 5px 8px 17px;padding-left:5px}
body#carelit.euvimed-tree-page .eu-tree-issue span{min-width:0;overflow-wrap:anywhere}
body#carelit.euvimed-tree-page .eu-tree-year button.selected{background:#e5f3f2}
body#carelit.euvimed-tree-page .tree-article-select{grid-template-columns:54px minmax(0,1fr) 18px}
body#carelit.euvimed-tree-page .eu-tree-preview{width:54px;height:72px;object-fit:contain;background:white;border:1px solid #d6e2e3;align-self:start}
body#carelit.euvimed-tree-page .tree-article-row>.eu-fulltext-link{grid-column:1/-1;justify-self:start;margin:0 9px 7px 72px}
@media(max-width:700px){body#carelit.euvimed-tree-page .tree-commandbar{gap:6px;grid-template-columns:auto 1fr auto}body#carelit.euvimed-tree-page .tree-command-actions>span{display:none}body#carelit.euvimed-tree-page .tree-filter-toggle{font-size:11px}body#carelit.euvimed-tree-page .tree-title h1{font-size:17px!important}body#carelit.euvimed-tree-page .tree-smartbar.open{max-height:40vh;overflow:auto}}
.explorer-toast {position:fixed;bottom:24px;left:50%;transform:translateX(-50%);max-width:calc(100vw - 32px);padding:12px 20px;border-radius:8px;background:#082f49;color:white;z-index:99999;opacity:0;pointer-events:none;}
.explorer-toast.visible {opacity:1;}
.explorer-toast.error {background:#a3352b;}
.explorer-spin {display:inline-block;animation:tree-spin 1s linear infinite;}
@keyframes tree-spin {to {transform:rotate(360deg);}}
@media(max-width:991px) {body#carelit.euvimed-tree-page .ff-mainnav-wrap:not(:has(.show,.collapsing)),body#carelit.euvimed-tree-page .ff-mainnav-wrap:not(:has(.show,.collapsing)) .ff-mainnav {height:0!important;min-height:0!important;padding:0!important;}}
@media(max-width:600px) {.journal-tree-main .tree-command-actions>span {white-space:normal;}.journal-tree-main .tree-title>span {white-space:normal;}}
