/* Final type, spacing and icon scale. Keep the existing IEEE Day identity. */
:root{--text-xs:12px;--text-sm:14px;--text-base:16px}
body{font-size:var(--text-base);line-height:1.5}button,input,select{font-family:inherit}
.button{font-size:14px;min-height:44px;line-height:1.3;padding:12px 18px;gap:9px}.button svg{width:18px;height:18px;stroke-width:1.8}
input,select{font-size:16px;line-height:1.4;min-height:46px;padding:12px 13px}label{font-size:13px;line-height:1.5;margin:19px 0 8px}label .muted{font-size:12px;font-weight:400}
.tiny-label{font-size:10px;letter-spacing:1.4px;line-height:1.5}.eyebrow{font-size:11px;letter-spacing:1.5px;line-height:1.6}
.hero p{font-size:15px;line-height:1.8;max-width:565px}.hero .eyebrow{font-size:11px}.hero h1{line-height:1.15;margin:20px 0 18px}.hero .button{font-size:14px}
.gate-form p{font-size:14px;line-height:1.8}.gate-form h2{font-size:38px;line-height:1.2;margin:18px 0}.gate-art p{font-size:15px;line-height:1.8}.gate-art h1{line-height:1.1}.gate-art .eyebrow{font-size:11px}.gate-foot{font-size:12px;letter-spacing:.3px}.privacy-note{font-size:12px;line-height:1.75;align-items:flex-start}.privacy-note svg{width:18px;height:18px;flex-shrink:0}.gate-form .error{font-size:13px;color:#a63636}
.branch-name{font-size:12px;line-height:1.9}.branch-name span{font-size:12px}.nav-label{font-size:10px}.nav-item{font-size:14px;line-height:1.4;min-height:46px;gap:10px}.nav-item svg{width:18px;height:18px}.nav-item span{font-size:11px}.community-mark{font-size:12px;line-height:1.4}.community-mark small{font-size:11px;line-height:1.5}.signout{font-size:12px;min-height:40px}.signout svg{width:18px;height:18px}.storage-label{font-size:12px;line-height:1.6}
.breadcrumb{font-size:11px;letter-spacing:.8px;line-height:1.5}.access-pill{font-size:12px}.avatar{width:34px;height:34px;font-size:16px}
.stats{gap:30px}.stats>div{align-items:center;gap:10px}.stats b{font-size:29px;line-height:1.2}.stats span{font-size:12px;line-height:1.5}.stats>p{font-size:11px;line-height:1.6}
.library-heading h2{font-size:30px;line-height:1.25}.count-badge{font-size:12px;line-height:1.2;flex-shrink:0;margin-top:5px;padding:4px 6px}.heading-actions .button{font-size:13px;min-height:44px;padding:10px 13px}.heading-actions svg{width:18px;height:18px}
.filterbar{margin:24px 0;align-items:center}.chip{font-size:12px;line-height:1.35;min-height:38px;padding:9px 13px}.search{max-width:310px;min-width:235px}.search input{font-size:12px;min-height:42px;padding-left:34px}.search svg{width:16px;height:16px;left:11px}
.photo-card{align-self:start}.photo-caption{display:block;padding:10px 1px 5px;line-height:1.5}.photo-caption b{display:block;font-size:12px;line-height:1.5;white-space:normal;overflow-wrap:anywhere}.photo-caption span{display:block;max-width:100%;font-size:12px;line-height:1.5;margin-top:3px;color:#5c7c92}.album-info h3{font-size:17px;line-height:1.4}.album-info p{font-size:12px;gap:10px;line-height:1.5}
.empty h3{font-size:28px;line-height:1.3}.empty p{font-size:14px;line-height:1.8;max-width:440px}.empty .button{font-size:13px}.empty .tiny-label{font-size:10px}
footer{font-size:12px;line-height:1.6;align-items:center}footer b{font-size:11px;line-height:1.5}.video-badge{font-size:12px}
dialog{width:520px;padding:26px;line-height:1.5}.dialog-heading{align-items:flex-start;gap:12px}.dialog-heading>div:first-child{flex:1;min-width:0}.dialog-heading h2{font-size:28px;line-height:1.2;margin-top:8px}.dialog-heading+p,#duplicateDialog>.muted{font-size:13px;line-height:1.7}.icon-button{width:42px;min-width:42px;height:42px;flex-shrink:0}.icon-button svg{width:20px;height:20px;stroke-width:1.8}
.picker-trigger{font-size:14px;min-height:46px;line-height:1.4;padding:12px 13px}.picker-trigger>svg{width:18px;height:18px}.picker-popup input{font-size:16px;min-height:42px}.picker-option{font-size:14px;line-height:1.4;min-height:44px}.picker-empty{font-size:13px}.calendar-heading strong{font-size:14px}.calendar-heading .icon-button{width:36px;min-width:36px;height:36px;line-height:1}.calendar-weekdays span{font-size:11px;line-height:1.5}.calendar-day{font-size:13px;line-height:1.2;min-height:34px}.calendar-today{font-size:13px;min-height:40px}.calendar-popup{max-width:350px}
.dropzone{margin-top:22px;padding:25px 15px;gap:10px;cursor:default}.dropzone strong{font-size:17px;line-height:1.4}.dropzone>span{font-size:13px;line-height:1.6}.dropzone small{font-size:12px;line-height:1.65}.dropzone .button{font-size:14px;min-height:44px;padding:12px 19px}.dropzone .button svg{width:18px;height:18px}.upload-note{font-size:12px;line-height:1.8;margin-top:15px}.storage-notice{font-size:12px;line-height:1.75;padding:12px 13px}.queue-item{font-size:12px;line-height:1.6;padding:12px 0}.queue-item>div{align-items:flex-start;gap:12px}.queue-item b{max-width:58%;white-space:normal;overflow-wrap:anywhere}.queue-item span{flex:1;text-align:right}.queue-review{font-size:12px;min-height:36px}.upload-queue{max-height:230px}#uploadSummary{font-size:12px;line-height:1.75}.upload-actions{gap:10px;flex-wrap:wrap;align-items:center}.upload-actions .button{font-size:13px;min-height:44px}.upload-complete h3{font-size:17px;line-height:1.35}.upload-complete p{font-size:12px;line-height:1.75}
.duplicate-comparison span{font-size:12px;line-height:1.5}.duplicate-comparison p{font-size:12px;line-height:1.6}.duplicate-actions .button{font-size:13px;min-height:44px}.lightbox-top strong{font-size:14px;line-height:1.4}.lightbox-top span{font-size:12px;line-height:1.5}.lightbox-top .icon-button{font-size:13px}.lightbox>p,#videoHelp{font-size:12px;line-height:1.6}.photo-arrow{min-width:36px;height:46px;line-height:1}.lightbox-stage img,.lightbox-stage video{max-width:calc(100% - 96px)}.toast{font-size:14px;line-height:1.6;padding:13px 18px;max-width:min(90vw,460px)}
@media(max-width:1100px){.stats>div{display:block}.stats b{display:block;margin-bottom:4px}.search{min-width:205px}.heading-actions .button{font-size:12px;padding:10px}}
@media(max-width:760px){
 .sidebar{padding:13px 12px;gap:8px}.sidebar .brand.branch-logo{width:96px}.sidebar nav{gap:4px}.nav-item{font-size:0;min-height:42px;padding:10px 9px;gap:6px}.nav-item svg{width:18px;height:18px}#allPhotos::after{content:'Photos';font-size:12px}#albumsView::after{content:'Albums';font-size:12px}.signout{font-size:0;width:40px;min-width:40px;height:42px;justify-content:center}.signout svg{width:20px;height:20px}.sidebar .side-bottom{margin:0}
 .topbar{padding:0 5%;min-height:58px;height:auto;gap:10px}.breadcrumb{font-size:10px;letter-spacing:.4px}.breadcrumb span{padding:0 6px}.access-pill{font-size:11px;white-space:nowrap}.top-right{gap:8px}
 .hero{padding:32px 5% 34px}.hero h1{font-size:42px;line-height:1.15;letter-spacing:-1.8px}.hero h1 em{font-size:.85em;letter-spacing:-1.3px}.hero .eyebrow{font-size:10px;letter-spacing:1px}.hero p{font-size:14px;line-height:1.8;max-width:355px}.hero .button{font-size:14px}
 .stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:22px 0}.stats>div{display:block}.stats b{font-size:28px}.stats span{font-size:12px}.stats>p{display:none}
 .library-heading{gap:12px;align-items:flex-start}.library-heading>div:first-child{min-width:0;flex:1}.library-heading h2{font-size:26px;line-height:1.25;letter-spacing:-1px}.heading-actions{gap:6px;flex-shrink:0;flex-wrap:nowrap}.heading-actions .button{width:42px;min-width:42px;height:44px;min-height:44px;font-size:0;padding:10px;gap:0}.heading-actions svg{width:19px;height:19px}.count-badge{font-size:11px;margin-top:4px}
 .filterbar{gap:12px;align-items:stretch;margin:20px 0}.chips{max-width:100%}.chip{font-size:12px;min-height:40px;padding:10px 13px}.search{width:100%;max-width:none;min-width:0}.search input{font-size:16px;min-height:44px;padding-left:36px}.search svg{width:17px;height:17px}
 .tiny-label{font-size:10px;letter-spacing:1.1px}.empty{padding:32px 16px}.empty h3{font-size:24px;line-height:1.3}.empty p{font-size:13px}.empty .button{font-size:13px}.photo-caption b,.photo-caption span{font-size:12px}.album-info{padding:13px}.album-info h3{font-size:16px}.album-info p{font-size:11px;flex-wrap:wrap}.album-grid{gap:14px}
 .gate-art{padding:26px 8% 30px;min-height:350px}.gate-art h1{font-size:39px;line-height:1.12;letter-spacing:-1.5px}.gate-art h1 br:nth-child(2){display:initial}.gate-art .eyebrow{font-size:10px}.gate-form{padding:32px 8% 40px}.gate-form h2{font-size:32px;line-height:1.2;letter-spacing:-1.1px}.gate-form h2 br{display:initial}.gate-form p{font-size:14px}.privacy-note{font-size:12px;line-height:1.75}.gate-form .button{font-size:14px}
 dialog{max-width:calc(100% - 24px);padding:22px 20px;max-height:90dvh}.dialog-heading h2{font-size:25px;letter-spacing:-1px}.icon-button{width:40px;min-width:40px;height:40px}.picker-option{font-size:14px}.picker-trigger{font-size:14px}.calendar-popup{padding:8px}.calendar-day{font-size:12px;min-height:30px}.calendar-weekdays span{font-size:11px}.dropzone{padding:24px 12px}.dropzone strong{font-size:16px}.dropzone>span{font-size:13px}.dropzone small{font-size:12px}.dropzone .button{font-size:14px}.queue-item{font-size:12px}.upload-complete{gap:13px;padding:15px 12px}.upload-complete h3{font-size:16px}.upload-complete p{font-size:12px}.upload-complete .completion-mark{width:42px;height:44px}
 .lightbox{padding:12px;max-width:100vw;max-height:100dvh}.lightbox-top{gap:8px}.lightbox-top strong{font-size:13px}.lightbox-top span{font-size:11px}.lightbox-top>div:last-child{gap:2px}.lightbox-top .icon-button{width:36px;min-width:36px;height:40px}.lightbox-stage img,.lightbox-stage video{max-width:100%}.lightbox>p,#videoHelp{font-size:11px}.toast{font-size:13px;line-height:1.6}
 footer{padding:22px 5%;font-size:12px}footer>span:first-child{font-size:16px}footer b{display:block;margin:6px 0 0;font-size:11px;letter-spacing:.2px}footer>span:last-child{font-size:12px;margin-top:10px}
}
@media(max-width:350px){.sidebar{flex-wrap:wrap}.sidebar nav{order:3;width:100%;justify-content:center}.sidebar .side-bottom{margin-left:auto}.heading-actions{gap:4px}.heading-actions .button{width:38px;min-width:38px}.hero h1{font-size:38px}.hero .eyebrow{font-size:9px;letter-spacing:.7px}.stats span{font-size:11px}.calendar-days{gap:2px}.calendar-day{min-height:28px}.dialog-heading h2{font-size:23px}}

.hero-actions{display:flex;flex-wrap:wrap;gap:12px;align-items:center}.hero .hero-actions .outline{background:white;color:var(--blue);border:1px solid #bbd1df}.hero .hero-actions .outline:hover{background:#edf6fb}#inviteDialog{max-width:480px}#inviteCopyHelp{margin:10px 0 16px}#inviteLink{font-size:14px}

/* Horizontal gestures navigate while vertical scrolling and zoom stay native. */
.lightbox-stage,.lightbox-stage>img,.lightbox-stage>video{touch-action:pan-y pinch-zoom}
.viewer-swipe-hint{text-align:center;color:var(--muted);font-size:12px;margin:8px 0}

.lightbox-stage{position:relative;isolation:isolate;overflow:hidden}
.lightbox-stage img.viewer-transition-ghost{position:absolute;z-index:2;pointer-events:none;max-width:none;max-height:none;object-fit:contain;margin:0}
.lightbox-stage .photo-arrow{position:relative;z-index:3}

/* Fixed navigation columns keep arrows outside the clipped media viewport. */
html.viewer-open,html.viewer-open body{overflow:hidden;overscroll-behavior:none}
.lightbox{overscroll-behavior:none}
.lightbox-stage{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;gap:10px;align-items:stretch;justify-content:normal;touch-action:pinch-zoom;overflow:hidden}
.lightbox-stage .photo-arrow{position:static!important;align-self:center;width:44px;min-width:44px;height:48px;z-index:1;touch-action:manipulation}
.viewer-media{position:relative;min-width:0;min-height:0;overflow:hidden;display:flex;align-items:center;justify-content:center;touch-action:pinch-zoom}
.lightbox-stage .viewer-media>#largePhoto,.lightbox-stage .viewer-media>#largeVideo{display:block;width:100%;height:100%;max-width:100%;max-height:100%;min-width:0;min-height:0;object-fit:contain;touch-action:pinch-zoom;margin:0}
.lightbox-stage .viewer-media>img.viewer-transition-ghost{position:absolute;pointer-events:none;max-width:none;max-height:none;object-fit:contain}
@media(max-width:480px){.lightbox-stage{grid-template-columns:36px minmax(0,1fr) 36px;gap:6px}.lightbox-stage .photo-arrow{width:36px;min-width:36px;height:46px}}

/* At browser pinch zoom, let the visual viewport pan in both axes.
   Navigation resumes only after zooming back to normal size. */
html.viewer-browser-zoomed .lightbox-stage,
html.viewer-browser-zoomed .viewer-media,
html.viewer-browser-zoomed .lightbox-stage .viewer-media>#largePhoto,
html.viewer-browser-zoomed .lightbox-stage .viewer-media>#largeVideo{touch-action:auto}

html.viewer-open.viewer-browser-zoomed,html.viewer-open.viewer-browser-zoomed body{overflow:auto;overscroll-behavior:auto}

/* Photos handle pinch and pan locally, without zooming the page or switching files. */
.lightbox-stage .viewer-media:has(#largePhoto:not([hidden])),
.lightbox-stage .viewer-media>#largePhoto{touch-action:none;user-select:none;-webkit-user-drag:none}
.viewer-media.photo-zoomed{cursor:grab}

.recovery-notice{margin:16px 0;padding:16px;border:1px solid #a9c9dc;border-radius:12px;background:#edf6fc;color:var(--ink)}.recovery-notice p{font-size:14px;line-height:1.6}.recovery-notice>div{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.recovery-notice small{display:block;color:var(--muted);font-size:12px;line-height:1.6}
