[hidden] { display: none !important; }
.account-controls { display:flex; gap:8px; align-items:center; }
#accountIdentity { font-size:12px; max-width:170px; overflow-wrap:anywhere; }
.account-controls .btn { font-size:12px; white-space:nowrap; padding:9px 12px; }
.account-nav { margin-top:12px; }
.account-nav .nav-item { gap:12px; }
.account-modal .modal-header { background:linear-gradient(110deg,#1e3c72,#2d5390); color:white; }
.account-modal .btn-close { filter:invert(1); }
.account-modal .modal-body { background:#f7f9fc; padding:26px; }
.account-modal .form-control,.account-modal .form-select { min-height:44px; }
.account-modal .account-language { margin-left:auto; color:white; font-size:12px; }
.suggestion-intro { display:flex; align-items:center; gap:18px; margin-bottom:26px; }
.suggestion-intro h3 { font-size:24px; font-weight:800; margin-bottom:6px; }
.suggestion-intro p { margin:0; color:#60738e; }
.mail-illustration { display:grid; place-items:center; width:72px; height:72px; flex-shrink:0; border-radius:22px; font-size:38px; color:#ff6b35; background:#fff0e8; transform:rotate(-5deg); }
.suggestion-compose { background:#eef3fb; padding:22px; border:1px solid #dce6f3; border-radius:18px; }
.suggestion-compose h3 { margin-bottom:22px; font-weight:800; }
.inbox-filters { display:flex; align-items:end; gap:14px; justify-content:space-between; margin-bottom:20px; }
.inbox-filters>div { min-width:180px; }
.suggestion-card { background:white; border:1px solid #e0e7f0; border-radius:18px; padding:24px; margin-bottom:16px; overflow-wrap:anywhere; }
.suggestion-card-top { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:14px; }
.suggestion-number,.suggestion-date,.suggestion-author { color:#687991; font-size:12px; }
.suggestion-card h3 { font-size:20px; font-weight:800; }
.suggestion-status { display:inline-block; padding:6px 12px; border-radius:30px; font-size:12px; font-weight:700; }
.status-waiting { background:#fff0d6; color:#805209; }
.status-unattended { background:#e9eef5; color:#45556d; }
.status-approved { background:#dcf4e8; color:#17673f; }
.status-rejected { background:#fde5e8; color:#a3253b; }
.suggestion-reason,.suggestion-response p { white-space:pre-wrap; }
.suggestion-review { border-top:1px solid #e6ecf4; padding-top:18px; margin-top:18px; }
.suggestion-response { border-left:3px solid #1594a7; background:#eff8fa; padding:14px; border-radius:0 12px 12px 0; }
.suggestion-response p { margin:8px 0 0; }
.suggestion-empty { text-align:center; padding:40px 20px; color:#617692; background:white; border:1px dashed #cbd8e9; border-radius:18px; }
.suggestion-empty>p { margin:12px 0 0; }
.inbox-pagination { display:flex; align-items:center; justify-content:space-between; margin-top:16px; }
.topbar .welcome,.topbar .student,.topbar .avatar { display:none; }
@media(max-width:900px) { .account-nav { display:flex; gap:6px; flex-wrap:wrap; } .account-nav .nav-item { width:auto; font-size:12px; } .topbar { flex-wrap:wrap; height:auto; min-height:80px; gap:12px; padding-top:14px; padding-bottom:14px; } .topbar-right { flex-wrap:wrap; } }
@media(max-width:575px) { #accountIdentity { max-width:120px; font-size:10px; } .account-modal .modal-body { padding:16px; } .suggestion-card { padding:18px; } .mail-illustration { width:50px; height:50px; font-size:28px; } .suggestion-intro h3 { font-size:21px; } }
.auth-locked > .sidebar,.auth-locked > .app-shell,.auth-locked > #hildWidget{visibility:hidden;pointer-events:none}
.auth-gate{position:fixed;inset:0;z-index:3000;display:grid;place-items:center;padding:24px;background:linear-gradient(135deg,#18396f,#2c5794);color:#203c71}
.auth-gate[hidden]{display:none}.auth-gate-card{width:min(520px,100%);padding:48px 44px;text-align:center;background:#fff;border-radius:24px;box-shadow:0 24px 70px #102c5c66}.auth-gate-icon{display:grid;place-items:center;width:64px;height:64px;margin:0 auto 20px;border-radius:18px;background:#ff8a43;color:#fff;transform:rotate(-5deg)}.auth-gate-icon svg{width:36px;height:36px}.auth-gate .eyebrow{display:block;color:#6180ad;letter-spacing:2px}.auth-gate h1{margin:14px 0 12px;font-size:clamp(26px,5vw,40px);color:#203c71}.auth-gate p{margin:0 auto 26px;max-width:390px;color:#657995;line-height:1.7}.auth-gate-actions{display:flex;justify-content:center;gap:10px;flex-wrap:wrap}.auth-gate-actions .btn{min-width:190px}.auth-gate-card small{display:block;margin-top:24px;color:#8b9bb0;font-size:11px;line-height:1.5}
.auth-locked > .sidebar,.auth-locked > .app-shell,.auth-locked > #hildWidget{visibility:hidden;pointer-events:none}
body.auth-locked .modal-backdrop.show{display:none}
body.auth-locked #loginModal.show{display:flex!important;position:fixed;inset:0;z-index:3100;padding:0!important;background:linear-gradient(135deg,#18396f 0%,#2b5795 52%,#eef4ff 52%,#f8fbff 100%);overflow:auto}
body.auth-locked #loginModal .modal-dialog{display:flex;align-items:stretch;width:100%;max-width:none;height:100%;margin:0}
body.auth-locked #loginModal .modal-content{display:flex;flex-direction:column;width:100%;height:100%;border:0;border-radius:0;background:transparent}
body.auth-locked #loginModal .modal-header{width:100%;padding:30px clamp(24px,8vw,140px);background:transparent;border:0;color:#fff}
body.auth-locked #loginModal .modal-header .modal-title{font-size:clamp(28px,4vw,46px);font-weight:800;letter-spacing:-1px}
body.auth-locked #loginModal .modal-header .account-language{margin-left:auto}
body.auth-locked #loginModal .modal-body{width:min(620px,calc(100% - 40px));margin:0 auto auto;padding:clamp(24px,7vh,78px) clamp(22px,5vw,64px) 58px;background:#fff;border-radius:24px 24px 0 0;box-shadow:0 20px 65px #102c5c42;color:#203c71}
body.auth-locked #loginModal .modal-body #loginIntro{font-size:17px;line-height:1.6;color:#627797;margin-bottom:30px}
body.auth-locked #loginModal .modal-body #loginForm{max-width:520px;margin:0 auto}
body.auth-locked #loginModal .modal-body .form-control{min-height:54px;border-radius:10px;background:#f2f6fc;border-color:#d9e3f1;font-size:16px}
body.auth-locked #loginModal .modal-body .form-label{font-size:14px;font-weight:700;margin-bottom:8px}
body.auth-locked #loginModal .modal-body #loginSubmit{min-height:50px;padding:12px 26px;font-size:15px;border-radius:10px}
body.auth-locked #loginModal .btn-close{filter:invert(1);opacity:.9;width:20px;height:20px}
@media(max-width:650px){body.auth-locked #loginModal .modal-header{padding:22px 22px 18px}body.auth-locked #loginModal .modal-body{width:100%;min-height:calc(100% - 100px);border-radius:22px 22px 0 0;padding:34px 22px 45px}body.auth-locked #loginModal .modal-header .modal-title{font-size:30px}}
body.auth-locked #registerModal.show{display:flex!important;position:fixed;inset:0;z-index:3100;padding:0!important;background:linear-gradient(135deg,#18396f 0%,#2b5795 52%,#eef4ff 52%,#f8fbff 100%);overflow:auto}
body.auth-locked #registerModal .modal-dialog{display:flex;align-items:stretch;width:100%;max-width:none;height:100%;margin:0}body.auth-locked #registerModal .modal-content{display:flex;flex-direction:column;width:100%;height:100%;border:0;border-radius:0;background:transparent}body.auth-locked #registerModal .modal-header{width:100%;padding:30px clamp(24px,8vw,140px);background:transparent;border:0;color:#fff}body.auth-locked #registerModal .modal-body{width:min(620px,calc(100% - 40px));margin:0 auto auto;padding:clamp(24px,7vh,78px) clamp(22px,5vw,64px) 58px;background:#fff;border-radius:24px 24px 0 0;box-shadow:0 20px 65px #102c5c42;color:#203c71}body.auth-locked #registerModal .btn-close{filter:invert(1)}
.auth-gate-brand{display:flex;justify-content:center;align-items:center;gap:16px;margin-bottom:22px}.auth-gate-brand img{object-fit:contain}.auth-gate-brand img:first-child{width:86px;height:58px}.auth-gate-brand img:last-child{width:72px;height:58px;border-radius:50%;background:#fff;overflow:hidden}.auth-gate-icon{display:none}
.login-brand{display:flex;align-items:center;gap:16px;margin-bottom:22px}.login-brand img{object-fit:contain}.login-brand img:first-child{width:82px;height:58px}.login-brand img:last-child{width:76px;height:58px;border-radius:50%;background:#fff;border:1px solid #e0e7f0;padding:3px;overflow:hidden}

.auth-gate-brand img:first-child,.auth-gate-brand img:last-child,.login-brand img:first-child,.login-brand img:last-child{width:72px;height:72px;object-fit:cover;object-position:center;border-radius:50%;background:#fff;border:1px solid #e3eaf5;padding:3px;overflow:hidden;box-shadow:0 7px 18px #102c5c18}
/* Unified sidebar actions: student tools and administrator tools share one rhythm. */
.sidebar-tools,.sidebar-admin-tools{display:flex;flex-direction:column;gap:5px}
.sidebar-tools{margin-top:20px;padding-top:14px;border-top:1px solid #e2e8f2}
.sidebar-admin-tools{margin-top:14px;padding-top:14px;border-top:1px solid #e2e8f2}
.sidebar .sidebar-tool,.sidebar .admin-nav{width:100%;height:46px;margin:0;padding:12px 17px;display:flex;align-items:center;gap:14px;border-radius:11px;background:transparent;color:#657792;font-size:13px;font-weight:600;text-align:left}
.sidebar .sidebar-tool:hover,.sidebar .admin-nav:hover{background:#edf3ff;color:var(--blue);transform:none}
.sidebar .sidebar-tool svg,.sidebar .admin-nav svg{width:21px;height:21px;flex:0 0 21px;stroke:currentColor}
.sidebar .sidebar-tool span,.sidebar .admin-nav span{display:block}
@media(max-width:960px){.sidebar .sidebar-tool span,.sidebar .admin-nav span{display:block}}
@media(max-width:650px){.sidebar-tools,.sidebar-admin-tools{flex-direction:row;flex-wrap:wrap;border-top:0;padding-top:0;margin-top:8px}.sidebar .sidebar-tool,.sidebar .admin-nav{width:auto;height:auto;padding:9px 10px}.sidebar .sidebar-tool span,.sidebar .admin-nav span{display:inline}}


/* Lucy greets visitors locally, then holds her smiling pose. */
.auth-gate{overflow-y:auto}
.auth-gate-card{margin:auto;padding:28px 36px}
.auth-gate-brand{margin-bottom:14px}
.lucy-welcome{display:flex;align-items:center;gap:16px;margin:0 auto 20px;text-align:left}
.lucy-welcome img{width:125px;height:160px;object-fit:contain;flex-shrink:0}
.lucy-welcome-portrait{position:relative;flex-shrink:0;padding-bottom:7px}
.lucy-welcome-portrait img{display:block}
.lucy-welcome-portrait::after{content:"";position:absolute;left:-7px;right:-7px;bottom:0;height:12px;border-radius:4px 4px 7px 7px;background:linear-gradient(to bottom,#f4d5ae 0%,#f4d5ae 35%,#d4a475 36%,#bf8d5e 100%);box-shadow:0 5px 9px #79533226}
.auth-gate .lucy-welcome p{margin:0;padding:16px;background:#edf5ff;border:1px solid #dce8fa;border-radius:18px 18px 18px 4px;color:#203c71;font-size:14px;line-height:1.6}
@media(max-width:480px){.auth-gate{padding:16px}.auth-gate-card{padding:24px 20px}.lucy-welcome{gap:10px}.lucy-welcome img{width:90px;height:116px}.auth-gate .lucy-welcome p{padding:12px;font-size:12px}.auth-gate-actions .btn{width:100%;min-width:0}}

/* A small classic library, with a paper reading card and a colorful bookcase. */
.auth-gate{background:radial-gradient(ellipse at 15% 15%,#e1e9da 0,transparent 48%),radial-gradient(ellipse at 90% 90%,#f3dcc5 0,transparent 45%),#f5f0e7;padding:40px;color:#293f3b}
.auth-gate-card{width:min(940px,100%);display:grid;grid-template-columns:42% 58%;padding:0;overflow:hidden;border:1px solid #ded9cb;border-radius:24px;background:#fffdf8;box-shadow:0 22px 65px #4a514018}
.welcome-library{position:relative;padding:30px 32px 0;background:#e7eddf;border-right:1px solid #d6dfcc;display:flex;flex-direction:column;justify-content:space-between}
.auth-gate .auth-gate-brand{gap:14px;margin-bottom:30px}
.auth-gate .auth-gate-brand img{width:76px;height:76px;box-shadow:0 4px 12px #3d513212}
.welcome-books{height:110px;display:flex;align-items:flex-end;justify-content:center;gap:6px;border-bottom:9px solid #ba8b62;box-shadow:0 5px 0 #6d4d2410;margin-bottom:25px;padding:0 10px}
.welcome-books i{position:relative;display:block;width:27px;height:79px;background:#d37759;border-radius:3px 3px 0 0;border-left:3px solid #ffffff30}
.welcome-books i::after{content:"";position:absolute;inset:10px 4px;border-top:2px solid #fff9;border-bottom:2px solid #fff9}
.welcome-books i:nth-child(2){height:96px;background:#4c7773}
.welcome-books i:nth-child(3){height:86px;background:#d5ac51;width:22px}
.welcome-books i:nth-child(4){height:68px;background:#798ca7;transform:rotate(-9deg);transform-origin:bottom center;margin-left:7px}
.welcome-books i:nth-child(5){height:90px;background:#a46877;margin-left:4px}
.welcome-books i:nth-child(6){height:75px;background:#647d50}
.welcome-books i:nth-child(7){height:84px;background:#d99b67;width:21px}
.auth-gate .lucy-welcome{flex-direction:column-reverse;gap:18px;margin:0;text-align:center}
.auth-gate .lucy-welcome p{background:#fffdf5;border:1px solid #d9dfcb;border-radius:16px 16px 4px 16px;color:#43584b;font-size:13px;padding:15px 18px;max-width:290px}
.lucy-welcome-portrait{padding-bottom:15px;width:calc(100% + 64px);display:flex;justify-content:center}
/* Keep the new, nearly square welcome frames resting behind the desk. */
.auth-gate .lucy-welcome img{width:164px;height:210px;object-fit:contain;object-position:center bottom}
.lucy-welcome-portrait::after{left:0;right:0;height:17px;border-radius:0;background:linear-gradient(#d9b48b 0 5px,#b98961 5px 100%);box-shadow:none}
.welcome-copy{padding:64px 46px;align-self:center;text-align:left}
.auth-gate .welcome-copy .eyebrow{color:#8f633e;font-size:11px;letter-spacing:3px}
.auth-gate .welcome-copy h1{font-family:Georgia,'Times New Roman',serif;font-weight:400;font-size:clamp(36px,4vw,52px);line-height:1.1;letter-spacing:-1.5px;color:#284b44;margin:24px 0}
.auth-gate .welcome-copy>p{color:#68776e;font-size:15px;line-height:1.8;margin:0 0 30px}
.auth-gate .auth-gate-actions{flex-direction:column;gap:12px;align-items:stretch}
.auth-gate .auth-gate-actions .btn{width:100%;padding:14px 20px;border-radius:9px;font-size:14px}
.auth-gate .auth-gate-actions .btn-orange{background:#b95d40;border:1px solid #b95d40;box-shadow:0 5px 12px #b95d4015;color:#fff}
.auth-gate .auth-gate-actions .btn-orange:hover{background:#a24e35}
.auth-gate .auth-gate-actions .btn-soft{background:#edf1e8;border:1px solid #d6dece;color:#35584b}
.auth-gate .auth-gate-actions .btn-soft:hover{background:#e1e8d9}
.auth-gate .welcome-copy>small{color:#7c8071;margin-top:26px;line-height:1.7;font-size:11px}
@media(max-width:680px){.auth-gate{padding:18px}.auth-gate-card{grid-template-columns:1fr;max-width:460px}.welcome-library{padding:22px 24px 0;border-right:0;border-bottom:1px solid #d6dfcc}.auth-gate .auth-gate-brand{margin-bottom:18px}.welcome-books{display:none}.auth-gate .lucy-welcome{flex-direction:row;align-items:center;gap:16px}.lucy-welcome-portrait{width:110px;flex-shrink:0;padding-bottom:10px}.auth-gate .lucy-welcome img{width:110px;height:141px}.lucy-welcome-portrait::after{left:-8px;right:-8px;height:12px;border-radius:3px}.auth-gate .lucy-welcome p{font-size:12px;padding:12px;margin-bottom:16px}.welcome-copy{padding:30px 26px}.auth-gate .welcome-copy h1{font-size:37px;margin:17px 0}.auth-gate .welcome-copy>p{font-size:14px;margin-bottom:22px}}

/* Blue welcome palette and stable space for Lucy's progressive greeting. */
.auth-gate{background:linear-gradient(135deg,#18396f,#2c5794)}
.auth-gate .welcome-library{background:#eaf3ff;border-color:#d4e3f7}
.auth-gate .auth-gate-actions .btn-orange{background:#1956d1;border-color:#1956d1;box-shadow:0 5px 12px #1956d120}
.auth-gate .auth-gate-actions .btn-orange:hover{background:#1247b4;border-color:#1247b4}
.auth-gate .lucy-welcome p{display:grid;background:#fff;border-color:#d4e3f7;color:#294c79}
.lucy-message-spacer,.lucy-message-writing{grid-area:1 / 1;min-width:0}
.lucy-message-spacer{visibility:hidden}
