@import url('https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@400;500;600;700&family=Inter:wght@400;500;600;700&display=swap');
:root{--fw-accent:#df512e;--fw-pale:#fff0e9;--fw-border:#ece8e4;--fw-ink:#1c1815;--fw-muted:#796f68;--fw-bg:#fbfaf8;--fw-radius:20px}*{box-sizing:border-box}body{margin:0;background:var(--fw-bg);color:var(--fw-ink);font-family:'Hind Siliguri',Inter,sans-serif;font-size:14px}button,input{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.48}a{color:inherit;text-decoration:none}a:hover{color:var(--fw-accent)}.fw-topbar{position:sticky;top:0;z-index:40;min-height:66px;border-bottom:1px solid var(--fw-border);background:#fff;display:flex;align-items:center;justify-content:space-between;padding:10px clamp(16px,4vw,46px);gap:22px}.fw-brand{display:flex;align-items:center;gap:10px;font-size:20px;white-space:nowrap}.fw-brand img{display:block;max-width:165px;max-height:42px;object-fit:contain}.fw-logo-mark{display:grid;place-items:center;background:#f57b23;color:#fff;border-radius:11px;font-weight:700;width:39px;height:39px}.fw-header-links{display:flex;align-items:center;gap:7px}.fw-header-links a{padding:9px 15px;border-radius:9px;font-weight:600;color:#625953}.fw-header-links a[aria-current=page]{background:var(--fw-pale);color:var(--fw-accent)}.fw-menu-button,.fw-mobile-menu{display:none}.fw-menu-button,.fw-icon-btn{background:#fff;border:1px solid var(--fw-border);border-radius:11px;padding:9px 13px}.fw-container{max-width:1480px;margin:auto;padding:18px clamp(15px,3vw,30px) 30px}.fw-breadcrumb{display:flex;flex-wrap:wrap;gap:11px;align-items:center;color:#938b85;font-size:13px;margin-bottom:17px}.fw-breadcrumb strong{color:#403a36}.fw-titlebar{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px;gap:15px}.fw-title-left{display:flex;align-items:flex-start;gap:13px}.fw-title-icon{display:grid;place-items:center;flex:0 0 54px;height:54px;border-radius:15px;background:var(--fw-pale);color:var(--fw-accent);font-size:29px}.fw-heading{display:flex;align-items:center;flex-wrap:wrap;gap:9px}.fw-heading h1{font-size:28px;line-height:1.25;margin:0;font-weight:700}.fw-free,.fw-private{font-size:12px;border-radius:30px;padding:4px 10px;background:#def7e7;color:#138244;font-weight:700}.fw-private{color:#877d74;background:#f1eeeb}.fw-titlebar p{margin:4px 0 0;color:var(--fw-muted);font-size:15px}.fw-workspace{display:grid;grid-template-columns:380px minmax(0,1fr);gap:18px;align-items:start}.fw-card{border:1px solid var(--fw-border);border-radius:var(--fw-radius);background:#fff;padding:16px;box-shadow:0 3px 17px #1c181509;min-width:0}.fw-files{min-height:390px;display:flex;flex-direction:column;max-height:860px}.fw-preview{padding:18px;min-height:590px;box-shadow:0 8px 24px #1c18150e}.fw-card-title{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:13px;margin-bottom:12px}.fw-small-primary{padding:7px 11px;border:0;background:var(--fw-pale);color:var(--fw-accent);border-radius:9px;font-weight:700}.fw-dropzone{min-height:160px;width:100%;border:1.5px dashed var(--fw-accent);background:var(--fw-pale);border-radius:14px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:7px;color:var(--fw-ink)}.fw-dropzone.is-dragging{background:#fbd6c7;outline:3px solid #f6b7a1}.fw-dropzone small,.fw-empty small{color:#a49a92;font-size:12px}.fw-upload-icon{display:grid;place-items:center;width:45px;height:45px;border-radius:11px;background:#fff;color:var(--fw-accent);font-size:29px}.fw-file-list{overflow-y:auto;min-height:0;display:flex;flex-direction:column;gap:9px;max-height:690px;padding:1px 2px 4px}.fw-file{display:flex;align-items:center;gap:9px;padding:9px;border:1px solid var(--fw-border);border-radius:12px;background:#fff;min-width:0}.fw-file[aria-selected=true]{border-color:var(--fw-accent);background:#fff8f5}.fw-file.is-dragged,.fw-page-item.is-dragged{opacity:.5}.fw-file-grip{font-size:22px;color:#b2aaa2;cursor:grab;padding:0 3px;touch-action:none}.fw-file-symbol{display:grid;place-items:center;width:34px;height:42px;border-radius:7px;color:var(--fw-accent);background:var(--fw-pale);font-size:10px;font-weight:800;flex-shrink:0}.fw-file-detail{min-width:0;flex:1}.fw-file-name{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:700}.fw-file-meta{display:block;color:#9a9089;font-size:11px}.fw-file-tools{display:flex;align-items:center;gap:3px}.fw-file-tools button,.fw-page-tools button{background:#f7f5f3;border:0;border-radius:7px;color:#695f57;min-width:28px;height:28px}.fw-file-tools button:hover,.fw-page-tools button:hover{background:var(--fw-pale);color:var(--fw-accent)}.fw-hint{color:#999089;font-size:12px;margin:10px 0 0}.fw-preview-badge{color:#968c85;background:#f7f5f3;padding:5px 9px;border-radius:30px;font-size:12px}.fw-preview-area{border-radius:16px;background:#f7f5f3;min-height:510px;max-height:800px;overflow-y:auto;padding:13px;border:1px solid #f0ebe7}.fw-empty{border:0;background:transparent;display:flex;align-items:center;justify-content:center;flex-direction:column;min-height:485px;width:100%;gap:8px;color:#514941}.fw-empty>span{display:grid;place-items:center;width:59px;height:59px;border-radius:16px;background:var(--fw-pale);color:var(--fw-accent);font-size:31px}.fw-page-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.fw-page-item{min-width:0;border:1px solid var(--fw-border);border-radius:13px;background:white;overflow:hidden;box-shadow:0 4px 12px #1c18150c}.fw-page-thumb{display:flex;align-items:center;justify-content:center;width:100%;aspect-ratio:.72;background:#f3f0ed;padding:7px;border:0}.fw-page-thumb canvas{max-width:100%;max-height:100%;width:auto;height:auto;box-shadow:0 2px 8px #0002}.fw-page-thumb .fw-placeholder{font-size:13px;color:#aaa}.fw-page-info{font-size:11px;color:#766d65;padding:7px 9px 1px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.fw-page-tools{padding:4px 8px 8px;display:flex;align-items:center;gap:5px;justify-content:space-between}.fw-page-tools button{font-size:12px;min-width:25px}.fw-page-tools .fw-page-index{font-weight:700;font-size:11px;color:var(--fw-accent);margin-right:auto}.fw-preview-hint{text-align:center;color:var(--fw-muted);font-size:12px;margin:10px 0 0}.fw-status{font-size:12px;color:var(--fw-muted);padding:12px 2px;min-height:41px}.fw-sticky-actions{position:sticky;bottom:0;z-index:25;border-top:1px solid var(--fw-border);background:#ffffffed;backdrop-filter:blur(10px);box-shadow:0 -6px 20px #00000008;margin:7px calc(-1 * clamp(15px,3vw,30px)) 0;padding:12px clamp(15px,3vw,30px)}.fw-actions-inner{display:flex;align-items:center;justify-content:space-between;gap:14px}.fw-actions-inner>span{color:#746b63;font-size:13px}.fw-action-buttons{display:flex;gap:11px;flex-shrink:0}.fw-action-buttons button{padding:11px 21px;min-height:46px;border-radius:11px;border:1px solid var(--fw-border);background:#fff;font-weight:700}.fw-action-buttons .fw-main-action{border-color:var(--fw-accent);background:var(--fw-accent);color:#fff}.fw-action-buttons .fw-main-action:disabled{background:#f2eeeb;color:#9e948e;border-color:#f2eeeb}.fw-related{margin:36px 0 25px;border-top:1px solid var(--fw-border);padding-top:20px}.fw-related h2{font-size:15px}.fw-related a{display:inline-flex;padding:10px 15px;margin-right:8px;background:#fff;border:1px solid var(--fw-border);border-radius:10px}.fw-page-dialog{border:1px solid var(--fw-border);border-radius:16px;max-width:min(92vw,770px);max-height:90vh;width:700px;padding:16px}.fw-page-dialog::backdrop{background:#0009}.fw-dialog-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.fw-dialog-head button{border:0;border-radius:9px;background:#f3f0ed;padding:8px 12px}#fw-dialog-body{display:flex;justify-content:center;overflow:auto;max-height:75vh}#fw-dialog-body canvas{max-width:100%;height:auto;object-fit:contain}.fw-bottom-nav{display:none}
@media(max-width:1050px){.fw-workspace{grid-template-columns:320px minmax(0,1fr)}.fw-page-grid{gap:9px}.fw-preview-area{min-height:400px}}
@media(max-width:760px){.fw-header-links{display:none}.fw-menu-button{display:inline-flex;gap:6px;align-items:center}.fw-mobile-menu:not([hidden]){display:flex;position:sticky;top:65px;z-index:39;background:#fff;border-bottom:1px solid var(--fw-border);padding:12px;gap:10px;flex-direction:column}.fw-mobile-menu a{padding:9px 13px;border-radius:9px}.fw-workspace{display:flex;flex-direction:column;gap:15px}.fw-files,.fw-preview{width:100%;max-height:none;min-height:0}.fw-file-list{max-height:330px}.fw-preview-area{min-height:335px;max-height:560px}.fw-empty{min-height:330px}.fw-page-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.fw-title-icon{width:46px;height:46px;flex-basis:46px}.fw-heading h1{font-size:24px}.fw-private{display:none}.fw-titlebar p{font-size:13px}.fw-sticky-actions{bottom:63px}.fw-actions-inner>span{display:none}.fw-action-buttons{width:100%;justify-content:space-between}.fw-action-buttons .fw-main-action{flex:1}.fw-bottom-nav{display:grid;grid-template-columns:repeat(5,1fr);position:fixed;bottom:0;left:0;right:0;background:#fffc;border-top:1px solid var(--fw-border);height:64px;z-index:45;backdrop-filter:blur(14px)}.fw-bottom-nav a,.fw-bottom-nav button{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:0;border:0;background:none;color:#786e67;font-weight:600;font-size:21px}.fw-bottom-nav small{font-size:10px}.fw-related{padding-bottom:85px}}
@media(min-width:560px) and (max-width:760px){.fw-page-grid{grid-template-columns:repeat(3,1fr)}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important}}
[hidden]{display:none!important}

/* PDF merge page action overlay, crop/colour dialogs, and shared tool navigation. */
.fw-topbar{justify-content:flex-start;gap:12px}
.fw-sidebar-open{width:40px;height:40px;display:inline-grid;place-items:center;background:#fff;border:1px solid var(--fw-border);border-radius:10px;font-size:20px;flex:none}
.fw-header-links{margin-left:auto}
.fw-menu-button{margin-left:auto}
.fw-sidebar-backdrop:not([hidden]){position:fixed;inset:0;z-index:70;background:rgba(20,17,15,.46)}
.fw-tool-sidebar:not([hidden]){position:fixed;z-index:71;top:0;bottom:0;left:0;width:min(335px,88vw);background:#fff;box-shadow:12px 0 38px #0002;padding:23px 19px;display:flex;flex-direction:column;overflow-y:auto}
.fw-sidebar-opened{overflow:hidden}
.fw-sidebar-head{display:flex;align-items:center;justify-content:space-between;font-size:19px}
.fw-sidebar-head button{border:0;background:#f6f2f0;border-radius:8px;width:36px;height:36px}
.fw-sidebar-caption{color:var(--fw-muted);font-size:12px;margin:4px 0 21px}
.fw-sidebar-links{display:flex;flex-direction:column;gap:6px}
.fw-sidebar-links a{display:flex;align-items:center;gap:10px;padding:12px;border-radius:11px;font-weight:600;color:#544b45}
.fw-sidebar-links a>span:first-child{width:27px;font-size:20px;text-align:center;color:var(--fw-accent)}
.fw-sidebar-links a:hover,.fw-sidebar-links a[aria-current=page]{background:var(--fw-pale);color:var(--fw-accent)}
.fw-side-current{margin-left:auto;font-size:10px;border-radius:20px;background:#fff;padding:3px 7px}
.fw-sidebar-note{margin-top:auto;padding:13px;border:1px dashed #e7dcd5;border-radius:11px;color:var(--fw-muted);font-size:12px}
.fw-page-frame{position:relative;isolation:isolate}
.fw-page-thumb{border-radius:0}
.fw-page-overlay{position:absolute;bottom:14px;left:50%;transform:translate(-50%,8px);z-index:3;display:flex;align-items:center;gap:5px;padding:6px;border-radius:11px;background:#2626269c;opacity:0;pointer-events:none;transition:opacity .18s ease,transform .18s ease;box-shadow:0 8px 25px #0003;backdrop-filter:blur(5px);max-width:calc(100% - 10px)}
.fw-page-overlay button{display:grid;place-items:center;border:0;border-radius:8px;background:#fff;color:#38312e;width:34px;height:35px;min-width:34px;padding:0;font-size:21px;box-shadow:0 2px 5px #0001}
.fw-page-overlay button:hover,.fw-page-overlay button:focus-visible{background:var(--fw-pale);color:var(--fw-accent)}
.fw-page-overlay button.fw-danger{color:#d33a2c}
.fw-page-item:hover .fw-page-overlay,.fw-page-item:focus-within .fw-page-overlay,.fw-page-item.show-tools .fw-page-overlay{opacity:1;pointer-events:auto;transform:translate(-50%,0)}
.fw-page-eye{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:51px;height:51px;z-index:2;border:0;border-radius:50%;background:#fffc;color:#3d3833;font-size:26px;opacity:0;pointer-events:none;box-shadow:0 4px 12px #0003;transition:opacity .18s}
.fw-page-item:hover .fw-page-eye,.fw-page-item:focus-within .fw-page-eye,.fw-page-item.show-tools .fw-page-eye{opacity:1;pointer-events:auto}
.fw-page-more{position:absolute;right:9px;top:9px;z-index:5;width:33px;height:33px;font-size:22px;border:0;border-radius:9px;background:#fff;color:#514941;box-shadow:0 3px 11px #0002;opacity:.8}
.fw-page-more:hover,.fw-page-item.show-tools .fw-page-more{opacity:1;color:var(--fw-accent)}
.fw-edited-tag{font-size:10px;background:#fcebe0;color:var(--fw-accent);padding:2px 5px;border-radius:5px;margin-right:auto}
.fw-page-index{white-space:nowrap}
.fw-edit-dialog{width:min(94vw,760px);max-width:760px}
.fw-edit-dialog .fw-dialog-head{border-bottom:1px solid var(--fw-border);padding-bottom:11px}
.fw-dialog-help{color:var(--fw-muted);font-size:12px;margin:6px 0 12px}
.fw-dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:16px;flex-wrap:wrap}
.fw-dialog-actions button{padding:9px 14px;border-radius:9px;border:1px solid var(--fw-border);background:#fff;font-weight:600}
.fw-dialog-actions .fw-dialog-primary{background:var(--fw-accent);color:#fff;border-color:var(--fw-accent)}
.fw-crop-stage{position:relative;display:block;width:fit-content;max-width:100%;margin:0 auto;line-height:0;user-select:none;touch-action:none;background:#eee;border:1px solid #ddd}
.fw-crop-stage>canvas{display:block;max-width:100%;max-height:min(58vh,730px);width:auto;height:auto}
.fw-crop-selection{position:absolute;outline:2px solid #f26522;outline-offset:-1px;box-shadow:0 0 0 999px #0006;cursor:move;pointer-events:auto;touch-action:none}
.fw-crop-selection::before,.fw-crop-selection::after{content:'';position:absolute;top:0;bottom:0;left:33.333%;border-left:1px dashed #fff9}
.fw-crop-selection::after{left:66.666%}
.fw-crop-handle{position:absolute;right:-7px;bottom:-7px;width:18px;height:18px;border:3px solid white;background:#ef6427;border-radius:4px;cursor:nwse-resize}
.fw-color-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(220px,.9fr);gap:21px;align-items:start}
.fw-color-preview{display:flex;align-items:center;justify-content:center;background:#f5f1ef;border:1px solid var(--fw-border);border-radius:12px;min-height:250px;overflow:hidden;padding:14px}
.fw-color-preview canvas{max-width:100%;max-height:440px;width:auto;height:auto;box-shadow:0 3px 10px #0002}
.fw-color-controls{display:flex;flex-direction:column;gap:14px}
.fw-color-controls label:not(.fw-check-label){display:flex;flex-direction:column;gap:7px;color:#554d47;font-weight:600;font-size:12px}
.fw-color-controls label output{float:right;font-weight:400;color:#786f69}
.fw-color-controls input[type=range]{width:100%;accent-color:var(--fw-accent);cursor:pointer}
.fw-check-label{display:flex;align-items:center;gap:8px;font-weight:600}
.fw-presets{display:flex;flex-wrap:wrap;gap:6px}
.fw-presets button{padding:6px 9px;border:1px solid var(--fw-border);border-radius:9px;background:#faf8f6;font-size:11px;font-weight:600}
.fw-presets button:hover{background:var(--fw-pale);color:var(--fw-accent)}
@media(max-width:1050px){.fw-page-overlay{gap:3px;padding:4px}.fw-page-overlay button{width:30px;min-width:30px;height:31px;font-size:18px}}
@media(max-width:760px){.fw-sidebar-open{display:none}.fw-menu-button{display:inline-flex}.fw-page-overlay{opacity:0;pointer-events:none}.fw-page-item.show-tools .fw-page-overlay,.fw-page-item:focus-within .fw-page-overlay{opacity:1;pointer-events:auto}.fw-page-eye{width:44px;height:44px;font-size:23px}.fw-page-more{opacity:1}.fw-color-layout{grid-template-columns:1fr}.fw-color-preview{min-height:100px}.fw-color-preview canvas{max-height:30vh}.fw-color-controls{gap:10px}.fw-edit-dialog{max-height:90vh;overflow:auto}.fw-crop-stage>canvas{max-height:49vh}}
@media(max-width:360px){.fw-page-overlay button{min-width:26px;width:26px;height:30px}.fw-page-overlay{gap:2px}}
