/* Shiguang 1.2: photo-first, Apple-inspired layout. No remote fonts or UI runtime. */
:root{--blue:#006bd6;--blue-hover:#005bb8;--blue-soft:#eaf3ff;--ink:#1d1d1f;--muted:#6e737c;--canvas:#f5f7fb;--white:#fff;--line:#e8ebf1;--danger:#b33e45;--card-shadow:0 4px 24px rgba(31,48,78,.045);font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","Helvetica Neue","PingFang SC","Microsoft YaHei",sans-serif;color-scheme:light;font-synthesis:none;color:var(--ink);background:var(--canvas)}
*{box-sizing:border-box}body{margin:0;font-size:14px;line-height:1.5;-webkit-font-smoothing:antialiased}h1,h2,h3,p{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button,a,input,select,textarea{touch-action:manipulation}button:disabled{cursor:default}a{color:var(--blue);text-decoration:none}a:hover{text-decoration:underline}[hidden]{display:none!important}:focus-visible{outline:3px solid #438fec;outline-offset:4px}.muted{color:var(--muted)}.skip-link{position:fixed;top:-100px;left:20px;background:var(--white);padding:14px 20px;z-index:99;border-radius:14px}.skip-link:focus{top:12px}.slds-button__icon{width:16px;height:16px;fill:currentColor;flex-shrink:0}.slds-icon{width:22px;height:22px;fill:currentColor}
button{appearance:none;display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:38px;padding:8px 17px;border:1px solid transparent;border-radius:999px;background:#edf0f5;color:#343b46;font-size:13px;font-weight:500;line-height:1.5;white-space:nowrap;transition:background .18s,color .18s,box-shadow .18s,transform .18s}button:hover:not(:disabled){background:#e3e9f2}button:active:not(:disabled){transform:scale(.98)}button:disabled{background:#f1f3f6;color:#a0a6af}.primary,.slds-button_brand{background:var(--blue);color:#fff;font-weight:500}.primary:hover:not(:disabled),.slds-button_brand:hover:not(:disabled){background:var(--blue-hover)}.primary:disabled,.slds-button_brand:disabled{background:#edf0f5;color:#a0a6af}.text-btn{background:transparent;color:var(--blue);padding-inline:5px}.text-btn:hover:not(:disabled){background:var(--blue-soft)}.icon-btn,.arrow{width:38px;min-height:38px;padding:0;flex-shrink:0}.icon-btn{background:transparent;color:var(--muted)}
input,select,textarea{color:var(--ink);background:#f5f6f9;border:1px solid transparent;border-radius:12px;padding:10px 13px;line-height:1.5;min-height:42px;min-width:0;transition:border-color .15s,box-shadow .15s}input:focus,select:focus,textarea:focus{outline:0;border-color:#8cb9ee;box-shadow:0 0 0 3px rgba(0,107,214,.10)}input::placeholder,textarea::placeholder{color:#858c97}select{padding-right:34px;text-overflow:ellipsis}select:disabled{color:#8a919a}label{font-size:12px;color:var(--muted);font-weight:500}
.topbar{position:sticky;top:0;z-index:10;min-height:72px;background:rgba(255,255,255,.94);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);border-bottom:1px solid rgba(48,70,110,.06);display:flex;justify-content:space-between;align-items:center;gap:24px;padding:14px max(32px,calc((100vw - 1320px)/2))}.brand{display:flex;align-items:center;gap:11px;color:var(--ink);font-size:21px;font-weight:650;letter-spacing:-.5px}.brand:hover{text-decoration:none}.brand-mark{width:38px;height:38px;border-radius:12px;display:grid;place-items:center;color:var(--blue);background:#edf5ff}.brand-mark svg{width:22px;height:22px}.brand-en{display:block;font-size:10px;font-weight:500;color:var(--muted);letter-spacing:.04em;margin-top:1px}.top-actions{display:flex;align-items:center;gap:12px}.top-actions button{font-size:12px;min-height:34px;padding:7px 15px}.top-actions button:not(.slds-button_brand){background:transparent;color:#525b69}.top-actions button:not(.slds-button_brand):hover{background:#f0f4f9}.top-actions .icon-btn{width:32px;padding:0;color:var(--blue)}main{max-width:1440px;margin:auto;padding:32px 60px 24px}h1{font-size:48px;line-height:1.16;font-weight:650;letter-spacing:-1.9px}h2{font-size:25px;line-height:1.3;font-weight:600;letter-spacing:-.7px}.eyebrow{font-size:12px;color:var(--muted);font-weight:500;letter-spacing:.04em}
.album-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:18px 0 28px;margin:0 0 14px;background:transparent;border:0;box-shadow:none}.album-heading h1{margin:12px 0 17px;overflow-wrap:anywhere}.album-heading .eyebrow{color:var(--blue);font-size:11px}.album-meta{display:flex;align-items:center;flex-wrap:wrap;gap:14px;font-size:12px;color:var(--muted);line-height:1.7}.album-meta>span+span{position:relative;padding-left:13px}.album-meta>span+span:before{content:"";position:absolute;left:0;top:calc(50% - 1.5px);width:3px;height:3px;border-radius:50%;background:#bbc2cd}.album-meta .text-btn{min-height:24px;padding-block:0;font-size:12px}.selected-total{display:flex;flex-direction:column;text-align:right;align-items:flex-end;gap:4px;padding:15px 22px;min-width:136px;background:var(--blue-soft);border-radius:22px}.selected-total strong{font-size:44px;font-weight:600;letter-spacing:-1.8px;line-height:1.1;color:var(--blue);font-variant-numeric:tabular-nums}.selected-total>span{color:#4e6e93;font-size:11px}.version-panel{padding:23px 24px;background:var(--white);border-radius:24px;box-shadow:var(--card-shadow);border:0}.version-line{display:flex;gap:24px;align-items:flex-end;flex-wrap:wrap}.version-picker{width:310px;max-width:100%;min-width:0}.version-picker label{display:block;margin-bottom:8px;padding-left:2px}.version-picker select{width:100%;background:#f5f6f9;font-size:13px;border-radius:12px}.scopes{display:flex;flex-wrap:wrap;align-items:center;gap:4px;flex:1;min-width:0;padding-bottom:2px}.scopes button{padding:8px 11px;background:transparent;color:#6a7280;min-height:36px;font-size:12px;gap:6px}.scopes button span{font-size:11px;color:#8c95a3;font-variant-numeric:tabular-nums}.scopes button:hover:not(:disabled){background:#f6f8fb}.scopes button[aria-pressed=true]{background:var(--blue-soft);color:var(--blue)}.scopes button[aria-pressed=true] span{color:var(--blue)}.scopes button:disabled{color:#b1b7c0;background:transparent}.compare-line{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-top:20px;padding-top:18px;border-top:1px solid #f0f2f6}.compare-line label{flex-shrink:0}.compare-line select{width:270px;min-height:34px;padding-block:6px;font-size:12px;background:#f7f8fa;border-radius:10px}.compare-line>span{flex:1;font-size:11px;line-height:1.7;color:#89909b;min-width:160px;overflow-wrap:anywhere}.review-bar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:12px;background:transparent;border:0;padding:10px 8px;border-radius:16px;text-align:left;box-shadow:none}.review-bar>div:first-child{font-size:12px;color:#818b99;line-height:1.7;display:flex;align-items:center;gap:8px}.review-bar>div:first-child:before{content:"";width:5px;height:5px;border-radius:50%;background:#86a1be;flex-shrink:0}.review-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.review-actions input{width:200px;min-height:36px;font-size:12px;background:white}.review-actions button{font-size:12px;min-height:34px}.review-actions .text-btn{color:var(--muted)}
.collection-toolbar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:18px;margin:22px 0 17px}.folders{display:flex;gap:7px;align-items:center;flex-wrap:wrap}.folders button{background:transparent;color:#6d7582;min-height:38px;padding:8px 15px;gap:9px;font-size:13px}.folders button span{font-size:11px;color:#919aaa;font-variant-numeric:tabular-nums}.folders button:hover:not(:disabled){background:#eaf0f8}.folders button[aria-pressed=true]{background:var(--blue);color:white;box-shadow:0 3px 10px rgba(0,107,214,.12)}.folders button[aria-pressed=true] span{color:#e4efff}.view-controls{display:flex;align-items:center;gap:10px}.search{position:relative;display:block;margin:0}.search>svg{position:absolute;left:13px;top:50%;transform:translateY(-50%);width:15px;height:15px;color:#8b94a1;pointer-events:none}.search input{width:220px;min-height:38px;border:0;background:#eceedf00;background:#eaeef5;border-radius:999px;padding:9px 15px 9px 36px;font-size:12px}.view-controls .icon-btn{background:transparent;color:#8490a2}.view-controls .icon-btn[aria-pressed=true]{background:var(--blue-soft);color:var(--blue)}.list-summary{display:flex;justify-content:space-between;gap:16px;font-size:11px;color:#929ba9;margin:0 4px 14px;line-height:1.7}.grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:22px}.grid.dense{grid-template-columns:repeat(6,minmax(0,1fr));gap:15px}.photo{background:var(--white);border-radius:24px;overflow:hidden;border:0;margin:0;min-width:0;box-shadow:var(--card-shadow);transition:transform .25s,box-shadow .25s}.photo:hover{transform:translateY(-3px);box-shadow:0 10px 32px rgba(31,48,78,.09)}.image-button{display:block;position:relative;width:100%;height:300px;min-height:0;padding:0;border:0;border-radius:0;background:#edf1f6;overflow:hidden;cursor:zoom-in}.image-button:hover:not(:disabled){background:#edf1f6}.image-button:active:not(:disabled){transform:none}.image-button:focus-visible{outline-offset:-5px;z-index:1}.image-button img{display:block;width:100%;height:100%;object-fit:contain}.image-failure{display:none;font-size:12px;padding:30px;color:var(--muted);line-height:1.8;white-space:pre-line}.image-button.unavailable img{display:none}.image-button.unavailable .image-failure{display:block}.badge{position:absolute;left:14px;top:14px;background:rgba(255,255,255,.94);color:#38699e;border:0;padding:5px 10px;font-size:10px;font-weight:500;line-height:1.5;max-width:calc(100% - 28px);border-radius:999px;white-space:normal;box-shadow:0 2px 8px rgba(0,0,0,.035)}.photo-number{position:absolute;left:14px;bottom:14px;font-size:10px;font-variant-numeric:tabular-nums;color:#53647b;background:rgba(255,255,255,.92);padding:3px 7px;border-radius:7px}.caption{padding:18px 18px 20px}.filename{font-size:15px;font-weight:600;letter-spacing:-.2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.photo-meta{font-size:11px;color:#8a93a0;margin:5px 0 16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.photo-buttons{display:flex;gap:7px;align-items:center}.photo-buttons button{min-height:32px;font-size:11px;padding:6px 10px;flex:1;white-space:nowrap;font-weight:500}.photo-buttons .include{background:var(--blue-soft);color:var(--blue)}.photo-buttons .include:hover:not(:disabled){background:#dcecff}.photo-buttons .include:disabled{background:#eef5ff;color:#7199c5}.photo-buttons .exclude{background:#f2f4f7;color:#687180}.photo-buttons .exclude:hover:not(:disabled){background:#fcecef;color:var(--danger)}.photo-buttons .exclude:disabled{color:#a5aab2}.photo-buttons .undo{flex:0 0 28px;width:28px;padding:0;background:transparent;color:var(--blue)}.photo-buttons .undo svg{width:14px;height:14px}.grid.dense .image-button{height:205px}.grid.dense .caption{padding:14px}.grid.dense .filename{font-size:13px}.grid.dense .photo-buttons{flex-wrap:wrap}.grid.dense .photo-buttons button:not(.undo){flex-basis:100%}.empty{grid-column:1/-1;text-align:center;line-height:1.9;padding:90px 24px;background:white;border-radius:24px;color:var(--muted);box-shadow:var(--card-shadow)}.empty h2{font-size:23px;color:#404b5c;margin-bottom:8px}.empty button{margin-top:24px}.pagination{display:flex;gap:22px;align-items:center;justify-content:center;margin-top:28px;font-size:12px;color:var(--muted)}.pagination button{background:white}.finish{margin:40px 0 16px;display:flex;align-items:center;justify-content:space-between;gap:24px;padding:30px 32px;background:#eaf2ff;border-radius:24px;border:0}.finish .eyebrow{color:#6e91bc;font-size:10px}.finish h2{margin:7px 0 9px;color:#204b7f;font-size:24px}.finish p{font-size:12px;color:#7085a1;line-height:1.8}.finish-actions{display:flex;align-items:center;gap:10px;flex-shrink:0}.finish-actions button:not(.primary){background:rgba(255,255,255,.7);color:#5d789b}.finish-actions button:disabled{background:rgba(255,255,255,.4);color:#9caec4}.global-status{margin:12px 0 8px;font-size:12px;line-height:1.8;color:var(--muted);overflow-wrap:anywhere}.error{color:var(--danger)}footer{max-width:1440px;margin:auto;display:flex;justify-content:space-between;flex-wrap:wrap;gap:14px;padding:16px 60px 32px;font-size:11px;color:#9aa2af}
.welcome{position:relative;padding:80px 50px;min-height:620px;border:0;overflow:hidden}.welcome>.eyebrow{color:var(--blue)}.welcome h1{font-size:58px;line-height:1.18;letter-spacing:-2.5px;margin:22px 0}.welcome>p{font-size:16px;color:#828995;line-height:1.9;max-width:48%}.welcome-actions{display:flex;align-items:center;gap:20px;flex-wrap:wrap;margin-top:32px}.welcome-actions button{font-size:14px;padding:11px 22px;min-height:44px}.welcome-note{font-size:11px;line-height:1.8;color:#98a1ad;margin-top:65px;max-width:45%}.welcome-pictures{position:absolute;top:92px;right:0;width:47%;height:400px;display:flex;align-items:center;gap:16px;pointer-events:none}.welcome-pictures img{width:calc((100% - 32px)/3);height:280px;object-fit:cover;border:5px solid white;box-shadow:0 12px 36px rgba(31,48,78,.08);border-radius:22px}.welcome-pictures img:nth-child(1){transform:translateY(25px)}.welcome-pictures img:nth-child(2){transform:translateY(-25px)}.welcome-pictures img:nth-child(3){transform:translateY(10px)}
dialog{border:0;margin:auto;padding:0;border-radius:28px;background:var(--white);color:var(--ink);box-shadow:0 24px 100px rgba(19,36,65,.2)}dialog::backdrop{background:rgba(25,36,53,.45);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}.viewer{width:min(1280px,96vw);height:min(880px,92dvh);max-width:none;max-height:none;overflow:hidden}.viewer-layout{height:100%;display:grid;grid-template-columns:minmax(0,1fr) 320px}.stage{position:relative;display:flex;align-items:center;justify-content:center;background:#f0f3f8;min-width:0;min-height:0;overflow:hidden}.stage>img{width:100%;height:100%;object-fit:contain}.stage>p{font-size:13px;line-height:1.9;text-align:center;color:var(--muted)}.viewer-close{position:absolute;top:16px;right:16px;z-index:2;background:#f2f4f7;color:#748197}.viewer-close:hover:not(:disabled){background:#e7ecf3}.arrow{position:absolute;top:calc(50% - 20px);width:40px;min-height:40px;border:0;background:rgba(255,255,255,.9);color:#52637b;box-shadow:0 3px 12px rgba(0,0,0,.04)}.prev{left:20px}.next{right:20px}.viewer aside{padding:66px 26px 26px;overflow-y:auto}.viewer h2{font-size:19px;margin:10px 0;overflow-wrap:anywhere}.viewer aside>.muted{font-size:11px;line-height:1.8;overflow-wrap:anywhere}.viewer-reason{font-size:12px;line-height:1.9;color:var(--muted);white-space:pre-wrap;margin:20px 0}.editor{padding-top:20px;border-top:1px solid var(--line)}.editor .photo-buttons{margin-bottom:24px}.editor label{display:block;margin-bottom:7px;font-size:12px}.editor select,.editor textarea{width:100%;margin-bottom:20px}.editor textarea{min-height:100px;resize:vertical;font-size:12px;line-height:1.8}.original-link{font-size:12px;display:block;margin-top:16px}.small-dialog{width:min(520px,92vw);padding:36px;max-height:90dvh;overflow:auto}.small-dialog h2{margin:12px 0 20px;font-size:27px}.small-dialog p{font-size:13px;color:var(--muted);line-height:1.9;white-space:pre-line}.dialog-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:28px}.help{width:min(590px,92vw)}.help-close{position:absolute;top:16px;right:16px;background:#f2f4f7}.help ol{margin:28px 0;padding-left:20px}.help li{font-size:13px;padding-left:5px;margin:18px 0}.help li p{font-size:12px;margin-top:7px}.help-note{border-top:1px solid var(--line);padding-top:20px;margin-bottom:20px;font-size:12px!important}.help>a{font-size:12px}.toast{position:fixed;bottom:28px;left:50%;transform:translateX(-50%);z-index:30;max-width:90vw;width:max-content;background:rgba(28,48,76,.95);color:white;backdrop-filter:blur(10px);border-radius:18px;box-shadow:0 8px 32px rgba(16,37,66,.15);padding:14px 24px;font-size:13px;line-height:1.7}.toast.error{background:#9d3f4c}.service-panel{border:0;border-radius:22px;background:#f5f7fb;padding:20px}.service-dialog input,.service-dialog select,#serviceDialog input,#serviceDialog select{width:100%;margin:6px 0 16px}.service-actions{display:flex;flex-wrap:wrap;gap:10px}
@media(min-width:1500px){.image-button{height:340px}}
@media(max-width:1250px){main{padding-inline:36px}.topbar{padding-inline:36px}.version-picker{width:280px}.version-line{gap:16px}.scopes button{padding-inline:9px}.grid{gap:18px}.image-button{height:275px}.caption{padding:16px}.photo-buttons button{padding-inline:7px}.welcome{padding:65px 20px}.welcome h1{font-size:50px}.welcome-pictures{width:45%}.welcome-pictures img{height:250px}footer{padding-inline:36px}}
@media(max-width:1050px){.version-picker{width:100%}.scopes{flex-basis:100%;gap:5px}.scopes button{padding-inline:13px}.version-line{gap:14px}.review-bar{flex-wrap:wrap}.grid{grid-template-columns:repeat(3,minmax(0,1fr))}.grid.dense{grid-template-columns:repeat(4,minmax(0,1fr))}.compare-line>span{flex-basis:100%}.image-button{height:290px}.welcome-pictures{width:43%;gap:10px}.welcome-pictures img{width:calc((100% - 20px)/3);height:220px}.welcome h1{font-size:46px}.finish-actions{flex-shrink:1}.collection-toolbar{gap:14px}.folders{width:100%}.view-controls{margin-left:auto}}
@media(max-width:780px){main{padding:28px 24px 20px}.topbar{padding:12px 24px;min-height:68px;gap:16px}.top-actions{gap:4px}.top-actions button{font-size:11px;padding-inline:11px}.brand{font-size:19px}.brand-en{display:none}.brand-mark{width:34px;height:34px;border-radius:11px}h1{font-size:40px}.album-heading{padding-top:12px}.album-heading h1{margin-top:10px}.selected-total{min-width:108px;padding:14px 18px;border-radius:20px}.selected-total strong{font-size:36px}.version-panel{padding:22px;border-radius:22px}.compare-line{gap:10px}.compare-line select{flex:1;width:auto}.review-actions{width:100%;justify-content:flex-end}.review-actions input{margin-right:auto}.grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.grid.dense{grid-template-columns:repeat(3,minmax(0,1fr))}.image-button{height:310px}.grid.dense .image-button{height:220px}.photo-buttons button{padding-inline:8px}.welcome{padding:35px 10px 20px;min-height:790px}.welcome h1{font-size:48px}.welcome>p{max-width:100%;font-size:15px}.welcome-note{max-width:100%;margin-top:32px}.welcome-pictures{position:static;width:100%;height:300px;gap:16px;margin-top:40px;justify-content:center}.welcome-pictures img{width:29%;height:260px}.welcome-pictures img:nth-child(1){transform:translateY(12px)}.welcome-pictures img:nth-child(2){transform:translateY(-12px)}.welcome-pictures img:nth-child(3){transform:translateY(6px)}.finish{flex-direction:column;align-items:stretch;padding:28px;gap:22px}.finish-actions{justify-content:flex-end}.viewer-layout{grid-template-columns:minmax(0,1fr) 280px}.viewer aside{padding-inline:20px}footer{padding-inline:24px}}
@media(max-width:540px){.topbar{position:static;padding:14px 20px;flex-wrap:wrap;gap:16px}.brand{gap:9px}.brand-en{display:block;font-size:9px}.top-actions{width:100%;gap:5px;justify-content:space-between}.top-actions button{font-size:11px;padding:8px 10px;min-height:36px}.top-actions .icon-btn{width:30px;padding:0;flex-shrink:0}main{padding:22px 18px 14px}h1{font-size:34px;letter-spacing:-1.2px}.album-heading{gap:14px;padding:8px 0 22px;margin-bottom:6px;align-items:flex-start}.album-heading .eyebrow{max-width:210px;line-height:1.8;font-size:10px}.album-heading h1{margin:10px 0 12px}.album-meta{font-size:11px;gap:8px}.album-meta .text-btn{font-size:11px}.album-meta>span+span{padding-left:0}.album-meta>span+span:before{display:none}.selected-total{min-width:80px;padding:14px;border-radius:18px;margin-top:22px;gap:5px}.selected-total strong{font-size:33px;letter-spacing:-1px}.selected-total>span{font-size:9px;line-height:1.6;max-width:65px}.version-panel{padding:20px 17px;border-radius:22px}.scopes{gap:5px}.scopes button{padding:8px 10px;flex:1 1 auto;min-height:38px}.compare-line{margin-top:16px;padding-top:14px;gap:9px}.compare-line select{max-width:calc(100% - 65px);min-width:0}.compare-line>span{font-size:10px;line-height:1.8;min-width:0}.review-bar{padding:10px 4px;margin-top:8px;gap:10px}.review-bar>div:first-child{font-size:10px}.review-actions button{min-height:32px;font-size:11px}.review-actions input{width:100%;flex-basis:100%;min-height:38px}.collection-toolbar{margin-top:20px;gap:18px;margin-bottom:12px}.folders{gap:4px;justify-content:space-between}.folders button{padding:7px 9px;min-height:34px;font-size:11px;gap:5px}.folders button span{font-size:10px}.view-controls{width:100%}.search{flex:1}.search input{width:100%;min-height:38px}.list-summary{font-size:10px;flex-wrap:wrap;gap:4px;margin-bottom:12px;line-height:1.7}.grid,.grid.dense{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.photo{border-radius:19px}.image-button{height:220px}.grid.dense .image-button{height:180px}.badge{left:10px;top:10px;font-size:9px;padding:4px 7px;max-width:calc(100% - 20px)}.photo-number{left:10px;bottom:10px;font-size:9px}.caption,.grid.dense .caption{padding:13px 11px 15px}.filename{font-size:12px;letter-spacing:0}.photo-meta{font-size:10px;margin-bottom:12px}.photo-buttons{flex-direction:column;align-items:stretch;gap:6px}.photo-buttons button{font-size:11px;min-height:32px;padding:6px}.photo-buttons .undo{width:100%;flex-basis:30px}.finish{margin-top:28px;padding:24px 22px;border-radius:22px}.finish h2{font-size:22px}.finish p{font-size:11px}.finish-actions{justify-content:flex-start;gap:8px}.finish-actions button{font-size:12px;padding-inline:14px;flex:1}.viewer{width:96vw;height:94dvh;border-radius:24px}.viewer-layout{display:flex;flex-direction:column}.viewer .stage{height:51%;flex-shrink:0}.viewer aside{flex:1;padding:22px;min-height:0}.viewer h2{font-size:18px}.viewer-close{top:12px;right:12px;background:rgba(255,255,255,.95)}.viewer .editor{display:grid;grid-template-columns:1fr 1fr;gap:0 14px}.viewer .editor .photo-buttons,.viewer .editor .note-label,.viewer .editor textarea{grid-column:1/-1}.viewer .editor .photo-buttons{flex-direction:row}.viewer .editor .undo{flex:0 0 30px}.arrow{width:44px;min-height:44px}.prev{left:12px}.next{right:12px}.small-dialog{padding:30px 24px;border-radius:24px}.small-dialog h2{font-size:25px}.pagination{gap:12px;font-size:11px}.pagination span{max-width:115px;text-align:center}.pagination button{font-size:11px;padding-inline:13px}footer{padding:16px 20px 24px;font-size:10px}.welcome{padding-top:25px;min-height:740px}.welcome h1{font-size:42px;letter-spacing:-1.7px}.welcome>p{font-size:13px}.welcome-actions{gap:10px;margin-top:26px}.welcome-actions button{font-size:12px;min-height:42px;padding:10px 17px}.welcome-pictures{height:230px;gap:10px;margin-top:32px}.welcome-pictures img{height:200px;border-width:4px;border-radius:17px}.welcome-note{font-size:10px;margin-top:26px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}.photo:hover{transform:none}}
/* Keep small text legible and mobile navigation contained. */
.compare-line>span,.list-summary{color:#717d8d}.photo-meta{color:#74808f}.review-bar>div:first-child{color:#717d8d}.folders button span{color:#768396}.finish p{color:#617b9e}footer{color:#7e8897}#serviceDialog{width:min(560px,92vw);padding:32px;max-height:90dvh;overflow:auto}#serviceDialog h2{margin-bottom:16px}#serviceDialog>form>p{font-size:13px;color:var(--muted);line-height:1.8;margin-bottom:18px}#serviceDialog label{display:block;margin-top:16px}#serviceDialog .finish-actions{margin-top:24px;flex-wrap:wrap}
@media(max-width:540px){.topbar{position:relative}.top-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px}.top-actions button{font-size:10px;padding-inline:4px;min-width:0}.top-actions .icon-btn{position:absolute;top:16px;right:20px}.scopes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;gap:5px}.scopes button{width:100%;min-width:0;padding-inline:7px;font-size:11px}.album-heading{padding-bottom:14px}.version-panel{padding:18px 16px}.compare-line{margin-top:12px;padding-top:12px}.review-bar{padding-block:8px}.collection-toolbar{margin-top:12px}.folders{justify-content:flex-start;gap:4px}.folders button{padding:7px 10px}#serviceDialog{padding:28px 22px}}
@media(max-width:540px){.scopes{display:flex;flex-wrap:nowrap;overflow-x:auto;max-width:100%;padding-bottom:4px;scrollbar-width:thin;scrollbar-color:#d9e3f1 transparent}.scopes button{flex:0 0 auto;width:auto;min-height:36px;padding-inline:12px}.folders{flex-wrap:nowrap;overflow-x:auto;max-width:100%;padding-bottom:4px;scrollbar-width:thin;scrollbar-color:#d9e3f1 transparent}.folders button{flex:0 0 auto}}
@media(max-width:540px){.scopes,.folders{scrollbar-width:none}.scopes::-webkit-scrollbar,.folders::-webkit-scrollbar{display:none}}
/* Only surface the adjustment bar when there is a draft to confirm. */
.review-bar:has(#saveVersion:disabled){display:none}
/* 2.1 · Compact, project-based photo workspace */
.sr-only{position:absolute!important;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}.topbar{min-height:60px;padding:10px 24px;gap:16px}.brand-mark{width:32px;height:32px;border-radius:10px}.brand{font-size:19px}.brand-en{font-size:9px}.top-actions{gap:6px}.top-actions button{min-height:34px;font-size:12px;padding:7px 12px}#folderOpen{background:var(--blue-soft);color:var(--blue)}.top-export{display:flex;align-items:center;gap:6px;border-left:1px solid var(--line);padding-left:10px;margin-left:4px}.top-actions #exportResult{color:white;background:var(--blue)}.top-actions #exportResult:disabled{background:#e9edf3;color:#8591a0}.top-actions #finalize{color:var(--blue);background:var(--blue-soft)}
.workspace-shell{display:grid;grid-template-columns:196px minmax(0,1fr);max-width:1920px;margin:auto;min-height:calc(100dvh - 60px)}.project-sidebar{position:sticky;top:60px;align-self:start;height:calc(100dvh - 60px);padding:24px 12px 20px 16px;border-right:1px solid #e5eaf2;background:#f0f4fa;display:flex;flex-direction:column;gap:16px;min-width:0}.sidebar-heading{display:flex;justify-content:space-between;align-items:center;padding:0 8px;font-weight:600;font-size:13px;color:#586679}.sidebar-heading .icon-btn{width:28px;min-height:28px;font-size:20px;color:var(--blue)}#projectList{display:flex;flex-direction:column;gap:5px;overflow-y:auto}.project-item{display:flex;justify-content:flex-start;align-items:center;gap:10px;padding:12px 10px;width:100%;border-radius:14px;background:transparent;text-align:left;white-space:normal;min-height:60px}.project-item[aria-current=true]{background:#e1edff;color:#005fca}.project-item:hover:not(:disabled){background:#e7eef8}.project-icon{width:28px;height:32px;display:grid;place-items:center;flex-shrink:0;color:#73859e}.project-item[aria-current=true] .project-icon{color:var(--blue)}.project-icon svg{width:18px;height:18px}.project-text{min-width:0;display:flex;flex-direction:column;gap:3px}.project-text strong{font-size:13px;font-weight:600;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.project-text small{font-size:11px;color:#718298;font-weight:400}.sidebar-note{margin-top:auto;padding:12px 10px 0;font-size:10px;color:#76859a;line-height:1.9}.project-empty{font-size:12px;color:#75849a;padding:12px;line-height:1.8}main{max-width:none;width:100%;padding:18px 24px 28px;min-width:0}.version-panel{position:relative;padding:14px 18px 12px;border-radius:18px;box-shadow:0 2px 14px rgba(31,48,78,.035)}.version-topline{display:flex;align-items:center;gap:20px;flex-wrap:wrap}.version-picker{position:relative;width:325px;flex-shrink:0;max-width:100%}.version-picker label{margin-bottom:5px;font-size:11px;color:#69788c}.version-trigger{display:flex;justify-content:space-between;gap:12px;width:100%;min-height:40px;padding:9px 12px;background:#f0f5fc;color:#203a5a;border:1px solid #e4ebf5;border-radius:11px;text-align:left;font-size:14px;font-weight:600;letter-spacing:0}.version-trigger>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.version-trigger svg{width:12px;height:12px;color:#6c87a6}.version-trigger[aria-expanded=true]{border-color:#6aa5e8;box-shadow:0 0 0 3px #eaf3ff}.version-trigger:hover:not(:disabled){background:#eaf2fd}.version-menu{position:absolute;top:calc(100% + 8px);left:0;z-index:35;width:max(100%,365px);max-width:min(420px,calc(100vw - 40px));max-height:340px;overflow-y:auto;background:white;border:1px solid #e1e8f2;border-radius:16px;box-shadow:0 12px 40px rgba(21,48,83,.16);padding:6px}.version-option{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:4px;width:100%;border-radius:10px;background:transparent;color:#2c3d54;white-space:normal;text-align:left;padding:11px 13px}.version-option strong{font-size:13px;font-weight:600}.version-option small{font-size:11px;color:#6a7b91;overflow-wrap:anywhere}.version-option[aria-selected=true]{background:#edf5ff;color:#005fca}.version-option:focus-visible{outline-offset:-2px}.compact-meta{display:flex;align-items:center;gap:10px;flex-wrap:wrap;flex:1;font-size:12px;color:#65758b;min-width:200px}.compact-meta #albumTitle{font-size:14px;font-weight:600;color:#243b56;max-width:240px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.compact-meta #albumMeta{font-size:11px}.compact-meta #saveState{font-size:11px;color:#65758b}.compact-meta .selection-count{color:#557396;font-size:12px;white-space:nowrap}.selection-count strong{font-size:16px;font-weight:650;color:var(--blue);margin-right:2px}#confirmedBadge{font-size:11px;color:#617b9b}.compact-meta #attachFolder{font-size:11px;min-height:24px;padding-block:0}.version-bottomline{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:12px}.scopes{flex:1;padding:0;gap:4px}.scopes button{font-size:12px;min-height:32px;padding:6px 9px;color:#506178}.scopes button span{color:#75869d;font-size:11px}.compare-line{border:0;margin:0;padding:0;gap:7px;flex-wrap:nowrap;flex-shrink:0}.compare-line label{font-size:11px}.compare-line select{width:185px;min-height:32px;max-width:none;font-size:11px;padding:5px 24px 5px 10px;background:#f4f6fa;border-radius:9px}.comparison-summary{font-size:11px;color:#6d7e93;line-height:1.6;margin:8px 0 0;padding-left:2px}.review-bar{margin:7px 0 0;padding:8px 10px;background:#eaf3ff}.review-bar:has(#saveVersion:disabled):has(#serviceSync:not([hidden])){display:flex}.review-bar>div:first-child{font-size:12px;color:#426084}.review-actions{width:auto}.review-actions button{min-height:32px}.collection-toolbar{gap:12px;margin:14px 0 8px}.folders{width:auto;gap:4px;flex:1}.folders button{font-size:13px;padding:6px 11px;min-height:34px;color:#4f6077}.folders button span{font-size:11px;color:#75869d}.view-controls{margin:0}.search input{width:205px;min-height:34px;font-size:12px}.view-controls .icon-btn{width:32px;min-height:32px}.list-summary{margin:0 2px 10px;font-size:11px;color:#64758c}.grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.photo{border-radius:18px}.image-button{height:230px}.caption{padding:12px 13px 14px}.filename{font-size:14px;color:#25354a}.photo-meta{font-size:11px;color:#60728b;margin:4px 0 10px}.photo-buttons button{font-size:11px;min-height:30px;padding:5px 8px}.photo-buttons .exclude{color:#526176}.badge{font-size:10px;left:11px;top:11px}.photo-number{left:11px;bottom:11px}.grid.dense{grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}.grid.dense .image-button{height:180px}.grid.dense .caption{padding:11px}.grid.dense .photo-buttons button:not(.undo){flex-basis:auto}.welcome{padding:50px 28px}.welcome h1{font-size:46px}footer{max-width:none;margin-left:196px;padding:10px 24px 22px;font-size:10px;color:#738299}
@media(min-width:1600px){.grid{grid-template-columns:repeat(5,minmax(0,1fr))}.image-button{height:250px}.grid.dense{grid-template-columns:repeat(6,minmax(0,1fr))}}
@media(max-width:1250px){.workspace-shell{grid-template-columns:180px minmax(0,1fr)}.project-sidebar{padding-inline:10px}.compact-meta{gap:7px;min-width:180px}.version-topline{gap:14px}.version-picker{width:300px}.version-bottomline{gap:8px;flex-wrap:wrap}.compare-line{margin-left:auto}.comparison-summary{font-size:10px}.grid{gap:13px}.image-button{height:215px}.photo-buttons{flex-wrap:wrap}.photo-buttons button{padding-inline:5px}footer{margin-left:180px}.top-actions{gap:3px}.top-actions button{padding-inline:9px}}
@media(max-width:1050px){.version-picker{width:280px}.compact-meta{min-width:150px}.compact-meta #albumMeta{flex-basis:100%}.version-bottomline .scopes{flex-basis:100%;gap:3px}.scopes button{padding-inline:8px;font-size:11px}.compare-line>span{flex-basis:auto}.collection-toolbar{flex-wrap:wrap}.folders{flex-basis:100%;width:100%}.view-controls{margin-left:auto}.grid{grid-template-columns:repeat(3,minmax(0,1fr))}.grid.dense{grid-template-columns:repeat(4,minmax(0,1fr))}.image-button{height:235px}.grid.dense .image-button{height:180px}.grid.dense .photo-buttons button:not(.undo){flex-basis:100%}}
@media(max-width:800px){.topbar{padding:10px 16px;min-height:58px}.top-actions #jsonOpen,.top-actions #backup{display:none}.top-actions{gap:3px}.top-actions button{font-size:11px;padding-inline:9px}.workspace-shell{grid-template-columns:150px minmax(0,1fr)}.project-sidebar{top:58px;height:calc(100dvh - 58px);padding:18px 8px}.project-item{padding:10px 7px;gap:6px}.project-icon{width:22px}.project-text strong{font-size:12px}.project-text small{font-size:10px}main{padding:14px}.version-panel{padding:13px}.version-picker{width:100%}.compact-meta{width:100%;gap:8px;min-width:0}.compact-meta #albumMeta{flex-basis:auto}.compact-meta #saveState{margin-left:auto}.version-topline{gap:10px}.version-bottomline{gap:9px;margin-top:10px}.scopes{flex-basis:100%;display:flex;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}.scopes button{flex:0 0 auto}.compare-line{width:100%;justify-content:flex-start}.compare-line select{flex:1;width:auto;min-width:0;max-width:none}.comparison-summary{font-size:10px}.folders{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}.folders button{flex-shrink:0}.collection-toolbar{margin:12px 0 7px;gap:9px}.view-controls{width:100%;margin:0}.search{flex:1}.search input{width:100%}.grid,.grid.dense{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.image-button{height:225px}.grid.dense .image-button{height:180px}.photo-buttons{flex-direction:column;align-items:stretch}.photo-buttons .undo{width:100%;flex-basis:30px}.filename{font-size:13px}.list-summary>span:first-child{display:none}footer{margin-left:150px;padding-inline:14px}.welcome{padding:30px 10px}.welcome h1{font-size:36px}.welcome-pictures{width:100%;position:static}.welcome>p{max-width:100%}.top-export{padding-left:6px;margin-left:1px;gap:4px}}
@media(max-width:540px){.topbar{position:sticky;top:0;z-index:20;flex-wrap:nowrap;padding:10px 12px;min-height:56px;gap:8px}.brand{font-size:17px;gap:7px}.brand-en{display:none}.brand-mark{width:28px;height:28px;border-radius:9px}.brand-mark svg{width:17px;height:17px}.top-actions{display:flex;flex-wrap:nowrap;width:auto;gap:3px}.top-actions #folderOpen{font-size:0;min-height:32px;width:32px;padding:0}.top-actions #folderOpen:after{content:'+';font-size:21px}.top-actions #serviceOpen{font-size:10px;padding:6px}.top-actions .icon-btn{position:static;min-height:30px;width:26px}.top-export{border:0;padding:0;gap:3px;margin:0}.top-actions #exportResult{font-size:11px;min-height:32px;padding-inline:11px}.top-actions #finalize{font-size:10px;padding:6px;min-height:30px}.top-actions #serviceExport{font-size:10px;padding:6px}.workspace-shell{display:block;min-height:calc(100dvh - 56px)}.project-sidebar{position:static;height:auto;padding:10px 12px 0;border:0;background:transparent;gap:6px}.sidebar-heading{font-size:11px;padding:0 3px}.sidebar-heading .icon-btn{width:24px;min-height:24px;font-size:18px}#projectList{flex-direction:row;overflow-x:auto;gap:7px;scrollbar-width:none;padding-bottom:2px}.project-item{min-height:44px;width:auto;min-width:125px;max-width:210px;padding:8px 11px;border-radius:12px;flex-shrink:0;background:#edf1f7}.project-text{gap:1px}.project-text strong{font-size:12px}.project-text small{font-size:9px}.project-icon{width:20px}.project-icon svg{width:15px}.sidebar-note{display:none}main{padding:10px 12px 20px}.version-panel{border-radius:16px;padding:12px 13px}.version-picker{width:100%}.version-picker label{font-size:10px;margin-bottom:3px}.version-trigger{min-height:38px;font-size:13px;padding:8px 10px}.version-menu{width:100%;max-width:100%;z-index:40}.version-option strong{font-size:12px}.version-option small{font-size:11px}.compact-meta{gap:6px}.compact-meta #albumTitle{font-size:12px;max-width:140px}.compact-meta #albumMeta{font-size:10px}.compact-meta .selection-count{font-size:10px}.selection-count strong{font-size:14px}.compact-meta #saveState{display:none}.compact-meta #attachFolder{font-size:10px;margin-left:auto}.version-topline{gap:8px}.version-bottomline{gap:8px;margin-top:8px}.scopes{padding-bottom:0;gap:3px}.scopes button{min-height:30px;font-size:11px;padding:5px 8px;width:auto}.scopes button span{font-size:10px}.compare-line label{font-size:10px}.compare-line select{min-height:29px;font-size:11px;padding-block:4px}.comparison-summary{font-size:10px;line-height:1.6;margin-top:6px}.collection-toolbar{margin:10px 0 6px;gap:8px}.folders{padding-bottom:0;gap:3px}.folders button{font-size:11px;padding:5px 8px;min-height:30px}.folders button span{font-size:10px}.view-controls{gap:6px}.search input{min-height:32px;font-size:11px}.view-controls .icon-btn{width:30px;min-height:30px}.list-summary{font-size:10px;margin-bottom:8px}.grid,.grid.dense{gap:10px}.photo{border-radius:16px}.image-button{height:190px}.grid.dense .image-button{height:155px}.caption,.grid.dense .caption{padding:10px}.filename{font-size:12px}.photo-meta{font-size:10px;margin-bottom:8px}.photo-buttons{gap:5px}.photo-buttons button{min-height:28px;font-size:11px}.badge{font-size:9px;padding:4px 7px;left:9px;top:9px}.photo-number{left:9px;bottom:9px}.review-bar{padding:9px;gap:9px}.review-actions{width:100%}.review-actions .primary{width:auto;margin-left:auto}.review-actions input{flex-basis:100%}.review-bar>div:first-child{font-size:11px}footer{margin-left:0;padding:12px;font-size:10px}.welcome{padding:25px 10px;min-height:650px}.welcome h1{font-size:36px}}
@media(max-width:540px){.top-actions{min-width:0;max-width:calc(100% - 64px);overflow-x:auto;scrollbar-width:none;justify-content:flex-start}.top-actions::-webkit-scrollbar{display:none}.top-actions button,.top-export{flex-shrink:0}}
/* 2.1.1 · Three deliberate rows: project/actions, current version, comparison. */
.three-row-panel{padding:15px 18px;border-radius:19px;display:flex;flex-direction:column;gap:11px}.workspace-info-row{display:flex;align-items:center;justify-content:space-between;gap:18px;min-height:34px}.workspace-info-row .compact-meta{width:auto;gap:11px;flex:1;min-width:0}.workspace-info-row #albumTitle{font-size:16px;font-weight:650;max-width:260px}.workspace-info-row #albumMeta{font-size:12px;flex-basis:auto}.workspace-info-row #saveState{font-size:11px;margin:0}.workspace-info-row .selection-count{font-size:12px}.workspace-info-row .top-export{border:0;margin:0;padding:0;gap:8px;flex-shrink:0}.workspace-info-row .top-export button{min-height:34px;padding:7px 15px;font-size:12px}.workspace-info-row #exportResult{background:var(--blue);color:white}.workspace-info-row #exportResult:hover:not(:disabled){background:var(--blue-hover)}.workspace-info-row #exportResult:disabled{background:#edf1f7;color:#8c98aa}.workspace-info-row #finalize{background:var(--blue-soft);color:var(--blue)}.current-version-row{display:flex;align-items:center;gap:20px}.current-version-row .version-picker{display:flex;align-items:center;gap:12px;width:365px;max-width:100%;flex-shrink:0}.current-version-row .version-picker>label{font-size:12px;white-space:nowrap;margin:0;flex:0 0 50px;padding:0;color:#67768a}.current-version-row .version-trigger{min-height:36px;font-size:13px;flex:1;width:auto;padding:7px 11px;min-width:0}.current-version-row .version-menu{left:62px;width:calc(100% - 62px);min-width:320px;max-width:calc(100vw - 48px)}.current-version-row .scopes{flex-basis:auto;flex:1;gap:4px}.current-version-row .scopes button{font-size:12px;min-height:32px;padding:6px 10px}.comparison-row{display:flex;align-items:center;gap:20px}.comparison-row .compare-line{margin:0;width:365px;flex:0 0 365px;gap:12px;justify-content:flex-start}.comparison-row .compare-line label{font-size:12px;flex:0 0 50px}.comparison-row .compare-line select{width:auto;flex:1;max-width:none;min-width:0;min-height:32px;font-size:12px;border-radius:10px;padding:5px 26px 5px 11px}.comparison-row .comparison-summary{margin:0;padding:0;flex:1;font-size:11px;line-height:1.6;color:#65758b}.collection-toolbar{margin-top:13px}.folders{gap:5px}.folders button{background:#edf2f9;color:#506178;font-size:12px;min-height:32px;padding:6px 12px;gap:7px;border:1px solid transparent;box-shadow:none;font-weight:500}.folders button span{color:#74869d;font-size:11px}.folders button:hover:not(:disabled){background:#e3edf9;color:#2d609f}.folders button[aria-pressed=true]{background:var(--blue-soft);color:var(--blue);border-color:#d6e7fc;box-shadow:none}.folders button[aria-pressed=true] span{color:var(--blue)}
@media(max-width:1250px){.current-version-row,.comparison-row{gap:14px}.current-version-row .version-picker{width:340px}.comparison-row .compare-line{width:340px;flex-basis:340px}.current-version-row .scopes{gap:2px}.current-version-row .scopes button{font-size:11px;padding-inline:8px}.workspace-info-row .compact-meta{gap:8px}.workspace-info-row #albumMeta{font-size:11px}}
@media(max-width:1050px){.current-version-row{flex-wrap:wrap;gap:9px}.current-version-row .version-picker{width:100%}.current-version-row .version-trigger{max-width:350px}.current-version-row .scopes{flex-basis:100%;margin-left:62px}.comparison-row{align-items:flex-start}.comparison-row .compare-line{width:340px;flex-basis:340px}.workspace-info-row{gap:12px}.workspace-info-row #saveState{display:none}}
@media(max-width:800px){.three-row-panel{padding:13px 14px;gap:11px}.workspace-info-row{align-items:flex-start;gap:10px}.workspace-info-row .compact-meta{width:auto;gap:6px}.workspace-info-row #albumTitle{font-size:14px}.workspace-info-row .top-export{gap:5px;flex-wrap:wrap;justify-content:flex-end;max-width:190px}.workspace-info-row .top-export button{font-size:11px;padding:6px 10px;min-height:32px}.current-version-row .version-trigger{max-width:none}.comparison-row{flex-wrap:wrap;gap:7px}.comparison-row .compare-line{width:100%;flex-basis:100%}.comparison-row .comparison-summary{margin-left:62px;font-size:10px;flex-basis:calc(100% - 62px)}.current-version-row .version-menu{min-width:0;max-width:calc(100% - 62px)}.folders button{font-size:12px;padding:6px 10px}}
@media(max-width:540px){.workspace-info-row .top-export{max-width:150px}.workspace-info-row .top-export button{font-size:11px;padding:6px 10px}.workspace-info-row .compact-meta{gap:5px;min-width:0}.workspace-info-row #albumTitle{font-size:13px;max-width:145px}.workspace-info-row #albumMeta{font-size:10px;flex-basis:100%}.workspace-info-row .selection-count{font-size:11px}.workspace-info-row #attachFolder{font-size:10px;margin-left:0}.three-row-panel{padding:12px;gap:10px}.current-version-row .version-picker{gap:9px}.current-version-row .version-picker>label{font-size:11px;flex-basis:46px}.current-version-row .version-trigger{font-size:12px;min-height:35px;padding-inline:9px}.current-version-row .scopes{margin-left:0;gap:4px}.current-version-row .scopes button{font-size:11px;padding:5px 9px;min-height:30px}.current-version-row .version-menu{left:55px;width:calc(100% - 55px);max-width:calc(100% - 55px)}.comparison-row .compare-line{gap:9px}.comparison-row .compare-line label{font-size:11px;flex-basis:46px}.comparison-row .compare-line select{font-size:11px;min-height:30px}.comparison-row .comparison-summary{margin-left:55px;flex-basis:calc(100% - 55px);font-size:10px}.folders{gap:5px}.folders button{font-size:11px;min-height:30px;padding:5px 10px}.folders button span{font-size:10px}}
/* 2.2 · Stronger text without adding spacing. */
.workspace-info-row #albumTitle{font-size:17px;color:#18324e}.workspace-info-row #albumMeta,.workspace-info-row #saveState{font-size:13px;color:#44566e}.workspace-info-row .selection-count{font-size:13px;color:#405773}.workspace-info-row #attachFolder{font-size:12px}.workspace-info-row .top-export button{font-size:13px;padding-block:5px}.current-version-row .version-picker>label,.comparison-row .compare-line label{font-size:13px;color:#42546c}.current-version-row .version-trigger{font-size:14px;color:#193854}.comparison-row .compare-line select{font-size:13px;color:#293f59}.current-version-row .scopes button{font-size:13px;color:#3d5068;padding-block:4px}.current-version-row .scopes button span,.folders button span{font-size:12px;color:#586e8a}.comparison-row .comparison-summary{font-size:12px;color:#485d77}.folders button{font-size:13px;color:#354b66;padding-block:4px}.filename{font-size:15px;color:#1e3048}.photo-meta{font-size:12px;color:#4c607a}.photo-buttons button{font-size:12px;padding-block:4px}.photo-buttons .exclude{color:#3f526e}.photo-buttons .include:disabled{color:#4275aa}.list-summary{font-size:12px;color:#506680}.version-option strong{font-size:14px;color:#243e5e}.version-option small{font-size:12px;color:#526987}.reselect-button{background:#e9f2ff;color:#0564c4;border:1px solid #d2e5ff}.reselect-button:hover:not(:disabled){background:#dbeaff}.reselect-status{display:flex;align-items:center;gap:10px;padding:9px 12px;margin-top:8px;background:#e9f3ff;border-radius:12px;color:#254c79;font-size:13px}.reselect-status .text-btn{margin-left:auto;font-size:12px;min-height:28px}.loading-ring{display:inline-block;width:17px;height:17px;flex-shrink:0;border:2px solid #b5d0f1;border-top-color:#006bd6;border-radius:50%;animation:reselect-spin .85s linear infinite}@keyframes reselect-spin{to{transform:rotate(360deg)}}#reselect:disabled{color:#456d9b;background:#eaf2fc}.workspace-info-row .top-export{flex-wrap:wrap}#questionText{font-size:14px;color:#354961;line-height:1.8}#questionTitle{font-size:25px}
@media(max-width:1250px){.current-version-row .scopes button{font-size:12px}.workspace-info-row #albumMeta{font-size:12px}}
@media(max-width:540px){.workspace-info-row #albumTitle{font-size:14px}.workspace-info-row #albumMeta,.workspace-info-row .selection-count{font-size:11px}.workspace-info-row .top-export{max-width:170px}.workspace-info-row .top-export button{font-size:12px;padding-inline:10px;min-height:32px}.current-version-row .version-picker>label,.comparison-row .compare-line label{font-size:12px}.current-version-row .version-trigger{font-size:13px}.current-version-row .scopes button,.comparison-row .compare-line select,.folders button{font-size:12px}.current-version-row .scopes button span,.folders button span{font-size:11px}.comparison-row .comparison-summary{font-size:11px}.filename{font-size:14px}.photo-meta,.photo-buttons button,.list-summary{font-size:12px}.reselect-status{font-size:12px;flex-wrap:wrap}.version-option strong{font-size:13px}}
@media(prefers-reduced-motion:reduce){.loading-ring{animation:none;border-top-width:4px}}
.comparison-row .compare-line label{white-space:nowrap}.current-version-row .scopes{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;min-width:0}.current-version-row .scopes button{flex:0 0 auto}.current-version-row .scopes::-webkit-scrollbar{display:none}
.current-version-row .scopes button[aria-pressed=true],.current-version-row .scopes button[aria-pressed=true] span{color:#005cba}

/* Keep the workspace anchored when versions contain fewer photos. */
.workspace-shell > main{margin:0;align-self:start}
.density-toggle{display:inline-flex;align-items:center;justify-content:center;gap:6px;flex-shrink:0;padding:7px 11px;min-height:34px;border-radius:18px;background:#edf2f9;color:#354d6c;font-size:13px;white-space:nowrap}
.density-toggle[aria-pressed=true]{background:#dcecff;color:#005cba;box-shadow:inset 0 0 0 1px #b8d6ff}
.density-toggle .slds-button__icon{width:15px;height:15px}
@media(max-width:540px){.density-toggle{font-size:12px;padding-inline:9px}}

@media(max-width:540px){.top-actions #folderOpen{font-size:12px;width:auto;padding:6px 10px}.top-actions #folderOpen:after{content:none}}
#serviceSettings summary{cursor:pointer;color:#405b7d;font-size:13px;padding:8px 0}

#serviceStatus.is-loading{display:flex;align-items:center;gap:9px}#serviceStatus.is-loading:before{content:'';width:16px;height:16px;flex-shrink:0;border:2px solid #b5d0f1;border-top-color:#006bd6;border-radius:50%;animation:reselect-spin .85s linear infinite}
@media(prefers-reduced-motion:reduce){#serviceStatus.is-loading:before{animation:none}}

.brand-icon{width:38px;height:38px;flex-shrink:0}.brand-title{font-size:20px;font-weight:650;line-height:1.3;letter-spacing:-.4px}.brand{min-width:0}
@media(max-width:800px){.brand-title{font-size:16px}.brand-icon{width:32px;height:32px}}
@media(max-width:540px){.brand-title{font-size:13px;max-width:160px}.brand-icon{width:30px;height:30px}.brand{gap:7px}}

/* A focused progress card; connection details stay internal. */
#serviceDialog{width:min(460px,92vw);padding:30px;border-radius:26px;text-align:center}#serviceDialog .selection-orbit{width:64px;height:64px;margin:0 auto 16px;padding:10px;background:#edf5ff;border-radius:21px}.selection-orbit img{width:100%;height:100%}#serviceDialog h2{font-size:23px;letter-spacing:-.5px;margin-bottom:8px}#serviceDialog #serviceHint{font-size:13px;color:#526783;line-height:1.7;margin-bottom:23px}.selection-steps{display:flex;list-style:none;padding:0;margin:0 0 20px;gap:8px;justify-content:center}.selection-steps li{flex:1;border-top:3px solid #e6edf6;padding-top:9px;color:#6c7c91;font-size:12px}.selection-steps li.active{border-color:#1682ed;color:#0064ce;font-weight:600}.selection-steps li.done{border-color:#99c9fa;color:#43658c}#serviceDialog #serviceStatus{min-height:40px;display:flex;justify-content:center;align-items:center;margin:0;font-size:14px;color:#294565;line-height:1.7}#serviceDialog .progress-actions{justify-content:center;gap:10px;margin-top:22px}#serviceDialog .progress-actions button{padding:9px 18px;border-radius:18px;font-size:13px;min-height:36px}#serviceCancel{background:#f0f3f8;color:#425773}#serviceClose{background:#e7f1ff;color:#0064ce}.progress-reopen{background:#e7f1ff;color:#0064ce}
/* Desktop workspace: full-width navigation/sidebar and readable native-size controls. */
html{font-size:16px;-webkit-text-size-adjust:100%;text-size-adjust:100%}.workspace-shell{max-width:none;margin:0;grid-template-columns:220px minmax(0,1fr)}.topbar{gap:16px}.top-actions{flex-wrap:wrap}.top-actions button{font-size:14px;min-height:38px}.project-text strong{font-size:14px}.project-text small,.sidebar-heading,.sidebar-note{font-size:12px;color:#526681}.sidebar-note{overflow-wrap:anywhere}.welcome{min-height:520px;padding:36px 24px}.welcome>p{font-size:16px;color:#4c607a}.welcome-note{font-size:13px;color:#526681;line-height:1.8}.welcome-pictures{max-width:760px}.workspace-info-row .compact-meta{min-width:0}.current-version-row,.comparison-row{min-width:0}.current-version-row .version-picker{flex:0 1 330px;min-width:230px}.current-version-row .scopes{flex:1;overflow-x:auto}.comparison-row .comparison-summary{min-width:0;overflow-wrap:anywhere}.version-menu{max-width:min(520px,calc(100vw - 290px))}footer{margin-left:220px}.search input{font-size:14px}
.top-actions #selectionProgress{background:#006bd6;color:white;font-weight:600;border:1px solid #0061c6;box-shadow:0 3px 9px #006bd624;padding:8px 16px;border-radius:20px}.top-actions #selectionProgress:hover{background:#005bb8;color:white}.top-actions #selectionProgress.has-active:before{content:'';display:inline-block;width:7px;height:7px;border-radius:50%;background:white;margin-right:7px}
.task-center{width:min(620px,calc(100vw - 40px));max-height:calc(100vh - 60px);max-height:calc(100dvh - 60px);padding:24px;border-radius:24px;overflow-y:auto}.task-center>header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:18px}.task-center h2{font-size:24px}.task-center #taskSummary{font-size:14px;color:#526681;margin-top:5px}#taskList{display:grid;gap:12px}.task-card{padding:18px;border:1px solid #e1eaf6;border-radius:17px;background:#f8fbff}.task-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.task-heading strong{font-size:16px;overflow-wrap:anywhere;min-width:0}.task-status{font-size:12px;white-space:nowrap;color:#526681;background:#eaf0f7;padding:4px 9px;border-radius:10px}.task-status.active{background:#dcecff;color:#0059b5}.task-time,.task-note{font-size:12px;color:#526681;line-height:1.7}.task-time{margin-top:5px}.task-card .selection-steps{margin:16px 0 0}.task-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:12px}.task-actions:empty{display:none}.task-actions button{font-size:13px;min-height:34px;padding:7px 14px}.task-center>.task-note{margin-top:16px}.task-empty{padding:36px 12px;text-align:center;color:#526681}
@media(min-width:1920px){.welcome{padding:44px 40px}.welcome h1{font-size:52px}.grid{grid-template-columns:repeat(6,minmax(0,1fr))}.grid.dense{grid-template-columns:repeat(7,minmax(0,1fr))}}
@media(max-width:1100px){.workspace-shell{grid-template-columns:180px minmax(0,1fr)}footer{margin-left:180px}.topbar{flex-wrap:wrap}.top-actions{margin-left:auto}.version-menu{max-width:calc(100vw - 230px)}.current-version-row{flex-wrap:wrap}.current-version-row .scopes{flex-basis:100%}.welcome-pictures{opacity:.8}}
@media(max-width:700px){.workspace-shell{display:block}.project-sidebar{position:static;height:auto;padding:12px;background:transparent}.sidebar-note{display:none}#projectList{flex-direction:row;overflow:auto}.project-item{min-width:150px;width:auto}.version-menu{max-width:100%}footer{margin-left:0}.topbar{padding:10px 12px}.top-actions{width:100%;justify-content:flex-end}.welcome{min-height:480px;padding:24px 12px}.task-center{padding:20px}.task-heading{align-items:flex-start}.brand-title{font-size:16px;max-width:none}.top-actions button{font-size:13px}.current-version-row .version-picker{flex-basis:100%;min-width:0}}
@supports not (backdrop-filter:blur(1px)){.topbar{background:#fff}dialog::backdrop{background:rgba(25,43,68,.45)}}

/* Prevent long version labels and task names from imposing intrinsic desktop widths. */
.version-trigger>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.task-center,#taskList,.task-card,.task-heading{min-width:0}.task-heading{flex-wrap:wrap}.task-status{margin-left:auto}.task-center{overscroll-behavior:contain}

/* Keep all three operation rows visible while the gallery scrolls. */
.three-row-panel{position:sticky;top:calc(var(--nav-height,60px) + 8px);z-index:9;background:#fff;box-shadow:0 5px 20px rgba(32,64,112,.08)}.project-sidebar{top:var(--nav-height,60px)}
.task-elapsed{font-size:13px;font-variant-numeric:tabular-nums;color:#245e9d;margin-top:7px}.selection-steps li.processing{position:relative;overflow:hidden}.selection-steps li.processing:before{content:'';position:absolute;top:0;left:0;width:40%;height:3px;background:#8dc9ff;animation:phase-sweep 1.8s ease-in-out infinite}.task-status.active:before{content:'';display:inline-block;width:6px;height:6px;border-radius:50%;background:currentColor;margin-right:5px;animation:task-pulse 1.6s ease-in-out infinite}@keyframes phase-sweep{from{transform:translateX(-110%)}to{transform:translateX(360%)}}@keyframes task-pulse{50%{opacity:.35}}
@media(prefers-reduced-motion:reduce){.selection-steps li.processing:before,.task-status.active:before{animation:none}}
