:root { --primary: #155d5c; --btn-primary: #155d5c; }
.navbar-home img { width:112px !important; max-height:42px !important; object-fit:contain; }
.navbar-home { width:auto !important; padding-right:20px; }
.for-login .app-logo { width:180px !important; max-height:90px !important; object-fit:contain; }
body .navbar .dropdown-help, .footer-powered { display:none !important; }
.navbar { box-shadow:0 1px 0 var(--border-color); }
#toolbar-user { min-width:210px; padding:8px; border-radius:12px; }
#toolbar-user .dropdown-item { padding:11px 14px; border-radius:8px; }
.latreia-mission-desk #navbar-breadcrumbs,
.latreia-mission-desk .navbar form[role="search"] { display:none !important; }
.latreia-mission-desk .page-head { border-bottom:none; }
.latreia-mission-desk .page-head .menu-btn-group,
.latreia-mission-desk .page-head .actions-btn-group { display:none !important; }
.latreia-settings { max-width:900px; margin:24px auto; }
.latreia-settings-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:16px; }
.latreia-settings a { display:block; padding:24px; border:1px solid var(--border-color); border-radius:14px; color:var(--text-color); background:var(--card-bg); }
.latreia-settings a:hover { border-color:#155d5c; text-decoration:none; }
.latreia-hq { max-width:1240px; margin:auto; padding:8px 0 40px; }
.lh-hero { background:#163b35; color:#fff; padding:28px 32px; border-radius:18px; margin-bottom:20px; }
.lh-hero h2 { color:inherit; margin:8px 0; font-size:28px; }
.lh-hero p { color:#d3e3dc; margin:8px 0 0; }
.lh-eyebrow { font-size:11px; letter-spacing:1.6px; text-transform:uppercase; color:#c4b281; }
.lh-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:16px; }
.lh-card { text-align:left; width:100%; padding:24px; border:1px solid var(--border-color); border-radius:14px; background:var(--card-bg); color:var(--text-color); cursor:pointer; transition:box-shadow .15s,transform .15s; }
.lh-card:hover { border-color:#668e7e; box-shadow:0 5px 18px #163b3510; transform:translateY(-2px); }
.lh-card:focus-visible { outline:3px solid #82b6aa; outline-offset:3px; }
.lh-card h3 { font-size:18px; line-height:1.45; margin:16px 0 10px; }
.lh-tag { font-size:12px; background:#e7eee9; color:#234d3d; padding:5px 9px; border-radius:6px; }
.lh-bar { background:#e4e9e5; height:6px; border-radius:6px; margin:16px 0 10px; }
.lh-bar span { display:block; background:#648674; height:100%; border-radius:6px; }
.lh-stats { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; margin:16px 0 24px; }
.lh-stat { min-width:0; border:1px solid var(--border-color); border-radius:12px; padding:18px; }
.lh-stat strong { display:block; font-size:26px; margin-top:6px; }
.lh-tabs { display:flex; gap:6px; overflow:auto; margin:20px 0; padding-bottom:5px; }
.lh-tabs button { white-space:nowrap; }
.lh-tabs button[aria-selected="true"] { background:#155d5c; color:#fff; border-color:#155d5c; }
.lh-subtabs { display:flex; gap:8px; flex-wrap:wrap; }
.lh-subtabs:not(:empty) { margin-bottom:20px; }
.lh-subtabs button[aria-selected="true"] { border-color:#155d5c; color:#155d5c; background:#e7eee9; }
.lh-table { width:100%; border-collapse:collapse; }
.lh-table th,.lh-table td { padding:12px; text-align:left; border-bottom:1px solid var(--border-color); }
.lh-table th { font-size:11px; text-transform:uppercase; letter-spacing:.5px; color:var(--text-muted); }
.lh-panel { overflow:auto; border:1px solid var(--border-color); border-radius:12px; padding:22px; }
.lh-note { padding:12px 16px; background:#fff4da; color:#695221; border-radius:8px; margin:16px 0; }
.lh-tools { display:flex; align-items:center; gap:10px; margin:16px 0 24px; flex-wrap:wrap; }
.lh-tools input { flex:1; min-width:180px; max-width:430px; }
.lh-tools select { width:190px; }
.lh-tools .lh-links { display:flex; gap:8px; margin-left:auto; }
.lh-empty { padding:40px 20px; text-align:center; grid-column:1/-1; color:var(--text-muted); }
.lh-error { padding:24px; border:1px solid var(--border-color); border-radius:12px; }
.lh-loading { padding:50px 20px; color:var(--text-muted); text-align:center; }
@media(max-width:600px) {
  .lh-hero { padding:22px; } .lh-hero h2 { font-size:23px; }
  .lh-stats { gap:8px; } .lh-stat { padding:12px; font-size:12px; }
  .lh-stat strong { font-size:22px; } .lh-table td { padding:8px; }
  .lh-tools input { min-width:100%; max-width:none; }
  .lh-tools select { flex:1; } .lh-tools .lh-links { margin-left:0; }
}

.latreia-workspace { display:grid; grid-template-columns:220px minmax(0,1fr); gap:32px; align-items:start; }
.lh-sidebar { position:sticky; top:76px; border-right:1px solid var(--border-color); padding:20px 20px 24px 0; min-height:75vh; }
.lh-sidebar-brand { font-weight:600; font-size:16px; margin-bottom:22px; }
.lh-create { width:100%; margin-bottom:24px; }
.lh-nav-label { font-size:11px; text-transform:uppercase; color:var(--text-muted); letter-spacing:1px; margin:0 12px 10px; }
.lh-nav-item { display:block; width:100%; border:0; border-radius:8px; padding:12px; margin:3px 0; text-align:left; background:transparent; color:var(--text-color); }
.lh-nav-item:hover, .lh-nav-item[aria-current="page"] { background:#e7eee9; color:#155d5c; }
.lh-sidebar-note { margin:28px 12px 0; font-size:12px; color:var(--text-muted); line-height:1.6; }
.latreia-workspace .latreia-hq { margin:0; width:100%; padding-top:20px; }
.lh-welcome { margin-bottom:26px; }
.lh-welcome h2 { font-size:30px; margin:8px 0; }
.lh-welcome p { color:var(--text-muted); }
.lh-welcome .lh-eyebrow { color:#155d5c; }
.lh-section-title { font-size:18px; margin-bottom:16px; }
.lh-home-panels { display:grid; grid-template-columns:1fr 1fr; gap:18px; margin-top:24px; }
.lh-home-panels h3 { font-size:18px; margin:0 0 16px; }
.lh-section-heading { display:flex; align-items:baseline; justify-content:space-between; gap:12px; }
.lh-attention { display:block; width:100%; text-align:left; padding:14px 0; border:0; border-bottom:1px solid var(--border-color); background:transparent; color:var(--text-color); }
.lh-attention span { display:block; color:var(--text-muted); font-size:12px; margin-top:4px; }
.lh-person { display:flex; align-items:center; gap:12px; padding:10px 0; border:0; background:transparent; width:100%; text-align:left; color:var(--text-color); }
.lh-person small { display:block; color:var(--text-muted); margin-top:3px; }
.lh-avatar { display:flex; align-items:center; justify-content:center; width:36px; height:36px; flex-shrink:0; background:#e7eee9; color:#155d5c; border-radius:50%; font-size:12px; }
.lh-nav-item:focus-visible,.lh-person:focus-visible,.lh-attention:focus-visible { outline:2px solid #155d5c; outline-offset:2px; }
@media(max-width:900px) { .latreia-workspace {grid-template-columns:170px minmax(0,1fr);gap:18px;} .lh-home-panels {grid-template-columns:1fr;} }
@media(max-width:600px) { .latreia-workspace {display:block;} .lh-sidebar {position:static;min-height:0;border-right:0;border-bottom:1px solid var(--border-color);padding:10px 0;display:flex;flex-wrap:wrap;gap:6px;} .lh-sidebar-brand,.lh-nav-label,.lh-sidebar-note {display:none;} .lh-nav-item,.lh-create {width:auto;margin:0;padding:9px 12px;} .lh-welcome h2 {font-size:25px;} }

/* Keep workspace navigation outside the router's page containers. */
.latreia-workspace-shell #body { margin-left:240px; min-width:0; }
#latreia-navigation { position:fixed; left:0; top:var(--latreia-navbar-height,60px); bottom:0; width:220px; min-height:0; padding:24px 16px; overflow-y:auto; background:var(--card-bg); z-index:100; }
.latreia-workspace-shell .latreia-hq { width:100%; padding-top:20px; }
@media(max-width:900px) { .latreia-workspace-shell #body {margin-left:190px;} #latreia-navigation {width:180px;padding:20px 12px;} }
@media(max-width:600px) { .latreia-workspace-shell #body {margin-left:0;} #latreia-navigation {position:sticky;top:var(--latreia-navbar-height,60px);width:100%;bottom:auto;display:flex;flex-wrap:nowrap;overflow-x:auto;gap:6px;padding:8px 12px;border-right:0;border-bottom:1px solid var(--border-color);} #latreia-navigation .lh-nav-item,#latreia-navigation .lh-create {flex-shrink:0;white-space:nowrap;} }
@media print { #latreia-navigation {display:none!important;} .latreia-workspace-shell #body {margin-left:0;} }
