:root{font-family:DM Sans,system-ui,sans-serif;color:#342b23;background:#ede5d7;font-synthesis:none}*{box-sizing:border-box}body{margin:0;min-height:100vh;background:radial-gradient(circle at 30% 10%,#f6f0e6,#e9dfcf 60%,#dbcfbe)}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.58}[hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.mast{background:#453629;color:#f9efdc;text-align:center;padding:26px 16px 21px;border-bottom:5px solid #bda581;box-shadow:0 4px 18px #362a1c20}.mast-inner{max-width:1080px;margin:auto}.eyebrow{font:12px Special Elite,monospace;letter-spacing:2.4px;text-transform:uppercase;color:#90754f}.mast .eyebrow{color:#d8c19c}.mast h1{font:clamp(30px,5vw,50px) "Libre Baskerville",Georgia,serif;letter-spacing:-1.8px;margin:11px 0 7px}.mast p{color:#dbcbb3;margin:0;font-size:14px}.workspace{max-width:1120px;margin:auto;padding:28px 20px 70px}.mode-banner{max-width:800px;margin:0 auto 20px;padding:12px 16px;border-radius:9px;font-size:13px;line-height:1.5}.mode-banner.demo{background:#fff0c3;color:#654915;border:1px solid #d6b86a}.mode-banner.error{background:#ffe7df;color:#7e3228;border:1px solid #db8e83}.scene{display:flex;align-items:center;justify-content:center;gap:clamp(22px,5vw,80px);padding:28px 0 0}.frame{width:clamp(120px,22vw,220px);aspect-ratio:4/5;background:linear-gradient(130deg,#9b7647,#513921 25%,#b18d56 48%,#49301b 70%,#977346);border:8px ridge #a67f4c;box-shadow:8px 12px 22px #271a1245;transform:rotate(-2deg);padding:7px}.frame-inner{height:100%;width:100%;background:#e5d7bd;border:3px solid #d0ba95;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;gap:15px;padding:10px}.frame-script{font:italic clamp(11px,1.8vw,16px) "Libre Baskerville",serif;color:#675237}.photo-blank{font:10px Special Elite,monospace;color:#9a8b74}.catalog{width:min(100%,600px);background:linear-gradient(90deg,#64452e,#805839 15%,#906644 50%,#795335 82%,#593e2b);padding:23px 21px 0;box-shadow:inset 5px 0 8px #ffffff20,inset -8px 0 13px #28190f44,12px 17px 27px #34211042;border:3px solid #503521;border-radius:5px}.catalog-top{height:68px;display:grid;place-items:center;border-bottom:3px solid #49301e;margin:0 -2px 14px;background:linear-gradient(#755039,#60412f);border-radius:2px}.plate{border:2px solid #c0a371;background:#3d2b20;box-shadow:0 0 0 3px #473425;padding:11px 28px;max-width:100%}.plate span{font:clamp(12px,2vw,17px) "Special Elite",monospace;letter-spacing:2px;color:#ebd9b7}.drawer-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.drawer{min-width:0;min-height:132px;position:relative;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;background:linear-gradient(130deg,#9d744c,#7a5034 44%,#6d472e 80%,#8c613e);border:3px solid #4a2f1d;box-shadow:inset 2px 2px 4px #e8c29650,inset -5px -5px 7px #36200f5b,3px 4px 3px #2c1b1270;color:#32251a;padding:10px 6px 9px;transition:filter .15s,transform .15s}.drawer:not(:disabled):hover,.drawer:not(:disabled):focus-visible{filter:brightness(1.13);transform:translateY(-2px)}.pull{width:39px;height:17px;border-radius:0 0 16px 16px;border:3px solid #bba071;background:linear-gradient(#63462e,#9f8157);box-shadow:0 2px 3px #29180b80;position:absolute;top:16px;left:50%;transform:translate(-50%)}.card-label{border:2px solid #3d2c20;outline:2px solid #b99a66;background:#e9ddc0;padding:10px 5px 6px;width:95%;min-height:51px;display:flex;align-items:center;justify-content:center;position:relative}.card-name{font:clamp(8px,1vw,11px) "Special Elite",monospace;color:#362c21;line-height:1.4;text-align:center;letter-spacing:.2px}.drawer-no{font:8px Special Elite,monospace;position:absolute;right:3px;top:2px;color:#9a896e}.drawer-caption{color:#e5ca9f;font:clamp(8px,1vw,10px) "DM Sans",sans-serif;padding:8px 0 0;text-align:center}.drawer.reserved .card-label{opacity:.72}.catalog-base{height:21px;margin:17px -16px 0;border-top:3px solid #463020;background:linear-gradient(90deg,#51331e,#966a44,#49301e)}.cabinet-foot{font:12px Special Elite,monospace;text-align:center;color:#8a765d;margin-top:36px}.section-head{text-align:center;margin:0 auto 25px;max-width:680px}.back{display:block;border:0;background:transparent;color:#6c5436;font-size:13px;text-decoration:underline;text-underline-offset:4px;margin:0 0 18px;text-align:left;padding:8px}.section-head h2{font:clamp(30px,5vw,44px) "Libre Baskerville",Georgia,serif;margin:10px 0}.section-sub{color:#786a59;font-size:14px}.stats{display:flex;max-width:750px;margin:0 auto 22px;background:#f9f4e9;border:1px solid #d3c4a9;box-shadow:0 4px 12px #3e2c1712;border-radius:12px}.stats>div{flex:1;min-width:0;display:flex;flex-direction:column;align-items:center;padding:19px 8px;border-right:1px solid #e5dac9}.stats>div:last-child{border:0}.stats strong{font:30px Libre Baskerville,serif;color:#64472f}.stats span{font-size:11px;text-align:center;color:#786654;margin-top:6px}.tools{max-width:750px;margin:0 auto 16px;display:flex;gap:10px}.tools input{flex:1;min-width:0}.primary,.soft,.danger{border-radius:8px;padding:12px 15px;font-weight:600;font-size:13px;border:1px solid transparent}.primary{background:#604832;color:#fff7e7;border-color:#4d3524}.primary:hover{background:#75583f}.soft{background:#f8f2e7;color:#604832;border-color:#cdb99c}.danger{background:#fff1ed;color:#913b2f;border-color:#d8a69c}.chips{display:flex;flex-wrap:wrap;gap:8px;max-width:750px;margin:0 auto 20px}.chip{background:#ede2d0;border:1px solid #cbb89b;padding:8px 11px;border-radius:99px;color:#67523d;font-size:12px}.chip.active{background:#624831;color:#fff5e4;border-color:#624831}.book-list{max-width:750px;margin:auto;display:grid;gap:10px}.book-card{width:100%;border-radius:11px;border:1px solid #d7c5ab;background:#fffaf1;display:flex;gap:17px;align-items:center;text-align:left;padding:12px;box-shadow:0 2px 8px #4a352011;color:inherit}.book-card:hover{border-color:#a88a62}.book-cover{width:60px;height:86px;flex:0 0 60px;background:#aa8f69;display:grid;place-items:center;color:#fff5e5;font:11px Special Elite;position:relative;overflow:hidden;border-radius:3px;box-shadow:2px 2px 3px #38231530}.book-cover img{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;object-fit:cover}.book-meta{flex:1;min-width:0}.book-meta h3{font:16px Libre Baskerville,serif;line-height:1.4;margin:0 0 7px}.book-meta p{font-size:13px;color:#756551;margin:0 0 9px}.status-pill,.liked,.date-pill,.not-liked{display:inline-block;font-size:10px;padding:5px 8px;border-radius:20px;margin:0 5px 5px 0;background:#eee2d0;color:#664d36}.status-finished{background:#dfead9;color:#385d31}.status-ready{background:#e3ecfa;color:#315c85}.status-hold{background:#f7e5c8;color:#885f2a}.liked{color:#924b42;background:#f8e6df}.not-liked{background:#eee9e1;color:#675e55}.edit-chevron{font-size:28px;color:#8e795f}.empty{text-align:center;background:#faf5ed;border:1px dashed #c3ac8b;border-radius:11px;padding:40px 18px;color:#76634d}.empty-icon{font-size:42px;color:#a48c68}.empty h3{margin:8px 0;font:19px Libre Baskerville,serif}.empty p{font-size:13px;line-height:1.6}.backup-row{max-width:750px;margin:22px auto;display:flex;gap:10px;flex-wrap:wrap}.scanner-card{max-width:720px;margin:auto;background:#fff9ee;padding:23px;border:1px solid #d7c5a9;border-radius:14px;box-shadow:0 4px 15px #60462d13}.scanner-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:center}.camera-shell{background:#1c1c1c;position:relative;aspect-ratio:4/3;max-height:350px;overflow:hidden;border-radius:12px;margin-bottom:16px}.camera-shell video{width:100%;height:100%;object-fit:cover}.scan-line{position:absolute;left:14%;right:14%;top:50%;height:2px;background:#efb45f;box-shadow:0 0 13px #e89d48}.search-fields{margin-top:25px}.search-fields label,.field label{display:block;font-size:12px;font-weight:700;margin-bottom:7px;color:#654d35}.inline-input{display:flex;gap:8px}input,select,textarea{background:#fffcf7;border:1px solid #cbb99f;border-radius:8px;outline:none;color:#33291f;padding:12px 13px;width:100%;font-size:15px}input:focus,select:focus,textarea:focus{border-color:#795632;box-shadow:0 0 0 3px #b9a17c66}.helper{font-size:12px;line-height:1.5;color:#86745e;margin:15px 0 0}.search-results{max-width:720px;margin:18px auto}.result{display:flex;align-items:center;gap:12px;background:#fff9ef;border:1px solid #d5c5ac;border-radius:9px;margin-bottom:8px;padding:10px}.result-cover{width:48px;height:66px;flex:0 0 48px;background:#e7d8bd;display:grid;place-items:center;border-radius:3px;overflow:hidden}.result-cover img{width:100%;height:100%;object-fit:cover}.result-info{flex:1;min-width:0;display:flex;flex-direction:column;gap:5px}.result-info strong{font:14px Libre Baskerville,serif}.result-info span{font-size:12px;color:#85705b}.result-info small{color:#91602e;font-size:11px}.result button{flex:0 0 auto}.manual-link{text-align:center;margin-top:14px}.loading{text-align:center;padding:28px;color:#735d45}.modal-open{overflow:hidden}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:10;background:#1c130ec2;display:grid;place-items:center;padding:15px}.modal{background:#faf3e7;border-radius:14px;border:2px solid #b4a083;width:min(100%,540px);max-height:min(92vh,850px);overflow:auto;padding:23px;box-shadow:0 15px 40px #0007}.modal-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:19px}.modal-top h2{font:23px Libre Baskerville,serif;margin:0}.icon-button{background:transparent;border:0;color:#5d4735;font-size:32px;line-height:1}.field{margin:0 0 13px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.form-actions{display:flex;gap:12px;justify-content:flex-end;align-items:center;margin-top:16px}.form-actions .danger{margin-right:auto}.toast{position:fixed;bottom:calc(18px + env(safe-area-inset-bottom));left:50%;transform:translate(-50%);z-index:20;border-radius:10px;background:#3c2d20;color:#fff5df;padding:13px 19px;max-width:min(90vw,550px);font-size:13px;box-shadow:0 10px 25px #0004}.toast.error{background:#863f34}.toast.success{background:#3b6540}.toast.warning{background:#79582d}@media(max-width:750px){.scene{flex-direction:column;gap:26px;padding-top:4px}.frame{width:120px}.catalog{width:min(100%,580px)}}@media(max-width:480px){.workspace{padding:19px 12px 50px}.mast{padding:23px 12px 19px}.mast h1{font-size:30px}.mast p{font-size:12px}.scene{gap:20px}.frame{width:99px;border-width:6px}.frame-inner{padding:3px;gap:5px}.frame-script{font-size:9px}.photo-blank{font-size:7px}.catalog{padding:13px 10px 0}.catalog-top{height:52px;margin-bottom:10px}.plate{padding:10px 12px}.plate span{font-size:12px;letter-spacing:1px}.drawer-grid{gap:6px}.drawer{min-height:116px;padding:7px 4px 8px;border-width:2px}.pull{top:11px;width:32px;height:14px}.card-label{padding:7px 2px 4px;min-height:47px}.card-name{font-size:8px;overflow-wrap:anywhere}.drawer-caption{font-size:8px}.catalog-base{margin:10px -7px 0;height:14px}.tools{flex-direction:column}.tools .primary{width:100%}.stats strong{font-size:25px}.modal{padding:18px 14px}.form-grid{gap:7px}.book-card{gap:10px}.book-cover{width:48px;flex-basis:48px;height:70px}.book-meta h3{font-size:14px}.book-meta p{font-size:12px}}.catalog-art{position:relative;width:min(100%,760px);margin:0 auto;aspect-ratio:1086/1448;overflow:hidden}.catalog-art>img{display:block;width:100%;height:100%;object-fit:contain}.catalog-hotspot{position:absolute;display:block;border:0;border-radius:3px;background:transparent;cursor:pointer;z-index:2;width:31.3%;height:18.3%;padding:0;color:transparent}.catalog-hotspot:focus-visible{outline:4px solid #fff5bc;outline-offset:-5px;background:#fff5bc25}.catalog-hotspot:disabled{cursor:default;opacity:1}.catalog-hotspot-1,.catalog-hotspot-2,.catalog-hotspot-3{top:26.7%}.catalog-hotspot-4,.catalog-hotspot-5,.catalog-hotspot-6{top:45.7%}.catalog-hotspot-7,.catalog-hotspot-8,.catalog-hotspot-9{top:64.4%}.catalog-hotspot-1,.catalog-hotspot-4,.catalog-hotspot-7{left:2.7%}.catalog-hotspot-2,.catalog-hotspot-5,.catalog-hotspot-8{left:34.9%}.catalog-hotspot-3,.catalog-hotspot-6,.catalog-hotspot-9{left:67%}body.art-cabinet .mast{display:none}body.art-cabinet .workspace{max-width:none;padding:0;background:#150d08}body.art-cabinet{background:#150d08}body.art-cabinet .cabinet-foot{display:none}body.art-cabinet #mode-banner:not([hidden]){margin:0 auto;padding:12px;max-width:760px}@media(max-width:760px){.catalog-art{width:100%}.catalog-hotspot:focus-visible{outline-width:2px}body.art-cabinet .workspace{padding:0}}.scan-result-actions{display:flex;gap:8px;flex-wrap:wrap;margin-left:auto;justify-content:flex-end}.scan-result-actions .primary,.scan-result-actions .soft{white-space:normal}.result-info small.read-match{color:#285f38;font-weight:700}.result-info small.saved-match{color:#8a5b26;font-weight:700}.scanner-feedback,.book-form-feedback{margin:14px auto;padding:13px 16px;border-radius:9px;border:1px solid #cbb99f;max-width:720px;font-size:14px;line-height:1.5;background:#fff2d9;color:#68431e;font-weight:600}.scanner-feedback.success{background:#e1efd9;color:#295732;border-color:#9eba93}.scanner-feedback.error{background:#fce8df;color:#8c392e;border-color:#d8a49b}@media(max-width:520px){.result{flex-wrap:wrap}.scan-result-actions{width:100%;margin:4px 0 0}.scan-result-actions button{flex:1}}.open-library-title{display:inline-block;font:14px Libre Baskerville,Georgia,serif;color:#49311e;text-decoration:underline;text-decoration-color:#b5a081;text-underline-offset:3px;overflow-wrap:anywhere}.open-library-title:hover{color:#81502b;text-decoration-color:currentColor}.open-library-title:focus-visible,.open-library-cover:focus-visible{outline:3px solid #805a31;outline-offset:3px;border-radius:3px}.open-library-cover{display:flex;width:100%;height:100%;align-items:center;justify-content:center;color:inherit;text-decoration:none}.open-library-cover img{width:100%;height:100%;object-fit:cover}
