:root{--ink:#123e35;--green:#146251;--yellow:#ffcf3a;--pale:#fff2bb;--bg:#f6f8f3;--line:#e0e8df}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:15px/1.7 'Pretendard','Apple SD Gothic Neo','Malgun Gothic',sans-serif}button,input,select,textarea{font:inherit}button,a,select{cursor:pointer}button{border:0;border-radius:12px;background:var(--green);color:white;padding:11px 18px;font-weight:700}button:hover{filter:brightness(.95)}button:focus-visible,a:focus-visible{outline:3px solid #c59800;outline-offset:3px}.yellow{background:var(--yellow);color:var(--ink)}.ghost{background:#edf4ec;color:var(--ink)}.small{padding:6px 12px;font-size:13px}.demo{background:var(--ink);color:#fff2bb;padding:7px 24px;font-size:12px;display:flex;justify-content:space-between;gap:10px}.demo button{background:transparent;padding:0;color:#fff2bb;font-size:12px}header{background:white;border-bottom:1px solid var(--line);padding:17px 4%;display:flex;align-items:center;justify-content:space-between;gap:20px}.brand{font-weight:900;letter-spacing:-1px;font-size:24px}.brand span{color:#d5a100}.brand small{display:block;font-size:10px;letter-spacing:3px;font-weight:500}header .controls{display:flex;align-items:center;gap:10px}select,input,textarea{border:1px solid #d8e2d7;border-radius:10px;padding:10px;background:white;color:var(--ink);max-width:100%}.layout{display:grid;grid-template-columns:215px 1fr;max-width:1440px;margin:auto;min-height:85vh}aside{padding:32px 20px;border-right:1px solid var(--line)}nav button{width:100%;text-align:left;background:transparent;color:#64746b;margin:4px 0;font-weight:600}nav button.active{background:var(--yellow);color:var(--ink)}aside .foot{font-size:12px;color:#7a8b80;margin-top:80px}main{padding:38px 45px;min-width:0}h1{font-size:29px;letter-spacing:-1px;line-height:1.4;margin:4px 0 10px}h2{font-size:19px;margin:0 0 16px}h3{font-size:16px;margin:0 0 8px}p{margin:6px 0 16px}.muted{color:#708076}.eyebrow{font-size:11px;letter-spacing:2px;color:#73877a;font-weight:800}.top{display:flex;justify-content:space-between;align-items:center;margin-bottom:25px;gap:18px}.hero{background:var(--ink);color:white;border-radius:24px;padding:32px;display:flex;align-items:center;justify-content:space-between;gap:25px;margin:22px 0}.hero p{color:#d0e2d8}.hero h2{font-size:25px;line-height:1.5}.sun{background:var(--yellow);color:var(--ink);border-radius:50%;width:130px;height:130px;display:grid;place-items:center;font-size:57px;flex-shrink:0}.grid{display:grid;grid-template-columns:1.3fr 1fr;gap:22px}.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:20px 0}.card{background:white;border:1px solid var(--line);border-radius:19px;padding:24px;margin-bottom:18px}.tint{background:#fff8db;border-color:#f3e6b5}.metric{font-size:32px;font-weight:850;line-height:1.3;margin:10px 0}.badge{display:inline-block;padding:3px 10px;border-radius:20px;font-size:12px;background:#edf4ec;color:var(--green)}.badge.pending{background:#fff2bb;color:#795b00}.badge.returned{background:#ffeadf;color:#90421e}.row{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:14px 0;border-bottom:1px solid var(--line)}.row:last-child{border:0}.icon{width:42px;height:42px;background:#edf4ec;border-radius:12px;display:grid;place-items:center;font-size:21px;flex-shrink:0}.row .grow{flex:1}.link{color:var(--green);text-decoration:none;font-weight:700}.pill{padding:5px 10px;background:#edf4ec;border-radius:8px}.formgrid{display:grid;grid-template-columns:1fr 1fr;gap:18px}label{display:block;font-size:13px;font-weight:700;margin:10px 0}label input,label textarea,label select{display:block;width:100%;margin-top:7px}textarea{min-height:110px;resize:vertical}.actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:20px}.empty{text-align:center;padding:38px;color:#718077}table{width:100%;border-collapse:collapse;font-size:14px}td,th{text-align:left;padding:13px;border-bottom:1px solid var(--line)}th{font-size:12px;color:#73877a}.tablewrap{overflow:auto}.login{max-width:1000px;margin:55px auto;padding:20px;display:grid;grid-template-columns:1.1fr 1fr;gap:50px;align-items:center}.login h1{font-size:43px}.rolecard{display:block;width:100%;margin:12px 0;padding:18px;text-align:left}.login .card{padding:30px}.book{width:62px;height:83px;background:#ffcf3a;border-radius:4px 9px 9px 4px;padding:9px;font-weight:900;font-size:12px;box-shadow:4px 4px 0 #edf4ec}.timeline{border-left:3px solid #ffcf3a;padding-left:20px;margin:22px 0}#toast{position:fixed;bottom:28px;left:50%;transform:translateX(-50%);background:var(--ink);color:white;padding:12px 24px;border-radius:12px;display:none;z-index:5}.note{font-size:12px;color:#718077}.bar{height:9px;background:#e7eee5;border-radius:8px;overflow:hidden}.bar i{display:block;height:100%;background:var(--green)}@media(max-width:850px){.layout{grid-template-columns:1fr}aside{border:0;padding:10px 16px;background:white;position:sticky;top:0;z-index:2}nav{display:flex;overflow:auto;gap:6px}nav button{white-space:nowrap;width:auto;flex-shrink:0;font-size:13px;padding:10px}aside .foot{display:none}main{padding:24px 18px}.grid{grid-template-columns:1fr}.login{grid-template-columns:1fr;margin:15px auto;gap:20px}.login h1{font-size:32px}header{padding:12px 18px}.brand{font-size:21px}header .controls{gap:5px}header select{max-width:115px;font-size:12px;padding:8px}.cards{gap:9px}.cards .card{padding:15px}.metric{font-size:25px}.hero{padding:24px}.sun{width:75px;height:75px;font-size:35px}.hero h2{font-size:21px}.formgrid{grid-template-columns:1fr}.top{align-items:flex-start}h1{font-size:25px}.demo{padding:7px 15px}.demo span{max-width:85%}}

.brand{flex-shrink:0}.brand img{display:block;width:190px;height:auto}.brand small{letter-spacing:1px}header{flex-wrap:wrap}header .controls{flex-wrap:wrap}@media(max-width:850px){.brand img{width:150px}}
fieldset{border:0;padding:0;margin:0;min-width:0}fieldset:disabled{opacity:.85}.wide{width:100%}.public-notices{max-width:1000px;margin:0 auto;padding:20px}.toolbar{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:22px}.toolbar input{flex:1;min-width:180px}.metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.student-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:18px}.student-tile{color:var(--ink);text-align:left;font-weight:400;transition:transform .15s}.student-tile:hover{transform:translateY(-3px)}.student-tile h2{margin-top:14px}.student-tile small{font-size:13px;color:#708076}.avatar{display:grid;place-items:center;width:48px;height:48px;border-radius:50%;background:#fff2bb;font-weight:800}.attendance-row{display:grid;grid-template-columns:100px 120px 1fr;gap:16px;align-items:center;padding:14px 0;border-bottom:1px solid var(--line)}.check-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:18px 0}.check-grid label,.inline-check{display:flex;gap:8px;align-items:center;font-weight:400}.check-grid input,.inline-check input{width:auto;margin:0}.messenger{display:grid;grid-template-columns:210px 1fr;gap:20px}.thread-list button{display:block;width:100%;margin-bottom:8px;text-align:left}.chatlog{min-height:220px;max-height:440px;overflow:auto;padding:12px;background:#f6f8f3;border-radius:12px}.bubble{max-width:85%;width:fit-content;padding:12px 16px;margin:12px 0;border-radius:14px;background:white;overflow-wrap:anywhere}.bubble.mine{margin-left:auto;background:#fff2bb}.bubble small{font-size:10px;color:#708076}.bubble p,.prewrap{white-space:pre-wrap;overflow-wrap:anywhere}main p,main b{overflow-wrap:anywhere}button{min-height:40px}nav button{font-size:14px}input[type=checkbox]{min-height:20px;min-width:20px}@media(max-width:850px){.metrics{grid-template-columns:repeat(2,1fr);gap:10px}.metrics .card{padding:16px}.messenger{grid-template-columns:1fr}.thread-list{display:flex;overflow:auto;gap:8px}.thread-list button{width:auto;white-space:nowrap;flex-shrink:0;margin:0}.attendance-row{grid-template-columns:1fr 1fr;gap:10px}.attendance-row input{grid-column:1/-1;width:100%}.check-grid{grid-template-columns:1fr}.student-grid{grid-template-columns:1fr}.toolbar>*{max-width:100%}.cards{grid-template-columns:1fr}.demo{flex-wrap:wrap}header .controls{width:100%;justify-content:flex-end}.top{flex-wrap:wrap}.hero .sun{display:none}}
audio{display:block;width:100%;margin:16px 0}#isbnResults{margin:15px 0;color:var(--green)}input[type=file]{width:100%}.thread-list small{font-size:11px}
.money{font-size:24px;overflow-wrap:anywhere}button:disabled{opacity:.5;cursor:not-allowed}input[readonly]{background:#f3f6f0}#payCalculation{margin-top:18px}@media(max-width:600px){.row{flex-wrap:wrap}.row .grow{min-width:130px}}
