/* Microcosmos / visual refinement. Behavior is owned by app.js. */
:root{--mc-bg:#f7f7f2;--mc-paper:#fffefa;--mc-ink:#26332b;--mc-muted:#737c70;--mc-line:#dfe3d9;--mc-accent:#3e5947;--mc-soft:#edf0e7;--mc-shadow:0 4px 8px #24302304,0 16px 40px #24302308;color-scheme:light}
body{background:var(--mc-bg);color:var(--mc-ink);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
header{max-width:1280px;margin:0 auto;padding:26px 48px;background:transparent;border-bottom:1px solid var(--mc-line);gap:20px}header>a{display:block;position:relative;padding-left:40px;font-family:Georgia,"Times New Roman",serif;font-size:26px;font-weight:500;letter-spacing:-1px}header>a:before{content:'✳';position:absolute;left:0;top:3px;font-family:system-ui;font-size:29px;color:#5d755b}header>a span{font-family:system-ui,"Microsoft YaHei",sans-serif;font-size:10px;letter-spacing:2px;color:var(--mc-muted);margin-top:6px}header .btn{font-size:12px;gap:8px;background:#fffefa;min-height:38px;height:38px;padding:0 16px}
main{max-width:1184px;padding:0 40px 56px}.intro{padding:65px 0 62px;gap:80px;align-items:center}.intro-copy{flex:1}.intro small,.eyebrow{font-size:10px;letter-spacing:2.2px;color:#75836b;font-weight:500}.intro small{display:inline-flex;align-items:center;gap:9px}.intro small:before{content:'';width:19px;height:1px;background:#8b9c7d}.intro h1{font-family:Georgia,"Songti SC","STSong",SimSun,serif;font-size:clamp(35px,4.5vw,57px);font-weight:400;letter-spacing:1px;line-height:1.36;margin:23px 0 22px;color:#2c392d}.intro p{font-size:13px;line-height:2.05;color:#7b8377;letter-spacing:.2px;margin:0}.intro-notes{position:relative;min-width:260px;padding:16px 28px 0;margin-right:24px}.paper-note{font-family:"Songti SC",KaiTi,serif;padding:32px 25px 30px;font-size:26px;line-height:1.6;letter-spacing:2px;transform:rotate(4deg);background:#ede8d7;background-image:linear-gradient(105deg,#ffffff36,transparent);border:1px solid #e7e0ce;box-shadow:1px 2px 5px #4b4b3310,4px 14px 28px #4b4b330c}.paper-note:before{background:#dfd3b769;width:48px;height:17px;left:calc(50% - 24px);top:-9px;backdrop-filter:blur(1px)}.paper-note span{font-family:system-ui,"Microsoft YaHei",sans-serif;font-size:11px;color:#8c856e;letter-spacing:.6px;margin-top:8px}.color-dots{gap:9px;margin:28px 0 16px}.color-dots i{width:14px;height:14px;box-shadow:inset 0 0 0 1px #00000008}.color-dots i:nth-child(1){background:#75846a}.color-dots i:nth-child(2){background:#d6cdb9}.color-dots i:nth-child(3){background:#9aadb3}.color-dots i:nth-child(4){background:#b88872}.handwriting{font-size:13px;letter-spacing:1px;color:#97907c;transform:rotate(-2deg)}
.board-toolbar{padding-top:28px;border-top:1px solid var(--mc-line);align-items:center}.board-toolbar .eyebrow{font-size:9px;letter-spacing:1.8px;color:#949b8e}.board-toolbar h2{font-size:22px;font-weight:500;letter-spacing:-.4px;margin-top:9px;display:flex;align-items:center;flex-wrap:wrap;gap:8px}.board-toolbar h2 #count{display:inline-flex;align-items:center;justify-content:center;margin:0 3px;min-width:24px;height:23px;padding:0 7px;font-size:11px;font-variant-numeric:tabular-nums;font-weight:500;color:#627358;background:#e9eee2;border:1px solid #dfe7d7;border-radius:7px}.board-toolbar h2 .weather-overview{gap:7px;margin:0 0 0 8px}.weather-recent-label{font-size:10px;color:#8c9585}.board-actions{gap:8px}.btn{font-size:13px;font-weight:500;min-height:40px;border-radius:9px;transition:background .16s ease,border-color .16s ease,box-shadow .16s ease;letter-spacing:.1px}.btn-primary{background:var(--mc-accent);border-color:var(--mc-accent);color:#fffef9;box-shadow:0 2px 3px #2431230b}.btn-primary:hover{background:#304937;border-color:#304937}.btn:not(.btn-primary){background:#fffefa;color:#58634f;border-color:#dfe4d6}.btn:not(.btn-primary):hover{background:#edf1e6;border-color:#cbd7c0}.icon{width:15px;height:15px}.btn-primary .icon{filter:brightness(0) invert(1)}button:disabled{opacity:.55;cursor:not-allowed}
#status{font-size:11px;line-height:1.7;color:#8a9381;min-height:19px;margin:12px 0 27px;letter-spacing:.2px}#gallery{padding:0;display:block}.day-album{position:relative;margin:0 0 30px;background:var(--mc-paper);border:1px solid #e0e5d8;border-radius:18px;box-shadow:0 2px 3px #24302302;isolation:isolate}.album-toggle{padding:21px 26px;gap:14px;min-height:76px;border:0;background:transparent;color:#43543b;position:relative;text-align:left}.album-toggle:after{content:'';position:absolute;left:26px;right:26px;bottom:0;height:1px;background:#e9ede3}.album-date{font-family:Georgia,"Times New Roman",serif;font-size:24px;line-height:1.2;font-variant-numeric:tabular-nums;letter-spacing:.7px;color:#374833}.album-count{font-size:11px;color:#8d9784;letter-spacing:.1px}.album-action{display:inline-flex;align-items:center;justify-content:center;background:#f0f3eb;color:#687a5c;font-size:11px;padding:7px 11px;border-radius:7px;white-space:nowrap;margin-left:auto}.album-toggle:hover .album-action{background:#e4ecd9;color:#415635}.album-toggle:focus-visible{outline-offset:-5px;border-radius:18px}.album-track{padding:34px 28px 36px;gap:28px;grid-template-columns:repeat(3,minmax(0,1fr));overflow:hidden}.day-album:not(.is-open) .album-track{height:335px;background:radial-gradient(ellipse at 50% 65%,#edf0e580,transparent 65%);cursor:zoom-in}.day-album .card{padding:9px;background:#fff;border:1px solid #e7e9e1;border-radius:5px;box-shadow:var(--mc-shadow)}.card:before,.card:nth-child(2n):before{display:none}.day-album.is-open .card,.day-album.is-open .card:nth-child(n),#gallery:not(.tidy) .day-album.is-open .card:nth-child(5n){margin:0;transform:rotate(-.65deg);transition:box-shadow .2s ease}.day-album.is-open .card:nth-child(3n+2){transform:rotate(.65deg)}.day-album.is-open .card:nth-child(3n){transform:rotate(-.2deg)}.day-album.is-open .card:hover,.day-album.is-open .card:focus-within{box-shadow:0 4px 8px #24302306,0 16px 32px #24302312;z-index:4}.day-album:not(.is-open) .card{top:28px;width:202px;padding:9px;box-shadow:0 2px 5px #2b3c2710,0 14px 30px #2b3c2712;border-radius:4px}.day-album:not(.is-open) .card:first-child{transform:translateX(-50%) rotate(-3deg)}.day-album:not(.is-open) .card:nth-child(3n+2){transform:translateX(-33%) rotate(8deg)}.day-album:not(.is-open) .card:nth-child(3n){transform:translateX(-68%) rotate(-10deg)}
.poster.photo-only{background:#f1f2ec;border-radius:2px;min-height:120px}.poster.photo-only>img{display:block;width:100%;height:auto;image-rendering:auto}.poster.photo-only>img+img{margin-top:8px}.poster.photo-only>span{font-size:12px;color:#8a9580}.photo-footer{grid-template-columns:minmax(0,1fr) 34px;gap:8px;padding:3px 5px 6px}.photo-copy h3{font-family:system-ui,"PingFang SC","Microsoft YaHei",sans-serif;font-size:14px;font-weight:500;line-height:1.65;letter-spacing:.15px;margin:12px 0 5px;color:#405038}.photo-caption{font-size:12px;line-height:1.85;color:#838b7b;letter-spacing:.1px}.more-menu{margin-top:8px}.more-menu>summary{width:34px;height:34px;border-radius:8px;font-size:24px;color:#7a866e}.more-menu>summary:hover,.more-menu[open]>summary{background:#edf1e7;color:#425e34}.more-options{width:180px;margin-left:-146px;padding:6px;background:#fffefb;border:1px solid #e0e5d7;border-radius:12px;box-shadow:0 5px 10px #2f3f2508,0 16px 35px #2f3f2514}.more-options>a,.more-options>button{padding:11px 12px;font-size:12px;min-height:40px;border-radius:7px;gap:11px;color:#536448}.more-options>a:hover,.more-options>button:hover{background:#f1f4eb}.more-options .delete-option{color:#ab6258}.more-options .delete-option:hover{background:#f9efeb}
.day-weather{gap:5px}.weather-sticker{gap:4px;font-size:10px;color:#788266;background:#f7f6eb;border:1px solid #ece9d7;border-radius:8px;padding:4px 7px}.weather-picture{font-size:19px;filter:none}.weather-unrecorded{font-size:10px;color:#98a08f}.weather-overview .weather-sticker{background:transparent;border-color:transparent;padding:0 3px}.weather-overview .weather-picture{font-size:17px}#empty{max-width:none;padding:60px 24px;text-align:center;transform:none;background:#fffefa;border:1px dashed #d5decb;border-radius:18px;margin:0 0 30px;box-shadow:none}#empty h3{font-family:Georgia,"Songti SC",serif;font-size:24px;font-weight:400;margin:18px 0 10px}#empty p{font-size:13px;line-height:1.9;color:#87917c}.empty-steps{font-size:11px;gap:28px;color:#98a089}
#editor{margin-top:42px;border:1px solid #dbe3d2;background:#fffefb;border-radius:18px;box-shadow:0 12px 40px #24302308}.editor-heading{padding:23px 28px;background:#f2f5ec;border-bottom:1px solid #e5ebde;gap:14px}.editor-heading h2{font-size:19px;font-weight:500;margin-top:7px;color:#42553a}.editor-heading .eyebrow{font-size:9px;color:#8d9c7f}.editor-heading .btn{font-size:11px}#edit-state{font-size:10px;color:#8c997f;margin-left:10px;font-weight:400}#editor-content{padding:26px 28px 24px}#editor label{font-size:12px;line-height:1.7;color:#768269;margin:16px 0 8px}#editor label input,#editor textarea{margin-top:8px}.input,.textarea,.select{border-color:#dfe5d8;background:#fffefb;color:#42523a;border-radius:9px;font-size:13px;box-shadow:none}.input{height:44px}.textarea{padding:12px;line-height:1.85}.input:focus,.textarea:focus,.select:focus{outline:2px solid #c5d5b5;outline-offset:1px;border-color:#90a77c}.input::placeholder,.textarea::placeholder{color:#a0a994}#title{max-width:600px}.weather-field .select,#text-weather{max-width:340px;background:#fafbf5;height:44px}.weather-field small{font-size:11px;color:#98a18e;line-height:1.8}.tools{padding:18px 0 22px;gap:8px;margin:0;align-items:center}.tools .btn{font-size:12px}.tools label.upload{font-size:12px;color:#657658}.workspace{background:#f3f5ef;background-image:radial-gradient(#c6d2bc70 .7px,transparent .7px);background-size:18px 18px;padding:28px;border:1px solid #e5eadd;border-radius:12px;gap:26px;grid-template-columns:minmax(0,600px) minmax(180px,1fr)}#canvas{background:#fffdf5;border:1px solid #e8e8df;box-shadow:0 3px 7px #26302406,0 16px 30px #2630240c;border-radius:3px}aside{padding:18px;background:#fffefb;border:1px solid #e0e7d7;border-radius:10px}aside summary{font-size:13px;color:#5a6e4c}aside summary span{font-size:10px;color:#9ca68f}aside p{font-size:11px;line-height:1.9;color:#9aa58f}#editor aside label{font-size:11px;margin-top:18px}.editor-hint{font-size:11px;line-height:1.9;color:#9aa28f;margin-top:17px}.range{--range-fill:0;color:#7c946a}
#text-dialog .modal-box,#login-dialog .modal-box,#confirm-dialog .modal-box{padding:30px;background:#fffefa;color:#405236;border:1px solid #e2e7d9;border-radius:20px;box-shadow:0 24px 80px #15230e26;max-height:85dvh;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#d7dfcc transparent}#text-dialog .modal-box{max-width:540px}#login-dialog .modal-box,#confirm-dialog .modal-box{max-width:430px}#text-dialog h2,#login-dialog h2,#confirm-dialog h2{font-size:22px;font-weight:500;letter-spacing:-.5px;margin:0 0 18px}#text-dialog label,#login-dialog label{font-size:12px;color:#7c8a6e;margin:18px 0 8px}#text-dialog input,#text-dialog textarea,#text-dialog .select{margin-top:8px}#text-dialog .text-muted,#login-dialog p,#confirm-message{font-size:12px;line-height:1.9;color:#87957a}#login-dialog .login-note{font-size:11px;color:#9ca68f}.modal-action{gap:8px;margin-top:24px}.modal-action .btn{min-width:76px;font-size:12px}#login-error,#text-error{font-size:12px;color:#ac5f55}dialog::backdrop{background:#25311e59;backdrop-filter:blur(5px)}
.caption-presets{margin:12px 0 20px}.preset-drawer{background:#f7f9f1;border:1px solid #e4eadb;border-radius:10px}.preset-drawer>summary{padding:13px 15px;font-size:12px;line-height:1.7;color:#7b8e67}.preset-body{padding:0 12px 12px}.preset-categories{gap:5px;margin:0 0 10px}.preset-categories button{padding:6px 10px;font-size:11px;border:1px solid transparent;background:transparent;border-radius:7px;color:#8c9a7d;min-height:30px}.preset-categories button[aria-pressed=true]{background:#e5eddc;border-color:#dce7d0;color:#546e40}.preset-phrase{padding:10px 12px;background:#fffefa;color:#7b8970;font-size:12px;line-height:1.85;border-radius:7px;border:1px solid #eef0e6}.preset-phrase:hover{background:#ecf2e3;color:#4d693b}.preset-feedback{font-size:10px!important;line-height:1.8!important;color:#9ca68f!important}
footer{max-width:1104px;margin:0 auto;padding:26px 24px 35px;border-top:1px solid var(--mc-line);font-size:11px;color:#939e87;letter-spacing:.2px}footer span{font-size:9px;color:#a9b09e;margin-top:8px;letter-spacing:1.3px}:focus-visible{outline:2px solid #7d9867;outline-offset:4px}summary,button,a,input,textarea{-webkit-tap-highlight-color:transparent}
@media(max-width:1000px){.intro{gap:35px}.intro-notes{margin-right:0;min-width:220px;padding:15px}.album-track{gap:23px;padding:30px 24px}.album-toggle{gap:10px}.workspace{grid-template-columns:minmax(0,1fr)}.album-count{font-size:10px}.album-date{font-size:22px}}
@media(max-width:850px){header{padding:23px 28px}main{padding:0 28px 45px}.intro{padding:48px 0}.intro h1{font-size:43px}.album-track{grid-template-columns:repeat(2,minmax(0,1fr))}.board-toolbar{flex-direction:row;align-items:center}.board-toolbar h2{font-size:20px}.album-toggle{padding:20px;flex-wrap:wrap}.album-toggle:after{left:20px;right:20px}.album-date{flex-basis:auto}.album-toggle .day-weather{margin-left:0;justify-content:flex-start}.album-count{flex-basis:auto}.album-action{margin-left:auto}.board-toolbar h2 .weather-overview{display:inline-flex;margin:0 0 0 5px}.workspace{padding:20px}.more-options>a,.more-options>button{min-height:42px}}
@media(max-width:620px){header{padding:20px}header>a{font-size:23px;padding-left:33px}header>a:before{font-size:25px}header>a span{font-size:9px;letter-spacing:1.3px}header .btn{padding:0 11px;font-size:11px;min-height:38px}main{padding:0 18px 35px}.intro{padding:38px 4px 40px;gap:20px}.intro h1{font-size:36px;letter-spacing:.3px;line-height:1.42;margin:20px 0 17px}.intro small{font-size:8px;letter-spacing:1.4px}.intro p{font-size:11px;line-height:1.95}.intro-notes{min-width:0;width:112px;padding:0;flex-shrink:0}.paper-note{padding:24px 10px 20px;font-size:17px;letter-spacing:.5px}.paper-note span{font-size:9px;line-height:1.8;margin-top:8px}.paper-note:before{width:34px;left:calc(50% - 17px);height:13px;top:-7px}.color-dots{margin:22px 0 13px;gap:7px}.color-dots i{height:12px;width:12px}.handwriting{font-size:10px;letter-spacing:0}.board-toolbar{padding-top:25px;align-items:flex-start;gap:10px}.board-toolbar .eyebrow{font-size:8px;letter-spacing:1.4px}.board-toolbar h2{font-size:19px;gap:5px}.board-toolbar h2 .weather-overview{flex-basis:100%;display:flex;margin:7px 0 0}.board-actions{width:auto;flex-shrink:0;padding-top:8px}.board-actions .btn{padding:8px 11px;font-size:11px;min-height:38px}.album-toggle{padding:19px 16px;gap:10px 8px}.album-toggle:after{left:16px;right:16px}.album-date{font-size:21px;flex-basis:48%}.album-toggle .day-weather{margin-left:auto}.album-count{flex-basis:55%;font-size:10px}.album-action{font-size:10px;padding:6px 9px}.day-album{border-radius:14px;margin-bottom:22px}.album-track{grid-template-columns:minmax(0,1fr);padding:26px 18px 28px;gap:28px}.day-album:not(.is-open) .album-track{height:310px}.day-album:not(.is-open) .card{width:188px;top:25px}.day-album.is-open .card{padding:9px}.weather-sticker{font-size:10px;padding:3px 6px}.weather-picture{font-size:18px}.photo-footer{padding:3px 5px 8px}.photo-copy h3{font-size:15px}.photo-caption{font-size:12px;line-height:1.9}.more-menu>summary{width:36px;height:40px}#status{margin:12px 0 22px;font-size:10px}#editor{margin-top:30px;border-radius:14px}.editor-heading{padding:18px 16px}.editor-heading h2{font-size:17px}.editor-heading .btn{font-size:10px;padding:0 10px;min-height:36px}#edit-state{display:block;margin:5px 0 0}#editor-content{padding:17px 16px}.workspace{padding:12px;gap:16px}.tools{padding:15px 0 18px;gap:7px}.tools .btn{font-size:11px;min-height:40px}#text-dialog .modal-box,#login-dialog .modal-box,#confirm-dialog .modal-box{padding:24px 20px;border-radius:17px}.input,.textarea,.select{font-size:16px}.preset-categories button{min-height:36px}.preset-phrase{padding:12px;font-size:12px}.preset-drawer>summary{padding:14px 12px}.more-options>a,.more-options>button{min-height:44px}.modal-action .btn{min-height:44px}#empty{padding:45px 18px}.empty-steps{gap:14px;font-size:10px}footer{margin:0 18px;padding:25px 10px 30px}.board-toolbar h2 .weather-overview .weather-recent-label{font-size:10px}}
@media(max-width:360px){.intro{gap:12px}.intro h1{font-size:30px}.intro-notes{width:94px}.paper-note{font-size:15px;padding:20px 8px}.intro p{font-size:10px}header>a{font-size:21px}header .btn{font-size:10px;padding:0 9px}.album-date{font-size:19px}.weather-sticker{gap:2px;padding:3px 5px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important;scroll-behavior:auto!important}}
/* Date filter: local presentation only. */
.header-actions{display:flex;align-items:center;gap:10px}.date-filter{position:relative;z-index:20}.date-filter>summary{display:flex;align-items:center;justify-content:center;gap:8px;list-style:none;min-height:38px;padding:0 13px;background:#fffefa;border:1px solid #dfe4d6;border-radius:9px;font-size:12px;color:#69785d;cursor:pointer;white-space:nowrap}.date-filter>summary::-webkit-details-marker{display:none}.date-filter>summary:hover,.date-filter.has-filter>summary{background:#edf2e6;border-color:#cddcc2;color:#4f6b3e}.filter-panel{position:absolute;top:calc(100% + 12px);right:0;width:286px;padding:21px;background:#fffefa;border:1px solid #e0e6d6;border-radius:15px;box-shadow:0 8px 15px #273c1d08,0 22px 60px #273c1d1c}.filter-heading{font-size:16px;font-weight:500;color:#48603a}.filter-panel>p{font-size:11px;line-height:1.8;color:#8d9a80;margin:7px 0 16px}.filter-panel label{display:block;margin:12px 0 6px;font-size:11px;color:#7d8d70}.filter-panel .input,.filter-panel .select{display:block;width:100%;max-width:100%;font-size:13px;height:40px;margin-top:7px;background:#fafbf5}.filter-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:20px}.filter-actions .btn{font-size:12px;padding:0 14px}header .filter-actions .btn-primary{background:#3e5947;color:white;border-color:#3e5947}@media(max-width:620px){header{flex-wrap:wrap;gap:16px}header>a{flex:1}.header-actions{gap:7px;flex-wrap:wrap;justify-content:flex-end}.date-filter>summary{font-size:11px;gap:5px;padding:0 9px}.filter-panel{right:0;width:min(286px,calc(100vw - 40px));padding:19px}.filter-panel .input,.filter-panel .select{font-size:16px}.filter-actions .btn{min-height:44px}header>a span{letter-spacing:.5px}}@media(max-width:400px){header>a{flex-basis:100%}.header-actions{width:100%;justify-content:space-between}.date-filter{flex:1}.date-filter>summary{justify-content:space-between;padding:0 12px}.filter-panel{left:0;right:auto}}
/* Stable ID-based keepsakes: automatically attached to existing and new photos. */
.day-album .card[data-decoration]{overflow:visible}.day-album .card[data-decoration]:before{display:block;position:absolute;content:'';pointer-events:none;z-index:3;left:calc(50% - 27px);top:-9px;width:54px;height:16px;border-radius:1px;background:repeating-linear-gradient(90deg,#d9cdb64d 0px,#d9cdb64d 7px,#cbbd9d55 7px,#cbbd9d55 8px);border:1px solid #d3c6ab26;transform:rotate(-4deg);box-shadow:0 1px 2px #564c2810}.day-album .card[data-decoration=pin]:before{width:13px;height:13px;top:-7px;left:calc(50% - 6px);border:1px solid #a1b08f;background:radial-gradient(circle at 30% 25%,#e4ead8,#9baa83 68%,#80956d);border-radius:50%;transform:none;box-shadow:1px 2px 3px #42513225}.day-album .card[data-decoration=clip]:before{width:12px;height:28px;top:-21px;left:20px;background:transparent;border:2px solid #a2ad99;border-radius:8px;transform:rotate(-8deg);box-shadow:inset 0 0 0 2px #fffefc,0 1px 2px #52624418}.day-album .card[data-decoration=stamp]:before{width:46px;height:14px;top:-7px;left:calc(50% - 23px);background:#d7dfcc99;border:1px dashed #aab69a66;transform:rotate(4deg)}.photo-keepsake{display:flex;align-items:center;gap:6px;justify-content:flex-end;padding:3px 5px 2px;min-height:20px;pointer-events:none;user-select:none;color:#a3ab96}.photo-keepsake img{height:13px;width:13px;opacity:.4}.photo-keepsake span{font-size:9px;font-family:Georgia,serif;letter-spacing:.6px;font-style:italic}.day-album .card[data-decoration=stamp] .photo-keepsake{justify-content:flex-start}.day-album .card[data-decoration=stamp] .photo-keepsake span{font-family:system-ui,sans-serif;font-style:normal;font-size:8px;text-transform:uppercase;letter-spacing:1px;border-bottom:1px dashed #c4ccb9;padding-bottom:2px}.day-album:not(.is-open) .photo-keepsake{display:none}.day-album:not(.is-open) .card[data-decoration]:before{pointer-events:none}.album-track{background-image:radial-gradient(#bfcbb322 .7px,transparent .7px);background-size:21px 21px}@media(max-width:620px){.photo-keepsake{padding-top:3px}.photo-keepsake span{font-size:9px}}
/* Long-term library and mobile upload workflow */
.library-summary{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:11px;color:#8a967d;padding:14px 0 0}.library-summary span:last-child{color:#a0aa95}.more-days{display:block;margin:15px auto 32px}.upload-box{max-width:760px!important}.manage-box{max-width:650px!important}.upload-heading{display:flex;align-items:center;justify-content:space-between;gap:15px}.upload-heading h2{font-size:23px;font-weight:500;margin:5px 0 0}.upload-heading small{font-size:9px;letter-spacing:2px;color:#87997b}.upload-heading .btn{flex-shrink:0}.upload-intro{font-size:13px;line-height:1.9;color:#87957b;margin:17px 0}.upload-drop.btn{display:flex;align-items:center;justify-content:center;gap:10px;border:1px dashed #a5b897;background:#f0f5e8;min-height:86px;margin:15px 0 8px;color:#5d784c;border-radius:12px;font-size:14px;cursor:pointer}.upload-limit{font-size:11px;line-height:1.9;color:#949f89;margin:10px 0 16px}.upload-settings{display:grid;grid-template-columns:1fr 1fr;gap:12px}.upload-settings label,.batch-label{display:block;font-size:12px;color:#7e8d70;margin:12px 0}.upload-settings .input,.upload-settings .select,.batch-label textarea{display:block;width:100%;margin-top:8px;font-size:13px}.batch-label textarea{line-height:1.8}.upload-queue{display:grid;gap:12px;margin-top:20px}.queue-row{display:grid;grid-template-columns:76px minmax(0,1fr) 66px;gap:13px;align-items:center;padding:12px;border:1px solid #e2e9d8;border-radius:12px;background:#fafcf6}.queue-row>img{width:76px;height:88px;object-fit:cover;border-radius:6px}.queue-copy{display:grid;grid-template-columns:1fr 155px;gap:6px 10px;min-width:0}.queue-copy .input{width:100%;min-width:0;font-size:12px;padding:8px;height:39px}.queue-note{grid-column:1/-1;font-size:11px;line-height:1.7;color:#8a967e;margin:0;overflow-wrap:anywhere}.queue-error{color:#ae6356}.queue-row>.btn{font-size:11px;padding:0 9px}.upload-footer{display:flex;justify-content:space-between;gap:10px;position:sticky;bottom:-30px;padding:17px 0 3px;background:#fffefa;border-top:1px solid #e7ebdf;margin-top:20px}#upload-feedback,#backup-feedback{font-size:12px;line-height:1.85;color:#839471;margin-top:16px;overflow-wrap:anywhere}#storage-info{font-size:15px;line-height:1.8;margin:25px 0 12px;color:#5d7849}#storage-progress{color:#7c9966;height:7px;width:100%}.manage-box h3{font-size:17px;margin:28px 0 15px}.trash-row{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:13px 0;border-bottom:1px solid #e6ebde;font-size:13px}.trash-row>span{overflow-wrap:anywhere}.trash-row>.btn{flex-shrink:0}#trash-list{font-size:13px;line-height:1.8;color:#839173}#collection-date,#text-date{max-width:340px}#editor label small{display:block;font-size:11px;color:#929f86;margin-top:6px}.header-actions{flex-wrap:wrap}header #manage{font-size:11px}#upload-dialog .modal-box,#manage-dialog .modal-box{background:#fffefa;padding:30px;max-height:88dvh;overflow:auto;overscroll-behavior:contain;border:1px solid #e0e7d6;border-radius:18px}#upload-dialog .caption-presets{max-width:none}#batch-caption-presets .preset-list{max-height:200px;overflow:auto}@media(max-width:620px){.intro{padding:26px 3px 30px}.intro h1{font-size:32px}.intro-notes{width:100px}.paper-note{padding:20px 9px;font-size:16px}.library-summary{font-size:10px;padding-top:12px}.header-actions{justify-content:flex-start;width:100%;gap:7px}.date-filter{flex:1}.date-filter>summary{justify-content:space-between}.filter-panel{left:0;right:auto}#upload-dialog .modal-box,#manage-dialog .modal-box{padding:23px 16px 15px;border-radius:16px;max-height:94dvh;width:calc(100% - 16px)}.upload-heading h2{font-size:21px}.upload-heading small{font-size:8px}.upload-intro{font-size:12px}.upload-drop.btn{min-height:90px}.upload-settings{grid-template-columns:minmax(0,1fr);gap:0}.upload-settings .input,.upload-settings .select,.batch-label textarea{font-size:16px}.queue-row{grid-template-columns:60px minmax(0,1fr) 54px;padding:9px;gap:8px}.queue-row>img{width:60px;height:88px}.queue-copy{grid-template-columns:minmax(0,1fr);gap:6px}.queue-copy .input{font-size:16px;height:40px}.queue-note{font-size:10px}.queue-row>.btn{padding:0 6px;min-height:44px;font-size:10px}.upload-footer{bottom:-15px;padding:14px 0 6px}.upload-footer .btn{min-height:46px;font-size:12px}.upload-footer .btn-primary{min-width:110px}.upload-limit{font-size:10px}.trash-row .btn{min-height:44px}.more-days{min-height:44px}.intro-copy p{font-size:11px}#text-dialog .modal-box{max-height:92dvh}.album-action{min-height:36px}.more-menu>summary{min-height:44px}}

@media(max-width:620px){.queue-row{grid-template-columns:60px minmax(0,1fr)}.queue-row>img{grid-row:1/3}.queue-row>.btn{grid-column:2;justify-self:end;min-height:36px}.queue-copy .input{min-width:0;width:100%}}

/* Restrained photographic motion. */
.day-album.is-open .card{transition:box-shadow .22s ease;transform:translateY(0)}
.motion-exit{position:fixed;inset:0;border:0!important;background:transparent!important;pointer-events:none;z-index:30;margin:0!important;box-shadow:none!important;overflow:visible!important}
@media(hover:hover) and (pointer:fine){.day-album.is-open .card:hover{transform:translateY(-2px);box-shadow:0 14px 30px #34463516}}
@media(hover:none){.day-album.is-open .card:active{box-shadow:0 5px 16px #34463514}}
@media(prefers-reduced-motion:reduce){.day-album.is-open .card:hover{transform:none}}

.day-album.is-open .card{transition:transform .22s ease,box-shadow .22s ease}
