@charset "UTF-8";
:root{--ink:#243e33;--green:#28513f;--green-dark:#1e4132;--green-light:#eaf0e7;--paper:#f9f8f4;--white:#fffefa;--line:#e5e6de;--muted:#73796f;--clay:#a55d3d;--clay-light:#f4e9df;--gold:#ac7d34;--red:#a5433e;--red-bg:#f9e9e6;--radius:16px;--shadow:0 12px 40px #283c3212;--serif:"Songti SC","STSong","Noto Serif CJK SC",Georgia,serif;--sans:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif}
*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:var(--sans);font-size:14px;line-height:1.65;-webkit-font-smoothing:antialiased}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer}button{border:0;background:none;color:inherit}a{color:inherit}button:disabled{cursor:not-allowed;opacity:.5}button,input,select,textarea,a{outline-offset:4px}button:focus-visible,a:focus-visible{outline:2px solid var(--clay)}input:focus,textarea:focus,select:focus{outline:2px solid #83a08c;outline-offset:1px}h1,h2,h3,h4,p{margin:0}h1,h2,h3,h4{font-weight:600}h1{font-size:30px;line-height:1.3}h2{font-size:21px}h3{font-size:17px}svg.icon{width:20px;height:20px;flex-shrink:0;vertical-align:middle;stroke:currentColor;fill:none;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}small{font-size:12px}hr{border:0;border-top:1px solid var(--line);margin:24px 0}.skip-link{position:fixed;top:-70px;left:16px;z-index:100;background:var(--green);color:white;padding:12px}.skip-link:focus{top:10px}
.sidebar{width:222px;position:fixed;inset:0 auto 0 0;z-index:20;background:#f0f2eb;border-right:1px solid #e0e5da;display:flex;flex-direction:column;padding:30px 18px 18px}.brand{display:flex;align-items:center;gap:11px;padding:0 9px 30px}.brand-mark{height:43px;width:43px;background:var(--green);color:#fcf8e7;border-radius:12px;display:grid;place-items:center}.brand-mark .icon{width:27px;height:27px}.brand strong{font-size:17px;letter-spacing:1px}.brand small{display:block;font-size:9px;letter-spacing:2px;color:#647460;margin-top:2px}.nav-label{font-size:11px;letter-spacing:1px;color:#7a8375;padding:14px 14px 8px}.nav{display:flex;flex-direction:column;gap:6px}.nav-item{width:100%;display:flex;gap:13px;align-items:center;padding:12px 16px;border-radius:9px;min-height:46px;color:#66715f;font-size:14px;text-align:left;transition:background .2s,color .2s}.nav-item:hover{background:#e6ebdf;color:var(--green)}.nav-item.active{background:var(--green);color:#fffdf4;font-weight:500;box-shadow:0 4px 12px #28513f12}.nav-item .nav-count{font-size:11px;margin-left:auto;border-radius:5px;padding:0 6px;background:#e8eddf;color:var(--green)}.sidebar-bottom{margin-top:auto;padding-top:35px}.quote-card{border:1px solid #dce2d4;border-radius:12px;padding:20px 16px;margin:10px 3px 20px;background:#e9eee1}.quote-card .sprout{color:#668565;margin-bottom:12px}.quote-card p{font-family:var(--serif);font-size:17px;line-height:1.9}.quote-card small{font-size:10px;color:#737e6d;letter-spacing:1px;display:block;margin-top:12px}.sidebar-bottom .text-btn{font-size:12px;width:100%;justify-content:center}.shell{margin-left:222px;min-height:100vh}.topbar{height:88px;display:flex;align-items:center;justify-content:space-between;padding:0 42px;border-bottom:1px solid var(--line);background:#fcfbf7;gap:16px}.breadcrumb{font-size:12px;color:var(--muted);display:flex;align-items:center;gap:10px}.breadcrumb strong{font-weight:500;color:var(--ink)}.top-actions{display:flex;align-items:center;gap:17px}.date-label{font-size:12px;color:var(--muted)}.icon-btn{width:40px;height:40px;display:grid;place-items:center;border-radius:10px}.icon-btn:hover{background:var(--green-light)}.avatar{width:36px;height:36px;display:inline-grid;place-items:center;border-radius:50%;background:#e7dfc9;color:#776148;font-size:13px;flex-shrink:0}.avatar.green{background:#e2eadd;color:#496c44}.avatar.orange{background:#f1e0d4;color:#8b5f3e}.identity{display:flex;align-items:center;gap:9px}.identity select{max-width:160px;background:none;border:none;padding:8px 20px 8px 0;font-size:12px;color:var(--ink)}.demo-bar{font-size:11px;color:var(--muted);display:flex;justify-content:space-between;align-items:center;padding:12px 0 19px;gap:12px}.demo-bar>span{display:flex;align-items:center;gap:8px}.demo-badge{display:inline-flex;gap:6px;align-items:center;border-radius:4px;padding:2px 7px;background:#eaf0e4;color:#4c6846;font-size:10px}.demo-badge:before{content:"";width:5px;height:5px;border-radius:50%;background:#5c7b4c}.text-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;color:var(--green);font-size:13px;min-height:36px;padding:4px 2px}.text-btn:hover{color:var(--clay)}.text-btn .icon{width:16px;height:16px}.main{max-width:1540px;margin:0 auto;padding:0 42px 48px}.page-header{display:flex;align-items:flex-end;justify-content:space-between;margin:9px 0 27px;gap:16px}.page-header p{margin-top:8px;color:var(--muted);font-size:13px}.eyebrow{font-size:10px;letter-spacing:2.6px;font-weight:600;text-transform:uppercase;color:#6e7c67;margin-bottom:13px}.hero{position:relative;min-height:270px;border:1px solid #e5e8dc;border-radius:18px;background:#edf0e5;overflow:hidden;display:flex;align-items:center;margin-bottom:23px}.hero-copy{z-index:1;width:58%;padding:32px 38px}.hero h1{font-family:var(--serif);font-size:37px;letter-spacing:2px;font-weight:600;line-height:1.55;margin-bottom:10px}.hero h1 em{font-style:normal;color:#a56543}.hero p{font-size:13px;color:#6c7869;line-height:1.9}.hero-visual{position:absolute;right:-25px;bottom:-20px;width:52%;height:108%;object-fit:contain}.hero .btn{margin-top:22px;font-size:12px;min-height:39px;padding:8px 17px}.hero-stamp{position:absolute;right:25px;top:24px;color:#6e7a60;font-size:9px;letter-spacing:1.5px;writing-mode:vertical-rl}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;background:var(--green);color:var(--white);border:1px solid var(--green);padding:10px 18px;min-height:43px;border-radius:8px;font-size:13px;font-weight:500;transition:background .18s,box-shadow .18s;white-space:nowrap}.btn:hover:not(:disabled){background:var(--green-dark);box-shadow:0 4px 13px #21422e20}.btn.secondary{background:var(--white);color:var(--green);border-color:#d6ddcf}.btn.secondary:hover:not(:disabled){background:var(--green-light)}.btn.ghost{background:none;color:var(--green);border-color:transparent}.btn.small{padding:6px 12px;min-height:35px;font-size:12px}.btn.danger{background:var(--red);border-color:var(--red)}.btn.wide{width:100%}.btn .icon{width:17px;height:17px}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:29px}.stat{background:var(--white);border:1px solid var(--line);border-radius:12px;padding:19px 20px;display:flex;align-items:center;gap:16px}.stat-icon{width:44px;height:44px;border-radius:12px;background:var(--green-light);color:#5b7653;display:grid;place-items:center}.stat:nth-child(2) .stat-icon{background:#f4e9db;color:#a97545}.stat:nth-child(3) .stat-icon{background:#edeae0;color:#887c50}.stat:nth-child(4) .stat-icon{background:#e8eceb;color:#63817e}.stat-label{font-size:11px;color:var(--muted)}.stat-number{font-family:Georgia,var(--serif);font-size:27px;line-height:1.4;color:#314638;font-weight:500}.stat-number small{font:11px var(--sans);color:#82887a;margin-left:7px}.section-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:19px;gap:12px}.section-heading h2{font-size:19px;letter-spacing:.3px}.section-heading .subtitle{font-size:12px;color:var(--muted);margin-left:13px}.catalog-layout{display:grid;grid-template-columns:minmax(0,1fr) 275px;gap:25px;align-items:start}.catalog-main{min-width:0}.toolbar{display:flex;align-items:center;gap:15px;margin-bottom:20px}.search{position:relative;flex:1;min-width:0}.search .icon{position:absolute;left:12px;top:12px;color:#8b9187;width:17px;height:17px}.search input{width:100%;height:42px;background:#fffefa;border:1px solid var(--line);border-radius:8px;padding:0 12px 0 38px;font-size:12px;color:var(--ink)}.search input::placeholder{color:#949a90}.check-inline{display:flex;align-items:center;gap:7px;white-space:nowrap;font-size:12px;color:#6e7769;cursor:pointer}.check-inline input{accent-color:var(--green);width:15px;height:15px}.filters{display:flex;gap:6px;margin-bottom:23px;flex-wrap:wrap}.chip{font-size:11px;padding:6px 12px;border:1px solid transparent;border-radius:5px;min-height:32px;color:#7b8274}.chip:hover{background:#eff1e8}.chip.active{color:var(--green);background:#e8eddf;border-color:#dce5d3;font-weight:500}.books-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:25px 20px}.book-card{text-align:left;min-width:0;position:relative;border:0;padding:0;background:none;width:100%;display:block}.book-stage{background:#efeee6;border:1px solid #e8e7de;border-radius:10px;height:204px;display:flex;align-items:center;justify-content:center;position:relative;transition:background .2s,box-shadow .2s;overflow:hidden}.book-card:nth-child(3n+2) .book-stage{background:#f0e9df}.book-card:nth-child(3n) .book-stage{background:#e9ece5}.book-card:hover .book-stage{box-shadow:0 8px 20px #34442b12;background:#e7eadf}.book-cover{height:167px;width:119px;object-fit:cover;box-shadow:3px 6px 8px #363c3128,1px 0 2px #23362c30;transform:perspective(650px) rotateY(-7deg);border-radius:1px 3px 3px 1px;transition:transform .25s}.book-card:hover .book-cover{transform:perspective(650px) rotateY(0) translateY(-4px)}.book-card h3{font-size:14px;margin-top:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:600}.book-card p{font-size:11px;color:#8b8e80;margin:3px 0 8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.book-meta{display:flex;align-items:center;justify-content:space-between;gap:5px;font-size:10px;color:#7a8270}.status{display:inline-flex;align-items:center;gap:5px;font-size:10px;line-height:1.5;padding:3px 7px;border-radius:4px;background:#e8efe3;color:#4b6c40;white-space:nowrap}.status:before{content:"";width:4px;height:4px;border-radius:50%;background:currentColor}.status.amber{background:#f4e9d5;color:#936a29}.status.gray{background:#eceee9;color:#6d7567}.status.red{background:var(--red-bg);color:var(--red)}.book-type{position:absolute;top:10px;left:10px;color:#797c6a;font-size:9px;letter-spacing:.3px;background:#ffffffa6;padding:2px 6px;border-radius:4px}.side-panels{display:flex;flex-direction:column;gap:20px}.panel{background:var(--white);border:1px solid var(--line);border-radius:12px;padding:21px}.panel h3{font-size:15px}.panel-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:17px}.panel-top .icon{color:#7b8a6b;width:18px}.loan-empty{border:1px dashed #dce3d2;background:#f8faf4;border-radius:9px;padding:19px 15px;text-align:center}.loan-empty>.icon{width:27px;height:27px;color:#7b9470;margin:4px 0 10px}.loan-empty p{font-size:12px;color:#728068;margin-top:6px}.loan-empty h4{font-size:13px;font-weight:500}.tiny-help{font-size:10px;color:#7e8577;margin-top:13px;text-align:center}.event-date{font-size:10px;color:#a16e45;letter-spacing:1px;margin-bottom:9px}.event-card{background:#f3eee3}.event-card h3{font-family:var(--serif);font-size:19px;line-height:1.65;margin-bottom:8px}.event-card p{font-size:11px;color:#847f6e}.event-card .event-footer{display:flex;align-items:center;justify-content:space-between;margin-top:17px;border-top:1px solid #e5ddcd;padding-top:13px}.avatar-stack{display:flex;padding-left:0}.avatar-stack .avatar{width:25px;height:25px;font-size:8px;border:2px solid #f4efe5;margin-left:-5px}.avatar-stack .avatar:first-child{margin-left:0}.event-footer small{font-size:10px;color:#8e826b}.mini-ranking{display:flex;flex-direction:column;gap:14px}.mini-rank-row{display:flex;align-items:center;gap:10px}.mini-rank-row>.rank-num{font:italic 15px Georgia;color:#b8955c;width:14px}.mini-rank-row .avatar{width:28px;height:28px;font-size:10px}.mini-rank-row .rank-name{font-size:12px;flex:1}.mini-rank-row strong{font-size:12px;color:#697951;font-weight:500}.panel-foot{border-top:1px solid var(--line);margin-top:18px;padding-top:12px;text-align:center}.panel-foot .text-btn{font-size:11px;min-height:24px}.page-foot{display:flex;justify-content:space-between;gap:12px;margin-top:40px;color:#959987;font-size:10px;border-top:1px solid var(--line);padding-top:17px;letter-spacing:.4px}.more-books{display:flex;justify-content:center;margin-top:25px}.result-count{font-size:11px;color:var(--muted);margin:3px 0 13px}.grid-2{display:grid;grid-template-columns:1fr 1fr;gap:22px}.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.section-gap{margin-top:28px}.muted{color:var(--muted)}.hint{font-size:12px;color:var(--muted);line-height:1.8}.notice{display:flex;gap:10px;background:#eef2e8;border:1px solid #dfe7d7;padding:13px 16px;border-radius:8px;font-size:12px;color:#5d7252;line-height:1.8}.notice .icon{width:17px;height:17px;margin-top:2px}.notice.amber{background:#f7efe0;color:#8c713b;border-color:#ede0c3}.notice.red{background:var(--red-bg);color:var(--red);border-color:#e9cfc8}.empty{padding:45px 22px;text-align:center;color:var(--muted);border:1px dashed #dce1d4;border-radius:12px;grid-column:1/-1}.empty .icon{height:34px;width:34px;display:block;margin:0 auto 13px;color:#8a9b7a}.empty h3{color:#52614a;font-size:15px;margin-bottom:5px}.empty p{font-size:12px}.pill{display:inline-flex;background:#eef0e7;padding:3px 9px;border-radius:4px;color:#6f7b60;font-size:10px}.inline-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.row-between{display:flex;align-items:center;justify-content:space-between;gap:15px}.row{display:flex;align-items:center;gap:12px}.row-start{display:flex;gap:15px;align-items:flex-start}.w-full{width:100%}
.tabs{display:flex;gap:22px;border-bottom:1px solid var(--line);margin-bottom:22px;overflow:auto;white-space:nowrap}.tab{font-size:13px;min-height:45px;padding:5px 2px 11px;position:relative;color:var(--muted)}.tab.active{color:var(--green);font-weight:600}.tab.active:after{content:"";position:absolute;bottom:-1px;height:2px;background:var(--green);left:0;right:0}.loan-card{display:flex;gap:22px;padding:22px;background:var(--white);border:1px solid var(--line);border-radius:12px;margin-bottom:16px}.loan-card>img{width:77px;height:108px;object-fit:cover;box-shadow:2px 3px 6px #243e3320}.loan-info{flex:1;min-width:0}.loan-info h3{margin:3px 0 5px}.loan-info p{font-size:12px;color:var(--muted)}.loan-actions{display:flex;gap:8px;align-self:center;flex-wrap:wrap;justify-content:flex-end}.loan-summary{display:flex;gap:18px;margin-top:12px;font-size:11px;color:#76806d}.loan-preview{display:flex;gap:13px;align-items:center;margin-bottom:15px}.loan-preview img{width:45px;height:63px;object-fit:cover;box-shadow:2px 3px 4px #0002}.loan-preview h4{font-size:12px}.loan-preview p{font-size:10px;color:var(--muted);margin-top:5px}.progress{height:5px;background:#e7ebdf;border-radius:9px;overflow:hidden;margin:12px 0}.progress>span{display:block;height:100%;background:#819b66}.profile-banner{padding:27px 30px;background:#edf1e6;border:1px solid #e0e7d7;border-radius:15px;display:flex;align-items:center;gap:20px;margin-bottom:24px}.profile-banner .avatar{width:65px;height:65px;font-size:23px}.profile-banner h2{font-family:var(--serif);font-size:27px}.profile-banner p{font-size:12px;color:var(--muted);margin-top:4px}.profile-numbers{display:flex;gap:33px;margin-left:auto}.profile-number strong{font:27px Georgia;display:block}.profile-number small{color:var(--muted);font-size:11px}.table-wrap{border:1px solid var(--line);border-radius:12px;overflow:auto;background:var(--white)}table{border-collapse:collapse;width:100%;text-align:left;white-space:nowrap}th{background:#f1f3eb;color:#7b8372;font-size:11px;font-weight:500;padding:13px 20px;border-bottom:1px solid var(--line)}td{padding:14px 20px;border-bottom:1px solid #eceee5;font-size:12px}tr:last-child td{border-bottom:0}td .sub{font-size:10px;color:var(--muted);display:block;margin-top:3px}.score-plus{color:#568348;font-family:Georgia;font-size:17px}.score-minus{color:#a37553;font-family:Georgia;font-size:17px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.field{display:flex;flex-direction:column;gap:7px;min-width:0}.field.full{grid-column:1/-1}.field label{font-size:12px;color:#4d5d44;font-weight:500}.field input,.field select,.field textarea{border:1px solid #dce1d4;border-radius:7px;background:#fffefa;color:var(--ink);padding:10px 12px;min-height:42px;width:100%;font-size:13px}.field textarea{resize:vertical;min-height:140px;line-height:1.8}.field small{font-size:10px;color:var(--muted)}.form-footer{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin-top:23px}.form-error{color:var(--red);font-size:12px;margin:12px 0 0;min-height:20px}.rule-row{display:flex;justify-content:space-between;align-items:center;gap:20px;border-bottom:1px solid var(--line);padding:15px 0;font-size:12px}.rule-row:last-child{border:0}.rule-row p{font-size:11px;color:var(--muted);margin-top:4px}.rule-input{display:flex;align-items:center;gap:8px;flex-shrink:0}.rule-input input{width:76px;min-height:38px;border:1px solid #dce1d4;border-radius:6px;padding:7px;color:var(--green);text-align:center;background:var(--white)}.rule-input small{color:var(--muted)}.switch{position:relative;display:inline-block;width:40px;height:24px}.switch input{position:absolute;opacity:0;width:1px;height:1px}.switch span{position:absolute;inset:0;background:#d8ddd0;border-radius:20px;cursor:pointer}.switch span:after{content:"";width:18px;height:18px;background:white;border-radius:50%;position:absolute;top:3px;left:3px;transition:transform .18s}.switch input:checked+span{background:var(--green)}.switch input:checked+span:after{transform:translateX(16px)}.switch input:focus-visible+span{outline:2px solid var(--clay);outline-offset:3px}.review-card{padding:21px;border:1px solid var(--line);border-radius:12px;background:var(--white);margin-bottom:14px}.review-body{font-size:13px;line-height:1.9;color:#68725e;margin:14px 0;white-space:pre-wrap}.review-card .review-meta{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:11px;color:var(--muted)}.event-big{display:grid;grid-template-columns:160px 1fr;background:#f1eddf;border:1px solid #e7e0cb;border-radius:14px;overflow:hidden;margin-bottom:20px}.event-art{display:grid;place-items:center;background:#e7ddc8;color:#7e6944;position:relative;min-height:205px}.event-art .icon{height:62px;width:62px;stroke-width:1}.event-art:after{content:"READ TOGETHER";position:absolute;bottom:25px;font:9px Georgia;letter-spacing:2px}.event-details{padding:27px}.event-details h2{font-family:var(--serif);margin:10px 0;font-size:24px}.event-details .event-info{display:flex;gap:18px;flex-wrap:wrap;font-size:12px;color:#7c7b65;margin:12px 0 18px}.event-info span{display:flex;align-items:center;gap:5px}.event-info .icon{width:15px;height:15px}.ranking-podium{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-bottom:25px}.podium{border:1px solid var(--line);background:var(--white);border-radius:13px;padding:22px;text-align:center;position:relative}.podium.first{background:#edf0e2;border-color:#d8e1c8}.podium .rank-icon{position:absolute;left:18px;top:14px;color:#a58c53;font:italic 23px Georgia}.podium .avatar{width:49px;height:49px;font-size:18px;margin:0 auto 10px}.podium h3{font-size:14px;margin-bottom:4px}.podium p{font-size:10px;color:var(--muted)}.podium strong{font:26px Georgia;display:block;margin-top:12px;color:#5c744a}.podium strong small{font:10px var(--sans);margin-left:5px}.rank-me{background:#f0f3e8}.rank-position{font:italic 17px Georgia;color:#a58b58}.rank-bar{height:5px;background:#eaf0e2;border-radius:4px;width:140px;overflow:hidden}.rank-bar>i{display:block;height:100%;background:#98a880}
.lottery-layout{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(260px,1fr);gap:25px}.draw-panel{padding:32px;background:#eaf0e0;border:1px solid #dfe6d4;border-radius:16px;text-align:center;position:relative;overflow:hidden}.draw-panel h2{font-family:var(--serif);font-size:29px;margin-bottom:8px}.draw-panel>p{font-size:12px;color:#6c7c5c}.lottery-board{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:27px 0}.prize-tile{border:1px solid #dce2cd;background:#fbfcf5;border-radius:10px;padding:16px 8px;min-height:103px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px}.prize-tile .icon{height:26px;width:26px;color:#8a9c71}.prize-tile h4{font-size:11px}.prize-tile small{font-size:9px;color:var(--muted)}.prize-tile.center{background:var(--green);color:#fffde9;border:0;box-shadow:0 5px 10px #203a3022;font-family:var(--serif);font-size:19px;line-height:1.5}.prize-tile.center small{color:#c6d3b8;font-family:var(--sans);font-size:10px}.prize-tile.active{background:#fff6d8;border-color:#bd9a4c;box-shadow:0 0 0 2px #d8bc73}.draw-panel .btn{width:100%;min-height:46px}.balance-card{padding:27px;border-radius:13px;background:var(--green);color:var(--white);margin-bottom:20px;position:relative;overflow:hidden}.balance-card:after{content:"";width:140px;height:140px;border:1px solid #ffffff18;border-radius:50%;position:absolute;right:-45px;top:-20px}.balance-card .balance-label{font-size:11px;color:#c5d3b9}.balance-card .balance-number{font:48px Georgia;margin:8px 0}.balance-card .balance-number small{font:12px var(--sans);margin-left:8px;color:#c5d3b9}.balance-card .balance-meta{display:flex;justify-content:space-between;font-size:11px;color:#d4ddc9;border-top:1px solid #ffffff25;padding-top:13px}.prize-list{margin-top:14px}.prize-row{display:flex;align-items:center;justify-content:space-between;padding:11px 0;border-bottom:1px solid var(--line);gap:10px;font-size:12px}.prize-row:last-child{border:0}.prize-row small{display:block;color:var(--muted);font-size:10px}.prize-row strong{font-family:Georgia;color:#8c7852;font-size:17px;font-weight:500}.result-symbol{width:78px;height:78px;background:#edf1de;border-radius:50%;margin:5px auto 20px;display:grid;place-items:center;color:#6b814a}.result-symbol .icon{width:37px;height:37px;stroke-width:1.4}.result-modal{text-align:center;padding:5px 5px 15px}.result-modal h2{font-family:var(--serif);font-size:29px;margin:12px 0}.result-modal p{font-size:13px;color:var(--muted);line-height:1.9}.result-modal .notice{margin:25px 0 5px;text-align:left}.result-modal .btn{margin-top:20px}.welcome{max-width:630px;margin:35px auto}.welcome-heading{text-align:center;margin-bottom:28px}.welcome-heading>.brand-mark{margin:0 auto 20px;width:61px;height:61px}.welcome-heading h1{font-family:var(--serif);font-size:32px}.welcome-heading p{font-size:13px;color:var(--muted);margin-top:12px}.welcome .panel{padding:30px}.steps{display:flex;justify-content:space-between;margin:27px 0;padding:0 10px}.step{font-size:11px;color:var(--muted);text-align:center}.step b{display:grid;place-items:center;width:27px;height:27px;border-radius:50%;margin:0 auto 8px;background:var(--green-light);color:var(--green);font-weight:500}.welcome-pending{text-align:center;padding:35px 10px}.welcome-pending>.icon{width:46px;height:46px;color:#809565;margin-bottom:18px}.welcome-pending h2{margin-bottom:12px}.admin-heading-note{font-size:10px;background:var(--clay-light);color:var(--clay);padding:3px 8px;border-radius:4px}.todo-number{font:34px Georgia;color:#876b41}.admin-preview{background:#f2f0e5}.step-guide{display:flex;gap:16px;padding:18px 0;border-bottom:1px solid var(--line)}.step-guide:last-child{border:0}.step-guide>span{height:28px;min-width:28px;border-radius:50%;background:var(--green-light);display:grid;place-items:center;font:14px Georgia;color:var(--green)}.step-guide h3{font-size:13px;margin-bottom:5px}.step-guide p{font-size:12px;color:var(--muted)}
dialog{border:1px solid #e2e5d9;border-radius:17px;background:var(--white);color:var(--ink);padding:0;width:min(600px,calc(100vw - 32px));max-height:90vh;box-shadow:0 25px 100px #16281e30}dialog::backdrop{background:#1c2f26a1;backdrop-filter:blur(4px)}.dialog-head{display:flex;justify-content:space-between;align-items:center;padding:20px 24px;border-bottom:1px solid var(--line);position:sticky;top:0;background:var(--white);z-index:2}.dialog-head h2{font-size:18px}.dialog-body{padding:24px}.dialog-book{display:grid;grid-template-columns:120px 1fr;gap:24px;margin-bottom:24px}.dialog-book>img{width:120px;height:168px;object-fit:cover;box-shadow:3px 5px 9px #1d34222b}.dialog-book h2{font-size:23px;font-family:var(--serif);margin:2px 0 9px}.dialog-book p{font-size:12px;color:var(--muted);margin-bottom:9px}.dialog-section-title{font-size:13px;margin:21px 0 8px}.dialog-intro{font-size:13px;line-height:1.95;color:#6a735f}.copy-row{font-size:11px;background:#f3f5ed;border-radius:7px;padding:12px;display:flex;align-items:center;justify-content:space-between;gap:10px;margin:8px 0}.copy-row p{font-size:10px;color:var(--muted);margin-top:3px}.days-options{display:flex;gap:10px;margin-top:10px}.days-options .chip{border-color:#dce3d3;font-size:12px;min-height:38px;padding:7px 16px}.days-options .chip.active{border-color:#698759}.dialog-summary{background:#f0f3e8;border-radius:7px;padding:12px 14px;font-size:11px;line-height:1.9;margin-top:17px;color:#667759}.dialog-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:23px}.dialog-actions .btn:first-child:last-child{width:100%}#toast{position:fixed;bottom:30px;left:calc(50% + 111px);transform:translate(-50%,15px);border-radius:9px;background:#203f32;color:#f8f9ee;padding:12px 22px;font-size:13px;z-index:1000;box-shadow:0 8px 28px #243e332e;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;max-width:calc(100vw - 36px);text-align:center}#toast.visible{opacity:1;transform:translate(-50%,0)}#toast.error{background:#8b4840}.mobile-brand{display:none}.mobile-nav{display:none}.guide-flag{color:var(--clay)}.initial-loader{padding:80px;text-align:center}.pending-dot{width:6px;height:6px;border-radius:50%;background:var(--clay);display:inline-block}.notice-text{font-size:12px;color:#65735b}
@media(min-width:1500px){.book-stage{height:232px}.book-cover{height:186px;width:133px}.hero{min-height:290px}.hero h1{font-size:42px}.catalog-layout{grid-template-columns:minmax(0,1fr) 300px}.books-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:1200px){.sidebar{width:195px;padding-left:12px;padding-right:12px}.shell{margin-left:195px}.brand{gap:8px;padding-left:5px}.brand strong{font-size:15px}.brand small{letter-spacing:1.4px}.brand-mark{width:36px;height:36px}.topbar{padding:0 28px}.main{padding-left:28px;padding-right:28px}.catalog-layout{grid-template-columns:minmax(0,1fr) 240px;gap:20px}.books-grid{gap:24px 14px}.book-stage{height:177px}.book-cover{height:146px;width:104px}.hero-copy{padding:30px}.hero h1{font-size:32px}.hero-visual{right:-40px}.stat{padding:17px 15px;gap:10px}.stat-icon{width:36px;height:36px}.stat-number{font-size:24px}.panel{padding:18px}#toast{left:calc(50% + 98px)}.date-label{display:none}}
@media(max-width:1020px){.sidebar{width:178px}.shell{margin-left:178px}.brand strong{font-size:13px}.brand small{font-size:8px}.brand-mark{width:33px;height:33px;flex-shrink:0}.brand-mark .icon{width:23px}.nav-item{font-size:13px;padding:11px 12px}.main{padding-left:24px;padding-right:24px}.topbar{padding:0 24px;height:76px}.catalog-layout{display:block}.side-panels{display:grid;grid-template-columns:1fr 1fr;margin-top:28px}.side-panels>.panel:last-child{display:none}.book-stage{height:200px}.book-cover{height:164px;width:117px}.hero-visual{opacity:.85;right:-55px;width:55%}.hero-copy{width:68%;padding:26px}.hero h1{font-size:30px}.hero p{max-width:330px}.stat{gap:9px;padding:14px 12px}.stat-icon{display:none}.stat-number{font-size:26px}.stat-label{font-size:10px}.profile-numbers{gap:19px}.lottery-layout{grid-template-columns:1fr}.lottery-side{display:grid;grid-template-columns:1fr 1fr;gap:18px;align-items:start}.lottery-side>.panel{margin:0}.lottery-board{max-width:440px;margin:25px auto}.draw-panel>.btn{max-width:440px}.grid-3{grid-template-columns:1fr 1fr}.event-big{grid-template-columns:125px 1fr}.event-details{padding:24px}.page-header h1{font-size:27px}.loan-card{flex-wrap:wrap}.loan-actions{margin-left:99px}.grid-2{gap:18px}}
@media(max-width:760px){.sidebar{display:none}.shell{margin-left:0}.topbar{height:67px;padding:0 19px;background:#f4f5ee;position:sticky;top:0;z-index:15}.breadcrumb,.top-actions>.icon-btn,.date-label{display:none}.mobile-brand{display:flex;align-items:center;gap:8px;font-size:15px;font-weight:600;letter-spacing:.5px}.mobile-brand>.icon{color:var(--green);width:23px;height:23px}.identity .avatar{width:28px;height:28px;font-size:11px}.identity{gap:6px}.identity select{font-size:10px;max-width:133px;padding-right:5px}.main{padding:0 20px 105px}.demo-bar{padding:12px 0 15px;font-size:9px}.demo-bar .text-btn{font-size:10px;min-height:25px}.demo-badge{font-size:8px}.hero{min-height:258px;margin-bottom:17px;border-radius:13px;align-items:flex-start}.hero-copy{width:74%;padding:24px}.hero .eyebrow{font-size:8px;letter-spacing:2px}.hero h1{font-size:30px;line-height:1.6;letter-spacing:1px}.hero p{font-size:11px;max-width:210px}.hero-visual{width:58%;height:68%;right:-38px;bottom:-18px;opacity:.86}.hero-stamp{right:14px;top:18px;font-size:8px}.hero .btn{margin-top:19px;font-size:11px}.stats{gap:9px;margin-bottom:27px;grid-template-columns:repeat(4,1fr)}.stat{padding:12px 11px;border-radius:9px}.stat-number{font-size:24px;line-height:1.5}.stat-number small{font-size:9px;margin-left:3px}.stat-label{font-size:9px;white-space:nowrap}.section-heading h2{font-size:18px}.section-heading .subtitle{display:none}.section-heading{margin-bottom:14px}.section-heading .text-btn{font-size:11px}.toolbar{gap:13px;margin-bottom:14px}.search input{font-size:11px}.check-inline{font-size:11px}.filters{gap:4px;margin-bottom:17px;flex-wrap:nowrap;overflow:auto;scrollbar-width:none}.filters .chip{white-space:nowrap;padding:6px 10px;font-size:10px;flex-shrink:0}.books-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 16px}.book-stage{height:200px}.book-cover{height:161px;width:115px}.book-card h3{font-size:13px;margin-top:9px}.book-card p{font-size:10px}.book-meta{font-size:9px}.status{font-size:9px;padding:3px 6px}.side-panels{grid-template-columns:1fr;margin-top:27px;gap:15px}.side-panels>.panel:last-child{display:block}.panel{padding:20px}.mini-ranking{flex-direction:row;flex-wrap:wrap}.mini-rank-row{flex:1;min-width:110px;gap:6px}.mini-rank-row .avatar{display:none}.panel-foot{margin-top:15px}.page-foot{flex-direction:column;font-size:9px;margin-top:28px;gap:4px}.mobile-nav{position:fixed;bottom:0;left:0;right:0;background:#fffef9f5;border-top:1px solid #e2e7d9;display:flex;justify-content:space-around;padding:6px 6px calc(9px + env(safe-area-inset-bottom));z-index:20;backdrop-filter:blur(12px)}.mobile-nav button{min-width:55px;min-height:47px;color:#8b927f;font-size:9px;padding:4px;display:flex;flex-direction:column;gap:5px;align-items:center}.mobile-nav button.active{color:var(--green);font-weight:600}.mobile-nav .icon{width:21px;height:21px}.mobile-nav button.active .icon{fill:#e6eddf}.page-header{align-items:flex-start;margin:7px 0 23px}.page-header h1{font-size:26px}.page-header p{font-size:11px;max-width:245px;line-height:1.8}.page-header .btn{font-size:11px;min-height:36px;padding:8px 10px}.grid-2,.grid-3{grid-template-columns:1fr}.profile-banner{padding:22px 18px;gap:13px;flex-wrap:wrap}.profile-banner .avatar{width:50px;height:50px;font-size:19px}.profile-banner h2{font-size:24px}.profile-numbers{width:100%;margin-top:10px;padding-top:17px;border-top:1px solid #dce3d1;justify-content:space-between}.profile-number{flex:1}.profile-number strong{font-size:24px}.profile-number small{font-size:10px}.loan-card{padding:18px;gap:15px}.loan-card>img{width:64px;height:90px}.loan-info h3{font-size:16px}.loan-info p{font-size:11px}.loan-summary{flex-wrap:wrap;gap:5px 12px;margin-top:7px;font-size:10px}.loan-actions{width:100%;margin-left:79px;justify-content:flex-start}.loan-actions .btn{font-size:11px;min-height:38px}.tabs{gap:22px;margin-bottom:18px}.tab{font-size:12px}.ranking-podium{gap:9px}.podium{padding:19px 10px}.podium .rank-icon{left:9px;top:10px;font-size:17px}.podium .avatar{width:39px;height:39px;font-size:14px}.podium h3{font-size:12px}.podium p{font-size:9px}.podium strong{font-size:24px}.podium strong small{font-size:9px}.rank-bar{width:80px}th,td{padding:12px 14px}.ranking-table th:nth-child(3),.ranking-table td:nth-child(3){display:none}.lottery-side{display:flex;flex-direction:column}.lottery-side>*{width:100%}.balance-card{margin:0}.draw-panel{padding:25px 19px}.draw-panel h2{font-size:27px}.lottery-board{gap:8px;margin:22px 0}.prize-tile{min-height:94px;padding:11px 5px}.prize-tile h4{font-size:10px}.prize-tile.center{font-size:17px}.event-big{grid-template-columns:85px 1fr}.event-art{min-height:235px}.event-art .icon{width:40px;height:40px}.event-art:after{font-size:7px;letter-spacing:1px;writing-mode:vertical-rl;bottom:20px}.event-details{padding:21px 18px}.event-details h2{font-size:20px}.event-details .event-info{font-size:10px;gap:7px;flex-direction:column}.event-details .hint{font-size:11px}.review-body{font-size:12px}.form-grid{gap:15px}.form-grid:not(.keep-cols){grid-template-columns:1fr}.form-footer{flex-wrap:wrap}.form-footer .btn{flex:1}.welcome{margin:20px auto}.welcome .panel{padding:23px}.welcome-heading h1{font-size:28px}.welcome-heading p{font-size:12px}.dialog-head{padding:15px 18px}.dialog-body{padding:20px}.dialog-book{grid-template-columns:90px 1fr;gap:19px}.dialog-book>img{width:90px;height:126px}.dialog-book h2{font-size:21px}.dialog-book p{font-size:11px}.dialog-actions{flex-wrap:wrap}.dialog-actions .btn{flex:1}.dialog-intro{font-size:12px}.days-options{gap:6px;flex-wrap:wrap}.days-options .chip{padding:7px 12px}.copy-row{align-items:flex-start}.dialog-summary{font-size:10px}#toast{left:50%;bottom:94px;font-size:12px;max-width:90vw;width:max-content}.admin-table td{font-size:11px}.admin-tabs{gap:18px}.rule-row{gap:10px}.rule-row p{font-size:10px}.rule-row label{font-size:12px}.form-error{font-size:11px}.demo-bar>span>span:last-child{font-size:9px}}
@media(max-width:380px){.main{padding-left:15px;padding-right:15px}.topbar{padding:0 15px}.mobile-brand{font-size:13px}.identity .avatar{display:none}.hero-copy{padding:23px 20px}.hero h1{font-size:28px}.hero-visual{opacity:.6}.stat{padding:10px 8px}.stat-label{font-size:8px}.book-stage{height:183px}.book-cover{height:148px;width:106px}.books-grid{gap:21px 12px}.form-grid.keep-cols{grid-template-columns:1fr}.profile-numbers{gap:12px}.ranking-podium{gap:7px}.podium{padding-left:7px;padding-right:7px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}.book-card:hover .book-cover{transform:none}}

/* PRD v0.2: longer wordmark, independent feature controls, and guided import. */
.brand{gap:8px;padding-left:6px;padding-right:3px}.brand>div:last-child{min-width:0}.brand-mark{flex-shrink:0}.brand strong{display:block;font-size:16px;letter-spacing:.25px;white-space:nowrap}.brand small{font-size:8px;letter-spacing:1.1px;white-space:nowrap}.mobile-brand{white-space:nowrap;flex-shrink:0}.feature-settings{margin-bottom:22px}
dialog.wide-dialog{width:min(980px,calc(100vw - 32px));max-height:90vh;max-height:90dvh;scroll-padding-top:82px;scroll-padding-bottom:24px}.wide-dialog .dialog-body{min-width:0}.import-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:0 0 24px;padding:0;list-style:none}.import-step{display:flex;align-items:center;gap:9px;min-width:0;padding:12px 14px;border:1px solid var(--line);border-radius:9px;background:#f4f4ed;color:var(--muted);font-size:12px;line-height:1.5}.import-step b,.import-step .step-number{display:inline-grid;place-items:center;flex:0 0 25px;width:25px;height:25px;border-radius:50%;background:#e6e9df;font-size:11px;font-weight:600;color:#6b765f}.import-step.active{border-color:#b8cbb0;background:var(--green-light);color:var(--green);font-weight:600}.import-step.active b,.import-step.active .step-number{background:var(--green);color:var(--white)}.import-step.done{border-color:#d6dfcd;background:#f0f4e9;color:#5b7350}.import-step.done b,.import-step.done .step-number{background:#dce7d3;color:var(--green)}.import-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px 16px;flex-wrap:wrap;margin:0 0 16px}.import-toolbar .inline-actions{gap:8px}.import-toolbar input[type=file]{max-width:100%;font-size:12px;color:var(--muted)}.import-toolbar .hint{flex:1 1 230px}.import-source{min-width:0}.import-source textarea,textarea.import-source{min-height:230px;line-height:1.85;tab-size:4;white-space:pre;overflow-wrap:normal;overflow-x:auto;font-family:var(--sans);font-size:12px}.import-source .notice{margin:14px 0}.import-source .field small{font-size:11px}.import-preview{display:flex;flex-direction:column;gap:16px;min-width:0;margin-top:18px}.import-preview .import-row{padding:19px;border:1px solid var(--line);border-radius:12px;background:#fffefa;min-width:0}.import-row-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-bottom:18px}.import-cover{display:block;flex:0 0 60px;width:60px;height:84px;object-fit:cover;border-radius:2px 4px 4px 2px;box-shadow:2px 4px 8px #243e3320;background:#ebe8dc}.import-cover img{display:block;width:100%;height:100%;object-fit:cover;border-radius:inherit}.import-summary{display:flex;align-items:flex-start;gap:14px;flex:1 1 260px;min-width:0}.import-summary>div{min-width:0}.import-summary h3,.import-summary h4{font-size:15px;line-height:1.65;overflow-wrap:anywhere}.import-summary p{font-size:12px;color:var(--muted);line-height:1.8;margin-top:4px;overflow-wrap:anywhere}.import-summary .status{margin-top:7px}.import-fields,.import-fields.form-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.import-fields>.full,.import-fields>.field.full{grid-column:1/-1}.import-fields .field textarea{min-height:100px}.import-fields .field input,.import-fields .field select,.import-fields .field textarea{font-size:12px}.import-confirm{display:flex;align-items:flex-start;gap:9px;margin-top:16px;padding-top:14px;border-top:1px solid var(--line);font-size:12px;color:#52694a;line-height:1.8;white-space:normal}.import-confirm input[type=checkbox]{flex-shrink:0;width:16px;height:16px;margin:3px 0 0;accent-color:var(--green)}.import-confirm .check-inline{align-items:flex-start;white-space:normal;line-height:1.8}.import-warning{display:flex;align-items:flex-start;gap:8px;margin:13px 0 0;padding:10px 12px;border-radius:7px;border:1px solid #eadcc0;background:#f9f1e2;color:#8a6638;font-size:12px;line-height:1.8;overflow-wrap:anywhere}.import-warning .icon{flex-shrink:0;width:16px;height:16px;margin-top:3px}.import-count{display:inline-flex;align-items:center;gap:6px;font-size:12px;line-height:1.7;color:var(--muted);flex-wrap:wrap}.import-count strong{font-size:14px;font-weight:600;color:var(--green)}.import-footer{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:14px;margin-top:24px;padding-top:18px;border-top:1px solid var(--line);background:var(--white)}.import-footer .inline-actions{justify-content:flex-end;margin-left:auto}.import-footer>.btn:first-child:last-child{margin-left:auto}.import-results{min-width:0}.import-results>.notice{margin-bottom:18px}.import-results .table-wrap{margin-top:18px}.import-results h3{font-family:var(--serif);font-size:23px;line-height:1.6}.import-results>p{margin:8px 0;color:var(--muted);font-size:13px}.import-results .import-count{padding:10px 14px;border:1px solid #dce5d3;border-radius:8px;background:#f0f4e9}
@media(max-width:1200px){.brand strong{font-size:15px;letter-spacing:.1px}.brand small{font-size:7.5px;letter-spacing:.7px}}
@media(max-width:1020px){.brand{gap:6px;padding-left:2px;padding-right:0}.brand strong{font-size:13px;letter-spacing:0}.brand small{font-size:7px;letter-spacing:.35px}.brand-mark{width:31px;height:33px}}
@media(max-width:760px){.mobile-brand{font-size:14px;letter-spacing:0;gap:6px}.mobile-brand>.icon{width:21px;height:21px}.topbar{gap:10px}.top-actions{gap:7px;min-width:0}.identity{min-width:0}.identity select{max-width:126px}.feature-settings{margin-bottom:18px}dialog.wide-dialog{width:calc(100vw - 20px);max-height:94vh;max-height:94dvh;scroll-padding-top:70px}.wide-dialog .dialog-body{padding:18px}.import-steps{gap:6px;margin-bottom:19px}.import-step{padding:10px 7px;font-size:10px;gap:5px;align-items:center}.import-step b,.import-step .step-number{flex-basis:20px;width:20px;height:20px;font-size:10px}.import-toolbar{gap:10px}.import-toolbar .inline-actions{width:100%;flex-wrap:wrap}.import-toolbar .btn{min-height:40px;font-size:11px;padding:8px 11px}.import-source textarea,textarea.import-source{min-height:220px;font-size:12px}.import-preview{gap:13px}.import-preview .import-row{padding:14px}.import-row-head{margin-bottom:16px;gap:10px}.import-summary{flex-basis:100%;gap:12px}.import-summary h3,.import-summary h4{font-size:14px}.import-summary p{font-size:11px}.import-fields,.import-fields.form-grid,.import-fields.form-grid:not(.keep-cols){grid-template-columns:1fr;gap:13px}.import-fields .field input,.import-fields .field select,.import-fields .field textarea{min-height:44px;font-size:14px}.import-fields .field textarea{min-height:118px}.import-confirm{font-size:11px;gap:8px}.import-warning{font-size:11px;padding:9px 10px}.import-footer{margin-top:20px;padding-top:16px;gap:12px}.import-footer .import-count{width:100%}.import-footer .inline-actions{width:100%;margin-left:0;gap:8px}.import-footer .inline-actions .btn{flex:1;min-height:44px;padding:9px 10px;font-size:12px}.import-footer>.btn{flex:1;min-height:44px}.import-results h3{font-size:21px}.import-results .table-wrap{margin-top:15px}}
@media(max-width:380px){.mobile-brand{font-size:13px;gap:5px}.mobile-brand>.icon{width:19px;height:19px}.identity select{max-width:119px}.import-step{font-size:9px;padding:9px 5px;gap:4px}.import-step b,.import-step .step-number{flex-basis:18px;width:18px;height:18px}.wide-dialog .dialog-body{padding:15px}}
/* Import cards keep their summary in a readable vertical stack. */
[hidden]{display:none!important}.import-summary{display:block;flex:1;min-width:0}.import-row-head{flex-wrap:nowrap;justify-content:flex-start}.import-summary .eyebrow{display:block;margin-bottom:5px;letter-spacing:1px}.import-warning:empty{display:none}.import-row details{margin-top:14px}.import-row summary{cursor:pointer;color:var(--green);font-size:12px;padding:9px 0}.import-row details[open] summary{margin-bottom:9px}.import-confirm{justify-content:space-between;align-items:center;flex-wrap:wrap}.import-confirm .field{min-width:170px}.import-file{position:absolute;width:1px;height:1px;opacity:0;overflow:hidden}.import-source>.dialog-intro{margin-bottom:18px}.import-footer .dialog-actions{width:100%;margin-top:0;justify-content:flex-end}.import-footer .form-error:empty{display:none}.import-results{text-align:center}.import-results .notice{text-align:left}.import-results .dialog-summary{text-align:left}.import-common{margin-bottom:20px}
@media(max-width:760px){.import-summary{flex-basis:0}.import-confirm .field{width:100%}.import-footer .dialog-actions .btn{min-width:120px}.import-steps .import-step{flex-direction:column;text-align:center;gap:6px}.page-header>.inline-actions{flex-wrap:wrap;justify-content:flex-end}}

/* Connected application: preserve the approved paper-and-forest visual language. */
:root{--muted:#667160}body{font-size:15px}.library-sidebar{position:fixed;inset:0 auto 0 0;width:230px;background:#f0f2eb;border-right:1px solid var(--line);padding:30px 18px;display:flex;flex-direction:column;z-index:20}.library-sidebar .brand{padding:0 2px 28px}.library-sidebar .brand strong{font-size:16px}.library-sidebar .brand small{font-size:10px;letter-spacing:.6px}.library-sidebar .nav{gap:6px}.library-sidebar footer{margin-top:auto;border-top:1px solid #dbe1d4;padding:24px 12px 0}.library-sidebar footer p{font:20px/1.8 var(--serif)}.library-shell{margin-left:230px}.library-topbar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:22px 36px;border-bottom:1px solid var(--line);background:var(--paper);min-height:85px}.library-topbar .mobile-title{display:none}.library-account{display:flex;align-items:center;gap:12px}.library-account strong{font-size:14px}.library-account small{display:block;color:var(--muted)}.library-avatar{width:38px;height:38px;display:grid;place-items:center;border-radius:50%;background:#e4eadc;color:var(--green)}.library-main{max-width:1500px;margin:auto;padding:30px 36px 60px;min-height:70vh}.library-main h1{font-family:var(--serif);font-weight:600;font-size:32px}.library-main .page-header{margin:0 0 26px;display:flex;align-items:center;justify-content:space-between;gap:16px}.library-main .page-header p{margin-top:8px;color:var(--muted);font-size:14px}.library-hero{position:relative;overflow:hidden;background:#e8eddf;border:1px solid #dce4d3;border-radius:18px;min-height:260px;padding:38px;margin-bottom:26px}.library-hero>div{position:relative;max-width:57%;z-index:1}.library-hero h1{font-size:40px;line-height:1.5;margin:12px 0}.library-hero p{max-width:450px;color:#5c6c52;line-height:1.9}.library-hero img{position:absolute;width:44%;height:100%;right:0;bottom:0;object-fit:contain}.library-eyebrow{letter-spacing:2px;font-size:11px;font-weight:600;color:#687c59}.library-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:22px 0 28px}.library-stat{background:var(--white);border:1px solid var(--line);border-radius:12px;padding:18px 22px}.library-stat strong{display:block;font:30px/1.3 var(--serif);color:var(--green)}.library-stat span{color:var(--muted);font-size:13px}.library-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px}.library-book{display:block;width:100%;text-align:left;padding:0;border-radius:12px;min-width:0}.library-book:hover .library-cover{transform:translateY(-4px);box-shadow:4px 10px 18px #263d3324}.library-book-stage{height:230px;background:#eeeee5;border-radius:12px;display:grid;place-items:center;padding:22px;position:relative}.library-book:nth-child(4n+2) .library-book-stage{background:#e9ede4}.library-book:nth-child(4n+3) .library-book-stage{background:#f0e9e0}.library-book:nth-child(4n) .library-book-stage{background:#e8eceb}.library-cover{display:flex;flex-direction:column;justify-content:space-between;width:128px;height:182px;padding:18px 15px;border-radius:2px 5px 5px 2px;background:#e2d6b9;border-left:5px solid #cbbf9e;box-shadow:4px 7px 12px #263d3320;color:#354835;transition:transform .18s,box-shadow .18s;object-fit:cover}.library-cover strong{font:22px/1.5 var(--serif);overflow:hidden;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical}.library-cover small{font-size:10px;letter-spacing:2px}.library-cover .cover-label{font-size:9px;letter-spacing:0;opacity:.8}.library-book h3{font:18px/1.5 var(--serif);margin:12px 0 3px;overflow-wrap:anywhere}.library-book p{font-size:12px;color:var(--muted);margin-bottom:7px}.library-book-meta{display:flex;align-items:center;justify-content:space-between;gap:6px;font-size:12px;color:var(--muted)}.library-toolbar{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:18px 0}.library-toolbar input[type=search]{flex:1;min-width:180px;background:var(--white);border:1px solid #cbd4c3;border-radius:9px;min-height:46px;padding:9px 14px}.library-toolbar select{min-height:46px;border:1px solid #cbd4c3;border-radius:9px;padding:9px 12px;background:var(--white)}.library-inline{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.library-section{margin-top:28px}.library-section h2{font:24px/1.5 var(--serif);margin-bottom:16px}.library-list{display:flex;flex-direction:column;gap:14px}.library-card{border:1px solid var(--line);border-radius:12px;padding:22px;background:var(--white)}.library-card-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:10px}.library-card h3{font-size:18px}.library-card p{color:var(--muted)}.library-card .library-inline{margin-top:14px}.library-card .review-text{white-space:pre-wrap;overflow-wrap:anywhere;color:var(--ink);margin:14px 0;max-height:260px;overflow:auto}.library-table{width:100%;border-collapse:collapse;font-size:13px}.library-table th{text-align:left;font-weight:500;background:#f1f3eb;color:#67725f;white-space:nowrap}.library-table th,.library-table td{padding:14px 16px;border-bottom:1px solid var(--line)}.library-table tbody tr:last-child td{border-bottom:0}.library-table td strong{font-weight:600}.library-table small{display:block;color:var(--muted)}.library-table .btn{padding:8px 10px;font-size:12px;min-height:44px}.table-wrap{max-width:100%;overflow:auto;background:var(--white);border:1px solid var(--line);border-radius:12px}.library-empty{border:1px dashed #ccd6c3;border-radius:14px;padding:48px 25px;text-align:center;background:#f5f6ef;color:var(--muted)}.library-empty .icon{width:32px;height:32px;color:#7f9470}.library-empty h3{margin:12px 0 7px;color:var(--ink);font:23px/1.5 var(--serif)}.library-empty p{max-width:520px;margin:auto}.library-note{border:1px solid #d9e2ce;border-radius:10px;padding:14px 17px;background:#eef3e7;color:#526947;line-height:1.8;font-size:13px;margin:16px 0}.library-note.warning{background:#fbf1df;border-color:#e4c99c;color:#795b30}.library-note.error{background:#f9e9e6;border-color:#e8c4bd;color:#8d3b35}.library-tabs{display:flex;gap:8px;overflow:auto;padding-bottom:14px;margin-bottom:22px}.library-tabs button{white-space:nowrap;min-height:44px;padding:10px 15px;border:1px solid var(--line);border-radius:8px;background:var(--white);color:var(--muted)}.library-tabs button.active{background:var(--green);color:var(--white);border-color:var(--green)}.library-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.library-fields .field.full{grid-column:1/-1}.field label{display:block;color:var(--ink);font-size:14px;font-weight:500;margin-bottom:7px}.field input,.field select,.field textarea{width:100%;min-width:0;min-height:46px;border:1px solid #bfcab6;border-radius:8px;padding:10px 12px;background:var(--white);color:var(--ink);font-size:15px}.field textarea{min-height:110px;resize:vertical}.field small{display:block;color:var(--muted);margin-top:6px}.field input[type=checkbox]{width:20px;height:20px;min-height:20px;accent-color:var(--green)}.library-switches{display:grid;gap:16px}.library-switch{display:flex;align-items:center;justify-content:space-between;gap:22px;border:1px solid var(--line);padding:20px;border-radius:12px;background:var(--white)}.library-switch span{display:block;color:var(--muted);font-size:13px;margin-top:5px}.library-switch input{height:24px;width:24px;accent-color:var(--green);flex-shrink:0}.form-error{white-space:pre-wrap;outline-offset:3px}.form-error:empty{display:none}.library-login{max-width:580px;margin:8vh auto;padding:30px}.library-login .brand{justify-content:center;padding:20px}.library-login .library-card{text-align:center;padding:38px 28px}.library-login h1{font:32px/1.5 var(--serif);margin-bottom:15px}.library-login p{margin-bottom:20px}.library-login .btn{width:100%;justify-content:center}.library-dev{margin-top:28px;border-top:1px solid var(--line);padding-top:20px}.library-dev small{display:block;margin-bottom:12px;color:var(--muted)}.library-dev .btn{width:auto;font-size:12px}.library-bottomnav{display:none}.library-placeholder{padding:80px 24px;text-align:center;color:var(--muted)}.library-cover-detail{display:flex;gap:24px;align-items:flex-start}.library-cover-detail .library-cover{flex-shrink:0}.library-detail-info{flex:1;min-width:0}.library-detail-info h2{font:26px/1.5 var(--serif)}.library-detail-info p{color:var(--muted);font-size:13px;margin-top:8px}.library-intro{line-height:1.95;white-space:pre-wrap;overflow-wrap:anywhere;margin:22px 0}.library-rule{padding:11px 0;display:flex;justify-content:space-between;gap:18px;border-bottom:1px solid var(--line);font-size:13px}.library-rule:last-child{border-bottom:0}.library-rule span:first-child{color:var(--muted)}.library-prizes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:22px 0}.library-prize{border:1px solid #d5ddcc;border-radius:12px;padding:20px 14px;background:#f2f4eb;text-align:center}.library-prize .icon{color:var(--gold);width:28px;height:28px;margin-bottom:10px}.library-prize h3{font-size:15px}.library-prize small{display:block;color:var(--muted);margin-top:5px}.library-balance{font:48px/1.5 var(--serif);color:var(--green)}.library-rankingbar{height:5px;background:var(--green-light);border-radius:3px;overflow:hidden;width:100%;margin-top:8px}.library-rankingbar>span{display:block;height:100%;background:#718964}.library-import-row{margin:16px 0;padding:18px;border:1px solid var(--line);border-radius:12px;background:var(--white)}.library-import-row .library-fields{gap:12px}.library-import-row summary{cursor:pointer;padding:8px 0;color:var(--green);font-weight:600}.library-import-row .btn{font-size:12px;padding:9px 12px}.library-import-row .field label{font-size:12px}.library-import-row .field input,.library-import-row .field select{font-size:13px}.library-import-row .check-line{display:flex;gap:10px;align-items:center;padding:12px 0;font-size:13px}.library-import-row .check-line input{height:20px;width:20px;accent-color:var(--green)}.library-prize-editor{display:grid;grid-template-columns:1.4fr 1fr .7fr .7fr auto;gap:9px;align-items:end;border-bottom:1px solid var(--line);padding:12px 0}.library-prize-editor .field label{font-size:12px}.library-prize-editor .field input,.library-prize-editor .field select{font-size:13px}.library-prize-editor .btn{min-width:44px;padding:8px}.library-form-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:24px;flex-wrap:wrap}.library-form-actions .btn{min-height:44px}dialog{width:min(720px,calc(100vw - 28px));max-height:90dvh;border:1px solid var(--line);border-radius:16px;padding:0;color:var(--ink);background:var(--white);box-shadow:0 20px 90px #172e3360}dialog::backdrop{background:#18382c60;backdrop-filter:blur(3px)}dialog.wide-dialog{width:min(1050px,calc(100vw - 28px))}.dialog-head{position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 24px;border-bottom:1px solid var(--line);background:var(--white)}.dialog-head h2{font:23px/1.4 var(--serif)}.dialog-head .btn{padding:8px 12px}.dialog-body{padding:24px}.library-footer{font-size:12px;text-align:center;color:var(--muted);padding:32px 0 0}button,a{touch-action:manipulation}.btn{min-height:44px}#toast{left:calc(50% + 115px);font-size:14px}.library-account .btn{font-size:12px;padding:8px 12px}.library-muted{color:var(--muted)}.library-small{font-size:12px}.library-hidden{display:none!important}.library-loading{opacity:.6;pointer-events:none}.library-draw-result{text-align:center;padding:20px 0}.library-draw-result h2{font:32px/1.5 var(--serif);margin:18px 0}.library-draw-result .icon{height:48px;width:48px;color:var(--gold)}.library-pending{position:relative;margin:0 0 24px}.library-pending p{margin-bottom:10px}.library-mark{width:40px;height:40px;border-radius:11px;background:var(--green);color:#fff9e4;display:grid;place-items:center}.library-mark svg{width:26px;height:26px}.status{font-size:12px;padding:4px 8px}.status.good{background:#eaf0e4;color:#3d613b}.status.warn{background:#fbefd9;color:#825f28}.status.bad{background:#f8e8e4;color:#92463d}.library-inline-form{display:flex;align-items:end;gap:10px;flex-wrap:wrap}.library-inline-form .field{flex:1;min-width:170px}.library-inline-form .btn{flex-shrink:0}.library-events-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.library-split{display:grid;grid-template-columns:1.5fr 1fr;gap:22px}.library-card>h2{font-family:var(--serif);margin-bottom:14px}.library-check{display:flex;align-items:center;gap:8px;min-height:44px;font-size:13px}.library-check input{width:18px;height:18px;accent-color:var(--green)}.library-card .form-error{margin:12px 0}.library-progress{height:3px;background:var(--green-light);overflow:hidden}.library-progress:after{content:'';display:block;width:30%;height:100%;background:var(--green);animation:loading 1.2s infinite alternate}@keyframes loading{to{transform:translateX(230%)}}.library-live-state{margin-top:10px;font-size:12px;color:var(--muted)}
@media(max-width:1200px){.library-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.library-sidebar{width:210px}.library-shell{margin-left:210px}.library-main{padding:26px}.library-topbar{padding:19px 26px}.library-hero{padding:30px}.library-hero h1{font-size:34px}#toast{left:calc(50% + 105px)}}
@media(max-width:900px){.library-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.library-split{grid-template-columns:1fr}.library-events-grid{grid-template-columns:1fr}.library-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.library-hero>div{max-width:65%}.library-hero img{opacity:.65;width:45%}.library-prize-editor{grid-template-columns:1fr 1fr}.library-prize-editor .btn{grid-column:2;justify-self:end}}
@media(max-width:760px){body{font-size:15px}.library-sidebar{display:none}.library-shell{margin-left:0}.library-topbar{position:sticky;top:0;padding:14px 18px;min-height:70px;z-index:10;background:#f2f4ec}.library-topbar .mobile-title{display:flex;align-items:center;gap:8px;font-size:15px;font-weight:600}.library-topbar .breadcrumb{display:none}.library-account strong{font-size:12px;max-width:74px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.library-account small{display:none}.library-account .library-avatar{display:none}.library-account{gap:8px}.library-account .btn{font-size:11px;padding:6px 8px}.library-main{padding:22px 18px 110px}.library-main h1{font-size:28px}.library-main .page-header p{font-size:13px;max-width:none}.library-main .page-header{flex-wrap:wrap;align-items:flex-start;gap:14px}.library-main .page-header>.library-inline{width:100%}.library-hero{padding:25px 22px;min-height:270px}.library-hero>div{max-width:80%}.library-hero h1{font-size:34px}.library-hero img{width:50%;height:62%;right:-22px;bottom:-14px;opacity:.7}.library-hero p{font-size:13px}.library-hero .library-eyebrow{font-size:9px}.library-stats{gap:10px;margin:18px 0 26px}.library-stat{padding:15px}.library-stat strong{font-size:28px}.library-stat span{font-size:12px}.library-grid{gap:22px 14px}.library-book-stage{height:210px;padding:18px 10px}.library-cover{width:112px;height:165px;padding:16px 12px}.library-cover strong{font-size:20px}.library-book h3{font-size:16px}.library-book-meta{font-size:11px;flex-wrap:wrap}.library-card{padding:18px}.library-card-head{align-items:flex-start;flex-wrap:wrap}.library-card h3{font-size:16px}.library-fields{grid-template-columns:1fr}.library-fields .field.full{grid-column:auto}.field label{font-size:14px}.field input,.field select,.field textarea{font-size:16px}.library-prizes{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.library-table th,.library-table td{padding:12px;font-size:12px}.library-bottomnav{display:flex;justify-content:space-around;gap:2px;position:fixed;inset:auto 0 0;background:#fffef9f7;border-top:1px solid #dfe5d6;z-index:15;padding:8px 4px calc(8px + env(safe-area-inset-bottom));backdrop-filter:blur(10px)}.library-bottomnav button{min-width:54px;min-height:48px;display:flex;flex-direction:column;align-items:center;gap:5px;font-size:11px;color:#64735c;padding:4px}.library-bottomnav button.active{color:var(--green);font-weight:700}.library-bottomnav .icon{width:22px;height:22px}.library-tabs{gap:6px}.library-tabs button{font-size:13px;padding:9px 12px}.dialog-head{padding:16px 18px}.dialog-head h2{font-size:21px}.dialog-body{padding:19px}.library-cover-detail{gap:18px}.library-cover-detail .library-cover{width:95px;height:143px}.library-detail-info h2{font-size:23px}.library-rule{font-size:12px}.library-prize-editor{gap:12px}.library-prize-editor .field input,.library-prize-editor .field select{font-size:15px}.library-form-actions .btn{flex:1;min-width:120px}.library-login{margin:2vh auto;padding:22px}.library-login .library-card{padding:28px 22px}.library-login h1{font-size:29px}.library-import-row{padding:14px}.library-import-row .field input,.library-import-row .field select{font-size:16px}.library-stat span{font-size:12px}.library-section h2{font-size:23px}#toast{left:50%;bottom:100px;font-size:13px}.library-toolbar input[type=search]{font-size:16px}.library-toolbar select{font-size:15px}.library-toolbar .library-check{width:100%}.library-import-row .check-line{align-items:flex-start}.library-inline-form{align-items:stretch}.library-inline-form .btn{width:100%}}
@media(max-width:380px){.library-main{padding-left:14px;padding-right:14px}.library-topbar{padding-left:14px;padding-right:14px}.library-topbar .mobile-title{font-size:13px}.library-book-stage{height:185px}.library-cover{width:100px;height:147px}.library-hero h1{font-size:30px}.library-book-meta .status{font-size:10px}.library-account strong{max-width:52px}}
@media(prefers-reduced-motion:reduce){.library-progress:after{animation:none}.library-book:hover .library-cover{transform:none}}

.library-tabs button[aria-pressed="true"]{background:var(--green);color:var(--white);border-color:var(--green)}.library-login form{text-align:left}.library-import-row>.btn{margin-right:8px;margin-top:10px}.library-initial-loader{padding:64px 24px;text-align:center}.library-table pre{white-space:pre-wrap;max-width:600px;overflow-wrap:anywhere}
