@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.css');
:root{--ink:#162a35;--muted:#71818b;--line:#e6eaeb;--bg:#fff;--accent:#145c58;--ok:#247563;--warn:#ba4b38}
html{scroll-behavior:auto}body{padding:0;margin:0;background:#fff;color:var(--ink);font-family:Pretendard,-apple-system,BlinkMacSystemFont,'Malgun Gothic',sans-serif;font-size:15px;line-height:1.55;letter-spacing:-.3px}button,input,select,textarea{font-family:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #5f9bbd;outline-offset:4px}button:disabled{cursor:wait}button{transition:background .15s,color .15s,transform .15s}a{color:inherit} .top{position:sticky;left:auto;right:auto;top:0;bottom:auto;width:100%;border:0;background:rgba(255,255,255,.97);z-index:10;border-bottom:1px solid var(--line);backdrop-filter:blur(14px)}header{max-width:1180px;margin:auto;padding:22px 34px 17px;display:flex;justify-content:space-between;align-items:center;border:0;font-size:16px}.brand{flex-direction:row;align-items:center;gap:18px}.brand .lh{display:block;height:26px;width:auto}.brand .mk{display:none}.brand .bt{font-size:15px;border-left:1px solid #dce3e4;padding-left:18px;font-weight:600;letter-spacing:-.6px}#who{position:static;margin:0;font-size:13px}.loginBtn{width:auto;border:1px solid #dfe5e6;border-radius:7px;background:white;color:#344c59;padding:8px 16px;font-size:13px;font-weight:600}.loginBtn:hover{background:#f1f5f5}.user{padding:0;border:0;background:transparent;gap:8px}.av{background:#eaf1ef;color:#145c58}.uname{font-weight:600}.outBtn{font-size:11px;color:#7b8b91;text-decoration:none}nav{max-width:1180px;margin:auto;display:flex;flex-direction:row;padding:0 34px;gap:30px;border:0;background:transparent}nav button{padding:12px 0 16px;flex:none;border:0!important;border-bottom:2px solid transparent!important;background:transparent!important;font-size:14px;font-weight:500;color:#71818b;text-align:center}nav button.on{color:#145c58;border-bottom:2px solid #145c58!important;font-weight:700}
main{max-width:1180px;margin:auto;padding:28px 34px 70px}.welcome{display:grid;grid-template-columns:1.05fr 1fr;position:relative;isolation:isolate;min-height:300px;border-radius:18px;background:#ecf1ec;overflow:hidden;padding:40px 48px;margin-bottom:32px}.welcome::after{content:'';position:absolute;z-index:-1;width:480px;height:480px;right:-70px;top:-115px;border:1px solid rgba(95,133,109,.13);border-radius:50%;box-shadow:0 0 0 50px rgba(118,150,127,.035),0 0 0 100px rgba(118,150,127,.025)}.welcome-copy{position:relative;z-index:2;align-self:center}.eyebrow{font-size:10px;font-weight:700;letter-spacing:2px;color:#608071}.welcome h1{font-size:38px;font-weight:750;letter-spacing:-1.8px;line-height:1.28;margin:15px 0 13px;color:#203c36}.welcome h1 em{font-style:normal;color:#477562}.welcome p{font-size:13px;color:#657e70;line-height:1.8;margin:0}.welcome-link{margin-top:20px;border:0;border-bottom:1px solid #91aa9b;background:none;padding:5px 0;font-size:12px;font-weight:650;color:#315b48;display:inline-flex;gap:20px;text-decoration:none}.hero-books{height:235px;position:relative;align-self:center;min-width:0}.hero-book{position:absolute;width:130px;height:191px;bottom:6px;padding:0;border:0;background:none;border-radius:2px 5px 5px 2px;box-shadow:5px 14px 18px #1f402327;transition:transform .25s}.hero-book img{display:block;width:100%;height:100%;object-fit:cover;border-radius:inherit}.hero-book:nth-child(1){left:5%;transform:rotate(-12deg);z-index:1}.hero-book:nth-child(2){left:34%;bottom:26px;transform:rotate(3deg);z-index:3;width:140px;height:205px}.hero-book:nth-child(3){left:64%;transform:rotate(13deg);z-index:2}.hero-book:hover{transform:translateY(-8px) rotate(0)}.hero-books:before{content:'';position:absolute;left:5%;right:0;height:22px;border-radius:50%;bottom:-10px;background:#315b4820;filter:blur(15px)}.hero-loading{font-size:13px;color:var(--muted);text-align:center;padding:80px 0}.section-top{display:flex;align-items:flex-end;justify-content:space-between;gap:14px;margin-bottom:19px}.section-top h2{font-size:22px;font-weight:700;letter-spacing:-.8px;margin:0;line-height:1.3}.section-top p{color:var(--muted);font-size:12px;margin:5px 0 0}.section-top .more{border:0;background:transparent;padding:8px 0;font-size:12px;color:#698077}.fresh-section{margin:0 0 37px}.fresh-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.fresh-book{border:0;background:#f7f8f6;border-radius:12px;display:grid;grid-template-columns:76px minmax(0,1fr);align-items:center;gap:20px;text-align:left;padding:22px;min-height:160px;color:var(--ink)}.fresh-book:nth-child(2){background:#f5f3ef}.fresh-book:nth-child(3){background:#f0f4f6}.fresh-book:hover{transform:translateY(-3px)}.book-cover{display:block;width:100%;aspect-ratio:2/3;object-fit:cover;border-radius:2px 5px 5px 2px;box-shadow:3px 5px 8px #162b361b}.cover-fallback{aspect-ratio:2/3;display:flex;flex-direction:column;justify-content:space-between;width:100%;padding:11px 9px;background:#e8ede6;color:#37564b;border-radius:2px 5px 5px 2px;border-left:4px solid #b8caba;box-shadow:3px 4px 7px #20352d12}.cover-fallback .cf-category{font-size:8px;letter-spacing:.2px}.cover-fallback .cf-title{font-size:11px;line-height:1.45;font-weight:650;overflow:hidden;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical}.cover-fallback .cf-code{font-size:8px;letter-spacing:1px}.fresh-meta{min-width:0}.fresh-meta small{font-size:10px;letter-spacing:.5px;color:#758a80}.fresh-meta strong{display:block;font-size:16px;font-weight:650;line-height:1.4;margin:8px 0 5px;letter-spacing:-.5px}.fresh-meta .author{display:block;font-size:11px;color:#7f898e}.status-tag{display:inline-flex;align-items:center;gap:5px;font-size:10px;color:#3d7c68;margin-top:13px;font-weight:500}.status-tag::before{content:'';width:4px;height:4px;border-radius:50%;background:currentColor}.status-tag.busy{color:#9c8159}.catalog-top{scroll-margin-top:145px;display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:18px}.catalog-top h2{font-size:22px;letter-spacing:-.8px;font-weight:700;margin:0}.catalog-top h2 span{font-size:13px;color:#819189;margin-left:10px;font-weight:500}.catalog-top label{display:flex;gap:7px;align-items:center;color:#687b75;font-size:12px}.catalog-top input{accent-color:#145c58;width:15px;height:15px}.search-panel{padding:0!important;background:transparent;border:0;border-radius:0;margin:0 0 20px}.search-line{position:relative}.search-line:before{content:'';position:absolute;width:12px;height:12px;border:1.6px solid #6f8287;border-radius:50%;left:19px;top:17px}.search-line:after{content:'';position:absolute;width:6px;height:1.6px;background:#6f8287;transform:rotate(45deg);left:30px;top:31px}input#q{background:#f6f8f8;border:1px solid #e4eaea;border-radius:9px;padding:14px 16px 14px 46px;font-size:14px;width:100%;height:50px}.cats{margin:15px 0 0;padding:0;gap:6px;flex-wrap:wrap;overflow:visible}.cats button{padding:7px 12px;border:1px solid transparent;border-radius:6px;background:transparent;color:#74828a;font-size:12px;font-weight:500}.cats button i{font-size:10px;color:#91a09f}.cats button.on{background:#edf3f0;color:#245d4d;border-color:#e3ece6;font-weight:650}.cats button.on i{color:#739485}.bar{margin-top:15px;padding-top:15px;border-top:1px solid var(--line)}#searchInfo{font-size:12px}.seg{background:transparent;padding:0;gap:15px;border-radius:0}.seg button{font-size:11px;padding:4px 0;border-radius:0}.seg button.on{box-shadow:none;background:transparent;color:#213f35;font-weight:700}.catalog-group{margin-bottom:26px}.gh{font-size:13px;font-weight:600;display:flex;gap:7px;align-items:center;margin:0 0 12px}.gh span{font-size:11px;margin:0;color:#9aa6a3}.book-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 22px}.catalog-book{display:grid;grid-template-columns:45px minmax(0,1fr);gap:14px;align-items:center;width:100%;text-align:left;background:none;border:0;border-bottom:1px solid #edf0ef;padding:17px 0;color:var(--ink);min-height:106px}.catalog-book:hover .title{color:#145c58}.catalog-book .cover-fallback{padding:7px 5px;border-left-width:2px}.catalog-book .cf-title{font-size:8px;-webkit-line-clamp:3}.catalog-book .cf-category{display:none}.catalog-book .cf-code{font-size:7px}.book-info{min-width:0}.book-info .title{font-size:13px;line-height:1.5;font-weight:600;display:block;letter-spacing:-.3px}.book-info .author{font-size:10px;color:#85918f;display:block;margin-top:4px}.book-info .status-tag{margin-top:6px}.book-info .book-code{font-size:10px;color:#9aa7a2;margin-right:7px;font-weight:400}.empty-state{padding:45px 20px;background:#f5f8f6;border-radius:12px;color:#728278;text-align:center}.footer-note{display:flex;justify-content:space-between;gap:20px;padding-top:24px;margin-top:34px;border-top:1px solid var(--line);font-size:11px;color:#96a19d}.card{border:1px solid #e7edeb;border-radius:14px;padding:25px;box-shadow:none}.btn{border-radius:9px;border:1px solid #d8e3df;font-size:14px;font-weight:600;padding:13px;background:white}.btn.primary{background:#145c58;color:white;border-color:#145c58}.btn.primary:hover{background:#104b48}.badge{font-size:12px;font-weight:500;margin-top:18px}.note{font-size:12px;color:#788a82;line-height:1.8}.muted{font-size:13px;color:#7b898a}label.f{font-size:12px;color:#627571}input[type=text],input[type=password],textarea,select{border-radius:8px;border:1px solid #dfe7e4;font-size:15px;padding:11px 12px}.code{color:#6a857c;font-size:12px;font-weight:500}.subhead{margin:10px 0 26px}.subhead h1{font-size:29px;font-weight:700;letter-spacing:-1px;margin:0 0 7px}.subhead p{font-size:13px;color:#84918c;margin:0}#v-book{max-width:760px;margin:6px auto}#bookCard{padding:32px;min-height:270px;display:flow-root}#bookCard h2{font-size:28px;font-weight:700;letter-spacing:-1px;margin:10px 0}.detail-cover{float:left;width:144px;margin:0 28px 25px 0}.detail-back{display:block;padding:0;margin:0 0 25px;border:0;background:transparent;color:#74877f;font-size:12px}.detail-foot{clear:both;padding-top:20px;margin-top:20px;border-top:1px solid #e7edeb;font-size:12px;color:#7e9185}.bdone{max-width:420px;text-align:center;margin:15px auto}.bd-ic{color:#247563;width:45px;margin:auto}.bd-t{font-size:25px;font-weight:700;margin:12px 0}.bd-book{font-size:16px}.bd-due{display:flex;justify-content:space-between;align-items:center;padding:18px;background:#edf4ef;border-radius:9px;margin:22px 0}.bd-due span{font-size:12px;color:#658071}.bd-due b{font-size:21px}.bd-note{font-size:12px;line-height:1.8;color:#788a82;white-space:pre-line}.bd-left{font-size:11px;color:#95a19b;margin-top:12px}.bd-bar{height:3px;background:#eef2ef;margin-top:20px}.bd-bar i{display:block;background:#547d64;height:3px;width:0;transition-property:width;transition-timing-function:linear}.lm-panel{padding:28px;border-radius:16px;box-shadow:0 30px 70px #11291f30}.lm-panel h3{font-size:25px;letter-spacing:-.8px}.hint{font-size:11px;color:#8a9690;margin-top:6px}#toast{left:16px;right:16px;bottom:30px;max-width:520px;background:#1c3b31;box-shadow:0 8px 30px #12382624}#myBox,#histBox,#reqLogin,#reqList,#reqForm{max-width:760px;margin-left:auto;margin-right:auto}.admin-page main{max-width:1180px}.admin-page .top header{max-width:1180px}.admin-page .brand{font-weight:600}.admin-page h2{font-size:20px;font-weight:650}.admin-page #v-login{margin:70px auto!important;padding:32px}.admin-page .lgrid{gap:15px}.admin-page .filters button{border:1px solid #e1e9e4;border-radius:6px;font-size:12px;padding:7px 12px}.admin-page .filters button.on{background:#145c58;color:white}.admin-page td{padding:14px 8px}.admin-page th{padding:10px 8px;font-size:11px;background:#f7f9f8}.admin-page .card{margin-bottom:25px}.admin-page .req{padding:20px 0}.admin-page .next{color:#145c58}.preview-banner{padding:7px 15px;background:#1b423b;color:#d4e4dd;text-align:center;font-size:11px;letter-spacing:0}
@media(min-width:1400px){main{padding-top:36px}.welcome{min-height:325px}.hero-books{margin:0 20px}}
@media(max-width:1000px){.welcome{padding:32px}.welcome h1{font-size:33px}.hero-book{width:100px;height:150px}.hero-book:nth-child(2){width:112px;height:165px}.hero-books{height:195px}.fresh-book{padding:17px;grid-template-columns:62px 1fr;gap:13px}.fresh-meta strong{font-size:14px}.fresh-meta small{font-size:9px}.book-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){header{padding:18px 20px 12px}.brand{gap:12px}.brand .lh{display:none}.brand .mk{display:block;height:27px}.brand .bt{display:block;font-size:15px;padding-left:12px;border-left:1px solid #e0e6e3}.loginBtn{padding:7px 12px;font-size:12px}.uname{font-size:12px}.outBtn{font-size:10px}.user{gap:5px}.av{width:25px;height:25px;font-size:11px}nav{padding:0 20px;gap:26px;justify-content:space-between}nav button{font-size:12px;padding:10px 0 13px}main{padding:20px 20px 45px}.welcome{padding:25px 24px 24px;min-height:0;border-radius:13px;grid-template-columns:1fr;margin-bottom:28px}.welcome h1{font-size:29px;line-height:1.3;margin:11px 0 10px;letter-spacing:-1.3px}.welcome p{font-size:11px}.welcome-link{margin-top:12px;font-size:11px}.eyebrow{font-size:9px;letter-spacing:1.4px}.hero-books{height:175px;margin:6px auto 0;width:255px;max-width:100%}.hero-book{width:83px;height:125px;bottom:2px}.hero-book:nth-child(2){width:96px;height:145px;bottom:12px;left:32%}.hero-book:nth-child(3){left:64%}.welcome::after{width:350px;height:350px;right:-80px;top:100px}.fresh-section{margin-bottom:30px}.section-top{margin-bottom:13px}.section-top h2,.catalog-top h2{font-size:19px}.section-top p{font-size:11px}.fresh-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.fresh-book{display:block;padding:0;background:transparent!important;min-height:0;border-radius:0}.fresh-book>.book-cover,.fresh-book>.cover-fallback{width:100%;height:auto;aspect-ratio:2/3}.fresh-meta small{display:none}.fresh-meta strong{font-size:12px;margin-top:12px;line-height:1.5;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:36px}.fresh-meta .author{font-size:10px}.fresh-meta .status-tag{font-size:9px;margin-top:8px}.catalog-top{margin-bottom:12px;scroll-margin-top:125px}.catalog-top h2 span{font-size:12px;margin-left:5px}.catalog-top label{font-size:11px}.cats{flex-wrap:nowrap;overflow-x:auto;margin:12px -20px 0;padding:0 20px 6px;scrollbar-width:none}.cats button{padding:7px 11px;min-height:36px}.bar{margin-top:7px;padding-top:12px;gap:6px}#searchInfo{font-size:11px}.seg{gap:11px}.seg button{font-size:10px}.book-grid{grid-template-columns:1fr}.catalog-book{grid-template-columns:43px minmax(0,1fr);padding:14px 0;min-height:95px}.book-info .title{font-size:14px}.book-info .author{font-size:11px}.book-info .status-tag{font-size:10px}.catalog-group{margin-bottom:22px}.gh{font-size:12px}.footer-note{flex-direction:column;gap:5px;font-size:10px;margin-top:20px}.card{padding:21px;border-radius:11px}#bookCard{padding:22px}.detail-cover{width:100px;margin:0 20px 20px 0}#bookCard h2{font-size:22px;line-height:1.4}.detail-back{margin-bottom:20px}.subhead h1{font-size:25px}.lm{align-items:flex-end}.lm-panel{border-radius:18px 18px 0 0;padding:26px 22px}.admin-page header{flex-wrap:wrap;gap:12px}.admin-page .brand img{height:19px}.admin-page .brand span{font-size:13px;padding-left:8px}.admin-page nav{gap:18px;overflow-x:auto}.admin-page nav button{white-space:nowrap}.admin-page .req .ctl{grid-template-columns:1fr 1fr}.admin-page .lgrid{grid-template-columns:1fr}.admin-page table{font-size:12px}.admin-page .btn{font-size:12px}input#q{font-size:16px}.preview-banner{font-size:10px}}
@media(max-width:360px){header{flex-wrap:wrap;gap:10px}.brand{flex:0 0 auto}#who{margin-left:auto}.hero-books{width:200px;height:155px}.hero-book{width:72px;height:108px}.hero-book:nth-child(2){width:84px;height:126px;left:29%}.hero-book:nth-child(3){left:60%}.welcome h1{font-size:27px}.welcome{padding-left:22px;padding-right:22px}}
.detail-clear{clear:both}.detail-intro{clear:both;margin:22px 0 18px;padding:18px 0 0;border-top:1px solid var(--line)}.detail-intro b{display:block;font-size:12px;font-weight:600;color:var(--muted);margin-bottom:6px}.detail-intro p{margin:0;font-size:15px;line-height:1.8;color:#3a4b55;max-width:62ch;white-space:pre-line}
.rv-box{margin:22px 0 4px;padding:20px;border-radius:14px;background:#f1f6f4;text-align:left}.rv-q{font-size:17px;font-weight:700;color:var(--ink)}.rv-sub{font-size:12.5px;color:var(--muted);margin:4px 0 12px;line-height:1.6}
.rv-edit textarea{width:100%;min-height:84px;font-size:15px;line-height:1.6;padding:12px 13px;border:1px solid #cfdcd8;border-radius:10px;background:#fff;resize:vertical;font-family:inherit;color:var(--ink)}.rv-edit textarea:focus{outline:2px solid var(--accent);outline-offset:0;border-color:transparent}
.rv-count{text-align:right;font-size:11.5px;color:var(--muted);margin:4px 2px 8px}.rv-actions{display:flex;gap:8px}.rv-actions .btn{flex:1;margin:0}.rv-del{display:block;margin:10px auto 0;border:0;background:none;color:var(--muted);font-size:12.5px;text-decoration:underline;cursor:pointer}
.rv{margin-top:10px}.rv-text{position:relative;padding:10px 14px 10px 16px;border-left:3px solid var(--accent);background:#f6f9f8;border-radius:0 10px 10px 0;font-size:14px;line-height:1.65;color:#2f3f48;white-space:pre-line}.rv-meta{font-size:12px;color:var(--muted);margin-top:6px}
.rv-link{border:0;background:none;padding:0;color:var(--accent);font-size:13px;font-weight:600;cursor:pointer}.rv-link:hover{text-decoration:underline}.rv .rv-edit{margin-top:4px}
.rev-head{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;margin:4px 0 20px}.rev-head h2{margin:0 0 6px}.rev-month{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--muted);white-space:nowrap}.rev-month select{width:auto;min-width:130px;padding:9px 12px}
.draw-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-bottom:25px}.draw-grid .card{margin:0!important;display:flex;flex-direction:column}.dc-top{display:flex;justify-content:space-between;align-items:baseline;gap:10px}.dc-top h3{margin:0;font-size:18px;font-weight:700;letter-spacing:-.5px}.dc-pool{font-size:12px;color:#145c58;font-weight:600;background:#edf4f1;border-radius:999px;padding:3px 10px}.dc-rule{font-size:12px;color:var(--muted);margin:6px 0 16px;line-height:1.6}.draw-card .btn{margin-top:auto}
.rank{list-style:none;margin:0 0 16px;padding:0}.rank li{display:grid;grid-template-columns:minmax(0,1.2fr) 1fr auto;gap:10px;align-items:center;font-size:13px;padding:6px 0;border-bottom:1px solid #f0f3f2}.rank li:first-child .rk-n{font-weight:700}.rk-n{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rk-bar{height:6px;background:#eef3f1;border-radius:999px;overflow:hidden}.rk-bar i{display:block;height:100%;background:#5c9a86;border-radius:999px}.rk-c{font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums}
.win{margin:0 0 14px;padding:16px 18px;border-radius:12px;background:#fff8e6;border:1px solid #f2dc9c;animation:winIn .4s ease-out}.win-k{font-size:12px;font-weight:700;color:#a3730d}.win-n{font-size:20px;font-weight:750;margin:2px 0 4px;letter-spacing:-.5px}.win-d{font-size:13px;color:#5d5442;line-height:1.6;white-space:pre-line}@keyframes winIn{from{transform:scale(.96);opacity:0}to{transform:none;opacity:1}}
.rev-text{display:block;max-width:520px;line-height:1.6;white-space:pre-line}
@media(max-width:650px){.draw-grid{grid-template-columns:1fr}.rev-head{flex-direction:column;align-items:flex-start}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{animation:none!important;transition:none!important}}


/* v0.15: 추첨 기록 — 좁은 화면에서는 대상 월·후보 칸을 숨긴다 */
@media (max-width: 640px) {
  .draw-tbl tr > :nth-child(2), .draw-tbl tr > :nth-child(6) { display: none; }
  .draw-tbl tr > :nth-child(3) { white-space: nowrap; }
}
