@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Libre+Caslon+Display&display=swap');
:root{--ink:#302c25;--muted:#858176;--paper:#fbfaf7;--line:#e7e3db;--rust:#88472f;--green:#5b6651}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:14px 'DM Sans',sans-serif}button,input,select{font:inherit}button,a,select{touch-action:manipulation}button{cursor:pointer}button,a,input,select{outline-offset:4px}button{border:0}a{color:inherit;text-decoration:none}.sidebar{position:fixed;inset:0 auto 0 0;width:248px;background:#f2f0e9;border-right:1px solid var(--line);padding:34px 23px;display:flex;flex-direction:column}.brand{display:flex;gap:12px;align-items:center;font:29px Georgia,serif;letter-spacing:2px}.brandmark{display:grid;place-items:center;width:45px;height:48px;border:1px solid #a9835c;color:var(--rust);font:32px Georgia,serif;border-radius:20px 20px 2px 2px}.brand small{display:block;font:10px 'DM Sans',sans-serif;letter-spacing:.5px;margin-top:4px}.navlabel{font-size:10px;letter-spacing:1.8px;color:#8d897e;margin:53px 12px 15px}nav button{display:flex;align-items:center;gap:13px;width:100%;text-align:left;background:none;color:#777265;padding:13px;border-radius:6px;margin:4px 0}nav button span{flex:1}nav button.active{background:#e7e5da;color:#454b3b;font-weight:600}nav b{font-size:11px;background:#dbddcf;padding:3px 7px;border-radius:4px}.collection-heading{display:flex;align-items:center;justify-content:space-between;margin-top:32px}.collection-heading button{background:none;color:var(--muted);font-size:22px}.collection-dot{width:7px;height:7px;border-radius:2px;background:#af9775}.sidebar-bottom{margin-top:auto;padding:35px 10px 0;font-size:12px;color:#6f7162}.sidebar-bottom small{display:block;margin:6px 0 22px 14px;color:#959083;font-size:10px}.sidebar-bottom button{display:block;background:none;font-size:11px;color:#7a7367;padding:8px 0}.storage-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:#758361;margin-right:7px}main{margin-left:248px;padding:0 50px;max-width:1700px}header{height:86px;display:flex;align-items:center;justify-content:space-between;font-size:11px;border-bottom:1px solid var(--line);color:var(--muted)}.breadcrumb span{margin:0 13px;color:#c7c1b6}.breadcrumb strong{font-weight:500;color:#5c594f}.personal{font-size:10px;letter-spacing:.4px}.hero{margin-top:33px;min-height:343px;background:#efeee5;position:relative;display:flex;overflow:hidden;border-radius:5px}.hero-copy{padding:39px 41px;z-index:1}.eyebrow{font-size:9px;letter-spacing:2px;font-weight:600;color:#928169}h1{font-family:'Libre Caslon Display',Georgia,serif;font-size:57px;font-weight:400;line-height:1.02;letter-spacing:-1.3px;margin:18px 0}h1 em{color:var(--rust);font-weight:400}.hero p{font-size:11px;color:#8a8374;line-height:1.9;margin-bottom:22px}.primary{background:var(--rust);color:#fff9f0;padding:12px 19px;border-radius:4px;font-size:11px;font-weight:500;box-shadow:0 2px 3px #66351c12}.primary:hover{background:#69341f}.hero-note{font-size:9px;color:#9b9283;display:block;margin-top:13px}.art{position:absolute;right:2%;width:39%;height:100%;top:0}.halo{position:absolute;width:280px;height:280px;top:21px;right:12px;border-radius:50%;border:1px solid #d9d7c6;box-shadow:0 0 0 22px #e9e8dd,0 0 0 23px #dddbce,0 0 0 46px #ecebe1}.book{position:absolute;width:137px;height:207px;top:54px;left:27%;border-radius:2px 5px 5px 2px;box-shadow:10px 14px 18px #4c392e20}.book-back{background:#7e8268;transform:rotate(12deg);left:40%;top:47px}.book-front{background:#813e2c;transform:rotate(-9deg);border-left:7px solid #673422;outline:1px solid #a7764b;outline-offset:-14px;color:#ddc193;text-align:center}.book-top{display:block;font:12px Georgia,serif;letter-spacing:1.5px;line-height:1.6;margin-top:37px}.book-ornament{margin-top:13px;font-size:41px;color:#c49a65}.book-bottom{font-size:5px;letter-spacing:1.2px;display:block;margin-top:12px}.book-flat{position:absolute;width:216px;height:15px;background:linear-gradient(#b7a382 0 25%,#f7f0dc 26% 70%,#a38a60 71%);top:269px;left:23%;transform:rotate(-3deg);box-shadow:0 10px 13px #77684920}.art-caption{position:absolute;top:306px;left:28%;font:italic 10px Georgia,serif;color:#8b8575;text-align:center;line-height:1.4}.stats{display:grid;grid-template-columns:repeat(4,1fr);padding:28px 0;border-bottom:1px solid var(--line);gap:12px}.stats>div{display:flex;gap:13px;align-items:center;border-right:1px solid var(--line)}.stats>div:last-child{border:0}.stat-icon{font:22px Georgia,serif;color:#98917c;background:#efeee6;border-radius:7px;padding:10px 13px}.stats b{font:23px Georgia,serif;font-weight:400}.stats small{display:block;font-size:9px;color:var(--muted);margin-top:5px}.library{padding:32px 0}.section-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:22px}h2{font:29px 'Libre Caslon Display',Georgia,serif;letter-spacing:-.3px;margin:8px 0}.section-title .eyebrow{font-size:8px}.secondary{background:transparent;border:1px solid #dad5c9;border-radius:4px;color:#696252;padding:10px 15px;font-size:11px;cursor:pointer}.secondary:hover{background:#eeece3}.toolbar{display:flex;gap:10px}.search{display:flex;align-items:center;gap:10px;background:white;border:1px solid var(--line);padding:0 13px;flex:1;border-radius:4px;color:#aaa18d;font-size:22px}.search input{border:0;width:100%;padding:12px 0;font-size:11px;background:transparent;color:var(--ink)}select{border:1px solid var(--line);background:#fffefb;border-radius:4px;color:#706b60;padding:11px 14px;font-size:11px;max-width:100%}.results-line{display:flex;justify-content:space-between;margin:21px 0;color:#918b7d;font-size:10px}.results-line span:last-child{font-size:8px;letter-spacing:1.5px}.empty{text-align:center;border:1px dashed #ded7c9;background:#f7f5ef;border-radius:5px;padding:35px 15px}.empty-icon{font:35px Georgia,serif;color:#ab956f;position:relative;display:inline-block}.empty-icon span{font:12px sans-serif;background:#f7f5ef;border:1px solid #c0ad8d;border-radius:50%;padding:0 3px;position:absolute;bottom:1px;right:-5px}h3{font:25px 'Libre Caslon Display',Georgia,serif;margin:12px 0}.empty p{font-size:11px;line-height:1.8;color:#999080;margin:0 0 20px}.empty small{display:block;color:#a39b8d;font-size:9px;margin-top:14px}footer{display:flex;justify-content:space-between;gap:15px;border-top:1px solid var(--line);padding:22px 0;font-size:9px;color:#9c9485}footer b{font:14px Georgia,serif;margin-right:8px;color:#77674f}.document-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px}.card{background:white;border:1px solid var(--line);border-radius:6px;overflow:hidden}.card-cover{height:125px;background:#ecece0;display:flex;align-items:center;justify-content:center;position:relative}.mini-book{width:65px;height:89px;background:#82654c;border-left:5px solid #654d37;box-shadow:4px 6px 6px #0002;display:grid;place-items:center;color:#e9d3ae;font:22px Georgia,serif;outline:1px solid #b79b70;outline-offset:-9px}.card:nth-child(3n+2) .mini-book{background:#68725b;border-color:#4c5740}.card:nth-child(3n+3) .mini-book{background:#8d4f3a;border-color:#713d2c}.favorite{position:absolute;right:10px;top:9px;background:#fff9;color:#82643b;font-size:20px;border-radius:50%;width:31px;height:31px}.card-body{padding:17px}.card h3{font-family:Georgia,serif;font-size:17px;line-height:1.4;margin:8px 0;overflow-wrap:anywhere}.card p{font-size:10px;color:#918878;margin:8px 0;overflow-wrap:anywhere}.badge{font-size:8px;color:#85806d;letter-spacing:.5px;text-transform:uppercase}.card-actions{display:flex;align-items:center;gap:6px;border-top:1px solid #f0ece4;padding-top:12px;margin-top:15px}.card-actions button{font-size:10px;padding:7px;background:#f1efe7;color:#72654f;border-radius:3px}.card-actions .read{margin-right:auto;color:var(--rust);background:#f3eae2}.card-actions button:hover{background:#e6decd}dialog{border:1px solid var(--line);border-radius:10px;background:var(--paper);color:var(--ink);width:min(550px,94vw);padding:28px;box-shadow:0 20px 100px #0003}dialog::backdrop{background:#29261f80;backdrop-filter:blur(3px)}.dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:15px}.close{background:none;color:#8d8170;font-size:26px;padding:5px 8px}form>label,.form-row label{display:flex;flex-direction:column;gap:7px;font-size:11px;margin:15px 0}form label small{color:#9c9487;font-size:9px}form input:not([type=file]),form select{width:100%;border:1px solid #ded8cc;background:white;border-radius:4px;padding:11px;font-size:12px;color:var(--ink)}.form-row{display:flex;gap:15px}.form-row label{flex:1;min-width:0}.drop{border:1px dashed #bcaa8c;background:#f1eee4;padding:22px;text-align:center;align-items:center;color:#9c7957;font-size:25px}.drop strong{font-size:12px;color:#665a48}.drop input{font-size:11px;max-width:100%;margin-top:10px}.storage-note{font-size:10px;line-height:1.6;color:#928875}.error{font-size:11px;color:#ae392c}#selected-files{font-size:10px;color:#7d725f;overflow-wrap:anywhere}#reader{width:94vw;max-width:none;height:93vh;padding:15px}#reader[open]{display:flex;flex-direction:column}.reader-head{display:flex;align-items:center;justify-content:space-between;gap:15px}.reader-head h2{font-size:22px;overflow-wrap:anywhere}.reader-head>div{display:flex;align-items:center;gap:10px;flex-shrink:0}iframe{width:100%;flex:1;border:0;background:#e6e3dc}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:#414a38;color:#fff;padding:14px 24px;border-radius:5px;font-size:12px;box-shadow:0 4px 20px #0002;z-index:10;display:none;max-width:90vw}button:disabled{opacity:.6;cursor:wait}[hidden]{display:none!important}@media(min-width:1500px){main{padding:0 70px}.hero{min-height:375px}.hero-copy{padding:45px 50px}.art{right:7%}}@media(max-width:1100px){.sidebar{width:210px;padding:30px 17px}main{margin-left:210px;padding:0 28px}.hero-copy{padding:30px}.art{right:-5%;opacity:.75;width:42%}h1{font-size:49px}.hero p{max-width:280px}.desktop{display:none}.hero-note{max-width:220px}.stats small{font-size:8px}.stat-icon{padding:8px}.stats{gap:7px}.stats>div{gap:8px}.document-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:740px){.sidebar{position:relative;width:100%;padding:19px 20px;border-bottom:1px solid var(--line);border-right:0}.brand{font-size:22px}.brandmark{width:35px;height:39px;font-size:24px}.brand small{font-size:8px}.sidebar>.navlabel,.sidebar>.collection-heading,.sidebar>#collections{display:none}.sidebar>nav{display:flex;margin-top:15px;gap:3px}.sidebar nav button{padding:9px;font-size:10px;gap:5px}.sidebar-bottom{margin:10px 0 0;padding:0;display:flex;align-items:center;flex-wrap:wrap;gap:8px;font-size:9px}.sidebar-bottom small{display:none}.sidebar-bottom button{font-size:9px;padding:2px}.storage-dot{margin:0}main{margin:0;padding:0 20px}header{height:53px}.personal{display:none}.hero{margin-top:20px;min-height:326px}.hero-copy{padding:27px 24px}.eyebrow{font-size:8px}h1{font-size:46px}.hero p{font-size:10px;max-width:215px}.art{right:-90px;width:230px;opacity:.25;pointer-events:none}.hero-copy{width:100%}.hero-note{font-size:8px}.stats{grid-template-columns:repeat(2,1fr);gap:20px;padding:22px 0}.stats>div:nth-child(2){border:0}.stats small{font-size:9px}.stats b{font-size:22px}.toolbar{flex-wrap:wrap}.search{flex-basis:100%}.toolbar select{flex:1}.section-title .eyebrow{font-size:7px}h2{font-size:26px}.empty p{font-size:10px}.empty{padding:28px 13px}.document-grid{grid-template-columns:1fr 1fr;gap:10px}.card-body{padding:12px}.card h3{font-size:14px}.card-actions{flex-wrap:wrap}.card-actions button{font-size:9px}.card-actions .read{flex-basis:100%}.reader-head h2{font-size:17px}.reader-head .secondary{font-size:9px;padding:8px}footer{font-size:8px}.form-row{display:block}dialog{padding:22px}}

.auth-screen{min-height:100vh;display:grid;place-items:center;padding:28px;background:radial-gradient(ellipse at 90% 0%,#e8e3d6,transparent 65%),#f5f2e9}.auth-card{width:min(450px,100%);padding:35px;background:#fffcf6;border:1px solid #e4dccd;border-radius:10px;box-shadow:0 15px 70px #4a342516}.auth-card .brandmark{margin-bottom:30px}.auth-card .eyebrow{margin-top:15px}.auth-card h1{font-size:51px}.auth-card>p{color:#8d8171;font-size:12px;line-height:1.7}.auth-card .primary{width:100%;margin-top:8px}.auth-card form label{display:flex;flex-direction:column;margin:17px 0;gap:8px;font-size:11px}.member-row{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px 0;border-top:1px solid var(--line);overflow-wrap:anywhere}.member-row small{display:block;color:var(--muted);margin-top:5px;font-size:10px}.member-row button{flex-shrink:0}.toolbar{flex-wrap:wrap}.toolbar .search{min-width:200px}#collection-filter{max-width:200px}@media(max-width:740px){#collection-filter{display:block;max-width:100%}.auth-card{padding:28px}.sidebar-bottom{gap:12px}.sidebar-bottom button{font-size:10px}}

body[data-theme=forest] .hero{background:#e7ece3}body[data-theme=forest] .sidebar{background:#eaf0e7}body[data-theme=indigo] .hero{background:#e8e9f1}body[data-theme=indigo] .sidebar{background:#eff0f7}body[data-theme=minimal] .hero{background:#edf0f0}body[data-theme=minimal] .sidebar{background:#f0f2f2}body[data-font=modern] h1,body[data-font=modern] h2,body[data-font=modern] h3{font-family:'DM Sans',sans-serif;letter-spacing:-1px}#appearance-form input[type=color]{height:44px;padding:3px;cursor:pointer}.sidebar-bottom{padding-top:15px}.sidebar-bottom button{padding:7px 0}

/* Stronger text contrast on the light library pages. */
:root{--muted:#58564e}.stats small{color:#49483f;font-size:11px;font-weight:600}.stats b{color:#302c25}.eyebrow{color:#66533b}.hero p{color:#514c42}.hero-note{color:#5f574a}.navlabel{color:#615c50}nav button{color:#575247}.results-line{color:#5d574b}.empty p{color:#5c5548}.empty small{color:#665f52}.badge{color:#5e594c}.card p{color:#605748}.sidebar-bottom,.sidebar-bottom small,.sidebar-bottom button{color:#5b5447}footer{color:#655c4e}.storage-note{color:#665c4c}.search input::placeholder{color:#696357;opacity:1}.secondary.danger{color:#8a3429;border-color:#cfa79b}.section-title>div:last-child{display:flex;flex-wrap:wrap;gap:7px;justify-content:flex-end}

/* Keep navigation and long dialogs reachable at every viewport size. */
html{overflow:auto;scrollbar-gutter:stable}
*{scrollbar-width:auto;scrollbar-color:#8b806d #e8e3d9}
::-webkit-scrollbar{width:12px;height:12px}
::-webkit-scrollbar-track{background:#e8e3d9;border-radius:8px}
::-webkit-scrollbar-thumb{background:#8b806d;border:3px solid #e8e3d9;border-radius:8px}
::-webkit-scrollbar-thumb:hover{background:#665b49}
.sidebar{height:100vh;height:100dvh;overflow-y:auto;overflow-x:hidden;padding-top:24px;padding-bottom:24px;scrollbar-gutter:stable}
.sidebar>.brand,.sidebar>.navlabel,.sidebar>nav:not(#collections),.sidebar-bottom{flex-shrink:0}
.sidebar>.navlabel{margin-top:24px;margin-bottom:12px}
.sidebar>.collection-heading{margin-top:18px}
#collections{flex:1 1 auto;min-height:100px;overflow-y:auto;overflow-x:hidden;scrollbar-gutter:stable;overscroll-behavior-y:contain;padding-right:3px}
#collections button{min-width:0}
#collections button span{min-width:0;overflow-wrap:anywhere}
#collections:focus-visible{outline:2px solid var(--rust);outline-offset:2px}
.sidebar-bottom{margin-top:12px;padding-top:12px}
.sidebar-bottom small{margin-bottom:12px}
main{min-width:0}
dialog{max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);overflow:auto;scrollbar-gutter:stable;overscroll-behavior:contain}
#reader{max-height:calc(100dvh - 24px)}
#reader iframe{min-height:0}
.reader-head{flex-shrink:0;flex-wrap:wrap}
.section-title{gap:12px;flex-wrap:wrap}
@media(max-width:740px){
 .sidebar{height:auto;overflow:visible;padding:19px 20px;scrollbar-gutter:auto}
 .sidebar>.collection-heading{display:flex;margin:16px 0 8px}
 .sidebar>#collections{display:block;flex:none;min-height:0;max-height:220px;overflow-y:auto;overflow-x:hidden;margin-top:0}
 .sidebar-bottom{margin-top:12px;padding-top:0}
 .toolbar .search{min-width:0}
 .reader-head>div{flex-wrap:wrap}
}
footer{flex-wrap:wrap}.copyright{flex-basis:100%;font-size:11px;line-height:1.7;overflow-wrap:anywhere;color:#b91c1c}.copyright p{margin:4px 0;color:#b91c1c}
/* Shared palette requested for the library navigation and welcome banner. */
#library-shell .sidebar{background:#ffead5}
#library-shell .hero{background:#def2ff}
#library-shell .sidebar nav button.active{background:#f3d3b2;color:#44372b}
#library-shell .sidebar nav b{background:#f4d9be;color:#493a2b}
/* Madhvacharya portrait within the circular book backdrop. */
.halo{background-image:url('images/madhvacharya.jpg');background-size:cover;background-position:center;border:3px solid #cdb58d;box-shadow:0 0 0 12px #ffffff65,0 0 0 13px #bdd8e7}
/* Keep the portrait clear, with the decorative books to either side. */
.art .halo{width:220px;height:220px;top:18px;left:50%;right:auto;transform:translateX(-50%);background-size:contain;background-repeat:no-repeat;background-color:#eaf4fa}
.art .book{width:65px;height:102px;top:220px;left:0;outline-offset:-7px;border-left-width:4px}
.art .book-back{left:auto;right:0;top:220px;transform:rotate(10deg)}
.art .book-front{transform:rotate(-9deg)}
.art .book-top{font-size:6px;letter-spacing:.5px;margin-top:18px}
.art .book-ornament{font-size:22px;margin-top:6px}
.art .book-bottom{font-size:3px;margin-top:5px;letter-spacing:.4px}
.art .book-flat{width:125px;height:10px;top:278px;left:50%;transform:translateX(-50%)}
.art .art-caption{top:305px;left:50%;width:180px;transform:translateX(-50%);color:#4e5b64}
@media(max-width:740px){.hero{min-height:520px}.hero-copy{padding-bottom:230px}.art{width:240px;height:200px;top:auto;bottom:12px;right:calc(50% - 120px);opacity:1}.art .halo{width:170px;height:170px;top:0}.art .book{top:123px;width:42px;height:66px}.art .book-back{top:123px}.art .book-top{font-size:4px;margin-top:12px}.art .book-ornament{font-size:14px;margin-top:3px}.art .book-bottom,.art .art-caption,.art .book-flat{display:none}}
/* Resizable folder navigation. Long names stay on a single line. */
:root{--sidebar-width:320px;--sidebar-size:clamp(280px,var(--sidebar-width),min(560px,calc(100vw - 420px)))}
@media(min-width:741px){.sidebar{width:var(--sidebar-size)}main{margin-left:var(--sidebar-size);padding-left:36px;padding-right:36px}}
#collections button{width:max-content;min-width:100%;gap:10px}
#collections button span{white-space:nowrap;overflow-wrap:normal}
#collections{overflow-x:auto}
#sidebar-resizer{position:fixed;top:0;bottom:0;left:calc(var(--sidebar-size) - 5px);width:10px;cursor:col-resize;z-index:5;touch-action:none;background:linear-gradient(90deg,transparent 4px,#caa885 4px,#caa885 6px,transparent 6px)}
#sidebar-resizer:hover,#sidebar-resizer:focus-visible{background:#b87d4580;outline:2px solid #8a542e;outline-offset:-2px}
body.resizing-sidebar{cursor:col-resize;user-select:none}
/* Give the portrait and readable book their own space in the banner. */
.hero{display:grid;grid-template-columns:minmax(0,1fr) 410px;align-items:center;min-height:370px}
.hero-copy{min-width:0;padding:32px}
.hero h1{font-size:clamp(38px,4vw,57px)}
.art{position:relative;inset:auto;width:auto;height:auto;min-height:340px;display:flex;align-items:center;justify-content:center;gap:26px;padding:24px 18px 42px;opacity:1}
.art .halo{position:relative;inset:auto;transform:none;width:200px;height:200px;flex:0 0 200px}
.art .book-front{position:relative;inset:auto;width:136px;height:205px;flex:0 0 136px;transform:rotate(-5deg);outline-offset:-11px;border-left-width:6px}
.art .book-top{font-size:14px;letter-spacing:.5px;line-height:1.65;margin-top:42px;color:#fff0d3}
.art .book-ornament{font-size:38px;margin-top:15px;color:#e5bd79}
.art .art-caption{top:auto;bottom:20px;left:50%;width:100%;font-size:11px;transform:translateX(-50%)}
@media(min-width:741px) and (max-width:1180px){.hero{grid-template-columns:1fr}.hero-copy{padding-bottom:10px}.art{min-height:285px}.hero p{max-width:none}.hero-note{max-width:none}.desktop{display:none}}
@media(max-width:740px){#sidebar-resizer{display:none}.sidebar{width:100%}main{margin-left:0}.hero{display:flex;flex-direction:column;min-height:0}.hero-copy{padding:27px 24px 16px}.hero h1{font-size:42px}.hero p{max-width:none}.art{position:relative;inset:auto;width:100%;min-height:285px;gap:22px;padding:20px 12px 40px;pointer-events:none}.art .halo{width:150px;height:150px;flex-basis:150px}.art .book-front{width:112px;height:170px;flex-basis:112px;inset:auto}.art .book-top{font-size:12px;margin-top:32px}.art .book-ornament{font-size:30px}.art .art-caption{display:block;bottom:12px}}
@media(max-width:360px){.art{flex-wrap:wrap;gap:20px;padding-bottom:48px}.art .halo{width:180px;height:180px;flex-basis:180px}.hero h1{font-size:36px}}
.breadcrumb{min-width:0;overflow-wrap:anywhere}.move-file-row,form>label.move-file-row{display:flex;flex-direction:row;align-items:flex-start;gap:12px}.move-file-row input[type=checkbox]{width:18px;flex:0 0 18px;min-height:18px;margin-top:2px}.move-file-row span{min-width:0;overflow-wrap:anywhere}.move-file-row small{display:block;margin-top:5px;color:var(--muted)}#moving-files{max-height:300px;overflow:auto;border-block:1px solid var(--line);padding-right:8px}#moving-files label{padding:12px 0;border-bottom:1px solid var(--line)}#moving-folder{overflow-wrap:anywhere}
#folder-share-link{width:100%;margin:10px 0;padding:12px;background:#fff;border:1px solid var(--line);border-radius:4px;color:var(--ink);font-size:12px}#sharing-folder{overflow-wrap:anywhere}#share-folder-dialog hr{border:0;border-top:1px solid var(--line);margin:22px 0}
.viewer-notice{padding:12px 16px;border:1px solid #cbded2;border-radius:5px;background:#edf5ef;color:#36543e;font-size:12px;line-height:1.6}#website-share-link{width:100%;margin:10px 0 18px;padding:12px;background:#fff;border:1px solid var(--line);border-radius:4px;color:var(--ink);font-size:12px}#share-website-dialog>p{line-height:1.7}#share-website{margin-top:8px}
.sidebar-search{display:flex;align-items:center;gap:8px;flex-shrink:0;margin-top:20px;background:#fffaf5;border:1px solid #c5a786;border-radius:5px;padding:0 10px;color:#6e543b}.sidebar-search>span{font-size:22px}.sidebar-search input{min-width:0;width:100%;padding:11px 0;border:0;background:transparent;font-size:12px;color:var(--ink)}.sidebar-search input::placeholder{color:#6c6257;opacity:1}#folder-search-status{flex-shrink:0;font-size:10px;line-height:1.5;color:#61513f;margin:5px 2px 0}#folder-search-status:empty{display:none}.sidebar-search~.collection-heading{margin-top:12px}@media(max-width:740px){.sidebar-search{margin-top:14px}}
/* Expandable folder hierarchy, with child rows visually nested. */
#collections .folder-row{display:flex;align-items:center;min-width:max-content;width:100%;padding-left:calc(var(--folder-depth)*20px);border-left:2px solid transparent}#collections .folder-row[style*="--folder-depth:1"]{border-left-color:#d8b796}#collections .folder-toggle{flex:0 0 24px;width:24px;min-width:24px;justify-content:center;padding:9px 0;margin:0;background:transparent;font-size:17px;color:#634a32}#collections .folder-toggle-spacer{flex:0 0 24px;width:24px}#collections .folder-name{flex:1;min-width:0;width:auto;padding:11px 8px;gap:10px;margin:2px 0}#collections .folder-name span{flex:1}.folder-toggle:disabled{opacity:1;cursor:default}
header{gap:12px}.refresh-page-button{flex-shrink:0;font-size:12px;padding:10px 14px;white-space:nowrap}header .breadcrumb{flex:1}header .personal{margin-left:auto}@media(max-width:740px){.refresh-page-button{padding:8px 10px;font-size:11px}}
#folder-totals{display:block;flex-shrink:0;font-size:10px;color:#65513f;line-height:1.5;margin:0 4px 10px}#collections .folder-caption{min-width:0;white-space:nowrap}#collections .folder-number{display:inline;font-size:11px;font-weight:700;color:#77573a;font-variant-numeric:tabular-nums}#collections .subfolder-count{display:block;font-size:9px;color:#78634e;margin:3px 0 0 18px;font-weight:400}#collections .folder-file-count{font-size:9px;white-space:nowrap;color:#6e5842;flex-shrink:0}
.card-actions{flex-wrap:wrap}#renaming-folder{overflow-wrap:anywhere}
.folder-heading-actions{display:inline-flex;align-items:center;gap:6px}.collection-heading .folder-refresh{font-size:21px;width:30px;height:30px;display:grid;place-items:center;border-radius:4px;color:#6d4c2d}.collection-heading .folder-refresh:hover{background:#edcfaf}.folder-refresh[aria-busy=true]{animation:refresh-folder-spin .8s linear infinite}@keyframes refresh-folder-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.folder-refresh[aria-busy=true]{animation:none}}
#file-share-link{width:100%;margin:10px 0 18px;padding:12px;background:#fff;border:1px solid var(--line);border-radius:4px;color:var(--ink);font-size:12px}#sharing-file-title{overflow-wrap:anywhere;font-size:22px}#share-file-dialog .secondary{margin-top:10px}

.card-cover.has-cover{height:320px;background:#f1eee7;padding:8px;overflow:hidden}.document-cover{display:block;width:100%;height:100%;object-fit:contain;object-position:center}.document-cover[hidden]{display:none}#thumbnail-title{overflow-wrap:anywhere}#thumbnail-dialog hr{border:0;border-top:1px solid var(--line);margin:22px 0}

.card-actions a.external-link{font-size:11px;padding:8px 10px;border:1px solid var(--line);border-radius:4px;color:var(--ink);text-decoration:none}.card-actions a.external-link:hover{background:#f1e9dc}.section-title>div:last-child{display:flex;flex-wrap:wrap;gap:6px;justify-content:flex-end}

#storage-status{display:block;margin:16px 0 8px;font-size:11px;color:#455865}#storage-status[hidden]{display:none}#check-storage{font-size:11px;padding:7px 10px}

.developer-credit{flex-basis:100%;margin:8px 0 0;font-size:12px;line-height:1.8;color:#584430;overflow-wrap:anywhere}.developer-credit a{color:#85401f;text-decoration:underline;text-underline-offset:3px}.developer-credit a:hover{color:#5b2914}

.browse-documents{position:fixed;right:22px;bottom:22px;z-index:30;padding:14px 19px;border-radius:24px;background:var(--rust);color:#fff;box-shadow:0 5px 20px #30251f33;font-size:13px;font-weight:600;min-height:44px}.browse-documents:hover{filter:brightness(.9)}
#document-browser{width:min(520px,calc(100vw - 28px));max-height:min(760px,85dvh);padding:24px;border-radius:14px}#document-browser::backdrop{background:#241e1766}#document-browser-search{width:100%;margin-top:8px}.document-browser-results{max-height:55dvh;overflow-y:auto;overscroll-behavior:contain;padding-right:4px}.document-browser-item{display:block;width:100%;text-align:left;padding:14px 12px;background:var(--paper);color:var(--ink);border:1px solid var(--line);border-radius:8px;margin:8px 0;overflow-wrap:anywhere}.document-browser-item:hover,.document-browser-item:focus-visible{border-color:var(--rust);background:#fff1e4}.document-browser-item strong,.document-browser-item small,.document-browser-item span{display:block}.document-browser-item small{margin:6px 0;color:#625548;line-height:1.6}.document-browser-item span{font-size:11px;color:var(--rust)}footer{padding-bottom:85px}@media(max-width:600px){.browse-documents{right:12px;bottom:12px;font-size:12px}#document-browser{padding:18px}}

/* Keep sign-in out of the first paint until session restoration has finished. */
.booting #auth-screen,.booting #library-shell{display:none!important}.boot-screen{min-height:100dvh;display:grid;place-items:center;background:var(--paper);color:var(--ink)}.boot-screen[hidden]{display:none}.boot-card{display:flex;align-items:center;flex-direction:column;gap:18px;padding:32px;text-align:center}.boot-card strong{font-size:17px}.boot-card p{margin:0;color:#625548}.boot-spinner{width:28px;height:28px;border:3px solid #e6d8ca;border-top-color:var(--rust);border-radius:50%;animation:boot-spin .9s linear infinite}@keyframes boot-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.boot-spinner{animation:none}}

/* Floating page shortcuts stay above Browse documents on every screen size. */
.page-navigation{position:fixed;right:22px;bottom:82px;z-index:30;display:flex;flex-direction:column;gap:8px;align-items:stretch}
.page-navigation button{min-height:44px;padding:10px 16px;border:1px solid #b08766;border-radius:24px;background:#fff4e8;color:#593521;box-shadow:0 3px 12px #30251f22;font-size:12px;font-weight:600;white-space:nowrap}
.page-navigation button span{font-size:18px;margin-right:6px}.page-navigation button:hover{background:#ffe4c8}.page-navigation button:focus-visible{outline:3px solid var(--rust);outline-offset:3px}
footer{padding-bottom:210px}@media(max-width:600px){.page-navigation{right:12px;bottom:72px}.page-navigation button{padding:10px 13px}}

/* Compact, side-by-side page arrows; names remain available to screen readers. */
.page-navigation{flex-direction:row}
.page-navigation button{width:44px;height:44px;padding:0;display:grid;place-items:center}
.page-navigation button span{font-size:23px;margin:0}
@media(max-width:600px){.page-navigation button{padding:0}}

@font-face{font-family:'MTV page arrows';src:url('vendor/Font-APEX-Small.woff2') format('woff2');font-weight:normal;font-style:normal;font-display:block}
.page-navigation button{border-radius:50%;background:#fff;color:#333;border:1px solid #d0d0d0;box-shadow:0 2px 7px #0002}
.page-navigation button:hover{background:#eee}
.page-navigation button span{font-family:'MTV page arrows';font-size:24px;font-weight:normal;line-height:1}

/* Orange page controls with high-contrast white arrow icons. */
.page-navigation button{background:#c45100;color:#fff;border-color:#c45100}
.page-navigation button:hover{background:#a84200;border-color:#a84200}
.page-navigation button:focus-visible{outline-color:#783e29}

/* A full-page cover preview that stays above card clipping and never captures clicks. */
.card-cover.has-cover{cursor:zoom-in}
.card-cover.has-cover:focus-visible{outline:3px solid var(--rust);outline-offset:3px}
.cover-zoom{position:fixed;left:0;top:0;z-index:5000;pointer-events:none;padding:10px;background:#fff;border:1px solid #d5c7b7;border-radius:8px;box-shadow:0 12px 60px #302c2560;max-width:calc(100vw - 16px)}
.cover-zoom[hidden]{display:none}
.cover-zoom img{display:block;object-fit:contain;background:#fff;max-width:100%;max-height:calc(100dvh - 84px)}
.cover-zoom-caption{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:8px 2px 0;color:#302c25;font-size:12px;text-align:center}
@media (hover:none){.card-cover.has-cover{cursor:default}}
