:root{--ink:#182b2b;--muted:#657777;--line:#dce5e0;--green:#136c51;--lime:#d9f482;--bg:#f3f6f3;--white:#fff;--orange:#9a5319}*{box-sizing:border-box}body{margin:0;font:14px/1.5 system-ui,-apple-system,'Segoe UI',sans-serif;color:var(--ink);background:var(--bg)}aside{position:fixed;inset:0 auto 0 0;width:224px;background:#102e29;color:#dae6df;padding:32px 20px;display:flex;flex-direction:column}.brand{display:flex;gap:12px;align-items:center;color:inherit;text-decoration:none;font-size:11px;letter-spacing:3px}.brand strong{display:block;font-size:26px;letter-spacing:4px;line-height:1.1;color:#fff}.brand-icon{font-size:40px;line-height:1;color:var(--lime)}.side-label{font-size:9px;letter-spacing:2px;color:#8eaaa0;margin-top:52px}.nav{display:block;width:100%;text-align:left;background:transparent;color:#c2d3cb;border:0;margin:6px 0;padding:13px;border-radius:8px}.nav.active{background:#25493e;color:#ecffc2}.side-bottom{margin-top:auto;font-size:11px;color:#b2c9bd}.side-bottom p{margin:22px 0}.dot{display:inline-block;width:7px;height:7px;background:var(--lime);border-radius:50%;margin-right:6px}main{margin-left:224px;padding:30px 38px;max-width:1700px}header{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:27px}.eyebrow{font-size:10px;letter-spacing:2px;color:var(--green);font-weight:700;margin:0 0 7px}h1{font-size:30px;letter-spacing:-1px;margin:0}h2{font-size:20px;margin:0 0 15px}h3{font-size:15px;margin:0}button,input,textarea,select{font:inherit}button,.button{border:1px solid var(--line);background:white;border-radius:7px;padding:9px 14px;cursor:pointer;color:var(--ink);font-weight:600}button:hover{filter:brightness(.97);border-color:#95b4a3}button:disabled{opacity:.5;cursor:wait}.primary{background:var(--green);border-color:var(--green);color:white}a{color:var(--green)}input,textarea,select{width:100%;border:1px solid #cfdbd3;border-radius:6px;background:white;padding:10px;color:var(--ink)}input:focus,textarea:focus,select:focus{outline:2px solid #77af91;outline-offset:1px}textarea{resize:vertical;line-height:1.55}label{display:block;margin:14px 0;font-weight:600;font-size:12px}label input,label textarea,label select{margin-top:5px;font-weight:400;font-size:14px}.check{display:flex;gap:9px;align-items:center}.check input{width:auto;margin:0}.actions{display:flex;align-items:center;gap:10px}.wrap{flex-wrap:wrap}.badge{display:inline-block;font-size:11px;padding:4px 9px;background:#e5ede7;border-radius:5px;color:#456455;white-space:nowrap}.badge.warn{background:#fff0d8;color:var(--orange)}.badge.good{background:#e2f2cc;color:#3c5c1c}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:26px}.stat{background:#fff;border:1px solid var(--line);border-radius:10px;padding:17px 20px}.stat strong{display:block;font-size:28px;line-height:1.35;font-weight:600}.stat span{font-size:12px;color:var(--muted)}.stat:first-child{background:#eaf1dc;border-color:#d9e5c3}.toolbar{display:flex;gap:9px;margin-bottom:20px;flex-wrap:wrap}.toolbar .search{flex:1;min-width:210px}.toolbar select{width:auto;max-width:230px}.list-head{display:flex;justify-content:space-between;gap:10px;margin:20px 0 12px;font-size:10px;letter-spacing:1px;color:var(--muted)}.list-head small{letter-spacing:0}.news-card{display:flex;gap:17px;padding:19px 20px;background:#fff;border:1px solid var(--line);border-radius:9px;margin:9px 0;align-items:flex-start}.news-icon{background:#eef3eb;width:44px;height:44px;border-radius:8px;display:grid;place-items:center;font-size:21px;flex-shrink:0}.news-content{flex:1;min-width:0}.news-content h3{font-size:17px;line-height:1.35;margin:8px 0;overflow-wrap:anywhere}.news-content p{margin:6px 0 0;color:var(--muted);font-size:12px}.tags{display:flex;gap:7px;flex-wrap:wrap}.news-card .open{margin-top:17px}.empty{padding:65px 28px;text-align:center;border:1px dashed #b8cbbe;border-radius:12px;background:#fafcf8}.empty .empty-icon{font-size:44px;color:#689276}.empty h2{margin:10px 0}.empty p{max-width:530px;margin:10px auto;color:var(--muted)}.muted{color:var(--muted);font-size:12px;font-weight:400}.section-intro{display:flex;gap:15px;align-items:center;justify-content:space-between;margin-bottom:15px}.panel{background:#fff;border:1px solid var(--line);border-radius:10px;padding:26px}.settings{max-width:760px}.notice{padding:13px 16px;border-radius:7px;background:#edf1e3;color:#54603c;margin:14px 0;font-size:12px}.warning{padding:9px 12px;border-left:3px solid #c99240;background:#fff5e5;margin:7px 0;font-size:12px;color:#81551c}.source-card{padding:19px;background:white;border:1px solid var(--line);border-radius:9px;margin:10px 0;display:flex;align-items:center;gap:20px}.source-card>div{flex:1;min-width:0}.source-card p{overflow-wrap:anywhere}.log{border-bottom:1px solid var(--line);padding:12px 0;font-size:13px}.log small{display:block;color:var(--muted)}#error,#toast{position:fixed;right:25px;bottom:25px;max-width:550px;z-index:100;padding:15px 20px;border-radius:8px;box-shadow:0 4px 30px #0002}#error{background:#fff1ec;color:#8f3425;border:1px solid #e4b1a2}#toast{background:#143d2b;color:white}dialog{border:1px solid var(--line);border-radius:13px;padding:25px;max-width:620px;width:calc(100% - 36px);max-height:92vh;color:var(--ink);overflow:auto}dialog::backdrop{background:#0c292ab3;backdrop-filter:blur(3px)}dialog .dialog-head{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:18px}.dialog-head h2{margin:0;line-height:1.4}#editor{max-width:1220px}.edit-grid{display:grid;grid-template-columns:38% 1fr;gap:27px}.original{background:#f4f7f1;padding:18px;border-radius:8px;align-self:start;min-width:0}.original #original-text{font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere;max-height:400px;overflow:auto}.original img{width:100%;max-height:250px;object-fit:contain;border-radius:6px}.two{display:grid;grid-template-columns:1fr 1fr;gap:14px}.edit-footer{display:flex;gap:9px;justify-content:flex-end;align-items:center;flex-wrap:wrap;position:sticky;bottom:-25px;background:white;padding:15px 0;border-top:1px solid var(--line);z-index:2}details{margin-top:15px;font-size:12px}summary{cursor:pointer}pre{white-space:pre-wrap;overflow-wrap:anywhere}.field-top{display:flex;justify-content:space-between;align-items:center}.field-top button{font-size:10px;padding:3px 8px}.changed{color:#9a5319!important}[hidden]{display:none!important}@media(max-width:1000px){aside{width:180px;padding:25px 14px}main{margin-left:180px;padding:25px 20px}header{align-items:flex-start;flex-direction:column}.stats{gap:8px}.stat{padding:15px}.edit-grid{grid-template-columns:1fr}.original #original-text{max-height:180px}}@media(max-width:650px){aside{position:static;width:auto;padding:16px}.brand{margin-bottom:10px}.brand strong{font-size:18px}.brand-icon{font-size:30px}.side-label,.side-bottom{display:none}nav{display:flex;flex-wrap:wrap}.nav{width:auto;font-size:11px;padding:8px}main{margin:0;padding:18px}.stats{grid-template-columns:1fr 1fr}.news-card{padding:14px;flex-wrap:wrap}.news-icon{display:none}.toolbar select{max-width:100%}.two{grid-template-columns:1fr}.list-head{display:block}.list-head small{display:block;margin-top:5px}dialog{padding:16px}}

#source-update{border:1px solid #d6ab61;background:#fff8e9;padding:14px;border-radius:7px;margin:18px 0}#new-source-text{white-space:pre-wrap;overflow-wrap:anywhere;max-height:320px;overflow:auto;font-size:13px}.related-card{padding:12px 0;border-bottom:1px solid var(--line)}#related-section{margin:20px 0}#related-section h3{margin-bottom:10px}#editor-stale button{margin-top:8px}#show-more{display:block;margin:20px auto}

#editor>.dialog-head{position:sticky;top:-25px;z-index:5;background:white;padding:14px 0;border-bottom:1px solid var(--line)}
#editor>.dialog-head>div{min-width:0}#edit-title{overflow-wrap:anywhere;font-size:18px;max-height:5.6em;overflow:auto}#editor>.dialog-head>[data-close]{flex-shrink:0;align-self:flex-start}
@media(max-width:650px){#editor>.dialog-head{top:-16px}}

.login-page{margin:5vh auto;max-width:560px;padding:24px}.login-page h1{font-size:28px}#company form{margin-top:24px}#users-list button{margin:4px}

.login-page .primary{width:100%;margin-top:12px}.login-page details{padding:10px 0}.admin-shortcuts{margin:20px 0}.admin-company{margin:12px 0;padding:15px;border:1px solid var(--line);border-radius:8px}#system-admin{margin-top:30px;padding-top:20px;border-top:1px solid var(--line)}

.copy-buffer{position:fixed;left:0;top:0;width:1px;height:1px;padding:0;opacity:0}
