/* MSA Network Solutions · Knowledgebase | Agency-inspired dark UI | locally hosted */
:root{color-scheme:dark;--bg:#090a0c;--side:#0b0c0e;--card:#151619;--card2:#1a1b1e;--field:#101113;--line:#2b2d31;--text:#f5f5f5;--muted:#a3a5ab;--faint:#777a80;--yellow:#ffb500;--yellowsoft:#ffdb83;--danger:#ff9c9c;--radius:15px;--shadow:0 25px 70px #0005}
*,*::before,*::after{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--text);font:14px/1.65 "Open Sans","Segoe UI",system-ui,-apple-system,Arial,sans-serif;letter-spacing:-.007em}body::selection{background:var(--yellow);color:#171209}a{color:var(--yellowsoft);text-decoration:none}a:hover{color:#ffe7a8}h1,h2,h3,p{margin-top:0}h1{font-size:clamp(30px,3.1vw,45px);line-height:1.15;letter-spacing:-.047em;font-weight:750}h2{font-size:21px;line-height:1.4;letter-spacing:-.025em}h3{font-size:16px;letter-spacing:-.018em}p{color:#bac0c5;line-height:1.75}small{font-size:12px}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.65;cursor:wait}:focus-visible{outline:2px solid var(--yellow)!important;outline-offset:3px}img{max-width:100%}
.layout{min-height:100vh;display:flex;background:radial-gradient(ellipse 1200px 670px at 82% -18%,#2b240d48,transparent 70%),var(--bg)}
.sidebar{width:264px;flex:0 0 264px;position:sticky;top:0;height:100vh;display:flex;flex-direction:column;padding:26px 16px 18px;background:linear-gradient(160deg,#111214,#090a0c 70%);border-right:1px solid #292a2c;z-index:5}
.brand-link{display:block;line-height:0;margin:0 12px 6px;padding:4px 0}.brand-logo{display:block;width:204px;height:auto;object-fit:contain}.brand-meta{display:flex;align-items:center;gap:9px;padding:0 13px 32px}.brand-rule{height:2px;width:21px;border-radius:2px;background:var(--yellow)}.brand-meta small{font-size:10px;font-weight:800;letter-spacing:2px;color:#c6c6c6}.side-caption{padding:8px 15px 13px;color:#787b80;font-size:10px;font-weight:700;letter-spacing:2px}.sidebar nav{display:grid;gap:6px}.nav{display:flex;align-items:center;gap:12px;padding:12px 13px;border:1px solid transparent;border-radius:11px;color:#adb0b7;background:transparent;text-align:left;font-size:12.5px;font-weight:640;transition:.15s ease}.nav:hover{color:#fff;border-color:#363025;background:#20201c}.nav.active{border-color:#4a3c17;background:linear-gradient(95deg,#332911,#1c1a15);color:#ffd67b;box-shadow:inset 3px 0 0 var(--yellow)}.nav-icon{width:23px;height:22px;flex:0 0 23px;display:grid;place-items:center;font-size:21px;line-height:1;color:var(--yellow)}.side-bottom{margin-top:auto}.mini-status{font-size:11px;color:#9b9ea3;margin:0 2px 13px;padding:17px 11px 13px;border-top:1px solid var(--line)}.dot{width:7px;height:7px;display:inline-block;border-radius:99px;background:#81cfa1;margin-right:7px;box-shadow:0 0 8px #81cfa177}.side-bottom form{margin:0}.logout{width:100%}.main-column{flex:1;min-width:0;display:flex;flex-direction:column}.topbar{min-height:81px;display:flex;align-items:center;justify-content:space-between;gap:22px;padding:16px clamp(22px,3.5vw,55px);background:#0d0e10b9;border-bottom:1px solid #2c2d30;backdrop-filter:blur(12px)}.topbar-overline{display:block;color:#85888e;font-size:9px;letter-spacing:1.7px;font-weight:800;margin-bottom:5px}.breadcrumbs{color:#888b91;letter-spacing:1.2px;font-size:11px;font-weight:700}.breadcrumbs b{color:#f1f1f1;font-size:12px;letter-spacing:.2px}.breadcrumbs span{margin:0 9px;color:var(--yellow)}.top-actions{display:flex;align-items:center;gap:14px}.top-chip{font-size:11px;white-space:nowrap;border:1px solid #343b31;border-radius:40px;padding:8px 13px;background:#151912;color:#d8e9dc}.top-user{font-size:12px;white-space:nowrap;font-weight:700;color:#f3f3f3;border-left:1px solid #36373a;padding-left:15px;max-width:130px;overflow:hidden;text-overflow:ellipsis}.container{width:min(1370px,calc(100% - 64px));margin:0 auto;flex:1;padding:38px 0 60px;min-height:0}.footer{padding:22px clamp(22px,3.5vw,55px);border-top:1px solid var(--line);font-size:10px;letter-spacing:1px;color:#9b9da2}.footer span{padding:0 9px;color:var(--yellow)}.footer small{float:right;letter-spacing:.4px;color:#aaa;font-size:10px}
.eyebrow{font-size:10px;letter-spacing:2.2px;font-weight:800;color:var(--yellow);margin-bottom:12px}.hero{position:relative;overflow:hidden;isolation:isolate;display:flex;align-items:center;justify-content:space-between;gap:35px;padding:clamp(29px,4vw,53px);min-height:282px;background:radial-gradient(circle at 87% 34%,#4a350f77,transparent 34%),linear-gradient(110deg,#1a1b1e,#101113 69%,#1b1811);border:1px solid #453922;border-radius:21px;box-shadow:0 18px 50px #0004}.hero::before{content:"";position:absolute;inset:0;z-index:-1;opacity:.28;background-image:linear-gradient(90deg,#ffb50022 1px,transparent 1px),linear-gradient(#ffb50022 1px,transparent 1px);background-size:40px 40px;mask-image:linear-gradient(90deg,transparent 32%,#000 100%)}.hero::after{content:"";position:absolute;top:0;left:0;right:0;height:2px;background:linear-gradient(90deg,var(--yellow),#ffb50044,transparent)}.hero-copy{max-width:590px}.hero h1{margin:13px 0 18px;font-size:clamp(32px,3.5vw,52px);line-height:1.13}.hero h1 em{font-style:normal;background:linear-gradient(90deg,#ffc64e,#fff0bf);background-clip:text;-webkit-background-clip:text;color:transparent}.hero p{max-width:520px;margin-bottom:0;color:#b4b7bd;font-size:13.5px}.stat{flex:0 0 auto;text-align:center;min-width:170px;padding:18px 20px;border:1px solid #544324;border-radius:15px;background:#14141399}.stat strong{display:block;font-size:53px;color:var(--yellow);line-height:1.2;font-weight:800;letter-spacing:-2px}.stat span:not(.hero-mini-logo){display:block;margin-top:4px;font-size:11px;color:#d0c7b4}.hero-mini-logo{display:block;margin:0 auto 10px;width:155px}.hero-mini-logo img{display:block;max-height:55px;object-fit:contain}
.search{display:flex;gap:12px;margin:24px 0 18px;padding:18px 20px;background:#151619;border:1px solid #303134;border-radius:14px}.search input{flex:1;min-width:0;margin:0}.filters{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 28px}.chip{display:inline-flex;align-items:center;gap:9px;color:#c2c4c9;background:#1a1b1e;border:1px solid #37383c;border-radius:40px;padding:9px 15px;font-size:12px}.chip:hover{background:#2a2519;border-color:#766026;color:#ffdb83}.chip.active{color:#1b1507;background:var(--yellow);border-color:var(--yellow);font-weight:750}.chip small{opacity:.8}.sectionhead{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:35px 0 17px}.sectionhead h2{margin:0;font-size:21px}.sectionhead span{font-size:12px;color:var(--muted)}.articlegrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.item{display:flex;flex-direction:column;min-width:0;min-height:220px;padding:24px;border:1px solid var(--line);border-radius:15px;background:#151619;color:#f5f5f5;transition:.18s ease}.item:hover{transform:translateY(-3px);background:#1d1d1b;border-color:#8e6a1b;box-shadow:var(--shadow)}.item .category{font-size:10px;text-transform:uppercase;letter-spacing:1.6px;font-weight:800;color:var(--yellow)}.item h3{margin:12px 0 8px;font-size:18px;line-height:1.32}.item p{margin:0 0 22px;font-size:12px;color:#a8adb2;overflow-wrap:anywhere}.itemfoot{margin-top:auto;padding-top:15px;border-top:1px solid #2d2f30;display:flex;align-items:center;justify-content:space-between;gap:12px;color:#9699a1;font-size:11px}.itemfoot span:last-child{color:#ffc34a;font-weight:750}.pagehead{margin:0 0 25px}.pagehead h1{margin-bottom:6px}.pagehead p{margin:0;color:#a8adb4}.panel{padding:clamp(21px,2.8vw,35px);border:1px solid var(--line);border-radius:16px;background:#151619;box-shadow:0 14px 38px #00000016;margin:20px 0}.panel h2{margin-bottom:19px}.panel h1{font-size:clamp(25px,3vw,37px)}.narrow{max-width:640px;margin:35px auto}.editor{max-width:1000px;margin:0 auto}.auth{margin:0 auto;padding:0}.auth h1{font-size:clamp(25px,3vw,33px);letter-spacing:-1.2px;margin:12px 0}.auth p{color:#aeb2b6;margin-bottom:25px}.auth form,.panel form:not(.reset){display:flex;flex-direction:column;gap:17px}.auth form{margin-top:22px}label{display:flex;flex-direction:column;gap:7px;font-weight:700;font-size:11px;letter-spacing:.4px;color:#b8bdc5}input,textarea,select{display:block;width:100%;min-width:0;border:1px solid #3b3d42;background:#0d0e11;color:#fff;border-radius:9px;outline:0;padding:12px 14px;font-size:13px;letter-spacing:0}input::placeholder,textarea::placeholder{color:#797d86}input:focus,textarea:focus,select:focus{border-color:#f1b324;box-shadow:0 0 0 3px #ffb50022}textarea{resize:vertical;line-height:1.6}.button,.outline,.danger{appearance:none;display:inline-flex;align-items:center;justify-content:center;gap:8px;white-space:normal;min-height:43px;text-align:center;text-decoration:none;border:1px solid #e1a000;border-radius:10px;background:linear-gradient(115deg,#ffda75,#ffb500);color:#18150e;font-size:12.5px;font-weight:800;padding:11px 17px;cursor:pointer;transition:.17s ease}.button:hover{background:#ffd35b;color:#111;transform:translateY(-1px)}.outline{border-color:#484a4d;background:#202124;color:#f3f3f3}.outline:hover{background:#303134;color:#fff;border-color:var(--yellow)}.danger{border-color:#674448;background:#332325;color:#ffadb3}.danger:hover{background:#4c3034;color:#ffd1d3}.error,.notice{border-radius:11px;padding:15px 18px;margin:0 0 20px;font-size:12.5px}.error{background:#382122;border:1px solid #814747;color:#ffd3d3}.notice{background:#2b2415;border:1px solid #645124;color:#ffe2a1}.usercreate{display:grid!important;grid-template-columns:1fr 1fr 170px auto;align-items:end;gap:13px!important}.users{display:grid;gap:9px}.userrow{display:grid;grid-template-columns:1fr minmax(250px,360px) 95px;gap:14px;align-items:center;padding:14px 0;border-bottom:1px solid var(--line)}.userrow strong,.userrow small{display:block}.userrow small{color:#999da6}.reset{display:flex;gap:8px}.reset input{min-width:0}.muted{font-size:12px;color:var(--muted)}.back{display:inline-block;color:var(--yellowsoft);margin-bottom:20px}.article{max-width:1000px;margin:0 auto;padding:clamp(23px,4vw,48px)}.article h1{font-size:clamp(28px,3.5vw,43px);margin:12px 0 15px}.meta{border-bottom:1px solid var(--line);padding-bottom:21px;color:#999ea4;font-size:12px}.articlebody{font-size:14px;line-height:1.85;color:#d3d6da;white-space:normal;overflow-wrap:anywhere;padding:20px 0}.articlebody h2{font-size:24px;margin:25px 0 12px}.articlebody h3{font-size:19px;margin:21px 0 10px}.articlebody p{margin:0 0 14px;color:#cfd1d5}.articlebody ul,.articlebody ol{padding-left:26px}.articlebody blockquote{margin:18px 0;padding:12px 20px;border-left:3px solid var(--yellow);color:#d2d3d5;background:#22201a}.articlebody pre,.articlebody code{font-family:Consolas,"Liberation Mono",monospace;border-radius:6px;background:#090a0c;color:#eee}.articlebody pre{padding:15px;overflow:auto;white-space:pre-wrap}.articlebody code{padding:2px 5px}.articlebody a{color:var(--yellowsoft);text-decoration:underline}.actions{display:flex!important;align-items:center;flex-direction:row!important;flex-wrap:wrap;gap:10px!important;margin-top:15px}.actions form{margin:0}.empty{padding:42px;text-align:center;background:#161719;border:1px dashed #49433a;border-radius:12px;color:#9d9fa5}.editor-toolbar{display:flex;flex-wrap:wrap;gap:7px;padding:10px;border:1px solid #454548;border-bottom:0;border-radius:10px 10px 0 0;background:#1c1d20}.editor-toolbar button{padding:8px 11px;background:#292a2e;border:1px solid #414348;color:#f0f0f0;border-radius:6px;font-size:12px;cursor:pointer}.editor-toolbar button:hover{border-color:var(--yellow);color:var(--yellowsoft)}.rich-editor{min-height:300px;max-height:650px;overflow:auto;padding:20px;background:#0f1012;border:1px solid #454548;border-radius:0 0 10px 10px;outline:none}.rich-editor:empty::before{content:attr(data-placeholder);color:#7e8086}.rich-editor:focus{border-color:var(--yellow)}.rich-editor.articlebody{padding:20px}.upload-box{margin-top:35px;padding-top:23px;border-top:1px solid var(--line)}.upload-box p{color:#a8adb2;font-size:13px}.attachments{margin-top:25px}.attachment{display:flex;align-items:center;gap:17px;padding:12px 0;border-bottom:1px solid var(--line)}.attachment .shot{width:110px;height:84px;object-fit:contain;border-radius:8px;border:1px solid #45464a;background:#0d0e10}.pdficon{display:inline-grid;place-items:center;width:68px;height:73px;border-radius:8px;color:#f4c76a;background:#3a2d13;font-weight:850}.attachment-info{flex:1;min-width:0;overflow-wrap:anywhere}.attachment-info>a{font-size:13px;font-weight:700;color:#f0f0f0}.attachment-info small{display:block;color:#9ea1a7}.attachment form{margin:0}.login-shell{display:grid;place-items:center;min-height:100vh;padding:28px;background:radial-gradient(circle at 52% 17%,#33260d77,transparent 35%),#090a0c}.login-panel{width:min(470px,100%);border:1px solid #3b3427;border-radius:22px;padding:clamp(24px,4vw,44px);background:#151618;box-shadow:0 35px 100px #0008;position:relative;overflow:hidden}.login-panel::before{content:"";height:3px;position:absolute;top:0;left:0;right:0;background:linear-gradient(90deg,var(--yellow),#ffb50077,transparent)}.login-brand{display:flex;flex-direction:column;align-items:center;gap:10px;margin-bottom:28px;text-align:center}.login-brand .brand-logo{width:min(295px,100%)}.login-brand small{font-size:10px;letter-spacing:1.6px;color:#d4b56a;font-weight:800}.login-foot{margin:32px 0 0;color:#84878d;text-align:center;font-size:10px;letter-spacing:.15px}.auth .button{width:100%;margin-top:7px}
@media(max-width:1180px){.articlegrid{grid-template-columns:repeat(2,minmax(0,1fr))}.usercreate{grid-template-columns:1fr 1fr}.userrow{grid-template-columns:1fr}.sidebar{width:240px;flex-basis:240px}}
@media(max-width:880px){.layout{display:block}.sidebar{width:100%;height:auto;position:relative;display:block;padding:15px 18px 12px}.brand-link{margin:0 4px 3px}.brand-link .brand-logo{width:165px}.brand-meta{padding:1px 5px 12px}.side-caption{display:none}.sidebar nav{display:flex;overflow-x:auto;gap:5px;padding:0 0 8px;scrollbar-width:thin}.nav{flex:0 0 auto;white-space:nowrap;padding:9px 11px}.side-bottom{display:flex;align-items:center;justify-content:space-between;margin-top:6px;gap:12px}.side-bottom .mini-status{margin:0;padding:4px 2px;border:0}.side-bottom form .nav{width:auto}.topbar{min-height:63px;padding:12px 22px}.container{width:calc(100% - 38px);padding:27px 0 48px}.footer{padding:18px 22px}.hero{min-height:235px;padding:34px}.userrow{grid-template-columns:1fr}.top-user{max-width:100px}}
@media(max-width:600px){.container{width:calc(100% - 26px)}.articlegrid{grid-template-columns:1fr;gap:11px}.item{min-height:185px;padding:20px}.hero{padding:27px 23px;display:block}.hero .stat{margin-top:20px;display:flex;align-items:center;text-align:left;gap:12px;min-width:0;padding:13px 17px}.hero-mini-logo{display:none}.hero .stat strong{font-size:37px}.hero .stat span:not(.hero-mini-logo){margin:0}.hero h1{font-size:32px}.search{flex-wrap:wrap;padding:14px}.search button{width:100%}.auth h1{font-size:27px}.usercreate{grid-template-columns:1fr}.reset{flex-wrap:wrap}.reset button{width:100%}.userrow{gap:13px}.top-chip{display:none}.topbar-overline{font-size:8px}.breadcrumbs{font-size:9px}.breadcrumbs b{font-size:11px}.top-user{font-size:11px}.editor{padding:20px}.rich-editor{min-height:280px}.attachment{flex-wrap:wrap}.actions{display:flex;flex-direction:column!important;align-items:stretch}.actions>*{width:100%}.actions form button{width:100%}.footer small{float:none;display:block;margin-top:8px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

/* Knowledgebase v3.1 - customer/category directory and editor dropdowns */
.editor-select-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.editor-select-row label{min-width:0}
.editor-select-row select{cursor:pointer;min-height:49px}
.editor-manage-links{display:flex;flex-wrap:wrap;align-items:center;gap:14px;margin:-6px 0 8px}
.editor-manage-links a{font-size:12px;font-weight:700;color:#ffd276}
.editor-manage-links a:hover{text-decoration:underline;text-underline-offset:3px}
.management-form{display:flex;flex-direction:column;gap:16px}
.management-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.management-form label{min-width:0}
.management-card{display:flex;flex-direction:column;gap:14px}
.manage-title{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:5px}
.manage-title h3{font-size:19px;margin:0}
.manage-title small,.category-top small{font-size:11px;color:#a9aaae}
.manage-delete{display:flex;align-self:flex-end}
.manage-delete button:disabled{opacity:.35;cursor:not-allowed}
.management-card .manage-delete{border-top:1px solid #333436;padding-top:17px;width:100%;justify-content:flex-end}
.inline-create{display:flex;align-items:flex-end;gap:14px}
.inline-create label{flex:1;min-width:0}
.inline-create .button{min-height:45px;white-space:nowrap}
.categories-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.categories-list .panel{margin:0}
.category-manage-row{display:flex;flex-direction:column;gap:13px}
.category-top{display:flex;align-items:center;justify-content:space-between;gap:12px}
.category-top strong{font-size:17px}
.category-edit-form{display:flex;gap:12px;align-items:flex-end}
.category-edit-form label{flex:1;min-width:0}
.category-edit-form .button{min-height:45px;white-space:nowrap}
.category-manage-row .manage-delete{border-top:1px solid #303030;margin-top:0;padding-top:13px;width:100%;justify-content:flex-end}
.directory-filters{display:flex;align-items:flex-end;gap:14px;flex-wrap:wrap;margin:0 0 24px;padding:18px 20px;border-radius:14px;border:1px solid #313235;background:#131416}
.directory-filters label{flex:1;min-width:190px}
.directory-filters select{min-height:46px;cursor:pointer}
.directory-filters .outline{min-height:46px;white-space:nowrap}
.directory-filters .filter-clear{font-size:12px;color:#c5c5c5;display:inline-flex;align-items:center;min-height:46px}
.customer-chip{display:inline-flex;align-self:flex-start;font-size:10px;font-weight:800;letter-spacing:.3px;line-height:1.4;color:#f6dc9c;padding:5px 9px;border:1px solid #665020;background:#2c2413;border-radius:7px;margin-top:9px;overflow-wrap:anywhere}
.article-customer{font-size:12px;color:#f7d78c;border:1px solid #655125;background:#2b2415;display:inline-flex;padding:6px 11px;border-radius:9px;margin:5px 0 17px}
@media(max-width:960px){.management-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.categories-list{grid-template-columns:1fr}}
@media(max-width:600px){.editor-select-row,.management-grid{grid-template-columns:1fr}.inline-create,.category-edit-form{flex-direction:column;align-items:stretch}.inline-create .button,.category-edit-form .button{width:100%}.manage-title{flex-direction:column;align-items:flex-start}.directory-filters{padding:15px}.directory-filters label,.directory-filters .outline,.directory-filters .filter-clear{width:100%}.categories-list{grid-template-columns:1fr}}
/* Keep compact row actions aligned despite the generic .panel form rule. */
.panel .category-edit-form{display:flex;flex-direction:row;align-items:flex-end;gap:12px}
.panel .manage-delete{display:flex;flex-direction:row}
@media(max-width:600px){.panel .category-edit-form{flex-direction:column;align-items:stretch}}
