:root{--ink:#223c3e;--muted:#667879;--paper:#f8f6f0;--line:#dce3df;--green:#1e5b50;--accent:#caa26a;--white:#fff;--radius:16px}
*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:15px;line-height:1.55}a{color:var(--green);text-decoration:none}a:hover{text-decoration:underline}button,input,select,textarea{font:inherit}button,.button{display:inline-flex;align-items:center;justify-content:center;background:var(--green);color:white;border:1px solid var(--green);border-radius:9px;padding:11px 18px;font-weight:650;cursor:pointer;text-decoration:none;line-height:1.4}button:hover,.button:hover{background:#16483f;text-decoration:none}.secondary{background:#fff;color:var(--ink);border-color:var(--line)}.secondary:hover{background:#eef3ef;color:var(--ink)}button:disabled{opacity:.45;cursor:not-allowed}input,select,textarea{width:100%;border:1px solid #cad4ce;background:#fff;border-radius:8px;padding:10px 12px;color:var(--ink)}input:focus,select:focus,textarea:focus{outline:2px solid #8cbaad;outline-offset:2px}input[type=file]{font-size:13px}input[type=checkbox]{width:19px;height:19px;flex-shrink:0;accent-color:var(--green)}label{display:flex;flex-direction:column;gap:7px;font-weight:600;font-size:14px}label small{color:var(--muted);font-weight:400}h1,h2,h3,p{margin-top:0}h1{font-family:Georgia,"Times New Roman",serif;font-size:42px;line-height:1.15;font-weight:500;margin-bottom:15px}h2{font-size:21px;font-weight:650;margin-bottom:16px}h3{font-size:18px;line-height:1.3;margin-bottom:8px}p{margin-bottom:16px}small{font-size:12px}details{border-top:1px solid var(--line);padding-top:15px}summary{cursor:pointer;font-weight:600;margin-bottom:12px}.site-header{background:rgba(255,255,255,.9);border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:25px;padding:19px max(4vw,24px)}.brand{display:flex;align-items:center;gap:12px;font-size:23px;font-weight:650;color:var(--ink)}.brand:hover{text-decoration:none}.brand-icon{display:flex;align-items:center;justify-content:center;width:45px;height:48px;background:var(--green);color:#ede8ce;border-radius:8px;font-size:31px}.brand small{display:block;font-size:11px;letter-spacing:.8px;font-weight:450;color:var(--muted)}.site-header nav{display:flex;align-items:center;gap:23px;font-size:14px}.site-header nav .inline button{padding:7px 12px;font-size:13px}.workspace,.catalog-main{max-width:1240px;margin:0 auto;padding:44px 30px 65px}.eyebrow{font-size:12px;font-weight:650;letter-spacing:1.2px;text-transform:uppercase;color:var(--green);margin-bottom:13px}.hero{position:relative;background:#eaf0e7;padding:48px 55px;border-radius:20px;overflow:hidden;margin-bottom:36px}.hero h1{font-size:50px;max-width:650px}.hero p:not(.eyebrow){max-width:610px;font-size:16px;color:var(--muted);margin-bottom:0}.hero-mark{position:absolute;right:8%;top:15%;font-size:200px;color:#adbc9a;line-height:1;transform:rotate(-8deg);opacity:.5}.hero>*:not(.hero-mark){position:relative;z-index:1}.filters{display:flex;align-items:flex-end;gap:16px;padding-bottom:25px;border-bottom:1px solid var(--line)}.filters label:first-of-type{flex:1}.filters label{min-width:150px}.text-link{padding:11px 0;font-size:13px}.results-head{display:flex;justify-content:space-between;align-items:center;margin:30px 0 21px}.results-head h2{margin:0}.results-head span{color:var(--muted);font-size:13px}.book-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:25px}.book-card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden}.cover-wrap{height:245px;display:flex;align-items:center;justify-content:center;padding:24px;background:#edf0e9;position:relative}.cover-wrap img{max-width:100%;max-height:100%;object-fit:contain;filter:drop-shadow(4px 7px 5px #223c3e21)}.badge{position:absolute;top:13px;left:13px;background:#ffffffdf;border:1px solid #dce4d8;border-radius:5px;padding:4px 9px;font-size:11px;color:var(--ink)}.book-card-text{padding:21px}.book-card-text small{color:var(--muted);letter-spacing:.5px}.book-card-text h3{margin-top:9px;font-size:19px}.book-card-text h3 a{color:var(--ink)}.book-card-text p{color:var(--muted);font-size:14px;margin-bottom:17px}.book-card-text strong{font-size:14px}.blank{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:12px;color:#7c9488;border:1px solid #c8d4c8;background:linear-gradient(145deg,#eff2eb,#e1e8da);border-radius:5px;width:145px;height:195px}.blank span{font-size:59px;line-height:1}.blank small{font-size:10px;letter-spacing:.8px}.page-top{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:28px}.page-top p:not(.eyebrow){margin:0;color:var(--muted)}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:15px;margin-bottom:30px}.stat{background:#fff;border:1px solid var(--line);border-radius:13px;padding:20px;color:var(--ink)}.stat.selected{border-color:#799e8e;background:#ecf3ed}.stat strong{display:block;font-size:29px;font-weight:550}.stat span{font-size:13px;color:var(--muted)}.empty{padding:65px 20px;text-align:center}.empty>span{font-size:65px;color:#879e89}.empty h2{margin:10px 0}.empty p{color:var(--muted)}.message{background:#e3efe5;border:1px solid #aac5b2;border-radius:10px;padding:14px 19px;margin-bottom:24px}.message.error{background:#fcf0e9;border-color:#dbb297;color:#8b3928}.error-text{color:#993b2f}.stack{display:flex;flex-direction:column;gap:20px}.stack>button{align-self:flex-start}.panel{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:26px;margin-bottom:24px}.stack .panel{margin-bottom:0}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.setup-card,.login-card{max-width:800px;background:#fff;border:1px solid var(--line);padding:40px;border-radius:20px;margin:10px auto}.login-card{max-width:470px}.login-card h1{font-size:36px}.checks{display:flex;flex-wrap:wrap;gap:8px;margin:22px 0}.checks span{padding:6px 11px;border-radius:6px;font-size:12px}.checks .ok{background:#edf3e9;color:#3b6249}.checks .bad{background:#ffe9df;color:#903c29}.help{font-size:13px;color:var(--muted);line-height:1.6}.inline{display:inline-flex;margin:0}.actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.editor-grid{display:grid;grid-template-columns:minmax(0,2fr) minmax(260px,1fr);gap:25px;align-items:start}.editor-cover{display:flex;justify-content:center;padding:22px;background:#edf0e9;border-radius:12px;margin-bottom:18px}.editor-cover img{max-height:285px;max-width:100%;object-fit:contain}.check-label{flex-direction:row;align-items:center;font-weight:500;font-size:14px}.workflow{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:25px}.workflow span{padding:8px 13px;background:#edece6;border-radius:7px;font-size:12px;color:var(--muted)}.workflow .done{background:#e5eee3;color:#376142}.workflow .current{background:#f6ead8;color:#8c6233}.back{display:inline-block;margin-bottom:25px;font-size:13px}.media-gallery{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}.media-gallery img{width:100%;height:190px;object-fit:contain;background:#f0f2ed;border-radius:10px}.media-gallery p{font-size:13px;margin:10px 0 5px}.media-gallery small{display:block;color:var(--muted);overflow-wrap:anywhere;margin-bottom:10px}.media-gallery button{font-size:12px;padding:7px 11px}.candidate-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:20px}.candidate-grid article{background:#f4f6f1;border:1px solid var(--line);border-radius:12px;padding:20px}.candidate-grid p{font-size:14px}.book-detail{display:grid;grid-template-columns:1fr 1.4fr;gap:65px;margin:10px 0 45px}.detail-cover{display:flex;align-items:center;justify-content:center;background:#e9eee5;border-radius:20px;padding:40px;min-height:400px}.detail-cover img{max-width:100%;max-height:400px;object-fit:contain;filter:drop-shadow(5px 8px 7px #233c3e26)}.detail-cover .blank{width:220px;height:310px}.book-detail h1{font-size:45px}.author{color:var(--muted);font-size:20px}.pill{display:inline-flex;padding:5px 11px;background:#eaf1e7;border:1px solid #d4e1d3;border-radius:6px;font-size:12px;font-weight:550}.price{font-size:23px;font-weight:650;margin-top:23px}.prose{line-height:1.85;white-space:normal;overflow-wrap:anywhere}dl{margin:20px 0}dl>div{display:grid;grid-template-columns:140px 1fr;border-bottom:1px solid var(--line);padding:9px 0;gap:12px}dt{font-size:13px;color:var(--muted)}dd{margin:0;font-size:14px;overflow-wrap:anywhere}.source-list{display:flex;flex-direction:column;gap:20px}.source-row{display:grid;grid-template-columns:150px 1fr;gap:25px;border-bottom:1px solid var(--line);padding:0 0 25px}.source-preview img{width:150px;height:175px;object-fit:contain;background:#edf1e9;border-radius:9px}.source-preview>span{display:flex;align-items:center;justify-content:center;height:175px;background:#edf1e9;font-size:60px;border-radius:9px;color:#9dab95}.source-row p{margin:8px 0 12px}.source-row details{margin-top:15px}.attach-form{display:flex;align-items:flex-end;gap:15px}.attach-form label{max-width:240px}.pagination{display:flex;gap:10px;justify-content:center;padding:35px 0 5px}.pagination a{padding:8px 16px;border:1px solid var(--line);border-radius:8px;background:#fff}.pagination .active{background:var(--green);color:#fff}.file-fields{padding-top:15px}.site-footer{max-width:1240px;margin:0 auto;padding:25px 30px;border-top:1px solid var(--line);display:flex;justify-content:space-between;color:var(--muted);font-size:12px}[hidden]{display:none!important}
@media(max-width:1000px){.site-header{align-items:flex-start}.site-header nav{flex-wrap:wrap;gap:12px}.book-grid{grid-template-columns:repeat(3,1fr)}.hero-mark{right:3%;opacity:.25}.filters{flex-wrap:wrap}.filters label:first-of-type{min-width:240px}.media-gallery{grid-template-columns:repeat(3,1fr)}.book-detail{gap:30px}}
@media(max-width:760px){.site-header{flex-direction:column;padding:17px 22px}.site-header nav{font-size:12px}.workspace,.catalog-main{padding:28px 18px 45px}.hero{padding:30px 25px}.hero h1{font-size:37px}.hero-mark{font-size:140px;top:30%;right:0}.hero p:not(.eyebrow){font-size:14px}h1{font-size:33px}.book-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.cover-wrap{height:215px;padding:25px 13px}.book-card-text{padding:15px}.book-card-text h3{font-size:17px}.filters{gap:12px}.filters label{flex:1;min-width:130px}.filters label:first-of-type{flex-basis:100%}.filters .text-link{padding:11px}.stats{grid-template-columns:repeat(2,1fr);gap:12px}.stat{padding:15px}.page-top{align-items:flex-start}.editor-grid{grid-template-columns:1fr}.form-grid{grid-template-columns:1fr}.panel{padding:21px}.setup-card,.login-card{padding:26px 21px}.setup-card h1{font-size:33px}.book-detail{grid-template-columns:1fr;gap:25px}.detail-cover{min-height:310px}.detail-cover img{max-height:330px}.book-detail h1{font-size:37px}.media-gallery,.candidate-grid{grid-template-columns:repeat(2,1fr)}.source-row{grid-template-columns:90px 1fr;gap:16px}.source-preview img{width:90px;height:125px}.source-preview>span{height:125px}.attach-form{flex-direction:column;align-items:stretch}.attach-form label{max-width:none}.site-footer{gap:20px;padding:20px 18px}.workflow{gap:7px}.workflow span{padding:6px 9px;font-size:11px}}
@media(prefers-reduced-motion:no-preference){.book-card{transition:transform .18s ease,box-shadow .18s ease}.book-card:hover{transform:translateY(-3px);box-shadow:0 8px 25px #223c3e0d}}
