:root{--ink:#152018;--muted:#6e766f;--paper:#f4f1e8;--panel:#fffdf8;--line:#d8d5ca;--green:#166b42;--lime:#d7f05d;--red:#a8392f;--shadow:0 28px 70px rgba(25,35,27,.12)}
*{box-sizing:border-box}
html{background:var(--paper);color:var(--ink);font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
body{margin:0;min-height:100vh;background:radial-gradient(circle at 86% 2%,rgba(215,240,93,.24),transparent 28rem),var(--paper)}
button,input,select,textarea{font:inherit}
button,a{touch-action:manipulation}
.grain{position:fixed;inset:0;opacity:.035;pointer-events:none;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.72'/%3E%3C/svg%3E")}
.is-hidden{display:none!important}.shell{width:min(1180px,calc(100% - 48px));margin-inline:auto}
.loading-view{min-height:100vh;display:grid;place-content:center;gap:18px;text-align:center;color:var(--muted);letter-spacing:.12em;text-transform:uppercase;font-size:12px}.loading-view img{margin:auto;border-radius:22px;box-shadow:0 15px 35px rgba(20,32,24,.16)}
.auth-view{min-height:100vh;display:grid;place-items:center;padding:76px 24px;position:relative}.back-link{position:absolute;top:28px;left:32px;color:var(--ink);text-decoration:none;font-size:13px;font-weight:750}.auth-card{width:min(560px,100%);background:rgba(255,253,248,.9);border:1px solid var(--line);border-radius:34px;padding:42px;box-shadow:var(--shadow);backdrop-filter:blur(18px)}
.brand-lockup,.library-brand{display:flex;align-items:center;gap:17px}.brand-lockup img,.library-brand img{border-radius:18px}.brand-lockup span,.library-brand span,.hero-row span,.dialog-heading span{font-size:10px;letter-spacing:.18em;font-weight:850;color:var(--green)}.brand-lockup h1,.library-brand h1{font-family:Georgia,serif;font-weight:500;font-size:40px;line-height:1;margin:3px 0 0}.auth-lead{font-family:Georgia,serif;font-size:26px;line-height:1.34;margin:32px 0;color:#2b362e}.auth-form{display:grid;gap:12px;margin-top:24px}.auth-form label,.field-grid label{font-size:12px;font-weight:800;letter-spacing:.04em}.auth-form input,.field-grid input,.field-grid select,.field-grid textarea{width:100%;border:1px solid #c9cdc7;border-radius:14px;background:white;padding:14px 15px;color:var(--ink);outline:none;margin-top:7px}.auth-form input:focus,.field-grid input:focus,.field-grid select:focus,.field-grid textarea:focus{border-color:var(--green);box-shadow:0 0 0 3px rgba(22,107,66,.1)}.auth-form>button[type=submit],.primary-action{border:0;border-radius:14px;background:var(--ink);color:white;padding:15px 18px;font-weight:850;cursor:pointer}.auth-form button:disabled,.primary-action:disabled{opacity:.55;cursor:wait}.text-button{border:0;background:none;color:var(--green);font-weight:750;cursor:pointer}.code-input{text-align:center;font-size:28px!important;letter-spacing:.28em;font-variant-numeric:tabular-nums}.form-message{min-height:20px;color:var(--red);font-size:13px;line-height:1.45}.auth-note{display:flex;gap:12px;border-top:1px solid var(--line);padding-top:22px;margin-top:22px}.auth-note span{display:grid;place-items:center;flex:0 0 28px;height:28px;background:var(--lime);border-radius:50%;font-weight:900}.auth-note p{margin:2px 0 0;color:var(--muted);font-size:12px;line-height:1.5}
.library-header{height:104px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.library-brand{text-decoration:none;color:inherit}.library-brand h1{font-size:32px}.account-area{display:flex;align-items:center;gap:14px}.account-area>strong{background:var(--lime);border-radius:999px;padding:6px 10px;font-size:10px;letter-spacing:.12em}.account-area button{border:1px solid var(--line);background:rgba(255,255,255,.55);border-radius:999px;padding:8px 10px 8px 15px;display:flex;align-items:center;gap:12px;cursor:pointer;color:var(--ink)}.account-area button span{max-width:230px;overflow:hidden;text-overflow:ellipsis}.account-area button b{background:var(--ink);color:white;padding:7px 11px;border-radius:999px;font-size:11px}
.library-content{padding-block:64px 100px}.hero-row{display:grid;grid-template-columns:1.25fr .75fr;align-items:end;gap:40px;margin-bottom:45px}.hero-row h2{font-family:Georgia,serif;font-size:clamp(48px,7vw,88px);font-weight:500;letter-spacing:-.05em;line-height:.9;margin:12px 0 0}.hero-row h2 em{font-weight:500;color:var(--green)}.hero-row>p{font-size:18px;line-height:1.55;color:var(--muted);max-width:440px;margin:0 0 8px}.search-box{height:66px;border:1px solid #c5c9c3;background:white;border-radius:20px;display:flex;align-items:center;gap:14px;padding:0 22px;box-shadow:0 14px 35px rgba(29,41,31,.05)}.search-box>span{font-family:Georgia,serif;font-size:34px;color:var(--green);transform:rotate(-12deg)}.search-box input{border:0;outline:0;background:transparent;width:100%;font-size:17px;color:var(--ink)}.member-note{margin:22px 0 30px;display:flex;gap:14px;padding:17px 20px;background:#e8eee7;border-radius:18px}.lock-mark{width:12px;height:12px;border:3px solid var(--green);border-radius:50%;color:transparent;margin:5px}.member-note strong{font-size:13px}.member-note p{margin:4px 0 0;color:var(--muted);font-size:12px}.filters{display:grid;gap:10px;border-block:1px solid var(--line);padding-block:20px}.filter-row{display:flex;gap:8px;flex-wrap:wrap}.filter-row button{border:1px solid transparent;background:transparent;color:var(--muted);border-radius:999px;padding:9px 14px;font-size:12px;font-weight:750;cursor:pointer}.filter-row button:hover{border-color:#bdc4bd}.filter-row button.active{background:var(--ink);color:white}.filter-row.levels button.active{background:var(--green)}.collection-heading{display:flex;align-items:end;justify-content:space-between;margin:52px 0 24px}.collection-heading h2{font-family:Georgia,serif;font-size:43px;font-weight:500;margin:0}.collection-heading p{margin:4px 0 0;color:var(--muted);font-size:13px}.add-button{border:0;background:var(--lime);color:var(--ink);border-radius:999px;padding:12px 17px;font-weight:850;cursor:pointer}.add-button span{font-size:18px}.library-message{min-height:0;color:var(--red)}
.book-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:28px 20px}.book-card{min-width:0}.book-cover{aspect-ratio:4/5.35;border-radius:7px 18px 18px 7px;background:linear-gradient(145deg,#1b4932,#0c2518);box-shadow:10px 14px 26px rgba(20,32,24,.18),inset 7px 0 rgba(255,255,255,.08);display:grid;place-content:center;text-align:center;color:white;position:relative;overflow:hidden}.book-cover::before{content:"";position:absolute;left:9px;top:0;bottom:0;width:1px;background:rgba(255,255,255,.22)}.book-cover img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.book-cover span{font-size:9px;letter-spacing:.2em}.book-cover b{font-family:Georgia,serif;font-size:82px;line-height:1;margin:15px}.book-cover small{font-size:9px;letter-spacing:.2em;color:var(--lime)}.book-info{padding:14px 4px}.book-info h3{margin:0;font-family:Georgia,serif;font-size:22px;font-weight:500;line-height:1.15}.book-author{margin:5px 0 12px;color:var(--muted);font-size:13px}.book-meta{display:flex;gap:6px;flex-wrap:wrap}.book-meta span{border:1px solid var(--line);border-radius:999px;padding:4px 7px;font-size:9px;font-weight:800}.book-actions{display:flex;gap:8px;margin-top:13px}.book-actions a,.book-actions button{flex:1;text-align:center;border:1px solid var(--ink);border-radius:10px;background:transparent;color:var(--ink);text-decoration:none;padding:9px;font-size:11px;font-weight:850;cursor:pointer}.book-actions a{background:var(--ink);color:white}.book-actions button.danger{flex:0 0 auto;border-color:#d4aaa6;color:var(--red)}.empty-library{grid-column:1/-1;border:1px dashed #bfc4bc;border-radius:25px;padding:70px 28px;text-align:center}.empty-library span{font-size:10px;letter-spacing:.22em;color:var(--green);font-weight:900}.empty-library h3{font-family:Georgia,serif;font-size:34px;font-weight:500;margin:12px}.empty-library p{color:var(--muted);margin:0}
dialog{border:0;padding:0;background:transparent;width:min(760px,calc(100% - 28px));max-height:calc(100vh - 30px)}dialog::backdrop{background:rgba(12,23,16,.68);backdrop-filter:blur(8px)}.upload-card{background:var(--panel);border-radius:28px;padding:32px;max-height:calc(100vh - 30px);overflow:auto}.dialog-heading{display:flex;align-items:start;justify-content:space-between;margin-bottom:25px}.dialog-heading h2{font-family:Georgia,serif;font-size:36px;font-weight:500;margin:7px 0 0}.dialog-heading button{border:0;background:#ecebe5;border-radius:50%;width:38px;height:38px;font-size:25px;cursor:pointer}.field-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.field-grid .wide{grid-column:1/-1}.file-field{border:1px dashed #aeb7ae;border-radius:16px;padding:14px}.file-field input{border:0;padding:8px 0 0;background:transparent}.primary-action{width:100%;margin-top:10px}
.file-field>small{display:block;margin-top:8px;color:var(--muted);font-size:11px;font-weight:600;letter-spacing:0;line-height:1.45}
.optional{color:var(--muted);font-size:10px;font-weight:650;letter-spacing:0}
.metadata-preview{display:flex;align-items:center;gap:16px;border:1px solid #c9d8cc;background:#eef4ed;border-radius:16px;padding:14px}
.metadata-preview img{width:62px;height:82px;object-fit:cover;border-radius:5px;background:#dfe6df;box-shadow:0 7px 16px rgba(20,32,24,.16)}
.metadata-preview div{display:grid;gap:5px}.metadata-preview strong{font-size:13px}.metadata-preview span{color:var(--muted);font-size:11px;line-height:1.45}.metadata-preview.no-cover img{display:none}
@media(max-width:900px){.book-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.hero-row{grid-template-columns:1fr}.hero-row>p{max-width:620px}.hero-row h2{font-size:68px}}
@media(max-width:680px){.shell{width:min(100% - 28px,1180px)}.auth-view{padding:72px 14px 30px}.auth-card{padding:28px 22px;border-radius:25px}.back-link{left:18px;top:22px}.brand-lockup h1{font-size:35px}.auth-lead{font-size:22px}.library-header{height:86px}.library-brand img{width:48px;height:48px}.library-brand span{font-size:8px}.library-brand h1{font-size:26px}.account-area>strong,.account-area button>span{display:none}.account-area button{padding:5px}.library-content{padding-top:42px}.hero-row{gap:20px;margin-bottom:32px}.hero-row h2{font-size:52px}.hero-row>p{font-size:15px}.search-box{height:58px}.member-note{align-items:flex-start}.filters{overflow:hidden}.filter-row{flex-wrap:nowrap;overflow-x:auto;padding-bottom:4px;scrollbar-width:none}.filter-row button{white-space:nowrap}.collection-heading{margin-top:40px}.collection-heading h2{font-size:35px}.book-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 13px}.book-info h3{font-size:18px}.book-cover b{font-size:56px}.field-grid{grid-template-columns:1fr}.field-grid .wide{grid-column:auto}.upload-card{padding:25px 18px}.dialog-heading h2{font-size:29px}}
@media(max-width:380px){.book-grid{grid-template-columns:1fr}.book-cover{max-width:260px;width:100%;margin:auto}.brand-lockup img{width:64px;height:64px}.auth-card{padding-inline:18px}}
