.photo495-button{white-space:nowrap}.photo495-folder-tools{display:flex;align-items:center;flex-wrap:wrap;gap:9px;margin:12px 0}.photo495-modal{position:fixed;inset:0;z-index:2147482000;background:rgba(5,20,31,.72);display:flex;align-items:center;justify-content:center;padding:20px;color:#173b51;font:15px/1.45 Arial,sans-serif}.photo495-modal[hidden]{display:none}.photo495-dialog{width:min(1450px,100%);height:min(940px,94dvh);background:#f5f9fc;border:1px solid #c9dce7;border-radius:20px;display:flex;flex-direction:column;overflow:hidden;box-shadow:0 20px 70px #0005}.photo495-modal.photo495-fullscreen{padding:0;background:#061522}.photo495-fullscreen .photo495-dialog{width:100%;height:100dvh;max-height:none;border:0;border-radius:0}.photo495-top{display:flex;justify-content:space-between;gap:15px;padding:16px 22px;background:white;border-bottom:1px solid #d6e5ed;align-items:center}.photo495-top h2{font-size:21px;line-height:1.25;margin:0}.photo495-top small{display:block;color:#527084;margin-top:3px}.photo495-top button{flex-shrink:0}.photo495-toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:12px 22px}.photo495-toolbar label{display:flex;align-items:center;gap:7px;font-size:13px;color:#3f5d70}.photo495-toolbar select{min-height:38px;max-width:300px}.photo495-toolbar input[type=range]{width:125px}.photo495-modal button,.photo495-modal .photo495-link{border:1px solid #bdd5e4;border-radius:10px;background:#fff;color:#154765;padding:9px 13px;cursor:pointer;font:600 14px/1.2 Arial,sans-serif;text-decoration:none}.photo495-modal button:hover,.photo495-modal .photo495-link:hover{background:#e5f5fb}.photo495-modal button:disabled{opacity:.5;cursor:default}.photo495-modal .photo495-primary{color:white;background:#087dab;border-color:#087dab}.photo495-modal select,.photo495-modal input{font:14px Arial,sans-serif;color:#173b51;border:1px solid #bbd1df;background:#fff;border-radius:8px;padding:7px}.photo495-modal input[type=range]{padding:0}.photo495-toolbar .photo495-upload{margin-left:auto}.photo495-main{display:flex;flex:1;min-height:0;border-top:1px solid #d7e5ec}.photo495-work{display:flex;flex-direction:column;flex:1;min-width:0;min-height:0}.photo495-view{position:relative;flex:1;min-height:200px;background:#081b29;display:flex;gap:2px;overflow:hidden}.photo495-pane{position:relative;flex:1;min-width:0;overflow:hidden;touch-action:none;cursor:grab;user-select:none;background:#081b29}.photo495-pane:active{cursor:grabbing}.photo495-layer{position:absolute;inset:0;overflow:hidden}.photo495-layer img{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;object-fit:contain!important;transform-origin:50% 50%;pointer-events:none;user-select:none;box-shadow:none!important}.photo495-pane-label{position:absolute;top:12px;left:12px;padding:6px 10px;background:#052034e8;color:#fff;border:1px solid #8eb3c05c;border-radius:8px;z-index:3;font-size:13px;pointer-events:none}.photo495-divider{position:absolute;top:0;bottom:0;width:3px;background:#fff;z-index:4;left:50%;cursor:ew-resize;touch-action:none;box-shadow:0 0 0 1px #173b5170}.photo495-divider::after{content:'↔';position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);border-radius:50%;width:36px;height:36px;background:#fff;color:#154765;display:grid;place-items:center;box-shadow:0 3px 15px #0005;font-size:18px}.photo495-loading{position:absolute;inset:0;background:#102d40;z-index:8;color:#fff;display:grid;place-items:center;font-size:16px}.photo495-loading[hidden]{display:none}.photo495-bottom{padding:12px 18px;background:#eaf3f8;display:flex;justify-content:center;align-items:center;gap:10px;flex-wrap:wrap}.photo495-bottom [data-cut]{width:180px}.photo495-status{margin:0;padding:8px 22px 12px;min-height:36px;color:#376078;flex-shrink:0}.photo495-status.is-error{color:#a32d24}.photo495-note{font-size:12px;color:#587184;margin:0;padding:4px 22px 10px}.photo495-versions{width:270px;overflow:auto;padding:14px;background:white;border-left:1px solid #d7e5ec;flex-shrink:0}.photo495-versions h3{margin:0 0 12px;font-size:16px}.photo495-version{padding:12px;margin-bottom:10px;border:1px solid #d5e4ec;border-radius:12px;background:#f9fcfe;display:grid;grid-template-columns:62px minmax(0,1fr);gap:10px;align-items:start}.photo495-version.is-active{border:2px solid #00896c;background:#f0fbf8;padding:11px}.photo495-version img{width:62px;height:62px;object-fit:cover;border-radius:8px;grid-row:1/3}.photo495-version strong{font-size:14px;display:block;overflow-wrap:anywhere}.photo495-version small{color:#587184;display:block;font-size:12px}.photo495-version .photo495-version-actions{grid-column:1/-1;display:flex;gap:6px;flex-wrap:wrap}.photo495-version button,.photo495-version .photo495-link{font-size:12px;padding:7px 8px}.photo495-badge{display:inline-block;border-radius:20px;background:#087c63;color:white;padding:2px 7px;font-size:11px;margin-bottom:4px}.photo495-sidebar-toggle{display:none}.photo495-modal :focus-visible{outline:3px solid #17a4d1;outline-offset:2px}.photo495-export .photo495-dialog{width:630px;height:auto;max-height:94dvh}.photo495-export-body{padding:22px;overflow:auto}.photo495-export-body p{margin:8px 0 14px}.photo495-export-body label{display:block;font-weight:600;margin-bottom:9px}.photo495-export-body select{display:block;width:100%;margin:8px 0 18px}.photo495-export-summary{border-radius:12px;padding:16px;background:#e8f4fa;margin:14px 0;color:#173b51}.photo495-export-summary strong{display:block;font-size:19px;margin-bottom:5px}.photo495-progress{width:100%;height:14px;margin:12px 0;accent-color:#087dab}.photo495-export-foot{display:flex;gap:9px;align-items:center;margin-top:20px;flex-wrap:wrap}.photo495-help{font-size:13px;color:#527084}.photo495-job-badge{background:#e4f6ff!important;border-color:#128abb!important}.photo495-fullscreen .photo495-note{display:none}
@media(max-width:900px){.photo495-modal{padding:7px}.photo495-dialog{height:96dvh;border-radius:12px}.photo495-versions{width:210px}.photo495-toolbar{padding:9px}.photo495-top{padding:12px}.photo495-toolbar label{flex-wrap:wrap}.photo495-toolbar select{max-width:200px}.photo495-toolbar .photo495-upload{margin-left:0}.photo495-main{flex-direction:column}.photo495-versions{width:auto;max-height:185px;border-left:0;border-top:1px solid #cbdde8;display:flex;gap:8px}.photo495-versions h3{display:none}.photo495-version{min-width:220px;margin:0}.photo495-view{min-height:210px}.photo495-top h2{font-size:17px}.photo495-toolbar input[type=range]{width:80px}.photo495-note{display:none}}
@media(prefers-reduced-motion:reduce){.photo495-modal *{scroll-behavior:auto!important;transition:none!important}}
@media(max-width:600px){.photo495-toolbar{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:7px;padding:8px 10px}.photo495-toolbar>label{flex-direction:column;align-items:stretch;gap:3px;min-width:0}.photo495-toolbar>label:first-child{grid-column:1/-1;flex-direction:row;align-items:center}.photo495-toolbar select{width:100%;max-width:none;min-width:0}.photo495-toolbar>label:first-child select{width:auto;flex:1}.photo495-toolbar button{width:100%;height:100%;font-size:12px;padding:8px}.photo495-versions{max-height:145px}.photo495-view{min-height:180px}.photo495-bottom{flex-shrink:0;gap:5px;padding:7px}.photo495-bottom button{padding:8px 10px;font-size:12px}.photo495-bottom label{font-size:12px}.photo495-bottom input[type=range]{width:80px}.photo495-status{padding:6px 12px;font-size:12px;min-height:32px}}

/* Long upload names and saved state must never expand the sidebar. */
.photo495-modal,.photo495-modal *{box-sizing:border-box}
.photo495-top>div,.photo495-version>div{min-width:0}
.photo495-top small,.photo495-version small,.photo495-version strong,.photo495-version-actions>*{overflow-wrap:anywhere;max-width:100%;white-space:normal}
.photo495-versions{min-width:0;overflow-x:hidden}
.photo495-version{width:100%;max-width:100%;min-width:0}
.photo495-version-actions>*{flex:0 1 auto}
.photo496-used{font-size:12px;font-weight:600;line-height:1.2;padding:7px 8px;color:#126c56;cursor:default;display:inline-block}
.photo495-modal .photo496-danger{color:#a82d33;border-color:#ebc5c8;background:#fff7f7}
.photo495-modal.photo496-busy button:disabled{cursor:wait}
.photo495-modal:fullscreen,.photo495-modal:-webkit-full-screen{width:100%;height:100%;margin:0;padding:0;background:#061522}
.photo495-modal::backdrop{background:#061522}
.photo496-confirm{position:absolute;inset:0;z-index:50;display:grid;place-items:center;padding:20px;background:#061522b8}
.photo496-confirm[hidden]{display:none}
.photo496-confirm section{width:min(490px,100%);max-height:90dvh;overflow:auto;border-radius:16px;background:white;padding:24px;box-shadow:0 15px 60px #0008}
.photo496-confirm h3{margin:0 0 12px;font-size:20px}
.photo496-confirm p{overflow-wrap:anywhere}
.photo496-confirm label{display:block;font-weight:600}
.photo496-confirm label[hidden]{display:none}
.photo496-confirm select{display:block;width:100%;margin-top:8px}
.photo496-confirm section>div{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap}
@media(max-width:900px){.photo495-versions{display:block}.photo495-versions [data-versions]{display:flex;gap:8px;align-items:flex-start}.photo495-version{width:230px;flex:0 0 230px}.photo495-versions{overflow-x:auto}.photo495-versions [data-all-zip]{flex:0 0 150px}}
