:root{--bg:#100d17;--panel:#17121f;--panel2:#1b1626;--elev:#211a30;--line:#2e263c;--line2:#3a304b;--text:#eee8fa;--muted:#9489a5;--soft:#b8afc6;--primary:#9775e9;--primary2:#b39afa;--primary-br:#5d438a;--danger:#ec6b84;--radius:13px;--rail:74px;--pages:192px;--props:242px;font-synthesis:none}
*{box-sizing:border-box}html,body{margin:0;min-width:320px;width:100%;height:100%;overflow:hidden}body{font-family:'DM Sans',system-ui,-apple-system,Segoe UI,sans-serif;background:var(--bg);color:var(--text);font-size:13px;-webkit-font-smoothing:antialiased}button,input,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.35}button:focus-visible,input:focus-visible,textarea:focus-visible{outline:2px solid var(--primary2);outline-offset:2px}button svg,.ic{width:18px;height:18px;display:block;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:0 0 auto}h1,h2,p{margin:0}button{border:0}button,.tool,.paper-wrap{user-select:none}.app{display:flex;flex-direction:column;min-height:100%;height:100dvh}.topbar{height:67px;min-height:67px;display:flex;align-items:center;gap:17px;padding:0 21px 0 19px;background:#16101e;border-bottom:1px solid var(--line);position:relative;z-index:3}.brand{display:flex;align-items:center;gap:9px;flex:none}.brand-mark{display:grid;place-items:center;width:30px;height:34px;color:#bfa7ff}.brand-mark svg{width:29px;height:29px}.brand-name{font:800 20px/1 'Manrope',sans-serif;letter-spacing:-1.25px}.brand-tint{color:#b796f4}.brand-beta{font-size:9px;letter-spacing:1.1px;font-weight:800;border:1px solid #5b4678;border-radius:5px;color:#ad8cda;padding:4px 5px;margin-left:1px}.top-divider{height:25px;width:1px;background:var(--line2);flex:none}.top-divider.short{height:22px}.document-meta{min-width:0;display:flex;align-items:center;gap:9px;flex:1}.document-name{max-width:320px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:700;font-size:12px}.document-sub{font-size:11px;color:var(--muted);white-space:nowrap}.dirty-dot{width:6px;height:6px;background:#d9aa74;border-radius:50%}.top-actions{display:flex;align-items:center;gap:7px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:36px;padding:0 13px;border-radius:9px;white-space:nowrap;font-size:12px;font-weight:700;transition:background .15s,transform .15s,color .15s}.btn:not(:disabled):active{transform:translateY(1px)}.btn-subtle{background:transparent;color:#c4b8d1}.btn-subtle:not(:disabled):hover{background:#292033;color:white}.btn-primary{color:#fff;background:linear-gradient(135deg,#8260d0,#a179e9);box-shadow:0 3px 15px #523a8140}.btn-primary:not(:disabled):hover{background:linear-gradient(135deg,#9470e0,#b38ff5)}.btn-secondary{border:1px solid var(--line2);background:#282135;color:#dcd3e8}.btn-secondary:not(:disabled):hover{background:#352a49}.btn.full{width:100%}.workspace{display:flex;flex:1;min-height:0;min-width:0}.rail{width:var(--rail);background:#17111f;border-right:1px solid var(--line);padding:20px 9px 12px;display:flex;flex-direction:column;gap:8px;flex:none;align-items:center}.rail-header{color:#6e617f;letter-spacing:1.8px;font-size:9px;font-weight:800;margin:0 0 12px}.tool{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:5px;height:55px;width:54px;border:1px solid transparent;border-radius:10px;background:transparent;color:#9d91b2;font-size:9px;letter-spacing:.1px;transition:background .16s,color .16s}.tool .ic{width:19px;height:19px;stroke-width:1.75}.tool:hover{background:#272033;color:#f0e9fd}.tool.active{background:#342745;color:#d5b9ff;border-color:#4e3a6a}.rail-separator{width:32px;height:1px;background:var(--line);margin:3px 0}.rail-grow{flex:1}.pages-panel{display:flex;flex-direction:column;flex:none;width:var(--pages);background:#1a1423;border-right:1px solid var(--line);min-height:0}.panel-title-row{display:flex;justify-content:space-between;align-items:center;height:62px;min-height:62px;padding:0 18px;color:#a79ab9;font-size:10px;font-weight:800;letter-spacing:1.55px;border-bottom:1px solid var(--line)}.pages-list{flex:1;min-height:0;overflow:auto;padding:18px 18px 20px;scrollbar-color:#493a5b transparent;scrollbar-width:thin}.panel-placeholder{color:#837590;font-size:12px;line-height:1.5;text-align:center;margin-top:28px}.page-item{position:relative;margin-bottom:19px;cursor:pointer}.page-thumb{height:auto;width:100%;min-height:110px;display:flex;align-items:center;justify-content:center;background:#fff;border:2px solid transparent;border-radius:5px;overflow:hidden;box-shadow:0 6px 14px #0004;transition:border-color .12s}.page-item.selected .page-thumb{border-color:#af89f5;box-shadow:0 0 0 1px #af89f544,0 6px 14px #0004}.page-thumb canvas{max-width:100%;display:block}.page-caption{display:flex;align-items:center;justify-content:space-between;color:#a89cba;font-size:11px;margin:8px 3px 0}.page-item.selected .page-caption{color:#e2ccff}.page-grip{opacity:.55;font-size:13px;letter-spacing:1px}.pages-actions{display:flex;align-items:center;justify-content:center;gap:13px;padding:12px 0;background:#1e1727;border-top:1px solid var(--line)}.icon-btn{background:transparent;color:#aea1bf;width:31px;height:31px;display:grid;place-items:center;border-radius:8px;flex:none}.icon-btn:not(:disabled):hover{background:#342844;color:#fff}.icon-btn.danger-hover:not(:disabled):hover{color:var(--danger);background:#512638}.editor-main{flex:1;min-width:0;position:relative;background:#110e18;overflow:hidden}.empty-state{width:100%;height:100%;position:relative;display:flex;align-items:center;justify-content:center;isolation:isolate;overflow:hidden;background:radial-gradient(ellipse 43% 45% at 50% 45%,#261833 0%,transparent 95%),#100d17}.hero-glow{pointer-events:none;position:absolute;width:520px;height:520px;border-radius:100%;background:radial-gradient(circle,#6b4a9624,transparent 66%);filter:blur(24px);z-index:-1}.hero-body{text-align:center;padding:36px 26px;display:flex;align-items:center;flex-direction:column;max-width:670px}.hero-icon{width:94px;height:94px;background:linear-gradient(150deg,#342447,#261b34);border:1px solid #5b4375;border-radius:24px;display:grid;place-items:center;color:#d3bbff;margin-bottom:28px;box-shadow:0 16px 54px #5b30982c, inset 0 1px #ffffff13;transform:rotate(-3deg)}.hero-icon svg{width:61px;height:61px}.eyebrow{color:#a88bd5;font-size:10px;font-weight:800;letter-spacing:2.1px;margin-bottom:17px}.hero-body h1{font:800 clamp(36px,4.9vw,61px)/1.16 Manrope,sans-serif;letter-spacing:-2.5px;margin-bottom:18px}.hero-body h1 em{font-style:normal;color:#bc99ff}.hero-body p{font-size:14px;color:#aca1b9;line-height:1.8;margin-bottom:27px}.btn-hero{height:50px;padding:0 22px;font-size:13px;border-radius:11px;box-shadow:0 7px 31px #5b408068}.button-arrow{font-size:20px;margin-left:15px;font-weight:400}.drop-hint{color:#776e85;font-size:11px;margin-top:15px}.hero-features{margin-top:55px;display:flex;gap:28px;flex-wrap:wrap;justify-content:center;color:#90839f;font-size:11px}.hero-features span{display:flex;align-items:center;gap:7px}.hero-features .ic{width:14px;height:14px;color:#a990c9}.hero-footnote{position:absolute;bottom:21px;left:0;right:0;text-align:center;color:#5d556a;font-size:9px;letter-spacing:1.6px;font-weight:700}.footnote-dot{margin:0 5px}.editor-view{height:100%;display:flex;flex-direction:column;min-height:0}.editor-view[hidden],.empty-state[hidden]{display:none}.editor-toolbar{height:56px;min-height:56px;display:flex;align-items:center;gap:14px;padding:0 19px;background:#16111d;border-bottom:1px solid var(--line)}.toolbar-group,.zoom-actions{display:flex;align-items:center;gap:3px}.toolbar-divider{height:22px;width:1px;background:var(--line2)}.tool-hint{font-size:11px;color:#9187a0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.toolbar-spacer{flex:1}.zoom-value{border:0;background:transparent;color:#d7cee6;min-width:53px;padding:6px;font-size:12px;font-weight:700}.zoom-value:hover{background:#292133;border-radius:6px}.canvas-scroll{flex:1;overflow:auto;min-height:0;min-width:0;background-color:#211c28;background-image:radial-gradient(#54496350 .6px,transparent .6px);background-size:17px 17px;display:flex;align-items:flex-start;justify-content:flex-start;padding:48px 40px;scrollbar-color:#4a3c59 transparent;scrollbar-width:thin}.paper-wrap{position:relative;flex:none;margin:auto;background:white;box-shadow:0 13px 47px #0009;line-height:0}.paper-wrap canvas{display:block}.paper-wrap #annotationCanvas{position:absolute;inset:0;touch-action:none;cursor:crosshair}.paper-wrap.select-tool #annotationCanvas{cursor:default}.paper-wrap.dragging #annotationCanvas{cursor:grabbing}.editor-status{height:36px;min-height:36px;border-top:1px solid var(--line);background:#17111e;display:flex;align-items:center;justify-content:space-between;padding:0 18px;color:#978aa7;font-size:10px;gap:12px}.status-center{flex:1;text-align:center;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.local-tag{color:#b19ccc;display:flex;gap:7px;align-items:center;white-space:nowrap}.local-tag .ic{width:13px;height:13px}.properties-panel{background:#191321;width:var(--props);display:flex;flex-direction:column;flex:none;border-left:1px solid var(--line);min-height:0}.properties-body{overflow:auto;padding:23px 17px;min-height:0;flex:1;scrollbar-width:thin;scrollbar-color:#493a5b transparent}.property-group{margin-bottom:25px}.property-label{display:flex;justify-content:space-between;margin-bottom:11px;font-size:11px;font-weight:700;color:#c1b6d0}.property-label>span{font-weight:500;color:#9485a7}.properties-panel textarea{background:#241d30;border:1px solid var(--line2);border-radius:8px;resize:vertical;outline:none;color:#eee9fa;width:100%;min-height:78px;padding:11px;font-size:12px;line-height:1.5}.properties-panel textarea:focus{border-color:#a183e3}.property-tip{color:#756b84;font-size:10px;line-height:1.6;margin-top:8px}input[type=range]{appearance:none;-webkit-appearance:none;width:100%;height:3px;border-radius:9px;background:#4b3a5e;outline:0;margin:10px 0 4px}input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;height:13px;width:13px;border:3px solid #ae88f4;background:#25172f;border-radius:100%;cursor:pointer;box-shadow:0 0 0 2px #9c78e232}input[type=range]::-moz-range-thumb{height:11px;width:11px;border:3px solid #ae88f4;background:#25172f;border-radius:50%;cursor:pointer}.color-row{display:flex;align-items:center;gap:10px;background:#241c30;border:1px solid var(--line2);border-radius:9px;padding:8px}.color-row input{height:24px;width:29px;padding:0;border:0;background:none;cursor:pointer}.color-value{font-size:11px;color:#bdb2cf;font-weight:700;letter-spacing:.5px}.swatches{display:flex;gap:9px;margin-top:12px}.swatches button{width:23px;height:23px;border-radius:50%;background:var(--sw);border:2px solid #45374f;transition:transform .16s}.swatches button.active{outline:2px solid #ae89f6;outline-offset:2px}.swatches button:hover{transform:scale(1.1)}.panel-line{height:1px;background:var(--line);margin:25px 0}.selection-actions .panel-line{margin:12px 0 18px}.info-box{display:flex;gap:10px;align-items:flex-start}.info-box>.ic{height:18px;width:18px;color:#a78bce;margin-top:2px}.info-box strong{font-size:10px;color:#bdb0ce}.info-box p{color:#7e728f;font-size:10px;line-height:1.6;margin-top:7px}.properties-footer{border-top:1px solid var(--line);padding:18px 19px;display:flex;justify-content:space-between;font-size:9px;font-weight:800;letter-spacing:1.4px;color:#70647e}.properties-footer span{font-weight:600;color:#857794}.drop-overlay,.busy-overlay{position:fixed;inset:0;z-index:50;display:grid;place-items:center;background:#0b0714dd;backdrop-filter:blur(7px)}.drop-overlay[hidden],.busy-overlay[hidden]{display:none}.drop-overlay>div{border:2px dashed #a687e7;border-radius:24px;width:min(85vw,600px);height:330px;background:#302141;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:17px}.drop-overlay .ic{height:46px;width:46px;color:#cbb1ff}.drop-overlay strong{font:800 25px Manrope,sans-serif}.drop-overlay span{color:#a995bf}.busy-overlay{gap:18px;display:flex;flex-direction:column;color:#e1d6f2;font-weight:600}.spinner{height:37px;width:37px;border-radius:50%;border:3px solid #513b68;border-top-color:#af86fc;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.toast-stack{position:fixed;bottom:27px;right:27px;z-index:70;display:flex;flex-direction:column;gap:9px;pointer-events:none}.toast{background:#322541;box-shadow:0 8px 30px #0009;border:1px solid #60477a;color:#eaddfc;border-radius:10px;padding:12px 17px;min-width:180px;max-width:min(380px,calc(100vw - 30px));line-height:1.5;animation:toast-in .2s ease-out}.toast.error{border-color:#a34b70;color:#ffc1ce}@keyframes toast-in{from{transform:translateY(8px);opacity:0}to{transform:translateY(0);opacity:1}}.modal{padding:25px;width:min(94vw,730px);background:#1b1426;border:1px solid #503862;border-radius:17px;color:var(--text);box-shadow:0 15px 65px #000c}.modal::backdrop{background:#05030ad9;backdrop-filter:blur(4px)}.modal-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:9px}.modal-head h2{font:800 20px Manrope,sans-serif;letter-spacing:-.4px}.modal>p,.help-copy>p{color:#b1a4c3;font-size:12px;line-height:1.7}.modal canvas{border:1px dashed #8d6ab8;border-radius:10px;width:100%;height:auto;max-height:230px;background:#fff;margin-top:20px;cursor:crosshair;touch-action:none}.modal-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:17px}.shortcuts{display:grid;grid-template-columns:1fr auto auto auto auto auto;align-items:center;gap:9px;margin:15px 0 20px;color:#bdb2c9}.shortcuts>span{grid-column:1;}.shortcuts kbd{background:#34283f;border:1px solid #533d61;padding:3px 6px;border-radius:4px;white-space:nowrap}.help-copy .help-caveat{border:1px solid #4f395e;background:#291f36;padding:13px;border-radius:10px;color:#bfaece}.help-copy>p{margin:15px 0}.help-copy strong{color:#f2e8ff}
@media(max-width:1180px){:root{--props:210px;--pages:157px;--rail:62px}.tool{width:47px}.pages-list{padding:14px 13px}.hero-features{gap:16px}.document-sub{display:none}.toolbar-group{gap:0}}@media(max-width:920px){:root{--props:0px;--pages:135px;--rail:58px}.properties-panel{display:none}.topbar{padding:0 12px;gap:10px}.top-actions{gap:2px}.top-actions .btn{padding:0 10px}.brand-name{font-size:18px}.brand-beta{display:none}.hero-body h1{font-size:43px}}@media(max-width:660px){:root{--rail:54px;--pages:0px}.pages-panel{display:none}.topbar{height:61px;min-height:61px;padding:0 11px}.document-meta{display:none}.topbar>.top-divider{display:none}.top-actions{margin-left:auto}.top-actions .btn span{display:none}.top-actions .btn{padding:0 9px;min-height:34px}.top-actions>.top-divider{display:none}.brand-name{font-size:18px}.rail{padding:14px 4px}.tool{height:51px;width:44px;font-size:9px}.rail-header{font-size:8px;margin-bottom:4px}.editor-toolbar{padding:0 8px;gap:7px}.tool-hint{display:none}.editor-status{padding:0 8px}.status-center{display:none}.canvas-scroll{padding:20px}.hero-icon{width:80px;height:80px;margin-bottom:24px}.hero-body{padding:20px 19px}.hero-body h1{font-size:clamp(29px,8vw,40px);letter-spacing:-1.6px}.hero-body p{font-size:12px}.hero-features{margin-top:32px;flex-direction:column;gap:13px}.hero-footnote{font-size:8px;letter-spacing:.9px;padding:0 8px}.eyebrow{font-size:8px}.desktop-br{display:none}}
/* v0.2 additions: projects, search, responsive panels, resizing UI */
.brand-beta{min-width:41px;text-align:center}
.top-actions{flex-wrap:nowrap;white-space:nowrap}
.top-actions .btn-subtle{gap:7px}
.top-actions .btn-subtle svg{flex:none}
.page-navigation{white-space:nowrap;gap:5px}
.page-navigation>span{color:#c2b4d5;font-size:11px;min-width:46px;text-align:center;font-weight:700}
.mobile-toggles{display:none}
.selection-buttons{display:flex;flex-direction:column;gap:8px}
.property-tip{line-height:1.65}
.search-panel{display:flex;flex-direction:column;gap:9px;background:#1d1728;border-bottom:1px solid #433153;padding:11px 17px;flex:none;max-height:240px;box-shadow:0 10px 25px #00000026}
.search-panel[hidden]{display:none}
.search-top{display:flex;align-items:center;gap:10px}
.search-top>.ic{width:17px;height:17px;color:#aa8be5;flex:none}
.search-top input{flex:1;min-width:0;height:35px;padding:0 12px;background:#2d233a;color:#eee8fa;border:1px solid #4e3b61;border-radius:8px;outline:none;font:inherit}
.search-top input:focus{border-color:#ad8bff;box-shadow:0 0 0 2px #9f7de12e}
.search-top .btn{min-height:35px}
.search-results{display:flex;gap:8px;align-items:stretch;overflow:auto;min-height:26px;padding-bottom:3px;color:#a99aba;font-size:11px;scrollbar-width:thin;scrollbar-color:#634778 #1d1728}
.search-summary{padding:9px 10px;white-space:nowrap;font-weight:700;color:#d7c4f2;align-self:center}
.search-result{display:flex;flex-direction:column;gap:5px;min-width:175px;max-width:230px;text-align:left;border:1px solid #463459;background:#2b2139;border-radius:8px;color:#ad9cbf;padding:9px 11px;font-size:10px;cursor:pointer;line-height:1.5}
.search-result:hover{background:#40304f;border-color:#a68cea}
.search-result strong{font-size:11px;color:#d5bdf5}
.search-result span{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
#searchToggleBtn{flex:none}
@media(max-width:1390px){
  .top-actions .btn-subtle span{display:none}
  .top-actions .btn-subtle{width:36px;padding:0;justify-content:center}
  .top-actions .btn-subtle .ic{margin:0}
}
@media(max-width:980px){
  .page-navigation{gap:0}
  .editor-toolbar{padding:0 9px;gap:6px}
  .tool-hint{display:none}
}
@media(max-width:920px){
  :root{--props:230px}
  .mobile-toggles{display:flex}
  .properties-panel{display:flex;position:absolute;right:0;top:0;bottom:0;z-index:12;transform:translateX(105%);transition:transform .18s ease;box-shadow:-18px 0 35px #07040a99;width:230px}
  body.show-properties .properties-panel{transform:translateX(0)}
  .workspace{position:relative;overflow:hidden}
}
@media(max-width:660px){
  :root{--pages:150px}
  .pages-panel{display:flex;position:absolute;top:0;left:var(--rail);bottom:0;z-index:11;width:150px;transform:translateX(calc(-100% - var(--rail)));transition:transform .18s ease;box-shadow:18px 0 35px #07040a80}
  body.show-pages .pages-panel{transform:translateX(0)}
  .editor-main{min-width:0}
  .editor-toolbar{gap:3px}
  .toolbar-divider{display:none}
  .page-navigation>span{font-size:10px;min-width:31px}
  .icon-btn{min-width:28px}
  .zoom-actions .icon-btn{display:none}
  .zoom-value{min-width:41px}
  .search-panel{padding:8px;max-height:210px}
  .search-top{gap:5px}
  .search-summary{display:none}
  .search-result{min-width:135px}
  .properties-panel{top:0}
  .top-actions .btn-subtle{width:29px}
  .topbar{gap:5px}
}
@media(prefers-reduced-motion:reduce){.pages-panel,.properties-panel{transition:none}}
.hero-ctas{display:flex;gap:11px;align-items:center;justify-content:center;flex-wrap:wrap}
.hero-ctas .btn-hero{box-shadow:0 7px 31px #5b408068}
.btn-hero-demo{min-height:50px;padding:0 20px;font-weight:700;border-color:#5b4575;background:#30213e;color:#dac9ee;border-radius:11px}
.btn-hero-demo:hover{border-color:#a881e6;background:#3b294e}
@media(max-width:660px){.hero-ctas{gap:9px}.btn-hero-demo{min-height:44px;padding:0 13px}.hero-ctas .btn-hero{min-height:44px;padding:0 13px}}
