/* A smaller, task-based navigation. The content routes and work records remain unchanged. */
body.mamoste-atlas .sidebar{width:260px;padding:22px 14px 16px;background:#fff;border-right:1px solid #dce8df}
body.mamoste-atlas .shell{margin-left:260px}
body.mamoste-atlas .sidebar .brand{gap:10px;margin:0 8px 22px;min-height:58px}
body.mamoste-atlas .sidebar .mamoste-mark{width:48px;height:48px;flex-shrink:0}
body.mamoste-atlas .sidebar .brand-name{font-size:31px;letter-spacing:-1.2px}
body.mamoste-atlas .sidebar .brand-name small{font-size:11px;letter-spacing:2px;margin-top:7px}
body.mamoste-atlas #nav{display:block}
body.mamoste-atlas .nav-section{display:grid;gap:3px;margin-bottom:18px}
body.mamoste-atlas .nav-section-label{padding:0 12px;margin:0 0 7px;color:#6b8173;font-size:12px;line-height:1.5;font-weight:700;letter-spacing:.8px}
body.mamoste-atlas #nav a{display:flex;align-items:center;gap:11px;min-height:44px;padding:9px 12px;border:1px solid transparent;border-radius:9px;color:#41614f;font-size:16px!important;font-weight:550;line-height:1.35;text-decoration:none}
body.mamoste-atlas #nav a svg{width:20px;height:20px;flex-shrink:0;stroke-width:1.7}
body.mamoste-atlas #nav a.active{background:#e8f4ec;border-color:#c3dfcc;color:#155a42;font-weight:750;box-shadow:inset 3px 0 #28855e}
body.mamoste-atlas #nav a:hover{background:#f0f7f2;color:#155a42}
body.mamoste-atlas #nav a:focus-visible,body.mamoste-atlas .portal-links summary:focus-visible,body.mamoste-atlas .portal-links a:focus-visible{outline:3px solid #a86d15;outline-offset:2px}
body.mamoste-atlas .sidebar-bottom{margin-top:auto;padding:10px 8px 0;border-top:1px solid #e1e9e2}
body.mamoste-atlas .portal-links summary{display:flex;align-items:center;min-height:44px;padding:8px 4px;cursor:pointer;font-size:15px!important;font-weight:650;color:#46634f;list-style:none}
body.mamoste-atlas .portal-links summary::after{content:'⌄';margin-left:auto;font-size:18px}
body.mamoste-atlas .portal-links[open] summary::after{content:'⌃'}
body.mamoste-atlas .portal-links summary::-webkit-details-marker{display:none}
body.mamoste-atlas .mamoste-site-links{margin:2px 0 8px;gap:2px}
body.mamoste-atlas .mamoste-site-links a{min-height:42px;padding:7px 9px;font-size:15px!important;line-height:1.4;color:#496754}
body.mamoste-atlas .mamoste-site-links a:hover{background:#eaf4ed}
body.mamoste-atlas .sidebar .profile{margin:8px 0 0;padding:9px 8px;min-height:48px;border:1px solid #d8e6dc;background:#f6faf7;border-radius:10px;font-size:15px!important}
body.mamoste-atlas .sidebar .profile .avatar{width:31px;height:31px;background:#e0efe4;color:#24583e}
body.mamoste-atlas .topbar{padding:15px 30px;min-height:84px;background:#fff;border-bottom:1px solid #dde8df}
body.mamoste-atlas .topbar #breadcrumb{font-size:15px!important;color:#52705d}
body.mamoste-atlas .top-actions{gap:9px;align-items:center}
body.mamoste-atlas .topbar .mamoste-language{display:flex;align-items:center;gap:7px;white-space:nowrap}
body.mamoste-atlas .topbar .mamoste-language>span{font-size:14px;line-height:1.4;color:#5b7463}
body.mamoste-atlas .topbar .mamoste-language select{min-height:44px;padding:7px 30px 7px 10px;border:1px solid #bfd4c6;background:#fff;border-radius:8px;font-size:15px!important;color:#24553d}
body.mamoste-atlas .topbar .reading-toggle{min-height:44px;font-size:15px!important;padding:7px 10px}
body.mamoste-atlas .topbar .icon-btn{min-width:44px;min-height:44px}
body.mamoste-atlas .matlas-mobile-nav a{border-radius:9px;font-weight:650}
@media(max-width:900px){
 body.mamoste-atlas{--atlas-menu-panel-width:min(300px,calc(100% - 44px))}
 body.mamoste-atlas .sidebar{width:var(--atlas-menu-panel-width);z-index:40;transform:translateX(-100%)}
 body.mamoste-atlas .sidebar.open{transform:none}
 body.mamoste-atlas .shell{margin-left:0}
 body.mamoste-atlas .topbar{padding:12px 18px;gap:10px}
 body.mamoste-atlas .topbar #breadcrumb{display:none}
 body.mamoste-atlas .mobile-menu{min-width:44px;min-height:44px;display:block}
 body.mamoste-atlas .topbar .mamoste-mobile-brand{display:flex;align-items:center;justify-content:center;width:44px;height:44px;flex:0 0 44px;margin:0 6px;color:#173e35}
 body.mamoste-atlas .topbar .mamoste-mobile-brand img{display:block;width:42px;height:42px}
 body.mamoste-atlas:has(.sidebar.open) .menu-shade{display:block;position:fixed;inset:0 0 0 var(--atlas-menu-panel-width);z-index:30;width:auto;min-width:0;max-width:none;height:100%;padding:0;border:0;border-radius:0;background:#173e3566}
 body.mamoste-atlas .matlas-mobile-nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));position:fixed;bottom:0;left:0;right:0;padding:7px 6px calc(7px + env(safe-area-inset-bottom));gap:3px;border-top:1px solid #d6e6da;background:#fffffff5;z-index:25}
 body.mamoste-theme.mamoste-atlas .matlas-mobile-nav a{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;min-width:0;max-width:100%;min-height:60px;margin:0;padding:5px 2px;gap:3px;font-size:13px!important;line-height:1.25!important;text-align:center;white-space:normal;overflow-wrap:anywhere;word-break:normal}
 body.mamoste-theme.mamoste-atlas .matlas-mobile-nav a>span[aria-hidden=true]{flex:none;font-size:22px!important;line-height:24px!important}
 body.mamoste-atlas main{padding-bottom:calc(115px + env(safe-area-inset-bottom))}
}
@media(max-width:520px){
 body.mamoste-atlas .top-actions{width:100%;justify-content:space-between;gap:7px;flex-wrap:wrap}
 body.mamoste-atlas .topbar .mamoste-language>span{display:none}
 body.mamoste-atlas .topbar .mamoste-language select{max-width:128px;padding-right:20px}
 body.mamoste-atlas .topbar .reading-toggle{font-size:14px!important;padding:7px 8px}
}
@media(max-width:380px){body.mamoste-theme.mamoste-atlas .matlas-mobile-nav a{font-size:12px!important}}
@media print{body.mamoste-atlas .shell{margin-left:0}}
