:root {
    --bg: #eef4ff;
    --bg-deep: #2d3147;
    --surface: rgba(255, 255, 255, 0.9);
    --surface-strong: #ffffff;
    --surface-soft: #f4f8ff;
    --line: #d7e2f2;
    --line-strong: #bfd2ea;
    --text: #23324a;
    --muted: #6f7d92;
    --primary: #2d6cdf;
    --primary-soft: #e7f0ff;
    --green: #39b86b;
    --green-soft: #dbf8e5;
    --orange: #f0a545;
    --orange-soft: #fff0db;
    --indigo: #6267f1;
    --indigo-soft: #ececff;
    --cyan: #10a6b7;
    --cyan-soft: #dcf8fb;
    --shadow-lg: 0 30px 70px rgba(41, 74, 126, 0.16);
    --shadow-md: 0 18px 40px rgba(58, 88, 137, 0.12);
    --shadow-sm: 0 10px 24px rgba(59, 85, 128, 0.08);
    --radius-xl: 32px;
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 14px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    font-family: "Nunito", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(147, 191, 255, 0.45), transparent 30%),
        radial-gradient(circle at top right, rgba(139, 241, 219, 0.35), transparent 24%),
        linear-gradient(180deg, #edf4ff 0%, #e7eefb 100%);
}

.app-footer {
    padding: 14px 16px 22px;
    text-align: center;
}

.app-footer-copy {
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.form-control,
.form-select {
    min-height: 50px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.92);
    color: var(--text);
    box-shadow: none;
}

.form-control:focus,
.form-select:focus,
.form-check-input:focus {
    border-color: #9abcf3;
    box-shadow: 0 0 0 0.25rem rgba(45, 108, 223, 0.14);
}

.btn-close:focus {
    box-shadow: 0 0 0 0.25rem rgba(45, 108, 223, 0.14);
}

.alert {
    border: 0;
    border-radius: 18px;
    box-shadow: var(--shadow-sm);
}

/* Login */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 32px 16px;
}

.login-shell {
    width: 100%;
    max-width: 1220px;
}

.login-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 28px;
    align-items: stretch;
}

.login-showcase,
.login-panel {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(212, 225, 244, 0.95);
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow-lg);
}

.login-showcase {
    border-radius: 38px;
    padding: 42px;
    background:
        radial-gradient(circle at top right, rgba(72, 136, 255, 0.18), transparent 34%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(239, 247, 255, 0.94));
}

.login-showcase::after {
    content: "";
    position: absolute;
    inset: auto -90px -90px auto;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(100, 177, 255, 0.22), rgba(100, 177, 255, 0));
    pointer-events: none;
}

.login-showcase-brand {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 38px;
}

.login-showcase-logo {
    width: 150px;
    height: 150px;
    padding: 12px;
   
    
}

.login-showcase-kicker {
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 4px;
}

.login-showcase-title {
    margin: 0;
    max-width: 560px;
    font-size: 1.5rem;
    line-height: 1.28;
    font-weight: 800;
}

.login-showcase-copy {
    max-width: 620px;
}

.login-chip {
    display: inline-flex;
    align-items: center;
    padding: 10px 16px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 0.84rem;
    font-weight: 800;
    margin-bottom: 18px;
}

.login-showcase-copy h2 {
    margin: 0 0 14px;
    font-size: 2rem;
    line-height: 1.22;
    font-weight: 800;
}

.login-showcase-copy p {
    margin: 0;
    max-width: 580px;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.75;
}

.login-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 34px;
}

.login-feature-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px 18px 20px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(213, 226, 246, 0.92);
    box-shadow: var(--shadow-sm);
}

.login-feature-card i {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    font-size: 1.1rem;
    background: linear-gradient(135deg, #e7f0ff, #eef8ff);
    color: var(--primary);
}

.login-feature-card strong {
    font-size: 1rem;
    line-height: 1.35;
}

.login-feature-card span {
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.6;
}

.login-panel {
    border-radius: 34px;
    padding: 34px;
}

.login-panel-head {
    margin-bottom: 26px;
}

.login-panel-kicker {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.login-panel-head h2 {
    margin: 0 0 8px;
    font-size: 2rem;
    font-weight: 800;
}

.login-panel-head p,
.login-demo-head p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.login-alert {
    margin-bottom: 18px;
}

.login-form {
    display: grid;
    gap: 18px;
}

.login-field {
    display: grid;
    gap: 10px;
}

.login-input-wrap {
    position: relative;
}

.login-input-wrap i {
    position: absolute;
    top: 50%;
    left: 18px;
    transform: translateY(-50%);
    color: #89a0bf;
    font-size: 1rem;
}

.login-input {
    padding-left: 50px;
}

.login-submit,
.login-helpdesk-button,
.workspace-primary-button,
.workspace-secondary-button,
.monitor-upload-button {
    min-height: 50px;
    border: 0;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 22px;
    font-weight: 800;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.login-submit {
    width: 100%;
    color: #ffffff;
    background: linear-gradient(135deg, #2f6ee1, #4c95ff);
    box-shadow: 0 16px 32px rgba(47, 110, 225, 0.25);
}

.login-helpdesk-button {
    width: 100%;
    color: #ffffff;
    justify-content: flex-start;
    gap: 14px;
    padding: 14px 16px;
    text-align: left;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.22), transparent 28%),
        linear-gradient(135deg, #179b4e, #27c667 58%, #56d98d);
    box-shadow: 0 16px 34px rgba(23, 155, 78, 0.24);
    position: relative;
    overflow: hidden;
}

.login-helpdesk-button::after {
    content: "";
    position: absolute;
    inset: auto -18px -32px auto;
    width: 118px;
    height: 118px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0));
    pointer-events: none;
}

.login-helpdesk-icon,
.login-helpdesk-arrow {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.login-helpdesk-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.22);
    font-size: 1.45rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.login-helpdesk-copy {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

.login-helpdesk-copy strong {
    display: block;
    font-size: 0.98rem;
    line-height: 1.35;
    font-weight: 800;
}

.login-helpdesk-copy small {
    display: block;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.79rem;
    line-height: 1.5;
}

.login-helpdesk-arrow {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 0.95rem;
}

.login-submit:hover,
.login-helpdesk-button:hover,
.workspace-primary-button:hover,
.workspace-secondary-button:hover,
.monitor-upload-button:hover {
    transform: translateY(-1px);
}

.login-demo-box {
    margin-top: 26px;
    padding: 22px;
    border-radius: 24px;
    background: linear-gradient(180deg, #f8fbff, #f1f7ff);
    border: 1px solid var(--line);
}

.login-demo-head {
    margin-bottom: 16px;
}

.login-demo-head h3 {
    margin: 0 0 6px;
    font-size: 1.06rem;
    font-weight: 800;
}

.login-demo-grid {
    display: grid;
    gap: 12px;
}

.login-demo-button {
    width: 100%;
    text-align: left;
    border: 1px solid var(--line);
    background: #ffffff;
    border-radius: 18px;
    padding: 15px 16px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.login-demo-button:hover {
    transform: translateY(-1px);
    border-color: #b8cef3;
}

.login-demo-role {
    display: block;
    font-weight: 800;
    margin-bottom: 4px;
}

.login-demo-button small {
    color: var(--muted);
}

/* Monitor */
.monitor-page {
    min-height: 100vh;
    padding: 24px 14px 36px;
}

.monitor-shell {
    width: min(100%, 820px);
    margin: 0 auto;
    padding: 28px;
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(214, 227, 246, 0.95);
    box-shadow: var(--shadow-lg);
}

.monitor-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

.monitor-brand-mark {
    flex: 0 0 auto;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    
}

.monitor-brand-mark-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
}

.monitor-brand-copy {
    min-width: 0;
}

.monitor-brand-title {
    margin: 0;
    font-size: 2rem;
    font-weight: 800;
}

.monitor-brand-subtitle {
    margin: 4px 0 0;
    color: var(--muted);
    line-height: 1.5;
}

.monitor-logout {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #ffffff;
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 800;
}

.monitor-profile {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 22px;
}

.monitor-avatar {
    width: 78px;
    height: 78px;
    flex: 0 0 78px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #ffcf4d, #ffba08);
    border: 3px solid #ffffff;
    box-shadow: 0 14px 28px rgba(64, 86, 116, 0.18);
    font-weight: 800;
    color: #ffffff;
    overflow: hidden;
}

.monitor-avatar-photo img,
.monitor-photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.monitor-avatar-button {
    border: 0;
    padding: 0;
    cursor: pointer;
}

.monitor-student-data {
    flex: 1;
    min-width: 0;
    padding: 18px 20px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(241, 248, 255, 0.98), rgba(228, 244, 238, 0.98));
    border: 1px solid var(--line);
}

.monitor-meta-row {
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.monitor-meta-row:last-child {
    margin-bottom: 0;
}

.monitor-meta-row span {
    color: var(--muted);
    letter-spacing: 0.06em;
}

.monitor-meta-row strong {
    font-size: 1.1rem;
}

.monitor-alert {
    margin-top: 20px;
}

.monitor-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.monitor-score-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 20px;
    border-radius: 26px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 249, 255, 0.96));
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}

.monitor-score-card-link {
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.monitor-score-card-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.monitor-score-card-wide {
    grid-column: 1 / -1;
}

.monitor-score-card-disabled {
    opacity: 0.86;
}

.monitor-card-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.monitor-card-icon {
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    font-size: 1.35rem;
}

.monitor-card-icon-green { background: var(--green-soft); color: var(--green); }
.monitor-card-icon-indigo { background: var(--indigo-soft); color: var(--indigo); }
.monitor-card-icon-orange { background: var(--orange-soft); color: var(--orange); }
.monitor-card-icon-blue { background: var(--primary-soft); color: var(--primary); }
.monitor-card-icon-cyan { background: var(--cyan-soft); color: var(--cyan); }

.monitor-card-arrow {
    color: #8ea3bf;
    font-size: 1rem;
}

.monitor-score-label {
    font-size: 1.06rem;
    font-weight: 800;
}

.monitor-card-caption {
    color: var(--muted);
    line-height: 1.65;
}

.monitor-summary-panel,
.monitor-detail-panel {
    margin-top: 24px;
    padding: 22px;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(245, 249, 255, 0.97));
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}

.monitor-summary-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.monitor-summary-header h2 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 800;
}

.monitor-summary-header span {
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 800;
}

.monitor-feedback-form {
    display: grid;
    gap: 14px;
}

.monitor-feedback-textarea {
    min-height: 132px;
    resize: vertical;
    border-radius: 18px;
    padding: 16px 18px;
}

.monitor-feedback-list {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.monitor-feedback-item {
    padding: 16px 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid var(--line);
}

.monitor-feedback-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.monitor-feedback-meta strong {
    font-size: 0.96rem;
}

.monitor-feedback-meta span {
    color: var(--muted);
    font-size: 0.8rem;
}

.monitor-feedback-item p {
    margin: 0;
    color: #35506f;
    line-height: 1.7;
}

.monitor-empty-state {
    display: grid;
    place-items: center;
    min-height: 160px;
    text-align: center;
    color: var(--muted);
}

.monitor-loading-dots {
    display: inline-flex;
    gap: 8px;
    margin-bottom: 14px;
}

.monitor-loading-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #86a9e2;
    animation: monitorDot 1.2s infinite ease-in-out;
}

.monitor-loading-dots span:nth-child(2) {
    animation-delay: 0.15s;
}

.monitor-loading-dots span:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes monitorDot {
    0%, 80%, 100% { transform: scale(0.7); opacity: 0.55; }
    40% { transform: scale(1); opacity: 1; }
}

.monitor-pill-title {
    display: flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 60px;
    padding: 0 28px;
    margin: 0 auto;
    border-radius: 18px;
    background: linear-gradient(180deg, #c8f5ce, #b7efc1);
    border: 1px solid #79d489;
    color: #2f8c48;
    font-size: 1.08rem;
    font-weight: 800;
    box-shadow: 0 14px 28px rgba(57, 184, 107, 0.16);
}

.monitor-table-box {
    margin-top: 18px;
    padding: 18px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(173, 216, 255, 0.9), rgba(146, 201, 245, 0.92));
    border: 1px solid #8bbce9;
}

.monitor-page-mental .monitor-detail-panel-danger .monitor-pill-title {
    background: linear-gradient(180deg, #ffd3d3, #ffb5b5);
    border-color: #ea8b8b;
    color: #b23838;
    box-shadow: 0 14px 28px rgba(206, 78, 78, 0.16);
}

.monitor-page-mental .monitor-detail-panel-danger .monitor-table-box {
    background: linear-gradient(180deg, rgba(255, 204, 204, 0.94), rgba(245, 158, 158, 0.92));
    border-color: #e28e8e;
}

.monitor-table {
    width: 100%;
    color: #264261;
    border-collapse: collapse;
}

.monitor-table th,
.monitor-table td {
    padding: 12px 10px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    white-space: nowrap;
}

.monitor-table thead th {
    font-weight: 800;
}

.monitor-table tbody tr:last-child td {
    border-bottom: 0;
}

.monitor-bottom-nav {
    position: sticky;
    bottom: 14px;
    z-index: 10;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 26px;
    padding: 10px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-md);
}

.monitor-bottom-nav-item {
    min-height: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-radius: 18px;
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 700;
}

.monitor-bottom-nav-item-active {
    background: var(--primary-soft);
    color: var(--primary);
}

.monitor-modal {
    border: 0;
    border-radius: 26px;
    overflow: hidden;
}

.monitor-modal-header {
    border-bottom: 1px solid var(--line);
    padding: 20px 22px 16px;
}

.monitor-photo-preview {
    width: 180px;
    height: 180px;
    margin: 0 auto 18px;
    border-radius: 28px;
    overflow: hidden;
    background: linear-gradient(180deg, #ffcf4d, #ffba08);
    box-shadow: var(--shadow-md);
}

.monitor-photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 2rem;
    font-weight: 800;
}

.monitor-upload-form {
    display: grid;
    gap: 12px;
}

.monitor-upload-label {
    font-weight: 800;
}

.monitor-upload-meta,
.monitor-upload-disabled {
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.65;
}

.monitor-upload-button {
    color: #ffffff;
    background: linear-gradient(135deg, #2f6ee1, #4c95ff);
}

/* Workspace */
.workspace-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr);
    gap: 24px;
    padding: 20px;
}

.workspace-sidebar,
.workspace-panel,
.workspace-topbar,
.workspace-hero,
.workspace-hero-panel,
.workspace-stat-card {
    border: 1px solid rgba(213, 226, 245, 0.96);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-sm);
}

.workspace-sidebar {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 16px;
    border-radius: 30px;
    padding: 18px;
    position: sticky;
    top: 20px;
    height: calc(100vh - 40px);
    max-height: calc(100vh - 40px);
    overflow: hidden;
}

.workspace-sidebar-scroll {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 4px;
    scrollbar-width: thin;
    scrollbar-color: #b9cdea transparent;
}

.workspace-sidebar-scroll::-webkit-scrollbar {
    width: 8px;
}

.workspace-sidebar-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.workspace-sidebar-scroll::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: #b9cdea;
}

.workspace-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 8px 8px 18px;
}

.workspace-brand-mark {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    
}

.workspace-brand-title {
    font-size: 1.2rem;
    font-weight: 800;
}

.workspace-brand-subtitle {
    color: var(--muted);
    font-size: 0.92rem;
}

.workspace-nav {
    display: grid;
    gap: 8px;
}

.workspace-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 0 16px;
    border-radius: 16px;
    color: #5d6f89;
    font-weight: 700;
}

.workspace-nav-link:hover,
.workspace-nav-link-active {
    background: var(--primary-soft);
    color: var(--primary);
}

.workspace-user-card {
    flex-shrink: 0;
    padding: 18px;
    border-radius: 22px;
    background: linear-gradient(180deg, #f7fbff, #eef6ff);
    border: 1px solid var(--line);
}

.workspace-user-name {
    font-size: 1rem;
    font-weight: 800;
}

.workspace-user-role {
    margin-top: 4px;
    color: var(--muted);
}

.workspace-logout {
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid var(--line);
    color: #556781;
    font-weight: 700;
}

.workspace-main {
    min-width: 0;
}

.workspace-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-radius: 28px;
    padding: 22px 26px;
}

.workspace-eyebrow,
.workspace-panel-kicker,
.workspace-kicker {
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 800;
    font-size: 0.78rem;
}

.workspace-page-title {
    margin: 6px 0 0;
    font-size: 1.85rem;
    font-weight: 800;
}

.workspace-topbar-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary);
    font-weight: 800;
}

.workspace-content {
    display: grid;
    gap: 22px;
    margin-top: 22px;
}

.workspace-hero {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 18px;
    border-radius: 30px;
    padding: 28px;
}

.workspace-hero-copy h2 {
    margin: 10px 0 10px;
    font-size: 2rem;
    line-height: 1.25;
    font-weight: 800;
}

.workspace-hero-copy p {
    margin: 0;
    max-width: 720px;
    color: var(--muted);
    line-height: 1.75;
}

.workspace-hero-panel,
.workspace-stat-card,
.workspace-panel {
    border-radius: 28px;
}

.workspace-hero-panel {
    display: grid;
    gap: 12px;
    padding: 18px;
}

.workspace-hero-stat,
.workspace-profile-item,
.workspace-setting-item {
    padding: 16px 18px;
    border-radius: 18px;
    background: linear-gradient(180deg, #f9fbff, #f2f7ff);
    border: 1px solid var(--line);
}

.workspace-hero-stat span,
.workspace-profile-item span,
.workspace-setting-item span {
    display: block;
    color: var(--muted);
    margin-bottom: 6px;
}

.workspace-hero-stat strong,
.workspace-profile-item strong,
.workspace-setting-item strong {
    font-size: 1.12rem;
}

.workspace-stat-grid,
.workspace-grid-two,
.workspace-quick-grid,
.workspace-import-grid,
.workspace-profile-grid {
    display: grid;
    gap: 18px;
}

.workspace-stat-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.workspace-stat-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px;
}

.workspace-stat-icon {
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    font-size: 1.25rem;
}

.workspace-stat-icon-blue { background: var(--primary-soft); color: var(--primary); }
.workspace-stat-icon-green { background: var(--green-soft); color: var(--green); }
.workspace-stat-icon-orange { background: var(--orange-soft); color: var(--orange); }
.workspace-stat-icon-indigo { background: var(--indigo-soft); color: var(--indigo); }

.workspace-stat-card span {
    display: block;
    color: var(--muted);
    margin-bottom: 4px;
}

.workspace-stat-card strong {
    font-size: 1.16rem;
}

.workspace-grid-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.workspace-panel {
    padding: 24px;
}

.workspace-panel-header {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.workspace-panel-header h3 {
    margin: 8px 0 0;
    font-size: 1.3rem;
    font-weight: 800;
}

.workspace-text-link {
    color: var(--primary);
    font-weight: 800;
}

.workspace-quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.workspace-quick-card,
.workspace-person-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    border-radius: 20px;
    background: linear-gradient(180deg, #ffffff, #f4f8ff);
    border: 1px solid var(--line);
}

.workspace-quick-card {
    flex-direction: column;
    align-items: flex-start;
}

.workspace-quick-card i {
    width: 50px;
    height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 1.2rem;
}

.workspace-quick-card strong {
    font-size: 1rem;
}

.workspace-quick-card span {
    color: var(--muted);
    line-height: 1.6;
}

.workspace-setting-list,
.workspace-list-stack,
.workspace-data-stack {
    display: grid;
    gap: 14px;
}

.workspace-participant-picker {
    position: relative;
}

.workspace-participant-search-box {
    position: relative;
}

.workspace-participant-search-box i {
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    color: var(--muted);
    pointer-events: none;
}

.workspace-participant-search-box .workspace-search-input {
    min-height: 56px;
    padding-left: 46px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.workspace-search-helper {
    margin-top: 10px;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.5;
}

.workspace-participant-suggestions {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    z-index: 40;
    display: grid;
    gap: 8px;
    max-height: 360px;
    overflow-y: auto;
    padding: 10px;
    border-radius: 20px;
    border: 1px solid rgba(126, 157, 211, 0.28);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 22px 46px rgba(15, 44, 84, 0.18);
    backdrop-filter: blur(12px);
}

.workspace-suggestion-item {
    width: 100%;
    display: grid;
    gap: 4px;
    padding: 14px 16px;
    border: 1px solid transparent;
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff, #f4f8ff);
    color: inherit;
    text-align: left;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.workspace-suggestion-item:hover,
.workspace-suggestion-item:focus {
    transform: translateY(-1px);
    border-color: rgba(54, 108, 215, 0.24);
    box-shadow: 0 16px 30px rgba(54, 108, 215, 0.12);
    outline: none;
}

.workspace-suggestion-name {
    font-weight: 800;
}

.workspace-suggestion-meta,
.workspace-suggestion-empty {
    color: var(--muted);
    font-size: 0.92rem;
}

.workspace-suggestion-empty {
    padding: 14px 16px;
}

.workspace-table-wrap {
    overflow: auto;
    border-radius: 20px;
    border: 1px solid var(--line);
}

.workspace-table {
    width: 100%;
    min-width: 620px;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.94);
}

.workspace-table th,
.workspace-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #e6eef9;
    text-align: left;
    vertical-align: top;
}

.workspace-table thead th {
    background: #f4f8ff;
    color: #455a78;
    font-weight: 800;
}

.workspace-table tbody tr:last-child td {
    border-bottom: 0;
}

.workspace-account-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
    gap: 18px;
    align-items: start;
}

.workspace-account-list {
    display: grid;
    gap: 14px;
}

.workspace-account-list-compact {
    max-height: 760px;
    overflow: auto;
    padding-right: 4px;
}

.workspace-operator-panel-header {
    align-items: flex-start;
}

.workspace-operator-panel-note {
    margin: 8px 0 0;
    color: var(--muted);
    line-height: 1.6;
}

.workspace-operator-summary {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.workspace-operator-summary-item {
    min-width: 86px;
    padding: 12px 14px;
    border: 1px solid rgba(189, 211, 241, 0.9);
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff, #edf5ff);
    box-shadow: 0 12px 26px rgba(47, 110, 225, 0.1);
}

.workspace-operator-summary-item span {
    display: block;
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.workspace-operator-summary-item strong {
    display: block;
    margin-top: 3px;
    color: var(--primary);
    font-size: 1.35rem;
    line-height: 1;
}

.workspace-operator-role-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: -2px 0 18px;
}

.workspace-operator-role-strip span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 11px;
    border: 1px solid #dce8f7;
    border-radius: 999px;
    color: #4b607d;
    background: #f7fbff;
    font-size: 0.8rem;
    font-weight: 800;
}

.workspace-operator-role-strip strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 7px;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, #2f6ee1, #4c95ff);
    font-size: 0.78rem;
}

.workspace-account-card {
    display: grid;
    gap: 16px;
    padding: 18px;
    border: 1px solid rgba(207, 222, 242, 0.95);
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(76, 149, 255, 0.12), transparent 34%),
        linear-gradient(180deg, #ffffff, #f7faff);
    box-shadow: 0 16px 38px rgba(55, 91, 135, 0.09);
}

.workspace-operator-card {
    position: relative;
    overflow: hidden;
    padding: 0;
    background:
        radial-gradient(circle at top right, rgba(76, 149, 255, 0.18), transparent 32%),
        linear-gradient(135deg, #ffffff 0%, #f7fbff 54%, #eef6ff 100%);
}

.workspace-operator-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: linear-gradient(180deg, #204fba, #4c95ff, #8fd3ff);
}

.workspace-operator-card-top {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 18px 0 22px;
}

.workspace-operator-card-badges {
    justify-content: flex-end;
    margin-top: 0;
}

.workspace-account-card-student {
    gap: 14px;
}

.workspace-account-main {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.workspace-account-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 54px;
    height: 54px;
    border-radius: 18px;
    color: #ffffff;
    font-weight: 900;
    letter-spacing: 0.04em;
    box-shadow: 0 12px 24px rgba(47, 110, 225, 0.18);
}

.workspace-account-avatar-operator {
    background: linear-gradient(135deg, #204fba, #4c95ff);
}

.workspace-account-avatar-student {
    background: linear-gradient(135deg, #087f5b, #37b24d);
}

.workspace-account-identity {
    min-width: 0;
}

.workspace-account-identity strong {
    display: block;
    color: var(--text);
    font-size: 1.02rem;
    line-height: 1.35;
}

.workspace-account-identity > span {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-weight: 700;
}

.workspace-account-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.workspace-account-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 900;
    white-space: nowrap;
}

.workspace-account-badge-blue {
    color: #255fbf;
    background: #eaf2ff;
}

.workspace-account-badge-green {
    color: #18734d;
    background: #e8f8ef;
}

.workspace-account-badge-muted {
    color: #64748b;
    background: #eef2f7;
}

.workspace-account-badge-orange {
    color: #a05a00;
    background: #fff4df;
}

.workspace-account-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.workspace-operator-actions {
    position: relative;
    padding: 0 18px 18px 22px;
}

.workspace-account-action-card {
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 1px solid #e0eaf7;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.78);
}

.workspace-operator-action-card {
    align-content: start;
    border-color: rgba(204, 221, 244, 0.92);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(247, 251, 255, 0.9));
}

.workspace-operator-action-card .form-select,
.workspace-operator-action-card .form-control {
    min-height: 46px;
    border-radius: 14px;
}

.workspace-account-action-card p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.45;
}

.workspace-account-password-card {
    grid-template-columns: minmax(0, 1fr);
}

.workspace-action-label {
    color: #415673;
    font-size: 0.8rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.workspace-empty-state {
    padding: 22px;
    border: 1px dashed #c8d8ed;
    border-radius: 20px;
    color: var(--muted);
    background: #f8fbff;
    text-align: center;
    font-weight: 800;
}

.workspace-student-table-panel {
    margin-top: 18px;
}

.workspace-datatable-wrap {
    padding: 10px;
    background: linear-gradient(180deg, #ffffff, #f7fbff);
}

.workspace-student-datatable {
    min-width: 980px;
}

.workspace-student-datatable thead th {
    white-space: nowrap;
}

.workspace-student-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.workspace-student-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, #087f5b, #37b24d);
    font-weight: 900;
}

.workspace-student-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 360px;
}

.workspace-student-password-form {
    display: grid;
    grid-template-columns: minmax(170px, 1fr) auto;
    gap: 8px;
    align-items: center;
    min-width: 250px;
}

.workspace-student-password-form .form-control {
    min-height: 42px;
    border-radius: 14px;
}

.workspace-icon-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    color: #ffffff;
    box-shadow: var(--shadow-sm);
}

.workspace-icon-action-primary {
    background: linear-gradient(135deg, #2f6ee1, #4c95ff);
}

.workspace-icon-action-success {
    background: linear-gradient(135deg, #087f5b, #37b24d);
}

.workspace-icon-action-warning {
    background: linear-gradient(135deg, #d97706, #f59f00);
}

.workspace-icon-action-danger {
    background: linear-gradient(135deg, #c92a2a, #ff6b6b);
}

.workspace-create-account-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(135deg, #087f5b, #37b24d);
    box-shadow: var(--shadow-sm);
    white-space: nowrap;
}

.workspace-datatable-wrap .dt-container {
    color: var(--text);
}

.workspace-datatable-wrap .dt-layout-row {
    gap: 14px;
    margin: 10px 0;
}

.workspace-datatable-wrap .dt-input {
    min-height: 40px;
    border: 1px solid var(--line);
    border-radius: 12px;
}

.workspace-datatable-wrap .dt-search input {
    min-width: 240px;
    margin-left: 8px;
}

.workspace-datatable-wrap .dt-paging .dt-paging-button {
    border-radius: 12px !important;
}

.workspace-inline-password-form {
    display: grid;
    gap: 10px;
    min-width: 240px;
}

.workspace-password-input-group {
    position: relative;
}

.workspace-password-input-group .form-control {
    padding-right: 48px;
}

.workspace-password-toggle {
    position: absolute;
    top: 50%;
    right: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 12px;
    color: var(--primary);
    background: #edf4ff;
    transform: translateY(-50%);
}

.workspace-password-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border-radius: 999px;
    color: #4e6484;
    background: #edf4ff;
    font-weight: 800;
    white-space: nowrap;
}

.workspace-table-action-button {
    min-height: 42px;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 0.9rem;
}

.workspace-import-page-note,
.workspace-import-note {
    color: var(--muted);
    line-height: 1.7;
}

.workspace-import-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.workspace-import-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 18px;
    padding: 22px;
    border-radius: 24px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, #ffffff, #f5f9ff);
    box-shadow: var(--shadow-sm);
}

.workspace-import-card-active {
    border-color: #9cbef3;
    box-shadow: var(--shadow-md);
}

.workspace-import-card-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.workspace-import-card-head h4 {
    margin: 0 0 6px;
    font-size: 1.08rem;
    font-weight: 800;
}

.workspace-import-card-head p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.workspace-import-badge {
    white-space: nowrap;
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 800;
}

.workspace-column-chip-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.workspace-column-chip {
    padding: 7px 12px;
    border-radius: 999px;
    background: #edf4ff;
    color: #4e6484;
    font-size: 0.84rem;
    font-weight: 700;
}

.workspace-import-form,
.workspace-entry-form,
.workspace-settings-form {
    display: grid;
    gap: 16px;
}

.workspace-import-actions {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: center;
}

.workspace-primary-button {
    color: #ffffff;
    background: linear-gradient(135deg, #2f6ee1, #4c95ff);
    box-shadow: 0 14px 28px rgba(47, 110, 225, 0.22);
}

.workspace-primary-button-compact {
    min-width: 148px;
}

.workspace-secondary-button {
    color: var(--primary);
    background: #ffffff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}

.workspace-toggle-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    border-radius: 20px;
    background: linear-gradient(180deg, #ffffff, #f5f9ff);
    border: 1px solid var(--line);
}

.workspace-toggle-card strong {
    display: block;
    margin-bottom: 6px;
}

.workspace-toggle-card span {
    color: var(--muted);
    line-height: 1.6;
}

.workspace-switch .form-check-input {
    width: 3.2rem;
    height: 1.7rem;
}

.workspace-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.workspace-form-grid-full {
    grid-column: 1 / -1;
}

.workspace-search-panel {
    padding: 20px;
    border-radius: 22px;
    background: linear-gradient(180deg, #f9fbff, #f3f7ff);
    border: 1px solid var(--line);
}

.workspace-search-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: end;
}

.workspace-search-input-wrap {
    min-width: 0;
}

.workspace-search-input {
    min-height: 52px;
}

.workspace-person-card {
    justify-content: space-between;
    color: inherit;
}

.workspace-person-card span {
    display: block;
    color: var(--muted);
    margin-top: 4px;
}

.workspace-person-card-active {
    border-color: #98bcf4;
    background: linear-gradient(180deg, #ffffff, #edf4ff);
    box-shadow: var(--shadow-md);
}

.workspace-profile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.workspace-alert {
    margin-bottom: 18px;
}

.workspace-log-payload {
    margin: 10px 0 0;
    padding: 14px;
    border-radius: 14px;
    background: #1f2e44;
    color: #dce9ff;
    font-size: 0.82rem;
    white-space: pre-wrap;
    word-break: break-word;
}

/* Responsive */
@media (max-width: 1199.98px) {
    .login-grid,
    .workspace-hero,
    .workspace-stat-grid,
    .workspace-account-grid,
    .workspace-import-grid {
        grid-template-columns: 1fr;
    }

    .login-feature-grid {
        grid-template-columns: 1fr;
    }

    .workspace-shell {
        grid-template-columns: 1fr;
    }

    .workspace-sidebar {
        position: static;
        height: auto;
        max-height: none;
        overflow: visible;
    }

    .workspace-sidebar-scroll {
        overflow: visible;
        padding-right: 0;
    }
}

@media (max-width: 991.98px) {
    .login-showcase,
    .login-panel,
    .monitor-shell,
    .workspace-topbar,
    .workspace-panel,
    .workspace-hero {
        border-radius: 26px;
    }

    .login-showcase,
    .login-panel,
    .monitor-shell,
    .workspace-panel,
    .workspace-topbar,
    .workspace-hero {
        padding: 24px;
    }

    .workspace-grid-two,
    .workspace-quick-grid,
    .workspace-profile-grid,
    .workspace-account-actions,
    .workspace-form-grid,
    .monitor-card-grid {
        grid-template-columns: 1fr;
    }

    .workspace-operator-card-top {
        flex-direction: column;
    }

    .workspace-operator-card-badges {
        justify-content: flex-start;
    }

    .workspace-topbar {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 767.98px) {
    .login-page {
        padding: 18px 12px;
    }

    .login-showcase-brand,
    .monitor-header,
    .workspace-search-form {
        align-items: flex-start;
        flex-direction: column;
    }

    .login-showcase-logo {
        width: 84px;
        height: 84px;
    }

    .login-showcase-title {
        font-size: 1.28rem;
    }

    .login-showcase-copy h2 {
        font-size: 1.48rem;
    }

    .login-panel-head h2,
    .monitor-brand-title,
    .workspace-page-title,
    .workspace-hero-copy h2 {
        font-size: 1.55rem;
    }

    .monitor-page {
        padding: 10px 10px 28px;
    }

    .monitor-shell {
        width: 100%;
        padding: 20px;
    }

    .monitor-header {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        grid-template-areas:
            "brand-mark brand-copy"
            "logout logout";
        align-items: center;
        gap: 12px 14px;
    }

    .monitor-brand-mark {
        grid-area: brand-mark;
    }

    .monitor-brand-copy {
        grid-area: brand-copy;
        min-width: 0;
    }

    .monitor-logout {
        grid-area: logout;
        margin-left: 0;
        justify-self: start;
    }

    .monitor-profile {
        flex-direction: row;
        align-items: center;
        gap: 14px;
        padding: 14px;
        border-radius: 20px;
        background: linear-gradient(135deg, rgba(241, 248, 255, 0.98), rgba(228, 244, 238, 0.98));
        border: 1px solid var(--line);
    }

    .workspace-account-card {
        padding: 14px;
        border-radius: 20px;
    }

    .workspace-account-main {
        align-items: flex-start;
    }

    .workspace-account-avatar {
        width: 46px;
        height: 46px;
        border-radius: 16px;
    }

    .workspace-account-list-compact {
        max-height: none;
        overflow: visible;
        padding-right: 0;
    }

    .workspace-account-badge {
        white-space: normal;
    }

    .workspace-operator-summary {
        width: 100%;
    }

    .workspace-operator-summary-item {
        flex: 1 1 120px;
    }

    .workspace-operator-card-top,
    .workspace-operator-actions {
        padding-left: 18px;
        padding-right: 14px;
    }

    .monitor-avatar {
        width: 64px;
        height: 64px;
        flex-basis: 64px;
    }

    .monitor-student-data {
        width: 100%;
        padding: 0;
        background: transparent;
        border: 0;
    }

    .monitor-meta-row {
        grid-template-columns: 58px minmax(0, 1fr);
        gap: 8px;
        margin-bottom: 6px;
        font-size: 0.88rem;
        line-height: 1.45;
    }

    .monitor-meta-row span {
        font-size: 0.76rem;
        letter-spacing: 0.04em;
    }

    .monitor-meta-row strong {
        font-size: 0.96rem;
    }

    .monitor-pill-title {
        width: 100%;
        min-height: 54px;
        padding: 0 16px;
        font-size: 1rem;
    }

    .monitor-table-box {
        padding: 12px;
    }

    .monitor-table th,
    .monitor-table td {
        padding: 10px 8px;
        font-size: 0.9rem;
    }

    .monitor-bottom-nav {
        bottom: 8px;
        gap: 8px;
        padding: 8px;
    }

    .monitor-bottom-nav-item {
        min-height: 56px;
        font-size: 0.78rem;
    }

    .workspace-shell {
        gap: 16px;
        padding: 12px;
    }

    .workspace-sidebar {
        padding: 18px 14px;
    }

    .workspace-nav {
        grid-template-columns: 1fr 1fr;
    }

    .workspace-nav-link {
        min-height: 44px;
        padding: 0 12px;
        font-size: 0.92rem;
    }

    .workspace-panel,
    .workspace-topbar,
    .workspace-hero {
        padding: 18px;
    }

    .workspace-import-actions,
    .workspace-search-form {
        grid-template-columns: 1fr;
    }

    .workspace-primary-button,
    .workspace-secondary-button,
    .login-submit {
        width: 100%;
    }

    .login-helpdesk-button {
        width: 100%;
    }
}

@media (max-width: 575.98px) {
    .login-showcase,
    .login-panel,
    .monitor-shell,
    .workspace-panel,
    .workspace-topbar,
    .workspace-hero,
    .workspace-sidebar {
        border-radius: 22px;
    }

    .login-showcase,
    .login-panel {
        padding: 20px;
    }

    .login-showcase-copy h2 {
        font-size: 1.34rem;
    }

    .login-feature-card,
    .workspace-import-card,
    .workspace-person-card,
    .workspace-toggle-card,
    .monitor-score-card {
        border-radius: 18px;
    }

    .workspace-nav {
        grid-template-columns: 1fr;
    }
}
