:root{color-scheme:light;--ink:#102b32;--muted:#637a7c;--green:#20c978;--blue:#168fe5;--line:#dceae4;--paper:#f5faf7;--white:#fff;--red:#c34256}
*{box-sizing:border-box}body{margin:0;min-height:100vh;color:var(--ink);background:radial-gradient(ellipse at 4% 0%,rgba(32,207,120,.11),transparent 32%),radial-gradient(ellipse at 100% 95%,rgba(22,143,229,.12),transparent 34%),var(--paper);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}.ambient{position:fixed;inset:0;overflow:hidden;pointer-events:none}.ambient i,.ambient b{position:absolute;display:block;border-radius:50%;filter:blur(3px)}.ambient i{width:440px;height:440px;left:-250px;top:40%;background:radial-gradient(circle,rgba(32,207,120,.1),transparent 70%)}.ambient b{width:500px;height:500px;right:-300px;top:-170px;background:radial-gradient(circle,rgba(22,143,229,.1),transparent 70%)}.shell{position:relative;z-index:1;width:min(1440px,100% - 48px);margin:0 auto;padding:38px 0}.login-card{width:min(100%,470px);margin:8vh auto 0;padding:44px;border:1px solid rgba(34,133,105,.22);border-radius:25px;background:rgba(255,255,255,.88);box-shadow:0 25px 80px rgba(24,77,66,.09)}.eyebrow{display:flex;align-items:center;gap:9px;color:#16845f;font-size:11px;font-weight:800;letter-spacing:.15em}.pulse{width:8px;height:8px;border-radius:50%;background:var(--green);box-shadow:0 0 0 4px rgba(32,201,120,.13)}h1{margin:18px 0 13px;font-size:clamp(2rem,4vw,3.2rem);letter-spacing:-.065em;line-height:1.03}.login-card h1 span{color:transparent;background:linear-gradient(100deg,#14b962,#10b9aa 53%,#168fe5);background-clip:text;-webkit-background-clip:text}.muted{color:var(--muted);line-height:1.65}.login-card .muted{margin:0 0 28px}.login-card label,.field label{display:block;margin-bottom:8px;font-size:13px;font-weight:700}input,textarea{width:100%;border:1px solid #cfe1d9;border-radius:11px;background:#fbfdfc;color:var(--ink);font:inherit;outline:0;transition:border-color .15s,box-shadow .15s}input{height:46px;padding:0 14px}input:focus,textarea:focus{border-color:#20b782;box-shadow:0 0 0 3px rgba(32,183,130,.12)}.button{display:inline-flex;align-items:center;justify-content:center;gap:18px;min-height:42px;padding:0 16px;border:1px solid transparent;border-radius:11px;font:inherit;font-size:13px;font-weight:750;text-decoration:none;cursor:pointer;transition:transform .15s,box-shadow .15s,background .15s}.button:hover{transform:translateY(-1px)}.primary{color:white;background:linear-gradient(105deg,#13b967,#0ca8a7 54%,#168fe5);box-shadow:0 8px 20px rgba(12,164,135,.17)}.subtle{color:#395d5a;border-color:#d4e4dd;background:rgba(255,255,255,.76)}.full{width:100%;margin-top:14px}.error{min-height:18px;margin:10px 0 0;color:var(--red);font-size:12px}.app-screen[hidden],.login-card[hidden],[hidden]{display:none!important}.topbar{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:26px}.topbar h1{margin:8px 0 0;font-size:clamp(1.8rem,4vw,2.5rem)}.top-actions{display:flex;gap:9px}.workspace{display:grid;grid-template-columns:290px minmax(0,1fr);align-items:start;gap:18px}.card{border:1px solid rgba(34,133,105,.17);border-radius:19px;background:rgba(255,255,255,.89);box-shadow:0 14px 45px rgba(24,77,66,.055)}.page-list{position:sticky;top:20px;padding:20px 14px;max-height:calc(100vh - 150px);overflow:auto}.list-head{display:flex;justify-content:space-between;align-items:center;padding:0 4px 15px;border-bottom:1px solid #e8f0ed}.list-head h2,.editor-head h2{margin:0;font-size:16px;letter-spacing:-.02em}.small{font-size:12px}.list-head p{margin:3px 0 0}.icon-button{width:36px;height:36px;border:0;border-radius:10px;color:#fff;background:linear-gradient(120deg,var(--green),var(--blue));font-size:23px;line-height:1;cursor:pointer}.pages-list{padding-top:9px}.page-item{display:block;width:100%;margin:4px 0;padding:12px 11px;border:1px solid transparent;border-radius:11px;background:transparent;text-align:left;color:var(--ink);cursor:pointer}.page-item:hover{background:#f3f9f6}.page-item.active{border-color:#c9e9dc;background:#eef9f4}.page-item-title{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:13px;font-weight:750}.page-item-url{display:block;margin-top:5px;color:#708483;font-size:11px;overflow-wrap:anywhere}.mini-badge{padding:3px 7px;border-radius:99px;font-size:9px;font-weight:800;white-space:nowrap}.mini-badge.published{color:#14734f;background:#e5f7ed}.mini-badge.draft{color:#8d6426;background:#fff4de}.mini-badge.archived{color:#667477;background:#edf1f0}.editor{min-height:650px;padding:23px}.editor-head{display:flex;justify-content:space-between;align-items:center;gap:12px;padding-bottom:18px;border-bottom:1px solid #e8f0ed}.editor-head .eyebrow{margin-bottom:6px}.badge{padding:6px 10px;border-radius:99px;font-size:10px;font-weight:800}.badge.published{background:#e5f7ed;color:#14734f}.badge.draft{background:#fff4de;color:#8d6426}.badge.archived{background:#edf1f0;color:#667477}.editor-empty{max-width:440px;margin:90px auto;text-align:center}.empty-icon{display:grid;place-items:center;width:55px;height:55px;margin:auto;border-radius:17px;color:#118f92;background:linear-gradient(130deg,rgba(32,207,120,.15),rgba(22,143,229,.15));font-size:25px}.editor-empty h3{margin:18px 0 8px}.editor-empty p{margin:0 auto 20px}.fields{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:20px 0}.slug-input{display:flex;align-items:center;min-height:46px;padding-left:12px;border:1px solid #cfe1d9;border-radius:11px;background:#fbfdfc}.slug-input:focus-within{border-color:#20b782;box-shadow:0 0 0 3px rgba(32,183,130,.12)}.slug-input span{color:#708483;font-size:12px;white-space:nowrap}.slug-input input{height:42px;padding-left:7px;border:0;background:transparent;box-shadow:none}.field small{display:block;margin:7px 0 0;color:#7b9090;font-size:11px}.label-row{display:flex;justify-content:space-between;align-items:center;gap:12px}.html-field textarea{display:block;min-height:270px;padding:14px;resize:vertical;border-radius:12px;background:#10272b;color:#d8fff0;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:12px;line-height:1.65;tab-size:2}.html-field textarea::placeholder{color:#83a9a1}.preview-wrap{margin-top:18px;border:1px solid #dceae4;border-radius:13px;overflow:hidden;background:#fff}.preview-title{display:flex;justify-content:space-between;padding:11px 13px;border-bottom:1px solid #e6efeb;font-size:12px;font-weight:700}.preview-wrap iframe{display:block;width:100%;height:330px;border:0;background:white}.form-message{min-height:22px;padding-top:9px;color:#237654;font-size:12px}.form-message.error{color:var(--red)}.form-actions{display:flex;justify-content:space-between;align-items:center;gap:10px;padding-top:13px;border-top:1px solid #e8f0ed}.publish-actions{display:flex;align-items:center;gap:9px}.empty{padding:18px 8px;color:#819291;text-align:center}.topbar footer{padding-top:4px}footer{display:flex;justify-content:space-between;gap:10px;padding:16px 4px;color:#819291;font-size:11px}footer strong{color:#52716d}footer span{white-space:nowrap}
@media(max-width:880px){.workspace{grid-template-columns:240px minmax(0,1fr)}.editor{padding:18px}}
@media(max-width:680px){.shell{width:calc(100% - 28px);padding:22px 0}.login-card{padding:30px 24px;margin-top:10vh}.topbar{align-items:flex-start;flex-direction:column}.top-actions{width:100%}.top-actions .button{flex:1}.workspace{grid-template-columns:1fr}.page-list{position:static;max-height:270px}.editor{min-height:500px;padding:16px}.editor-empty{margin:55px auto}.fields{grid-template-columns:1fr;gap:13px}.html-field textarea{min-height:230px}.preview-wrap iframe{height:280px}.form-actions{align-items:stretch;flex-direction:column-reverse}.publish-actions{width:100%}.publish-actions .button{flex:1}footer{font-size:10px}}
