:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color:#15253e;background:#f5f8fc;font-synthesis:none;font-smooth:always;--blue:#1164dc;--teal:#02b3bf;--border:#dae3f0;--muted:#68788f;--shadow:0 6px 22px rgba(25,56,97,.10);--safe:env(safe-area-inset-bottom,0px)}*{box-sizing:border-box}body{margin:0;min-width:320px}button,input,textarea,select{font:inherit}button{cursor:pointer;-webkit-tap-highlight-color:transparent}button:disabled{opacity:.38;cursor:default}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #83d0ed;outline-offset:1px}.hidden{display:none!important}.view{display:none}.view.visible{display:block}#home{min-height:100dvh}.home-hero{background:linear-gradient(118deg,#1160dc 0%,#087eb9 52%,#01b4b8 100%);color:white;padding:43px 24px 55px;text-align:center}.home-hero h1{margin:12px 0 5px;font-size:29px;letter-spacing:-.7px}.home-hero p{margin:0;color:#def8fc;font-size:13px}.hero-line{position:relative;display:flex;justify-content:center;align-items:center}.hero-icon{font-size:44px;position:relative;border:2px solid rgba(255,255,255,.85);border-radius:11px;width:62px;height:68px;line-height:61px}.hero-icon span{position:absolute;font-size:23px;right:-8px;bottom:-3px;line-height:1}.icon-btn{border:0;background:transparent;font-size:23px;color:inherit;min-width:42px;min-height:42px;border-radius:11px}.icon-btn:hover{background:rgba(148,169,209,.13)}.hero-settings{position:absolute;right:0;top:0;font-size:25px}.home-layout{max-width:1160px;margin:-25px auto 0;padding:0 20px 50px;display:grid;grid-template-columns:247px minmax(0,1fr);gap:26px;align-items:start}.home-side,.home-content{background:#fff;border:1px solid #e3e9f3;border-radius:16px;box-shadow:var(--shadow)}.home-side{padding:15px}.primary-actions{display:grid;gap:10px}.primary-btn,.secondary-btn{display:flex;justify-content:center;align-items:center;gap:9px;padding:13px 15px;min-height:46px;border-radius:9px;font-size:14px;font-weight:750}.primary-btn{background:#0967e5;color:#fff;border:1px solid #0967e5}.primary-btn:hover,.header-export:hover{background:#0358c6}.secondary-btn{border:1px solid #d8e9ff;background:#eaf3ff;color:#1360ae}.side-nav{border-top:1px solid #e8edf6;margin-top:20px;padding-top:15px;display:grid;gap:5px}.side-nav button{text-align:left;border:0;border-radius:8px;background:transparent;padding:12px 13px;font-size:14px;color:#4b5b72;display:flex;gap:12px}.side-nav button:hover,.side-nav button.selected{background:#ebf3ff;color:#085bc9;font-weight:700}.home-content{padding:25px;min-height:435px}.section-head{display:flex;gap:12px;align-items:center;justify-content:space-between;margin-bottom:22px}.eyebrow{color:#078ba9;font-size:10px;font-weight:800;letter-spacing:1.7px}.section-head h2{margin:5px 0 0;font-size:22px;letter-spacing:-.35px}.subtle-btn{border:1px solid var(--border);background:white;color:#1260ca;padding:9px 11px;border-radius:9px;font-size:12px;font-weight:700}.file-list{display:grid;gap:10px}.file-card{display:flex;align-items:center;gap:12px;border:1px solid var(--border);border-radius:11px;padding:11px;text-align:left;min-height:69px;background:white}.file-card:hover{background:#f5f9ff;border-color:#91b6eb}.file-thumb{width:42px;height:48px;background:#eaf2ff;border-radius:7px;color:#1865ca;display:grid;place-items:center;flex-shrink:0;font-size:22px}.file-info{flex:1;min-width:0}.file-info strong{display:block;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.file-info small{display:block;color:#7a879b;font-size:11px;margin-top:4px}.file-actions{display:flex;gap:3px}.file-actions button{border:0;background:transparent;color:#667c9d;font-size:17px;min-width:33px;min-height:35px}.file-actions button:hover{background:#edf3fd;border-radius:7px}.empty{border:1px dashed #c9d8ef;border-radius:13px;padding:44px 15px;text-align:center;color:#6e7b93;font-size:13px}.empty-symbol{font-size:43px;display:block;margin-bottom:11px}.home-info{margin-top:21px;border-radius:10px;padding:13px 14px;background:#f1f7ff;border:1px solid #deecfc;font-size:12px;color:#516882;line-height:1.55}.mobile-home-tabs{display:none}#editor{height:100dvh;min-height:0;flex-direction:column;overflow:hidden}#editor.visible{display:flex}.editor-header{height:65px;min-height:65px;display:flex;align-items:center;justify-content:space-between;background:#fff;border-bottom:1px solid #e4e9f2;padding:0 20px;gap:10px}.editor-title,.header-actions{display:flex;align-items:center;gap:12px;min-width:0}.doc-identity{display:flex;flex-direction:column;min-width:0;gap:3px}.doc-identity strong{font-size:14px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;max-width:410px}.doc-identity span{color:#7f8aa0;font-size:11px}.header-actions button{white-space:nowrap}.quiet-action{border:1px solid #e4e9f2;background:white;padding:10px 13px;border-radius:8px;color:#415d84;font-size:12px;font-weight:700}.header-export{background:#0d65de;color:#fff;border:0;padding:10px 15px;border-radius:8px;font-size:12px;font-weight:750}.desktop-toolbar{background:#fdfefe;border-bottom:1px solid #e0e7f0;min-height:47px;display:flex;align-items:center;justify-content:center;gap:5px;padding:5px 10px;overflow-x:auto;scrollbar-width:thin}.desktop-toolbar button{padding:7px 9px;border-radius:7px;border:0;background:transparent;color:#405675;white-space:nowrap;font-size:12px}.desktop-toolbar button:hover,.desktop-toolbar button.active{background:#e7f1ff;color:#0b61d1}.tool-divider{height:23px;width:1px;background:#dbe4f0;margin:0 3px}.desktop-toolbar #desktop-page-info{white-space:nowrap;color:#71809a;font-size:12px}.editor-main{display:grid;grid-template-columns:150px minmax(0,1fr) 239px;flex:1;min-height:0}.page-sidebar{border-right:1px solid #e0e7f0;background:#f6f8fc;overflow-y:auto;padding:12px}.page-sidebar h3,.properties-title h3{margin:4px 0 13px;font-size:13px;color:#53647f}.page-thumb{border:1px solid #d8e2f0;background:white;border-radius:10px;padding:7px;margin-bottom:13px;width:100%;cursor:pointer}.page-thumb.active{border:2px solid #1683ed;box-shadow:0 0 0 3px #d7edff}.page-thumb canvas{width:100%;display:block}.page-thumb span{font-size:11px;display:block;text-align:center;margin-top:6px;color:#667891}.editor-center{display:flex;flex-direction:column;min-width:0;min-height:0;background:#e9edf4}.viewer-strip{min-height:44px;background:#f8fafc;display:flex;gap:10px;align-items:center;justify-content:space-between;border-bottom:1px solid #dfe6f0;padding:5px 12px}.page-pager,.field-pager,.viewer-zoom{display:flex;align-items:center;justify-content:center;gap:7px;color:#6c7a94;font-size:11px;white-space:nowrap}.viewer-strip button{background:#fff;border:1px solid #e0e7f0;min-width:25px;min-height:29px;border-radius:6px;color:#526d91;font-size:12px}.viewer-strip button:hover{border-color:#79aadf}.field-pager{background:#eef6ff;border-radius:8px;padding:3px}.field-pager button{font-size:10px;color:#1260c3;background:white}.viewer{flex:1;min-height:0;overflow:auto;display:flex;align-items:flex-start;justify-content:flex-start;padding:24px 20px 60px;overscroll-behavior:contain;touch-action:pan-x pan-y}.sheet{position:relative;margin:auto;background:#fff;box-shadow:0 7px 28px rgba(22,45,77,.22);flex-shrink:0}.sheet canvas{display:block;width:100%;height:100%;pointer-events:none}.field-layer,.mark-layer{position:absolute;inset:0;pointer-events:none}.form-widget{position:absolute;pointer-events:auto;border:1px solid rgba(30,108,235,.45);border-radius:2px;background:rgba(71,145,250,.07);min-width:4px;padding:0 3px;color:#183d74;font-size:12px;line-height:1.25;box-sizing:border-box}.form-widget:hover,.form-widget:focus{outline:1px solid #0968ec;background:rgba(37,118,236,.16)}.form-widget[type=checkbox],.form-widget[type=radio]{padding:0;accent-color:#0c61d5;min-width:7px;min-height:7px}.form-widget-select{padding:0 1px}.form-widget:focus{z-index:2}.mark{position:absolute;pointer-events:auto;touch-action:none;box-sizing:border-box;white-space:pre-wrap;overflow:visible;user-select:none;cursor:grab;display:flex;align-items:center;padding:1px 2px}.mark.selected{border:1.5px dashed #0c73e9;background:rgba(51,131,238,.035);cursor:move}.mark img{display:block;width:100%;height:100%;object-fit:fill;pointer-events:none}.mark .check-ink{display:block;font-weight:700;line-height:1}.mark .handles{position:absolute;inset:0;pointer-events:none}.mark .handle{position:absolute;pointer-events:auto;display:grid;place-items:center;width:22px;height:22px;border:1px solid white;border-radius:50%;box-shadow:0 2px 6px #7893c2;line-height:1;background:#1273ed;color:#fff;font-size:11px;touch-action:none}.handle.move{left:50%;top:-30px;transform:translateX(-50%)}.handle.delete{right:-11px;top:-11px;background:#ed5267}.handle.resize{right:-11px;bottom:-11px;cursor:nwse-resize}.mobile-tool-zone{display:none}.properties-panel{background:#fff;border-left:1px solid #e2e8f0;display:flex;flex-direction:column;min-width:0;padding:15px;gap:10px}.properties-title{display:flex;justify-content:space-between}.properties-title button{background:transparent;border:0;font-size:23px;color:#8797ae}#properties-content{flex:1;font-size:12px;color:#687993;line-height:1.6}.properties-footer{display:grid;gap:8px}.properties-footer button{background:#f4f8fd;border:1px solid #e5eaf3;border-radius:7px;padding:9px;color:#4c6381;text-align:left;font-size:12px}.prop-value{border:1px solid #d8e3f2;padding:10px;border-radius:8px;background:#f5f9ff;color:#32507b;overflow-wrap:anywhere}.small-label{font-size:11px;color:#7588a3;display:block;margin:11px 0 6px}.swatches{display:flex;gap:11px;margin-top:5px}.swatch{width:27px;height:27px;border-radius:50%;border:2px solid #fff;box-shadow:0 0 0 1px #cbd6e5;cursor:pointer}.swatch.chosen{box-shadow:0 0 0 2px #2386ed}.prop-action{background:#ecf3ff;color:#0f5dc0;border:1px solid #d9e8fc;padding:9px;border-radius:8px;margin-top:10px}#status-toast{position:fixed;bottom:80px;left:50%;transform:translateX(-50%);background:#193455;color:#fff;padding:11px 17px;border-radius:11px;box-shadow:0 5px 15px #132a4055;font-size:12px;pointer-events:none;z-index:70;opacity:0;transition:opacity .2s}#status-toast.show{opacity:1}.dialog-backdrop{position:fixed;inset:0;background:#081728a3;display:flex;align-items:center;justify-content:center;padding:15px;z-index:100}.dialog{background:#fff;border-radius:15px;width:min(480px,100%);max-height:min(92dvh,850px);display:flex;flex-direction:column;box-shadow:0 12px 42px #061e40a6}.dialog-top{padding:19px 20px 13px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #e7edf7}.dialog-top h2{font-size:18px;margin:0}.dialog-top button{font-size:23px;border:0;background:transparent;color:#607893}#dialog-body{padding:20px;overflow-y:auto;font-size:14px;line-height:1.5;color:#425570}#dialog-footer{padding:14px 20px 19px;display:flex;justify-content:flex-end;gap:9px;flex-wrap:wrap}#dialog-footer button,.modal-button{padding:10px 15px;border-radius:8px;border:1px solid #d6dfed;background:#fff;font-size:13px;font-weight:650;color:#416084}.modal-button.primary,#dialog-footer .primary{border-color:#0968df;background:#0e68de;color:#fff}.modal-button.destructive,#dialog-footer .destructive{border-color:#e14e64;background:#e14e64;color:#fff}.dialog label{display:block;font-size:12px;font-weight:700;margin:9px 0 5px}.dialog input[type=text],.dialog input[type=password],.dialog textarea,.dialog select{width:100%;border:1px solid #cbd8e7;border-radius:8px;padding:12px;min-height:43px;background:#fff;color:#213952;font-size:14px}.dialog textarea{resize:vertical;min-height:76px}.dialog .help{color:#7a8a9e;font-size:12px;line-height:1.45}.dialog .choice-list{display:grid;gap:9px}.dialog .choice-list button{padding:12px;border:1px solid #dfebf8;background:#f7faff;border-radius:8px;text-align:left;color:#365577}.dialog .signature-tabs{display:flex;gap:6px;background:#edf2fa;padding:5px;border-radius:9px;margin-bottom:12px}.dialog .signature-tabs button{flex:1;border:0;padding:9px;background:transparent;border-radius:7px;color:#526880;font-size:12px}.dialog .signature-tabs button.selected{background:white;color:#0968df;box-shadow:0 1px 5px #c2d3e4}.signature-pad{border:1px solid #cbd8ea;border-radius:8px;width:100%;height:190px;touch-action:none;background:linear-gradient(0deg,transparent 28%,#d7e0ec 28%,#d7e0ec 28.5%,transparent 28.5%)}.type-preview{height:115px;border:1px solid #d5e0ec;border-radius:8px;display:grid;place-items:center;background:white;overflow:hidden}.type-preview span{font-family:"Brush Script MT","Segoe Script","Lucida Handwriting",cursive;font-size:49px;line-height:1.4;color:#182136;white-space:nowrap}.dialog .sig-vault-row{display:flex;align-items:center;gap:10px;border:1px solid #dde7f1;border-radius:9px;padding:10px;margin:9px 0}.sig-vault-row span{flex:1;font-size:13px}.sig-vault-row button{border:0;background:#eaf3ff;color:#0b60cd;border-radius:7px;padding:7px 11px}.alert-box{padding:12px;background:#fff8ed;border:1px solid #f3ddba;border-radius:8px;color:#775a32;font-size:12px;line-height:1.5}.small-spinner{font-size:12px;color:#647c99}.mobile-hidden{display:initial}
@media(min-width:950px){.home-hero{padding-bottom:62px}.home-hero h1{font-size:31px}}
@media(max-width:1100px){.editor-main{grid-template-columns:112px minmax(0,1fr) 205px}.field-pager{gap:3px}.viewer-strip{gap:4px;padding:5px}.viewer-strip .field-pager button{font-size:9px}}
@media(max-width:800px){.editor-header{height:58px;min-height:58px;padding:0 8px}.doc-identity strong{font-size:12px;max-width:180px}.header-actions{gap:4px}.header-actions .quiet-action{border:0;font-size:20px;padding:7px 4px}.header-actions .quiet-action span,.header-export span{display:none}.header-export{font-size:18px;padding:7px 10px}.desktop-toolbar,.page-sidebar,.properties-panel{display:none}.editor-main{grid-template-columns:minmax(0,1fr)}.viewer-strip{min-height:46px;padding:4px 5px;gap:3px}.field-pager{flex:1;min-width:0;gap:3px}.field-pager button{font-size:9px}.field-pager span{font-size:9px}.viewer-zoom{gap:2px}.viewer-strip button{min-height:27px;min-width:25px;padding:2px 3px}.page-pager{gap:2px}.page-pager span{font-size:10px}.viewer{padding:14px 14px 30px 36px}.mobile-tool-zone{display:block;background:#fff;border-top:1px solid #dbe5f3;box-shadow:0 -5px 16px #1b44641a;padding-bottom:var(--safe)}.mobile-tools{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));min-height:62px}.mobile-tools button{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:3px;border:0;background:white;color:#4c6182;padding:8px 1px 5px;font-size:10px}.mobile-tools button b{font-size:19px;font-weight:500}.mobile-tools button.active{color:#066ade;background:#ebf4ff}.selection-bar{display:flex;justify-content:space-around;background:#f6f9ff;border-bottom:1px solid #e1e8f4;padding:5px}.selection-bar button{background:transparent;border:0;color:#1766c6;font-size:11px;padding:7px}.selection-bar .danger{color:#c33758}.home-layout{display:block;margin:-20px auto 0;padding:0 10px 90px}.home-side{padding:10px}.primary-actions{grid-template-columns:1fr 1fr}.side-nav{display:none}.home-content{margin-top:13px;min-height:280px;padding:20px 15px}.section-head h2{font-size:20px}.mobile-home-tabs{position:fixed;bottom:0;left:0;right:0;display:grid;grid-template-columns:repeat(4,1fr);background:#fff;border-top:1px solid #e2eafa;padding-bottom:var(--safe);z-index:25}.mobile-home-tabs button{background:none;border:0;color:#6f7e95;display:flex;flex-direction:column;align-items:center;gap:2px;padding:9px 1px;font-size:10px}.mobile-home-tabs button span{font-size:21px}.mobile-home-tabs button.active{color:#075fd9;font-weight:700}.home-hero{padding:25px 20px 42px}.home-hero h1{font-size:25px}.hero-icon{width:52px;height:55px;line-height:49px;font-size:36px}.hero-icon span{font-size:20px}.home-info{margin-top:15px}.dialog{border-radius:13px}.dialog-backdrop{align-items:flex-end;padding:0}.dialog{width:100%;max-height:93dvh;border-radius:17px 17px 0 0}#status-toast{bottom:90px}}@media(max-width:370px){.section-tools button{font-size:10px}.viewer-zoom button{font-size:10px}.field-pager button{font-size:9px}.doc-identity strong{max-width:135px}.home-hero p{font-size:11px}}@media(pointer:coarse){button{min-height:36px}.mark .handle{width:27px;height:27px}.handle.delete{right:-14px;top:-14px}.handle.resize{right:-14px;bottom:-14px}}

.file-card.editable-project-card{border-color:#c7dcf8;background:linear-gradient(100deg,#f4f9ff 0%,#fff 80%)}
