:root{--bg:#f7f8f4;--paper:#fff;--text:#293d32;--muted:#8b9389;--green:#315c48;--green-hover:#254c3b;--line:#e9ece4;--soft:#edf2e8;--rose:#f7eae5;--shadow:0 12px 40px #263c3010;font-family:"Segoe UI","Microsoft YaHei","PingFang SC",sans-serif;color:var(--text);background:var(--bg);font-synthesis:none;color-scheme:light}
*{box-sizing:border-box}body{margin:0;font-size:14px;line-height:1.6}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.5;cursor:not-allowed}button{color:inherit}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #a1b79a;outline-offset:3px}button,input,select,textarea{border-radius:9px}input,select,textarea{min-width:0}svg.icon{width:20px;height:20px;stroke:currentColor;stroke-width:1.7;fill:none;stroke-linecap:round;stroke-linejoin:round;display:block;flex-shrink:0} [data-icon]{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}button{border:0;background:none} [hidden]{display:none!important}.app-shell{display:flex;min-height:100vh}.sidebar{width:238px;flex-shrink:0;background:#fdfefb;border-right:1px solid var(--line);padding:34px 20px 0;position:fixed;inset:0 auto 0 0;display:flex;flex-direction:column;z-index:30}.brand{display:flex;align-items:center;gap:12px;margin:0 10px 45px;font-weight:750;font-size:23px;letter-spacing:2px;line-height:1.3}.brand-mark{width:43px;height:46px;border-radius:14px;background:var(--green);color:#edf0d9;transform:rotate(-5deg)}.brand-mark svg{width:27px;height:27px;transform:rotate(5deg)}.brand small{display:block;letter-spacing:2.1px;font-size:8px;font-weight:500;color:#9a9f90;margin-top:7px}.sidebar-section-label{font-size:10px;letter-spacing:1.6px;color:#969d91;margin:0 16px 13px}.main-nav{display:grid;gap:6px}.nav-item{display:flex;align-items:center;gap:13px;width:100%;padding:12px 16px;text-align:left;font-size:13px;color:#747e71;transition:background .15s;border-radius:9px}.nav-item:hover{background:#f1f4ed}.nav-item.active{background:#eaf0e4;color:var(--green);font-weight:650}.nav-item svg{width:19px;height:19px}.nav-count{font-size:11px;margin-left:auto;color:#929d8b;font-weight:500}.nav-item.active .nav-count{background:#fff9;padding:0 6px;border-radius:4px}.album-label{display:flex;align-items:center;justify-content:space-between;margin-top:35px;margin-bottom:9px}.album-nav{overflow:auto;min-height:60px;padding-bottom:20px}.album-nav .nav-item{font-size:12px;padding:9px 16px;gap:12px}.album-nav .nav-item>span:nth-child(2){overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.album-dot{width:7px;height:7px;border-radius:3px;background:#b7c5a7;margin-left:6px;margin-right:7px}.sidebar-hint{font-size:11px;color:#a2a79d;text-align:center;margin:13px 0}.sidebar-bottom{margin-top:auto}.local-card{background:#f0f4e9;border-radius:12px;padding:17px 15px;margin-bottom:18px;position:relative}.local-card strong{font-size:11px;font-weight:600;letter-spacing:.5px}.local-indicator{display:inline-block;width:6px;height:6px;border-radius:50%;background:#83a373;margin:0 5px 1px 0;box-shadow:0 0 0 3px #83a37315}.local-card p{font-size:10px;color:#94a087;margin:8px 0 12px}.text-button{display:inline-flex;align-items:center;gap:7px;font-size:11px;color:var(--green);padding:0}.text-button svg{width:13px;height:13px}.family-profile{border-top:1px solid var(--line);display:flex;gap:11px;align-items:center;padding:22px 4px;margin-top:17px}.family-avatar{background:#eee8d8;color:#a59364;width:33px;height:33px;border-radius:50%}.family-avatar svg{width:23px;height:23px}.family-profile strong{font-size:11px;font-weight:600;display:block}.family-profile small{font-size:9px;color:#9ba291}.profile-flower{color:#bac6ac;margin-left:auto;font-size:22px}.main{margin-left:238px;width:calc(100% - 238px);min-width:0}.topbar{height:82px;border-bottom:1px solid var(--line);padding:0 43px;display:flex;align-items:center;justify-content:space-between;background:#fdfefa99}.breadcrumb{display:flex;align-items:center;gap:15px;font-size:12px;color:#727c6f}.breadcrumb>span:first-of-type svg{width:16px;height:16px;color:#9ca594}.breadcrumb-divider{color:#c5cbbb;font-size:14px}.topbar-right{display:flex;gap:23px;align-items:center}.private-label{display:flex;align-items:center;gap:6px;font-size:10px;color:#a0a791;letter-spacing:.4px}.private-label svg{width:14px;height:14px}.top-avatar{background:#f0ead7;width:32px;height:32px;border-radius:50%;color:#9b9f75}.top-avatar svg{width:18px;height:18px}.button{display:inline-flex;justify-content:center;align-items:center;gap:8px;min-height:39px;padding:9px 17px;font-size:12px;letter-spacing:.2px;white-space:nowrap;transition:background .15s,transform .15s}.button svg{width:17px;height:17px}.button-primary{background:var(--green);color:#fff;box-shadow:0 3px 6px #315c4810}.button-primary:hover{background:var(--green-hover);transform:translateY(-1px)}.button-outline{background:#fff;border:1px solid #dfe5d8;color:#64745a}.button-outline:hover{background:#f1f5ec}.phone-connect{min-height:33px;font-size:11px;padding:6px 13px}.button-subtle{background:#f1f3ed;color:#73816b}.button-danger{background:#b95f53;color:white}.button-danger:hover{background:#a34c41}.icon-button{width:33px;height:33px;display:inline-flex;align-items:center;justify-content:center;border-radius:7px;color:#929c8b;flex-shrink:0}.icon-button:hover{background:#edf1e7;color:var(--green)}.icon-button.small{width:23px;height:23px}.icon-button.small svg{width:15px;height:15px}.mobile-menu{display:none}.main-content{padding:35px 43px 0;max-width:1700px;margin:0 auto}.page-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:25px}.eyebrow{font-size:8px;color:#a6ae9a;letter-spacing:2.1px;margin-bottom:6px}h1{font-size:26px;line-height:1.5;font-weight:650;margin:0;letter-spacing:1px}.title-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:#c7d3ad;margin-left:10px;vertical-align:middle}.page-heading p{margin:6px 0 0;font-size:11px;color:#99a08f;letter-spacing:.3px}.welcome-banner{background:#eaf0df;min-height:252px;border-radius:14px;position:relative;overflow:hidden;display:flex;justify-content:space-between;padding:27px 34px;margin-bottom:23px}.welcome-banner:after{content:"";position:absolute;inset:auto -50px -120px auto;background:#e2ead5;width:390px;height:390px;border-radius:50%;pointer-events:none}.welcome-text{position:relative;z-index:2;flex-shrink:0}.tiny-label{font-size:9px;letter-spacing:1.5px;color:#809375;display:flex;align-items:center;gap:6px}.tiny-label>span{background:#91a17a;width:4px;height:4px;border-radius:50%}.welcome-text h2{font-size:29px;font-weight:500;letter-spacing:3px;line-height:1.5;margin:10px 0 10px;color:#3c5e43}.hand-star{color:#bdad6d;display:inline-block;transform:rotate(-10deg);font-size:36px;line-height:0;margin-left:12px;vertical-align:middle}.welcome-text p{font-size:10px;line-height:2;color:#849276;letter-spacing:.3px;margin:0}.banner-button{background:#fffefa;color:#657a52;border:1px solid #dce4cc;margin-top:17px;font-size:10px;padding:7px 12px;min-height:31px;border-radius:6px;gap:15px}.banner-button:hover{background:white}.banner-button svg{width:13px;height:13px}.banner-art{position:absolute;right:30px;top:8px;height:260px;width:460px;z-index:1}.banner-art>svg{width:100%;height:100%}.art-caption{font-family:Georgia,serif;font-style:italic;font-size:10px;letter-spacing:1px;color:#8b9c7b;position:absolute;bottom:4px;right:78px}.banner-corner{position:absolute;right:19px;top:16px;color:#a1af8b;writing-mode:vertical-rl;font:italic 9px Georgia,serif;letter-spacing:1px;z-index:2}.stats-row{display:grid;grid-template-columns:repeat(3,1fr);gap:17px;margin-bottom:28px}.stat{background:#fff;border:1px solid #e8ece2;border-radius:11px;padding:18px 20px;display:flex;align-items:center;gap:15px;position:relative;min-width:0}.stat-icon{width:42px;height:42px;border-radius:12px}.stat-icon svg{width:20px;height:20px}.sage{background:#eef3e8;color:#91a780}.rose{background:#fbefea;color:#c5a191}.sand{background:#f8f3e6;color:#b8a878}.stat small{display:block;font-size:10px;color:#9ba391;margin-bottom:2px}.stat strong{font-size:23px;line-height:1.4;font-weight:600;letter-spacing:-.4px}.stat em{font-size:9px;font-style:normal;color:#acb3a1;font-weight:400;margin-left:8px;letter-spacing:0}.stat-decoration{color:#c8d2ba;font-size:26px;margin-left:auto;align-self:flex-start;line-height:1.2}.stat:nth-child(2) .stat-decoration{color:#e4cec1;font-size:23px}.storage-tag{margin-left:auto;font-size:8px;color:#a1aa92;border:1px solid #ebeee6;padding:2px 5px;border-radius:4px;align-self:flex-start;white-space:nowrap}.storage-tag span{display:inline-block;width:4px;height:4px;border-radius:50%;background:#91ae78;margin-right:3px;margin-bottom:1px}.library{min-height:250px}.library-toolbar{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #e2e8db;min-height:51px;gap:12px}.library-tabs{align-self:stretch;display:flex;align-items:stretch;flex-shrink:0}.library-tab{font-size:12px;padding:0 1px;color:#526c45;position:relative;letter-spacing:.5px;font-weight:600;white-space:nowrap}.library-tab:after{content:"";height:2px;background:#66825a;position:absolute;inset:auto 0 -1px;border-radius:2px}.library-tab>span{font-size:9px;letter-spacing:0;background:#eaf0e1;border-radius:5px;margin-left:8px;padding:1px 6px;color:#839276;font-weight:500}.library-tools{display:flex;align-items:center;gap:11px;padding-bottom:10px;padding-top:5px}.search-field{display:flex;align-items:center;gap:7px;color:#a7af9b;background:#fff;border:1px solid #e5eadd;border-radius:7px;padding:7px 9px}.search-field svg{width:14px;height:14px}.search-field input{background:none;border:0;outline:none;font-size:10px;width:133px;color:#5f6b56;border-radius:1px}.search-field input::placeholder{color:#a8af9f}#month-filter{background:#fff;border:1px solid #e5eadd;font-size:10px;color:#8f9a83;padding:8px 25px 8px 9px;max-width:125px}.layout-toggle{display:flex;gap:2px;border-left:1px solid #e5eadd;padding-left:7px}.layout-toggle .icon-button{width:28px;height:28px;border-radius:5px}.layout-toggle svg{width:16px;height:16px}.layout-toggle .active{background:#e9efdf;color:#7a9064}.select-toggle{font-size:10px;min-height:28px;padding:4px 9px}.library-content{padding:22px 0}.empty-state{padding:26px 20px 22px;text-align:center;border:1px dashed #dce4d0;border-radius:12px;background:linear-gradient(140deg,#fffffd80,#f2f5ec99)}.empty-illustration{width:100px;height:77px;position:relative;margin:0 auto 16px}.empty-photo{position:absolute;width:58px;height:65px;border:1px solid #d1dcc4;background:white;left:22px;top:7px;transform:rotate(10deg);box-shadow:2px 4px 0 #e3ead9;border-radius:4px;display:flex;align-items:center;justify-content:center;color:#c1cfad;padding-bottom:10px}.empty-photo svg{width:31px;height:31px;stroke-width:1}.empty-photo:before{content:"";position:absolute;width:18px;height:3px;background:#e1e7d6;bottom:9px;left:18px;border-radius:2px}.empty-photo:after{content:"";position:absolute;width:58px;height:65px;border:1px solid #d6dfca;transform:rotate(-20deg);background:#edf2e5;z-index:-1;left:-10px;top:-2px;border-radius:4px}.empty-spark{position:absolute;color:#b5c49b;font-size:21px;left:0;top:0}.empty-spark:last-child{left:auto;right:0;top:46px;font-size:15px}.empty-state h3{font-size:15px;font-weight:550;letter-spacing:.8px;margin:0 0 6px}.empty-state p{font-size:11px;color:#a1aa93;margin:0 auto 17px;line-height:1.9;max-width:360px}.empty-state .button{font-size:11px;min-height:35px;padding:7px 17px}.empty-state .text-button{display:block;margin:14px auto 0;color:#9ca98e;font-size:10px}.first-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;margin-top:18px}.step-card{display:flex;align-items:center;gap:12px;padding:13px 11px}.step-number{width:26px;height:26px;border-radius:50%;background:#eef2e8;font:italic 14px Georgia,serif;display:flex;align-items:center;justify-content:center;color:#a5b08f;flex-shrink:0}.step-card strong{font-size:10px;font-weight:500;color:#7f8d73;display:block;margin-bottom:2px}.step-card p{font-size:9px;color:#adb4a2;margin:0}.page-footer{display:flex;align-items:center;gap:7px;color:#aab29e;font-size:9px;letter-spacing:.5px;border-top:1px solid #e8ece1;padding:21px 0;margin-top:6px}.page-footer svg{width:13px;height:13px}.footer-right{margin-left:auto;font-size:8px;color:#b9bfaf}.photo-section{margin-bottom:28px}.photo-section:last-child{margin-bottom:0}.month-heading{display:flex;align-items:center;gap:10px;margin:0 0 15px}.month-heading h2{font-size:13px;font-weight:550;letter-spacing:.6px;margin:0}.month-heading span{color:#a6af99;font-size:10px}.photo-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(175px,1fr));gap:17px}.photo-card{border-radius:10px;background:#fff;border:1px solid #e8ede1;overflow:hidden;position:relative;transition:box-shadow .2s,transform .2s}.photo-card:hover{box-shadow:var(--shadow);transform:translateY(-2px)}.photo-open{padding:0;display:block;width:100%;text-align:left;border-radius:0}.photo-image{aspect-ratio:1.12;overflow:hidden;background:#eaf0e4;position:relative}.photo-image img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .3s}.photo-card:hover .photo-image img{transform:scale(1.035)}.photo-info{padding:10px 12px}.photo-title{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:550}.photo-meta{display:flex;align-items:center;justify-content:space-between;font-size:9px;color:#a2aa96;margin-top:3px;gap:6px}.photo-meta .album-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:60%}.photo-favorite{position:absolute;top:9px;right:9px;color:#fff;background:#31443133;backdrop-filter:blur(8px);width:29px;height:29px;border-radius:50%;display:flex;justify-content:center;align-items:center}.photo-favorite svg{width:16px;height:16px}.photo-favorite.is-favorite{background:#fff9f1ed;color:#bc887b}.photo-favorite.is-favorite svg{fill:#bc887b;stroke:#bc887b}.photo-checkbox{position:absolute;top:11px;left:11px;width:20px;height:20px;accent-color:var(--green);margin:0;z-index:2;cursor:pointer}.photo-card.selected{outline:2px solid #688b58;outline-offset:2px}.selection-bar{display:flex;align-items:center;gap:15px;padding:12px 15px;background:#eaf0e2;border-radius:8px;margin-top:15px;font-size:11px}.selection-bar label{display:flex;align-items:center;gap:6px;white-space:nowrap}.selection-bar input{accent-color:var(--green)}.selection-bar strong{font-weight:500;white-space:nowrap;color:#7d8e70}#selection-actions{margin-left:auto;display:flex;gap:8px}#selection-actions .button{min-height:28px;font-size:10px;padding:4px 9px}.timeline .photo-grid{grid-template-columns:repeat(auto-fill,minmax(240px,1fr))}.timeline .photo-image{aspect-ratio:1.4}.album-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:20px}.album-card{position:relative;background:#fff;border:1px solid #e4e9dd;border-radius:12px;overflow:hidden}.album-cover{height:160px;background:#eaf0e2;display:flex;align-items:center;justify-content:center;color:#adc09a;overflow:hidden}.album-cover>svg{width:48px;height:48px;stroke-width:1}.album-cover img{height:100%;width:100%;object-fit:cover}.album-card .photo-info{padding:15px}.album-card .photo-title{font-size:13px}.album-card .photo-meta{margin-top:5px}.album-remove{position:absolute;right:8px;bottom:17px}.album-new{min-height:230px;border:1px dashed #cad7bd;border-radius:12px;color:#98aa83;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;font-size:12px;background:#eef3e880}.album-new svg{width:30px;height:30px;stroke-width:1}.loading-state{padding:65px 20px;display:flex;align-items:center;justify-content:center;gap:12px;font-size:12px;color:#99a38d}.spinner{width:18px;height:18px;border:2px solid #d6dfc9;border-top-color:#688451;border-radius:50%;display:inline-block;animation:spin .8s linear infinite}.error-state{padding:35px;text-align:center;color:#a75f51}.error-state p{font-size:12px}.dialog{padding:0;border:1px solid #e1e7d7;border-radius:19px;max-width:540px;width:calc(100% - 32px);color:var(--text);box-shadow:0 30px 90px #20322630;max-height:calc(100dvh - 48px);overflow:auto;background:#fffffc}.dialog::backdrop,.lightbox::backdrop{background:#1a2a2359;backdrop-filter:blur(5px)}.dialog-header{display:flex;align-items:flex-start;justify-content:space-between;padding:26px 27px 16px;gap:12px}.dialog-header h2{font-size:19px;font-weight:600;margin:0 0 4px;letter-spacing:.5px}.dialog-header p{font-size:11px;color:#9ba48f;margin:0}.dialog-header .icon-button{margin:-4px -8px 0 0}.dialog-body{padding:0 27px 27px}.dialog-footer{display:flex;justify-content:flex-end;gap:9px;padding-top:20px}.field{display:block;margin-top:15px}.field>span,.field-label{display:block;font-size:11px;color:#7f8c72;margin-bottom:6px}.field input,.field select,.field textarea{border:1px solid #dfe7d4;background:#fff;width:100%;padding:10px 11px;font-size:12px;color:#516346}.field textarea{resize:vertical;min-height:70px}.field input:focus,.field textarea:focus,.field select:focus{border-color:#9bb584}.field-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.helper-text{font-size:10px;color:#9fa892;line-height:1.9}.drop-zone{border:1.5px dashed #c4d2b7;border-radius:12px;text-align:center;padding:28px 15px;background:#f4f7ee;cursor:pointer;display:flex;flex-direction:column;align-items:center}.drop-zone:hover,.drop-zone.dragging{background:#ecf2e2;border-color:#7b9a63}.drop-zone>span{width:43px;height:43px;border-radius:13px;background:#e5edd9;color:#8da673;margin-bottom:12px}.drop-zone>span svg{width:23px;height:23px}.drop-zone strong{font-size:13px;font-weight:550}.drop-zone p{font-size:10px;color:#9ca98d;margin:7px 0 0}.upload-list{max-height:220px;overflow:auto;margin-top:13px}.upload-row{display:flex;align-items:center;gap:10px;padding:9px 0;border-bottom:1px solid #eef1e7}.upload-thumb{width:39px;height:39px;border-radius:6px;object-fit:cover;background:#eff3e8}.upload-row>div{min-width:0;flex:1}.upload-name{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.upload-size{font-size:9px;color:#a4ad97}.upload-row .icon-button{width:25px;height:25px}.upload-row .icon-button svg{width:14px;height:14px}.upload-summary{display:flex;justify-content:space-between;font-size:10px;color:#96a587;margin:10px 0}.progress-track{height:5px;border-radius:5px;background:#e7eddd;overflow:hidden;margin:13px 0}.progress-fill{height:100%;background:#799963;transition:width .2s;width:0}.upload-error{font-size:11px;color:#a86656;white-space:pre-line;line-height:1.9}.connect-layout{text-align:center}.qr-frame{background:white;border:1px solid #e5eadc;padding:8px;display:inline-block;border-radius:14px;margin:3px 0 13px;line-height:0}.qr-frame img{width:168px;height:168px}.connect-instruction{font-size:12px;color:#738567}.code-display{display:flex;justify-content:center;gap:7px;margin:13px 0}.code-display span{font-size:23px;color:#4d6c3d;background:#eef3e6;border:1px solid #e2e9d8;width:35px;height:43px;line-height:41px;border-radius:7px;font-variant-numeric:tabular-nums}.copy-address{display:flex;background:#f2f5ed;border-radius:8px;margin-top:12px;align-items:center;text-align:left;padding:7px 8px 7px 12px;gap:8px}.copy-address code{font-size:11px;overflow-wrap:anywhere;color:#718161;flex:1}.copy-address .button{font-size:10px;min-height:28px;padding:4px 10px}.connection-notes{text-align:left;font-size:10px;line-height:2;color:#9aa48d;margin-top:17px;padding:13px 16px;background:#f8f8f1;border-radius:9px}.network-select{font-size:11px;background:#fff;border:1px solid #e0e7d6;color:#80936e;padding:7px;width:100%;margin-top:10px}.storage-detail{background:#f0f4e9;border-radius:11px;padding:18px;overflow-wrap:anywhere;font-size:12px;color:#748663;line-height:2}.storage-detail code{font-size:11px;color:#486438}.storage-summary{display:flex;justify-content:space-between;gap:10px;padding:16px 0;border-bottom:1px solid #e5eadc;font-size:12px}.storage-summary span{color:#96a28a}.storage-tip{display:flex;gap:9px;color:#8c997d;font-size:11px;line-height:2;background:#faf7ec;padding:13px;border-radius:8px;margin-top:19px}.storage-tip svg{width:17px;height:17px;margin-top:4px}.lightbox{width:min(1220px,calc(100vw - 40px));height:min(850px,calc(100dvh - 40px));max-width:none;max-height:none;border:0;padding:0;border-radius:16px;overflow:hidden;background:#fbfcf7;color:var(--text)}.lightbox-layout{display:flex;width:100%;height:100%}.lightbox-image-area{flex:1;min-width:0;background:#1c251f;position:relative;display:flex;align-items:center;justify-content:center}.lightbox-image-area>img{max-width:100%;max-height:100%;object-fit:contain}.lightbox-top{position:absolute;top:13px;left:15px;right:15px;display:flex;align-items:center;justify-content:space-between;z-index:1;color:#fff9;font-size:11px}.lightbox-top .icon-button,.lightbox-arrow{background:#ffffff1a;color:#fff;backdrop-filter:blur(5px)}.lightbox-arrow{position:absolute;top:50%;width:34px;height:42px;display:flex;align-items:center;justify-content:center;border-radius:7px;transform:translateY(-50%)}.lightbox-arrow.prev{left:15px}.lightbox-arrow.next{right:15px}.lightbox-info{width:300px;padding:24px;overflow:auto;flex-shrink:0}.lightbox-info h2{font-size:15px;font-weight:550;padding-right:10px;overflow-wrap:anywhere;line-height:1.7;margin:0}.lightbox-actionbar{display:flex;gap:9px;margin:16px 0 22px;padding-bottom:17px;border-bottom:1px solid #e2e8da}.lightbox-actionbar .button{font-size:10px;min-height:32px;padding:6px 9px}.lightbox-info .field{margin-top:14px}.lightbox-info .field input,.lightbox-info .field textarea,.lightbox-info .field select{font-size:11px;padding:8px}.photo-details{font-size:10px;color:#97a28c;line-height:2.2;margin-top:20px;overflow-wrap:anywhere}.photo-details div{display:flex;gap:10px}.photo-details dt{flex-shrink:0;width:48px}.photo-details dd{margin:0;color:#738366}.lightbox-info .dialog-footer{flex-wrap:wrap}.toast-container{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);z-index:100;display:grid;gap:9px;max-width:calc(100vw - 32px);pointer-events:none}.toast{font-size:12px;color:#fff;background:#344f40f5;box-shadow:0 6px 20px #20332722;padding:11px 21px;border-radius:9px;text-align:center;animation:toast-in .2s ease}.toast.error{background:#a86454}.drop-overlay{position:fixed;inset:12px;z-index:110;background:#e8f0dcf5;border:3px dashed #8eac75;border-radius:24px;display:flex;flex-direction:column;align-items:center;justify-content:center;pointer-events:none}.drop-overlay>span>svg{width:65px;height:65px;stroke-width:1}.drop-overlay h2{font-size:28px;font-weight:500;letter-spacing:4px}.drop-overlay p{color:#8e9d7d}.login-screen{min-height:100dvh;background:#edf2e5;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;padding:24px;position:fixed;inset:0;z-index:60;overflow:auto}.login-screen>*{flex-shrink:0}.login-screen .brand{margin:0 0 33px}.login-card{padding:32px;max-width:390px;width:100%;background:#fffffb;border:1px solid #dfe7d3;border-radius:19px;box-shadow:0 18px 55px #2c453812}.login-card h1{font-size:22px;margin:0 0 8px}.login-card p{font-size:12px;color:#9aa58b;margin:0 0 24px}.login-card .button{width:100%;margin-top:19px}.login-card input{font-size:23px;letter-spacing:10px;text-align:center}.login-footer{font-size:10px;color:#a1ad92;margin-top:26px;display:flex;gap:6px;align-items:center}.login-footer svg{width:13px;height:13px}.no-scroll{overflow:hidden}.sidebar-shade{position:fixed;inset:0;background:#243b2c55;z-index:29;border-radius:0}.trash-notice{font-size:11px;padding:12px 15px;margin-bottom:20px;background:#f6f0e2;border-radius:8px;color:#a89970;display:flex;align-items:center;gap:9px}.trash-notice svg{width:17px;height:17px}.request-error{font-size:11px;color:#aa6a59;line-height:1.8;margin-top:12px}.image-fallback{height:100%;display:flex;flex-direction:column;gap:10px;align-items:center;justify-content:center;background:#edf2e5;color:#9aae87;font-size:10px}.image-fallback svg{width:35px;height:35px;stroke-width:1}.lightbox-image-area>.image-fallback{height:100%;width:100%;background:#25352a;color:#a2b594}.lightbox-image-area>.image-fallback svg{width:60px;height:60px}.lightbox-image-area>.image-fallback p{max-width:260px;text-align:center;line-height:2;padding:0 15px}.empty-album-actions{display:flex;gap:12px;justify-content:center}.refresh-note{font-size:9px;color:#aab49e;text-align:right;margin-top:12px}
#lightbox-content{height:100%}.photo-details dd svg{display:inline-block;width:11px;height:11px;vertical-align:middle;margin-left:3px}body:has(dialog[open]){overflow:hidden}html{scrollbar-gutter:stable}
.public-login input{font-size:14px;letter-spacing:1px;text-align:left}.connect-tabs{display:flex;gap:5px;padding:4px;background:#edf2e5;border-radius:9px;margin:0 0 20px}.connect-tab{flex:1;font-size:11px;border-radius:6px;padding:7px;color:#91a07f}.connect-tab.active{background:#fffffb;color:#4a6d3d;box-shadow:0 2px 6px #243e2510}.public-password-box{display:flex;gap:10px;align-items:center;margin:8px 0 15px;padding:11px 12px;background:#eef3e5;border:1px solid #dfe9d2;border-radius:9px;text-align:left}.public-password-box code{font-size:13px;letter-spacing:.7px;overflow-wrap:anywhere;flex:1;min-width:0}.public-password-box .button{font-size:10px;padding:5px 9px;min-height:28px}.topbar-right:has(#logout-button:not([hidden])){gap:12px}
@keyframes spin{to{transform:rotate(360deg)}}@keyframes toast-in{from{transform:translateY(8px);opacity:0}to{transform:translateY(0);opacity:1}}
@media(min-width:1500px){.main-content{padding-left:60px;padding-right:60px}.topbar{padding-left:60px;padding-right:60px}.welcome-banner{min-height:285px;padding:31px 43px}.welcome-text h2{font-size:34px}.banner-art{height:295px;width:550px;right:65px}.welcome-text p{font-size:11px}.stats-row{gap:23px}.photo-grid{grid-template-columns:repeat(auto-fill,minmax(205px,1fr))}.empty-state{padding:37px 20px 30px}}
@media(max-width:1120px){.sidebar{width:205px;padding-left:14px;padding-right:14px}.main{margin-left:205px;width:calc(100% - 205px)}.main-content{padding:27px 27px 0}.topbar{padding:0 27px;height:72px}.brand{font-size:20px;gap:9px}.brand-mark{width:39px;height:43px}.brand small{font-size:7px}.banner-art{right:-22px;width:380px;top:25px;height:233px}.welcome-banner{padding:23px 26px;min-height:256px}.welcome-text h2{font-size:27px}.welcome-text p{font-size:9px}.tiny-label{font-size:8px}.stat{padding:14px 13px;gap:10px}.stat-icon{width:35px;height:35px}.stat strong{font-size:20px}.stat em{font-size:8px;margin-left:5px}.stat-decoration,.storage-tag{display:none}.stats-row{gap:12px}.search-field input{width:105px}.library-tools{gap:8px}.private-label{display:none}.photo-grid{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px}.topbar-right{gap:18px}.first-steps{gap:5px}.step-card{padding:10px 1px;gap:7px}.step-card strong{font-size:9px}.step-card p{font-size:8px}.step-number{width:23px;height:23px}.lightbox-info{width:270px;padding:20px}}
@media(max-width:800px){.sidebar{transform:translateX(-100%);transition:transform .2s;width:238px;padding:27px 20px 0}.sidebar.open{transform:translateX(0)}.main{margin:0;width:100%}.topbar{height:66px;padding:0 23px}.mobile-menu{display:inline-flex;margin-left:-7px}.breadcrumb{gap:10px}.breadcrumb>span:first-of-type,.breadcrumb-divider{display:none}.topbar-right{gap:13px}.main-content{padding:26px 23px 0}.brand{font-size:23px}.brand small{font-size:8px}.page-heading{margin-bottom:22px}.welcome-banner{min-height:247px}.banner-art{right:0;width:365px}.welcome-text h2{font-size:28px}.library-toolbar{flex-wrap:wrap;gap:0}.library-tabs{min-height:43px}.library-tools{margin-left:auto}.lightbox{width:calc(100vw - 20px);height:calc(100dvh - 20px)}.lightbox-info{width:250px;padding:17px}.lightbox-actionbar{gap:5px}.lightbox-actionbar .button{font-size:9px;padding:6px 7px}.sidebar-shade{display:block}.page-footer{margin-top:13px}.footer-right{font-size:7px}}
@media(max-width:560px){.topbar{padding:0 18px;height:59px}.top-avatar{width:28px;height:28px}.phone-connect{font-size:10px;padding:5px 9px;min-height:30px}.phone-connect svg{width:14px;height:14px}.main-content{padding:23px 18px 0}.eyebrow{font-size:6px;letter-spacing:1.7px;margin-bottom:4px}h1{font-size:23px}.page-heading p{font-size:9px;max-width:215px;line-height:1.9}.page-heading>.button{padding:8px 12px;font-size:11px;min-height:35px;gap:5px;margin-top:8px}.page-heading>.button svg{width:15px;height:15px}.welcome-banner{padding:22px 21px;min-height:237px;border-radius:12px;margin-bottom:16px}.welcome-text h2{font-size:27px;letter-spacing:2px;line-height:1.6;margin:10px 0 10px}.welcome-text p{font-size:8px;max-width:175px;line-height:2}.tiny-label{font-size:7px;letter-spacing:1px}.banner-art{width:270px;height:180px;right:-60px;top:61px}.banner-corner{right:10px;font-size:8px}.art-caption{display:none}.welcome-banner:after{width:260px;height:260px;bottom:-70px;right:-100px}.hand-star{font-size:27px;margin-left:8px}.banner-button{font-size:9px;padding:6px 9px;gap:8px;margin-top:15px;min-height:29px}.stats-row{gap:8px;margin-bottom:19px}.stat{padding:13px 9px;gap:0;align-items:flex-start}.stat-icon{display:none}.stat small{font-size:8px;margin-bottom:4px;letter-spacing:0}.stat strong{font-size:20px;white-space:nowrap}.stat em{display:block;margin:0;font-size:7px;line-height:1.6}.stat:last-child strong{font-size:18px;line-height:1.55}.library-toolbar{position:relative}.library-tabs{min-height:43px}.library-tools{width:100%;justify-content:space-between;padding:10px 0 12px}.search-field{padding:6px 8px;flex:1}.search-field input{width:100%;min-width:0;font-size:10px}.search-field svg{width:12px;height:12px}#month-filter{font-size:9px;padding:7px 18px 7px 7px;max-width:102px}.layout-toggle{gap:0;padding-left:5px}.layout-toggle .icon-button{width:25px;height:25px}.select-toggle{position:absolute;top:8px;right:0;font-size:9px;min-height:26px}.library-content{padding-top:18px}.empty-state{padding:28px 15px 23px}.empty-illustration{transform:scale(.9);margin-bottom:11px}.empty-state h3{font-size:13px}.empty-state p{font-size:10px;max-width:255px;line-height:2}.empty-state .button{font-size:10px;min-height:33px}.empty-state .text-button{font-size:9px;margin-top:13px}.first-steps{gap:8px;grid-template-columns:1fr;margin-top:14px}.step-card{padding:2px 12px;gap:12px}.step-card strong{font-size:10px;margin:0}.step-card p{font-size:9px}.step-card>div{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.step-number{width:22px;height:22px;font-size:12px}.page-footer{font-size:8px;padding:18px 0;letter-spacing:0}.footer-right{display:none}.photo-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.photo-info{padding:8px 9px}.photo-title{font-size:10px}.photo-meta{font-size:8px}.photo-image{aspect-ratio:.95}.photo-section{margin-bottom:23px}.month-heading{margin-bottom:11px}.month-heading h2{font-size:12px}.timeline .photo-grid{grid-template-columns:1fr}.timeline .photo-image{aspect-ratio:1.25}.photo-favorite{width:26px;height:26px;top:7px;right:7px}.photo-favorite svg{width:14px;height:14px}.dialog{max-height:calc(100dvh - 24px);width:calc(100% - 24px);border-radius:15px}.dialog-header{padding:23px 21px 15px}.dialog-header h2{font-size:18px}.dialog-header p{font-size:10px}.dialog-body{padding:0 21px 22px}.dialog .button{font-size:11px}.field-grid{grid-template-columns:1fr;gap:0}.drop-zone{padding:24px 10px}.drop-zone p{font-size:9px}.drop-zone strong{font-size:12px}.qr-frame img{width:164px;height:164px}.selection-bar{flex-wrap:wrap;padding:9px;gap:9px;font-size:10px}.selection-bar strong{font-size:10px}#selection-actions{order:4;width:100%;justify-content:flex-start;margin:0}#selection-close{margin-left:auto;width:24px;height:24px}.lightbox-layout{flex-direction:column}.lightbox-image-area{min-height:0;flex:1}.lightbox-info{width:100%;height:300px;padding:19px;flex-shrink:0}.lightbox-info h2{font-size:13px}.lightbox-actionbar{position:absolute;right:17px;bottom:244px;border:0;margin:0;padding:0;gap:6px}.lightbox-actionbar .button{padding:6px 8px;font-size:9px;min-height:29px}.lightbox-info .field-grid{grid-template-columns:1fr 1fr;gap:10px}.lightbox-info .field>span{font-size:10px}.lightbox-info .field{margin-top:11px}.lightbox-info .field textarea{min-height:52px}.lightbox-info .dialog-footer{padding-top:12px}.lightbox-info h2{max-width:50%;min-height:29px}.photo-details{font-size:9px;margin-top:15px}.lightbox-info .field-grid+.field{margin-top:11px}.lightbox-info .field input,.lightbox-info .field textarea,.lightbox-info .field select{padding:7px}.lightbox-top{top:9px;left:10px;right:10px}.album-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.album-cover{height:125px}.album-card .photo-info{padding:12px}.album-card .photo-title{font-size:11px}.album-new{min-height:192px;font-size:11px}.album-remove{bottom:8px;right:4px}.connection-notes{font-size:9px}.trash-notice{font-size:10px;align-items:flex-start}.trash-notice>span{margin-top:2px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
.capture-actions{display:flex;justify-content:center;gap:26px;margin-top:14px}.capture-actions .text-button{font-size:11px}.capture-actions svg{width:16px;height:16px}.video-upload-icon{display:flex;align-items:center;justify-content:center;color:#83a174}.video-upload-icon svg{width:23px;height:23px}.video-badge{position:absolute;right:9px;bottom:9px;border-radius:5px;background:#21382ed9;color:white;font-size:10px;line-height:1;padding:5px 7px;font-variant-numeric:tabular-nums;backdrop-filter:blur(5px)}.video-play-symbol{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:41px;height:41px;border:1px solid #ffffff70;border-radius:50%;background:#1d302855;backdrop-filter:blur(3px);color:white;display:flex;align-items:center;justify-content:center}.video-play-symbol svg{width:23px;height:23px}.lightbox-image-area>video{display:block;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain}.lightbox-image-area:has(video) .lightbox-top{pointer-events:none}.lightbox-image-area:has(video) .lightbox-top button{pointer-events:auto}.lightbox-image-area:has(video) .lightbox-arrow{top:45%}.lan-open-note{display:flex;align-items:center;justify-content:center;gap:6px;font-size:11px;color:#729362;background:#f0f5e9;border-radius:8px;padding:9px 10px;margin:15px 0}.lan-open-note svg{width:15px;height:15px}.library-toolbar{flex-wrap:wrap}.library-tools{flex-wrap:wrap;margin-left:auto}#type-filter{background:#fff;border:1px solid #e5eadd;font-size:10px;color:#8f9a83;padding:8px 22px 8px 9px;max-width:125px}
@media(max-width:1120px){.library-tools{gap:7px}.search-field input{width:110px}#type-filter{max-width:112px;padding-left:7px;padding-right:18px}}
@media(max-width:560px){.library-tools{gap:8px;justify-content:flex-start}.library-tools .search-field{flex:1 1 100%}.library-tools .search-field input{width:100%}#type-filter,#month-filter{font-size:10px;padding:7px 22px 7px 9px;max-width:none}.layout-toggle{margin-left:auto}.video-badge{font-size:9px;bottom:7px;right:7px}.video-play-symbol{width:33px;height:33px}.video-play-symbol svg{width:19px;height:19px}.lan-open-note{font-size:10px}.page-heading>.button{font-size:10px;padding:8px 10px}.stat em{font-size:7px;white-space:normal}}

/* Phone selection stays lightweight, and its primary action never scrolls away. */
.mobile-bottom-nav{display:none}
#dialog-content{display:flex;flex-direction:column;max-height:calc(var(--app-height,100dvh) - 48px);overflow:hidden}
.dialog-header{flex-shrink:0}
.dialog-body{min-height:0;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
.upload-dialog-footer{flex-shrink:0;margin:0;padding:14px 27px 20px;border-top:1px solid var(--line);background:#fffffc}
.upload-preparation{margin:14px 0 8px;padding:10px 12px;border-radius:8px;background:#edf3e5;color:#567548;font-size:12px;line-height:1.7}
.upload-status{margin:12px 0 0;padding:11px 12px;border-radius:9px;background:#eef3e6;color:#597744;font-size:12px;line-height:1.7;overflow-wrap:anywhere}
.upload-status.is-error{background:#fbefe8;color:#a36350}.upload-status.is-success{background:#eaf3e4;color:#567944}
.upload-row-status{font-size:10px;color:#a0aa94;line-height:1.6}.upload-row-status[data-state=done]{color:#638b4e}.upload-row-status[data-state=error]{color:#b0785b}
.upload-more{width:100%;min-height:38px;background:#f1f5eb;color:#789165;border-radius:8px;font-size:12px;margin-top:9px}
.upload-row>.upload-thumb{flex:0 0 39px}
.media-details{margin-top:12px}.media-details>summary{cursor:pointer;color:#7b8b6f;font-size:12px;line-height:1.6;padding:8px 0;border-top:1px solid var(--line)}
@media(min-width:801px){.media-details[open]>summary{display:none}.media-details{margin-top:0}}
@media(max-width:800px){
  html{scrollbar-gutter:auto}
  .icon-button,.button,.capture-actions .text-button{min-height:44px}
  .icon-button{min-width:44px}.icon-button.small{min-width:36px;min-height:36px}
  .photo-favorite{width:40px;height:40px}.lightbox-arrow{width:44px;height:48px}
  .topbar{position:sticky;top:0;z-index:15;background:#fcfdf9;border-bottom:1px solid var(--line)}
  .dialog::backdrop,.lightbox::backdrop{backdrop-filter:none}
  .photo-favorite,.video-badge,.video-play-symbol{backdrop-filter:none}
  .photo-card:hover{transform:none;box-shadow:none}.photo-card:hover .photo-image img{transform:none}
  input,textarea,select{font-size:16px!important}
  .field input,.field select,.field textarea{min-height:44px}
}
@media(max-width:560px){
  .main-content{padding:18px 14px calc(86px + env(safe-area-inset-bottom,0px))}
  .topbar{height:60px;padding:0 14px}.breadcrumb{font-size:13px;gap:5px;min-width:0}.topbar-right{gap:6px}.top-avatar{display:none}
  .phone-connect{font-size:12px;padding:8px 10px;min-height:44px}
  .page-heading{gap:12px;align-items:center;margin-bottom:17px}.page-heading>div{min-width:0}.eyebrow{display:none}
  h1{font-size:23px;letter-spacing:.3px}.page-heading p{font-size:11px;line-height:1.7;max-width:210px;margin-top:5px}
  .page-heading>.button{font-size:12px;min-height:44px;padding:9px 10px;margin:0;gap:5px}
  .welcome-banner{min-height:166px;padding:18px 20px;margin-bottom:15px}.tiny-label{font-size:9px;letter-spacing:.4px}
  .welcome-text h2{font-size:25px;line-height:1.4;margin:8px 0 10px}.welcome-text>p{display:none}
  .banner-button{min-height:38px;font-size:11px;margin-top:7px;padding:8px 11px}.banner-art{width:230px;height:156px;right:-50px;top:12px}
  body.has-media .welcome-banner,body.has-media .first-steps{display:none}
  .stats-row{gap:7px;margin-bottom:17px}.stat{padding:11px 9px}.stat small{font-size:10px}.stat strong{font-size:22px}.stat em{font-size:9px;white-space:normal;line-height:1.6;margin-top:2px}
  .stat:last-child strong{font-size:18px}.library-toolbar{border-bottom-color:#dfe6d6}.library-tab{font-size:14px}
  .library-tabs{min-height:47px}.library-tools{gap:8px;padding:10px 0 12px}
  .search-field{min-height:44px;padding:8px 11px}.search-field svg{width:18px;height:18px}.search-field input{font-size:16px!important}
  #type-filter,#month-filter{flex:1 1 0;min-width:0;max-width:none;font-size:16px!important;min-height:44px;padding:9px 17px 9px 7px}
  .layout-toggle{flex:0 0 auto;margin-left:0;padding-left:5px;gap:0}.layout-toggle .icon-button{width:37px;min-width:37px;height:44px;min-height:44px}.layout-toggle svg{width:18px;height:18px}
  .select-toggle{top:2px;right:0;min-height:42px;font-size:12px;padding:6px 11px}
  .photo-grid{gap:9px}.photo-title{font-size:13px}.photo-meta{font-size:10px}.photo-info{padding:9px 10px}.photo-favorite{width:44px;height:44px}
  .month-heading h2{font-size:14px}.month-heading span{font-size:11px}.empty-state h3{font-size:15px}.empty-state p{font-size:12px}.empty-state .button{min-height:44px;font-size:13px}
  .empty-state .text-button{font-size:12px;min-height:40px}.first-steps{display:none}.page-footer{font-size:10px;padding:16px 0}
  .mobile-bottom-nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));position:fixed;z-index:25;left:0;right:0;bottom:0;padding:5px 10px calc(5px + env(safe-area-inset-bottom,0px));background:#fffffc;border-top:1px solid #e0e7d8;box-shadow:0 -4px 16px #2a443008}
  .mobile-bottom-nav button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-height:54px;font-size:11px;color:#98a48c;border-radius:10px}
  .mobile-bottom-nav svg{width:22px;height:22px}.mobile-bottom-nav button.active{color:#456f34;background:#eff4e7;font-weight:600}
  .mobile-bottom-nav .mobile-upload{color:#456f34}.mobile-upload>[data-icon]{width:31px;height:29px;border-radius:10px;background:#315c48;color:white}.mobile-upload svg{width:21px;height:21px}
  body.keyboard-open .mobile-bottom-nav{display:none}
  .dialog{position:fixed;inset:auto 0 var(--keyboard-offset,0px);margin:0 auto;width:100%;max-width:100%;max-height:calc(var(--app-height,100dvh) - 8px);border:0;border-radius:21px 21px 0 0;overflow:hidden}
  #dialog-content{max-height:calc(var(--app-height,100dvh) - 8px)}
  .dialog-header{padding:19px 18px 13px;align-items:flex-start;gap:8px}.dialog-header h2{font-size:18px;line-height:1.5;letter-spacing:0}.dialog-header p{font-size:11px;line-height:1.7}
  .dialog-header .icon-button{margin:-5px -7px 0 0;min-width:44px;min-height:44px}
  .dialog-body{flex:1;padding:0 18px 16px;min-height:0}.dialog .button{min-height:46px;font-size:14px;padding:10px 14px}
  .dialog .field{margin-top:13px}.dialog .field>span{font-size:12px;margin-bottom:6px}.dialog .field input,.dialog .field select,.dialog .field textarea{padding:11px 12px;font-size:16px!important}
  .drop-zone{padding:20px 12px;border-radius:12px}.drop-zone>span{width:38px;height:38px;margin-bottom:9px}.drop-zone strong{font-size:14px;line-height:1.7}.drop-zone p{font-size:10px;line-height:1.7;margin-top:5px}
  .capture-actions{margin-top:8px;gap:24px}.capture-actions .text-button{font-size:13px;min-height:44px;gap:8px}.capture-actions svg{width:18px;height:18px}
  .upload-preparation{font-size:12px;padding:11px 12px;margin-top:13px}.upload-list{max-height:none;overflow:visible;margin-top:8px}
  .upload-row{min-height:68px;gap:10px}.upload-name{font-size:13px}.upload-size{font-size:11px}.upload-row-status{font-size:10px}
  .upload-row .icon-button{width:44px;height:44px;min-width:44px;min-height:44px}.upload-thumb{width:37px;height:37px}.upload-more{min-height:44px;font-size:13px}
  .upload-row>.upload-thumb{flex-basis:37px}
  #upload-form:has(.upload-row) .drop-zone{min-height:58px;padding:12px}
  #upload-form:has(.upload-row) .drop-zone>span,#upload-form:has(.upload-row) .drop-zone p{display:none}
  #upload-form.is-uploading .drop-zone,#upload-form.is-uploading .capture-actions,#upload-form.is-uploading>.field{display:none}
  .upload-summary{font-size:12px;gap:12px;line-height:1.7;margin-top:12px}.upload-status,.upload-error{font-size:12px;line-height:1.8}.progress-track{height:6px}
  .upload-dialog-footer{display:flex;gap:10px;padding:12px 18px calc(12px + env(safe-area-inset-bottom,0px));border-top:1px solid #e0e7d7;background:#fffffc}
  .upload-dialog-footer .button-primary{flex:1}.upload-dialog-footer .button-outline{padding-left:12px;padding-right:12px}
  .dialog-body .dialog-footer{position:sticky;bottom:-16px;padding:14px 0 0;margin-top:8px;background:#fffffc}
  .selection-bar{font-size:12px;gap:10px;padding:11px}.selection-bar strong{font-size:12px}#selection-actions{gap:7px}#selection-actions .button{min-height:42px;font-size:11px;flex:1;padding:8px 7px}.selection-bar label{min-height:36px}
  .lightbox{width:100%;height:var(--app-height,100dvh);max-height:var(--app-height,100dvh);margin:0;border-radius:0;inset:0}
  .lightbox-layout{flex-direction:column}.lightbox-image-area{flex:1;min-height:180px}.lightbox-top{top:10px;left:12px;right:12px}.lightbox-top .icon-button{width:44px;height:44px}
  .lightbox-info{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:8px 10px;width:100%;height:auto;max-height:50%;padding:13px 16px calc(13px + env(safe-area-inset-bottom,0px));overflow:auto}
  .lightbox-info h2{font-size:14px;max-width:none;min-height:44px;padding:10px 0;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .lightbox-actionbar{position:static;margin:0;padding:0;border:0;gap:7px}.lightbox-actionbar .button{font-size:11px;min-height:44px;padding:9px 10px}
  .media-details{grid-column:1/-1;margin:0}.media-details>summary{font-size:13px;min-height:44px;padding:12px 1px;color:#728463}
  .lightbox-info .field-grid{grid-template-columns:1fr;gap:0}.lightbox-info .field input,.lightbox-info .field textarea,.lightbox-info .field select{font-size:16px!important;min-height:44px;padding:11px}
  .lightbox-info .field>span{font-size:12px}.lightbox-info .field textarea{min-height:75px}.lightbox-info .dialog-footer{position:sticky;bottom:-12px;background:#fbfcf7;padding:12px 0 0}
  .lightbox-info .dialog-footer .button{min-height:44px;font-size:13px}.photo-details{font-size:11px;margin-top:16px}
  .album-cover{height:138px}.album-card .photo-title{font-size:14px}.album-card .photo-meta{font-size:11px}.album-new{min-height:215px;font-size:13px}.album-remove{bottom:6px;right:5px}
}
@media(max-width:359px){
  .main-content{padding-left:12px;padding-right:12px}.page-heading{gap:8px}.page-heading>.button{font-size:11px;padding:9px 8px}.page-heading p{font-size:10px}h1{font-size:21px}
  #type-filter,#month-filter{font-size:16px!important;max-width:none;padding-left:7px;padding-right:17px}.layout-toggle .icon-button{width:31px;min-width:31px}.layout-toggle{padding-left:0}
  .dialog-header,.dialog-body{padding-left:14px;padding-right:14px}.upload-dialog-footer{padding-left:14px;padding-right:14px}.dialog .button{font-size:13px}.stat em{font-size:8px}
}

/* Guests keep the same gallery, with an explicitly read-only set of controls. */
.guest-login-divider{display:flex;align-items:center;gap:12px;color:#a1aa98;font-size:11px;margin:16px 0}
.guest-login-divider::before,.guest-login-divider::after{content:"";height:1px;flex:1;background:var(--line)}
.login-card .guest-login-button{width:100%;justify-content:center;background:#f6f8f1;color:var(--green)}
.guest-login-note{display:block;margin-top:10px;color:#8a9680;font-size:11px;line-height:1.8;text-align:center}
.guest-badge{display:inline-flex;align-items:center;padding:5px 10px;border-radius:20px;background:#eaf0e2;color:#5e7b4b;font-size:11px;white-space:nowrap}
.guest-switch{display:inline-flex;align-items:center;justify-content:center;width:auto!important;min-width:72px;padding:8px 12px;background:#f2f5eb;font-size:12px;color:var(--green);white-space:nowrap}
.readonly-details{margin-top:0}.readonly-details dd{overflow-wrap:anywhere}.readonly-note{white-space:pre-wrap;line-height:1.9}
.guest-mode .private-label,.guest-mode [data-upload],.guest-mode [data-view="trash"],.guest-mode #new-album-sidebar,.guest-mode #connect-top,.guest-mode #upload-top,.guest-mode #welcome-upload,.guest-mode #select-button,.guest-mode .first-steps{display:none!important}
@media(max-width:800px){.guest-mode .mobile-bottom-nav{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:560px){.guest-mode .topbar-right{gap:7px}.guest-badge{padding:5px 8px;font-size:10px}.guest-switch{min-width:68px;font-size:12px;padding:8px 10px}.guest-mode .page-heading>div{width:100%}.guest-mode .page-heading p{max-width:none}.guest-mode .topbar .breadcrumb{gap:3px}.guest-mode .breadcrumb-divider{display:none}.guest-login-note{font-size:11px}}

/* Auto margins center short login screens, then collapse to zero when scrolling is needed. */
.login-screen>:first-child{margin-top:auto}.login-screen>:last-child{margin-bottom:auto}
