:root{--bg:#f4f7fb;--panel:#fff;--panel2:#f8fafc;--ink:#132238;--muted:#6b7890;--line:#e4e9f1;--brand:#6d5dfc;--brand2:#4f46e5;--accent:#20c997;--soft:#f0edff;--good:#16855b;--shadow:0 12px 35px rgba(29,43,76,.08);--radius:18px}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:Inter,Segoe UI,Arial,sans-serif;background:linear-gradient(135deg,#f7f9fc 0%,#eef3ff 100%);color:var(--ink)}button,input,textarea,select{font:inherit}button{cursor:pointer;border:0}.shell{display:flex;min-height:100vh}.side{width:258px;background:linear-gradient(180deg,#10172b 0%,#121a30 60%,#10172b 100%);color:#dbe5f3;padding:18px 13px;position:sticky;top:0;height:100vh;overflow:auto;box-shadow:12px 0 35px rgba(15,23,42,.10);z-index:10}.brand{display:flex;align-items:center;gap:9px;font-weight:850;font-size:20px;padding:11px 12px 24px;color:#fff}.brand .logo{width:38px;height:38px;display:grid;place-items:center;border-radius:12px;background:linear-gradient(135deg,#7c6cff,#4f46e5);box-shadow:0 8px 22px rgba(99,102,241,.35)}.brand small{display:block;color:#8290aa;font-size:10px;letter-spacing:.12em;margin-top:4px;font-weight:700}.nav-title{padding:10px 12px 7px;color:#66738d;font-size:10px;letter-spacing:.14em;text-transform:uppercase;font-weight:800}.nav button{width:100%;text-align:left;background:transparent;color:#aebbd0;padding:11px 12px;border-radius:12px;margin:2px 0;display:flex;align-items:center;gap:10px;transition:.2s}.nav button:hover{background:rgba(255,255,255,.06);color:#fff;transform:translateX(2px)}.nav button.active{background:linear-gradient(90deg,rgba(109,93,252,.23),rgba(109,93,252,.08));color:#fff;box-shadow:inset 3px 0 0 #7c6cff}.nav .nav-icon{width:22px;text-align:center}.side-bottom{margin-top:22px;padding:12px;border:1px solid rgba(255,255,255,.07);border-radius:14px;background:rgba(255,255,255,.035);font-size:11px;color:#8795ad;line-height:1.5}.main{flex:1;min-width:0;max-width:1500px;margin:auto;padding:20px 28px 35px}.topbar{display:flex;align-items:center;gap:16px;margin-bottom:20px}.searchbar{flex:1;position:relative}.searchbar input{height:48px;padding:0 18px 0 44px;border-radius:15px;border:1px solid var(--line);background:rgba(255,255,255,.82);box-shadow:0 5px 20px rgba(40,55,90,.05)}.searchbar .search-icon{position:absolute;left:16px;top:14px;color:#8a96a9}.top-actions{display:flex;gap:10px;align-items:center}.status{font-size:12px;color:#16855b;background:#ecfdf5;border:1px solid #c9f3df;padding:9px 12px;border-radius:999px;font-weight:700;white-space:nowrap}.theme-btn,.ask-btn{height:44px;padding:0 14px;border-radius:13px;background:#fff;border:1px solid var(--line);color:var(--ink);font-weight:750;box-shadow:0 5px 16px rgba(40,55,90,.05)}.ask-btn{background:linear-gradient(135deg,#7565ff,#5947e8);color:#fff;border:0;box-shadow:0 9px 24px rgba(89,71,232,.24)}.page-head{display:flex;justify-content:space-between;align-items:flex-end;gap:15px;margin:6px 0 20px}.page-head h1{margin:0;font-size:30px;letter-spacing:-.03em}.page-head p{margin:6px 0 0}.hero{position:relative;overflow:hidden;background:linear-gradient(135deg,#5847e9 0%,#7565ff 45%,#4f9df8 100%);color:white;border-radius:24px;padding:30px;margin-bottom:20px;box-shadow:0 18px 45px rgba(83,71,221,.24)}.hero:before,.hero:after{content:"";position:absolute;border-radius:50%;background:rgba(255,255,255,.09)}.hero:before{width:260px;height:260px;right:-80px;top:-100px}.hero:after{width:180px;height:180px;right:180px;bottom:-120px}.hero>*{position:relative;z-index:1}.hero h2{margin:0 0 8px;font-size:31px;letter-spacing:-.03em}.hero p{max-width:800px;color:#e9e7ff;line-height:1.6}.grid{display:grid;grid-template-columns:repeat(12,1fr);gap:17px}.card{background:rgba(255,255,255,.9);border:1px solid rgba(224,230,240,.9);border-radius:var(--radius);padding:20px;box-shadow:var(--shadow);backdrop-filter:blur(8px)}.card:hover{box-shadow:0 16px 42px rgba(29,43,76,.11)}.span-3{grid-column:span 3}.span-4{grid-column:span 4}.span-5{grid-column:span 5}.span-6{grid-column:span 6}.span-7{grid-column:span 7}.span-8{grid-column:span 8}.span-12{grid-column:span 12}.card h3{margin:0 0 8px;font-size:16px}.muted{color:var(--muted)}textarea,input,select{width:100%;border:1px solid #d8dfeb;border-radius:13px;padding:13px;background:#fff;color:var(--ink);outline:none;transition:.2s}textarea{min-height:190px;resize:vertical;line-height:1.55}input{height:46px}input:focus,textarea:focus,select:focus{border-color:#7868ff;box-shadow:0 0 0 4px #ece9ff}.actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:13px}.btn{padding:10px 14px;border-radius:11px;background:#edf1f7;color:#233149;font-weight:750;transition:.2s}.btn:hover{transform:translateY(-1px);filter:brightness(.98)}.btn.primary{background:linear-gradient(135deg,#6d5dfc,#5645e8);color:#fff;box-shadow:0 8px 20px rgba(91,75,230,.2)}.btn.primary:hover{box-shadow:0 11px 24px rgba(91,75,230,.28)}.btn.ghost{background:transparent;border:1px solid var(--line)}.result{margin-top:16px;border:1px solid #e3e8f0;border-radius:15px;padding:21px;background:linear-gradient(180deg,#fbfdff,#f7f9fc)}.result h1,.result h2,.result h3{margin-top:18px}.result h1{font-size:23px}.result h2{font-size:18px;border-bottom:1px solid var(--line);padding-bottom:7px}.result p{line-height:1.78}.result li{margin:7px 0;line-height:1.65}.tag{display:inline-block;background:#eeecff;color:#5b4be7;border-radius:999px;padding:6px 10px;font-size:11px;font-weight:800;margin:3px}.notice{padding:13px 15px;border-radius:12px;background:#fff8e8;border:1px solid #f5deb1;color:#99600c;margin-top:12px}.kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:13px}.kpi{background:rgba(255,255,255,.92);border:1px solid var(--line);border-radius:15px;padding:17px;box-shadow:var(--shadow)}.kpi b{font-size:26px;display:block;margin-top:4px}.kpi .kpi-icon{float:right;width:35px;height:35px;display:grid;place-items:center;border-radius:11px;background:#f0edff}.section-title{display:flex;justify-content:space-between;align-items:center;gap:12px}.answerbox{min-height:360px}.small{font-size:12px}.footer{color:#8b98aa;font-size:12px;padding:25px 0;text-align:center}.searchlinks a{display:block;padding:9px 0;color:#5b4be7;text-decoration:none}.searchlinks a:hover{text-decoration:underline}.sheet{width:100%;border-collapse:separate;border-spacing:0;overflow:hidden;border:1px solid var(--line);border-radius:13px}.sheet th,.sheet td{border-right:1px solid var(--line);border-bottom:1px solid var(--line);padding:9px;text-align:center}.sheet th{background:#f3f0ff;color:#5949df}.sheet tr:last-child td{border-bottom:0}.sheet th:last-child,.sheet td:last-child{border-right:0}.sheet input{height:34px;padding:6px;border-radius:8px}.module-card{min-height:150px;position:relative;overflow:hidden}.module-card .module-icon{width:43px;height:43px;display:grid;place-items:center;border-radius:13px;background:#f0edff;margin-bottom:13px;font-size:21px}.module-card .arrow{position:absolute;right:17px;top:17px;color:#9aa6b9}.dark-theme{--bg:#0b1020;--panel:#121a2c;--panel2:#0f1728;--ink:#edf3ff;--muted:#94a3bd;--line:#26324a;--soft:#221d52;--shadow:0 16px 45px rgba(0,0,0,.22)}.dark-theme body{background:linear-gradient(135deg,#0b1020,#111a31)}.dark-theme .card,.dark-theme .kpi,.dark-theme .searchbar input,.dark-theme .theme-btn{background:#121a2c;color:var(--ink);border-color:#26324a}.dark-theme textarea,.dark-theme input,.dark-theme select{background:#0f1728;color:var(--ink);border-color:#2b3953}.dark-theme .result{background:#0f1728;border-color:#26324a}.dark-theme .btn{background:#1d2940;color:#e8effc}.dark-theme .btn.ghost{background:transparent}.dark-theme .sheet th{background:#211d48}.dark-theme .sheet th,.dark-theme .sheet td{border-color:#26324a}.warm-theme{--brand:#d97706;--brand2:#b45309;--soft:#fff4df}.warm-theme body{background:linear-gradient(135deg,#fffaf1,#fff5e5)}.warm-theme .hero{background:linear-gradient(135deg,#b45309,#f59e0b,#f97316)}.warm-theme .btn.primary{background:linear-gradient(135deg,#d97706,#b45309)}@media(max-width:1050px){.side{width:82px}.brand span,.brand small,.nav button span,.nav-title,.side-bottom{display:none}.brand{justify-content:center}.span-3,.span-4,.span-5,.span-6,.span-7,.span-8{grid-column:span 12}.main{padding:18px}.topbar{flex-wrap:wrap}.searchbar{min-width:240px}}@media(max-width:650px){.side{display:none}.main{padding:14px}.top-actions .status{display:none}.page-head{align-items:flex-start;flex-direction:column}.kpis{grid-template-columns:repeat(2,1fr)}.hero h2{font-size:25px}.hero{padding:23px}.topbar{margin-bottom:14px}.searchbar{order:2;width:100%}}@media(max-width:420px){.kpis{grid-template-columns:1fr}}
/* Student Community */
.community-wrap{display:flex;flex-direction:column;gap:18px}.community-hero{padding:28px;border-radius:24px;background:linear-gradient(135deg,#15213d,#284f8f 55%,#5b4aa8);color:#fff;display:flex;align-items:center;justify-content:space-between;gap:20px;box-shadow:0 20px 50px rgba(31,52,102,.22)}.community-hero h2{margin:6px 0;font-size:30px}.community-hero p{margin:0;opacity:.82;max-width:700px}.eyebrow{text-transform:uppercase;letter-spacing:.12em;font-size:11px;font-weight:800;opacity:.72}.community-grid{display:grid;grid-template-columns:310px minmax(0,1fr);gap:18px;min-height:650px}.community-sidebar{padding:18px}.profile-mini{display:flex;gap:12px;align-items:center;padding-bottom:18px;border-bottom:1px solid var(--border)}.profile-mini span,.chat-item small{display:block;color:var(--muted);font-size:12px;margin-top:3px}.avatar,.group-avatar{width:40px;height:40px;border-radius:14px;display:grid;place-items:center;font-weight:800;background:linear-gradient(135deg,#6d5dfc,#36b7c7);color:#fff}.avatar.big{width:48px;height:48px;border-radius:16px}.new-chat{width:100%;border:0;border-radius:12px;padding:12px;margin:16px 0;background:var(--surface2);color:var(--text);font-weight:800;cursor:pointer}.chat-label{font-size:10px;font-weight:900;letter-spacing:.13em;color:var(--muted);margin:16px 2px 8px}.chat-item{width:100%;display:flex;gap:10px;align-items:center;text-align:left;border:0;background:transparent;color:var(--text);padding:10px;border-radius:14px;cursor:pointer}.chat-item:hover,.chat-item.selected{background:var(--surface2)}.chat-item span:last-child{min-width:0}.chat-item strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.security-card{font-size:12px;padding:13px;border-radius:14px;background:rgba(72,185,132,.09);border:1px solid rgba(72,185,132,.2)}.security-card p{margin:6px 0 0;color:var(--muted);line-height:1.4}.chat-panel{padding:0;overflow:hidden;display:flex;flex-direction:column;min-width:0}.chat-head{display:flex;align-items:center;gap:12px;padding:18px 20px;border-bottom:1px solid var(--border)}.chat-head h3{margin:0}.chat-head p{margin:3px 0 0;color:var(--muted);font-size:12px}.group-avatar.large{width:46px;height:46px;border-radius:15px}.chat-actions{margin-left:auto;display:flex;gap:8px}.encryption-banner{display:flex;align-items:center;gap:8px;padding:9px 20px;background:rgba(72,185,132,.07);font-size:12px}.encryption-banner span{color:var(--muted)}.messages{flex:1;overflow:auto;padding:24px;min-height:430px;max-height:500px;background:linear-gradient(180deg,var(--bg),var(--surface))}.message-empty{height:100%;display:grid;place-items:center;color:var(--muted)}.msg{max-width:72%;margin-bottom:14px}.msg.mine{margin-left:auto}.msg-meta{display:flex;gap:8px;color:var(--muted);font-size:11px;margin:0 6px 4px}.msg.mine .msg-meta{justify-content:flex-end}.bubble{padding:12px 15px;border-radius:17px 17px 17px 5px;background:var(--surface2);line-height:1.45}.msg.mine .bubble{border-radius:17px 17px 5px 17px;background:linear-gradient(135deg,#4f5ce6,#7057bd);color:#fff}.composer{display:flex;gap:10px;padding:14px;border-top:1px solid var(--border);background:var(--surface)}.composer textarea{flex:1;min-height:52px;max-height:130px;resize:none;border-radius:15px}.send-btn{width:52px;border:0;border-radius:15px;background:linear-gradient(135deg,#4f5ce6,#7057bd);color:#fff;font-size:20px;cursor:pointer}.empty-chat{height:100%;min-height:600px;display:grid;place-content:center;text-align:center;padding:40px}.empty-icon{font-size:52px}.empty-chat p{color:var(--muted);max-width:450px}@media(max-width:850px){.community-grid{grid-template-columns:1fr}.community-sidebar{order:2}.community-hero{align-items:flex-start;flex-direction:column}.msg{max-width:90%}}
