@import "https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Playfair+Display:wght@600;700&family=Source+Sans+3:wght@400;500;600;700&display=swap";:root{color:#193531;font-synthesis:none;background:#f5f1e8;font-family:"Source Sans 3",sans-serif}*{box-sizing:border-box}body{min-width:320px;margin:0}.app-shell{max-width:1240px;margin:auto;padding:48px 28px 72px}.hero{align-items:center;gap:19px;margin:6px 0 38px;display:flex}.brand-mark{color:#f8f1df;background:#0f4c45;border-radius:20px;place-items:center;width:61px;height:61px;font:700 36px Playfair Display,serif;display:grid;box-shadow:8px 8px #d6a659}.eyebrow{letter-spacing:.14em;text-transform:uppercase;color:#936522;margin:0 0 5px;font:500 12px DM Mono,monospace}h1,h2,h3,p{margin-top:0}h1,h2{font-family:Playfair Display,serif}h1{margin-bottom:7px;font-size:36px;line-height:1}.hero-copy{color:#52655c;margin:0;font-size:18px}.stats{background:#fbfaf5;border:1px solid #d9d3c4;border-radius:16px;grid-template-columns:repeat(3,1fr);margin-bottom:28px;display:grid;overflow:hidden}.stats div{border-right:1px solid #d9d3c4;padding:20px 24px}.stats div:last-child{border:0}.stats strong{font:600 27px Playfair Display,serif;display:block}.stats span{color:#627268;font-size:14px;display:block}.catalog{background:#fffefa;border:1px solid #ded8ca;border-radius:20px;padding:30px;box-shadow:0 10px 30px #274f3b0d}.catalog-top{justify-content:space-between;align-items:center;display:flex}.catalog-actions{align-items:center;gap:8px;display:flex}.catalog h2{margin:0;font-size:28px}.refresh,.manage-link{color:#0f4c45;cursor:pointer;background:0 0;border:0;font:600 15px "Source Sans 3"}.refresh{padding:8px}.add-book{white-space:nowrap;min-height:40px}.controls{grid-template-columns:minmax(260px,2fr) 1fr 1fr;gap:14px;margin:27px 0 18px;display:grid}.controls label{color:#54645c;font-size:13px;font-weight:600}.controls input,.controls select{color:#193531;background:#fffefa;border:1px solid #cfc8b9;border-radius:9px;outline-color:#0f4c45;width:100%;height:44px;margin-top:5px;padding:0 12px;font:400 16px "Source Sans 3"}.search-box{display:block}.search-box span{margin-bottom:5px;display:block}.search-box input{padding-left:12px}.notice{color:#174b37;background:#e7f2e9;border-radius:9px;justify-content:space-between;align-items:center;gap:12px;margin:0 0 16px;padding:10px 13px;display:flex}.notice button{color:inherit;cursor:pointer;background:0 0;border:0;font-weight:700}.results-count{color:#65736b;margin:0 0 12px;font-size:14px}.table-wrap{border:1px solid #e1dbcf;border-radius:12px;overflow-x:auto}table{border-collapse:collapse;width:100%;min-width:850px}th{text-align:left;background:#f7f4ed;border-bottom:1px solid #ded8cc}th button{text-align:left;color:#59675e;text-transform:uppercase;letter-spacing:.04em;cursor:pointer;background:0 0;border:0;width:100%;padding:13px 14px;font:600 12px DM Mono}td{border-bottom:1px solid #ece7dc;padding:15px 14px;font-size:15px}td:first-child{color:#17372e;font-weight:700}tbody tr:last-child td{border:0}tbody tr:hover{background:#fcfaf4}.sort-indicator{color:#a46c18}.status-pill{border-radius:99px;padding:4px 10px;font-size:13px;font-weight:700;display:inline-block}.available{color:#17623a;background:#e3f1e5}.borrowed{color:#a3441c;background:#f7e7d8}.manage-link{white-space:nowrap}.empty,.state{text-align:center;color:#65736b;padding:54px 18px}.empty h3,.state h3{color:#263b33;margin-bottom:5px}.error{color:#833919;background:#fff1ed;border-radius:12px}.button{cursor:pointer;border:0;border-radius:9px;padding:10px 16px;font:600 15px "Source Sans 3"}.button.primary{color:#fff;background:#0f4c45}.button.primary:disabled{opacity:.65;cursor:wait}.button.secondary{color:#34463c;background:#eeeae0}.spinner{border:3px solid #d2dbd3;border-top-color:#0f4c45;border-radius:50%;width:30px;height:30px;margin:0 auto 13px;animation:.7s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}.modal-backdrop{z-index:10;overscroll-behavior:contain;background:#112a2080;place-items:center;padding:20px;display:grid;position:fixed;inset:0}.modal{background:#fffefa;border-radius:19px;flex-direction:column;width:min(100%,510px);max-height:min(760px,100dvh - 40px);display:flex;overflow:hidden;box-shadow:0 25px 70px #092d22a0}.modal-handle{display:none}.modal-heading{justify-content:space-between;gap:12px;padding:27px 27px 20px;display:flex}.modal h2{margin:0;font-size:25px}.book-author{color:#637168;margin:4px 0 0}.icon-button{color:#44544a;cursor:pointer;background:#f3efe6;border:0;border-radius:50%;flex:none;width:36px;height:36px;padding:0;font-size:24px;line-height:1}.modal form{flex-direction:column;flex:1;min-height:0;display:flex}.modal-content{overscroll-behavior:contain;padding:0 27px 6px;overflow-y:auto}.status-options{border:0;margin:0 0 20px;padding:0}.status-options legend,.field-label{color:#3b4b42;margin-bottom:8px;font-size:14px;font-weight:700}.status-choice{cursor:pointer;border:1px solid #d8d1c2;border-radius:10px;gap:10px;margin:8px 0;padding:12px;display:flex}.status-choice.selected{background:#f1f7f2;border-color:#0f4c45}.status-choice input{accent-color:#0f4c45;margin-top:4px}.status-choice strong,.status-choice small{display:block}.status-choice small{color:#637168;margin-top:2px}.field-label{display:block}.field-label input{border:1px solid #cfc8b9;border-radius:8px;outline-color:#0f4c45;width:100%;height:44px;margin-top:6px;padding:0 11px;font:400 16px "Source Sans 3";display:block}.genre-picker{margin-top:6px;position:relative}.genre-picker input{margin-top:0}.genre-suggestions{z-index:2;background:#fffefa;border:1px solid #b8c6bb;border-radius:10px;max-height:225px;padding:7px;position:absolute;top:calc(100% + 6px);left:0;right:0;overflow-y:auto;box-shadow:0 12px 28px #17372e24}.genre-suggestion-heading{color:#6a786f;letter-spacing:.08em;text-transform:uppercase;margin:4px 8px 6px;font:500 11px DM Mono,monospace}.genre-suggestion{color:#193531;text-align:left;cursor:pointer;background:0 0;border:0;border-radius:7px;justify-content:space-between;align-items:center;gap:12px;width:100%;padding:10px 9px;font:600 15px "Source Sans 3";display:flex}.genre-suggestion:hover,.genre-suggestion:focus-visible{background:#edf5ed;outline:0}.genre-suggestion small{color:#6c7b71;font:500 12px "Source Sans 3"}.genre-suggestion.new-genre{color:#795112;background:#f4ead5;margin-top:3px}.genre-suggestion.new-genre small{color:#795112}.genre-picker-hint{color:#68776e;margin:0;padding:8px 9px;font-size:14px;line-height:1.35}.new-genre-note{color:#936522;margin:8px 0 0;font-size:13px;line-height:1.35}.date-preview{color:#617168;margin:14px 0;font-size:14px}.form-error{color:#a43320;font-size:14px}.modal-actions{background:#fffefa;border-top:1px solid #ece7dc;justify-content:flex-end;gap:9px;margin-top:18px;padding:18px 27px 27px;display:flex;box-shadow:0 -8px 20px #17372e08}.sr-only{clip:rect(0,0,0,0);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}@media (width<=680px){.app-shell{padding:24px 14px 40px}.hero{gap:14px;margin:0 0 24px}.brand-mark{border-radius:16px;width:50px;height:50px;font-size:28px;box-shadow:5px 5px #d6a659}h1{font-size:30px}.hero-copy{font-size:16px;line-height:1.35}.stats{grid-template-columns:1fr;margin-bottom:20px}.stats div{border-bottom:1px solid #d9d3c4;border-right:0;padding:12px 16px}.stats strong{margin-right:9px;display:inline}.stats span{display:inline}.catalog{border-radius:16px;padding:19px 14px}.catalog-top{align-items:center;gap:10px}.catalog-actions{gap:4px}.catalog h2{font-size:25px}.refresh{min-height:40px;padding:8px 4px;font-size:14px}.add-book{min-height:40px;padding:8px 11px;font-size:14px}.controls{grid-template-columns:1fr;gap:12px;margin:20px 0 16px}.controls input,.controls select{height:48px;font-size:16px}.table-wrap{border:0;border-radius:0;margin:0;overflow:visible}table{min-width:0}thead{display:none}tbody{gap:12px;display:grid}tbody tr{background:#fffefa;border:1px solid #e1dbcf;border-radius:12px;padding:5px 14px;display:block;box-shadow:0 3px 9px #274f3b0a}tbody tr:hover{background:#fffefa}td{text-align:right;border-bottom:1px solid #ece7dc;justify-content:space-between;align-items:center;gap:16px;min-height:39px;padding:10px 0;display:flex}tbody tr:last-child td{border-bottom:1px solid #ece7dc}tbody tr:last-child td:last-child{border-bottom:0}td:before{content:"";text-align:left;color:#65736b;letter-spacing:.05em;text-transform:uppercase;flex:none;font:500 11px DM Mono}td:first-child{text-align:left;padding:13px 0 9px;font-size:17px;display:block}td:first-child:before{display:none}td:nth-child(2):before{content:"Author"}td:nth-child(3):before{content:"Genre"}td:nth-child(4):before{content:"Status"}td:nth-child(5):before{content:"Borrowed by"}td:nth-child(6):before{content:"Borrowed date"}td:last-child{border:0;justify-content:flex-end;padding:12px 0 9px}td.not-applicable{display:none}.manage-link{background:#edf5ed;border-radius:8px;min-height:42px;padding:0 13px}.results-count{margin:2px 0 14px}.modal-backdrop{align-items:end;padding:0}.modal{width:100%;max-height:calc(100dvh - env(safe-area-inset-top));border-radius:22px 22px 0 0}.modal-handle{background:#c7c1b6;border-radius:999px;flex:none;width:42px;height:5px;margin:9px auto 2px;display:block}.modal-heading{padding:13px 18px 18px}.modal-heading .eyebrow{font-size:10px}.modal h2{font-size:24px;line-height:1.12}.icon-button{width:40px;height:40px;font-size:27px}.modal-content{padding:0 18px 8px}.modal-actions{padding:14px 18px calc(14px + env(safe-area-inset-bottom));flex-direction:column-reverse;gap:8px;margin-top:12px}.modal-actions .button{width:100%;min-height:50px}.status-choice{min-height:70px;padding:13px}.field-label input{height:48px}.genre-suggestions{max-height:min(225px,35dvh)}.empty,.state{padding:36px 16px}}
