/* Zhitu Future identity. Presentation only; document formatting stays independent. */
:root{--brand-blue:#1676af;--brand-blue-dark:#105d8b;--brand-green:#93c51f;--brand-green-ink:#496b12;--brand-green-pale:#f2f8e5;--blue:var(--brand-blue);--orange:var(--brand-green);--warm:var(--brand-green-pale);--ink:#26353d;--pale:#eff7fb}
body{background:#f7fafb}
.brand img{width:108px;height:76px;object-fit:contain}
.login-brand>img{width:245px;height:auto;max-width:100%;margin-bottom:32px}
.login-features span{border-top-color:var(--brand-green)}
.login-brand h1{color:#244450}
.login-card{border-top:3px solid var(--brand-green);box-shadow:0 14px 48px #1676af08}
.primary-button{background:var(--brand-blue)}
.primary-button:hover{background:var(--brand-blue-dark)}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline-color:var(--brand-blue)}
.internal-tag{color:var(--brand-green-ink);background:var(--brand-green-pale);border-color:#dcebb9}
.badge{background:#edf6fb;color:var(--brand-blue);border-color:#cce3ef}
.admin-nav button.active{border-bottom-color:var(--brand-green);color:var(--brand-blue)}
.account-tools .portal-switch{background:#f1f7fa;border-color:#d3e4ed}
.account-tools .portal-switch .active{background:var(--brand-blue);color:white;box-shadow:0 1px 3px #1676af20}
.account-tools .portal-switch a.portal-option:hover{background:#e3f1f8;color:var(--brand-blue-dark)}
.account-tools .portal-switch a:focus-visible{outline-color:var(--brand-green)}
.major-item.active,.all-majors.active,.chip.active{background:#eff7e6;color:var(--brand-green-ink)}
.chip.active{border-color:#cdddab}
.major-item.active code{color:var(--brand-green-ink)}
.section-heading span{background:#edf6fb;color:var(--brand-blue)}
mark{background:#eaf5ce;color:#3e5c11}
.word-ribbon button.is-active,.word-ribbon button[aria-pressed=true]{background:#ecf5df;border-color:#c8dda0;color:#446816}
@media(max-width:760px){.brand img{width:80px;height:60px}}
@media(max-width:700px){.login-brand>img{width:170px;margin-bottom:22px}.login-card{margin-top:24px}}

/* Three independent libraries share the same reading and administration template. */
.header{height:auto;min-height:86px}
.header .header-inner{min-height:86px;gap:20px;flex-wrap:wrap;padding-top:4px;padding-bottom:4px}
.library-switch{display:flex;align-items:center;gap:6px;padding-left:20px;border-left:1px solid #dce3e9}
.library-option{position:relative;display:block;white-space:nowrap;padding:12px 16px;border-radius:6px;color:#536c7b;font-size:16px;font-weight:500}
.library-option:hover{color:var(--brand-blue);background:#f2f8fb}
.library-option.active{background:#eff7e6;color:#385815;font-weight:650}
.library-option.active:after{content:"";position:absolute;bottom:0;left:16px;right:16px;height:3px;background:var(--brand-green);border-radius:3px}
.library-empty{text-align:center;padding:64px 28px;min-height:340px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px}
.library-empty h2{font-size:24px}.library-empty p{max-width:600px;line-height:1.8;color:#5e7481;font-size:16px}.library-empty .primary-button{display:inline-block;font-size:16px;padding:11px 24px}.library-empty .field-note{font-size:14px}
@media(max-width:1160px){.header .header-inner{gap:12px}.library-switch{padding-left:12px;gap:2px}.library-option{padding:11px 10px;font-size:15px}.header .account-tools{gap:10px}.header .account-tools .portal-option{padding:7px 9px}}
@media(max-width:1000px){.header{position:relative}.header .header-inner{padding:10px 0}.library-switch{margin-right:auto}.header .account-tools{width:100%;justify-content:flex-end}.sidebar{top:20px}.section-tabs{top:0}.toc{top:70px}}
@media(max-width:700px){.header .header-inner{width:calc(100% - 28px);gap:8px}.library-switch{padding-left:8px;flex:1;justify-content:flex-end}.library-option{font-size:14px;padding:10px 8px}.library-option.active:after{left:8px;right:8px}.library-empty{padding:36px 20px}.library-empty h2{font-size:22px}.library-empty p{font-size:15px}}
@media(max-width:420px){.header .brand img{width:62px;height:52px}.library-switch{padding-left:4px;gap:0}.library-option{padding:10px 6px}}

/* The catalog can grow; scroll its entries without hiding administration buttons. */
.header .header-inner{flex-wrap:nowrap}
.library-switch{flex:1;min-width:0;max-width:100%;gap:10px;justify-content:flex-start}
.library-links{display:flex;align-items:center;gap:4px;min-width:0;overflow-x:auto;padding:4px 2px;scrollbar-width:thin;scrollbar-color:#c4d8dc transparent}
.library-option{flex:0 0 auto;max-width:28rem;white-space:normal;overflow-wrap:anywhere;line-height:1.5}
.library-actions{display:flex;flex-shrink:0;align-items:center;gap:8px}
.library-actions button{font-size:14px;border-radius:5px;padding:9px 12px;white-space:nowrap}
.library-manage{border:1px solid #d5e4e9;background:white;color:var(--brand-blue)}
.library-nav-empty{font-size:14px;color:#607983;padding:12px}
.library-manage-list{display:grid;gap:0;margin:16px 0;max-height:48vh;overflow-y:auto}
.library-manage-footer{margin-top:16px}.library-manage-footer .primary-button{width:100%;padding:12px 20px;font-size:16px}
.library-manage-row{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:16px 0;border-bottom:1px solid #e3ecef}
.library-manage-row>div:first-child{min-width:0}.library-manage-row strong{font-size:16px;overflow-wrap:anywhere}.library-manage-row .badge{margin-left:8px}
.library-manage-row small{display:block;margin-top:5px;font-size:13px;color:#637783}
.library-row-actions{display:flex;flex-shrink:0;align-items:center;gap:12px}.library-row-actions button{font-size:14px}
.library-delete{color:#a73232}.library-delete-notice{font-size:16px;line-height:1.8;margin:8px 0 22px;overflow-wrap:anywhere}
.library-trash summary{font-size:15px;cursor:pointer;color:#526d7b;padding:10px 0}
@media(max-width:1300px){.header{position:relative}.header .header-inner{flex-wrap:wrap;gap:8px}.header .brand{order:0}.header .account-tools{order:1;width:auto;margin-left:auto}.library-switch{order:2;flex-basis:100%;border-left:0;padding-left:0}.sidebar{top:20px}.section-tabs{top:0}.toc{top:70px}}
@media(max-width:700px){.header .header-inner{padding-top:8px;padding-bottom:8px}.library-option{max-width:260px;white-space:nowrap;padding:10px}.library-actions{gap:5px}.library-actions button{padding:9px 8px}.library-switch{gap:5px}.header .account-tools{gap:8px}.header .account-tools>span{font-size:12px}.library-manage-row{gap:10px}.library-row-actions{gap:8px}}
@media(max-width:460px){.header .account-tools{width:100%;justify-content:flex-end}.library-manage-row{align-items:flex-start;flex-wrap:wrap}.library-row-actions{margin-left:auto}}
