:root{--navy:#07111f;--ink:#0c1628;--muted:#718096;--line:#dfe6ef;--bg:#eef3f8;--accent:#635bff;--white:#fff;--shadow:0 20px 55px rgba(15,30,55,.10)}*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:var(--bg)}button,input,textarea,select{font:inherit}.hidden{display:none!important}.eyebrow{font-size:10px;font-weight:900;letter-spacing:.18em;color:#93a2ba}.brand-mark{display:grid;place-items:center;width:52px;height:52px;border-radius:16px;background:linear-gradient(145deg,#18263e,#07111f);color:#fff;font-weight:900;box-shadow:inset 0 0 0 1px rgba(255,255,255,.18)}.brand-mark.small{width:38px;height:38px;border-radius:12px}.auth-screen{min-height:100vh;display:grid;place-items:center;padding:30px;background:radial-gradient(circle at 20% 10%,rgba(99,91,255,.25),transparent 35%),linear-gradient(140deg,#07111f,#101d34)}.auth-card{width:min(460px,100%);background:rgba(255,255,255,.98);border-radius:28px;padding:42px;box-shadow:0 35px 90px rgba(0,0,0,.28)}.auth-card h1{font-size:38px;letter-spacing:-.04em;margin:20px 0 10px}.auth-card p{color:var(--muted);line-height:1.65}.auth-card label{display:block;font-size:12px;font-weight:800;margin-top:18px}.auth-card label small{font-weight:500;color:var(--muted)}input,textarea,select{width:100%;border:1px solid #ccd6e3;border-radius:13px;background:#fff;padding:13px 14px;color:var(--ink);outline:none;transition:.2s}input:focus,textarea:focus,select:focus{border-color:var(--accent);box-shadow:0 0 0 4px rgba(99,91,255,.12)}input[type=color]{height:50px;padding:5px}.auth-card button,.primary{border:0;border-radius:13px;background:var(--navy);color:#fff;font-weight:850;padding:14px 19px;cursor:pointer}.auth-card button{width:100%;margin-top:22px}.form-message{min-height:20px;color:#c0392b;font-size:12px;margin-top:12px}.studio{min-height:100vh}.topbar{height:88px;background:linear-gradient(135deg,#0c172a,#111f37);color:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 28px;position:sticky;top:0;z-index:20;box-shadow:0 9px 35px rgba(7,17,31,.18)}.brand{display:flex;gap:14px;align-items:center}.brand strong{display:block;font-size:19px;margin-top:3px}.top-actions{display:flex;gap:10px;align-items:center}.top-actions a,.top-actions button{height:42px;border-radius:12px;padding:0 16px;display:inline-flex;align-items:center;text-decoration:none;font-size:12px;font-weight:850;cursor:pointer}.top-actions a,.ghost{color:#dfe7f6;border:1px solid rgba(255,255,255,.16);background:rgba(255,255,255,.05)}.top-actions .primary{background:#fff;color:#0b1627}.sync-state{font-size:11px;color:#a9b7ca;display:flex;align-items:center;gap:7px;margin-right:4px}.sync-state i,.preview-toolbar i{width:9px;height:9px;border-radius:99px;background:#2bd6a1;box-shadow:0 0 0 5px rgba(43,214,161,.12)}.sync-state.dirty i{background:#ffb84d;box-shadow:0 0 0 5px rgba(255,184,77,.14)}.workspace{display:grid;grid-template-columns:220px minmax(390px,530px) minmax(500px,1fr);min-height:calc(100vh - 88px);max-width:1900px;margin:auto}.rail{padding:28px 18px;border-right:1px solid var(--line);background:#f8fafc}.rail-label{font-size:9px;letter-spacing:.18em;font-weight:900;color:#98a5b7;margin:5px 12px 13px}.rail-label.bottom{margin-top:28px}.rail-item{width:100%;border:0;background:transparent;border-radius:15px;padding:11px;display:flex;gap:11px;align-items:center;text-align:left;color:#445168;cursor:pointer;margin-bottom:5px}.rail-item>span{width:34px;height:34px;display:grid;place-items:center;border:1px solid #dce4ef;border-radius:11px;background:#fff;font-size:14px}.rail-item b{display:block;font-size:12px}.rail-item small{display:block;color:#9aa7ba;font-size:9px;margin-top:3px}.rail-item.active{background:var(--navy);color:#fff;box-shadow:0 10px 24px rgba(7,17,31,.18)}.rail-item.active>span{background:rgba(255,255,255,.1);border-color:rgba(255,255,255,.14)}.rail-item.active small{color:#a9b8cd}.channel-card{background:#fff;border:1px solid var(--line);border-radius:14px;padding:13px}.channel-card small{display:block;color:#99a5b7;font-size:8px;text-transform:uppercase;letter-spacing:.12em;font-weight:900;margin-bottom:4px}.channel-card code{display:block;font-size:9px;white-space:normal;word-break:break-all;margin-bottom:10px}.editor{padding:30px 22px 90px;overflow:auto}.editor-head{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;margin-bottom:22px}.editor-head>div>span,.card-title span{font-size:9px;letter-spacing:.16em;color:#8492a7;font-weight:900}.editor-head h2{margin:7px 0 6px;font-size:27px;letter-spacing:-.04em}.editor-head p{margin:0;color:var(--muted);font-size:12px;line-height:1.6}.version-pill{font-size:10px;background:#e8e9ff;color:#4c47d8;padding:7px 10px;border-radius:99px;font-weight:850}.panel{display:none}.panel.active{display:block}.card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:19px;margin-bottom:14px;box-shadow:0 8px 25px rgba(15,30,55,.035)}.card-title{margin-bottom:17px}.card-title h3{font-size:16px;margin:5px 0}.grid{display:grid;gap:14px}.grid.cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid.cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid label,.repeat-item label{font-size:10px;font-weight:850;color:#344057}.grid input,.grid textarea,.grid select,.repeat-item input,.repeat-item textarea,.repeat-item select{margin-top:7px;font-size:12px}.hint{font-size:10px;color:var(--muted);line-height:1.55;margin:14px 0 0}.repeat-list{display:grid;gap:10px}.repeat-item{display:grid;grid-template-columns:1fr 1.4fr auto;gap:10px;border:1px solid #e2e8f0;background:#f9fbfd;border-radius:14px;padding:12px;align-items:end}.feature-list .repeat-item{grid-template-columns:110px 1fr 1.4fr auto}.remove-button{width:34px;height:40px;border:0;background:#fff0ef;color:#d9534f;border-radius:10px;font-weight:900;cursor:pointer}.add-button{margin-top:12px;width:100%;border:1px dashed #b9c5d7;background:#f8fafc;color:#536176;border-radius:12px;padding:12px;font-weight:850;cursor:pointer}.publish-note{display:flex;gap:13px;border:1px solid #b9e8da;background:#f2fffb;border-radius:17px;padding:18px}.publish-note>span{font-size:23px}.publish-note strong{font-size:13px}.publish-note p{font-size:10px;line-height:1.6;color:#66788d;margin:4px 0 0}.preview-shell{background:#e7edf5;border-left:1px solid #d6dee9;min-width:0;position:sticky;top:88px;height:calc(100vh - 88px)}.preview-toolbar{height:60px;background:#fff;border-bottom:1px solid #dbe3ed;display:flex;justify-content:space-between;align-items:center;padding:0 18px}.preview-toolbar>div:first-child{display:grid;grid-template-columns:10px auto;column-gap:9px;align-items:center}.preview-toolbar i{grid-row:1/3}.preview-toolbar strong{font-size:11px}.preview-toolbar small{font-size:8px;color:#9aa6b8}.devices{display:flex;background:#f1f4f8;border-radius:10px;padding:3px}.devices button{width:34px;height:29px;border:0;border-radius:7px;background:transparent;color:#718096;cursor:pointer}.devices button.active{background:#fff;color:#111d31;box-shadow:0 2px 8px rgba(15,30,55,.09)}.preview-stage{height:calc(100% - 60px);padding:18px;display:grid;place-items:start center;overflow:auto}.preview-stage iframe{width:100%;height:100%;border:0;border-radius:16px;background:#fff;box-shadow:var(--shadow);transition:.25s}.preview-stage.tablet iframe{width:760px;max-width:100%}.preview-stage.mobile iframe{width:390px;max-width:100%}.toast{position:fixed;right:24px;bottom:24px;background:#0d1a2e;color:#fff;border-radius:13px;padding:14px 18px;box-shadow:0 15px 45px rgba(0,0,0,.25);font-size:12px;font-weight:800;z-index:40}.toast.error{background:#9f2c35}@media(max-width:1250px){.workspace{grid-template-columns:200px 430px minmax(420px,1fr)}}@media(max-width:980px){.workspace{grid-template-columns:190px 1fr}.preview-shell{display:none}}@media(max-width:700px){.topbar{padding:0 14px}.sync-state,.top-actions a,.ghost{display:none}.workspace{display:block}.rail{display:flex;overflow:auto;border-right:0;border-bottom:1px solid var(--line);padding:10px;position:sticky;top:88px;z-index:10}.rail-label,.channel-card{display:none}.rail-item{min-width:130px;margin:0 5px}.editor{padding:22px 14px 80px}.grid.cols-2,.grid.cols-3,.repeat-item,.feature-list .repeat-item{grid-template-columns:1fr}.remove-button{width:100%}}
