:root{font-family:system-ui,-apple-system,"Segoe UI",sans-serif;color:#253447;background:#f4f6fb;line-height:1.5}*{box-sizing:border-box}body{margin:0}a{color:#4338ca;text-underline-offset:3px}button,a,input{touch-action:manipulation}button,input{font:inherit}button{cursor:pointer}button:disabled{cursor:wait;opacity:.65}:focus-visible{outline:3px solid #f59e0b;outline-offset:4px}.top{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:18px 24px;background:white;border-bottom:1px solid #e2e8f0}.brand{text-decoration:none;font-weight:900;color:#4f46e5;font-size:24px}.brand span{font-size:17px}nav{display:flex;gap:16px;flex-wrap:wrap}nav a{font-size:14px;font-weight:700}main{max-width:1040px;margin:auto;padding:28px 24px}.book-heading{display:flex;gap:20px;align-items:center;margin-bottom:24px}.book-cover{width:104px;height:104px;object-fit:cover;border-radius:18px;flex-shrink:0;background:#e2e8f0}.eyebrow{color:#786327;font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.07em;margin:0 0 6px}h1{font-size:clamp(24px,4vw,32px);line-height:1.2;margin:0 0 10px}h2{font-size:21px;line-height:1.3;margin:0}h3{font-size:17px;line-height:1.35;margin:10px 0}p{margin:8px 0}.account-state{font-size:14px;margin-bottom:20px;color:#526174}.account-state a{font-weight:750}.controls{margin-bottom:24px}.filters{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:18px}.filters button{border:1px solid #bfc9dc;background:white;border-radius:22px;padding:10px 16px;font-weight:750;min-height:44px}.filters button[aria-pressed=true]{color:white;background:#4f46e5;border-color:#4f46e5}label{display:block;font-size:14px;font-weight:700}input{display:block;width:100%;max-width:560px;margin-top:7px;padding:13px 15px;border:1px solid #bac6d8;border-radius:12px;background:white}.book-section{padding:24px;background:white;border:1px solid #e2e8f0;border-radius:22px;margin:0 0 24px}.book-summary{display:flex;align-items:center;gap:14px;margin-bottom:18px}.book-summary .book-cover{width:68px;height:68px;border-radius:12px}.book-summary div{min-width:0}.book-summary p{font-size:14px;color:#526174}.book-summary a{font-size:14px;font-weight:700}.material-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.material-card{border:1px solid #dbe3ef;background:#fafbfe;border-radius:16px;padding:18px;display:flex;flex-direction:column;align-items:start;min-width:0}.material-card p{font-size:14px;color:#526174}.tags{display:flex;gap:8px;flex-wrap:wrap;font-size:12px;font-weight:750}.tag{background:#edf0f7;border-radius:7px;padding:4px 8px}.access{font-size:13px;font-weight:750;margin:12px 0;color:#65551e}.access.unlocked{color:#17633c}.action{display:inline-block;min-height:44px;padding:10px 16px;border:0;border-radius:11px;background:#4f46e5;color:white;font-weight:750;text-decoration:none;text-align:center;margin-top:auto}.action.secondary{background:white;color:#4338ca;border:1px solid #c7d2fe}.action.green{background:#167347}.empty{padding:28px;background:white;border:1px solid #e2e8f0;border-radius:16px}.note{font-size:13px;color:#526174;max-width:780px}.error{color:#9d251a;background:#fff0ed;padding:12px;border-radius:10px;font-size:14px}footer{max-width:1040px;margin:0 auto;padding:10px 24px 32px;display:flex;gap:24px}dialog{width:min(500px,calc(100% - 32px));padding:28px;border:0;border-radius:20px;color:#253447}dialog::backdrop{background:rgba(15,23,42,.55)}dialog .close{float:right;border:0;background:transparent;font-size:28px;min-width:44px;min-height:44px;margin:-15px -15px 0 0}#access-actions{display:flex;flex-direction:column;gap:10px;margin-top:20px}#access-actions button{margin:0}@media(max-width:600px){.top{padding:14px 16px;align-items:start}.brand span{display:none}nav{gap:8px 14px;justify-content:end}nav a{font-size:13px}main{padding:22px 16px}.book-heading{gap:14px;align-items:start}.book-heading .book-cover{width:80px;height:80px;border-radius:14px}h1{font-size:24px}.book-heading p{font-size:14px}.book-section{padding:18px 14px}.material-grid{grid-template-columns:1fr}.material-card{padding:16px}.action{width:100%}.book-summary h2{font-size:18px}.book-summary .book-cover{width:60px;height:60px}.filters button{font-size:14px}footer{padding:10px 16px 28px}}
