:root{color-scheme:light;--ink:#282137;--muted:#665d73;--plum:#503169;--line:#e8e2ed;--paper:#faf8fc;--lav:#f1eaf8;font-family:system-ui,sans-serif;color:var(--ink);background:var(--paper)}
*{box-sizing:border-box}body{margin:0;display:grid;grid-template-columns:240px minmax(0,1fr);min-height:100vh}button,input,select,textarea{font:inherit;color:inherit}button,select{cursor:pointer}button{border:1px solid var(--line);border-radius:9px;background:white;padding:10px 15px;font-size:.9rem;font-weight:650}button:hover{background:var(--lav)}:focus-visible{outline:3px solid #9064b0;outline-offset:3px}[hidden]{display:none!important}
.sidebar{background:#fff;border-right:1px solid var(--line);padding:27px 19px;display:flex;flex-direction:column;gap:42px}.brand{display:flex;align-items:center;gap:11px;font-weight:750;line-height:1.2;padding-left:7px}.brand small,.backup small{display:block;color:var(--muted);font-size:.79rem;font-weight:450;margin-top:5px}.mark{background:var(--plum);color:white;width:38px;height:38px;display:grid;place-items:center;border-radius:10px;font-size:1.45rem}.sidebar p{display:block;margin:0 0 10px 10px;color:var(--muted);font-size:.75rem;letter-spacing:.12em;font-weight:750}.sidebar button{display:flex;align-items:center;gap:12px;width:100%;text-align:left;border:0;background:transparent;color:var(--muted);margin:3px 0}.sidebar button:hover,.sidebar [aria-current]{background:var(--lav);color:var(--plum)}.sidebar button span{width:17px;text-align:center;font-size:1.05rem}.sidebar button b{margin-left:auto;font-weight:550;font-size:.8rem}.backup{margin-top:auto}.backup small{margin:12px 10px 0}
.top{height:76px;background:white;border-bottom:1px solid var(--line);padding:0 clamp(18px,4vw,55px);display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:.875rem;color:var(--muted)}.top i{font-style:normal;margin:0 7px;color:#8d7c9b}.primary{background:var(--plum);color:white;border-color:var(--plum)}.primary:hover{background:#3d2354}.content{max-width:1380px;margin:auto;padding:33px clamp(18px,4vw,55px) 48px}.hero{background:radial-gradient(ellipse at 86% 55%,#765286,#483052 62%,#3b2846);color:#fff;border-radius:19px;min-height:243px;position:relative;display:flex;align-items:center;overflow:hidden;padding:34px clamp(23px,4vw,52px)}.hero-copy{z-index:1;max-width:62%}h1,h2,h3{font-family:Georgia,serif;font-weight:500;margin:0}h1{font-size:clamp(2.7rem,5.3vw,4.65rem);letter-spacing:-.045em;line-height:1.02}.hero p{color:#f1e3f5;margin:16px 0 0;line-height:1.6;max-width:340px}.art{position:absolute;right:5%;bottom:0;width:305px;height:229px;opacity:.96}.orbit{position:absolute;width:237px;height:237px;border-radius:50%;border:1px solid #b489c179;top:17px;left:44px;box-shadow:0 0 0 18px #c699d514,0 0 0 36px #c699d50d}.star{position:absolute;color:#f3cf9a;font-style:normal}.one{left:22px;top:65px;font-size:25px}.two{right:12px;top:48px;font-size:28px}.three{right:0;bottom:72px;font-size:14px}.shelf{position:absolute;inset:auto 12px 31px 28px;display:flex;justify-content:center;align-items:end;gap:6px;border-bottom:5px solid #b38dbb;border-radius:3px;height:160px}.volume{display:block;width:36px;border-radius:5px 4px 3px 3px;position:relative;box-shadow:inset 5px 0 #2717323b,inset -3px 0 #ffeeeb30,3px 4px 13px #27173280;background:#c79ac7;height:125px}.volume:before,.volume:after{content:"";position:absolute;inset:13px 7px auto;height:8px;border-block:1px solid #40264190}.volume:after{inset:auto 7px 13px}.volume.a{height:104px;background:#d7a575;transform:rotate(-13deg);margin-right:10px;margin-bottom:2px}.volume.b{height:142px;background:#cca6d2}.volume.c{height:118px;background:#e5c0a0;width:27px}.volume.d{height:155px;background:#a582bb;width:41px}.volume.e{height:103px;background:#d18e96;width:27px;transform:rotate(14deg);margin-left:9px;margin-bottom:2px}
.collection{margin-top:32px}.collection-head{display:flex;gap:12px;align-items:center;margin-bottom:17px}.collection-head h2{font-size:2rem}.collection-head span{border-radius:20px;padding:4px 10px;background:var(--lav);color:var(--plum);font-size:.8rem;font-weight:650}.tools{display:flex;gap:12px;margin-bottom:16px}.search{display:flex;align-items:center;gap:11px;background:white;border:1px solid var(--line);border-radius:9px;padding:0 14px;flex:1;min-width:0}.search span{display:block;border:1.7px solid #786987;border-radius:50%;width:13px;height:13px;position:relative;flex:none}.search span:after{content:"";position:absolute;background:#786987;width:6px;height:1.7px;right:-5px;bottom:-2px;transform:rotate(45deg)}.search input{width:100%;border:none;padding:11px 3px;background:transparent;min-width:0}.tools select,input,textarea,select{border:1px solid var(--line);border-radius:8px;background:white;padding:10px}.tools select{font-size:.875rem;padding-inline:12px 28px;color:var(--muted)}select{appearance:none;background-image:linear-gradient(45deg,transparent 50%,#786987 50%),linear-gradient(135deg,#786987 50%,transparent 50%);background-position:calc(100% - 15px) 50%,calc(100% - 11px) 50%;background-size:4px 4px;background-repeat:no-repeat;padding-right:26px}
.empty{display:grid;justify-items:center;align-content:center;text-align:center;min-height:280px;border:1px dashed #d9cce4;background:#fffdff;border-radius:14px;padding:25px 16px}.empty-icon{display:flex;align-items:end;justify-content:center;gap:3px;width:62px;height:62px;padding-bottom:17px;border-radius:17px;background:var(--lav);margin-bottom:15px}.empty-icon i{display:block;width:7px;height:22px;border:1.5px solid #77518f;border-radius:2px}.empty-icon i:nth-child(2){height:26px}.empty-icon i:nth-child(3){transform:rotate(-13deg);height:20px;margin-left:2px}.empty h3{font-size:1.55rem}.empty p{color:var(--muted);margin:8px 0 17px}.books{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(230px,100%),1fr));gap:14px}.book{display:flex;text-align:left;gap:13px;align-items:center;padding:15px;min-width:0}.spine{flex:none;width:43px;height:60px;border-radius:4px 6px 6px 4px;background:var(--lav);border-left:5px solid #a987bf;color:var(--plum);display:grid;place-items:center;font-family:Georgia,serif;font-size:1.25rem}.details{min-width:0;display:grid;gap:4px}.details strong,.details small{overflow-wrap:anywhere}.details small{font-weight:450;color:var(--muted)}.badge{width:fit-content;margin-top:3px;border-radius:14px;background:var(--lav);color:var(--plum);padding:3px 7px;font-size:.75rem}
dialog{border:1px solid var(--line);border-radius:16px;width:min(540px,calc(100% - 24px));padding:24px;color:var(--ink);box-shadow:0 20px 95px #20152e55}dialog::backdrop{background:#24172f80}.dialog-head,.dialog-actions{display:flex;align-items:center;justify-content:space-between;gap:9px}.dialog-head{margin-bottom:20px}.quiet{padding:3px 10px;font-size:1.2rem}.fields{display:grid;grid-template-columns:1fr 1fr;gap:13px}.fields label{display:grid;gap:5px;font-size:.875rem;font-weight:650}.fields input,.fields select,.fields textarea{min-width:0;width:100%;font-weight:450}.wide{grid-column:1/-1}.dialog-actions{margin-top:18px;justify-content:end;flex-wrap:wrap}.danger{margin-right:auto;color:#9d294c}#message{position:fixed;bottom:20px;right:20px;background:#352441;color:white;padding:13px 17px;border-radius:9px;max-width:calc(100% - 40px);z-index:2}
@media(max-width:900px){body{grid-template-columns:190px minmax(0,1fr)}.sidebar{padding-inline:12px}.art{right:0;transform:scale(.76);transform-origin:bottom right}}
@media(max-width:680px){body{display:flex;flex-direction:column}.sidebar{order:1;border:0;border-top:1px solid var(--line);gap:12px;padding:18px}.sidebar .brand,.sidebar nav p{display:none}.backup{margin:0;display:flex;align-items:center;flex-wrap:wrap}.backup p{width:100%;margin:0}.backup button{width:auto}.sidebar nav{display:flex;flex-wrap:wrap;gap:4px}.sidebar nav button{width:auto;padding:8px;gap:4px}.top{height:61px}.content{padding-top:19px;padding-bottom:23px}.hero{min-height:205px}.hero-copy{max-width:72%}.art{right:-8px;transform:scale(.46)}.hero p{font-size:.95rem}.tools{flex-wrap:wrap}.search{min-width:min(245px,100%)}.collection{margin-top:23px}}

.top{height:auto;min-height:76px;padding-block:12px;flex-wrap:wrap}
.top-actions,.sign-in-options{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.sign-in-options a{display:inline-block;padding:9px 12px;border:1px solid var(--line);border-radius:9px;color:var(--plum);font-weight:650;text-decoration:none}
.sign-in-options a:hover{background:var(--lav)}
@media(max-width:680px){.top{min-height:61px}}
