:root{color-scheme:dark;--bg:#141015;--wine:#54242e;--wine-dark:#29141c;--ivory:#f4ead9;--paper:#eae0cd;--ink:#322922;--gold:#c9a872;--muted:#ad9e9b;--serif:Georgia,'Times New Roman',serif;--sans:Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;--ease:cubic-bezier(.19,1,.22,1)}
*{box-sizing:border-box}html{scroll-behavior:smooth;scrollbar-color:#735a50 #21191c}body{margin:0;min-height:100vh;background:radial-gradient(ellipse at 20% -20%,#40313a55,transparent 42%),radial-gradient(ellipse at 85% 50%,#572e3722,transparent 48%),#141015;color:var(--ivory);font-family:var(--sans);-webkit-font-smoothing:antialiased}body:has(dialog[open]){overflow:hidden}button,input{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.38}[hidden]{display:none!important}button:focus-visible,input:focus-visible,[tabindex]:focus-visible{outline:2px solid var(--gold);outline-offset:5px}::selection{background:#c9a872;color:#21151c}.grain{position:fixed;inset:0;z-index:50;pointer-events:none;opacity:.13;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' opacity='.46' filter='url(%23g)'/%3E%3C/svg%3E");mix-blend-mode:soft-light}.eyebrow,.page-kicker,.edition{font-size:.67rem;font-weight:600;letter-spacing:.22em;text-transform:uppercase;color:var(--gold);line-height:1.5}.wordmark{font-family:var(--serif);font-size:clamp(1.05rem,1.6vw,1.45rem);letter-spacing:-.065em;color:#f9f1e3;white-space:nowrap}.wordmark::before{content:'✦';color:var(--gold);font-size:.65em;display:inline-block;margin-right:.62rem;vertical-align:12%}.topline{position:absolute;top:0;left:0;right:0;z-index:3;display:flex;align-items:center;justify-content:space-between;padding:2.15rem 4.5vw;border-bottom:1px solid #c9a87220}.edition{color:#b8a79e}.login-screen{position:relative;min-height:100svh;overflow:hidden;isolation:isolate;background:radial-gradient(ellipse at 25% 53%,#6a34414d 0,transparent 42%),radial-gradient(ellipse at 95% 12%,#47333b55,transparent 47%)}.login-screen:after{content:'';position:absolute;inset:7.6rem 4.5vw 2.7rem;border:1px solid #b59f7920;z-index:-1;pointer-events:none}.auth-layout{min-height:100svh;max-width:1350px;margin:auto;display:grid;grid-template-columns:1.1fr .9fr;align-items:center;padding:9rem clamp(2rem,8vw,9rem) 5rem;gap:clamp(2.5rem,7.5vw,8.5rem)}.auth-art{position:relative;min-height:550px;display:grid;place-items:center;perspective:1400px;isolation:isolate}.auth-art::before{content:'';position:absolute;width:90%;height:75%;z-index:-1;bottom:2%;background:radial-gradient(ellipse,#ab7d6150,transparent 70%);filter:blur(50px);opacity:.72}.auth-art::after{content:'';position:absolute;bottom:3%;left:3%;width:95%;height:13%;border-radius:50%;background:#0009;filter:blur(36px);z-index:-1;transform:rotate(-8deg)}.cover-book{position:relative;width:min(355px,88%);aspect-ratio:0.735;transform:rotate(-10deg) rotateY(-8deg) rotateX(4deg);transform-style:preserve-3d;animation:cover-arrive 1.7s var(--ease) both;filter:drop-shadow(18px 30px 26px #0009)}.cover-book:hover{transform:rotate(-6deg) rotateY(-2deg) rotateX(2deg);transition:transform .7s var(--ease)}.cover-stack{position:absolute;inset:7px -12px -10px 4px;background:repeating-linear-gradient(0deg,#c7b79f 0,#c7b79f 1px,#e9deca 1px,#e9deca 3px);border:2px solid #603642;border-radius:3px 8px 8px 3px;transform:translateZ(-17px);box-shadow:8px 10px 0 #321720,13px 14px 18px #0008}.cover-front,.opening-book{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:8%;position:relative;z-index:2;background:radial-gradient(ellipse at 73% 19%,#813c48b5 0%,transparent 45%),linear-gradient(105deg,#1f1018 0%,#4e222e 7%,#68313d 14%,#5c2834 70%,#411c28 100%);border:1.5px solid #a879696e;border-radius:5px 8px 8px 3px;box-shadow:inset 0 0 0 2px #270f1980,inset 10px 0 15px #0009,inset -2px -2px 12px #0005,inset 2px 3px 7px #c98e7950;overflow:hidden}.cover-front::before,.opening-book::before{content:'';position:absolute;inset:5%;border:1px solid #ba9c729d;border-radius:2px;box-shadow:inset 0 0 0 5px #5a293640,0 0 0 4px #a98b5f20;pointer-events:none}.cover-front::after,.opening-book::after{content:'';position:absolute;inset:0;pointer-events:none;background:repeating-linear-gradient(88deg,transparent 0px,#ffffff05 1px,transparent 2px),repeating-linear-gradient(2deg,transparent 0px,#00000010 2px,transparent 3px);mix-blend-mode:overlay}.cover-corner{position:absolute;inset:8%;border:1px solid #bca06d48;pointer-events:none}.cover-corner::before,.cover-corner::after{content:'✦';position:absolute;font-size:1.1rem;line-height:1;color:#d3b17b;text-shadow:0 1px #29141c}.cover-corner::before{left:-7px;top:-8px}.cover-corner::after{right:-7px;bottom:-8px}.cover-emblem{display:grid;place-items:center;width:clamp(64px,8vw,88px);aspect-ratio:1;border-radius:50%;border:1px solid #c6a779b0;color:#e0c293;font-family:var(--serif);font-size:2.85rem;text-shadow:0 1px 1px #20111b;margin:0 auto 2rem;box-shadow:inset 0 0 0 5px #d2ae7140,inset 0 0 0 6px #5d2e38,0 0 0 5px #c8a36e15;animation:seal-glint 12s ease infinite}.cover-title{max-width:100%;font-family:var(--serif);font-size:clamp(1.65rem,3.6vw,3rem);line-height:1.03;letter-spacing:-.065em;color:#ebcca0;text-shadow:0 2px 1px #29131c,0 -1px 0 #ffe7ba8c;margin:0 0 1rem;overflow-wrap:anywhere}.cover-subtitle{font-size:.65rem;letter-spacing:.35em;text-transform:uppercase;color:#d5b992;line-height:2}.cover-bottom{position:absolute;bottom:10%;font-size:.64rem;letter-spacing:.24em;text-transform:uppercase;color:#d3b18ba8}.auth-panel{max-width:425px;animation:auth-arrive 1.2s .1s var(--ease) both}.auth-panel h1{font-family:var(--serif);font-weight:400;font-size:clamp(3.1rem,6vw,5.4rem);line-height:.92;letter-spacing:-.065em;margin:.9rem 0 1.5rem;color:#f5eee2}.auth-panel>p:not(.eyebrow),.auth-panel form+p{font-size:1rem;color:#bcb1ad;max-width:36ch;line-height:1.8}.auth-panel form{display:grid;gap:.8rem;margin-top:2rem}.auth-panel label{font-size:.72rem;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:#d5c5b4}.input-wrap{position:relative}.input-wrap input{display:block;width:100%;padding:1.05rem 5rem 1.05rem 1rem;color:#f5eee4;border:1px solid #b9a1884d;border-radius:2px;background:#ffffff07;letter-spacing:.02em;transition:border-color .26s,background .26s}.input-wrap input:focus{background:#ffffff0c;border-color:#c3a879;outline:0}.input-wrap input::placeholder{color:#8c7b7b}.input-wrap button,#showPassword{position:absolute;right:.65rem;top:50%;transform:translateY(-50%);border:0;background:none;color:#bfae9b;padding:.35rem;font-size:.7rem;text-transform:uppercase;letter-spacing:.09em}.button{border:1px solid #bca48061;background:transparent;color:#e3d6c5;padding:.85rem 1.2rem;font-size:.78rem;font-weight:600;letter-spacing:.045em;border-radius:2px;min-height:44px;transition:transform .3s,background .3s,border-color .3s,color .3s;display:inline-flex;align-items:center;justify-content:center;gap:.5rem;white-space:nowrap}.button:hover{border-color:#dcbf8d;background:#dabf8f14;transform:translateY(-1px);color:#fff4dc}.button.primary{background:linear-gradient(112deg,#b59566,#d7bd8f 48%,#c4a579);border-color:#d8ba88;color:#34201d;box-shadow:0 2px 16px #b4986733;font-weight:700;letter-spacing:.1em}.button.primary:hover{background:#e5cfa9;color:#2f211e;box-shadow:0 7px 24px #b498674a}.auth-panel .button.primary{width:100%;min-height:51px;margin-top:.35rem}.private-note{display:flex;align-items:center;gap:.55rem;margin-top:1.7rem!important;color:#8e8381!important;font-size:.73rem!important;line-height:1.6!important}.private-note::before{content:'◇';color:var(--gold);font-size:1rem}#loginError{min-height:1rem;margin:0;color:#e5a0a1;font-size:.77rem;line-height:1.5}.auth-panel form:has(#loginError:not(:empty)) input{border-color:#aa656a}.opening-curtain{position:fixed;inset:0;z-index:100;display:grid;place-items:center;background:radial-gradient(ellipse,#462c35,#161015 68%);perspective:1900px;animation:opening-fade 1.55s ease both;pointer-events:none}.opening-book{width:min(43vh,250px);height:auto;aspect-ratio:.75;position:relative;transform-origin:left center;animation:opening-flip 1.5s var(--ease) both;color:#ebcca0;font-family:var(--serif);font-size:1.8rem;letter-spacing:-.06em}.opening-book::after{background:linear-gradient(90deg,transparent,#f8d6ad40,transparent);animation:glint 1.1s .2s both}.album-app{min-height:100vh;animation:app-appear .75s ease both}.album-topbar{position:sticky;top:0;z-index:20;display:flex;align-items:center;gap:1rem;justify-content:space-between;padding:.9rem clamp(1rem,5vw,5rem);background:#151117df;backdrop-filter:blur(22px);border-bottom:1px solid #b7a68f20}.album-topbar>div{display:flex;align-items:center;gap:.65rem}.album-topbar .wordmark{margin-right:auto}.album-topbar #photoCount{font-size:.7rem;color:#a99a90;letter-spacing:.09em;text-transform:uppercase;padding-right:.8rem}.album-topbar .button,.album-topbar button{padding:.65rem 1rem;min-height:40px}.reader{max-width:1450px;margin:auto;padding:2rem clamp(1.25rem,5vw,5rem) 5rem}.reader-heading{text-align:center;position:relative;margin:1rem auto 2.25rem;animation:auth-arrive .7s var(--ease) both}.reader-heading .eyebrow{line-height:1.5;margin:0;color:#bca179}.reader-heading h1,.reader-heading h2,#chapterTitle{font-family:var(--serif);font-weight:400;font-size:clamp(2.35rem,5vw,4.4rem);letter-spacing:-.064em;line-height:1.03;margin:.7rem auto;color:#f5ebe0}.reader-heading p,#chapterSubtitle{margin:.6rem auto;color:#b09f9b;font-size:.85rem;line-height:1.65;max-width:43ch}.book-stage{position:relative;perspective:2400px;padding:0 18px 19px;isolation:isolate;margin:0 auto;max-width:1180px}.book-stage::before{content:'';position:absolute;z-index:-1;inset:10% 4% 0;box-shadow:0 40px 70px 25px #0009;transform:perspective(800px) rotateX(12deg) scale(1.03,.95);border-radius:18px}.book{position:relative;display:grid;grid-template-columns:1fr 1fr;max-width:100%;min-height:clamp(440px,40vw,650px);isolation:isolate;transform-style:preserve-3d;background:#5d3038;border:1px solid #8c6158;border-radius:5px 7px 8px 5px;box-shadow:0 5px 0 #40202b,0 9px 0 #24191c,0 15px 18px #0009;padding:11px 12px 16px;overflow:visible}.book::after{content:'';position:absolute;bottom:5px;left:14px;right:14px;height:11px;border-radius:1px 1px 5px 5px;background:repeating-linear-gradient(0deg,#b9a88c 0,#b9a88c 1px,#eadfc8 1px,#eadfc8 3px);z-index:1;opacity:.9;box-shadow:0 1px 4px #0006}.page{position:relative;min-width:0;z-index:2;background:var(--paper);color:var(--ink);isolation:isolate;padding:clamp(1rem,2.5vw,2.55rem) clamp(.9rem,2.45vw,2.3rem) 2rem;display:flex;flex-direction:column;box-shadow:inset 0 0 20px #9c7f541b;overflow:hidden}.page::before{content:'';position:absolute;z-index:6;inset:0;pointer-events:none;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' opacity='.20' filter='url(%23p)'/%3E%3C/svg%3E");opacity:.45;mix-blend-mode:multiply}.left-page{border-radius:2px 0 0 2px;background:linear-gradient(90deg,#a58d6e28,transparent 3%,transparent 90%,#b3946935 97%,#7e61405e 100%),radial-gradient(ellipse at 70% 15%,#f9f0df,#e9dec8 75%)}.right-page{border-radius:0 3px 3px 0;background:linear-gradient(90deg,#765d4469,#cbb69830 3%,transparent 9%,transparent 96%,#b39a733a),radial-gradient(ellipse at 25% 20%,#faf1e0,#e9dfca 80%)}.book-spine{position:absolute;z-index:8;left:50%;top:11px;bottom:16px;width:16px;transform:translateX(-50%);pointer-events:none;background:linear-gradient(90deg,transparent,#3f2a2019 26%,#291b1665 48%,#21140d62 50%,#4f342317 72%,transparent);filter:blur(.3px)}.book-spine::before{content:'';position:absolute;left:50%;height:100%;border-left:1px solid #4d34294f}.page-content{position:relative;z-index:2;flex:1;height:100%;display:flex;flex-direction:column;gap:.82rem;min-height:0}.page-number{font-family:var(--serif);font-size:.73rem;color:#9b8771;letter-spacing:.08em;position:absolute;bottom:-1.3rem;left:0}.right-page .page-number{left:auto;right:0}.page-kicker{color:#956651;letter-spacing:.17em;font-size:.65rem;line-height:1.35;margin:0}.page-chapter{font-family:var(--serif);font-weight:400;font-size:clamp(1.65rem,3.05vw,3.25rem);letter-spacing:-.06em;line-height:.99;margin:0;max-width:14ch}.page-note{margin:0;font-family:var(--serif);font-style:italic;color:#88725e;font-size:.82rem;line-height:1.55}.photo-grid{position:relative;display:grid;grid-template-columns:1fr 1fr;gap:clamp(.65rem,1.3vw,1.1rem);align-content:center;flex:1;min-height:0}.photo-frame{--delay:0ms;position:relative;display:flex;flex-direction:column;align-self:stretch;justify-content:center;min-height:0;min-width:0;padding:5px 5px 6px;overflow:visible;background:#fbf4e9;border:1px solid #9e826539;border-radius:1px;box-shadow:0 3px 5px #563d2e28;transition:transform .35s var(--ease),box-shadow .35s;cursor:zoom-in;animation:frame-in .9s var(--ease) var(--delay) both;text-align:left;color:var(--ink)}.photo-frame:nth-child(2n){transform:rotate(1.25deg);--delay:80ms}.photo-frame:nth-child(3n){transform:rotate(-.8deg);--delay:150ms}.photo-frame:last-child{--delay:190ms}.photo-frame:hover{z-index:4;transform:translateY(-4px) rotate(0) scale(1.015);box-shadow:0 10px 19px #48311e35}.photo-frame img{display:block;width:100%;height:100%;min-height:120px;max-height:clamp(150px,20vw,255px);object-fit:cover;aspect-ratio:1.33;background:#b4a0872d;border-radius:.4px;animation:photo-reveal 1.25s var(--ease) var(--delay) both}.photo-frame:focus-visible{outline-color:#6e393e}.photo-meta{min-width:0;display:flex;align-items:center;justify-content:space-between;gap:.4rem;font-size:.55rem;line-height:1.4;letter-spacing:.035em;color:#92806a;white-space:nowrap;padding:.42rem .2rem .05rem;overflow:hidden;text-overflow:ellipsis}.photo-meta>*{overflow:hidden;text-overflow:ellipsis}.photo-grid:has(.photo-frame:only-child){grid-template-columns:1fr}.photo-grid:has(.photo-frame:only-child) img{max-height:clamp(250px,30vw,440px);aspect-ratio:1/1}.photo-grid:has(.photo-frame:nth-child(3):last-child) .photo-frame:first-child{grid-column:1/-1;max-width:94%;width:100%;justify-self:center}.photo-grid:has(.photo-frame:nth-child(3):last-child) .photo-frame:first-child img{aspect-ratio:2.25;max-height:200px;min-height:85px}.photo-grid:has(.photo-frame:nth-child(3):last-child) .photo-frame:not(:first-child) img{aspect-ratio:1.3;max-height:140px;min-height:75px}.photo-frame.effect-0 img{animation-name:photo-reveal}.photo-frame.effect-1 img{animation-name:ink-unfold;animation-duration:1.2s}.photo-frame.effect-2 img{animation-name:film-develop;animation-duration:1.4s}.photo-frame.effect-3 img{animation-name:draw-reveal;animation-duration:1.15s}.photo-frame.effect-4 img{animation-name:polaroid-reveal;animation-duration:1.25s}.photo-frame.effect-5 img{animation-name:curtain-reveal;animation-duration:1.15s}.photo-frame.effect-3::after{content:'';position:absolute;inset:5px 5px 20px;border:1px solid #b48f6b;pointer-events:none;animation:sketch-line 1.3s var(--ease) var(--delay) both}.empty-spread{flex:1;display:grid;grid-template-columns:1fr 1fr;place-content:center;gap:.8rem}.empty-photo{display:grid;place-items:center;aspect-ratio:1/1;background:linear-gradient(145deg,#e1d4bc,#d2bfa2);border:5px solid #f9f2e6;outline:1px solid #b69e7c55;box-shadow:0 5px 8px #826e4c25;transform:rotate(-3deg);color:#9c856c80;font-size:1.5rem;animation:frame-in 1s var(--ease) both;overflow:hidden}.empty-photo:nth-child(2n){transform:rotate(3deg);animation-delay:.14s}.empty-photo:nth-child(3n){transform:rotate(1deg);animation-delay:.25s}.empty-photo:nth-child(4n){transform:rotate(-2deg);animation-delay:.36s}.paper-quote{font-family:var(--serif);font-size:clamp(1rem,1.75vw,1.6rem);line-height:1.42;font-style:italic;color:#806759;padding:1.2rem 1.2rem;border-left:1px solid #b899744f;background:#d8c5a629;margin:auto 0}.paper-quote::before{content:'“';display:block;color:#a98266;font-size:2.5rem;line-height:.6;margin-bottom:.5rem}.flip-sheet{pointer-events:none;position:absolute;top:11px;bottom:16px;z-index:12;width:calc(50% - 12px);padding:clamp(1rem,2.5vw,2.55rem) clamp(.9rem,2.45vw,2.3rem) 2rem;background:linear-gradient(90deg,#b69c7550,transparent 7%,transparent 88%,#8e6f393b),#efe5d2;color:var(--ink);box-shadow:0 20px 35px #1c0b0a44;backface-visibility:visible;transform-style:preserve-3d;overflow:hidden;will-change:transform}.flip-sheet::after{content:'';position:absolute;inset:0;background:linear-gradient(110deg,transparent 40%,#593c2426 75%,#fff5d541);pointer-events:none}.flip-sheet .photo-frame,.flip-sheet .photo-frame img,.flip-sheet .photo-frame::after{animation:none!important}.flip-next{left:50%;transform-origin:0 50%;animation:page-next .8s cubic-bezier(.42,.03,.23,1) both}.flip-back{right:50%;transform-origin:100% 50%;animation:page-back .8s cubic-bezier(.42,.03,.23,1) both}.reader-controls{display:flex;align-items:center;justify-content:center;gap:.7rem;max-width:1050px;margin:1.35rem auto .4rem}.nav-btn,.reader-controls button:not(.button){display:grid;place-items:center;min-height:42px;min-width:49px;border:1px solid #bba17f42;border-radius:2px;padding:.7rem .8rem;background:#c2a47b08;color:#e1c69f;font-size:.9rem;transition:background .22s,border .22s}.nav-btn:hover,.reader-controls button:not(.button):hover{background:#be9e7330;border-color:#bca17f89}.reader-controls #pageLabel{flex:none;color:#c5b8aa;font-size:.71rem;letter-spacing:.09em;white-space:nowrap}.reader-controls input[type=range],#pageSlider{flex:1;max-width:250px;appearance:none;margin:0 .35rem;background:linear-gradient(90deg,#916f58,#3c3030);height:2px;accent-color:#c9a872;cursor:pointer;border:0}.reader-controls input[type=range]::-webkit-slider-thumb{appearance:none;width:12px;height:12px;border-radius:50%;background:#d4b785;box-shadow:0 0 0 4px #d4b78522;transition:box-shadow .2s}.reader-controls input[type=range]::-webkit-slider-thumb:hover{box-shadow:0 0 0 7px #d4b78533}.reader-controls #pageJump:not(button){width:55px;min-height:36px;border:1px solid #bba17f42;background:transparent;color:#d9c6ae;padding:.4rem;text-align:center;border-radius:2px}.reader-note{text-align:center;font-size:.69rem;color:#8d7d77;letter-spacing:.04em;line-height:1.7;margin:0}.index-section{position:relative;display:block;max-width:1140px;margin:4.5rem auto 0;padding-top:1.7rem;border-top:1px solid #bba17f2a}.index-section h2{font-family:var(--serif);font-size:2.2rem;letter-spacing:-.055em;font-weight:400;margin:.35rem 0 1.2rem}.index-section>p{color:#aa9b91;font-size:.82rem;line-height:1.7}.index-section #indexGrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(145px,1fr));gap:.8rem}.index-card{cursor:pointer;position:relative;min-height:90px;text-align:left;padding:.85rem;color:#d9c5aa;border:1px solid #bca27c30;background:linear-gradient(120deg,#2e2227,#211b20);border-radius:3px;overflow:hidden;transition:background .3s,border .3s,transform .3s var(--ease)}.index-card:hover,.index-card.active,.index-card[aria-current=true]{border-color:#bfa06d7d;background:#4e3236;transform:translateY(-2px)}.index-card img{width:100%;aspect-ratio:1.5;object-fit:cover;border-radius:1px;display:block;margin-bottom:.55rem;opacity:.9}.index-card span{display:block;font-size:.73rem;line-height:1.5}.index-card strong{font-family:var(--serif);font-size:1.1rem;font-weight:400}.index-empty,#indexEmpty{padding:1rem 0;color:#9c8d84;font-size:.85rem}.dialog{color:var(--ivory);background:radial-gradient(ellipse at 10% 0,#4b3034 0,transparent 58%),#211a20;border:1px solid #b6a18165;border-radius:7px;max-width:min(640px,calc(100vw - 1.8rem));width:100%;max-height:90svh;padding:clamp(1.2rem,4vw,2.25rem);box-shadow:0 30px 100px #000b;margin:auto;animation:dialog-in .35s var(--ease) both;z-index:25;overflow:auto}.dialog::backdrop{background:#080609cc;backdrop-filter:blur(12px);animation:app-appear .3s ease both}.dialog-header{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;margin-bottom:1.5rem}.dialog-header h2{font-family:var(--serif);font-weight:400;font-size:2.35rem;letter-spacing:-.055em;line-height:1;margin:0}.dialog-header p{font-size:.78rem;color:#af9d91;line-height:1.5;max-width:35ch}.dialog-header button,.dialog button.close,.dialog button[aria-label="Kapat"],#lightboxClose{background:transparent;border:1px solid #bba17f42;color:#d5c1a7;min-height:36px;min-width:36px;display:grid;place-items:center;border-radius:50%;font-size:1rem}.dropzone{display:grid;width:100%;min-height:150px;place-items:center;align-content:center;gap:.5rem;text-align:center;padding:1.45rem;border:1px dashed #bca98588;border-radius:5px;background:#c9a8720a;color:#e1ceb1;cursor:pointer;transition:background .25s,border .25s,transform .25s}.dropzone:hover,.dropzone.dragover,.dropzone.is-dragover{background:#d8b78616;border-color:#f4cfa2;transform:scale(1.005)}.dropzone strong{font-family:var(--serif);font-size:1.35rem;font-weight:400}.dropzone p,.dropzone span{font-size:.78rem;color:#b4a092;line-height:1.55;margin:.1rem}.upload-summary{display:block;color:#bcaa9b;font-size:.75rem;margin:1rem 0 .6rem}.upload-list,#uploadList{max-height:260px;overflow:auto;overscroll-behavior:contain;margin:.65rem 0}.upload-item{display:grid;grid-template-columns:1fr auto;gap:.4rem .6rem;align-items:center;border-bottom:1px solid #bba17f20;padding:.8rem .2rem}.upload-name{font-size:.75rem;color:#e0d2c1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.upload-state{font-size:.68rem;color:#bda780;white-space:nowrap}.progress-track{grid-column:1/-1;height:3px;background:#b8a17c1f;border-radius:5px;overflow:hidden}.progress-fill{display:block;height:100%;width:0%;background:linear-gradient(90deg,#8d6356,#d7ba84);transition:width .25s;border-radius:5px}.dialog-footer{display:flex;align-items:center;justify-content:flex-end;gap:.7rem;margin-top:1.3rem}.dialog-footer p{margin-right:auto;font-size:.7rem;line-height:1.6;color:#b2a39a}.lightbox{background:#100d11;max-width:calc(100vw - 2rem);width:min(1250px,100%);border-radius:4px;padding:1rem;overflow:hidden}.lightbox::backdrop{background:#000e}.lightbox img,#lightboxImage{display:block;width:auto;height:auto;max-width:100%;max-height:78svh;object-fit:contain;margin:auto;box-shadow:0 12px 30px #0009;animation:dialog-in .35s var(--ease) both}.lightbox #lightboxCaption{color:#b6a89d;text-align:center;font-size:.8rem;margin:.9rem auto .1rem;line-height:1.5}.lightbox #lightboxClose{position:absolute;right:.8rem;top:.8rem;z-index:5;background:#171017e8}.lightbox #lightboxPrev,.lightbox #lightboxNext{position:absolute;z-index:5;top:50%;transform:translateY(-50%);min-width:42px;min-height:44px;border:1px solid #bca27c4d;border-radius:2px;background:#19141ada;color:#f4e9da;font-size:1.1rem}.lightbox #lightboxPrev{left:.9rem}.lightbox #lightboxNext{right:.9rem}
@keyframes cover-arrive{0%{opacity:0;transform:translateY(42px) rotate(-15deg) rotateY(-22deg) scale(.91)}100%{opacity:1;transform:rotate(-10deg) rotateY(-8deg) rotateX(4deg)}}@keyframes auth-arrive{0%{opacity:0;transform:translateY(25px)}100%{opacity:1;transform:translateY(0)}}@keyframes app-appear{from{opacity:0}to{opacity:1}}@keyframes opening-fade{0%,65%{opacity:1}100%{opacity:0;visibility:hidden}}@keyframes opening-flip{0%{opacity:0;transform:scale(.78) rotateY(-35deg)}25%{opacity:1;transform:scale(.91) rotateY(0)}75%{opacity:1;transform:scale(1.14) rotateY(-120deg) translateX(-30%)}100%{opacity:0;transform:scale(1.3) rotateY(-176deg) translateX(-40%)}}@keyframes seal-glint{0%,100%{box-shadow:inset 0 0 0 5px #d2ae7140,inset 0 0 0 6px #5d2e38,0 0 0 5px #c8a36e15}50%{box-shadow:inset 0 0 0 5px #d2ae7180,inset 0 0 0 6px #5d2e38,0 0 0 6px #d2ae7140,0 0 20px #d8b27533}}@keyframes glint{from{transform:translateX(-130%)}to{transform:translateX(130%)}}@keyframes frame-in{0%{opacity:0;translate:0 15px;scale:.985}70%{opacity:1}100%{opacity:1;translate:0 0;scale:1}}@keyframes photo-reveal{0%{clip-path:inset(0 0 98% 0);filter:sepia(.7) brightness(1.35) saturate(.45)}100%{clip-path:inset(0);filter:sepia(0) brightness(1) saturate(1)}}@keyframes ink-unfold{0%{clip-path:circle(0% at 45% 45%);filter:grayscale(1) contrast(.8)}100%{clip-path:circle(78% at 45% 45%);filter:grayscale(0) contrast(1)}}@keyframes film-develop{0%{filter:brightness(1.8) contrast(.35) grayscale(.95) sepia(.6);opacity:.25;clip-path:inset(2%)}50%{opacity:1}100%{filter:brightness(1) contrast(1) grayscale(0) sepia(0);opacity:1;clip-path:inset(0)}}@keyframes draw-reveal{0%{clip-path:polygon(0 0,0 0,0 100%,0 100%);filter:contrast(1.8) grayscale(1)}70%{filter:contrast(1.2) grayscale(.3)}100%{clip-path:polygon(0 0,100% 0,100% 100%,0 100%);filter:contrast(1) grayscale(0)}}@keyframes polaroid-reveal{0%{opacity:.1;filter:brightness(1.7) saturate(.0) blur(5px)}45%{opacity:.8}100%{opacity:1;filter:brightness(1) saturate(1) blur(0)}}@keyframes curtain-reveal{0%{clip-path:inset(0 50% 0 50%);filter:brightness(.7)}100%{clip-path:inset(0);filter:brightness(1)}}@keyframes sketch-line{0%{clip-path:polygon(0 0,0 0,0 0,0 0);opacity:.8}70%{clip-path:polygon(0 0,100% 0,100% 100%,0 100%);opacity:.6}100%{clip-path:polygon(0 0,100% 0,100% 100%,0 100%);opacity:0}}@keyframes page-next{0%{transform:rotateY(0);opacity:1}35%{transform:rotateY(-62deg) translateZ(12px)}72%{transform:rotateY(-141deg);opacity:1}100%{transform:rotateY(-179deg);opacity:0}}@keyframes page-back{0%{transform:rotateY(0);opacity:1}35%{transform:rotateY(62deg) translateZ(12px)}72%{transform:rotateY(141deg);opacity:1}100%{transform:rotateY(179deg);opacity:0}}@keyframes dialog-in{0%{opacity:0;transform:translateY(9px) scale(.98)}100%{opacity:1;transform:none}}
@media(max-width:1000px){.auth-layout{padding-inline:8vw;gap:4vw}.auth-art{min-height:440px}.cover-book{max-width:310px}.reader{padding-inline:2.8vw}.reader-heading{margin-bottom:1.7rem}.book{min-height:420px}.page{padding-inline:1.3rem}.photo-grid{gap:.5rem}.photo-frame{padding:4px}.photo-frame img{min-height:90px}.photo-meta{font-size:.52rem}}@media(max-width:720px){.topline{padding:1.3rem 1.3rem}.edition{font-size:.56rem}.login-screen:after{inset:5.3rem .8rem 1rem}.auth-layout{display:flex;flex-direction:column;justify-content:center;gap:2rem;padding:6.3rem 1.75rem 3rem}.auth-art{min-height:260px;flex:1;width:100%;max-width:350px;max-height:340px}.cover-book{width:clamp(160px,45vw,205px);margin:1rem 0 .4rem}.cover-emblem{width:47px;font-size:1.7rem;margin-bottom:.85rem}.cover-title{font-size:1.65rem;margin-bottom:.6rem}.cover-subtitle{font-size:.5rem;letter-spacing:.18em}.cover-bottom{font-size:.52rem;letter-spacing:.12em}.auth-panel{max-width:425px;width:100%;text-align:center}.auth-panel h1{font-size:clamp(2.7rem,13vw,4.2rem);margin:.6rem 0 .9rem}.auth-panel>p{margin-inline:auto}.auth-panel form{text-align:left;margin-top:1.3rem;gap:.5rem}.auth-panel .private-note{justify-content:center}.album-topbar{padding:.65rem .8rem;gap:.55rem;flex-wrap:wrap}.album-topbar .wordmark{font-size:1.04rem}.album-topbar #photoCount{padding:0;font-size:.55rem}.album-topbar button,.album-topbar .button{font-size:.66rem;padding:.55rem .7rem;min-height:36px}.reader{padding:1.5rem .6rem 3.5rem}.reader-heading{margin:.5rem auto 1.4rem;padding-inline:1rem}.reader-heading h1,.reader-heading h2,#chapterTitle{font-size:2.8rem}.book-stage{padding:0 3px 11px}.book{grid-template-columns:1fr;padding:6px 7px 12px;min-height:0;border-radius:3px;box-shadow:0 4px 0 #40202b,0 7px 0 #24191c,0 12px 15px #0008}.book::after{left:10px;right:10px;height:7px;bottom:3px}.page{padding:1.45rem 1.2rem 1.65rem;min-height:clamp(380px,102vw,520px);gap:.65rem}.left-page{background:linear-gradient(90deg,#9e81592d,transparent 5%,transparent 96%,#a0865f25),radial-gradient(ellipse at 70% 15%,#f9f0df,#e9dec8 75%)}.right-page{border-top:1px solid #ad967f;box-shadow:inset 0 8px 16px #70533219;background:linear-gradient(90deg,#9e81592d,transparent 5%,transparent 96%,#a0865f25),radial-gradient(ellipse at 25% 20%,#faf1e0,#e9dfca 80%)}.book-spine{display:none}.page-chapter{font-size:clamp(2.05rem,7.5vw,3rem)}.page-kicker{font-size:.61rem}.page-note{font-size:.75rem}.photo-grid{gap:.7rem}.photo-frame img{max-height:160px;min-height:90px}.photo-grid:has(.photo-frame:nth-child(3):last-child) .photo-frame:first-child img{max-height:210px}.photo-grid:has(.photo-frame:nth-child(3):last-child) .photo-frame:not(:first-child) img{max-height:150px}.photo-grid:has(.photo-frame:only-child) img{max-height:350px}.photo-frame{padding:5px}.photo-meta{font-size:.55rem}.flip-sheet{width:calc(100% - 14px);top:6px;bottom:auto;height:calc(50% - 6px);left:7px;right:auto;padding:1.45rem 1.2rem}.flip-next{top:auto;bottom:12px;transform-origin:50% 0%;animation:page-mobile-next .65s cubic-bezier(.18,.65,.25,1) both}.flip-back{transform-origin:50% 100%;animation:page-mobile-back .65s cubic-bezier(.18,.65,.25,1) both}.reader-controls{gap:.4rem;margin:1.2rem auto .4rem;padding:0 .25rem;flex-wrap:wrap}.reader-controls #pageLabel{font-size:.66rem;margin:0 .15rem}.reader-controls input[type=range],#pageSlider{max-width:90px;min-width:40px}.reader-controls .nav-btn,.reader-controls button:not(.button){min-width:38px;min-height:38px;padding:.45rem .5rem;font-size:.8rem}.reader-note{font-size:.65rem;padding:0 .7rem}.index-section{margin:3rem .65rem 0}.index-section #indexGrid{grid-template-columns:repeat(auto-fill,minmax(110px,1fr));gap:.55rem}.index-card{padding:.6rem}.dialog .dialog-header h2{font-size:1.9rem}.lightbox{padding:.65rem;max-width:calc(100vw - .75rem)}.lightbox img,#lightboxImage{max-height:84svh}.lightbox #lightboxPrev,.lightbox #lightboxNext{min-width:36px;min-height:40px}.lightbox #lightboxPrev{left:.4rem}.lightbox #lightboxNext{right:.4rem}}
@keyframes page-mobile-next{0%{transform:rotateX(0);opacity:1}65%{opacity:.95;transform:rotateX(100deg) translateZ(10px)}100%{transform:rotateX(174deg);opacity:0}}@keyframes page-mobile-back{0%{transform:rotateX(0);opacity:1}65%{opacity:.95;transform:rotateX(-100deg) translateZ(10px)}100%{transform:rotateX(-174deg);opacity:0}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-delay:0ms!important;transition-duration:.01ms!important}.opening-curtain,.flip-sheet{display:none!important}.photo-frame img{filter:none!important;clip-path:none!important}.photo-frame{opacity:1!important;translate:none!important;scale:1!important}.cover-book{transform:none}}
/* Fine binding details and exact reader markup. */
.wordmark{text-decoration:none}.wordmark span{color:#c29b76}.edition i{display:inline-block;width:5px;height:5px;background:#b79a70;border-radius:50%;vertical-align:2px;margin-right:.15rem;box-shadow:0 0 7px #c5aa7e70}.cover-front{position:absolute;height:100%;width:100%}.cover-corner{inset:auto;width:20px;height:20px;border:0;position:absolute;z-index:2}.cover-corner::before{font-size:.63rem;left:0;top:-.3rem;display:none}.cover-corner::after{display:none}.corner-tl{left:8%;top:8%;border-left:1px solid #d2b17b;border-top:1px solid #d2b17b}.corner-tr{right:8%;top:8%;border-right:1px solid #d2b17b;border-top:1px solid #d2b17b}.corner-bl{left:8%;bottom:8%;border-left:1px solid #d2b17b;border-bottom:1px solid #d2b17b}.corner-br{right:8%;bottom:8%;border-right:1px solid #d2b17b;border-bottom:1px solid #d2b17b}.cover-emblem{display:flex;align-items:center;justify-content:center;gap:.15rem;width:83px;aspect-ratio:1;font-size:1.1rem;letter-spacing:-.06em}.cover-emblem i{font-size:.7rem;font-weight:400;font-style:normal}.cover-title{font-size:clamp(2.4rem,4.8vw,4.1rem)}.cover-title em,.opening-cover em{font-weight:400;color:#e7c394}.cover-bottom{display:flex;justify-content:center;align-items:center;gap:.55rem;width:100%;font-size:.57rem;letter-spacing:.12em}.cover-bottom span:nth-child(2){color:#e1bb7f}.art-caption{position:absolute;left:12%;right:5%;bottom:0;display:flex;justify-content:space-between;color:#ac988f;letter-spacing:.08em;font-size:.6rem;line-height:1.5;gap:.8rem}.art-caption span:last-child{font-family:var(--serif);font-size:.78rem;font-style:italic;letter-spacing:0}.auth-panel h1 em,.reader-heading h1 em,.index-section h2 em,.dialog h2 em{font-weight:400;color:#c7a47a}.auth-panel .button.primary{justify-content:space-between}.private-note::before{display:none}.private-note svg{color:#c7a47a}.login-footer,.album-footer{display:flex;justify-content:space-between;gap:1rem;color:#86756f;letter-spacing:.16em;font-size:.61rem;line-height:1.5}.login-footer{position:absolute;bottom:1.45rem;left:4.5vw;right:4.5vw}.album-footer{border-top:1px solid #bba17f24;margin:4.5rem auto 0;padding:1.35rem 0;max-width:1140px}.opening-curtain{animation:none}.opening-curtain.playing{animation:opening-fade 1.45s ease both}.opening-book{animation:none;background:none;border:0;box-shadow:none;overflow:visible;transform-style:preserve-3d;padding:0;position:relative}.opening-book::before,.opening-book::after{display:none}.opening-paper{position:absolute;inset:2px -10px -5px 4px;border:1px solid #d3bfa1;border-radius:3px;background:repeating-linear-gradient(0deg,#bca885 0,#bca885 1px,#f2e5d0 1px,#f2e5d0 3px);box-shadow:11px 14px #180d15,18px 20px 20px #0007}.opening-cover{position:absolute;inset:0;z-index:2;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1rem;border-radius:3px 6px 6px 3px;border:1px solid #c4967c;background:linear-gradient(100deg,#27131b,#6a303d 15%,#66303c 65%,#361b25);box-shadow:inset 10px 0 15px #130c15a0,4px 6px 14px #0008;transform-origin:0 50%;transform-style:preserve-3d;backface-visibility:visible}.opening-cover::before{content:'';position:absolute;inset:6%;border:1px solid #d3b17b90;pointer-events:none}.opening-cover span{color:#ddbe90;font-size:.85rem;letter-spacing:.15em}.opening-cover strong{font-family:var(--serif);font-weight:400;font-size:2.25rem;color:#edcfa8;line-height:1.05}.opening-curtain.playing .opening-cover{animation:cover-open 1.4s cubic-bezier(.5,.02,.25,1) both}.opening-curtain.playing .opening-paper{animation:paper-open 1.4s cubic-bezier(.5,.02,.25,1) both}.opening-label{position:absolute;bottom:13%;font-size:.68rem;letter-spacing:.27em;color:#bd9a76;animation:app-appear .45s both}@keyframes cover-open{0%{transform:translateZ(8px) rotateY(-2deg)}22%{transform:translateZ(8px) rotateY(0deg)}85%{transform:rotateY(-155deg);opacity:1}100%{transform:rotateY(-173deg);opacity:0}}@keyframes paper-open{0%,30%{transform:scale(.97)}80%{transform:scale(1.15);opacity:1}100%{transform:scale(1.4);opacity:0}}
.topbar-actions{flex:none}.topbar-status{justify-content:center}.topbar-status .edition{font-size:.6rem;letter-spacing:.12em}.topbar-actions .button.small{font-size:.74rem}.button.ghost{border-color:transparent;background:none}.button.ghost:hover{background:#bba17f13;border-color:#bba17f24}.page-head,.page-bottom{display:flex;align-items:center;justify-content:space-between;gap:1rem;color:#9c8770;flex:none}.page-head{border-bottom:1px solid #a3896940;padding-bottom:.55rem}.page-head .page-number{position:static;font-size:.8rem}.page-head .page-kicker{font-size:.61rem}.page-bottom{margin-top:auto;font-size:.62rem;letter-spacing:.1em;border-top:1px solid #a3896938;padding-top:.65rem;line-height:1}.page-bottom span:last-child{font-size:.7rem;color:#9e7c61}.page-chapter em{color:#8a574a;font-weight:400}.right-chapter{font-style:italic;color:#57443b}.page-content{min-height:100%;padding:0}.page-note{font-size:.9rem}.photo-mark{position:absolute;right:7px;bottom:5px;color:#9f8060;opacity:.9;font-size:.53rem}.photo-meta{display:block;padding-right:14px!important;font-size:.66rem}.photo-frame{flex:none;padding-bottom:5px;justify-content:flex-start}.photo-frame img{height:auto;aspect-ratio:1.5}.photo-frame.image-error{background:radial-gradient(ellipse,#b7a186,#ddd0ba)}.photo-frame.image-error::before{content:'Görsel yüklenemedi';display:grid;place-items:center;min-height:130px;color:#9b7d67;font-size:.75rem}.photo-frame.image-error img{display:none}.photo-grid{align-items:center}.photo-grid.count-3.layout-1 .photo-frame:first-child{grid-column:auto;max-width:unset}.photo-grid.count-3.layout-1 .photo-frame:first-child img{aspect-ratio:1.3;max-height:140px;min-height:75px}.photo-grid.count-3.layout-1 .photo-frame:last-child{grid-column:1/-1;max-width:94%;width:100%;justify-self:center}.photo-grid.count-3.layout-1 .photo-frame:last-child img{aspect-ratio:2.25;max-height:200px;min-height:85px}.photo-grid.count-3.layout-2{grid-template-columns:1.1fr .9fr}.photo-grid.count-3.layout-2 .photo-frame:first-child{grid-column:auto;grid-row:1/3;max-width:100%;width:100%;align-self:center}.photo-grid.count-3.layout-2 .photo-frame:first-child img{aspect-ratio:1/1.52;max-height:300px}.photo-grid.count-2 .photo-frame img{aspect-ratio:.8;max-height:300px}.empty-spread{display:flex;flex-direction:column;gap:1rem;align-items:center;justify-content:center;padding:.7rem 0}.empty-photo{display:flex;flex-direction:column;align-items:center;justify-content:center;width:min(82%,280px);aspect-ratio:1.48;border:7px solid #fbf4e8;outline:1px solid #bba27f80;border-bottom-width:19px;position:relative;transform:rotate(-2deg);background:radial-gradient(ellipse at 50% 34%,#e8dcc6,#cbb598)}.right-page .empty-photo{transform:rotate(2.4deg)}.empty-photo::before{content:'';position:absolute;inset:6px;border:1px dashed #a68e6c70}.empty-photo-star{font-size:clamp(1.6rem,4vw,3rem);font-family:var(--serif);color:#9e8668}.empty-photo-label{font-size:.53rem;letter-spacing:.22em;color:#9e8668;margin-top:.45rem}.empty-spread .paper-quote{margin:0;width:min(90%,310px);font-size:1.05rem;line-height:1.5;background:none;padding:.55rem 0 0;border:0;text-align:center}.empty-spread .paper-quote::before{font-size:1.9rem;height:.35rem;margin-bottom:.7rem}.paper-cta{padding:.6rem .75rem;min-height:36px;border:1px solid #a78a6e6f;background:transparent;color:#815343;font-size:.75rem;transition:border .3s,background .3s}.paper-cta:hover{background:#b48e5c24;border-color:#956f54}.ending-mark{opacity:.54;color:#9e765a;font-size:4.2rem}.flip-sheet .page-content{height:100%;min-height:0}.flip-sheet button{opacity:1;cursor:default}.reader-controls{gap:1.2rem}.reader-controls .nav-btn{display:flex;gap:.55rem;align-items:center;justify-content:center;font-size:.8rem;min-width:115px}.nav-btn span[aria-hidden]{font-size:1.2rem;line-height:1}.pagination{min-width:0;width:min(40%,230px);display:flex;flex-direction:column;align-items:stretch;gap:.45rem}.page-label{display:flex;align-items:center;justify-content:space-between;gap:.6rem}.reader-controls #pageLabel{font-size:.72rem}.reader-controls #pageJump:not(button){width:auto;min-height:0;border:0;padding:0;font-size:.61rem;white-space:nowrap;min-width:0;color:#8e7c73;overflow:hidden;text-overflow:ellipsis;text-align:right}.reader-controls #pageSlider{max-width:none;min-width:0;width:100%;flex:0 1 auto;margin:0;background:linear-gradient(90deg,#b99a70 0 var(--progress,0%),#3e3030 var(--progress,0%) 100%)}.reader-note{display:flex;justify-content:center;align-items:center;gap:.5rem;margin-top:.65rem}.reader-note span:first-child,.reader-note span:last-child{color:#bda27f}.index-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:1rem}.index-hint{line-height:1.4;color:#968780;font-size:.76rem;padding-bottom:1.3rem}.index-thumb{position:relative;display:block}.index-number{position:absolute;bottom:5px;right:5px;padding:.18rem .3rem;background:#1e1517bb;color:#efdfbe;font-size:.65rem!important;line-height:1!important;letter-spacing:.07em}.index-card-meta span{color:#9e877d;font-size:.65rem!important}.index-card[aria-current=page]{border-color:#c3a37888;background:linear-gradient(120deg,#4e3237,#312327)}.index-empty{display:flex;align-items:center;flex-wrap:wrap;gap:.7rem;min-height:110px;border:1px dashed #a88e6d3b;padding:1.25rem}.index-empty>span{color:#b3926d;font-size:1.6rem}.index-empty p{flex:1;min-width:200px;color:#b1a097;font-size:.85rem;line-height:1.6}.index-empty .button{flex:none}.dialog-close{border:1px solid #bba17f44;border-radius:50%;background:transparent;color:#dac5a8;min-height:36px;min-width:36px;font-size:1.25rem;line-height:1;display:grid;place-items:center}.dialog-close:hover{border-color:#c7a77a;background:#c7a77a22}.dialog>p{color:#bba79b;line-height:1.55;font-size:.88rem;margin:0 0 1.2rem}.dialog-header h2{margin:.6rem 0 0}.dialog-header{margin-bottom:1rem}.dialog .drop-icon{display:grid;place-items:center;border:1px solid #bda27f70;width:36px;height:36px;border-radius:50%;font-size:1.25rem;color:#ddbe88;margin-bottom:.25rem}.upload-hint{color:#b6a295;font-size:.72rem;line-height:1.55;flex:1}.upload-failed .upload-state{color:#e7a7a1;max-width:42ch;white-space:normal;text-align:right}.upload-failed .progress-fill{background:#a45f58}.upload-success .upload-state{color:#c0c5a0}.upload-success .progress-fill{background:#8c936e}.lightbox-figure{margin:0;display:grid;place-items:center}.toast{position:fixed;z-index:100;bottom:1.5rem;left:50%;transform:translateX(-50%);width:max-content;max-width:calc(100% - 1.6rem);padding:1rem 1.4rem;border:1px solid #ceb28d80;border-radius:3px;background:#282027f0;box-shadow:0 10px 35px #0007;color:#e9d6bc;font-size:.86rem;line-height:1.5;backdrop-filter:blur(15px);animation:toast-in .3s var(--ease)}@keyframes toast-in{from{opacity:0;bottom:.6rem}to{opacity:1;bottom:1.5rem}}
@media(min-width:721px) and (max-height:900px){.auth-art{min-height:450px}.art-caption{bottom:-1.25rem}.cover-book{max-width:305px}.auth-layout{padding-top:8.4rem;padding-bottom:4rem}.reader{padding-top:1.3rem}.reader-heading{margin:0 auto 1.6rem}.reader-heading h1{font-size:clamp(2.2rem,4.4vw,3.85rem)}.book{min-height:clamp(400px,36vw,560px)}.page{padding-top:1.5rem;padding-bottom:1.35rem}.page-content{gap:.65rem}}
@media(max-width:720px){.auth-art{max-height:300px;min-height:265px}.cover-emblem{width:47px;font-size:.72rem;gap:.05rem}.cover-emblem i{font-size:.45rem}.cover-title{font-size:2.25rem}.cover-bottom{font-size:.48rem;letter-spacing:.08em;gap:.3rem}.art-caption{left:0;right:0;bottom:-.85rem;justify-content:center;gap:.75rem}.art-caption span{font-size:.52rem!important}.login-footer{left:1.2rem;right:1.2rem;bottom:.65rem;font-size:.45rem;letter-spacing:.07em}.topbar-status .edition{display:none}.topbar-actions{gap:.3rem!important}.topbar-actions .button.small{font-size:.66rem;padding:.5rem .65rem}.topbar-status #photoCount{font-size:.56rem}.topbar-status{order:2}.page-head .page-kicker{font-size:.62rem}.page-note{font-size:.85rem}.page-bottom{font-size:.65rem}.photo-meta{font-size:.64rem}.photo-grid.count-3.layout-2 .photo-frame:first-child img{max-height:240px}.photo-grid.count-3.layout-1 .photo-frame:last-child img{max-height:210px}.photo-grid.count-2 .photo-frame img{max-height:260px}.empty-photo{aspect-ratio:1.6;max-width:230px}.reader-controls .nav-btn{min-width:42px}.nav-text{display:none}.reader-controls{gap:.9rem}.pagination{width:min(55%,220px)}.reader-controls #pageLabel{font-size:.72rem}.reader-controls #pageJump:not(button){font-size:.63rem}.index-heading{display:block}.index-hint{display:none}.index-empty{gap:.5rem;justify-content:center;text-align:center}.index-empty p{flex-basis:100%;margin:0 0 .4rem}.album-footer{margin:3rem .65rem 0;font-size:.55rem}.dialog-footer{align-items:flex-start}.dialog-footer .button{padding:.7rem .9rem}.upload-failed .upload-state{max-width:20ch}}
/* Device fit: desktop widescreen, tablet landscape/portrait and touch-first mobile. */
html{overscroll-behavior-y:none}.book{touch-action:pan-y}.topline,.album-topbar{padding-left:max(env(safe-area-inset-left),clamp(.9rem,4.5vw,5rem));padding-right:max(env(safe-area-inset-right),clamp(.9rem,4.5vw,5rem))}.topline{padding-top:max(1.35rem,calc(env(safe-area-inset-top) + .9rem))}.album-topbar{padding-top:max(.75rem,calc(env(safe-area-inset-top) + .55rem))}.login-footer{bottom:max(1.45rem,calc(env(safe-area-inset-bottom) + .8rem))}.reader{padding-bottom:max(3.5rem,calc(env(safe-area-inset-bottom) + 2rem))}.toast{bottom:max(1.5rem,calc(env(safe-area-inset-bottom) + 1rem))}.dialog{max-height:min(90svh,calc(100svh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 2rem))}.dialog .dropzone,.nav-btn,.topbar-actions button{touch-action:manipulation}.photo-frame,.index-card{touch-action:manipulation}.book:focus-visible{outline-offset:7px}.index-section{scroll-margin-top:5rem}.book-stage{scroll-margin-top:5.5rem}
@media(min-width:1500px){.auth-layout{max-width:1480px}.cover-book{width:380px;max-width:none}.reader{max-width:1550px;padding-inline:5rem}.book-stage{max-width:1260px}.book{min-height:590px}.page{padding:2.8rem 3rem 2.2rem}.flip-sheet{padding:2.8rem 3rem 2.2rem}.photo-grid.count-3 .photo-frame img{max-height:190px}.photo-grid.count-3.layout-2 .photo-frame:first-child img{max-height:345px}}
@media(min-width:721px) and (max-width:1024px) and (orientation:portrait){.auth-layout{gap:3vw;padding:8rem 5.5vw 4rem}.auth-art{min-height:450px}.cover-book{width:min(280px,92%)}.auth-panel h1{font-size:clamp(3rem,6.4vw,5.05rem)}.reader{padding-inline:1.8vw}.book-stage{padding:0 8px 14px}.book{min-height:470px;padding-inline:8px}.page{padding:1.55rem 1.2rem}.flip-sheet{width:calc(50% - 8px);padding:1.55rem 1.2rem}.page-content{gap:.72rem}.page-chapter{font-size:clamp(2.05rem,3.6vw,3rem)}.photo-grid.count-3 .photo-frame img{max-height:140px}.photo-grid.count-3.layout-2 .photo-frame:first-child img{max-height:255px}.reader-controls{margin:1.35rem auto}.reader-heading{margin:1.2rem auto 2rem}.index-section{margin:3.5rem auto 0}.index-section #indexGrid{grid-template-columns:repeat(auto-fill,minmax(128px,1fr))}}
@media(pointer:coarse){.button,.topbar-actions .button.small,.nav-btn,.reader-controls .nav-btn,.dialog-close,#lightboxClose,#lightboxPrev,#lightboxNext{min-height:44px;min-width:44px}.reader-controls input[type=range]{height:5px}.reader-controls input[type=range]::-webkit-slider-thumb{width:20px;height:20px;box-shadow:0 0 0 6px #d4b78522}.photo-frame:hover,.index-card:hover{transform:none}.input-wrap input{font-size:16px}.input-wrap button{min-height:44px;min-width:44px}.dialog-close{font-size:1.4rem}.dialog .dropzone{min-height:150px}}
@media(max-width:720px){.auth-layout{padding-top:max(6.1rem,calc(env(safe-area-inset-top) + 5.2rem));padding-bottom:max(3.5rem,calc(env(safe-area-inset-bottom) + 2rem))}.login-footer{bottom:max(.55rem,calc(env(safe-area-inset-bottom) + .3rem))}.album-topbar{padding-inline:max(.8rem,env(safe-area-inset-left)) max(.8rem,env(safe-area-inset-right))}.reader{padding-left:max(.6rem,env(safe-area-inset-left));padding-right:max(.6rem,env(safe-area-inset-right))}.reader-controls{position:sticky;bottom:max(.5rem,env(safe-area-inset-bottom));z-index:15;background:#1c161bef;backdrop-filter:blur(15px);border:1px solid #b2a08036;border-radius:3px;padding:.55rem .65rem;box-shadow:0 5px 22px #0008;margin:1.2rem auto .8rem;width:min(100%,440px)}.reader-controls .nav-btn{min-height:44px;min-width:44px}.page{min-height:clamp(360px,94vw,510px)}.reader-note{padding:0 .55rem}.dialog-footer .button{min-height:44px}}
@media(max-width:380px){.wordmark{font-size:.9rem}.topline .edition{font-size:.5rem;letter-spacing:.1em}.auth-layout{padding-inline:1.2rem;gap:1.25rem}.auth-panel h1{font-size:clamp(2.55rem,12vw,3.2rem)}.auth-art{min-height:238px}.cover-book{width:157px}.cover-title{font-size:1.75rem}.cover-emblem{width:40px}.cover-bottom{font-size:.42rem}.topbar-actions .button.small{padding:.45rem .45rem;font-size:.62rem}.topbar-actions .button.small span[aria-hidden=true]{display:none}.album-topbar{gap:.4rem}.album-topbar .wordmark{font-size:.9rem}.topbar-status{margin-left:auto}.reader-heading h1{font-size:2.2rem!important}.page{padding:1.2rem .95rem}.page-chapter{font-size:2rem}.photo-grid{gap:.55rem}.page-note{font-size:.75rem}.photo-meta{font-size:.57rem}.reader-controls{gap:.55rem}.reader-controls #pageJump:not(button){font-size:.57rem}.index-section #indexGrid{grid-template-columns:repeat(auto-fill,minmax(100px,1fr))}.dialog-footer .upload-hint{font-size:.65rem}}
/* Bulk import feedback remains accessible without widening the dialog. */
.retry-upload{margin:.55rem 0 0;display:block;min-height:40px}.capacity-hint{white-space:normal;color:var(--gold)}
