:root{--bg:#f5f7fb;--paper:#fff;--ink:#17243a;--muted:#65728a;--soft:#8b98ae;--line:#e4e9f2;--blue:#2563eb;--blue-dark:#1d4ed8;--blue-light:#ebf2ff;--danger:#c43d48;--radius:15px;--shadow:0 10px 30px rgba(18,39,72,.09);font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;color:var(--ink);font-synthesis:none}*{box-sizing:border-box}html,body{margin:0;min-width:320px}body{background:var(--bg);font-size:14px;-webkit-font-smoothing:antialiased}button,input,textarea,select{font:inherit;color:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.43}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #9ac0ff;outline-offset:2px}svg{width:20px;height:20px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.icon-library{position:absolute;width:0;height:0;overflow:hidden}.hidden{display:none!important}.topbar{height:79px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:12px 24px;gap:18px;position:relative;z-index:12}.topbar-left,.topbar-right{display:flex;align-items:center;gap:13px;min-width:0}.brand-mark{width:42px;height:42px;border-radius:12px;background:linear-gradient(145deg,#3b7aff,#2051db);color:#fff;display:grid;place-items:center;box-shadow:0 5px 12px #2563eb22}.brand-mark svg{width:23px;height:23px}.brand-copy{display:flex;flex-direction:column;min-width:max-content;gap:1px}.brand-name{font-weight:800;font-size:19px;letter-spacing:-.65px}.beta{display:inline-block;vertical-align:middle;margin-left:8px;font-size:9px;letter-spacing:.6px;color:#3465ca;border-radius:5px;background:#eaf2ff;padding:4px 5px}.brand-tagline{font-size:10.5px;color:var(--muted)}.top-separator{height:34px;border-left:1px solid var(--line);margin:0 4px}.project-label{min-width:0;display:flex;flex-direction:column;gap:3px}.project-title{font-size:13px;font-weight:700;max-width:195px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.project-label #projectSubtitle{font-size:11px;color:var(--muted)}.view-switch{display:flex;gap:3px;background:#f0f3f9;border:1px solid #e6eaf2;border-radius:11px;padding:3px}.view-tab{display:flex;align-items:center;justify-content:center;gap:7px;border:0;border-radius:8px;background:transparent;color:#65728a;padding:9px 12px;white-space:nowrap;font-size:12px;font-weight:650}.view-tab svg{width:16px;height:16px}.view-tab.active{color:#1e4fd0;background:#fff;box-shadow:0 2px 7px #152e5314}.local-badge{display:flex;align-items:center;gap:6px;color:#537067;font-size:11px;white-space:nowrap}.local-badge svg{width:15px;height:15px}.btn{border:1px solid var(--line);border-radius:10px;min-height:39px;padding:8px 13px;display:inline-flex;align-items:center;justify-content:center;gap:8px;background:#fff;font-size:12.5px;font-weight:700;white-space:nowrap;transition:background .12s,border-color .12s,transform .12s}.btn:hover:not(:disabled),.icon-btn:hover:not(:disabled){border-color:#bdcce9;background:#f5f8ff}.btn svg{width:16px;height:16px}.btn-primary{color:white;background:#2563eb;border-color:#2563eb;box-shadow:0 4px 9px #2563eb1a}.btn-primary:hover:not(:disabled){background:#1d4ed8;border-color:#1d4ed8}.btn-neutral{background:#fff}.editor-shell{height:calc(100dvh - 149px);min-height:510px;display:grid;grid-template-columns:210px minmax(0,1fr) 265px}.page-sidebar,.inspector{background:#fff;min-height:0;display:flex;flex-direction:column}.page-sidebar{border-right:1px solid var(--line)}.inspector{border-left:1px solid var(--line)}.sidebar-top{padding:21px 15px 13px;display:flex;justify-content:space-between;align-items:center}.sidebar-top h2,.inspector-header h2{font-size:14px;margin:0;font-weight:750}.sidebar-top p{font-size:11px;color:var(--muted);margin:5px 0 0}.count-badge{font-size:11px;background:#f0f3f8;border-radius:7px;padding:3px 6px;color:#6c7a90}.icon-btn{display:inline-grid;place-items:center;border-radius:9px;border:1px solid transparent;background:transparent;color:#65748b;width:35px;height:35px}.icon-btn svg{width:17px;height:17px}.sidebar-add{border:1px solid var(--line)}.thumb-list{overflow:auto;min-height:0;flex:1;display:flex;flex-direction:column;gap:12px;padding:0 14px 16px}.thumb-item{width:100%;text-align:left;border:1px solid transparent;background:transparent;border-radius:10px;padding:10px 10px 8px;display:flex;flex-direction:column;align-items:center;gap:7px;position:relative}.thumb-item.active{background:#eff5ff;border-color:#bbd2fb}.thumb-item:hover:not(:disabled){background:#f3f7fd}.thumb-image{width:105px;height:140px;max-width:100%;object-fit:contain;background:#fff;border:1px solid #dae2ee;box-shadow:0 3px 10px #172b4a0f;border-radius:3px}.thumb-item strong{font-size:11px;font-weight:700}.thumb-item small{display:block;max-width:160px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--muted);font-size:10px}.sidebar-footer{border-top:1px solid var(--line);padding:14px;color:#78869b;font-size:10px;display:flex;gap:8px;line-height:1.45}.sidebar-footer svg{width:14px;height:14px}.main-content{min-width:0;min-height:0;display:flex;flex-direction:column}.toolstrip{min-height:61px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:10px;padding:8px 18px;flex-wrap:wrap}.tool-group{display:flex;align-items:center;gap:3px}.tool-group-compact{gap:2px}.tool-button{display:flex;align-items:center;gap:6px;background:transparent;border:1px solid transparent;color:#65728a;border-radius:9px;padding:8px 10px;min-height:39px;font-size:11.5px;font-weight:650}.tool-button.active{background:var(--blue-light);color:#2058d6;border-color:#cbdcfb}.tool-button svg{width:17px;height:17px}.tool-button:hover:not(:disabled){background:#f2f6fc}.tool-divider{height:25px;border-left:1px solid var(--line)}.tool-spacer{flex:1}.danger-icon{color:#bc4956}.more-wrap{position:relative}.btn-more{min-height:36px}.chevron{width:13px!important;height:13px!important}.more-menu{position:absolute;z-index:30;top:calc(100% + 7px);right:0;width:240px;background:white;border:1px solid var(--line);border-radius:12px;padding:6px;box-shadow:var(--shadow)}.more-menu button{display:flex;align-items:center;gap:10px;width:100%;border:0;background:transparent;border-radius:8px;text-align:left;padding:10px 9px;color:#34465f;font-size:12px}.more-menu button:hover{background:#f2f6ff}.more-menu svg{width:16px;height:16px}.workspace{flex:1;min-height:0;position:relative;overflow:hidden}.workspace-empty{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:22px;overflow:auto}.empty-illustration{width:132px;height:122px;position:relative;margin-bottom:16px}.illus-sheet{position:absolute;width:80px;height:102px;background:#f7faff;border:1px solid #d8e4ff;border-radius:11px}.sheet-back{left:16px;top:8px;transform:rotate(-12deg);background:#edf4ff}.sheet-front{left:39px;top:9px;transform:rotate(5deg);box-shadow:0 8px 20px #183d6b17;display:flex;flex-direction:column;justify-content:flex-start;padding:26px 14px;gap:9px}.sheet-front span{height:6px;background:#d5e3f9;border-radius:3px}.sheet-front span:nth-child(3){width:65%}.illus-plus{position:absolute;bottom:9px;left:15px;background:#2563eb;width:41px;height:41px;display:grid;place-items:center;border:4px solid #fff;border-radius:14px;color:white}.workspace-empty h1{margin:0;font-size:25px;letter-spacing:-.85px}.workspace-empty p{max-width:420px;color:var(--muted);line-height:1.6;margin:12px 0 20px}.btn-big{font-size:13px;padding:13px 17px}.empty-sample{margin-top:11px;border:0;background:none;color:#2459d5;font-weight:650;padding:7px}.empty-hint{font-size:11px;color:#8896a9;margin-top:14px}.empty-features{display:flex;flex-wrap:wrap;gap:20px;margin-top:32px;color:#67758b;font-size:11px}.empty-features span{display:flex;align-items:center;gap:5px}.empty-features svg{width:13px;height:13px;color:#17845d}.import-error{max-width:450px;background:#fff2f2;border:1px solid #f5d3d3;border-radius:9px;padding:10px;color:#a52b39;margin:12px}.organizer{height:100%;display:flex;flex-direction:column;min-height:0}.organizer-header{padding:25px 27px 17px;display:flex;justify-content:space-between;gap:15px;align-items:center}.eyebrow{color:#8a98ac;letter-spacing:1.3px;font-size:9px;font-weight:800}.organizer-heading h1{font-size:22px;letter-spacing:-.65px;margin:7px 0 7px}.organize-count{font-size:12px;border-radius:12px;background:#e6edfb;padding:4px 9px;vertical-align:middle;color:#3462b9}.organizer-heading p{color:var(--muted);margin:0;line-height:1.5;font-size:12px}.organizer-header-actions{display:flex;gap:8px;flex-wrap:wrap}.organizer-actionbar{background:#fff;border-top:1px solid var(--line);border-bottom:1px solid var(--line);min-height:54px;padding:8px 21px;display:flex;align-items:center;gap:14px}.organize-selectall{display:flex;align-items:center;gap:7px;font-size:11.5px;font-weight:650;white-space:nowrap}.organize-selectall input{accent-color:#2563eb;width:17px;height:17px}.selection-summary{color:#718098;font-size:11.5px;flex:1}.organize-batch-actions{display:flex;gap:4px;align-items:center}.organize-action{border:1px solid transparent;background:transparent;color:#56677f;border-radius:8px;min-height:35px;padding:7px 10px;font-size:11px;font-weight:650;display:flex;gap:6px;align-items:center}.organize-action:hover:not(:disabled){background:#eff4ff}.organize-action svg{width:16px;height:16px}.organize-action.destructive{color:#be4752}.organize-action.icon-only{padding:6px}.actionbar-divider{height:23px;border-left:1px solid var(--line);margin:0 4px}.organizer-scroll{flex:1;min-height:0;overflow:auto;padding:24px}.page-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(154px,1fr));align-items:start;gap:20px 16px}.page-card{position:relative;border-radius:12px;background:#fff;border:2px solid transparent;box-shadow:0 5px 14px #0e2e5414;overflow:hidden;transition:transform .1s,border-color .1s;cursor:grab}.page-card:hover{transform:translateY(-2px);border-color:#cadcf9}.page-card.selected{border-color:#3776ec;background:#f5f9ff}.page-card.drop-target{border:2px dashed #2670ef}.page-card.dragging{opacity:.4}.page-card-head{height:34px;display:flex;align-items:center;justify-content:space-between;padding:0 10px;background:#fff;border-bottom:1px solid #edf0f5}.card-number{font-size:11px;font-weight:800;color:#63738a}.page-check{width:16px;height:16px;accent-color:#2563eb;cursor:pointer}.page-card-image{margin:12px;position:relative;height:160px;background:#f9fbfd;display:flex;align-items:center;justify-content:center}.page-card-image img{max-width:100%;max-height:100%;object-fit:contain;box-shadow:0 2px 8px #1e334f15}.page-card-foot{padding:9px 10px 11px;border-top:1px solid #eff2f7}.page-card-name{font-size:11px;font-weight:700;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.page-card-sub{display:flex;align-items:center;justify-content:space-between;margin-top:4px;color:#8a96a8;font-size:10px}.page-edit-label{color:#2764de;font-weight:700}.grid-add-card{border:2px dashed #ccd7e9;min-height:230px;border-radius:13px;background:#fbfcff;color:#6d7e95;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px}.grid-add-card svg{width:26px;height:26px;color:#507bc6}.grid-add-card strong{font-size:12px}.grid-add-card span{font-size:11px}.grid-add-card:hover{background:#eef5ff;border-color:#80aaf2}.organizer-footer{display:flex;justify-content:space-between;gap:10px;padding:11px 25px;color:#8190a3;font-size:10px;border-top:1px solid var(--line)}.document-area{height:100%;min-height:0;display:flex;flex-direction:column}.canvas-shelf{height:54px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 17px;gap:12px}.canvas-meta{display:flex;align-items:center;gap:9px;min-width:0}.canvas-meta strong{font-size:12px;white-space:nowrap}.crumb-slash{color:#c2cbd7}.back-organize{background:transparent;border:0;color:#285dcb;font-weight:700;font-size:11px;display:flex;gap:5px;align-items:center;padding:7px 2px;white-space:nowrap}.back-organize svg{width:15px;height:15px}.canvas-zoom{display:flex;align-items:center;gap:4px}.canvas-zoom span{font-size:11px;min-width:38px;text-align:center;color:#64738b}.canvas-scroller{flex:1;min-height:0;overflow:auto;display:grid;place-items:center;padding:25px}.paper-outer{width:max-content;min-height:1px}.paper{position:relative;background:white;box-shadow:0 10px 30px #20334f28;border:1px solid #e5e9f0;overflow:hidden;touch-action:none;user-select:none}.paper img{display:block;width:100%;height:100%;pointer-events:none;object-fit:fill}.annotations{position:absolute;inset:0;overflow:hidden}.annotation{position:absolute;cursor:grab;box-sizing:border-box;min-width:14px;min-height:14px}.annotation.selected{outline:2px dashed #397be7;outline-offset:3px}.annotation.text{white-space:pre-wrap;overflow:visible;line-height:1.24;font-family:Arial,sans-serif;word-break:break-word}.annotation.image{object-fit:contain}.annotation.image img{width:100%;height:100%;object-fit:fill}.annotation.highlight{background:#f8e44c;mix-blend-mode:multiply}.annotation.stroke{position:absolute;inset:0;pointer-events:none}.draw-layer{position:absolute;inset:0;pointer-events:none;width:100%;height:100%}.paper.tool-text,.paper.tool-draw,.paper.tool-highlight{cursor:crosshair}.paper-loading{position:absolute;inset:0;display:grid;place-items:center;background:#fff;color:#8090aa;font-size:12px}.canvas-status{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:10px 18px;background:#fff;border-top:1px solid var(--line);font-size:10px;color:#8491a6}.canvas-status span{display:flex;align-items:center;gap:5px}.canvas-status svg{width:13px;height:13px}.inspector-header{padding:21px 17px 15px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;gap:5px;align-items:center}.inspector-header h2{margin-top:4px}.inspector-header-actions{display:flex;gap:6px;align-items:center}.inspector-icon{width:36px;height:36px;background:#f1f5fc;color:#4e6b9c;border-radius:11px;display:grid;place-items:center}.inspector-icon svg{width:18px;height:18px}.inspector-body{padding:19px 17px;flex:1;min-height:0;overflow-y:auto}.inspector-welcome{text-align:center;padding:26px 1px}.welcome-bubble{margin:auto;width:53px;height:53px;border-radius:16px;background:#eef5ff;color:#2867df;display:grid;place-items:center}.inspector-welcome h3{font-size:15px;margin:17px 0 7px}.inspector-welcome p{font-size:12px;line-height:1.65;color:#75829a}.inspector-tip{background:#f5f8fe;border:1px solid #e7edf8;padding:12px;text-align:left;margin-top:20px;border-radius:11px;display:flex;flex-direction:column;gap:7px;font-size:11px;line-height:1.5;color:#66758b}.inspector-tip strong{color:#415a7c}.inspector-bottom{border-top:1px solid var(--line);display:flex;gap:7px;align-items:center;padding:15px 16px;color:#77869b;font-size:10px}.inspector-bottom svg{width:13px;height:13px}.property-group{display:flex;flex-direction:column;gap:8px;margin-bottom:19px}.property-label{font-size:11px;font-weight:750;color:#465771}.property-help{font-size:10px;color:#8090a4;line-height:1.5}.property-input,.property-select,.property-textarea{border:1px solid #d8e1ee;border-radius:9px;background:#fff;width:100%;min-height:38px;padding:9px 10px;font-size:12px}.property-textarea{min-height:86px;resize:vertical;line-height:1.5}.property-row{display:flex;gap:9px}.property-row>*{min-width:0;flex:1}.property-divider{margin:17px 0;border-top:1px solid var(--line)}.property-actions{display:flex;gap:7px;flex-wrap:wrap}.subtle-button{padding:9px 10px;border:1px solid var(--line);background:#fff;border-radius:9px;font-weight:700;font-size:11px}.subtle-button:hover:not(:disabled){background:#f4f7fd}.subtle-button.danger{color:#b93543;border-color:#f0d7dc}.color-input{height:38px;width:100%;cursor:pointer;border:1px solid #d8e1ee;border-radius:8px;padding:4px}.help-panel{background:#f3f6fb;padding:12px;border-radius:10px;font-size:11px;line-height:1.65;color:#65758e}.small-title{font-size:12px;font-weight:800;margin:0 0 11px}.badge-line{display:inline-flex;gap:7px;align-items:center;font-size:11px;color:#68809d}.mobile-close,.mobile-properties{display:none}.brand-footer{background:#fff;border-top:1px solid var(--line);height:70px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:3px;color:#7b879a;font-size:11px;padding:4px 8px}.brand-footer img{display:block;width:135px;height:auto;max-height:40px;object-fit:contain}.drag-overlay{position:fixed;inset:0;z-index:80;background:rgba(34,84,180,.13);border:4px dashed #4b87f1;display:grid;place-items:center;pointer-events:none}.drag-overlay>div{background:#fff;border-radius:22px;padding:34px 65px;text-align:center;box-shadow:var(--shadow);display:flex;flex-direction:column;align-items:center;gap:10px}.drag-overlay svg{width:36px;height:36px;color:var(--blue)}.drag-overlay strong{font-size:20px}.drag-overlay span{color:var(--muted)}.toast-stack{position:fixed;z-index:110;bottom:66px;left:50%;transform:translateX(-50%);display:flex;flex-direction:column;gap:8px;align-items:center;pointer-events:none;max-width:min(90vw,580px)}.toast{padding:11px 16px;border-radius:11px;background:#20314b;color:white;box-shadow:var(--shadow);font-size:12px;line-height:1.45;text-align:center}.toast.error{background:#a52e3a}.modal-backdrop{position:fixed;inset:0;z-index:100;background:#111d30a8;display:flex;align-items:center;justify-content:center;padding:18px}.modal{background:#fff;width:min(100%,510px);max-height:min(85dvh,760px);overflow:auto;border-radius:18px;box-shadow:0 20px 70px #15223b45}.modal-header{padding:22px 25px 17px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:10px}.modal-header h2{font-size:20px;margin:5px 0 0;letter-spacing:-.35px}.modal-body{padding:21px 25px}.modal-actions{padding:17px 25px;border-top:1px solid var(--line);display:flex;justify-content:flex-end;gap:8px}.radio-choice{border:1px solid var(--line);padding:13px;border-radius:11px;display:flex;gap:10px;align-items:flex-start;margin-bottom:9px;font-size:12px;cursor:pointer}.radio-choice:has(input:checked){border-color:#8bb0f4;background:#f5f9ff}.radio-choice input{margin:3px 0 0;accent-color:#2563eb}.radio-choice strong{display:block;margin-bottom:5px}.radio-choice span{color:var(--muted);line-height:1.4}.launch-notice{position:fixed;z-index:130;inset:0;background:#f3f6fb;display:grid;place-items:center;padding:22px}.launch-card{background:#fff;max-width:500px;padding:37px;border:1px solid var(--line);border-radius:22px;text-align:center;box-shadow:var(--shadow)}.launch-logo{height:53px;width:53px;background:#ecf3ff;color:var(--blue);margin:0 auto 18px;border-radius:15px;display:grid;place-items:center}.launch-card h1{font-size:22px}.launch-card p{color:var(--muted);line-height:1.65}.launch-card .btn{margin-top:10px}.muted{color:var(--muted)}
@media(max-width:1320px){.local-badge{display:none}.project-label{display:none}.top-separator{display:none}.editor-shell{grid-template-columns:175px minmax(0,1fr) 245px}.organizer-header{padding:20px}.toolstrip{padding:8px 11px}.tool-button{padding:8px}.tool-button span{display:none}}
@media(max-width:1000px){.editor-shell{grid-template-columns:155px minmax(0,1fr)}.inspector{position:fixed;z-index:39;right:0;top:79px;bottom:70px;width:min(360px,90vw);box-shadow:-16px 0 35px #17305225;transform:translateX(110%);transition:transform .18s}.inspector.mobile-open{transform:translateX(0)}.mobile-close{display:grid}.mobile-properties{display:block;position:fixed;z-index:35;bottom:84px;right:16px;border:1px solid #bcd0ef;border-radius:10px;background:#fff;box-shadow:var(--shadow);padding:10px 15px;font-size:12px;font-weight:700;color:#2459bb}.organizer-header-actions .btn{font-size:11px}.page-grid{grid-template-columns:repeat(auto-fill,minmax(140px,1fr))}}
@media(max-width:680px){.topbar{height:auto;min-height:69px;padding:10px 12px;gap:7px;flex-wrap:wrap}.brand-mark{height:34px;width:34px}.brand-name{font-size:16px}.brand-tagline{display:none}.topbar-right{gap:7px;margin-left:auto}.view-switch{order:3;flex:1}.view-tab{font-size:11px;min-height:35px;padding:6px 8px;flex:1}.topbar .btn{min-height:35px;padding:7px 9px;font-size:11px}.topbar .btn svg{width:14px;height:14px}.topbar #importButtonLabel{display:none}.topbar-right #importButton{width:36px}.beta{font-size:8px}.editor-shell{height:calc(100dvh - 170px);min-height:390px;display:flex}.page-sidebar{display:none}.main-content{width:100%}.toolstrip{min-height:52px;gap:4px;padding:5px 7px}.tool-group{gap:0}.tool-divider{display:none}.tool-button{min-height:36px;padding:6px}.tool-button svg{width:18px}.tool-group-compact .icon-btn{width:30px;height:35px}.btn-more{min-height:33px;padding:6px 8px}.btn-more span{display:none}.inspector{top:104px;bottom:70px}.mobile-properties{bottom:79px}.workspace-empty h1{font-size:20px}.workspace-empty p{font-size:12px}.workspace-empty{padding:14px}.empty-illustration{transform:scale(.8);margin-bottom:0}.empty-features{margin-top:19px;gap:10px;font-size:10px}.organizer-header{padding:16px 13px;display:block}.organizer-heading h1{font-size:19px}.organizer-heading p{font-size:11px}.organizer-header-actions{margin-top:13px}.organizer-header-actions .btn{flex:1;min-width:0}.organizer-actionbar{padding:8px 10px;flex-wrap:wrap;gap:7px}.selection-summary{order:3;width:100%;flex:auto;font-size:10px}.organize-batch-actions{margin-left:auto}.organize-action{padding:5px 6px;gap:4px}.organize-action svg{width:14px;height:14px}.organize-action:not(.icon-only){font-size:10px}.organizer-scroll{padding:13px}.page-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.page-card-image{height:145px;margin:9px}.grid-add-card{min-height:205px}.organizer-footer{padding:10px 12px;font-size:9px}.organizer-footer span:first-child{display:none}.canvas-shelf{padding:0 8px}.canvas-scroller{padding:15px 8px}.canvas-status{padding:8px 10px}.brand-footer{height:66px}.brand-footer img{width:115px}.modal-header{padding:19px}.modal-body{padding:18px}.modal-actions{padding:14px 18px}}
@media(max-width:380px){.view-tab svg{display:none}.tool-button{padding:5px}.organize-action:not(.icon-only){font-size:0;gap:0}.organize-action svg{width:17px;height:17px}.page-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.page-card-image{height:120px}}
.card-moves{display:flex;border-top:1px solid #ecf0f7}.card-moves button{flex:1;background:#fff;border:0;min-height:26px;color:#7586a0;font-size:13px}.card-moves button+button{border-left:1px solid #ecf0f7}.card-moves button:hover:not(:disabled){background:#edf4ff;color:#225fd9}

.nojs-notice{position:fixed;z-index:150;inset:0;display:grid;place-items:center;background:#f7f9fc;padding:32px;font:600 18px system-ui;text-align:center;color:#314563}
#exportRange:disabled{background:#f5f7fb;color:#8190a4;cursor:not-allowed}

/* 0.3.2 refinement: generous document space, progressive disclosure, compact publisher attribution. */
body{min-height:100dvh;display:flex;flex-direction:column}
.topbar{height:65px;min-height:65px;flex-shrink:0;padding:9px 19px;gap:10px}
.brand-mark{height:37px;width:37px;border-radius:10px;box-shadow:none}
.brand-name{font-size:18px}
.brand-tagline,.top-separator,.local-badge span,#projectSubtitle{display:none}
.project-label{display:block;max-width:160px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;color:#8390a3;border-left:1px solid #e5e9f0;padding-left:14px}
.topbar-right{gap:8px}
.editor-shell{flex:1;height:auto;min-height:0;grid-template-columns:180px minmax(0,1fr);overflow:hidden}
body[data-view="organize"] .editor-shell{grid-template-columns:minmax(0,1fr)}
body[data-view="organize"] .page-sidebar,body[data-view="organize"] .inspector{display:none!important}
body[data-view="edit"][data-inspector="open"] .editor-shell{grid-template-columns:180px minmax(0,1fr) 265px}
body[data-view="edit"][data-inspector="open"] .inspector{display:flex}
body[data-inspector="closed"] .inspector{display:none}
body[data-view="organize"] .toolstrip,body[data-view="organize"] .properties-toggle{display:none}
body[data-view="edit"] .toolstrip{min-height:53px;padding:6px 14px;gap:6px}
.properties-toggle{border:1px solid #dce6f3;background:#f4f7fc}
.properties-toggle[aria-expanded="true"]{background:#e8f0ff;color:#2358bf;border-color:#bdd3f6}
.sidebar-top{padding:16px 13px 11px}
.thumb-list{padding:0 11px 12px;gap:8px}
.brand-footer{height:48px;min-height:48px;max-height:48px;flex-shrink:0;padding:3px 0 4px;gap:0;font-size:9px;line-height:1.1;color:#738198}
.brand-footer img{width:94px;height:28px;max-height:28px;object-fit:contain}
.toast-stack{bottom:58px}
.organizer-header{padding:17px 23px 12px;min-height:66px}
.organizer-heading{display:flex;align-items:center;gap:17px;flex-wrap:wrap}
.organizer-heading h1{font-size:20px;margin:0;line-height:1.25}






.organizer-actionbar{min-height:46px;padding:5px 22px;gap:12px}
.organize-batch-actions{gap:3px}
.organize-action.icon-only{min-width:34px;min-height:34px;display:grid;place-items:center;padding:6px}
.organize-action.icon-only svg{width:17px;height:17px}
.selection-summary{font-size:11px;color:#8a97a8}
.organizer-scroll{padding:16px 22px}
.page-grid{gap:14px}
.grid-add-card{min-height:180px}
.grid-add-card span{display:none}
.workspace-empty h1{font-size:25px;margin-bottom:8px}
.empty-features{gap:6px;display:flex;align-items:center;justify-content:center;margin-top:23px;font-size:11px;color:#7890a9}
.empty-features svg{width:13px;height:13px}
.sidebar-footer,.organizer-footer{display:none}
.inspector-header{padding:15px 15px 12px}
.inspector-header .eyebrow{display:none}
.inspector-body{padding:15px}
.inspector-welcome,.inspector-tip{display:none}
.advanced-properties{border:1px solid var(--line);border-radius:10px;padding:8px 11px;margin-bottom:14px}
.advanced-properties summary{cursor:pointer;font-size:11px;font-weight:700;color:#61718b;padding:5px 1px}
.advanced-properties[open] .property-group{margin:12px 0 4px}
.mobile-properties{display:none!important}
@media(max-width:1320px){.project-label{display:none}.tool-button{padding:8px}.tool-button span{display:none}}
@media(max-width:1000px){
 body[data-view="edit"] .editor-shell,body[data-view="edit"][data-inspector="open"] .editor-shell{grid-template-columns:155px minmax(0,1fr)}
 body[data-view="edit"][data-inspector="open"] .inspector{display:flex;position:fixed;z-index:39;right:0;top:65px;bottom:48px;width:min(350px,90vw);transform:translateX(0);box-shadow:-15px 0 30px #18365528}
 body[data-inspector="closed"] .inspector{display:none!important}
 .organizer-scroll{padding:13px 18px}
}
@media(max-width:680px){
 .topbar{min-height:100px;height:auto;max-height:120px;padding:9px 12px;gap:5px}
 .brand-mark{height:33px;width:33px}
 .brand-name{font-size:16px}
 .brand-copy{min-width:max-content}
 .topbar-right{flex:1;min-width:0;justify-content:flex-end;flex-wrap:wrap;gap:6px}
 .view-switch{order:5;flex-basis:100%;margin-top:3px}
 .editor-shell{flex:1;height:auto;min-height:0!important;display:flex}
 body[data-view="organize"] .editor-shell,body[data-view="edit"] .editor-shell{display:flex}
 .page-sidebar{display:none!important}
 .main-content{width:100%;min-height:0}
 body[data-view="edit"][data-inspector="open"] .inspector{top:100px;bottom:48px;width:min(340px,92vw)}
 .brand-footer{height:43px;min-height:43px;max-height:43px}
 .brand-footer img{width:90px;height:25px;max-height:25px}
 .toolstrip{min-height:43px!important;padding:4px 7px!important;gap:3px!important;flex-wrap:nowrap}
 .tool-button{padding:6px}
 .tool-button svg{width:17px}
 .organizer-heading{gap:8px}
 .organizer-heading h1{font-size:19px}
 .organizer-header{padding:13px 13px 9px}
 .organizer-actionbar{padding:6px 11px;gap:6px;flex-wrap:nowrap}
 .selection-summary{order:initial;width:auto;flex:1;min-width:0;white-space:nowrap}
 .organize-batch-actions{margin-left:0}
 .organize-action.icon-only{min-width:29px;min-height:32px;padding:5px}
 .organizer-scroll{padding:10px}
 .page-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
 .page-card-image{height:140px;margin:7px}
 .grid-add-card{min-height:190px}
 .empty-features{margin-top:18px}
 .workspace-empty h1{font-size:21px}
 .toast-stack{bottom:54px}
}
@media(max-width:380px){.toolstrip .tool-button{min-width:29px}.toolstrip .icon-btn{width:28px}}

.page-edit-label{opacity:0;transition:opacity .12s}.page-card:hover .page-edit-label,.page-card:focus-within .page-edit-label{opacity:1}
@media (hover:none){.page-edit-label{opacity:0}}
.toast{max-width:min(420px,88vw);padding:9px 13px;border-radius:10px;box-shadow:0 4px 14px #18335425}
/* Keep the footer inside the viewport on small screens; only page grids scroll. */
body{height:100dvh;min-height:0;overflow:hidden}
.editor-shell{flex:1 1 0;min-height:0!important;overflow:hidden}

@media(max-width:380px){.selection-summary{display:none}.organize-selectall{margin-right:auto}.organizer-actionbar{gap:4px}}

/* Compact edit toolbar on phones: page actions move into More, always reachable. */
.mobile-page-action{display:none!important}
@media(max-width:680px){
 .toolstrip .page-tools{display:none}
 .toolstrip .tool-button{min-width:29px;padding:5px}
 .toolstrip .tool-group-compact .icon-btn{width:30px;min-width:30px;height:34px}
 .toolstrip .properties-toggle{width:30px;min-width:30px;height:34px}
 .toolstrip .more-wrap{flex:none;margin-left:auto}
 .toolstrip .btn-more{width:34px;min-width:34px;padding:5px}
 .toolstrip .btn-more .chevron{display:none}
 .toolstrip .tool-spacer{flex:1;min-width:0}
 .more-menu .mobile-page-action{display:flex!important}
}
@media(max-width:380px){
 .toolstrip .tool-button{min-width:27px;padding:4px}
 .toolstrip .tool-group-compact .icon-btn{width:27px;min-width:27px}
 .toolstrip .properties-toggle{width:29px;min-width:29px}
}

.page-grid[data-multisource="false"] .page-card-name{display:none}
.page-grid[data-multisource="false"] .page-card-foot{padding:6px 10px}
.page-grid[data-multisource="false"] .page-card-sub{margin-top:0;min-height:12px}

/* Stage 1.2: deliberately quiet header, one-word identity, no publisher footer. */
body{height:100dvh;min-height:0;overflow:hidden}
.topbar{min-height:64px;height:64px;flex-shrink:0;padding:8px 22px;gap:12px}
.brand-mark{width:40px;height:40px;border-radius:11px;box-shadow:none}
.brand-copy{display:flex;flex-direction:column;justify-content:space-between;height:39px;min-width:0;padding:1px 0 2px;gap:0}
.brand-name{display:block;white-space:nowrap;font-size:19px;line-height:1.14;font-weight:760;letter-spacing:-.75px}
.brand-tagline{display:block!important;white-space:nowrap;font-size:9px;line-height:1.15;font-weight:700;letter-spacing:.65px;color:#77869b}
.fullscreen-button{width:37px;height:37px;border-color:var(--line);background:#fff;flex:none}
.fullscreen-button[aria-pressed="true"]{color:var(--blue);background:var(--blue-light);border-color:#bfcef3}
.topbar-right{gap:7px}
.editor-shell{flex:1 1 0;height:auto;min-height:0!important;overflow:hidden}
body[data-view="edit"][data-inspector="open"] .inspector{bottom:0}
.workspace-empty h1{letter-spacing:-.7px}
.workspace-empty p{margin:8px 0 19px}
.organizer-header{padding:18px 24px 12px}
.organizer-heading{gap:7px}
.organizer-heading h1{margin:0;font-size:21px}




.organizer-actionbar{padding:6px 24px;min-height:46px}
.selection-summary:empty{visibility:hidden}
.toast-stack{bottom:16px}
.inspector{min-height:0}
/* Keep controls readable rather than trying to cram every option into the top bar. */
@media(max-width:1000px){
  body[data-view="edit"][data-inspector="open"] .inspector{top:64px;bottom:0}
}
@media(max-width:680px){
  .topbar{height:auto;min-height:99px;max-height:122px;padding:8px 12px;gap:5px;align-content:center}
  .brand-mark{width:36px;height:36px}
  .brand-copy{height:36px;padding:1px 0}
  .brand-name{font-size:17px}
  .brand-tagline{font-size:8px;letter-spacing:.52px}
  .topbar-right{gap:6px}
  .fullscreen-button{width:34px;height:35px}
  .view-switch{flex-basis:100%;order:5;margin-top:2px}
  .view-tab{padding:6px 8px}
  body[data-view="edit"][data-inspector="open"] .inspector{top:101px;bottom:0}
  .organizer-header{padding:13px 13px 9px}
  .organizer-heading h1{font-size:19px}
  .organizer-actionbar{padding:6px 11px}
  .organizer-scroll{padding:10px}
  .toast-stack{bottom:14px}
}
@media(max-width:380px){
  .topbar{gap:4px}
  .topbar-right{gap:4px}
  .topbar .btn{padding:7px 8px}
  .brand-mark{width:34px;height:34px}
  .brand-copy{height:34px}
  .brand-name{font-size:16px}
  .brand-tagline{font-size:7.6px}
  .fullscreen-button{width:30px;height:34px}
}
/* All viewport management belongs to the workspace, never a decorative footer. */
:fullscreen body{height:100%;}
:fullscreen .editor-shell{min-height:0}

/* Stage 1.3: compact professional brand lock-up and stable browser fullscreen. */
.topbar-left{gap:8px}
.brand-copy{align-items:flex-start;text-align:left;justify-content:center;gap:2px;padding:0;height:40px}
.brand-name{margin:0;line-height:1.02;letter-spacing:-.65px;font-size:19px}
.brand-tagline{margin:0;line-height:1.1;letter-spacing:.55px;font-size:9px}
.supporting-copy{display:block;margin-top:5px;color:#7b879c;font-size:12px}
body:fullscreen,body:-webkit-full-screen{display:flex;flex-direction:column;min-height:0;height:100vh;width:100vw;overflow:hidden;background:var(--bg)}
body:fullscreen .editor-shell,body:-webkit-full-screen .editor-shell{flex:1 1 0;min-height:0!important;height:auto!important;visibility:visible}
body:fullscreen .topbar,body:-webkit-full-screen .topbar{flex-shrink:0;visibility:visible}
.operation-status{position:fixed;z-index:95;bottom:26px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:12px;padding:13px 18px;min-width:min(340px,calc(100vw - 36px));max-width:min(640px,calc(100vw - 36px));border:1px solid #c9dbfc;border-radius:13px;background:#fff;box-shadow:0 12px 38px rgba(15,40,85,.22);color:#233755}
.operation-spinner{width:23px;height:23px;border-radius:50%;border:3px solid #d8e6ff;border-top-color:#2563eb;animation:verity-spin .75s linear infinite;flex:none}
.operation-copy{min-width:0;display:flex;flex-direction:column;gap:3px}.operation-copy strong{font-size:12px;font-weight:700;line-height:1.4;overflow-wrap:anywhere}.operation-copy small{font-size:10px;color:#71829c}
@keyframes verity-spin{to{transform:rotate(360deg)}}
.import-error{white-space:pre-wrap;max-height:160px;overflow:auto}
@media(max-width:680px){.topbar-left{gap:6px}.brand-copy{height:35px;gap:1px}.brand-name{font-size:16px;line-height:1.05}.brand-tagline{font-size:7.8px;line-height:1.1}.supporting-copy{font-size:11px}.operation-status{bottom:15px}}
@media(prefers-reduced-motion:reduce){.operation-spinner{animation-duration:1.6s}}

.conversion-notice{margin:0 22px 10px;border:1px solid #d8e4f5;background:#f6f9ff;border-radius:10px;font-size:11px;color:#536783;padding:8px 12px}
.conversion-notice summary{font-weight:700;cursor:pointer}
.conversion-notice p{white-space:pre-wrap;max-height:110px;overflow:auto;line-height:1.5}
@media(max-width:680px){.conversion-notice{margin:0 10px 8px}}
/* Prevent Chromium's default black fullscreen canvas from showing through the
   transparent workspace; this is the root of the 'everything disappeared' bug. */
body:fullscreen::backdrop{background:var(--bg)}
body:fullscreen .editor-shell,body:fullscreen .main-content,body:fullscreen .workspace,body:fullscreen .workspace-empty{background:var(--bg)!important}
body:-webkit-full-screen .editor-shell,body:-webkit-full-screen .main-content,body:-webkit-full-screen .workspace,body:-webkit-full-screen .workspace-empty{background:var(--bg)!important}

/* Stage 1.4: quiet, integrated empty-state attribution and deliberate import readiness. */
.brand-tagline{padding-left:6px}
.empty-attribution{display:flex;align-items:center;justify-content:center;gap:7px;margin:20px 0 0;color:#8190a5;font-size:10.5px;font-weight:550;line-height:1}
.empty-attribution img{display:block;width:98px;height:30px;object-fit:contain}
.workspace-loading{position:absolute;inset:0;z-index:32;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;background:var(--bg);color:var(--ink);padding:24px;text-align:center}
.workspace-loading .operation-spinner{width:32px;height:32px;border-width:3px;margin-bottom:5px}
.workspace-loading strong{font-size:14px;line-height:1.5;font-weight:700;max-width:380px;overflow-wrap:anywhere}
.workspace-loading-caption{font-size:11px;color:#7a879c}
body[data-importing="true"] .operation-status{display:none!important}
.export-advanced{border-top:1px solid var(--line);margin:15px 0 0;padding:11px 0 0}
.export-advanced summary{cursor:pointer;display:flex;align-items:center;gap:7px;color:#415875;font-weight:700;font-size:12px;padding:5px 0;list-style:revert}
.export-advanced .property-group{margin:12px 0}
.export-advanced .property-help{line-height:1.55}
.export-paper-row{display:grid;grid-template-columns:1fr 1fr;gap:11px}
.export-paper-row>*{min-width:0}
@media(max-width:680px){.brand-tagline{padding-left:4px}.empty-attribution{margin-top:16px;font-size:10px}.empty-attribution img{width:90px;height:27px}}
@media(max-width:380px){.export-paper-row{grid-template-columns:1fr;gap:0}}
/* Keep Export/Cancel visible while advanced paper settings scroll within the dialog. */
.modal{display:flex;flex-direction:column;overflow:hidden;max-height:min(90dvh,790px)}
.modal-header,.modal-actions{flex-shrink:0}
.modal-body{flex:1 1 auto;min-height:0;overflow-y:auto}


/* Stage 1.5 — restrained identity and shared document actions. */
.brand-tagline{padding-left:2px;letter-spacing:.12px;font-size:8.35px}
.topbar-more{position:relative;flex:none}
.topbar-more>.icon-btn,.about-button{border:1px solid var(--line);background:#fff;width:36px;height:36px}
.topbar-more>.icon-btn[aria-expanded="true"]{background:var(--blue-light);color:var(--blue);border-color:#c1d6f9}
.topbar-more .more-menu{width:211px;right:0;max-width:min(90vw,250px)}
.topbar-more .more-menu button{min-height:42px;font-size:12px}
.toolstrip{justify-content:flex-start}
.layout-note{margin:0;color:#64758e;font-size:11px;line-height:1.6}




.export-layout-summary .subtle-button{font-size:10.5px;flex:none}
.export-size-group{margin-bottom:4px}
.export-page-choices{margin-bottom:14px}
.size-warning{font-size:13px;line-height:1.65;color:#33445f}
@media(max-width:680px){
 .topbar-more>.icon-btn,.about-button{width:31px;height:34px}
 .brand-tagline{padding-left:1px;font-size:7.45px;letter-spacing:0}
 .topbar-more .more-menu{right:-40px}
}
@media(max-width:380px){
 .brand-tagline{font-size:7px;letter-spacing:0;padding-left:1px}
 .topbar-more>.icon-btn,.about-button{width:29px;height:33px}
}

/* Two intentional header rows on phones, not unpredictable flex wrapping. */
.header-quick{display:flex;align-items:center;gap:7px}
@media(max-width:680px){
 .topbar{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto;gap:7px 8px;padding:9px 12px;max-height:none;min-height:0;height:auto;align-content:center}
 .topbar-left{grid-column:1;grid-row:1;min-width:0}
 .topbar-right{display:contents}
 .header-quick{grid-column:2;grid-row:1;justify-content:flex-end;gap:5px;min-width:0}
 .view-switch{grid-column:1;grid-row:2;order:initial;width:100%;margin:0;justify-self:stretch}
 #exportButton{grid-column:2;grid-row:2;justify-self:end;width:auto;min-height:35px;padding:7px 10px;white-space:nowrap}
 .topbar-more .more-menu{right:-2px}
}
@media(max-width:380px){
 .topbar{column-gap:5px;padding-inline:9px}
 .header-quick{gap:4px}
 .topbar-left{gap:5px}
 .brand-name{font-size:15px}
 .brand-tagline{font-size:6.85px}
 .view-tab{padding:5px 7px}
}

/* The viewer scrolls independently of the page. At high zoom, both axes are
   scrollable with visible scrollbars for mouse and trackpad users, regardless
   of whether a page originated from PDF, DOCX or PPTX. */
.canvas-scroller{
  display:flex;
  justify-content:flex-start;
  align-items:flex-start;
  overflow-x:auto;
  overflow-y:auto;
  scrollbar-width:thin;
  scrollbar-color:#a6b8d2 #edf2f9;
  overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;
}
.canvas-scroller::-webkit-scrollbar{display:block;width:10px;height:10px}
.canvas-scroller::-webkit-scrollbar-track{background:#edf2f9}
.canvas-scroller::-webkit-scrollbar-thumb{background:#a6b8d2;border:2px solid #edf2f9;border-radius:8px}
.canvas-scroller::-webkit-scrollbar-thumb:hover{background:#7d94b7}
.canvas-scroller>.paper-outer{
  flex:0 0 auto;
  width:max-content;
  margin:auto;
}
/* Read/move mode allows panning a zoomed page on touch devices; drawing and
   highlighting retain exact pointer gestures instead of scrolling the sheet. */
.paper{touch-action:pan-x pan-y}
.paper.tool-draw,.paper.tool-highlight{touch-action:none}
.paper .annotation{touch-action:none}

/* Stage 1.7 — the page-layout preview and export use the same geometry. */
.layout-sheet{position:relative;background:#fff;overflow:hidden;box-shadow:0 10px 30px #20334f28;border:1px solid #e5e9f0;box-sizing:content-box}
.layout-sheet>.paper{position:absolute;display:block;margin:0;box-shadow:none;border:none;overflow:hidden}
.layout-thumb-sheet{position:relative;flex:0 1 auto;aspect-ratio:var(--page-aspect);height:100%;max-width:100%;max-height:100%;background:#fff;overflow:hidden;box-shadow:0 3px 12px #20334f1a;border:1px solid #dfe6ef;box-sizing:border-box}
.layout-thumb-sheet img{position:absolute!important;max-width:none!important;max-height:none!important;object-fit:fill!important;display:block}
.page-card-image,.thumb-item{overflow:hidden}
.page-card-image{display:flex;align-items:center;justify-content:center}
.thumb-item>.layout-thumb-sheet{height:65px;max-width:100%}
.layout-live-preview{border:1px solid #e0e8f3;background:#f7faff;border-radius:12px;padding:10px 12px;margin-bottom:15px;display:flex;align-items:center;gap:15px;min-height:158px}
.layout-mini-surface{width:155px;min-width:155px;height:138px;display:flex;align-items:center;justify-content:center;background:#edf2f8;border-radius:9px}
.layout-mini-sheet{position:relative;background:#fff;box-shadow:0 2px 12px #637c9b35;overflow:hidden;flex:none}
.layout-mini-content{position:absolute;background:#f4f7fd;border:1px solid #a6bbe0;display:flex;flex-direction:column;gap:7px;padding:9px;overflow:hidden;box-sizing:border-box}
.layout-mini-content span{background:#b3c7e6;height:5px;max-width:85%;border-radius:3px;flex:none}
.layout-mini-content span:first-child{height:9px;width:55%;background:#477ee4}
.layout-mini-content span:nth-child(2){width:90%}
.layout-mini-content span:nth-child(3){width:76%}
.layout-mini-content span:nth-child(4){width:88%}
.layout-live-preview .property-help{margin:0;flex:1;min-width:0;font-size:11px}
.editor-more{position:relative;flex:none;margin-left:0}
.editor-more>.icon-btn{height:36px;width:36px;border:1px solid var(--line);background:#fff}
.editor-more>.more-menu{right:auto;left:0;width:205px;z-index:70}

@media(max-width:680px){
 .editor-more>.icon-btn{height:34px;width:30px}
 .editor-more>.more-menu{left:auto;right:-66px}
 .layout-live-preview{padding:9px;gap:10px}
 .layout-mini-surface{min-width:115px;width:115px}
}

/* Stage 1.8: responsive, accessible About information, without an extra sidebar toggle. */
.about-lead{font-size:13px;line-height:1.7;color:#415671;margin:0 0 15px}
.about-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:0 0 12px}
.about-section{border:1px solid #e2eaf5;border-radius:11px;background:#f9fbfe;padding:12px 13px}
.about-section h3{margin:0 0 5px;font-size:12px;color:#254773}
.about-section p{margin:0;color:#5e6f88;font-size:11px;line-height:1.65}
.about-details{border-bottom:1px solid #e5eaf3;padding:10px 2px}
.about-details summary{cursor:pointer;font-size:12px;font-weight:700;color:#385274}
.about-details p{font-size:11px;line-height:1.7;color:#5e6f88;margin:10px 0 2px}
.about-version{display:flex;justify-content:space-between;gap:10px;margin-top:15px;padding-top:10px;border-top:1px solid #e6edf6;color:#8090a8;font-size:10px}
.about-version span{font-weight:750;letter-spacing:.35px}
/* Long lists stay responsive: off-screen cards do not require full paint/layout. */
.page-card{content-visibility:auto;contain-intrinsic-size:auto 260px}
.editor-more{margin-left:0}
.editor-more>.more-menu{left:auto;right:0}
@media(max-width:680px){.about-grid{grid-template-columns:1fr}.about-section{padding:10px 12px}.about-version{font-size:9px}}

/* Stage 1.8 preview readiness: never show an empty thumbnail as if it were a finished page. */
.layout-thumb-sheet.pending-preview{background:#f0f4fa}
.layout-thumb-sheet.pending-preview::after{content:'Preparing…';position:absolute;inset:0;display:grid;place-items:center;font-size:10px;font-weight:650;color:#7184a1;background:linear-gradient(110deg,#eef3fb,#f8faff,#eef3fb);background-size:200% 100%;animation:previewSweep 1.2s linear infinite;pointer-events:none}
.layout-thumb-sheet.preview-failed::after{content:'Preview unavailable';position:absolute;inset:0;display:grid;place-items:center;font-size:10px;font-weight:650;color:#a04657;background:#fff3f4;text-align:center;padding:5px;pointer-events:none}
@keyframes previewSweep{to{background-position-x:-200%}}
@media(prefers-reduced-motion:reduce){.layout-thumb-sheet.pending-preview::after{animation:none}}
.page-card-head{cursor:pointer;user-select:none;transition:background .12s}
.page-card-head:hover,.page-card-head:focus-visible{background:#eaf2ff;outline-offset:-2px}
.page-card.selected .page-card-head{background:#e8f0ff}
.editor-shell{position:relative}
.page-sidebar{position:relative}
.editor-preview-gate{position:absolute;z-index:55;inset:0;display:flex;gap:14px;align-items:center;justify-content:center;flex-direction:column;background:var(--bg);color:#294268;text-align:center;font-size:13px}
.sidebar-preview-gate{position:absolute;z-index:12;inset:52px 0 0;display:flex;gap:10px;align-items:center;justify-content:center;flex-direction:column;background:rgba(246,249,253,.96);color:#4d6481;font-size:11px;pointer-events:none}
.sidebar-preview-gate .operation-spinner{width:24px;height:24px;border-width:2px}
.editor-preview-gate .operation-spinner{width:31px;height:31px;border-width:3px}

/* Stage 1.8.1 — About sits immediately after Export on every screen size. */
.header-end{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex:none}
.header-end .about-button{flex:none}
@media(max-width:680px){
 .header-end{grid-column:2;grid-row:2;justify-self:end;gap:5px;min-width:0}
 .header-end #exportButton{width:auto;min-height:35px;padding:7px 10px}
}
@media(max-width:380px){.header-end{gap:4px}}

/* Stage 1.9 — editor-specific preview stability and lighter large-page lists. */
.thumb-item .layout-thumb-sheet{min-height:44px}
.thumb-item .layout-thumb-sheet.pending-preview::after{content:'Loading…'}
.sidebar-preview-gate{z-index:13}

/* Keep previews that are already ready visible while other sidebar pages load.
   Initial editor entry still has its full workspace readiness gate. */
.page-sidebar .sidebar-preview-gate{inset:auto 9px 10px;display:flex;flex-direction:row;gap:8px;padding:8px 10px;align-items:center;justify-content:center;border:1px solid #d9e3f2;border-radius:10px;background:rgba(255,255,255,.97);box-shadow:0 3px 12px #152e531f;max-width:calc(100% - 18px);font-size:10px}
.page-sidebar .sidebar-preview-gate .operation-spinner{width:17px;height:17px;border-width:2px}
/* Keep each page thumbnail at a legible height even with 1,000 pages. */
.thumb-list>.thumb-item{flex-shrink:0}

/* Readable sidebar previews without creating full-sized PDF rasters. */
.thumb-item>.layout-thumb-sheet{height:92px}

/* Stage 1.9.4: Organise uses the same Undo/Redo | More sequence as Edit. */
.organizer-actionbar{position:relative;z-index:5}
.organize-more{flex:none}
.organize-more>.icon-btn{width:36px;height:36px;border:1px solid var(--line);background:#fff;border-radius:10px}
.organize-more>.icon-btn[aria-expanded="true"]{background:var(--blue-light);color:var(--blue);border-color:#c1d6f9}
.organize-more>.more-menu{right:0;left:auto;width:205px;z-index:80}
@media(max-width:680px){
  .organize-more>.icon-btn{width:32px;height:34px}
  .organize-batch-actions>.actionbar-divider:last-of-type{margin-inline:2px}
}
@media(max-width:380px){
  .organize-more>.icon-btn{width:30px;height:32px}
}

/* Stage 1.9.6: concise import guidance and cancellable export. */
.operation-copy{flex:1}.operation-status #cancelExport{flex:none;min-height:40px;font-size:12px;padding:8px 12px}.export-feedback{margin-top:8px;font-size:12px;line-height:1.5;color:#a4262c}.export-feedback:empty{display:none}

/* Stage 2.0: quiet navigation, keyboard focus and reduced motion. */
.organizer-heading{flex-wrap:wrap}.workspace-empty{overflow:auto}.page-card-head:focus-visible{outline:2px solid #2563eb;outline-offset:-2px}@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition-duration:0s!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}

.workspace-empty{justify-content:safe center}.workspace-empty>*{flex-shrink:0}
