body.ui-student.student-hub {background:linear-gradient(180deg,#f0edff 0,#f7f8fc 400px);background-attachment:fixed;}
body.ui-student.student-hub #root {width:min(1180px,100%);max-width:1180px;padding:36px 24px 64px;margin:0 auto;}
.student-hub-view {--hub-border:#e5e4ef;}
.sh-heading {display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:28px;}
.sh-heading h1 {font-size:30px;margin:0 0 10px;letter-spacing:-.6px;}
.sh-muted {color:#7c8091;font-size:14px;line-height:1.65;margin:0;}
.sh-panel {background:#fff;border:1px solid var(--hub-border);border-radius:18px;margin-bottom:24px;overflow:hidden;box-shadow:0 3px 12px #32266504;}
.sh-panel-head {padding:24px;display:flex;align-items:center;justify-content:space-between;gap:20px;border-bottom:1px solid #eeedf4;flex-wrap:wrap;}
.sh-panel h2 {font-size:21px;margin:0 0 5px;}
.sh-filters,.sh-actions {display:flex;align-items:center;gap:10px;flex-wrap:wrap;}
.sh-button,.sh-filters input {font:inherit;font-size:14px;border:1px solid #dedee9;border-radius:10px;padding:11px 16px;background:#fff;color:#3d4053;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;min-height:44px;}
.sh-button:hover {background:#f4f2ff;border-color:#beb9ee;}
.sh-button.primary {background:#6263d8;color:white;border-color:#6263d8;}
.sh-button:disabled {opacity:.45;cursor:not-allowed;}
.sh-button:focus-visible,.sh-filters input:focus-visible {outline:3px solid #c8c3ff;outline-offset:2px;}
.sh-content {padding:24px;}
.sh-empty {text-align:center;padding:38px 18px;color:#85899b;font-size:14px;line-height:1.8;}
.sh-empty strong {display:block;color:#494b60;font-size:16px;margin-bottom:6px;}
.sh-course {display:grid;grid-template-columns:76px minmax(0,1fr) auto;gap:20px;align-items:center;border:1px solid var(--hub-border);border-radius:14px;padding:20px;margin-bottom:12px;}
.sh-course:last-child {margin-bottom:0;}
.sh-time {font-variant-numeric:tabular-nums;color:#6565ba;font-size:20px;font-weight:600;}
.sh-time small {display:block;font-weight:400;font-size:12px;color:#8f92a3;margin-top:5px;}
.sh-course h3,.sh-history h3 {font-size:17px;margin:0 0 8px;overflow-wrap:anywhere;}
.sh-status {font-size:12px;font-weight:400;color:#6665c9;background:#f0effc;border-radius:6px;padding:4px 8px;margin-left:8px;display:inline-block;}
.sh-history-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;}
.sh-history {padding:22px;border:1px solid var(--hub-border);border-radius:14px;}
.sh-history .sh-actions {margin-top:24px;}
.sh-notice {padding:12px 16px;background:#f6f4ff;border-radius:10px;font-size:13px;color:#666283;margin-bottom:16px;line-height:1.6;}
.sh-error {color:#b63c4f;}
.sh-dialog {position:fixed;inset:0;margin:auto;box-sizing:border-box;overflow:auto;border:1px solid #e0def0;border-radius:18px;padding:0;width:min(900px,calc(100vw - 32px));max-height:calc(100dvh - 48px);color:#292b41;box-shadow:0 24px 100px #25224428;}
.sh-dialog::backdrop {background:#20223f66;backdrop-filter:blur(3px);}
.sh-dialog > header {padding:20px 24px;display:flex;align-items:center;justify-content:space-between;gap:20px;border-bottom:1px solid #e9e7f2;position:sticky;top:0;background:#fff;z-index:2;}
.sh-dialog h2 {font-size:20px;margin:0;}
.sh-dialog-body {padding:24px;}
.sh-dialog.admission {max-width:620px;}
.sh-dialog.admission .card {box-shadow:none;padding:0;}
.sh-dialog.admission .card h2 {display:none;}
.sh-dialog.admission label {display:block;margin:18px 0;font-size:14px;}
.sh-dialog.admission input,.sh-dialog.admission select {width:100%;margin-top:8px;padding:12px;border:1px solid #dcd9eb;border-radius:8px;font:inherit;}
.sh-dialog iframe {display:block;width:100%;height:65vh;border:0;border-radius:10px;}
.sh-dialog video {width:100%;max-height:65vh;background:#151522;border-radius:10px;}
.sh-task {border:1px solid #e4e2ef;border-radius:12px;padding:20px;margin-bottom:16px;}
.sh-task h3 {margin:0 0 10px;font-size:17px;}
.sh-task p {line-height:1.75;white-space:pre-wrap;overflow-wrap:anywhere;}
.sh-task img {max-width:100%;border:1px solid #e4e2ef;border-radius:8px;margin-top:12px;}
.sh-answer {padding:14px;background:#f7f6fc;border-radius:8px;}
@media(max-width:640px){body.ui-student.student-hub #root {padding:24px 14px 40px;}.sh-heading h1 {font-size:25px;}.sh-panel-head,.sh-content {padding:18px;}.sh-course {grid-template-columns:60px minmax(0,1fr);gap:12px;padding:16px;}.sh-course>.sh-button {grid-column:2;justify-self:start;}.sh-history-grid {grid-template-columns:1fr;}.sh-filters {gap:6px;}.sh-filters .sh-button {padding:9px 11px;}.sh-dialog-body {padding:16px;}.sh-heading {align-items:flex-start;}}

.sh-history-filters label {display:flex;align-items:center;gap:7px;color:#838294;font-size:13px;}
.sh-history-filters input {padding:9px 10px;min-width:0;}
.sh-history-filters select {font:inherit;font-size:14px;border:1px solid #dedee9;background:#fff;color:#46445c;border-radius:10px;padding:11px;min-height:44px;}
.sh-history-date {margin-bottom:12px;font-size:12px;}
.sh-history .sh-button {padding:9px 11px;font-size:13px;min-height:40px;}
.sh-history .sh-actions {gap:8px;margin-top:20px;}
.sh-pagination {display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:22px;padding-top:18px;border-top:1px solid #eeedf4;}
@media(min-width:641px) and (max-width:1000px){.sh-history-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:640px){.sh-history-filters{width:100%;}.sh-history-filters label{flex:1;min-width:140px;}.sh-history-filters input{width:100%;}.sh-pagination{flex-direction:column;align-items:flex-start;}}
