:root{--red:#b7192b;--red2:#8f1020;--ink:#16191d;--muted:#69717b;--line:#e4e6e9;--soft:#f5f6f7;--white:#fff;--shadow:0 12px 35px rgba(20,25,30,.08);--radius:18px}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:#f3f4f5;color:var(--ink);font:15.5px/1.62 Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}a{color:var(--red);text-decoration:none}button,input,textarea,select{font:inherit}button{cursor:pointer}.app-shell{min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;width:250px;background:#111317;color:white;padding:22px 16px;display:flex;flex-direction:column;z-index:20}.brand{display:flex;gap:12px;align-items:center;color:white;padding:4px 8px 24px}.brand img,.mobile-brand img{width:44px;height:44px;border-radius:12px;object-fit:cover}.brand span{display:flex;flex-direction:column;line-height:1.25}.brand strong{font-size:16px}.brand small{color:#aeb3ba;font-size:11px;margin-top:3px}.sidebar nav{display:grid;gap:5px}.nav-link{display:flex;align-items:center;gap:12px;color:#c9cdd2;padding:11px 12px;border-radius:12px}.nav-link span{font-size:20px;width:23px;text-align:center}.nav-link b{font-weight:650}.nav-link:hover,.nav-link.active{background:#24272d;color:white}.nav-link.active{box-shadow:inset 3px 0 var(--red)}.side-bottom{margin-top:auto;display:grid;gap:12px;padding:14px 10px;color:#9fa5ad}.side-bottom a{color:#d4d7dc}.side-bottom small{font-size:11px}.topbar{position:sticky;top:0;margin-left:250px;height:70px;background:rgba(255,255,255,.92);backdrop-filter:blur(15px);border-bottom:1px solid var(--line);display:flex;justify-content:flex-end;align-items:center;padding:0 34px;z-index:15}.mobile-brand{display:none}.top-actions{display:flex;gap:10px;align-items:center}.content{margin-left:250px;max-width:1500px;padding:34px 42px 100px}.page-head{display:flex;justify-content:space-between;align-items:flex-end;margin-bottom:24px}.eyebrow{letter-spacing:.13em;font-size:11px;font-weight:800;color:var(--red);margin:0 0 4px}.page-head h1{font-size:34px;line-height:1.1;margin:0}.hero{background:linear-gradient(125deg,#17191e,#272b31);color:white;border-radius:24px;padding:38px;display:grid;grid-template-columns:1.4fr .6fr;align-items:center;gap:28px;overflow:hidden;box-shadow:var(--shadow)}.hero h2{font-size:38px;line-height:1.08;margin:14px 0}.hero p{color:#c9cdd3;max-width:720px;font-size:17px}.hero img{width:min(100%,300px);justify-self:end;border-radius:24px;box-shadow:0 18px 50px #0008}.pill,.badge{display:inline-flex;align-items:center;border-radius:999px;font-size:11px;font-weight:800;letter-spacing:.06em;padding:6px 10px}.pill{background:#fff1;color:#fff;border:1px solid #ffffff2c}.hero-actions,.actions-row,.sticky-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.button{display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:12px;padding:11px 16px;font-weight:750;text-decoration:none}.button.primary{background:var(--red);color:white}.button.primary:hover{background:var(--red2)}.button.secondary{background:#fff;color:var(--ink);border:1px solid var(--line)}.hero .button.secondary{background:#ffffff10;color:white;border-color:#ffffff30}.button.danger{background:#761522;color:white}.button.small{padding:8px 12px;font-size:13px}.button.full{width:100%;margin-top:22px}.ghost,.icon-button{border:1px solid var(--line);background:white;color:var(--ink);border-radius:11px;padding:9px 12px}.icon-button{width:40px;height:40px;display:inline-flex;align-items:center;justify-content:center}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin:20px 0}.stat-card{background:white;border:1px solid var(--line);border-radius:16px;padding:19px;display:flex;flex-direction:column}.stat-card strong{font-size:29px;line-height:1}.stat-card span{font-weight:750;margin-top:7px}.stat-card small{color:var(--muted)}.grid{display:grid;gap:16px}.grid.two{grid-template-columns:repeat(2,1fr)}.card{background:white;border:1px solid var(--line);border-radius:var(--radius);padding:23px;box-shadow:0 3px 12px #1111}.card h3{margin:5px 0 8px}.card p{color:#4d545d}.card-icon{font-size:26px;color:var(--red)}.link-button{background:none;border:0;color:var(--red);padding:0;font-weight:750}.bottom-nav{display:none}.doc-toolbar{display:flex;gap:12px;justify-content:space-between;margin-bottom:18px}.search-box{background:white;border:1px solid var(--line);border-radius:13px;display:flex;align-items:center;gap:10px;padding:0 14px;flex:1;max-width:720px}.search-box input{border:0;outline:0;width:100%;padding:12px 0;background:transparent}.doc-layout{display:grid;grid-template-columns:230px minmax(0,1fr);gap:22px}.toc{position:sticky;top:92px;align-self:start;background:white;border:1px solid var(--line);border-radius:15px;padding:14px;max-height:calc(100vh - 115px);overflow:auto}.toc strong{display:block;padding:6px 8px 9px}.toc a{display:block;color:#555c65;padding:7px 8px;border-radius:8px;font-size:13px}.toc a:hover{background:#f3f4f5;color:var(--red)}.document{min-width:0}.doc-section{background:white;border:1px solid var(--line);border-radius:18px;padding:28px;margin-bottom:18px;overflow:hidden}.doc-section[hidden]{display:none}.section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;border-bottom:2px solid #f0f1f2;margin-bottom:20px;padding-bottom:12px}.section-head h2{font-size:25px;margin:0}.section-head a{font-size:13px;white-space:nowrap}.doc-section h3{margin-top:28px}.doc-section table{width:100%;border-collapse:collapse;font-size:13px}.doc-section th,.doc-section td{border:1px solid #dfe2e5;padding:8px;text-align:left;vertical-align:top}.doc-section th{background:#f4f5f6}.doc-section pre,.doc-section code{font-family:ui-monospace,SFMono-Regular,Consolas,monospace}.doc-section pre{background:#15171b;color:#f0f2f4;padding:15px;border-radius:11px;overflow:auto}.doc-section img{max-width:100%;height:auto;border-radius:13px}.published-updates{margin-top:28px}.published-updates article{background:white;border-left:4px solid var(--red);border-radius:0 15px 15px 0;padding:20px;margin:12px 0}.published-updates small{color:var(--muted)}.callout{background:#fff7f8;border:1px solid #f2c8cf;border-left:4px solid var(--red);padding:18px 20px;border-radius:14px;margin-bottom:18px}.callout p{margin-bottom:0}.editor-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.edit-card,.update-card,.file-card{background:white;border:1px solid var(--line);border-radius:15px;padding:16px;display:flex;align-items:center;justify-content:space-between;gap:16px}.edit-card>div,.update-card>div{min-width:0}.edit-card h3,.update-card h3{font-size:15px;margin:0 0 4px}.edit-card small,.update-card p{color:var(--muted);font-size:12px;margin:0}.status-dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:#c4c8cc;margin-right:6px}.status-dot.changed{background:var(--red)}.section-spacer{height:18px}.editor-bar{display:flex;justify-content:space-between;gap:12px;background:white;border:1px solid var(--line);padding:12px 15px;border-radius:13px;margin-bottom:14px}.editor-bar span{font-weight:750}.editor-form{background:white;border:1px solid var(--line);border-radius:18px;padding:22px}.editor-form label,.auth-card label{display:block;font-weight:750;margin:15px 0 6px}.editor-form input,.editor-form select,.auth-card input{width:100%;border:1px solid #ccd0d5;border-radius:11px;padding:11px 12px;background:white}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.help,.muted{color:var(--muted);font-size:13px}.code-editor{width:100%;min-height:55vh;border:1px solid #cfd3d8;border-radius:12px;padding:14px;font:13px/1.55 ui-monospace,SFMono-Regular,Consolas,monospace;resize:vertical;background:#fafafa}.code-editor.compact{min-height:320px}.sticky-actions{position:sticky;bottom:76px;background:#fffc;padding-top:14px;backdrop-filter:blur(8px)}.preview-panel{position:fixed;inset:7vh 5vw;background:white;border-radius:18px;box-shadow:0 25px 80px #0005;z-index:50;overflow:auto;padding:22px}.preview-head{display:flex;justify-content:space-between;position:sticky;top:-22px;background:white;padding:10px 0 14px;border-bottom:1px solid var(--line)}.preview-head button{font-size:28px;background:none;border:0}.danger-zone{margin-top:18px;border:1px solid #efc6cc;background:#fff7f8;border-radius:15px;padding:18px}.danger-zone p{color:#6e5155}.error,.notice{padding:12px 14px;border-radius:11px;margin:12px 0}.error{background:#fff0f2;color:#8b1425}.notice{background:#eef8f2;color:#24603b}.badge.published{background:#eaf7ee;color:#25623a}.badge.draft{background:#f0f1f2;color:#666}.actions-row{justify-content:space-between;margin-bottom:16px}.update-card{margin-bottom:10px}.file-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.file-card{justify-content:flex-start}.file-card .icon-button{margin-left:auto;color:var(--red)}.file-card div{display:flex;flex-direction:column;min-width:0}.file-card strong{overflow-wrap:anywhere}.file-card small{color:var(--muted)}.file-type{width:48px;height:40px;border-radius:9px;background:#f3e4e7;color:var(--red);display:flex;align-items:center;justify-content:center;font-size:10px;font-weight:850}.auth-card{max-width:450px;margin:7vh auto;background:white;border:1px solid var(--line);border-radius:24px;padding:28px;box-shadow:var(--shadow)}.auth-card>img{width:92px;height:92px;object-fit:cover;border-radius:22px;margin-bottom:18px}.auth-card h2{font-size:28px;margin:12px 0 8px}.auth-card p{color:var(--muted)}.empty{background:white;border:1px dashed #cfd3d8;border-radius:16px;padding:30px;text-align:center}.empty p{color:var(--muted)}@media(max-width:1050px){.sidebar{width:215px}.topbar,.content{margin-left:215px}.content{padding:30px 26px 100px}.hero h2{font-size:32px}.doc-layout{grid-template-columns:190px minmax(0,1fr)}}@media(max-width:760px){body{background:#f5f5f6}.sidebar{display:none}.topbar{margin-left:0;height:62px;padding:0 14px;justify-content:space-between}.mobile-brand{display:flex;align-items:center;gap:9px;color:var(--ink)}.mobile-brand img{width:38px;height:38px}.top-actions .ghost{display:none}.content{margin-left:0;padding:20px 14px 92px}.page-head{margin-bottom:16px}.page-head h1{font-size:28px}.bottom-nav{display:grid;position:fixed;bottom:0;left:0;right:0;grid-template-columns:repeat(5,1fr);background:rgba(17,19,23,.97);padding:7px max(6px,env(safe-area-inset-right)) calc(7px + env(safe-area-inset-bottom)) max(6px,env(safe-area-inset-left));z-index:40}.bottom-nav .nav-link{padding:5px 2px;display:flex;flex-direction:column;gap:0;text-align:center;border-radius:9px}.bottom-nav .nav-link span{font-size:20px}.bottom-nav .nav-link b{font-size:10px}.bottom-nav .nav-link.active{box-shadow:none;background:#ffffff12;color:#fff}.hero{grid-template-columns:1fr;padding:24px}.hero h2{font-size:30px}.hero p{font-size:15px}.hero img{width:150px;justify-self:start}.stats{grid-template-columns:repeat(2,1fr)}.grid.two,.editor-grid,.file-grid{grid-template-columns:1fr}.doc-toolbar{position:sticky;top:70px;z-index:10}.doc-toolbar>.button{display:none}.doc-layout{display:block}.toc{display:none}.doc-section{padding:18px 16px;border-radius:14px}.section-head h2{font-size:21px}.doc-section{overflow-x:auto}.doc-section table{min-width:620px}.edit-card,.update-card{align-items:flex-start}.edit-card .button,.update-card .button{flex:0 0 auto}.form-grid{grid-template-columns:1fr}.editor-form{padding:16px}.code-editor{min-height:50vh;font-size:12px}.sticky-actions{bottom:71px}.preview-panel{inset:3vh 3vw 10vh}.file-card{padding:14px}.auth-card{margin:3vh 12px;padding:22px}.actions-row{align-items:flex-start}.actions-row p{margin-top:0}}
.pdf-export{margin-bottom:24px}.pdf-export [role="status"]{font-size:.9rem;min-height:1.3em}.pdf-export button:disabled{opacity:.65;cursor:wait}
