body[data-interface=client]{background:#f3f7f6;color:#173d42}
.student-header{padding-top:18px;padding-bottom:18px;display:grid;grid-template-columns:1fr auto;gap:14px;align-items:center;min-height:112px}
.student-header .brand{display:block;width:max-content;max-width:100%}.student-header .student-logo{width:174px;height:58px;object-fit:contain}
.student-settings-button{width:48px;height:48px;border:1px solid #d2e1df;border-radius:16px;background:white;font-size:26px;cursor:pointer;color:#225e60}
.student-context{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:30px}.student-context h1{margin:0;font-size:19px;line-height:1.6}
#network{display:inline-flex;align-items:center;justify-content:center;flex:0 0 126px;width:126px;min-width:126px;max-width:126px;min-height:28px;height:28px;font-size:11px;padding:0 7px;background:#e1efea;color:#27634f;border:1px solid #c9e1d7;white-space:nowrap}
#network::before{content:'●';font-size:8px;margin-left:5px}#network[data-ready=false]{background:#eef1f1;color:#5a6e6e}
body[data-interface=client] .book-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(172px,1fr));gap:18px;padding:0 0 30px}
body[data-interface=client] .book-card{margin:0;border-radius:20px;background:#fff;border:1px solid #e0e9e6;overflow:hidden;transform:none!important;transition:none!important}
body[data-interface=client] .book-meta{padding:12px 12px 15px;min-height:132px;display:flex;flex-direction:column;align-items:center;gap:10px}
body[data-interface=client] .book-meta h3{font-size:16px;line-height:1.65;height:4.95em;min-height:4.95em;max-height:4.95em;margin:0;text-align:center;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
body[data-interface=client] .teacher-available{display:flex;align-items:center;justify-content:center;height:28px;min-height:28px;margin:0;font-size:11px;line-height:1.4;background:#eaf3ef;padding:3px 8px;border-radius:9px}
#storage-dialog{width:min(720px,calc(100vw - 24px));max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);padding:0;border-radius:22px;overflow:auto;border:1px solid #d6e3df}
.settings-heading{position:sticky;top:0;background:#fff;padding:20px;z-index:2;border-bottom:1px solid #e2ebe7;display:flex;align-items:center;justify-content:space-between}.settings-heading h2{margin:0;font-size:23px}.settings-content{padding:0 20px}.settings-section{border-bottom:1px solid #e0e9e5;padding:0}.settings-section>summary{cursor:pointer;font-size:18px;font-weight:bold;min-height:58px;padding:15px 0;display:list-item}.settings-section-body{padding:4px 0 20px;display:grid;gap:12px}.settings-section p{margin:0;line-height:1.9}.settings-section .field{margin:0}.settings-section select,.settings-section input{min-height:44px;max-width:100%}.settings-section .button{min-height:44px}.settings-book{display:flex;gap:12px;align-items:center;justify-content:space-between;padding:12px 0;border-top:1px solid #edf2ef}.settings-book div{min-width:0}.settings-book strong{display:block;font-size:14px}.settings-book small{display:block;font-size:12px;margin-top:4px;color:#647773}.settings-book button{flex:none;font-size:12px;padding:8px}.settings-footer{padding:18px 20px;font-size:12px;color:#647773;text-align:center}
#onboarding-panel{margin-top:12px;margin-bottom:20px;padding:24px;border-radius:20px}#onboarding-panel .onboarding-mark,#onboarding-panel .student-logo,#onboarding-panel .onboarding-kicker{display:none}#onboarding-title{font-size:24px}#onboarding-panel .dialog-actions{margin-top:18px}
@media(max-width:520px){.student-header{padding-top:12px;padding-bottom:12px;min-height:106px}.student-header .student-logo{width:152px;height:52px}.student-context h1{font-size:17px}body[data-interface=client] .book-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}body[data-interface=client] .book-meta{padding:10px 8px 12px;min-height:126px}body[data-interface=client] .book-meta h3{font-size:14px}body[data-interface=client] .teacher-available{font-size:10px;padding:3px 5px}#storage-dialog{max-height:calc(100vh - 18px);max-height:calc(100dvh - 18px)}.settings-content{padding:0 16px}.settings-heading{padding:16px}}
