
:root{font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#233d38;background:#f7f5ef;font-synthesis:none;--green:#143c37;--muted:#6d7872;--line:#e0e5dc;--cream:#fffdf7}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,.button{cursor:pointer;border:1px solid var(--line);background:white;border-radius:12px;padding:11px 17px;color:var(--green);font-weight:600;display:inline-flex;align-items:center;justify-content:center;text-decoration:none;gap:8px}button:hover,.button:hover{background:#eff3ec}button:disabled{opacity:.55;cursor:wait}.primary{background:var(--green);color:white;border-color:var(--green)}.primary:hover{background:#28564d}.danger{color:#a33b36}input,select,textarea{border:1px solid #cbd5ca;border-radius:10px;padding:11px;background:white;color:#233d38;max-width:100%}h1,h2,h3,p{overflow-wrap:anywhere}h1{font-family:Georgia,serif;font-weight:400;letter-spacing:-1px;font-size:clamp(32px,5vw,50px);margin:6px 0 12px}h2{font-size:22px;margin:0 0 16px}small,.muted{color:var(--muted)}a{color:var(--green)}.shell{display:grid;grid-template-columns:240px 1fr;min-height:100dvh}.sidebar{background:#eeeee4;padding:30px 20px;display:flex;flex-direction:column;border-right:1px solid var(--line);position:sticky;top:0;height:100dvh}.brand{display:flex;gap:10px;align-items:center;font-family:Georgia,serif;font-size:25px;margin-bottom:28px}.brand img{width:39px}.sidebar select{width:100%;background:#fffdf7}.sidebar nav{display:grid;gap:7px;margin:28px 0}.sidebar nav button{background:transparent;border:0;justify-content:start;font-weight:500;min-height:44px}.sidebar nav button.active{background:#dce5d6;font-weight:700}.sidebar .account{margin-top:auto;font-size:13px}.sidebar .account p{margin-bottom:8px}.main{padding:40px clamp(20px,4vw,56px);min-width:0;max-width:1600px;width:100%}.top{display:flex;justify-content:space-between;gap:20px;align-items:start}.eyebrow{font-size:12px;letter-spacing:1.8px;text-transform:uppercase;color:#778174}.toolbar{display:flex;flex-wrap:wrap;gap:9px;margin:28px 0 22px}.toolbar input{flex:1;min-width:150px}.toolbar select{max-width:175px}.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:12px}.card{position:relative;display:block;aspect-ratio:1;border:0;padding:0;border-radius:14px;overflow:hidden;background:#e7e9df}.card img{width:100%;height:100%;object-fit:cover;transition:transform .2s}.card:hover img{transform:scale(1.04)}.card .caption{position:absolute;bottom:0;left:0;right:0;padding:28px 12px 12px;background:linear-gradient(transparent,#0009);color:white;text-align:left;font-size:13px;font-weight:400}.card .badge{position:absolute;right:9px;top:9px;background:#143c37bc;border-radius:8px;color:white;padding:4px 7px;font-size:12px}.person.card{aspect-ratio:auto;padding:18px;background:white;display:flex;flex-direction:column;align-items:center;gap:10px;overflow:visible}.person img{width:110px;height:110px;border-radius:50%;object-fit:cover}.person .person-name{font-size:15px}.person .actions{display:flex;gap:6px}.person .actions button{padding:6px 10px;font-size:12px}.empty{border:1px dashed #bfcbbd;border-radius:20px;padding:55px 25px;text-align:center;background:#fffdf799;margin-top:25px}.empty h2{font-family:Georgia,serif;font-size:28px;font-weight:400}.empty p{max-width:500px;margin:16px auto;color:var(--muted);line-height:1.6}.welcome{max-width:570px;margin:clamp(40px,13vh,130px) auto;padding:34px;text-align:center}.welcome h1{font-size:47px;line-height:1.1;margin-top:26px}.welcome p{line-height:1.7;color:var(--muted)}.welcome .button{margin:18px 0}.notice{padding:14px 18px;background:#ebeeda;border-radius:12px;margin:20px 0;line-height:1.5}.private-notice{background:#ece5f0}.panel{background:var(--cream);border:1px solid var(--line);border-radius:17px;padding:23px;margin:20px 0}.panel form,.row{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.panel label{display:grid;gap:5px;font-size:13px;flex:1;min-width:170px}.list{display:grid;gap:10px}.list-item{display:flex;justify-content:space-between;gap:15px;padding:14px;border-bottom:1px solid var(--line);align-items:center;min-width:0}.list-item>div{min-width:0;overflow-wrap:anywhere}.progress{height:5px;background:#e4e8dc;border-radius:10px;margin-top:9px;overflow:hidden}.progress span{display:block;height:100%;background:#668b73;width:var(--progress)}.upload-info{font-size:13px;line-height:1.5;color:var(--muted)}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);max-width:90vw;background:var(--green);color:white;padding:13px 20px;border-radius:12px;z-index:10;box-shadow:0 5px 22px #0002;display:none}dialog{border:0;border-radius:20px;padding:0;max-width:1000px;width:92vw;max-height:94dvh;background:#fffdf7;color:#233d38}dialog::backdrop{background:#09271fcc;backdrop-filter:blur(4px)}.viewer-top{display:flex;justify-content:space-between;gap:15px;padding:16px}.viewer-media{width:100%;max-height:61dvh;object-fit:contain;display:block;background:#102b28}.viewer-body{padding:20px}.viewer-body .row{margin:12px 0}.viewer-body input{flex:1}.loading{padding:40px}.offline-tag{background:#e8ca8c;border-radius:6px;padding:4px 7px}.drop-active{outline:4px dashed #719f7a;outline-offset:-10px}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #9dbe8b;outline-offset:3px}@media(max-width:760px){.shell{display:block}.sidebar{height:auto;position:relative;border-right:0;border-bottom:1px solid var(--line);padding:16px}.sidebar .brand{margin:0;font-size:22px}.sidebar select{margin-top:15px}.sidebar nav{display:flex;overflow:auto;margin:13px 0 0;gap:2px}.sidebar nav button{white-space:nowrap;padding:8px 10px;font-size:13px}.sidebar .account{display:none}.main{padding:25px 16px 70px}.top{flex-wrap:wrap}.top .primary{margin-left:auto}.grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.toolbar{margin-top:20px}.toolbar input{min-width:120px}.toolbar select{max-width:140px}.welcome{margin-top:50px}.welcome h1{font-size:38px}.list-item{align-items:start}.panel{padding:18px}.person img{width:85px;height:85px}}

.comments{border-top:1px solid var(--line);margin-top:25px;padding-top:22px}.comment{padding:12px 0;border-bottom:1px solid var(--line)}.comment p{white-space:pre-wrap;overflow-wrap:anywhere;margin:10px 0}.comment button{font-size:13px;padding:7px 12px}.comments form{display:grid;gap:10px;margin-top:20px}.comments textarea{width:100%;resize:vertical}.comments form button{justify-self:start}

.preferences-form{display:grid!important;gap:22px!important}.preferences-form label{gap:8px}.preferences-form button{justify-self:start}.slideshow{background:#102b28;color:white;width:96vw;max-width:none;height:94dvh;max-height:94dvh;border-radius:12px}.slideshow:fullscreen{width:100vw;height:100dvh;max-height:none;border-radius:0}.slideshow-top{display:flex;justify-content:space-between;align-items:center;padding:12px 18px}.slideshow-stage{height:calc(100% - 210px);display:flex;align-items:center;justify-content:center}.slideshow-stage img,.slideshow-stage video{width:100%;height:100%;object-fit:contain}.slideshow-bottom{padding:12px 18px}.slideshow-bottom p{margin:0 0 10px}.slideshow-bottom small{color:#c7d9d2}.slideshow-bottom .row{margin-bottom:8px}@media(max-width:760px){.slideshow-stage{height:calc(100% - 260px)}.slideshow-bottom button{padding:9px 11px;font-size:13px}.slideshow-bottom p{font-size:13px}}

.selection-bar{margin:16px 0;padding:14px;border:1px solid var(--line);border-radius:12px;background:var(--cream)}.card.selected{outline:4px solid #668b73;outline-offset:-4px}.selection-mark{position:absolute;left:9px;top:9px;border-radius:50%;width:28px;height:28px;display:grid;place-items:center;background:#fffdf7;color:#143c37;font-size:20px;box-shadow:0 1px 6px #0003}.person .actions{flex-wrap:wrap;justify-content:center}

.rotation-0{rotate:0deg}.rotation-90{rotate:90deg}.rotation-180{rotate:180deg}.rotation-270{rotate:270deg}
.photo-tile{position:relative;min-width:0}.photo-tile>.card{width:100%}.photo-check{position:absolute;top:8px;left:8px;border-radius:50%;padding:0;width:34px;height:34px;box-shadow:0 1px 5px #0004;font-size:22px;z-index:1}.photo-check[aria-pressed=true]{background:#143c37;color:white}.photo-menu{position:fixed;z-index:30;display:grid;max-width:calc(100vw - 16px);padding:6px;background:white;border:1px solid var(--line);border-radius:12px;box-shadow:0 8px 35px #0003}.photo-menu button{border:0;justify-content:start}
.photo-stage{position:relative;display:flex;align-items:center;justify-content:center;background:#102b28;height:50dvh;overflow:hidden;width:100%;min-height:0}.photo-stage .viewer-media{position:absolute;inset:auto;margin:0;transform:none;max-width:none;max-height:none;object-fit:contain;background:transparent}.photo-stage video.viewer-media{position:static;transform:none;width:100%;height:100%}.photo-navigation{position:absolute;inset:0;pointer-events:none;display:flex;align-items:center;justify-content:space-between;padding:10px}.photo-navigation button{pointer-events:auto;width:46px;height:46px;border-radius:50%;padding:0;background:#102b28b8;color:white;border:1px solid #fff6;font-size:25px}.photo-navigation span{position:absolute;bottom:10px;left:50%;transform:translateX(-50%);background:#102b28bc;color:white;border-radius:8px;padding:5px 10px}.viewer-top strong{flex:1;min-width:0;overflow-wrap:anywhere}.viewer-top button{flex-shrink:0}#viewer:fullscreen,#viewer.full-view{width:100vw;height:100dvh;max-width:none;max-height:none;margin:0;border-radius:0;background:#102b28;color:white;display:flex;flex-direction:column}#viewer:fullscreen .photo-stage,#viewer.full-view .photo-stage{height:auto!important;flex:1}#viewer:fullscreen .viewer-body,#viewer.full-view .viewer-body{display:none}#viewer.full-view{position:fixed;inset:0}#viewer:fullscreen .viewer-top,#viewer.full-view .viewer-top{padding:8px 12px}
.upload-drop{display:grid;place-items:center;text-align:center;border:2px dashed #9db49d;border-radius:16px;padding:35px 20px;margin:20px 0;background:#f3f6ee;min-height:150px}.upload-drop.drop-active{background:#dce8d5}.transfer-summary progress{width:100%;height:18px;accent-color:#143c37}.transfer-summary .counter{font-size:23px;font-weight:650}.transfer-summary small{display:block;margin-top:10px}

#photo-screen:fullscreen{width:100vw;height:100dvh;display:flex;flex-direction:column;background:#102b28;color:white}#photo-screen:fullscreen .photo-stage{height:auto!important;flex:1}#photo-screen:fullscreen .viewer-body{display:none}#photo-screen:fullscreen .viewer-top{padding:8px 12px}

.disk-storage{margin-top:12px;padding-top:16px;border-top:1px solid var(--line);font-size:12px;display:grid;gap:8px;min-width:0;overflow-wrap:anywhere}.disk-storage strong{font-weight:600}.disk-storage progress{width:100%;height:8px;accent-color:#668b73}.disk-storage small{font-size:12px}@media(max-width:760px){.disk-storage{grid-template-columns:1fr auto;gap:6px 12px;padding-top:10px;margin-top:8px}.disk-storage progress{grid-column:1/-1;grid-row:2}.disk-storage span{grid-column:1}.disk-storage small{grid-column:2}}

@media(min-width:761px){.sidebar nav{flex:1;min-height:0;overflow-y:auto;align-content:start;margin:20px 0}.sidebar .brand,.sidebar select,.sidebar .account,.sidebar .disk-storage{flex-shrink:0}}

html[data-theme=dark]{color-scheme:dark;color:#e3e9e6;background:#111815;--green:#a0d8c1;--muted:#a6b7ae;--line:#394941;--cream:#1b2521}
html[data-theme=dark] button,html[data-theme=dark] .button{background:#232e29;color:#e3e9e6}html[data-theme=dark] button:hover,html[data-theme=dark] .button:hover{background:#304239}html[data-theme=dark] .primary{background:#285b47;color:#edf6ef;border-color:#3b725b}html[data-theme=dark] .danger{color:#ffaaa4}html[data-theme=dark] input,html[data-theme=dark] select,html[data-theme=dark] textarea{background:#17211c;color:#e3e9e6;border-color:#44584c}html[data-theme=dark] .sidebar{background:#17201b}html[data-theme=dark] .sidebar nav button{background:transparent}html[data-theme=dark] .sidebar nav button.active{background:#304839;color:#e4f4e9}html[data-theme=dark] .sidebar select{background:#1b2820}html[data-theme=dark] .eyebrow{color:#adc2b2}html[data-theme=dark] .empty{background:#18231b}html[data-theme=dark] .notice{background:#2a3523;color:#dce8cf}html[data-theme=dark] .private-notice{background:#30253b;color:#e6d9ef}html[data-theme=dark] .card{background:#202b24}html[data-theme=dark] .person.card,html[data-theme=dark] .photo-menu,html[data-theme=dark] dialog{background:#1b2521;color:#e3e9e6}html[data-theme=dark] .upload-drop{background:#17271b;border-color:#638568}html[data-theme=dark] .upload-drop.drop-active{background:#2b4932}html[data-theme=dark] .photo-check{background:#24372b;color:#d9f0df}html[data-theme=dark] .photo-check[aria-pressed=true]{background:#396846;color:white}html[data-theme=dark] #toast{background:#294f3e;color:#edf6ef}html[data-theme=dark] .photo-navigation button{background:#102b28ba;color:white}html[data-theme=dark] .slideshow{background:#102b28;color:white}.theme-toggle{margin-top:10px;width:100%;font-size:12px;padding:8px}.selection-help{font-size:13px;color:var(--muted);flex-basis:100%}

.theme-toggle{flex-shrink:0}
.folder-path{overflow-wrap:anywhere;margin:.5rem 0}.folder-list{display:grid;gap:.5rem;margin-top:1rem;max-height:24rem;overflow:auto}.folder-list button{text-align:left;overflow-wrap:anywhere;min-width:0}#folder-browser{min-width:0}#folder-disks{flex-wrap:wrap}
