@font-face{font-family:DM;src:url(assets/fonts/font-0.ttf)}@font-face{font-family:DM;src:url(assets/fonts/font-2.ttf);font-weight:600}@font-face{font-family:Manrope;src:url(assets/fonts/font-6.ttf);font-weight:600}*{box-sizing:border-box}html{color-scheme:dark}body{margin:0;background:#171815;color:#eeeee6;font:13px/1.5 DM,Arial,sans-serif}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.4;cursor:default}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible{outline:2px solid #ed8d6a;outline-offset:4px}.topbar{height:82px;padding:0 30px;display:flex;align-items:center;gap:26px;border-bottom:1px solid #35362e;background:#1b1c18}.wordmark{font:bold 36px Georgia,serif;letter-spacing:-2px}.wordmark span{color:#ed7954}.product{font-size:10px;letter-spacing:2px;border-left:1px solid #414237;padding-left:26px;color:#b6b8a8}.connection{font-size:11px;color:#a6c6a0;margin-left:auto}.top-actions{display:flex;gap:10px}.button{border:1px solid #484a3e;border-radius:6px;background:transparent;color:#eeeee6;padding:10px 15px;white-space:nowrap;font-weight:600}.button span{margin-left:12px}.button.export{background:#e8e8dc;color:#24261e;border-color:#e8e8dc}.button.primary{background:#eb7851;border-color:#eb7851;color:#1b1c17}.button:hover:not(:disabled){filter:brightness(1.12)}.button.quiet{font-weight:400}.workspace{display:grid;grid-template-columns:280px minmax(380px,1fr) 390px;height:calc(100dvh - 82px);max-width:1800px;margin:auto}.library{border-right:1px solid #34362c;display:flex;flex-direction:column;min-height:0;background:#1b1c18}.library-heading{display:flex;justify-content:space-between;align-items:center;padding:28px 22px 20px}.eyebrow{color:#a9aa97;font-size:9px;font-weight:600;letter-spacing:1.7px}h1{font:600 19px Manrope,Arial;margin:8px 0 0}h1 small{font:11px DM;background:#34372b;color:#cacdbb;padding:3px 6px;margin-left:5px;border-radius:4px}.add-book{width:32px;height:32px;border:1px solid #525544;background:#2d3026;color:#e2e4d7;font-size:23px;border-radius:6px}.search{margin:0 20px;display:flex;align-items:center;gap:8px;background:#141510;border:1px solid #3b3e30;border-radius:6px;padding:9px 11px}.search svg{width:17px;fill:none;stroke:#929784;stroke-width:1.5;flex:none}.search input{border:0!important;padding:0!important;background:none!important;min-width:0}.list-filters{padding:14px 20px;display:flex;align-items:center;justify-content:space-between;font-size:10px;color:#a1a58f}.list-filters select{background:none;border:0;color:#c2c6b1;font-size:11px;padding:0;max-width:130px}.book-list{overflow-y:auto;flex:1;padding:0 10px 18px;scrollbar-width:thin;scrollbar-color:#434736 transparent}.book-item{width:100%;display:flex;gap:12px;align-items:center;padding:12px;border:1px solid transparent;text-align:left;border-radius:7px;background:none;color:inherit;margin-bottom:4px}.book-item:hover{background:#24271f}.book-item.selected{background:#303429;border-color:#515a41}.book-item img{width:35px;height:47px;object-fit:contain;background:#10120d;flex:none}.book-item strong{font-size:12px;font-weight:600;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.book-item small{display:block;font-size:10px;margin-top:5px;color:#a3aa92}.item-state{display:inline-block;width:5px;height:5px;border-radius:50%;background:#9cbe82;margin-right:4px}.item-state.draft{background:#eab269}.item-state.archived{background:#83877a}.library-foot{border-top:1px solid #34372c;padding:17px 20px;display:flex;gap:8px;align-items:center;font-size:10px;color:#939b83}.library-foot button{margin-left:auto;background:none;border:0;color:inherit;font-size:18px}.db-dot{width:5px;height:5px;border-radius:50%;background:#9cbe82}.editor{overflow-y:auto;scrollbar-width:thin;scrollbar-color:#434736 transparent;padding:30px 34px 0;min-width:0}.editor-heading{display:flex;justify-content:space-between;align-items:center;padding-bottom:25px;border-bottom:1px solid #35382d}.editor-heading h2{font:600 27px Manrope;margin:7px 0 5px;letter-spacing:-.8px}.editor-heading p{font-size:11px;color:#a4a895;margin:0}.badge{border:1px solid #4c5840;border-radius:30px;padding:5px 10px;color:#c2d3ac;font-size:10px;text-transform:capitalize}.badge.draft{color:#ebbf8f;border-color:#68513b}.badge.archived{color:#a3a894;border-color:#484b40}fieldset{border:0;padding:0;margin:0;min-width:0}.form-section{padding:26px 0;border-bottom:1px solid #33362a}.section-heading{display:flex;align-items:center;gap:10px;margin-bottom:19px}.section-heading span{color:#9ca88c;border:1px solid #424937;border-radius:5px;font-size:10px;padding:3px 6px}.section-heading h3{font-size:13px;margin:0;font-weight:600}.field-grid{display:grid;grid-template-columns:1fr 1fr;gap:17px 16px}label{display:block;font-size:11px;color:#c8cbbb;min-width:0}.full{grid-column:1/-1}input,textarea,select{display:block;width:100%;background:#20231b;color:#ebeddf;border:1px solid #444938;border-radius:5px;padding:10px 11px;margin-top:7px;outline:none;min-width:0}input:focus,textarea:focus,select:focus{border-color:#c7aa7f;box-shadow:0 0 0 2px #c7aa7f13}input::placeholder,textarea::placeholder{color:#7f8672}input[readonly]{color:#8f9980;background:#1c1f17;cursor:default;font-size:10px}textarea{resize:vertical;line-height:1.7}.required{color:#e38f6a}.optional{color:#838d76;font-size:10px;font-weight:400;margin-left:4px}.help{display:block;color:#929d80;font-size:10px;line-height:1.7;margin-top:6px}.help.missing{color:#e7aa79}.field-error{display:block;color:#ffaf96;font-size:10px;margin-top:4px}.field-error:empty{display:none}[aria-invalid=true]{border-color:#e5896a}.filename{display:flex;align-items:center;border:1px solid #444938;background:#20231b;border-radius:5px;margin-top:7px}.filename>span{padding-left:11px;color:#8c987c;font-size:10px;white-space:nowrap}.filename input{border:0;background:transparent;margin:0;padding-left:4px}.filename:focus-within{border-color:#c7aa7f}.savebar{position:sticky;bottom:0;display:flex;align-items:center;gap:10px;padding:18px 0;background:#171815f5;backdrop-filter:blur(10px);border-top:1px solid #33362a;margin-top:-1px}.savebar>span{font-size:10px;color:#a1aa90;margin-right:auto;max-width:180px}.preview-pane{background:#20231b;border-left:1px solid #34382b;padding:30px 24px;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#434736 transparent}.preview-heading{display:flex;justify-content:space-between;align-items:center}.preview-heading h2{font:600 20px Manrope;margin:7px 0}.live-dot{font-size:8px;letter-spacing:1.4px;color:#bdd09e}.live-dot:before{content:'';display:inline-block;width:5px;height:5px;background:#bdd09e;border-radius:50%;margin-right:6px}.preview-toolbar{display:flex;gap:8px;margin:22px 0 15px;align-items:center}.segmented{display:flex;background:#14170f;border:1px solid #3a422f;border-radius:5px;padding:3px;flex:1}.segmented button{font-size:10px;flex:1;background:none;color:#a1ac8e;border:0;padding:8px 5px;border-radius:3px}.segmented .active{background:#373f2d;color:#edf1e4}.theme{width:32px;height:32px;border:1px solid #485039;color:#cad7b6;background:none;border-radius:5px;font-size:19px}.preview-stage{background:#10130c;border:1px solid #3d4631;border-radius:12px;padding:10px;box-shadow:0 12px 25px #0002}.preview-stage iframe{width:100%;height:480px;border:0;display:block;border-radius:6px;background:#171815}.preview-caption{text-align:center;color:#8e9c79;font-size:10px;line-height:1.7;margin:16px 0 24px}.preview-settings{border-top:1px solid #3b4431;padding:18px 0;color:#a7b294}.preview-settings input{font-size:11px}.preview-settings p{font-size:10px;line-height:1.8}.preview-settings button{font-size:10px;padding:7px 11px}.workflow-note{background:#2b3223;border:1px solid #3f4a32;border-radius:8px;padding:18px;margin-top:18px;color:#aebd99}.note-symbol{font-size:20px;color:#e7a279}.workflow-note h3{color:#e1e9d5;font-size:13px;margin:8px 0}.workflow-note p{font-size:11px;line-height:1.8;margin:0}.text-button{font-size:11px;color:#e6e9d9;border:0;background:none;padding:12px 0 0;text-decoration:underline;text-underline-offset:3px}.docs-link{font-size:10px;display:block;margin-top:24px;color:#a8b691}details summary{cursor:pointer;font-size:11px}details[open] summary{margin-bottom:15px}.form-section details{margin-top:20px}.muted{color:#9ba58a;padding:15px}.banner{background:#382a22;border:1px solid #85593f;color:#f2c5a8;padding:12px;border-radius:6px;margin:16px 0;font-size:12px}#toast{position:fixed;bottom:24px;left:50%;transform:translate(-50%,15px);opacity:0;background:#eef0df;color:#25291c;border-radius:8px;padding:12px 20px;box-shadow:0 5px 30px #0005;z-index:40;transition:.2s;pointer-events:none;max-width:90vw}#toast.show{opacity:1;transform:translate(-50%,0)}dialog{color:#e8ebdc;background:#23271d;border:1px solid #505a40;border-radius:12px;padding:25px;width:min(440px,calc(100% - 32px));box-shadow:0 20px 60px #0007}dialog::backdrop{background:#0009;backdrop-filter:blur(3px)}dialog h2{font:600 20px Manrope;margin:0 0 12px}dialog p{color:#acb69b;line-height:1.8}dialog>div{display:flex;justify-content:flex-end;gap:10px;margin-top:25px}[hidden]{display:none!important}@media(min-width:1550px){.workspace{grid-template-columns:310px minmax(450px,1fr) 450px}.preview-stage iframe{height:550px}.editor{padding-left:45px;padding-right:45px}}@media(max-width:1180px){.workspace{grid-template-columns:240px minmax(330px,1fr) 320px}.editor{padding:26px 22px 0}.preview-pane{padding:26px 15px}.topbar{gap:18px;padding:0 22px}.product{padding-left:18px}.connection{display:none}.top-actions{margin-left:auto}}@media(max-width:940px){.workspace{height:auto;grid-template-columns:250px minmax(0,1fr)}.library{position:sticky;top:0;height:calc(100dvh - 82px);grid-row:1/3}.editor{overflow:visible}.preview-pane{grid-column:2;border-top:1px solid #3b4431;border-left:0}.preview-stage{max-width:390px;margin:auto}.preview-toolbar,.preview-heading{max-width:390px;margin-left:auto;margin-right:auto}.savebar{z-index:5}.preview-settings,.workflow-note,.docs-link{max-width:390px;margin-left:auto;margin-right:auto}}@media(max-width:620px){.topbar{height:auto;min-height:74px;padding:12px 16px;gap:12px;flex-wrap:wrap}.wordmark{font-size:30px}.product{font-size:8px}.top-actions{width:100%;margin:0}.top-actions button{flex:1;font-size:11px}.workspace{display:block}.library{position:static;height:320px;border-right:0;border-bottom:1px solid #3b4431}.library-heading{padding:18px 20px 12px}.library-foot{padding:8px 20px}.editor{padding:24px 20px 0}.preview-pane{padding:28px 20px}.savebar>span{max-width:110px}.savebar .button{padding:10px;font-size:11px}.field-grid{gap:16px 10px}.filename>span{font-size:9px}.editor-heading h2{font-size:24px}.badge{font-size:9px}.book-item{padding:9px 12px}.book-item img{width:28px;height:36px}}@media(prefers-reduced-motion:reduce){*{transition:none!important}}

[hidden]{display:none!important}.editor-empty{padding:80px 24px;text-align:center;border:1px dashed var(--border,#393b35);border-radius:16px;margin-top:28px}.editor-empty h3{font-size:24px}.editor-empty p,.preview-empty{color:#a5a79e;line-height:1.7}.editor-empty .button{margin:20px auto 0}.preview-empty{text-align:center;padding:60px 24px}

.add-book{display:inline-flex;align-items:center;justify-content:center;padding:0;flex-shrink:0;line-height:1}.add-book svg{display:block;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
.studio-dialog{width:min(620px,calc(100% - 32px));max-width:620px;max-height:90dvh;overflow:auto}.studio-dialog textarea{display:block;width:100%;padding:12px;border:1px solid #555;border-radius:6px;background:#171815;color:#f2f1ea;font:inherit}.studio-dialog p{font-size:13px;line-height:1.6;color:#b5b7aa}.studio-dialog #studio-error{color:#ff9a78}.studio-actions{display:flex;flex-wrap:wrap;gap:10px}

.field-grid .catalog-check{display:flex;align-items:center;gap:10px;padding:12px;border:1px solid var(--line);border-radius:8px}.catalog-check input[type=checkbox]{width:18px;height:18px;flex:none;accent-color:#05ce78}input:disabled{opacity:.5}
