
:root{--navy:#0b1a3a;--blue:#1d71b8;--light:#89cfe8;--gold:#edc968;--bg:#f5f7fa;--paper:#fff;--line:#dfe6ed;--muted:#526278;--good:#16734b;--bad:#b42318;--shadow:0 2px 8px #0b1a3a09}*{box-sizing:border-box}html{scroll-behavior:auto}body{margin:0;background:var(--bg);color:var(--navy);font:16px/1.48 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}button,input,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}button,a,input,select{outline-offset:3px}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid var(--blue)}button{border:0;background:none;color:inherit}button.primary,.primary{background:var(--blue);color:#fff;border:1px solid var(--blue);font-weight:650}button.secondary{border:1px solid var(--line);background:#fff}button.primary,button.secondary,.chip{min-height:48px;border-radius:10px;padding:10px 15px;display:inline-flex;align-items:center;justify-content:center;gap:8px}button.primary:hover{background:#15598f}button.secondary:hover,.chip:hover{background:#e8f3fa}svg.ico{width:21px;height:21px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}.official{background:var(--navy);border-bottom:2px solid var(--gold)}.official .wrap{height:83px;display:flex;align-items:center;justify-content:space-between;gap:15px}.official img{width:min(330px,85%);height:auto;max-height:72px;object-fit:contain;object-position:left}.official span{font-size:11px;color:#d9e8f5;letter-spacing:.07em}.wrap{max-width:1320px;margin:auto;padding:0 28px}.appbar{position:sticky;top:0;z-index:12;background:#fff;border-bottom:1px solid var(--line)}.appbar .wrap{display:flex;align-items:center;min-height:67px;gap:18px;justify-content:space-between}.brand{display:flex;align-items:center;gap:10px;text-align:left;padding:6px 0;min-height:48px}.brand img{width:43px;height:43px}.brand strong{display:block;font-size:19px;letter-spacing:-.6px;line-height:1.15}.brand small{color:var(--muted);font-size:11px}.desktopnav{display:flex;gap:8px;align-items:center}.navbtn{min-height:48px;display:inline-flex;align-items:center;gap:8px;padding:10px 13px;border-radius:10px;font-weight:600}.navbtn.active{background:#e5f1f9;color:#15598f}.mobile-nav{display:none}.demo{font-size:12px;color:var(--muted);padding:10px 0;display:flex;align-items:center;gap:8px}.demo:before{content:'';width:7px;height:7px;border-radius:50%;background:var(--gold);flex:none}.main{padding-bottom:36px}h1,h2,h3,p{margin:0}h1{font-size:clamp(25px,3.2vw,34px);letter-spacing:-.9px;line-height:1.2}h2{font-size:19px;letter-spacing:-.3px}h3{font-size:16px}p.muted,.muted{color:var(--muted)}.heading{display:flex;justify-content:space-between;align-items:flex-end;gap:10px;margin:14px 0 20px}.heading p{margin-top:6px}.toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0 0 22px}.chip{background:#fff;border:1px solid var(--line);font-size:14px;font-weight:600;white-space:nowrap}.chip[aria-pressed=true]{background:var(--navy);border-color:var(--navy);color:#fff}.spacer{flex:1}.section-title{display:flex;align-items:baseline;justify-content:space-between;margin:23px 0 12px}.section-title small{font-size:12px;color:var(--muted)}.albums{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.album{border:1px solid var(--line);border-radius:13px;overflow:hidden;background:#fff;box-shadow:var(--shadow);position:relative}.album-open{display:block;width:100%;text-align:left;padding:0}.cover{aspect-ratio:1.6;position:relative;background:#e0e8ef;overflow:hidden}.cover img{width:100%;height:100%;object-fit:cover;display:block}.count{position:absolute;bottom:9px;right:9px;background:#0b1a3ae8;color:#fff;padding:5px 9px;border-radius:7px;font-size:12px;font-weight:650;display:flex;gap:5px;align-items:center}.count .ico{width:14px;height:14px}.album-info{padding:12px 12px 15px;min-height:91px}.album-info strong{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-weight:680;line-height:1.35;padding-right:3px}.album-info small{display:block;color:var(--muted);margin-top:6px;font-size:12px;line-height:1.4}.album:hover{border-color:#89a9c1}.empty{padding:30px;border:1px dashed var(--line);border-radius:12px;text-align:center;color:var(--muted);background:#fff}.back{min-height:48px;display:inline-flex;align-items:center;gap:7px;font-weight:650;padding:8px 0;color:#15598f}.gallery-head{display:flex;justify-content:space-between;gap:14px;align-items:flex-end;margin-bottom:16px}.gallery-actions{display:flex;gap:8px;flex-wrap:wrap}.gallery-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}.tile{position:relative;aspect-ratio:1;overflow:hidden;border-radius:8px;background:#dbe4ed;padding:0;border:2px solid transparent}.tile img{display:block;width:100%;height:100%;object-fit:cover}.tile[aria-pressed=true]{border-color:var(--blue)}.tick{display:none;position:absolute;top:8px;right:8px;border:2px solid white;border-radius:50%;width:25px;height:25px;background:#0b1a3a99;color:#fff;line-height:20px;text-align:center;font-weight:700}.selecting .tick{display:block}.tile[aria-pressed=true] .tick{background:var(--blue)}.selection-bar{position:sticky;bottom:0;margin-top:12px;padding:12px;background:#fff;border:1px solid var(--line);border-radius:12px;display:flex;align-items:center;gap:8px;box-shadow:var(--shadow);z-index:4}.form-shell{max-width:760px;margin:auto}.panel{border:1px solid var(--line);background:#fff;border-radius:14px;padding:24px;box-shadow:var(--shadow)}.fields{display:grid;grid-template-columns:1fr 1fr;gap:16px}.field{display:block;font-weight:650;font-size:14px}.field.full{grid-column:1/-1}.field input,.field select{display:block;width:100%;min-height:49px;margin-top:6px;border:1px solid #c9d5e0;border-radius:9px;padding:11px;color:var(--navy);background:white;font-weight:400}.field small{display:block;margin-top:4px;font-weight:400;color:var(--muted)}.upload-area{border:1.5px dashed #7faed1;border-radius:12px;background:#f0f7fc;text-align:center;padding:22px;margin-top:20px}.upload-area .ico{width:33px;height:33px;color:var(--blue)}.upload-area p{margin:7px 0 12px;font-size:13px;color:var(--muted)}.buttonrow{display:flex;gap:8px;flex-wrap:wrap;justify-content:center}.filegrid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin-top:15px}.fileitem{position:relative;min-width:0}.fileitem img{display:block;aspect-ratio:1;object-fit:cover;width:100%;border-radius:8px;background:#e8edf3}.remove{position:absolute;right:2px;top:2px;min-width:40px;min-height:40px;border-radius:50%;background:#0b1a3ae8;color:#fff;font-size:22px}.fileitem small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px}.send{width:100%;margin-top:18px}.status{margin-top:14px;padding:13px 15px;background:#eef7fd;border:1px solid #d3e8f5;border-radius:10px;font-size:14px}.error{color:var(--bad);font-weight:600}.progress{height:9px;border-radius:9px;background:#e2e9f2;overflow:hidden;margin:10px 0}.progress>div{height:100%;background:var(--blue);transition:width .2s linear}.dock{position:fixed;bottom:18px;right:18px;z-index:25;width:min(370px,calc(100vw - 36px));background:#fff;border:1px solid #b8cde0;border-radius:14px;padding:16px;box-shadow:0 5px 24px #0b1a3a24}.dock h3{margin-bottom:4px}.dock .actions{display:flex;gap:8px;flex-wrap:wrap}.dock .actions button{flex:1}.more-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;max-width:900px}.menuitem{text-align:left;padding:16px;background:#fff;border:1px solid var(--line);border-radius:12px;display:flex;gap:13px;align-items:center;min-height:78px}.menuitem>.ico{color:var(--blue);width:25px;height:25px}.menuitem strong{display:block}.menuitem small{color:var(--muted);display:block;font-size:12px}.install{margin:0 0 22px;display:flex;align-items:center;gap:12px;padding:14px;background:#fff;border:1px solid var(--line);border-left:3px solid var(--gold);border-radius:12px}.install img{width:44px;height:44px}.install .txt{flex:1}.install small{display:block;font-size:12px;color:var(--muted)}.footer{font-size:12px;color:var(--muted);padding:24px 0 8px;text-align:center}.footer p{margin-top:5px}.toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);z-index:60;background:var(--navy);color:#fff;border-radius:10px;padding:12px 18px;max-width:90vw;font-size:14px;box-shadow:var(--shadow)}[hidden]{display:none!important}dialog{border:0;padding:0;color:var(--navy);border-radius:14px;max-width:calc(100% - 24px);width:480px;box-shadow:0 15px 60px #0005}dialog::backdrop{background:#0b1a3a99}dialog .modalbody{padding:23px}dialog h2{margin-bottom:13px}dialog p,dialog li{font-size:14px;margin-bottom:8px}.modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:16px}.viewer{width:100vw;height:100dvh;max-width:none;max-height:none;margin:0;border-radius:0;background:#101724;color:white;overflow:hidden}.view-layout{height:100%;display:grid;grid-template-rows:auto minmax(0,1fr) auto auto;padding:env(safe-area-inset-top) 0 env(safe-area-inset-bottom)}.viewtop,.viewbottom{display:flex;align-items:center;justify-content:space-between;padding:8px 16px;background:#0b1320;gap:8px}.viewtop button,.viewbottom button,.arrow{min-height:48px;min-width:48px;border-radius:8px;display:inline-flex;align-items:center;justify-content:center;gap:7px;color:white}.viewbottom button{background:#233753;padding:9px 14px}.photo-stage{position:relative;min-height:0;display:flex;align-items:center;justify-content:center;overflow:hidden;touch-action:pan-y}.photo-stage>img{max-width:100%;max-height:100%;object-fit:contain;display:block;width:auto;height:auto;transform-origin:center;cursor:zoom-in}.photo-stage.zoom>img{transform:scale(1.8);cursor:zoom-out}.arrow{position:absolute;top:50%;transform:translateY(-50%);background:#0b1a3acb;z-index:2}.arrow.prev{left:10px}.arrow.next{right:10px}.film{display:flex;justify-content:center;gap:6px;overflow-x:auto;padding:8px 12px;scrollbar-width:thin}.film button{padding:0;flex:0 0 56px;width:56px;height:48px;border:2px solid transparent;overflow:hidden;border-radius:6px}.film button.active{border-color:var(--gold)}.film img{width:100%;height:100%;object-fit:cover}.filterbox{display:flex;gap:10px;align-items:flex-end;margin:0 0 16px;padding:15px;background:#fff;border:1px solid var(--line);border-radius:10px;flex-wrap:wrap}.filterbox input,.filterbox select{min-height:48px;padding:9px 12px;border-radius:8px;border:1px solid #c9d5e0;background:#fff;color:var(--navy);max-width:100%}.filterbox label{font-size:13px;font-weight:600}.filterbox label>*{display:block;margin-top:4px}.summary{display:flex;gap:12px;flex-wrap:wrap}.summary .panel{flex:1;min-width:140px}.summary strong{font-size:28px;display:block}.historyrow{padding:14px 0;border-bottom:1px solid var(--line)}.historyrow small{color:var(--muted)}.warnline{font-size:12px;color:var(--muted);margin-top:9px}
@media(max-width:1000px){.albums{grid-template-columns:repeat(3,minmax(0,1fr))}.gallery-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:700px){.wrap{padding:0 15px}.official .wrap{height:74px}.official img{width:285px;max-width:96%;max-height:65px}.official span{display:none}.appbar .wrap{min-height:59px}.brand img{width:38px;height:38px}.brand strong{font-size:18px}.desktopnav{display:none}.mobile-nav{display:grid;grid-template-columns:repeat(3,1fr);position:fixed;bottom:0;left:0;right:0;padding:4px 8px max(5px,env(safe-area-inset-bottom));background:white;border-top:1px solid var(--line);z-index:20;box-shadow:0 -2px 8px #0b1a3a09}.mobile-nav button{min-height:57px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:3px;font-size:12px;font-weight:650;color:var(--muted);border-radius:8px}.mobile-nav button.active{color:#15598f}.mobile-nav .plus{background:var(--blue);color:white;width:32px;height:32px;border-radius:10px;display:grid;place-items:center}.mobile-nav .plus .ico{width:22px;height:22px}.main{padding-bottom:92px}.heading{margin:10px 0 16px;align-items:flex-start}.heading .primary{display:none}.heading p{font-size:14px}.toolbar{gap:6px;margin-bottom:17px}.chip{padding:8px 12px;min-height:48px;font-size:13px}.toolbar .spacer{display:none}.toolbar .icononly{padding:8px 11px}.toolbar .icononly .label{display:none}.albums{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.album-info{padding:9px;min-height:78px}.album-info strong{font-size:14px}.album-info small{font-size:11px}.cover{aspect-ratio:1.45}.count{font-size:11px;right:6px;bottom:6px}.section-title{margin:18px 0 10px}.section-title small{display:none}.gallery-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}.tile{border-radius:5px}.gallery-head{display:block}.gallery-actions{margin-top:12px}.gallery-actions button{flex:1;font-size:13px;padding:8px 10px}.selection-bar{bottom:66px;flex-wrap:wrap}.panel{padding:16px}.fields{grid-template-columns:1fr;gap:13px}.field.full{grid-column:auto}.upload-area{padding:17px 10px}.filegrid{grid-template-columns:repeat(4,minmax(0,1fr))}.more-grid{grid-template-columns:1fr}.dock{bottom:79px;right:10px;width:calc(100% - 20px)}.toast{bottom:76px}.install{padding:11px}.install button{font-size:13px;padding:8px 11px}.viewtop,.viewbottom{padding:6px 8px}.viewbottom button{font-size:13px}.film{justify-content:flex-start}.film button{flex-basis:50px;width:50px;height:44px}.filterbox{align-items:stretch}.filterbox label{flex:1;min-width:135px}.filterbox input,.filterbox select{width:100%}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}@media(max-width:360px){.wrap{padding:0 10px}.chip{padding:7px 8px}.toolbar{gap:4px}.album-info strong{font-size:13px}}

/* V1.2: one compact identity bar; official left, application right. */
.compact-header{background:var(--navy);color:#fff;border-bottom:2px solid var(--gold);box-shadow:none}
.compact-header .wrap{max-width:none;min-height:64px;gap:14px;padding:0 24px;justify-content:space-between}
.compact-header .official-mark{width:236px;height:auto;max-width:35%;object-fit:contain;flex:0 1 auto}
.compact-header .desktopnav{margin-left:auto;gap:5px}
.compact-header .navbtn{color:#fff;font-size:14px;padding:8px 11px;white-space:nowrap}
.compact-header .navbtn.active{color:#fff;background:#ffffff19}
.compact-header .desktopnav .primary{font-size:14px;white-space:nowrap;padding:8px 12px}
.compact-header #profile{color:#fff;background:transparent;border-color:#ffffff38;padding:0;min-width:44px;min-height:44px;flex:none}
.compact-header #profile:hover{background:#ffffff19}
.compact-header .profile-text{display:none}
.compact-header .brand{margin-left:2px;color:#fff;gap:6px;flex:none;min-height:48px;padding:4px 0 4px 8px;border-left:1px solid #ffffff30}
.compact-header .brand img{width:34px;height:34px;outline:1px solid #ffffff30;border-radius:8px}
.compact-header .brand strong{font-size:15px;line-height:1.15;letter-spacing:0;white-space:nowrap}
.compact-header button:focus-visible{outline-color:var(--light)}
@media(min-width:701px) and (max-width:950px){.compact-header .wrap{padding:0 12px;gap:8px}.compact-header .official-mark{width:190px}.compact-header .brand strong{display:none}.compact-header .navbtn{padding:7px 8px;font-size:13px}.compact-header .desktopnav .primary{padding:7px 9px;font-size:13px}}
@media(max-width:700px){.compact-header{position:relative}.compact-header .wrap{min-height:58px;padding:0 12px;gap:8px}.compact-header .official-mark{width:clamp(155px,49vw,205px);max-width:58%}.compact-header #profile{margin-left:auto;min-width:40px;min-height:44px;border-color:transparent}.compact-header .brand{gap:5px;padding-left:5px;border-left:0;margin-left:0}.compact-header .brand img{width:30px;height:30px}.compact-header .brand strong{font-size:12px;white-space:normal;max-width:48px}.compact-header .brand div{max-width:48px}}
@media(max-width:360px){.compact-header .wrap{padding:0 10px;gap:7px}.compact-header .brand strong{display:none}.compact-header .brand{padding-left:0;min-width:44px;justify-content:center}.compact-header .brand img{width:32px;height:32px}}


/* V1.4 Gallery First: functional, photo-led, restrained government identity */
:root{--bg:#fafbfc;--line:#dce3eb;--shadow:none}
.compact-header{position:relative}.compact-header .wrap{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);min-height:64px;gap:12px}
.compact-header .official-mark{width:225px;max-width:100%}.compact-header .desktopnav{margin:0;justify-content:center}.compact-header .brand{justify-self:end;border:0;padding-left:0}.compact-header #profile{display:none}
.main{max-width:1500px}.demo{padding:8px 0;font-size:11px}.gallery-first-heading{align-items:center;margin:8px 0 15px;position:sticky;top:0;background:var(--bg);z-index:10;padding:12px 0;border-bottom:1px solid transparent}.gallery-first-heading h1{font-size:clamp(24px,2.4vw,30px);letter-spacing:-.75px}.gallery-first-heading p{font-size:14px;margin-top:4px}.gallery-first-heading .upload-cta{min-width:220px;min-height:52px;border-radius:8px;gap:10px;font-size:15px}.gallery-first-heading .upload-cta .ico{width:23px;height:23px}
.gallery-tools{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 12px;padding:0 0 10px;border-bottom:1px solid var(--line)}.category-tabs{display:flex;gap:6px;align-items:center}.category-tabs .chip{border:0;background:transparent;border-radius:7px;min-height:44px;padding:8px 15px;color:var(--muted);font-weight:600}.category-tabs .chip:hover{background:#eef3f7}.category-tabs .chip[aria-pressed=true]{background:#e7f1fa;color:#15598f;box-shadow:inset 0 -2px 0 var(--blue)}.browse-tools{display:flex;align-items:center;gap:7px}.browse-tools button{min-height:44px;border-radius:7px;font-size:14px;padding:8px 12px}.filter-number{background:var(--blue);color:white;border-radius:9px;min-width:20px;text-align:center;font-size:12px;font-weight:700}.team-picker{display:flex;align-items:center;gap:10px;margin:4px 0 12px;font-size:14px;color:var(--muted)}.team-picker select{min-height:48px;min-width:180px;padding:8px 12px;background:white;border:1px solid var(--line);border-radius:8px;color:var(--navy)}.search-line{display:flex;align-items:center;gap:9px;background:white;border:1px solid var(--line);padding:0 12px;border-radius:8px;max-width:520px;margin:8px 0 12px}.search-line .ico{color:var(--muted)}.search-line input{background:transparent;border:0;width:100%;min-height:48px;min-width:0;color:var(--navy)}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.applied-filters{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:6px 0 10px}.applied{display:inline-flex;align-items:center;gap:7px;min-height:44px;background:#e7f1fa;color:#15598f;border:1px solid #d2e3f2;padding:7px 10px;border-radius:7px;font-size:13px;overflow-wrap:anywhere;max-width:100%}.applied .ico{width:15px;height:15px}.clear-all{min-height:44px;padding:6px 8px;color:#15598f;font-weight:600;font-size:13px}.result-count{font-size:12px;color:var(--muted);margin:0 0 6px}.album-section{margin-bottom:21px}.section-title{justify-content:flex-start;gap:10px;margin:15px 0 10px}.section-title h2{font-size:17px;font-weight:650}.section-title small{font-size:12px}.albums{gap:16px}.album{border:0;border-radius:0;background:transparent;box-shadow:none;overflow:visible}.album-open{border-radius:8px}.cover{border-radius:8px;aspect-ratio:1.52}.album-open:hover .cover{outline:2px solid #1d71b850;outline-offset:1px}.album-info{padding:8px 2px 4px;min-height:60px}.album-info strong{font-size:15px;font-weight:650}.album-info small{margin-top:3px;font-size:12px}.count{border-radius:6px;font-size:12px;bottom:8px;right:8px;padding:4px 7px}.empty strong{display:block;margin:8px 0 3px}.empty p{margin-bottom:12px}.filter-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:16px}.filter-actions{display:flex;justify-content:space-between;gap:10px;margin-top:16px}.filter-actions button{flex:1}.footer{padding-top:14px}
@media(min-width:701px){.gallery-first-heading .upload-cta{display:inline-flex}.compact-header .brand strong{display:block}}
@media(max-width:700px){.compact-header .wrap{display:flex;min-height:58px;padding:0 12px;justify-content:space-between}.compact-header .official-mark{width:clamp(155px,50vw,205px);max-width:64%}.compact-header .brand{margin-left:auto}.compact-header .desktopnav{display:none}.gallery-first-heading{position:relative;margin:3px 0 9px;padding:6px 0;align-items:start}.gallery-first-heading h1{font-size:24px}.gallery-first-heading p{font-size:13px}.gallery-first-heading .upload-cta{display:none}.gallery-tools{gap:6px;flex-wrap:wrap;padding-bottom:7px;margin-bottom:8px}.category-tabs{width:100%;gap:2px}.category-tabs .chip{min-height:48px;font-size:13px;padding:8px 9px;flex:1;white-space:nowrap}.browse-tools{margin-left:auto}.browse-tools button{min-height:44px;font-size:13px;padding:5px 10px}.browse-tools .icononly .label{display:inline}.team-picker{margin:0 0 8px}.team-picker select{flex:1;min-width:0}.section-title{margin:10px 0 8px}.section-title h2{font-size:16px}.section-title small{display:inline;font-size:11px}.albums{gap:12px 10px}.cover{aspect-ratio:1.36;border-radius:7px}.album-info{padding:6px 1px 3px;min-height:64px}.album-info strong{font-size:14px}.album-info small{font-size:11px}.album-section{margin-bottom:16px}.count{font-size:11px}.mobile-nav .plus{border-radius:50%;width:34px;height:34px}.main{padding-bottom:92px}}
@media(max-width:360px){.category-tabs .chip{padding:7px 5px;font-size:12px}.gallery-first-heading h1{font-size:22px}.album-info strong{font-size:13px}.section-title small{font-size:10px}.filter-fields{grid-template-columns:1fr}.filter-fields .field.full{grid-column:auto}}

/* V1.4: photo-first viewer, stable selection, transfer status. */
.gallery-head{align-items:center;margin-bottom:14px}.gallery-head h1{font-size:clamp(22px,2.4vw,29px);line-height:1.25}.gallery-actions{align-items:center}.gallery-actions button{min-height:48px}.gallery-grid{gap:5px}.tile{border-radius:4px;border:0;outline:0;box-shadow:none}.tile[aria-pressed=true]{outline:3px solid var(--blue);outline-offset:-3px}.tile:focus-visible{outline:3px solid var(--blue);outline-offset:2px}.selecting .tile[aria-pressed=true] img{opacity:.78}.selection-bar{border-radius:8px;box-shadow:0 -3px 12px #0b1a3a12}.gallery-note{margin:12px 0;font-size:12px;color:var(--muted)}
.viewer .viewtop{background:#101724}.viewtop .view-title{flex:1;min-width:0;text-align:center}.view-title small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#c3cedb;font-size:12px;margin-top:3px}.photo-stage{touch-action:none;user-select:none}.photo-stage>img{max-width:100%;max-height:100%;object-fit:contain;transform:translate(var(--px,0px),var(--py,0px)) scale(var(--scale,1));transition:none;cursor:zoom-in}.photo-stage.zoom>img{transform:translate(var(--px,0px),var(--py,0px)) scale(var(--scale,1));cursor:grab}.photo-stage img{ -webkit-user-drag:none }.film{justify-content:center}.film button{flex-basis:58px;width:58px;height:50px}.film button.active{border-color:#EDC968}.arrow:disabled{opacity:.25}.viewbottom small{font-size:11px;color:#b7c4d3}.viewbottom button{min-height:48px}.viewbottom{flex-wrap:nowrap}.zoom-help{color:#c3cedb;font-size:11px;text-align:center;padding:3px 5px}
.form-shell .panel{box-shadow:none;border-radius:10px}.upload-area{background:#f4f8fb;border:1px dashed #90b4d0;border-radius:9px}.upload-area.dragging{background:#dceefb;border-color:var(--blue)}.upload-area .buttonrow button,.upload-area .buttonrow label{min-height:48px}.filegrid{grid-template-columns:repeat(5,minmax(0,1fr))}.fileitem .remove{min-height:36px;min-width:36px}.fileitem small{font-size:12px}.file-summary{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap;margin-top:12px}.file-summary button{min-height:44px;padding:6px;color:#a22121}.send{min-height:54px}.transfer-head{display:flex;align-items:flex-start;gap:9px}.transfer-head>div{flex:1;min-width:0}.transfer-head h3{font-size:16px;line-height:1.3}.transfer-head p{overflow-wrap:anywhere}.transfer-head button{min-width:40px;min-height:40px;color:var(--blue);font-weight:650}.dock{padding:13px;border-radius:10px;box-shadow:0 4px 22px #0b1a3a1c}.dock.compact{width:min(330px,calc(100vw - 20px));padding:11px 13px;cursor:default}.dock.compact .progress{height:5px;margin:7px 0 0}.dock .actions button{min-height:44px;font-size:13px;padding:8px}.job-counts{display:flex;flex-wrap:wrap;gap:6px 12px;font-size:12px;color:#4b596c}.job-counts span{display:inline-flex;align-items:center;gap:5px}.job-counts .ico{width:15px;height:15px}.dock .simulate-link{color:#15598f;min-height:44px;font-size:12px;text-decoration:underline;display:block;padding:6px 0}.transfer-list{margin:14px 0;max-height:240px;overflow:auto}.transfer-row{display:flex;gap:10px;align-items:center;border-bottom:1px solid var(--line);padding:8px 0;font-size:13px}.transfer-row img{width:42px;height:42px;border-radius:4px;object-fit:cover}.transfer-row>div{flex:1;min-width:0;overflow-wrap:anywhere}.transfer-row small{display:block;color:var(--muted)}.status-note{font-size:12px;color:var(--muted);margin-top:8px}.paused-note{color:#8b5216;font-size:13px;margin-top:6px}.upload-area input:focus-visible+button{outline:2px solid var(--blue)}
@media(max-width:700px){.gallery-head h1{font-size:23px}.gallery-actions{gap:6px}.gallery-actions button{flex:1;min-width:0;white-space:nowrap;font-size:12px;padding:8px 6px;gap:4px}.gallery-actions .ico{width:16px;height:16px}.gallery-grid{gap:3px}.tile{border-radius:3px}.selection-bar{bottom:68px;gap:6px;padding:8px}.selection-bar button{min-height:44px;font-size:12px}.film{justify-content:flex-start}.film button{flex-basis:48px;width:48px;height:44px}.viewbottom small{display:none}.viewbottom button{flex:1;font-size:13px}.arrow.prev{left:5px}.arrow.next{right:5px}.filegrid{grid-template-columns:repeat(4,minmax(0,1fr))}.dock.compact{bottom:76px;right:10px}.dock:not(.compact){bottom:76px;max-height:55dvh;overflow:auto}.file-summary{font-size:13px}.send{position:static}.upload-area .buttonrow{gap:6px}.upload-area .buttonrow button,.upload-area .buttonrow label{font-size:13px}.transfer-row{font-size:12px}}

/* V1.5: understated status and accessible startup. */
.pwa-notice{margin:8px 0 14px;padding:12px 14px;background:#edf5fb;border:1px solid #d4e5f2;border-radius:8px;color:#0b1a3a;font-size:14px;display:flex;align-items:center;gap:12px;flex-wrap:wrap}.pwa-notice[hidden]{display:none}.pwa-notice span{flex:1;min-width:180px}.pwa-notice button{min-height:44px}.pwa-guide p{margin:10px 0}.pwa-guide .secondary,.pwa-guide .primary{margin-top:8px}.startup{padding:12px 0}.startup-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.startup-grid span{aspect-ratio:4/3;background:#e3e9f0;border-radius:8px}@media(min-width:800px){.startup-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}