*{box-sizing:border-box}body{margin:0;background:#f4f6f8;color:#1c2833;font:15px/1.5 system-ui,-apple-system,Segoe UI,Arial,sans-serif}a{color:#236b46;text-decoration:none}a:hover{text-decoration:underline}.layout{display:flex;min-height:100vh}.sidebar{width:238px;background:#173e32;color:white;padding:24px 14px;flex-shrink:0}.brand{font-size:26px;font-weight:800;color:white;display:block;padding:0 12px 25px}.nav a{display:flex;gap:11px;align-items:center;padding:12px 13px;border-radius:9px;color:#d6e9de;margin:4px 0}.nav a:hover,.nav a.active{background:#285d49;text-decoration:none;color:white}.main{flex:1;min-width:0}.topbar{background:white;border-bottom:1px solid #e4e9e7;display:flex;justify-content:space-between;gap:16px;align-items:center;padding:13px 26px;min-height:72px}.content{max-width:1300px;margin:auto;padding:28px}.card{background:white;border:1px solid #e1e7e3;border-radius:13px;padding:23px;margin-bottom:18px;box-shadow:0 5px 20px #172c2410}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:15px}.grid .card{margin:0}.metric{font-size:30px;font-weight:750;margin-top:5px}.muted{color:#63736c;font-size:13px}.tag{display:inline-block;padding:4px 10px;background:#e7eeeb;border-radius:20px;color:#43564b;font-size:12px}.tag.warn{background:#fff2df;color:#8b5905}.tag.ok{background:#e0f4e7;color:#176438}.btn{display:inline-block;padding:10px 14px;border:0;border-radius:8px;cursor:pointer;background:#216c47;color:white;font:inherit}.btn.secondary{background:#e9eeec;color:#273c32}.btn.danger{background:#a72e35}.btn:hover{filter:brightness(.94);text-decoration:none}input,select{font:inherit;border:1px solid #cbd5d0;border-radius:8px;background:white;padding:10px 11px;width:100%;max-width:500px}label{display:block;margin:10px 0 5px;font-weight:600;font-size:13px}.form-row{margin-bottom:12px}.inline{display:inline}.inline select{width:auto;max-width:240px}.toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.toolbar form{display:inline-flex;gap:7px;align-items:center}.tablewrap{overflow-x:auto}table{width:100%;border-collapse:collapse;text-align:left}td,th{border-bottom:1px solid #ebefed;padding:12px 9px;vertical-align:top}th{font-size:12px;color:#5f6e66}h1{font-size:26px;margin:0 0 22px}h2{font-size:19px;margin:0 0 15px}.flash{padding:13px 16px;border-radius:9px;margin-bottom:20px;background:#e3f5e9;color:#1d5c39}.flash.error{background:#fff0ee;color:#a13d30}.auth{max-width:440px;margin:10vh auto}.auth .card{padding:35px}.checkgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:9px}.perm-item{border:1px solid #e2e8e5;border-radius:8px;padding:9px}.perm-item label{margin:0}.user-menu{display:flex;align-items:center;gap:12px}.note{background:#f3f6f4;border-left:3px solid #2c7852;padding:12px 15px;border-radius:6px}.spacer{flex:1}@media(max-width:720px){.layout{display:block}.sidebar{width:auto;padding:12px}.brand{padding:2px 8px;font-size:22px}.nav{display:flex;overflow:auto;gap:3px}.nav a{white-space:nowrap;font-size:13px}.topbar{padding:12px;flex-wrap:wrap}.content{padding:15px}.user-menu{flex-wrap:wrap}.auth{margin:5vh 12px}}
/* Core 0002 shared semantic theme tokens */
:root,[data-theme="classic"]{--bg:#f4f6f8;--surface:#fff;--text:#1c2833;--muted:#63736c;--line:#e1e7e3;--sidebar:#173e32;--nav:#d6e9de;--nav-active:#285d49;--accent:#216c47;--accent-text:#fff;--input:#fff;--shadow:#172c2410}
[data-theme="nesdekk"]{--bg:#f1f8e9;--surface:#fff;--text:#1f2e18;--muted:#52694a;--line:#d4e5bb;--sidebar:#273c18;--nav:#e4f7cf;--nav-active:#527e19;--accent:#78b800;--accent-text:#101b06;--input:#fff;--shadow:#26380b17}
[data-theme="dark"]{color-scheme:dark;--bg:#121820;--surface:#202a34;--text:#edf2f7;--muted:#b0bfcc;--line:#384754;--sidebar:#0c1118;--nav:#dce5ed;--nav-active:#334557;--accent:#5aaf90;--accent-text:#081e18;--input:#26323e;--shadow:#00000030}
[data-theme="navy"]{--bg:#edf2f9;--surface:#fff;--text:#1a2e49;--muted:#61728a;--line:#d9e1ed;--sidebar:#142a48;--nav:#e2edfa;--nav-active:#284c78;--accent:#285f9e;--accent-text:#fff;--input:#fff;--shadow:#12385b15}
body{background:var(--bg);color:var(--text)}a{color:var(--accent)}.sidebar{background:var(--sidebar);display:flex;flex-direction:column;min-height:100vh}.nav a{color:var(--nav)}.nav a:hover,.nav a.active{background:var(--nav-active)}.main{background:var(--bg)}.topbar,.card{background:var(--surface);border-color:var(--line);color:var(--text)}.card{box-shadow:0 5px 20px var(--shadow)}.muted,th{color:var(--muted)}.btn{background:var(--accent);color:var(--accent-text)}.btn.secondary{background:var(--nav-active);color:var(--nav)}input,select,textarea{background:var(--input);color:var(--text);border:1px solid var(--line)}textarea{font:inherit;border-radius:8px;padding:10px;width:100%;max-width:720px}td,th{border-color:var(--line)}.note,.comment{background:var(--bg)}.sidebar-bottom{margin-top:auto;padding:15px 12px 0;border-top:1px solid #ffffff30;display:grid;gap:10px;color:var(--nav);font-size:12px}.sidebar-bottom a{color:var(--nav);font-weight:600}.sidebar-bottom span{opacity:.7}.admin-nav{margin-top:10px}.admin-nav summary{cursor:pointer;padding:12px 13px;color:var(--nav);font-weight:600;list-style:none}.admin-nav summary::-webkit-details-marker{display:none}.admin-nav summary:after{content:"⌄";float:right}.admin-sub{padding-left:15px}.admin-sub a{font-size:13px}.avatar{border-radius:50%;object-fit:cover}.avatar.mini{width:32px;height:32px}.avatar.large{width:90px;height:90px}.avatar.placeholder{display:grid;place-items:center;background:var(--accent);color:var(--accent-text);font-size:40px}.profile-intro{display:flex;gap:18px;align-items:center;margin-bottom:24px}.post{border-top:1px solid var(--line);padding:18px 0}.post h3{margin:0}.post p{margin:9px 0}.comment{border-left:3px solid var(--accent);padding:7px 12px;margin:8px 0;border-radius:4px}.comment p{margin:2px 0}.post-editor{padding:14px;border:1px solid var(--line);border-radius:10px}.post-editor summary{cursor:pointer;font-weight:600}
[data-theme="dark"] .tag{background:#344251;color:#d9e7f2}[data-theme="dark"] .tag.ok{background:#244a3a;color:#d5f8e3}[data-theme="dark"] .tag.warn{background:#594328;color:#ffe4ae}[data-theme="dark"] .flash{background:#244632;color:#e2f7e8}[data-theme="dark"] .flash.error{background:#542c31;color:#ffe2e2}
@media(max-width:720px){.sidebar{min-height:auto}.sidebar-bottom{margin-top:10px}.user-menu strong{display:none}}

/* Core 0004 */
.nav-preview{opacity:.73;position:relative;font-size:14px}.nav-preview:hover{opacity:1}.preview-dot{margin-left:auto;opacity:.55;font-size:22px}.dashboard-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-bottom:24px}.dashboard-cards .card{margin:0;min-height:130px}.news-feed{margin-top:8px}.feed-post{padding:19px 0;border-bottom:1px solid var(--line)}.feed-post:last-child{border-bottom:0}.feed-post h3{margin:12px 0 7px}.feed-post h3 a{color:var(--text)}.post-byline{display:flex;align-items:center;gap:10px}.social-actions{display:flex;flex-wrap:wrap;gap:12px;padding-top:14px;margin-top:12px;border-top:1px solid var(--line)}.social-actions form{display:inline}.social-button{border:0;background:transparent;color:var(--muted);cursor:pointer;padding:5px 8px;font:inherit;font-weight:600}.social-button.liked{color:var(--accent)}.social-button:hover{background:var(--bg);text-decoration:none;border-radius:6px}.location-checks{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:8px;margin:15px 0}.location-checks label{border:1px solid var(--line);padding:10px;border-radius:9px;display:flex;align-items:center;gap:9px}.location-checks input{width:auto}.employee-link{display:flex;align-items:center;gap:9px}.employee-profile{display:flex;gap:22px;align-items:flex-start}.employee-profile .avatar{width:110px;height:110px}.filter-row{display:flex;align-items:end;gap:10px;flex-wrap:wrap;margin-bottom:15px}.filter-row select{max-width:280px}.filter-row label{margin:0}.profile-intro .avatar{width:70px;height:70px}
@media(max-width:720px){.dashboard-cards{grid-template-columns:1fr}.employee-profile{flex-direction:column}.nav-preview{flex-shrink:0}}

/* NesOne Core 0005 – compact navigation, legible icons, lightweight user links */
.sidebar{padding:17px 12px 12px;width:236px;}
.brand{font-size:25px;padding:0 10px 16px;line-height:1.25;}
.nav{display:flex;flex-direction:column;gap:2px;}
.sidebar .nav a.nav-link{display:flex;align-items:center;gap:11px;min-height:34px;padding:6px 10px;margin:0;border-radius:6px;font-size:13.5px;line-height:1.3;font-weight:500;transition:background-color .15s,color .15s;}
.sidebar .nav a.nav-link.active{font-weight:650;}
.nav-icon{flex:0 0 19px;width:19px;height:19px;display:block;stroke-width:1.9;opacity:.95;}
.nav-preview{opacity:.72;}
.sidebar .nav a.nav-preview:hover{background:transparent;opacity:.85;cursor:default;}
.nav .admin-nav{margin-top:6px;border-top:1px solid #ffffff26;padding-top:6px;}
.nav .admin-nav summary{display:flex;align-items:center;gap:11px;min-height:34px;padding:6px 10px;font-size:13.5px;border-radius:6px;list-style:none;}
.nav .admin-nav summary:hover{background:var(--nav-active);}
.nav .admin-nav summary:after{display:none;content:none;}
.nav .admin-nav .admin-chevron{margin-left:auto;font-size:17px;line-height:1;}
.admin-nav[open] .admin-chevron{transform:rotate(180deg);}
.nav .admin-sub{padding-left:13px;display:flex;flex-direction:column;gap:2px;}
.sidebar .nav .admin-sub a{font-size:13px;}
.sidebar-bottom{font-size:11px;margin-top:auto;padding:10px 9px 0;}
.user-menu{gap:10px;}
.user-menu strong{font-size:13px;font-weight:650;}
.user-menu .topbar-text-link{font:inherit;font-size:12.5px;color:var(--muted);font-weight:500;cursor:pointer;padding:2px 0;margin:0;text-decoration:none;background:none;border:0;border-radius:0;white-space:nowrap;}
.user-menu .topbar-text-link:hover{color:var(--accent);text-decoration:underline;filter:none;background:none;}
.user-menu .logout-link{font-size:12.5px;color:var(--muted);}
@media(max-width:720px){.sidebar{width:auto;padding:10px 12px}.nav{display:flex;flex-direction:row;gap:5px;overflow-x:auto;align-items:center}.sidebar .nav a.nav-link{flex:0 0 auto;white-space:nowrap}.nav .admin-nav{flex:0 0 auto;border:0;margin:0;padding:0}.nav .admin-sub{padding-left:0}.sidebar-bottom{margin-top:7px}.brand{padding:0 10px 8px}}

/* Core 0006: restrained news moderation links */
.post-actions,.comment-actions{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-top:9px}
.post-actions form,.comment-actions form{display:inline-flex;margin:0}
.small-action-link{appearance:none;background:none!important;border:0!important;padding:0!important;color:var(--accent)!important;font:inherit;font-size:12px!important;font-weight:600;cursor:pointer;line-height:1.5}
.small-action-link:hover{text-decoration:underline!important;filter:none!important}
.small-action-link.destructive{color:#a72e35!important}
.editor-form-part{display:block}.editor-save-bar{position:sticky;bottom:10px;background:var(--surface);border:1px solid var(--line);padding:14px 18px;border-radius:12px;box-shadow:0 4px 16px var(--shadow);margin:16px 0;z-index:4}
