@charset "UTF-8";
:root{--ink:#1f2d32;--muted:#73807d;--green:#176c54;--green-dark:#133b34;--green-light:#e8f2ed;--paper:#fff;--canvas:#eeefeb;--bg:#f8f9f6;--line:#dfe4de;--red:#a23832;--red-bg:#fff0ed;--radius:10px;--font:Inter,"Segoe UI",-apple-system,BlinkMacSystemFont,Arial,sans-serif;font-family:var(--font);font-size:14px;color:var(--ink);background:var(--bg);font-synthesis:none}
*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.46}a{color:inherit;text-decoration:none}button{color:inherit}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,[tabindex]:focus-visible{outline:3px solid #61a28a;outline-offset:3px}button:focus:not(:focus-visible){outline:none}[hidden]{display:none!important}.svg-library{position:absolute;width:0;height:0;overflow:hidden}.icon{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0;vertical-align:middle}.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.brand{display:inline-flex;align-items:center;gap:10px;font-family:Georgia,"Times New Roman",serif;font-size:31px;font-weight:600;line-height:1;letter-spacing:-1.7px;flex-shrink:0}.brand-mark{display:grid;place-items:center;width:35px;height:39px;background:var(--green-dark);color:#fff;font-family:Georgia,serif;font-size:35px;line-height:1;letter-spacing:-3px;padding:0 5px 4px 0;border-radius:5px 12px 5px 5px;position:relative;font-style:italic}.brand-period{color:var(--green)}.brand-light{color:#fff}.brand-light .brand-mark{background:#e3eedf;color:var(--green-dark)}.brand-light .brand-period{color:#b7cfa9}.eyebrow{font-size:10px;letter-spacing:1.75px;font-weight:700;line-height:1.5}.button{border:1px solid transparent;border-radius:7px;display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:42px;padding:10px 17px;font-weight:600;font-size:13px;line-height:1.3;transition:background .15s,border-color .15s,transform .15s;white-space:nowrap}.button:not(:disabled):active{transform:translateY(1px)}.button.primary{background:var(--green);color:#fff;border-color:var(--green)}.button.primary:not(:disabled):hover{background:#10563f;border-color:#10563f}.button.secondary{background:#fff;border-color:#cad9d1;color:var(--green-dark)}.button.secondary:not(:disabled):hover{background:#edf5ef;border-color:#a9c4b5}.button.quiet{background:transparent;color:#53605d;min-height:38px;padding:8px 11px}.button.quiet:not(:disabled):hover{background:#edf0eb}.button.full{width:100%}.icon-button{border:0;display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;padding:6px;background:transparent;border-radius:6px;color:#6a7874;flex-shrink:0}.icon-button:not(:disabled):hover{background:#e6ebe4;color:var(--green-dark)}.text-button{display:inline-flex;align-items:center;gap:5px;border:0;background:none;color:var(--green);padding:0;font-size:12px;font-weight:600;line-height:1.5}.text-button:not(:disabled):hover{text-decoration:underline;text-underline-offset:3px}.text-button .icon{width:15px;height:15px}.muted{color:var(--muted);line-height:1.7}.pill{display:inline-flex;align-items:center;gap:7px;border:1px solid #dfe7dd;border-radius:50px;padding:7px 11px;font-size:10px;letter-spacing:.2px;line-height:1;white-space:nowrap;color:#65756a;background:#f5f8f2}.status-dot{width:5px;height:5px;background:#568b6b;border-radius:50%}.field{display:flex;flex-direction:column;gap:8px;margin-bottom:18px}.field label,.field-label{font-size:12px;font-weight:600;color:#394943}.field-label-row{display:flex;align-items:center;justify-content:space-between;gap:10px}.field input,.field textarea,.field select,.edit-options select{background:#fff;border:1px solid #d9dfd8;border-radius:7px;min-width:0;padding:12px;color:var(--ink);width:100%;line-height:1.5;transition:border-color .15s,background .15s}.field input::placeholder,.field textarea::placeholder{color:#a1a9a3}.field input:hover,.field textarea:hover,.field select:hover{border-color:#b6c2b8}.field input:focus,.field textarea:focus,.field select:focus{border-color:#689a82;outline:2px solid #dcece1;outline-offset:0}.field textarea{resize:vertical;min-height:90px}.field select{padding:10px 30px 10px 11px;font-size:12px;min-height:39px}.field input:disabled,.field textarea:disabled,.field select:disabled{background:#f1f3ef;color:#88918c}.field-help,.form-footnote{font-size:11px;color:#7f8d85;line-height:1.6}.password-input{position:relative}.password-input input{padding-right:44px}.password-input .icon-button{position:absolute;right:6px;top:6px}.notice{border:1px solid #d8e3d8;background:#f0f5ed;padding:13px 14px;border-radius:7px;font-size:12px;line-height:1.65;color:#48634b;margin:18px 0}.notice.error{background:var(--red-bg);border-color:#efd3ce;color:var(--red)}.notice.success{background:#edf6ed;border-color:#c9dfcc;color:#326445}.spinner{width:17px;height:17px;border:2px solid #c4d6ca;border-top-color:var(--green);border-radius:50%;display:inline-block;flex-shrink:0;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.boot-screen{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;gap:14px;background:var(--bg);font-size:13px;color:var(--muted);z-index:20}.boot-screen .brand-mark{width:28px;height:32px;font-size:28px}.loading-dots{display:inline-block;animation:pulse 1.5s ease-in-out infinite}@keyframes pulse{50%{opacity:.3}}
/* Sign in */
.auth-view{min-height:100vh;display:grid;grid-template-columns:minmax(400px,1fr) minmax(480px,1fr)}.auth-story{background:var(--green-dark);color:#f6f9ed;min-height:100vh;padding:40px 48px 26px;display:flex;flex-direction:column;position:relative;overflow:hidden}.auth-story-content{width:100%;max-width:450px;margin:auto; padding:55px 0 30px}.auth-story-content>.eyebrow{color:#b9c9ad;font-size:9px;letter-spacing:2px}.auth-story h1{font-size:clamp(34px,3.3vw,50px);letter-spacing:-1.7px;line-height:1.15;font-weight:500;margin:18px 0}.auth-story-content>p{font-size:14px;line-height:1.8;color:#b7cbc1;margin:0 0 45px}.document-illustration{max-width:350px;position:relative;margin:0 0 5px 8px;transform:rotate(-3deg)}.illustration-tab{display:flex;align-items:center;gap:8px;font-size:10px;padding:12px 15px;background:#345b4e;border-radius:9px 9px 0 0;color:#dee8df;letter-spacing:.1px}.illustration-tab .icon{width:14px;height:14px}.illustration-tab>span{margin-left:auto;font-size:8px;border:1px solid #668272;padding:2px 4px;border-radius:3px}.illustration-paper{background:#f8f5ec;color:#2a3c33;padding:35px 30px 20px;min-height:275px}.paper-overline{font-size:6px;letter-spacing:1.9px;font-weight:700;color:#7c8d80}.paper-title{font-family:Georgia,serif;font-size:27px;line-height:1.2;margin:15px 0 20px;letter-spacing:-.3px}.paper-title>span{font-style:italic;color:#627f68}.paper-rule{height:1px;background:#d5d9cd;margin-bottom:18px}.paper-line{height:4px;margin:8px 0;background:#d5d9cd;width:92%;border-radius:1px}.line-long{width:100%}.line-medium{width:72%}.line-short{width:55%}.paper-selection{background:#d7e7ca;border:1px solid #6e9865;padding:6px 4px;font-family:Georgia,serif;font-size:13px;display:inline-block;margin:7px 0;position:relative}.selection-handle{width:5px;height:5px;background:#5c915d;position:absolute;right:-3px;bottom:-3px}.paper-bottom{display:flex;justify-content:space-between;margin-top:26px;font-size:5px;letter-spacing:1px;color:#879385}.illustration-caption{position:absolute;bottom:28px;right:-48px;padding:12px 16px;background:#e4ecd6;color:#35553c;border-radius:7px;display:flex;align-items:center;gap:8px;font-size:10px;font-weight:600;transform:rotate(3deg)}.illustration-caption .icon{width:15px;height:15px}.auth-story-footer{display:flex;justify-content:space-between;gap:20px;color:#93afa1;font-size:9px;letter-spacing:.3px}.auth-form-side{padding:37px 45px 25px;display:flex;flex-direction:column;background:#fafbf8}.auth-topline{display:flex;justify-content:flex-end}.auth-box{width:100%;max-width:355px;margin:auto;padding:45px 0}.auth-icon{display:grid;place-items:center;width:43px;height:43px;border:1px solid #dbe3d7;border-radius:10px;background:#f1f5eb;color:#7a9567;margin-bottom:21px}.auth-icon .icon{width:22px;height:22px}.auth-box h2{font-size:30px;font-weight:600;letter-spacing:-1.05px;line-height:1.25;margin:0 0 9px}.auth-box .muted{font-size:13px;margin:0 0 28px}.auth-tabs{display:flex;border-bottom:1px solid var(--line);margin:0 0 25px;gap:26px}.auth-tabs button{position:relative;border:0;background:none;padding:0 0 13px;font-size:12px;font-weight:600;color:#929b95}.auth-tabs button[aria-selected="true"]{color:var(--green)}.auth-tabs button[aria-selected="true"]:after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:2px;background:var(--green)}.auth-box .button.full{min-height:45px}.auth-submit .icon{margin-left:10px}.auth-footnote{display:flex;gap:6px;align-items:center;justify-content:center;font-size:10px;color:#97a193;margin-top:24px}.auth-footnote .icon{width:13px;height:13px}.auth-bottom{text-align:center;font-size:10px;color:#a2aaa0}.auth-back{margin:16px auto 0;display:block}.preview-panel{border-top:1px solid var(--line);margin-top:25px;padding-top:22px}.preview-panel>.eyebrow{font-size:9px;color:#8b967f}.preview-panel>p{font-size:12px;line-height:1.7;color:#7b897c;margin:8px 0 14px}.verification-panel{text-align:center}.verification-icon{display:grid;place-items:center;width:55px;height:55px;background:var(--green-light);color:var(--green);border-radius:50%;margin:12px auto}.verification-icon .icon{width:25px;height:25px}.verification-panel p{font-size:13px;line-height:1.8;margin:20px 0;color:#6f7b71}.verification-panel strong{display:block;overflow-wrap:anywhere;color:#304c39}.verification-actions{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:20px}
/* Workspace */
.workspace{min-height:100vh}.app-header{height:77px;padding:0 34px;display:flex;align-items:center;gap:23px;border-bottom:1px solid var(--line);background:#fff;position:relative;z-index:5}.app-header .brand{font-size:30px}.app-header .brand-mark{width:31px;height:34px;font-size:31px}.header-divider{height:24px;border-left:1px solid var(--line)}.workspace-label{font-size:12px;color:#7d8881}.header-right{display:flex;align-items:center;gap:12px;margin-left:auto}.user-avatar{display:grid;place-items:center;width:30px;height:30px;background:#eaf0e5;border:1px solid #dfe7d8;border-radius:50%;font-size:11px;font-weight:700;color:#638056}.user-email{font-size:11px;color:#7c8780;max-width:210px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.preview-pill{background:#f4f0e5;border-color:#e8dfc9;color:#968453;font-size:9px}.empty-workspace{max-width:940px;margin:0 auto;padding:57px 35px 26px}.empty-intro{text-align:center}.empty-intro .eyebrow{font-size:9px;letter-spacing:1.7px;color:#7c9274}.empty-intro h1{font-size:39px;letter-spacing:-1.4px;font-weight:500;margin:17px 0 14px;line-height:1.1}.empty-intro>p{font-size:13px;line-height:1.85;color:#849087;margin:0}.dropzone{max-width:610px;margin:35px auto 16px;background:#fff;border:1px dashed #c1d1bd;border-radius:12px;padding:30px 35px 25px;text-align:center;transition:background .15s,border-color .15s}.dropzone.is-dragging{background:#edf5e9;border-color:#477c42;outline:3px solid #dfeada}.upload-symbol{margin:0 auto 16px;display:grid;place-items:center;width:52px;height:55px;border:1px solid #dce7d4;border-radius:10px 17px 10px 10px;background:#f3f7ee;color:#6e9161}.upload-symbol .icon{width:24px;height:24px}.dropzone h2{font-size:18px;letter-spacing:-.3px;margin:0 0 7px;font-weight:600}.dropzone p{font-size:12px;color:#8d978e;margin:0 0 21px}.dropzone .button{padding:12px 23px}.upload-limit{display:block;font-size:10px;color:#a0a89b;margin-top:14px}.sample-row{display:flex;align-items:center;justify-content:center;gap:7px;font-size:11px;color:#939d92}.sample-row .text-button{font-size:11px}.sample-row .icon{width:14px;height:14px}.empty-features{display:grid;grid-template-columns:repeat(3,1fr);gap:43px;margin:49px 23px 35px}.feature-number{display:block;font-size:9px;color:#9cab8c;letter-spacing:1px;margin-bottom:10px}.empty-features h3{font-size:12px;font-weight:600;margin:0 0 8px}.empty-features p{font-size:11px;color:#8b968a;line-height:1.85;margin:0}.empty-footer{display:flex;align-items:center;justify-content:center;gap:6px;border-top:1px solid #e3e7df;padding-top:23px;color:#9ba495;font-size:10px}.empty-footer .icon{width:13px;height:13px}.document-header{min-height:82px;display:flex;align-items:center;gap:18px;padding:15px 28px;background:#fff;border-bottom:1px solid var(--line)}.document-title-group{display:flex;align-items:center;gap:12px;min-width:0}.file-type-icon{display:grid;place-items:center;background:#f1f4ee;color:#7b9270;border:1px solid #e0e8da;border-radius:6px;width:34px;height:40px;flex-shrink:0}.file-type-icon .icon{width:19px;height:19px}.document-title-group>div{min-width:0}.document-title-group h1{font-size:13px;line-height:1.5;font-weight:600;margin:0;white-space:nowrap;max-width:360px;overflow:hidden;text-overflow:ellipsis}.document-title-group p{margin:3px 0 0;font-size:10px;color:#95a08e}.document-title-group p.unsaved{color:#8b7845}.document-actions{display:flex;align-items:center;gap:9px;margin-left:auto}.document-actions .icon{width:17px;height:17px}.document-actions .button{font-size:11px}.document-actions>.icon-button{margin-left:2px}.editor-body{display:grid;grid-template-columns:minmax(0,1fr) 340px;height:calc(100vh - 159px);min-height:500px}.document-workspace{display:flex;flex-direction:column;min-width:0;min-height:0;background:var(--canvas)}.canvas-toolbar{height:54px;min-height:54px;display:flex;align-items:center;gap:14px;padding:0 20px;border-bottom:1px solid #dce2d8;background:#f8faf5;font-size:10px}.page-navigation{display:flex;align-items:center;gap:6px;white-space:nowrap}.page-navigation input{border:1px solid #dce2d7;border-radius:4px;width:34px;height:27px;text-align:center;font-size:10px;background:#fff;color:#5b6b5c;appearance:textfield;-moz-appearance:textfield;padding:2px}.page-navigation input::-webkit-inner-spin-button,.page-navigation input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.page-navigation>span{color:#929c8c}.canvas-toolbar .icon-button{width:27px;height:29px;padding:4px}.canvas-toolbar .icon{width:15px;height:15px}.rotate{transform:rotate(180deg)}.toolbar-hint{display:flex;align-items:center;gap:6px;color:#96a08d;margin:auto;font-size:10px;white-space:nowrap}.toolbar-hint .icon{width:13px;height:13px}.zoom-controls{display:flex;align-items:center;gap:3px;margin-left:auto}.zoom-value{border:0;background:transparent;font-size:10px;min-width:40px;padding:7px 3px;color:#718168;border-radius:4px}.zoom-value:hover{background:#e7ede1}.toolbar-divider{height:19px;border-left:1px solid #dce2d7;margin:0 6px}.canvas-scroll{flex:1;min-height:0;overflow:auto;padding:36px 32px 48px;position:relative;scrollbar-color:#c8cec3 transparent;scrollbar-width:thin;display:flex;align-items:flex-start;justify-content:flex-start}.paper{position:relative;flex:none;margin:0 auto;background:#fff;box-shadow:0 1px 6px #30433018;cursor:crosshair;touch-action:none;user-select:none;line-height:0;min-height:100px;outline-offset:7px!important}.paper>img{display:block;width:100%;height:auto;user-select:none;pointer-events:none}.paper.uneditable{cursor:default}.selection-layer{position:absolute;inset:0;pointer-events:none;overflow:hidden}.word-highlight{position:absolute;background:#7ea99138;border-bottom:1px solid #5b9379;pointer-events:none}.drag-box{position:absolute;border:1px solid #338263;background:#83ad9230;pointer-events:none}.keyboard-cursor{position:absolute;pointer-events:none;width:12px;height:12px;border:1px solid #237e5c;border-radius:50%;transform:translate(-50%,-50%);background:#ffffff80}.keyboard-cursor:before,.keyboard-cursor:after{content:"";position:absolute;background:#237e5c}.keyboard-cursor:before{height:1px;width:18px;left:-4px;top:5px}.keyboard-cursor:after{height:18px;width:1px;top:-4px;left:5px}.page-loading{position:absolute;z-index:3;inset:0;background:#eef0e9ed;display:flex;align-items:center;justify-content:center;gap:9px;font-size:12px;color:#7b8c76;min-height:220px}.canvas-footer{min-height:34px;padding:9px 20px;border-top:1px solid #d9dfd5;display:flex;align-items:center;justify-content:space-between;gap:10px;color:#929c8b;background:#f4f6f0;font-size:9px;line-height:1.4}.page-warning{font-size:11px;line-height:1.6;padding:10px 20px;background:#fbf5e8;color:#8b743c;border-bottom:1px solid #eee2c9}.edit-panel{border-left:1px solid var(--line);padding:27px 24px 16px;background:#fff;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#d5ded0 transparent}.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;border-bottom:1px solid #e7eae3;padding-bottom:21px;margin-bottom:20px}.panel-heading .eyebrow{font-size:8px;letter-spacing:1.6px;color:#9aa68e}.panel-heading h2{font-size:19px;letter-spacing:-.6px;font-weight:500;margin:6px 0 0}.panel-step{font-size:26px;color:#edf0e7;font-family:Georgia,serif}.selection-empty{text-align:center;padding:25px 0 22px}.selection-empty-icon{display:grid;place-items:center;width:38px;height:38px;border:1px solid #e4e9de;border-radius:8px;margin:0 auto 13px;color:#9aab8c;background:#f8faf5}.selection-empty-icon .icon{width:19px;height:19px}.selection-empty h3{font-size:12px;font-weight:500;margin:0 0 8px;color:#798970}.selection-empty p{font-size:11px;line-height:1.8;color:#a0aa97;max-width:215px;margin:0 auto}.selected-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:9px}.selected-heading .field-label{font-size:10px}.selected-heading .text-button{font-size:10px;color:#899c7e}.selected-text{font-size:12px;line-height:1.8;padding:13px 14px;margin:0;white-space:pre-wrap;overflow-wrap:anywhere;border:1px solid #dfe8d8;background:#f5f8ef;color:#516548;border-radius:6px;max-height:160px;overflow-y:auto}.selection-style{display:flex;align-items:center;gap:7px;flex-wrap:wrap;font-size:9px;color:#a1ab97;padding:10px 0 19px;line-height:1.5;overflow-wrap:anywhere}.style-dot{width:7px;height:7px;border-radius:50%;border:1px solid #00000015;display:inline-block}.replacement-field{margin-bottom:16px}.edit-panel .field label{font-size:10px}.edit-panel textarea{font-size:12px;padding:11px 12px;line-height:1.7}.replacement-field textarea{min-height:112px;max-height:270px}.edit-panel .field-help{font-size:9px}.edit-options{display:flex;gap:15px;align-items:center;margin-bottom:18px}.edit-options>.field{margin:0;width:45%;flex-shrink:0}.edit-options select{font-size:10px;min-height:35px;padding:8px}.checkbox-field{display:flex;gap:7px;align-items:flex-start;font-size:10px;color:#637858;padding-top:19px;cursor:pointer;line-height:1.5}.checkbox-field input{accent-color:var(--green);width:13px;height:13px;margin:1px 0 0;flex-shrink:0}.checkbox-field small{display:block;font-size:8px;color:#a3ad99;margin-top:2px}.edit-panel .button{font-size:11px;min-height:39px}.edit-panel .button .icon{width:16px;height:16px}.edit-feedback{font-size:10px;line-height:1.6;color:#7c906d;margin:9px 0 0;min-height:0}.edit-feedback:empty{display:none}.ai-section{padding-top:22px;margin-top:23px;border-top:1px solid #e5e9df}.ai-heading{display:flex;align-items:center;gap:9px;margin-bottom:19px}.ai-icon{color:#829a6e;display:grid;place-items:center;width:30px;height:32px;background:#f3f6ed;border-radius:7px}.ai-icon .icon{width:17px;height:17px}.ai-heading h3{font-size:12px;font-weight:600;margin:0 0 4px;color:#526548}.ai-heading p{font-size:9px;color:#a0ad94;margin:0}.ai-section textarea{font-size:11px;min-height:78px}.ai-section .field{margin-bottom:15px}.ai-section select{font-size:10px}.ai-section .text-button{font-size:9px;color:#8ea17f}.ai-section .text-button .icon{width:11px;height:11px}.ai-disclosure{font-size:9px;color:#a0ad94;line-height:1.75;margin:11px 0 0}.model-status{font-size:9px;line-height:1.65;margin:-5px 0 12px;color:#96a68a;overflow-wrap:anywhere}.model-status.offline{color:#9f8450}.panel-footer{font-size:9px;line-height:1.7;color:#a9b19f;display:flex;gap:7px;padding-top:24px;margin-top:25px;border-top:1px solid #edf0e8}.panel-footer .icon{width:12px;height:12px;margin-top:2px}.task-bar{position:fixed;left:50%;bottom:25px;transform:translateX(-50%);z-index:30;display:flex;align-items:center;gap:11px;background:#fff;border:1px solid #d3e0ce;border-radius:9px;padding:13px 22px;font-size:12px;color:#5f7754;box-shadow:0 4px 22px #253e2510;max-width:calc(100vw - 35px)}.toast-region{position:fixed;right:24px;bottom:24px;z-index:50;display:flex;flex-direction:column;align-items:flex-end;gap:8px;pointer-events:none;max-width:min(390px,calc(100vw - 32px))}.toast{display:flex;align-items:flex-start;gap:10px;pointer-events:auto;background:#fff;border:1px solid #d5e2cf;border-left:3px solid #5e8b52;border-radius:7px;padding:14px 12px 14px 16px;font-size:12px;line-height:1.6;color:#526c48;box-shadow:0 4px 20px #263c2110;animation:toast-in .18s ease-out}.toast.error{border-color:#ecd4cd;border-left-color:#b9554e;color:#974a40}.toast p{margin:0;overflow-wrap:anywhere}.toast .icon-button{width:24px;height:24px;padding:3px;margin-top:-2px;color:inherit}.toast .icon{width:14px;height:14px}@keyframes toast-in{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}.help-dialog{border:1px solid #d7e1d0;border-radius:12px;padding:27px;width:min(430px,calc(100vw - 30px));color:var(--ink);background:#fcfdf9}.help-dialog::backdrop{background:#172e2390;backdrop-filter:blur(3px)}.dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:15px}.dialog-heading h2{font-size:21px;letter-spacing:-.6px;font-weight:500;margin:0}.help-dialog>p{font-size:12px;color:#7e8f74;line-height:1.8;margin:19px 0}.shortcuts{margin:24px 0;padding:14px 0;border-top:1px solid #e1e8d9;border-bottom:1px solid #e1e8d9}.shortcuts>div{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:7px 0}.shortcuts dt{font-size:12px;color:#687e5b}.shortcuts dd{font-size:10px;margin:0;color:#859976}kbd{font:inherit;border:1px solid #d7e0cd;background:#f4f7ee;padding:3px 6px;border-radius:4px;min-width:22px}.noscript{position:fixed;inset:0;z-index:100;background:var(--bg);display:grid;place-items:center;padding:40px;margin:0;font-size:16px;text-align:center}
@media(min-width:1600px){.auth-story{padding-left:70px;padding-right:70px}.auth-story-content{max-width:500px}.document-illustration{max-width:370px}.editor-body{grid-template-columns:minmax(0,1fr) 370px}.edit-panel{padding:30px}.empty-workspace{padding-top:75px}.dropzone{margin-top:45px}}
@media(max-width:1150px){.toolbar-hint{display:none}.document-title-group h1{max-width:260px}.document-actions{gap:4px}.document-header{padding-left:22px;padding-right:18px}.editor-body{grid-template-columns:minmax(0,1fr) 315px}.edit-panel{padding:24px 20px}.auth-story{padding:35px}.auth-form-side{padding:35px}.auth-story h1{font-size:37px}.illustration-caption{right:-20px}.auth-story-content{max-width:360px}.illustration-paper{padding-left:25px;padding-right:25px}.canvas-scroll{padding:28px 22px 40px}}
@media(max-width:900px){.auth-view{grid-template-columns:1fr}.auth-story{display:none}.auth-form-side{min-height:100vh;padding:25px}.auth-box{padding:35px 0;max-width:370px}.auth-topline{justify-content:center}.auth-bottom{margin-bottom:5px}.app-header{padding:0 20px;height:68px;gap:17px}.user-email{max-width:140px}.document-header{min-height:76px;flex-wrap:wrap;padding:12px 17px;gap:10px}.document-title-group h1{max-width:230px}.document-actions .button{padding:9px 10px}.document-actions .quiet span{display:none}.editor-body{height:calc(100vh - 144px);grid-template-columns:minmax(0,1fr) 290px}.edit-panel{padding:22px 17px}.canvas-toolbar{padding:0 10px;gap:5px}.canvas-scroll{padding:23px 14px 35px}.canvas-footer{padding:8px 12px}.canvas-footer #page-dimensions{display:none}.empty-workspace{padding-top:50px}.empty-features{gap:27px;margin-left:10px;margin-right:10px}.header-right{gap:8px}.preview-pill{display:none}}
@media(max-width:700px){.workspace-label,.header-divider,.user-email{display:none}.app-header{height:62px;padding:0 18px}.app-header .brand{font-size:27px}.app-header .brand-mark{width:28px;height:31px;font-size:29px}.empty-workspace{padding:37px 21px 24px}.empty-intro h1{font-size:31px;letter-spacing:-1px;margin-top:16px}.empty-intro>p{font-size:12px}.empty-intro>p br{display:none}.dropzone{margin-top:28px;padding:28px 19px 23px}.empty-features{grid-template-columns:1fr;gap:22px;margin:35px 6px 30px}.empty-features>div{position:relative;padding-left:35px}.feature-number{position:absolute;left:0;top:1px}.empty-features h3{margin-bottom:5px}.empty-features p{max-width:360px}.empty-footer{font-size:9px;align-items:flex-start;padding-top:18px;line-height:1.8}.empty-footer .icon{margin-top:3px;flex-shrink:0}.sample-row{flex-wrap:wrap;gap:3px 7px}.document-header{padding:12px 14px;min-height:unset;gap:12px}.document-title-group{flex:1}.document-title-group h1{font-size:12px;max-width:calc(100vw - 110px)}.file-type-icon{width:29px;height:34px}.document-actions{width:100%;margin:0;justify-content:space-between;gap:5px}.document-actions .button.quiet span{display:inline}.document-actions .button{font-size:10px;min-height:35px;padding:8px 10px}.document-actions #download-button{margin-left:auto}.document-actions .icon{width:15px;height:15px}.editor-body{height:auto;min-height:0;display:flex;flex-direction:column}.document-workspace{height:62vh;min-height:360px;max-height:750px}.edit-panel{border-left:0;border-top:1px solid var(--line);padding:25px 23px;overflow:visible}.panel-heading{margin-bottom:19px}.selection-empty{padding:10px 0 20px}.ai-section{margin-top:25px}.edit-panel textarea{font-size:14px}.edit-panel .field label,.field-label{font-size:12px}.edit-panel .field-help{font-size:11px}.selected-heading .field-label{font-size:12px}.selected-heading .text-button{font-size:11px}.selected-text{font-size:14px}.selection-style{font-size:11px}.edit-options select{font-size:12px}.checkbox-field{font-size:12px}.checkbox-field small{font-size:10px}.checkbox-field input{width:16px;height:16px}.edit-panel .button{font-size:13px;min-height:43px}.ai-heading h3{font-size:14px}.ai-heading p{font-size:11px}.ai-section .text-button{font-size:11px}.ai-section select{font-size:12px}.model-status,.ai-disclosure,.panel-footer{font-size:11px}.canvas-toolbar{height:47px;min-height:47px;padding:0 12px}.canvas-scroll{padding:22px 18px 30px}.canvas-footer{font-size:9px}.task-bar{bottom:16px;font-size:11px;padding:12px 16px;white-space:normal;min-width:190px;justify-content:center}.toast-region{right:16px;bottom:16px}.toast{font-size:12px}.field input,.field select{font-size:16px}.auth-box .field input{font-size:15px}}
/* Keep the working UI comfortable to read at ordinary laptop sizes. */
:root{--muted:#65736b}.workspace-label,.user-email{font-size:12px;color:#66736b}.pill{font-size:11px}.auth-box .muted{font-size:14px}.auth-footnote,.auth-bottom,.form-footnote{font-size:11px;color:#6d796c}.preview-panel>p{font-size:13px;color:#667461}.auth-tabs button{font-size:13px}.auth-tabs button:not([aria-selected="true"]){color:#68756a}.auth-story-footer{font-size:11px}.auth-story-content>.eyebrow{font-size:10px}.empty-intro>.eyebrow{font-size:10px;color:#627959}.empty-intro>p{font-size:14px;color:#667561}.dropzone p{font-size:13px;color:#6b7866}.upload-limit{font-size:11px;color:#6c7966}.sample-row,.sample-row .text-button{font-size:12px}.sample-row{color:#6b7863}.empty-features h3{font-size:14px}.empty-features p{font-size:13px;color:#68745f;line-height:1.7}.feature-number{font-size:10px;color:#7c8b6b}.empty-footer{font-size:11px;color:#69765f}.document-title-group h1{font-size:14px}.document-title-group p{font-size:11px;color:#69785f}.document-actions .button{font-size:12px}.canvas-toolbar,.toolbar-hint{font-size:11px;color:#69775e}.page-navigation input{width:38px;font-size:12px;height:29px}.page-navigation>span{font-size:11px;color:#68775b}.zoom-value{font-size:11px;color:#627451}.canvas-footer{font-size:11px;color:#68765e}.page-warning{font-size:12px}.edit-panel .field label,.field-label,.selected-heading .field-label{font-size:12px}.selected-heading .text-button{font-size:11px;color:#57794b}.selected-text{font-size:14px;color:#455d39}.selection-style{font-size:11px;color:#65765a}.edit-panel textarea{font-size:13px}.edit-panel .field-help{font-size:11px;color:#69775e}.edit-options select{font-size:12px}.checkbox-field{font-size:11px;color:#536e45}.checkbox-field small{font-size:10px;color:#69775e}.edit-panel .button{font-size:12px}.edit-feedback{font-size:11px;color:#577247}.selection-empty h3{font-size:13px;color:#5b7250}.selection-empty p{font-size:12px;color:#6e7d61}.panel-heading .eyebrow{font-size:10px;color:#6c7e5f}.ai-heading h3{font-size:13px;color:#46643b}.ai-heading p{font-size:11px;color:#6a7d5c}.ai-section textarea{font-size:13px}.ai-section select{font-size:12px}.ai-section .text-button{font-size:11px;color:#5f7c4d}.model-status{font-size:11px;color:#5f7650}.model-status.offline{color:#8b702e}.ai-disclosure,.panel-footer{font-size:11px;color:#6c7a5f}.help-dialog>p{font-size:13px;color:#617751}.shortcuts dt{font-size:13px}.shortcuts dd{font-size:11px}.field input::placeholder,.field textarea::placeholder{color:#7b8776}.ai-section textarea::placeholder{color:#75856a}.task-bar{font-size:13px}
@media(max-width:700px){.document-title-group h1{font-size:13px}.document-actions .button{font-size:11px}.empty-intro>p{font-size:13px}.empty-features h3{font-size:14px}.empty-features p{font-size:13px}.canvas-footer{font-size:10px}.edit-panel textarea{font-size:14px}.edit-panel .button{font-size:13px}.edit-options select{font-size:13px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;transition:none!important;scroll-behavior:auto!important}}

/* The web workspace follows the desktop application's Qt theme and panel layout. */
:root{--ink:#26334a;--muted:#657087;--green:#15796e;--green-dark:#26334a;--line:#e2e6ef;--canvas:#e5e9f0;--bg:#f7f6f2}
.desktop-workspace{height:100dvh;min-height:0;background:#f7f6f2;color:#26334a;font:13px/1.4 "Segoe UI",Arial,sans-serif;display:flex;flex-direction:column}
.desktop-workspace .app-header{height:35px;min-height:35px;padding:0 13px;border-bottom:1px solid #e3e6ec;background:#f7f6f2;display:flex;justify-content:space-between;align-items:center}
.desktop-workspace .window-title{font-size:12px;font-weight:600}.desktop-workspace .header-right{gap:10px}.desktop-workspace .user-avatar{width:22px;height:22px;font-size:10px;background:#e8e6f6;color:#49429b}.desktop-workspace .user-email{font-size:11px;max-width:240px;color:#657087}.desktop-workspace .app-header .button{padding:3px 7px;min-height:26px;font-size:11px}.desktop-workspace .pill{font-size:10px;padding:4px 8px}
.desktop-workspace .editor{display:flex;flex-direction:column;min-height:0;flex:1;height:auto}
.desktop-workspace .desktop-toolbar{display:flex;align-items:center;justify-content:flex-start;gap:5px;padding:8px 12px;min-height:57px;background:#fff;border-bottom:1px solid #dce2eb;overflow-x:auto;flex:none}
.desktop-workspace .studio-brand{font-size:16px;font-weight:700;color:#26334a;margin-right:10px;white-space:nowrap}
.desktop-workspace button,.studio-dialog button{border:1px solid #dce2eb;background:#fff;color:#26334a;border-radius:8px;padding:7px 10px;min-height:33px;font-size:13px;font-weight:600;line-height:1.25;transition:background .12s;white-space:normal}
.desktop-workspace button:hover:not(:disabled),.studio-dialog button:hover:not(:disabled){background:#f0f2f8;border-color:#c6cddc}
.desktop-workspace button:disabled,.studio-dialog button:disabled{opacity:.45}
.desktop-workspace .button.primary,.studio-dialog .button.primary{background:#15796e;color:#fff;border-color:#15796e;min-height:37px}
.desktop-workspace .button.primary:hover:not(:disabled),.studio-dialog .button.primary:hover:not(:disabled){background:#11675e;border-color:#11675e}
.desktop-workspace .button.accent{background:#eef7f5;border-color:#d6e8e4;color:#176c62}
.desktop-workspace .button.quiet{background:#fff;border-color:#e2e6ef;color:#26334a}
.desktop-workspace .desktop-toolbar button{flex:none;white-space:nowrap;min-height:34px;padding:7px 10px;font-size:12px}
.desktop-workspace .desktop-toolbar .icon-button{border:0;padding:7px;width:30px}.desktop-workspace .desktop-toolbar .icon-button .icon{width:17px;height:17px}
.desktop-workspace .toolbar-divider{width:1px;height:25px;background:#e4e7ed;margin:0 5px;flex:none}
.desktop-workspace .page-badge{font-size:12px;color:#657087;display:inline-flex;align-items:center;gap:4px;white-space:nowrap;border-radius:7px;background:#f2f4f8;padding:5px 7px}
.desktop-workspace .page-badge input{background:transparent;border:0;padding:0;width:31px;min-height:22px;text-align:center;font-size:12px;appearance:textfield}.desktop-workspace .page-badge input::-webkit-inner-spin-button{appearance:none}
.desktop-workspace .editor-body{display:grid;grid-template-columns:minmax(0,1fr) 480px;min-height:0;flex:1;overflow:hidden}
.desktop-workspace .document-workspace{position:relative;display:flex;flex-direction:column;min-width:0;min-height:0;background:#e5e9f0;overflow:hidden}
.desktop-workspace .canvas-scroll{display:flex;align-items:flex-start;justify-content:flex-start;position:relative;min-height:0;flex:1;overflow:auto;padding:24px;overscroll-behavior:contain}
.desktop-workspace .paper{flex:none;position:relative;margin:auto;box-shadow:0 3px 16px #26334a24;background:#fff;outline:none}.desktop-workspace .paper:focus-visible{outline:2px solid #7669cf;outline-offset:4px}
.desktop-workspace .paper img{display:block;width:100%;height:100%;user-select:none}
.desktop-workspace .canvas-footer{background:#e5e9f0;color:#657087;border-top:1px solid #d7dde7;padding:7px 13px;min-height:30px;font-size:11px;display:flex;align-items:center;justify-content:space-between;gap:12px;flex:none}
.desktop-workspace .desktop-empty{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:30px;color:#68768c;text-align:center;background:#e5e9f0}
.desktop-workspace .desktop-empty>.icon{width:36px;height:36px;color:#8794a6;margin-bottom:2px}.desktop-workspace .desktop-empty h1,.desktop-workspace .desktop-empty h2{font-size:19px;font-weight:600;letter-spacing:0;margin:0;color:#56677e;font-family:inherit}.desktop-workspace .desktop-empty p{margin:0;max-width:400px;font-size:13px;line-height:1.65}.desktop-workspace .desktop-drop{font-size:12px;border:1px dashed #aeb9ca;border-radius:9px;padding:12px 38px;margin-top:6px}.desktop-workspace .desktop-drop.drag-over{border-color:#15796e;background:#e9f4ef;color:#15796e}
.desktop-workspace .edit-panel{width:auto;min-width:0;max-height:none;height:100%;overflow-y:auto;overflow-x:hidden;background:#f7f6f2;border-left:1px solid #d9dde5;padding:12px 13px 18px;display:block;scrollbar-gutter:stable}
.desktop-workspace .mode-tabs{display:flex;gap:5px;padding-bottom:12px;position:relative}.desktop-workspace .mode-tabs button{flex:1;font-size:12px;min-height:36px;padding:7px 8px;white-space:nowrap;background:#fff;border-color:#dce2eb;border-radius:8px}.desktop-workspace .mode-tabs button[aria-selected=true]{background:#354d70;color:#fff;border-color:#354d70}
.desktop-workspace .mode-panel{padding:0;display:block}.desktop-workspace .mode-panel h2{font-size:16px;margin:5px 0 10px;font-weight:700}
.desktop-workspace p,.studio-dialog p{font-size:12px;line-height:1.5;margin:8px 0;color:#657087}
.desktop-workspace .muted,.studio-dialog .muted{font-size:11px;line-height:1.5;color:#657087}
.desktop-workspace .studio-group,.studio-dialog fieldset{background:#fff;border:1px solid #dde2eb;border-radius:13px;padding:10px 12px 12px;margin:4px 0 13px;min-width:0}
.desktop-workspace fieldset legend{font-size:13px;color:#35465f;font-weight:700;padding:0 5px}
.desktop-workspace .studio-group .studio-group{margin-top:13px;padding-top:8px}
.desktop-workspace .row,.studio-dialog .row{display:flex;align-items:center;gap:7px;margin:9px 0;min-width:0;flex-wrap:wrap}.desktop-workspace .row>input,.desktop-workspace .row>select{flex:1;min-width:60px}.desktop-workspace .row>button{flex:1}.desktop-workspace .desktop-empty .row>button{flex:none}
.desktop-workspace .full,.studio-dialog .full{width:100%}
.desktop-workspace input:not([type=checkbox]),.desktop-workspace textarea,.desktop-workspace select,.studio-dialog input:not([type=checkbox]),.studio-dialog textarea,.studio-dialog select{color:#26334a;background:#fcfcfe;border:2px solid #e2e6ef;border-radius:8px;padding:7px 8px;min-height:33px;font-family:inherit;font-size:13px;line-height:1.4;box-shadow:none;max-width:100%}
.desktop-workspace input:focus,.desktop-workspace textarea:focus,.desktop-workspace select:focus,.studio-dialog input:focus,.studio-dialog textarea:focus,.studio-dialog select:focus{outline:none;border-color:#7669cf}
.desktop-workspace input::placeholder,.desktop-workspace textarea::placeholder,.studio-dialog input::placeholder,.studio-dialog textarea::placeholder{color:#798398;opacity:1}
.desktop-workspace input[readonly],.desktop-workspace textarea[readonly]{background:#f2f4f8;color:#657087}
.desktop-workspace textarea,.studio-dialog textarea{resize:vertical;min-width:0;width:100%}.desktop-workspace select:not([size]){min-height:34px}.desktop-workspace select[size]{width:100%;padding:4px;min-height:130px}.desktop-workspace select[size] option{padding:5px 7px;border-radius:4px;white-space:normal}.desktop-workspace select[size] option:checked{background:#eae8fc;color:#49429b}
.desktop-workspace label,.studio-dialog label{font-size:12px;font-weight:600;color:#35465f}.desktop-workspace .form-row,.studio-dialog .form-row{display:grid;grid-template-columns:105px minmax(0,1fr);gap:8px;align-items:start;margin:10px 0}.desktop-workspace .form-row>label,.studio-dialog .form-row>label{padding-top:8px}.desktop-workspace .form-row>input,.desktop-workspace .form-row>select,.studio-dialog .form-row>input,.studio-dialog .form-row>select{width:100%}
.desktop-workspace .check-row,.studio-dialog .check-row{display:flex;align-items:center;gap:7px;font-size:11px;font-weight:400;color:#46546b;margin:10px 0;line-height:1.45}.desktop-workspace input[type=checkbox],.studio-dialog input[type=checkbox]{accent-color:#15796e;width:16px;height:16px;margin:0;flex:none}
.desktop-workspace details,.studio-dialog details{margin:9px 0}.desktop-workspace summary,.studio-dialog summary{cursor:pointer;color:#4a5670;font-size:12px;font-weight:600;padding:7px 0}.desktop-workspace details[open]>summary{margin-bottom:5px}
.desktop-workspace .sub-tabs,.studio-dialog .sub-tabs{display:flex;gap:3px;border-bottom:1px solid #d6d2f5;padding-bottom:7px;margin:14px 0 8px}.desktop-workspace .sub-tabs button,.studio-dialog .sub-tabs button{font-size:11px;border-color:transparent;padding:6px 7px;min-height:31px;flex:1;background:transparent;color:#657087;border-radius:7px}.desktop-workspace .sub-tabs button[aria-selected=true],.studio-dialog .sub-tabs button[aria-selected=true]{background:#eae8fc;color:#49429b;border-color:#d6d2f5}
.desktop-workspace .stack{display:flex;flex-direction:column;gap:7px}.desktop-workspace .action-status{padding:8px 10px;border:1px solid #d4e9e3;border-radius:7px;background:#f0f8f5;color:#176c62;font-size:11px}
.readonly-box{white-space:pre-wrap;overflow-wrap:anywhere;background:#fcfcfe;border:2px solid #e2e6ef;border-radius:8px;padding:10px;font:12px/1.6 "Segoe UI",Arial,sans-serif;color:#46546b;max-height:340px;overflow:auto;margin:8px 0;min-height:80px}
.desktop-workspace .selected-text{font:13px/1.5 "Segoe UI",Arial,sans-serif;border:2px solid #e2e6ef;color:#26334a;min-height:80px;max-height:160px;padding:9px;background:#fcfcfe;border-radius:8px;margin:8px 0}.desktop-workspace #selection-empty{display:none}.desktop-workspace #text-panel>.field-label{display:block;margin-top:13px}.desktop-workspace #ai-instruction{margin-top:8px}.desktop-workspace #replacement-text{min-height:140px;margin-top:8px}.desktop-workspace #selection-style{font-size:11px;color:#657087;min-height:13px;margin-bottom:10px}.desktop-workspace .model-status{font-size:11px;color:#657087}.desktop-workspace .selection-empty{padding:0}.desktop-workspace .field-help{font-size:11px;color:#657087}
.desktop-workspace .amazon-group{margin-top:14px;padding-top:4px}.desktop-workspace .amazon-group>summary{font-size:13px;color:#35465f;padding:8px 0}.desktop-workspace .amazon-group>.row>button{flex:none}.desktop-workspace .product-field{margin:12px 0}.desktop-workspace .product-field>label{display:block;margin:5px 0}.desktop-workspace .product-field textarea{font-size:12px}.desktop-workspace .product-field .row{margin:5px 0;justify-content:flex-end}.desktop-workspace .product-field .row>button{flex:none;font-size:11px;min-height:28px;padding:5px 10px}
.table-scroll{overflow:auto;max-height:245px;border:1px solid #e2e6ef;border-radius:8px;margin:8px 0;background:white}.table-scroll table{width:100%;border-collapse:collapse;font-size:11px;color:#35465f;text-align:left}.table-scroll th{background:#f1f3f8;color:#526179;position:sticky;top:0;z-index:1;font-weight:600;padding:8px;border-bottom:1px solid #dce2eb;white-space:nowrap}.table-scroll td{padding:7px;border-bottom:1px solid #edf0f5;vertical-align:top;white-space:pre-wrap;max-width:220px;overflow-wrap:anywhere}.table-scroll tr.selected>td{background:#eeecfc}.table-scroll tbody tr{cursor:pointer}.table-scroll tbody tr:hover>td{background:#f4f3fc}.table-scroll tr.selected:hover>td{background:#eae7fa}
.desktop-workspace .app-status{height:29px;min-height:29px;background:#f7f6f2;border-top:1px solid #dce2eb;padding:6px 13px;display:flex;gap:20px;justify-content:space-between;color:#657087;font-size:11px}.desktop-workspace .app-status>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.desktop-workspace .studio-status{margin:5px 0;font-size:11px}
.desktop-workspace .photo-paper{position:relative;flex:none;margin:auto;box-shadow:0 3px 15px #26334a25;touch-action:none;cursor:grab}.desktop-workspace .photo-paper:active{cursor:grabbing}.desktop-workspace .photo-paper img{width:100%;height:100%;display:block;user-select:none}.desktop-workspace #photo-regions-overlay{position:absolute;inset:0;width:100%;height:100%;overflow:visible}.desktop-workspace #photo-regions-overlay polygon{fill:#7669cf0a;stroke:#5e63bc;stroke-width:1.2;cursor:pointer}.desktop-workspace #photo-regions-overlay polygon.selected{fill:#d4caff50;stroke:#6e4bcd;stroke-width:2}.desktop-workspace #photo-panel>select{width:100%;margin:12px 0}.desktop-workspace #photo-panel>button{margin-bottom:5px}.desktop-workspace #photo-original-text{width:100%;margin:5px 0 9px}.desktop-workspace .photo-style{flex-wrap:nowrap}.desktop-workspace .photo-style input{width:60px;flex:none}.desktop-workspace .photo-style select{min-width:65px;flex:1}.desktop-workspace #sn-panel>select,.desktop-workspace #sn-panel>textarea{width:100%;margin:7px 0}.desktop-workspace #sn-results{font-family:Consolas,monospace;font-size:13px;margin-top:12px}
.date-editor{display:flex;align-items:stretch;gap:4px;min-width:0}.date-editor>input:first-child{flex:1;width:0;min-width:0}.date-editor .calendar-picker{width:34px!important;min-width:34px;flex:none;padding:5px!important;color:transparent!important;cursor:pointer}.date-editor .calendar-picker::-webkit-datetime-edit{display:none}.date-editor .calendar-picker::-webkit-calendar-picker-indicator{margin:0;width:17px;opacity:.7}
.studio-dialog{width:min(570px,calc(100vw - 34px));max-width:none;max-height:92dvh;padding:20px;border:1px solid #dce2eb;border-radius:12px;background:#f7f6f2;color:#26334a;box-shadow:0 20px 80px #26334a45;font:13px/1.5 "Segoe UI",Arial,sans-serif;overflow:auto}.studio-dialog::backdrop{background:#26334a75}.studio-dialog h2{font-size:18px;margin:0 0 10px;color:#26334a}.studio-dialog .dialog-heading{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:12px}.studio-dialog .dialog-heading h2{margin:0}.studio-dialog .dialog-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin-top:17px}.studio-dialog>input,.studio-dialog>textarea{width:100%;margin:7px 0}.studio-dialog .tall{height:420px;max-height:50dvh}.studio-dialog.wide-dialog{width:min(1000px,calc(100vw - 34px))}.studio-dialog.compact-dialog{width:min(390px,calc(100vw - 34px))}.studio-dialog.preview-dialog{width:min(820px,calc(100vw - 34px))}.studio-dialog.preview-dialog img{display:block;max-width:100%;height:auto;margin:auto;border:1px solid #dce2eb;background:#fff}.studio-dialog .sub-tabs button{flex:none;padding:7px 14px}
.bulk-dialog{width:min(1450px,calc(100vw - 30px))}.bulk-layout{display:grid;grid-template-columns:minmax(540px,1.6fr) minmax(300px,1fr);gap:20px}.bulk-layout>section{min-width:0}.bulk-dialog .table-scroll{max-height:320px}.bulk-dialog table{min-width:780px}.bulk-dialog td{padding:3px;max-width:none}.bulk-dialog th{font-size:11px}.bulk-dialog td input,.bulk-dialog td textarea{font-size:11px;padding:5px;min-height:28px;width:100%;border-width:1px}.bulk-dialog td textarea{min-width:145px;resize:vertical}.bulk-dialog .date-editor{min-width:140px}.bulk-dialog td input:not([type=date]){min-width:95px}.bulk-dialog .bulk-actions input[type=number]{width:65px}.bulk-dialog .bulk-actions button{font-size:11px;min-height:30px;padding:6px}.bulk-dialog .bulk-actions{gap:5px}.bulk-dialog .bulk-preview-stage{background:#e5e9f0;min-height:180px;max-height:470px;overflow:auto;padding:12px;border:1px solid #d4dbe6;border-radius:8px}.bulk-dialog .bulk-preview-stage img{max-width:100%;display:block;margin:auto;box-shadow:0 2px 8px #26334a25}.bulk-dialog .bulk-preview-side .readonly-box{max-height:210px}.bulk-dialog .bulk-preview-side .row{justify-content:space-between}
.desktop-workspace .task-bar{bottom:37px;background:#26334a;color:#fff;z-index:30}.desktop-workspace .task-bar .spinner{border-color:#ffffff44;border-top-color:white}
@media(max-width:1100px){.desktop-workspace .editor-body{grid-template-columns:minmax(0,1fr) 425px}.desktop-workspace .edit-panel{padding:10px}.desktop-workspace .studio-brand{font-size:14px;margin-right:4px}.desktop-workspace .desktop-toolbar{gap:3px;padding:7px 8px}.desktop-workspace .desktop-toolbar button{font-size:11px;padding:6px 8px}.desktop-workspace .toolbar-divider{margin:0 2px}.desktop-workspace .mode-tabs button{font-size:11px;padding:7px 5px}.desktop-workspace .form-row{grid-template-columns:100px minmax(0,1fr)}}
@media(max-width:800px){.desktop-workspace .editor-body{grid-template-columns:minmax(0,1fr) 365px}.desktop-workspace .studio-brand{display:none}.desktop-workspace #photo-toolbar{display:none}.desktop-workspace .edit-panel{padding:8px}.desktop-workspace .studio-group{padding:8px}.desktop-workspace .form-row{grid-template-columns:88px minmax(0,1fr)}.desktop-workspace .sub-tabs button{padding:5px;font-size:10px}.bulk-layout{grid-template-columns:1fr}.bulk-dialog .bulk-preview-stage{max-height:400px}}
@media(max-width:640px){.desktop-workspace{height:auto;min-height:100dvh}.desktop-workspace .app-header{position:sticky;top:0;z-index:20}.desktop-workspace .user-email{max-width:145px}.desktop-workspace .desktop-toolbar{position:sticky;top:35px;z-index:15;min-height:48px;overflow:auto}.desktop-workspace .editor-body{display:flex;flex-direction:column;overflow:visible}.desktop-workspace .document-workspace{height:52dvh;min-height:270px;max-height:700px;flex:none}.desktop-workspace .edit-panel{border-left:0;border-top:1px solid #dce2eb;overflow:visible;padding:12px;height:auto}.desktop-workspace .canvas-scroll{padding:15px}.desktop-workspace .mode-tabs{padding-bottom:10px}.desktop-workspace .mode-tabs button{font-size:12px;min-height:38px}.desktop-workspace .form-row{grid-template-columns:110px minmax(0,1fr)}.desktop-workspace .sub-tabs button{font-size:12px}.desktop-workspace .app-status{position:sticky;bottom:0;z-index:12;gap:10px;font-size:10px}.desktop-workspace .task-bar{max-width:calc(100vw - 24px);font-size:12px}.studio-dialog{padding:14px}.bulk-layout{grid-template-columns:1fr}.desktop-workspace .desktop-empty{padding:14px}.desktop-workspace .desktop-empty p{font-size:12px}.desktop-workspace .desktop-empty h1{font-size:16px}.desktop-workspace .desktop-empty>.icon,.desktop-workspace #upload-limit{display:none}.desktop-workspace .desktop-empty .desktop-drop{padding:7px 25px}.desktop-workspace .canvas-footer{font-size:10px;min-height:26px}}
.desktop-workspace .editor-body{grid-template-columns:minmax(0,1fr) 6px var(--sidebar-width,480px)}
.workspace-splitter{width:6px;cursor:col-resize;background:#f7f6f2;touch-action:none;border-left:1px solid #dce2eb;border-right:1px solid #e8e7e1;position:relative}
.workspace-splitter:hover,.workspace-splitter:focus-visible{background:#d6d2f5;outline:none}.workspace-splitter:after{content:'';height:38px;width:2px;background:#c5cbd6;border-radius:2px;position:absolute;top:50%;left:1px}
.desktop-workspace .edit-panel{border-left:0}.bulk-dialog input.auto-value{font-style:italic;color:#657087}.desktop-workspace .desktop-empty>*{visibility:hidden}
@media(max-width:1100px){.desktop-workspace .editor-body{grid-template-columns:minmax(0,1fr) 6px var(--sidebar-width,425px)}}
@media(max-width:800px){.desktop-workspace .editor-body{grid-template-columns:minmax(0,1fr) 6px var(--sidebar-width,365px)}}
@media(max-width:640px){.desktop-workspace .editor-body{display:flex}.workspace-splitter{display:none}.desktop-workspace .desktop-empty>*{visibility:visible}}
/* Owner access controls share the desktop studio palette. */
.manage-users-dialog{width:min(620px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow:auto}
.manage-users-dialog .dialog-heading{gap:12px;align-items:center}.manage-users-dialog .dialog-heading h2{margin:0}.manage-users-dialog .dialog-heading button{flex:none}
.manage-users-dialog .manage-users-form{margin-top:18px}.manage-users-form>label{display:block;font-size:12px;font-weight:600;margin-bottom:6px;color:#26334a}
.manage-users-add{display:flex;gap:8px;align-items:stretch}.manage-users-add input{flex:1;min-width:0}.manage-users-add button{flex:none}
.manage-users-list-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:22px}.manage-users-list-heading h3{font-size:13px;font-weight:600;margin:0}
.managed-users{list-style:none;margin:8px 0 0;padding:0;border:1px solid #dde2eb;border-radius:10px;background:#fff;max-height:320px;overflow:auto}
.managed-users:empty{display:none}.managed-user{display:flex;align-items:center;gap:12px;padding:10px 12px;min-width:0}.managed-user+.managed-user{border-top:1px solid #e8ebf0}
.managed-user-email{flex:1;min-width:0;font-size:13px;color:#26334a;overflow-wrap:anywhere}.managed-user button{flex:none}.managed-user-owner{font-size:11px;font-weight:600;border-radius:20px;padding:5px 9px;background:#eae8fc;color:#49429b}
.manage-users-removal{margin-top:12px;padding:12px;background:#fff5f1;border:1px solid #ebcdc2;border-radius:10px}.manage-users-dialog .manage-users-removal p{margin:0;overflow-wrap:anywhere;color:#673d30}.manage-users-dialog .manage-users-danger{background:#9b4237;border-color:#9b4237;color:#fff}.manage-users-dialog .manage-users-danger:hover:not(:disabled){background:#81372e;border-color:#81372e}
.manage-users-dialog .manage-users-status{min-height:36px;margin:12px 0 0;color:#15796e;overflow-wrap:anywhere}.manage-users-dialog .manage-users-status.error{color:#9b4237}
@media(max-width:640px){.desktop-workspace .app-header:has(#manage-users-button:not([hidden])) .window-title{display:none}.desktop-workspace .app-header:has(#manage-users-button:not([hidden])) .header-right{width:100%;justify-content:flex-end;gap:5px}.desktop-workspace .app-header:has(#manage-users-button:not([hidden])) .user-email{max-width:125px;margin-right:auto}.manage-users-dialog{width:calc(100vw - 20px)}.manage-users-add{flex-direction:column}.manage-users-add input{font-size:16px!important}.managed-user{padding:9px;gap:8px}.managed-user-email{font-size:12px}}
.desktop-workspace .app-header .user-email{min-width:0}
