:root{font-family:Arial,"Microsoft YaHei",sans-serif;color:#164419;background:#f8f8f6;--green:#0b6b00;--mint:#cee4db;--lime:#e8f80d;--pink:#ff4ab0;--line:#a5b6a0}*{box-sizing:border-box}body{margin:0}a{color:inherit;text-decoration:none}button,input,textarea,select{font:inherit}button{cursor:pointer;color:var(--green);background:transparent;border:1px solid var(--green);padding:12px 17px;min-height:44px}button:disabled{opacity:.5;cursor:wait}input,textarea,select{width:100%;padding:12px;border:1px solid var(--line);background:#fff;color:#173b19;font-size:15px;border-radius:0}textarea{resize:vertical;line-height:1.7}a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid var(--pink);outline-offset:3px}[hidden]{display:none!important}.primary{background:var(--green);color:var(--lime);border-color:var(--green)}.admin-header{height:78px;padding:0 35px;display:flex;align-items:center;justify-content:space-between;gap:25px;border-bottom:1px solid var(--green)}.admin-brand{font:25px Consolas,monospace;display:flex;gap:22px;align-items:center}.admin-brand span{font-size:15px;border-left:1px solid var(--green);padding-left:22px}.admin-header>div{display:flex;align-items:center;gap:25px;font-size:14px}.admin-header #logout{border:0}.eyebrow{font:12px Consolas,monospace;letter-spacing:1px}.auth-panel{max-width:520px;margin:65px auto;padding:38px;border:1px solid var(--green);background:var(--mint)}.auth-panel h1{font-size:50px;line-height:1.2;font-weight:500;letter-spacing:-2px;margin:22px 0}.auth-panel p{font-size:16px;line-height:1.8}.auth-panel form{margin-top:30px}.auth-panel form button{margin-top:20px;width:100%}label{display:block;font-size:14px;margin:20px 0 9px}.auth-panel .auth-note{font-size:12px;margin-top:28px;padding-top:18px;border-top:1px solid var(--line);line-height:1.8}.status{font-size:14px;line-height:1.6;min-height:22px;margin:12px 0;color:var(--green);overflow-wrap:anywhere}.status.error{color:#b32a43}.workspace-heading{padding:28px 35px;display:flex;justify-content:space-between;gap:20px;align-items:center}.workspace-heading h1{font-size:36px;font-weight:500;margin:12px 0 0}.workspace-heading h1 span{font:16px Consolas,monospace;margin-left:18px}.heading-actions{display:flex;gap:12px}.admin-layout{display:grid;grid-template-columns:315px minmax(0,1fr);border-top:1px solid var(--green);min-height:calc(100vh - 205px)}.project-sidebar{border-right:1px solid var(--green);padding:0 20px 20px;position:sticky;top:0;height:100vh;display:flex;flex-direction:column}.project-sidebar input,.project-sidebar select{flex:none}.list-count{font:12px Consolas,monospace;margin:20px 0 10px}.project-list{overflow:auto;flex:1;border-top:1px solid var(--line)}.project-list>button{display:flex;align-items:center;gap:12px;width:100%;border:0;border-bottom:1px solid var(--line);padding:13px 6px;text-align:left}.project-list>button.active{background:var(--lime)}.list-thumb{width:53px;height:53px;background:var(--mint);object-fit:contain;flex:none}.list-placeholder{display:grid;place-items:center;font-size:24px}.project-list>button>span:last-child{min-width:0}.project-list strong{font-size:14px;line-height:1.6;display:block;font-weight:500;overflow-wrap:anywhere}.project-list small{font-size:11px;display:block;margin-top:5px;color:#60735b}.editor-wrap{padding:30px 40px 0;min-width:0}.empty-editor{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:450px;text-align:center}.empty-editor>span{font-size:90px;color:var(--pink)}.empty-editor h2{font-size:25px;font-weight:500}.empty-editor p{font-size:16px;line-height:1.8}.editor-top{display:flex;justify-content:space-between;gap:20px;border-bottom:1px solid var(--line);padding-bottom:15px}#dirty-indicator{font-size:12px;color:#5e6b57}.field-row{display:grid;grid-template-columns:1.3fr 1fr;gap:22px}label small{font-size:11px;font-weight:400;margin-left:8px;color:#586f50}.check-label{display:flex;align-items:center;gap:10px;margin:20px 0 30px}.check-label input{width:18px;height:18px;accent-color:var(--green)}.cover-section{display:flex;justify-content:space-between;gap:25px;border-top:1px solid var(--line);padding:22px 0}.cover-section h2,.media-section h2{font-size:20px;font-weight:500;margin:0 0 8px}.cover-section p,.media-section p{font-size:13px;line-height:1.7;margin:0 0 18px;color:#5f6c55}.cover-preview{width:200px;height:145px;background:var(--mint);display:grid;place-items:center;flex:none;font-size:12px}.cover-preview img{width:100%;height:100%;object-fit:contain}.upload-label{display:inline-flex;align-items:center;border:1px solid var(--green);padding:11px 16px;min-height:44px;cursor:pointer;margin:0;font-size:14px;background:var(--lime)}#clear-cover{font-size:12px;border:0}.media-section{border-top:1px solid var(--line);padding:24px 0}.media-section-heading{display:flex;justify-content:space-between;gap:20px;align-items:start}.media-section-heading .upload-label{flex:none}.media-section h2 span{font-size:14px;margin-left:10px}.media-row{display:grid;grid-template-columns:64px minmax(0,1fr);gap:14px;border:1px solid var(--line);padding:15px;margin-bottom:12px;background:#fff}.media-row .media-thumb{width:64px;height:64px;background:var(--mint);object-fit:contain;display:grid;place-items:center;font:12px Consolas,monospace}.media-row input{font-size:14px;padding:8px}.media-buttons{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}.media-buttons button,.media-buttons a{padding:6px 10px;font-size:12px;border:1px solid var(--line);min-height:34px;display:inline-flex;align-items:center}.media-buttons .remove{color:#a72f45}.media-row .kind-label{font:11px Consolas,monospace;display:block;color:#5f6c55;margin-bottom:8px}.add-link{border:1px dashed var(--line);padding:17px}.add-link summary{cursor:pointer;font-size:14px}.add-link button{margin-top:15px}#upload-progress{padding:15px 0;font-size:13px}#upload-progress progress{width:100%;height:10px;accent-color:var(--green);margin-bottom:10px}.save-bar{position:sticky;bottom:0;background:var(--mint);border-top:1px solid var(--green);padding:17px 20px;display:flex;justify-content:space-between;gap:20px;align-items:center;margin:20px -40px 0}.save-bar>div:last-child{display:flex;gap:10px;flex:none}.save-bar .status{margin:0}.save-hint{display:block;font-size:12px;line-height:1.7;color:#51654b}.danger{color:#a32c47;border-color:#a32c47}.save-bar .primary{background:var(--green);color:var(--lime)}
@media(min-width:1500px){.editor-wrap{padding-left:70px;padding-right:70px}.save-bar{margin-left:-70px;margin-right:-70px;padding-left:35px;padding-right:35px}.admin-layout{grid-template-columns:360px minmax(0,1fr)}}@media(max-width:1000px){.admin-layout{grid-template-columns:270px minmax(0,1fr)}.editor-wrap{padding:25px 22px 0}.save-bar{margin-left:-22px;margin-right:-22px;flex-wrap:wrap}.cover-preview{width:145px;height:120px}.media-section-heading{flex-wrap:wrap}.media-section-heading .upload-label{margin-bottom:15px}.field-row{grid-template-columns:1fr;gap:0}}
@media(max-width:650px){.admin-header{height:70px;padding:0 18px;gap:15px}.admin-brand{font-size:20px;gap:12px}.admin-brand span{font-size:13px;padding-left:12px}.admin-header>div{gap:5px;font-size:12px}.admin-header #logout{font-size:12px;padding:8px}.auth-panel{margin:30px 18px;padding:25px}.auth-panel h1{font-size:43px}.auth-panel p{font-size:15px}.workspace-heading{padding:24px 18px;align-items:start;flex-direction:column}.workspace-heading h1{font-size:31px}.heading-actions{width:100%}.heading-actions>button{flex:1;font-size:13px}.admin-layout{grid-template-columns:1fr}.project-sidebar{height:auto;max-height:470px;position:static;border-right:0;border-bottom:1px solid var(--green);padding:0 18px 20px}.project-list{max-height:230px;min-height:100px}.project-list strong{font-size:14px}.project-sidebar label{margin-top:14px}.editor-wrap{padding:25px 18px 0}.empty-editor{min-height:300px}.empty-editor h2{font-size:21px}.cover-section{flex-wrap:wrap}.cover-preview{width:100%;height:200px}.save-bar{margin:20px -18px 0;padding:14px 18px;gap:12px}.save-bar>div:last-child{width:100%}.save-bar button{flex:1;font-size:13px}.save-hint{font-size:11px}.media-row{grid-template-columns:45px minmax(0,1fr);gap:10px;padding:11px}.media-row .media-thumb{width:45px;height:45px}.media-buttons{gap:5px}.media-buttons button,.media-buttons a{font-size:11px;padding:6px 8px}.media-row input{font-size:13px}.media-section-heading h2{font-size:20px}}
