@import"https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@400;600;700&display=swap";:root{font-family:DM Sans,sans-serif;color:#39271e;background:#f4e8d2;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.6;cursor:wait}.app{min-height:100vh;background:radial-gradient(ellipse at top,#f8eddb,#e9d5b5);padding-bottom:25px}.hero{text-align:center;background:linear-gradient(135deg,#3a241b,#64402b 60%,#362017);color:#fff3df;padding:22px 16px 26px;box-shadow:0 6px 20px #30180c44}.ornament{font-size:31px;color:#d6ac67}.hero h1,.auth-card h1{font:700 clamp(28px,6vw,43px) "Playfair Display",serif;margin:5px 0}.hero p{margin:7px 0 20px;color:#e9cfaa;font-style:italic}.hero-actions{display:flex;align-items:center;justify-content:center;gap:12px}.add-btn,.primary{background:#a66b38;color:#fff;border:0;border-radius:8px;padding:12px 18px;font-weight:700}.add-btn{display:flex;gap:7px;align-items:center}.icon-btn{background:#ffffff1b;color:#fff;border:1px solid #ffffff55;border-radius:8px;padding:10px}.tabs{display:flex;justify-content:center;gap:0;background:#f5e6cd;border-bottom:2px solid #d2b489}.tabs button{border:0;background:none;padding:15px 22px;display:flex;align-items:center;gap:7px;color:#70513d}.tabs .active{border-bottom:3px solid #9c6030;color:#533019;font-weight:700}.content{max-width:920px;margin:auto;padding:20px 17px;min-height:350px}.toolbar,.year-nav,.month-nav,.switch{display:flex;align-items:center;justify-content:space-between;gap:8px}.toolbar{margin-bottom:22px}.year-nav button,.month-nav button{background:transparent;border:0;color:#6a452c;padding:8px}.year-nav strong{font:700 22px Playfair Display,serif}.switch{background:#e1ccb0;border-radius:9px;padding:4px}.switch button{background:transparent;border:0;border-radius:7px;padding:8px 10px;color:#67452e}.switch .selected{background:#fff8e8;box-shadow:0 1px 4px #63402733}.month-nav{justify-content:center;gap:24px}.month-nav h2,.section-title,.stats h2{font:700 30px Playfair Display,serif;margin:5px 0}.count{text-align:center;color:#88694f;margin:6px 0 24px}.shelf{background:linear-gradient(90deg,#45291b,#69402a 3%,#58331f,#6b422a 97%,#3b2218);padding:20px 12px 0;border:8px solid #4a2b1b;border-radius:6px;box-shadow:inset 0 8px 18px #1b0c0877,0 10px 18px #563b2750;margin:15px 0 26px}.book-row{display:flex;align-items:end;gap:14px;min-height:185px;flex-wrap:wrap;justify-content:center}.book{width:112px;flex-shrink:0;border:0;background:transparent;color:#f8e5c6;text-align:center;padding:0 0 10px}.book:hover{transform:translateY(-5px)}.cover-wrap{height:152px;display:flex;justify-content:center;align-items:end;position:relative}.cover{max-width:104px;width:100%;height:145px;object-fit:cover;box-shadow:4px 4px 8px #1b0c08aa;border-radius:2px 5px 5px 2px}.fallback{background:linear-gradient(125deg,#8d3d37,#522629);color:#f9dfb3;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:8px;border-left:6px solid #c28a50;overflow:hidden}.fallback small{font:600 12px Playfair Display,serif;overflow-wrap:anywhere}.hidden{display:none;position:absolute;bottom:0}.book span{display:block;font-size:11px;margin-top:8px;line-height:1.25;max-height:28px;overflow:hidden}.wood-edge{height:22px;background:linear-gradient(#a56e40,#754321 48%,#4b2a18);margin:0 -12px;border-top:3px solid #c18a55;box-shadow:0 7px 9px #190b0877}.empty{color:#e4caa8;text-align:center;padding:50px 10px}.shelf-heading{font:600 22px Playfair Display,serif;margin-top:25px}.shelf-heading small{font:400 14px DM Sans,sans-serif}.section-title{margin:18px 0}.stats{text-align:center}.stat-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:25px 0}.stat-grid>div,.goal{background:#fff7e9;border:1px solid #d7b991;border-radius:12px;padding:18px 8px}.stat-grid strong{display:block;font:700 35px Playfair Display,serif;color:#945c30}.stat-grid span{font-size:12px}.goal{padding:24px}.goal input{width:66px;padding:7px;margin-left:10px;border:1px solid #bda082;border-radius:6px}.progress{height:15px;background:#e7d3b9;border-radius:20px;overflow:hidden;margin-top:18px}.progress>div{height:100%;background:#9b673d;transition:width .2s}.bars{display:grid;grid-template-columns:repeat(12,1fr);gap:6px;align-items:end;height:180px;margin:20px 0}.bars>div{height:100%;display:flex;flex-direction:column;align-items:center;gap:5px;font-size:10px}.bar-track{height:100%;width:100%;max-width:28px;background:#e3ceb0;display:flex;align-items:end;border-radius:5px;overflow:hidden}.bar-track>div{background:#976137;width:100%;min-height:0}.bars b{font-size:11px}footer{text-align:center;color:#8e7158;font:italic 13px Playfair Display,serif;padding:24px}.auth-screen{min-height:100vh;display:grid;place-items:center;background:radial-gradient(#8b5a37,#2e1b14);padding:20px}.auth-card{max-width:420px;width:100%;background:#fff4df;border:7px double #b58b5b;border-radius:14px;text-align:center;padding:26px}.auth-card p{color:#71543d}.auth-card label,.book-form label{display:flex;flex-direction:column;text-align:left;gap:6px;margin:13px 0;font-weight:600;font-size:13px}.auth-card input,.book-form input,.book-form textarea,.book-form select{width:100%;padding:11px;border:1px solid #c9b094;border-radius:7px;background:#fffdf8;color:#3c291e}.auth-card .primary{width:100%;margin-top:10px}.link-btn{border:0;background:none;color:#86522c;margin-top:14px;text-decoration:underline}.error{color:#a52f2f!important;font-size:13px}.notice{color:#286b3c!important}.banner{max-width:900px;margin:12px auto;background:#fff1ec;padding:10px 15px;border-radius:8px}.banner button{float:right;border:0;background:none}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#160b08b8;z-index:10;display:flex;justify-content:center;align-items:center;padding:12px}.modal{width:min(100%,530px);max-height:95vh;overflow-y:auto;background:#fff2dc;border:5px solid #855634;border-radius:13px;padding:18px;box-shadow:0 20px 50px #13090388}.modal-head{display:flex;justify-content:space-between;align-items:center}.modal-head h2{font:700 27px Playfair Display,serif;margin:5px 0}.modal-head button{border:0;background:none}.search-row{display:flex;gap:7px;margin:15px 0}.search-row input{flex:1;min-width:0}.search-row button{background:#865332;color:#fff;border:0;border-radius:7px;padding:0 15px}.search-results{max-height:210px;overflow-y:auto;background:#fffdf7;border:1px solid #cdb496;border-radius:8px}.search-results button{width:100%;display:flex;align-items:center;gap:10px;text-align:left;background:none;border:0;border-bottom:1px solid #eadbc8;padding:8px}.search-results img{width:35px;height:49px;object-fit:cover}.search-results small{display:block;color:#856d58}.form-preview{display:flex;gap:12px;align-items:center;color:#8b725c;font-size:12px}.form-preview img{width:54px;max-height:80px;object-fit:cover}.date-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.stars{display:flex;gap:7px}.stars button{background:none;border:0;padding:0}.form-actions{display:flex;justify-content:space-between;gap:12px;margin:22px 0 3px}.form-actions .primary{margin-left:auto}.delete{border:1px solid #b85d4e;background:transparent;color:#a63d30;border-radius:7px;display:flex;align-items:center;gap:5px;padding:10px}@media (max-width:480px){.tabs button{padding:14px 12px;font-size:13px}.book{width:88px}.cover-wrap{height:123px}.cover{height:118px;max-width:85px}.book-row{gap:9px;min-height:145px}.toolbar{flex-wrap:wrap}.stat-grid strong{font-size:29px}.date-grid{grid-template-columns:1fr}}:root{--nook-cream:#f8edda;--nook-brown:#2d1810;--nook-brass:#cfa76b;--nook-wine:#7e3437;--nook-paper:#f8edd9}body{background:#2a160f!important}.app{background:radial-gradient(circle at 50% 0%,#94643d,#5c3422 25%,#301b13 70%,#24130e);color:var(--nook-paper);position:relative;min-height:100vh;padding-bottom:105px}.hero{position:relative;background:linear-gradient(110deg,#2b170f 1%,#58321f,#3d2318 75%,#24130e);border-bottom:10px ridge #9a602c;box-shadow:inset 0 -13px 24px #150a06,0 10px 20px #170c0a77;padding:30px 15px 25px;overflow:hidden}.hero:before,.hero:after{content:"❧";position:absolute;top:4px;font-size:70px;color:#69804c;opacity:.8;text-shadow:2px 6px 5px #120c07;transform:rotate(-24deg)}.hero:before{left:-4px}.hero:after{right:-8px;transform:scaleX(-1) rotate(-24deg)}.hero h1{font-size:clamp(27px,6vw,46px);font-weight:700;letter-spacing:-.025em;text-shadow:0 4px 5px #090504}.hero .ornament{font-size:23px;letter-spacing:9px;color:#e2b971}.hero p{color:#ecd7af;font:italic 16px Playfair Display,serif}.add-btn{background:var(--nook-wine);border:1px solid #dfad95;border-radius:50px;box-shadow:0 3px 10px #100705;min-width:151px;justify-content:center}.add-btn:hover,.primary:hover{filter:brightness(1.1)}.tabs{position:fixed;z-index:5;bottom:0;left:0;right:0;display:flex;justify-content:space-evenly;background:linear-gradient(#fdf2df,#e6cda9);border-top:5px solid #8d552d;padding-bottom:env(safe-area-inset-bottom);box-shadow:0 -8px 25px #14090777}.tabs button{flex:1;justify-content:center;flex-direction:column;gap:5px;padding:9px 7px;color:#60402c;font-size:12px;font-weight:700}.tabs .active{border-bottom:0;color:#83363a;background:#ead2b4}.content{max-width:980px;padding-top:24px}.toolbar{background:linear-gradient(#754626,#4d2b1b);border:2px solid #af7844;border-radius:11px;padding:8px 13px;box-shadow:inset 0 3px 7px #150906,0 4px 8px #1a0907;margin-bottom:23px}.year-nav button,.month-nav button{color:#f8e0b4}.year-nav strong{color:#f6d9aa;font-size:24px}.switch{background:#3d2519}.switch button{color:#f4dbbd}.switch .selected{background:linear-gradient(#f7d99d,#bd874d);color:#3f2819;font-weight:700}.month-nav h2,.section-title,.stats h2{color:#f6d6a4;text-shadow:0 2px 3px #150a07}.month-nav h2,.shelf-heading{background:linear-gradient(100deg,#ba8247,#f3d39c 45%,#be8448 85%);border:2px ridge #f5d59e;box-shadow:0 5px 12px #150803a0,inset 0 0 0 2px #7e5129;border-radius:8px;color:#382316;text-shadow:0 1px 0 #ffebc1;padding:5px 20px;font-size:23px}.month-nav{gap:9px}.month-nav h2{text-align:center;min-width:175px;margin:0}.count{color:#efd0a0;font:italic 14px Playfair Display,serif}.shelf{border:10px ridge #7a421d;border-radius:3px;background:repeating-linear-gradient(90deg,#2e170e,#4b2918 6px,#512e1a 17px,#392012 21px,#432719 33px);box-shadow:inset 0 16px 32px #0d0605bb,0 12px 18px #130905a8;position:relative;margin:18px 0 30px;padding:24px 12px 0}.shelf:before{content:"";position:absolute;pointer-events:none;top:0;right:0;bottom:19px;left:0;background:linear-gradient(90deg,#100a0677,transparent 11%,transparent 88%,#100a0677),linear-gradient(#0009,transparent 30%)}.shelf .book-row{position:relative;z-index:1;min-height:205px;gap:14px;align-content:end}.book{position:relative;width:116px;transition:transform .2s ease;filter:drop-shadow(5px 6px 3px #120907)}.book:hover{transform:translateY(-9px)}.cover-wrap{height:166px}.cover{height:159px;max-width:108px;border:1px solid #2c190b;box-shadow:inset 3px 0 6px #0005,3px 4px 8px #160a05}.fallback{background:linear-gradient(90deg,#501d19,#9c4034 18%,#65231c);border-left:7px ridge #c58a55}.wood-edge{height:31px;background:linear-gradient(#d19956,#99582a 13%,#713b1c 40%,#4c250e 87%,#311709);margin:0 -12px;border-top:3px solid #e0a769;box-shadow:0 10px 16px #120806}.shelf-heading{display:table;margin:30px auto 7px;text-align:center}.shelf-heading small{color:#52331a}.empty{color:#f5d8ae;font:italic 16px Playfair Display,serif}.stats .stat-grid>div,.stats .goal{background:#f9ecd3;color:#362319;border:3px double #b58a50}.stats .goal strong,.stats .stat-grid strong{color:#85383a}.stats h3{color:#edc48f}.stats .bars span,.stats .bars b{color:#f1d6b5}.stats .bar-track{background:#9c6846}.stats .bar-track>div{background:#deae64}footer{color:#e6b980;padding-bottom:12px}.modal{background:linear-gradient(115deg,#faefdb,#eed6b2);border:7px ridge #9f642f;color:#432a18}.modal-head h2{color:#452919}.book-form input,.book-form textarea,.book-form select{background:#fffcf3}.book-form .primary{background:#7e3437}.reading-date-hint{border-left:4px solid #bd8c4f;border-radius:4px;background:#f4dfb7;padding:10px 12px;font-size:12px;line-height:1.5;color:#654327}@media (max-width:480px){.hero{padding:18px 12px}.hero:before,.hero:after{font-size:44px}.hero p{font-size:13px}.hero h1{font-size:30px}.tabs button{padding:8px 5px;font-size:11px}.content{padding:17px 10px}.toolbar{padding:6px 8px}.switch button{font-size:12px;padding:7px}.shelf{border-width:7px}.shelf .book-row{min-height:154px;gap:8px}.book{width:88px}.cover-wrap{height:131px}.cover{height:124px;max-width:85px}.month-nav h2{min-width:150px;font-size:21px;padding:6px 12px}.shelf-heading{font-size:20px}}
