@font-face { font-family: Nexon; src: url('../fonts/NEXON%20Lv2%20Gothic.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: Nexon; src: url('../fonts/NEXON%20Lv2%20Gothic%20Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }
:root {
    --primary: #197a72;
    --primary-light: #12665e;
    --primary-dark: #183b4e;
    --accent: #197a72;
    --accent-light: #dceee9;
    --accent-dark: #12665e;
    --bg-dark: #f5f7f7;
    --bg-card: #ffffff;
    --bg-sidebar: #183b4e;
    --bg-hover: #edf3f2;
    --text-primary: #213745;
    --text-secondary: #667880;
    --border-color: #e2e8e8;
    --success: #197a57;
    --danger: #ba3f4d;
    --warning: #976217;
    --info: #296b91;
    --gradient-primary: linear-gradient(135deg, #183b4e, #244c5d);
    --gradient-accent: linear-gradient(135deg, #197a72, #197a72);
    --shadow-lg: 0 18px 60px rgba(24, 59, 78, .13);
    --shadow-md: 0 4px 20px rgba(24, 59, 78, .05);
    --shadow-glow: 0 0 0 3px rgba(25, 122, 114, .08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Nexon, -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
}

/* ===== SIDEBAR ===== */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 260px;
    height: 100vh;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.sidebar-header {
    padding: 24px 20px;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}

.sidebar-header .logo {
    font-size: 14px;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.sidebar-header .subtitle {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.sidebar-nav {
    flex: 1;
    padding: 16px 12px;
    overflow-y: auto;
}

.nav-section {
    margin-bottom: 24px;
}

.nav-section-title {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 0 12px;
    margin-bottom: 8px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    margin-bottom: 2px;
}

.nav-link:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.nav-link.active {
    background: var(--primary);
    color: var(--accent);
    box-shadow: var(--shadow-glow);
}

.nav-link .icon {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.sidebar-footer {
    padding: 16px 12px;
    border-top: 1px solid var(--border-color);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    background: var(--bg-hover);
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gradient-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: var(--primary-dark);
}

.user-details {
    flex: 1;
}

.user-details .name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.user-details .role {
    font-size: 11px;
    color: var(--text-secondary);
}

/* ===== MAIN CONTENT ===== */
.main-content {
    margin-left: 260px;
    min-height: 100vh;
    padding: 0;
}

.top-bar {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 32px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}

.top-bar h1 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.top-bar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.content-area {
    padding: 32px;
}

/* ===== CARDS ===== */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
}

.card-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: transparent;
}

.card-header h5 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.card-body {
    padding: 20px;
}

/* ===== STAT CARDS ===== */
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-accent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.stat-card:hover::before {
    opacity: 1;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    background: var(--bg-hover);
    color: var(--accent);
}

.stat-info .stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.stat-info .stat-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* ===== TABLES ===== */
.table-container {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead th {
    padding: 12px 16px;
    background: var(--bg-hover);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
    text-align: left;
}

.data-table tbody td {
    padding: 12px 16px;
    font-size: 14px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

.data-table tbody tr {
    transition: background 0.15s ease;
}

.data-table tbody tr:hover {
    background: var(--bg-hover);
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: var(--text-primary);
    border: 1px solid var(--primary-light);
}

.btn-primary:hover {
    background: var(--primary-light);
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 51, 102, 0.4);
}

.btn-accent {
    background: var(--gradient-accent);
    color: var(--primary-dark);
}

.btn-accent:hover {
    box-shadow: var(--shadow-glow);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
    border-color: var(--text-secondary);
}

.btn-danger {
    background: rgba(255, 23, 68, 0.15);
    color: var(--danger);
    border: 1px solid rgba(255, 23, 68, 0.3);
}

.btn-danger:hover {
    background: var(--danger);
    color: #fff;
}

.btn-success {
    background: rgba(0, 200, 83, 0.15);
    color: var(--success);
    border: 1px solid rgba(0, 200, 83, 0.3);
}

.btn-success:hover {
    background: var(--success);
    color: #fff;
}

.btn-sm {
    padding: 5px 10px;
    font-size: 12px;
}

.btn-lg {
    padding: 12px 24px;
    font-size: 15px;
}

/* ===== FORMS ===== */
.form-control {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    transition: border-color 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(25, 122, 114, 0.12);
}

.form-control::placeholder {
    color: var(--text-secondary);
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.form-group {
    margin-bottom: 16px;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%238899aa' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

textarea.form-control {
    min-height: 80px;
    resize: vertical;
}

/* ===== BADGES ===== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.badge-success {
    background: rgba(0, 200, 83, 0.15);
    color: var(--success);
}

.badge-warning {
    background: rgba(255, 145, 0, 0.15);
    color: var(--warning);
}

.badge-danger {
    background: rgba(255, 23, 68, 0.15);
    color: var(--danger);
}

.badge-info {
    background: rgba(64, 196, 255, 0.15);
    color: var(--info);
}

.badge-primary {
    background: rgba(0, 51, 102, 0.3);
    color: var(--accent);
}

/* ===== MODALS ===== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 24px;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

/* ===== LLM PANEL ===== */
.llm-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-top: 24px;
    overflow: hidden;
}

.llm-panel-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #edf5f2;
}

.llm-panel-header h5 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color: var(--accent);
}

.llm-panel-body {
    padding: 20px;
}

.llm-result {
    padding: 16px;
    background: var(--bg-dark);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    font-size: 14px;
    line-height: 1.7;
    white-space: pre-wrap;
    max-height: 400px;
    overflow-y: auto;
}

.llm-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
}

.llm-status .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.llm-status .dot.online {
    background: var(--success);
    box-shadow: 0 0 6px var(--success);
}

.llm-status .dot.offline {
    background: var(--danger);
    box-shadow: 0 0 6px var(--danger);
}

/* ===== ALERTS ===== */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: alertSlide 0.3s ease;
}

@keyframes alertSlide {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.alert-success {
    background: rgba(0, 200, 83, 0.1);
    border: 1px solid rgba(0, 200, 83, 0.3);
    color: var(--success);
}

.alert-danger {
    background: rgba(255, 23, 68, 0.1);
    border: 1px solid rgba(255, 23, 68, 0.3);
    color: var(--danger);
}

.alert-warning {
    background: rgba(255, 145, 0, 0.1);
    border: 1px solid rgba(255, 145, 0, 0.3);
    color: var(--warning);
}

.alert-info {
    background: rgba(64, 196, 255, 0.1);
    border: 1px solid rgba(64, 196, 255, 0.3);
    color: var(--info);
}

/* ===== TIMELINE ===== */
.timeline {
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 16px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 24px;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    transition: all 0.2s ease;
}

.timeline-item:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -32px;
    top: 20px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent);
    border: 3px solid var(--bg-dark);
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.3);
}

.timeline-date {
    font-size: 13px;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 4px;
}

.timeline-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.timeline-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ===== SEARCH BAR ===== */
.search-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.search-bar .form-control {
    flex: 1;
    min-width: 200px;
}

.search-bar select.form-control {
    flex: 0 0 auto;
    width: 160px;
}

/* ===== GRID ===== */
.grid {
    display: grid;
    gap: 20px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1200px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }

    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }

    .content-area {
        padding: 16px;
    }

    .top-bar {
        padding: 12px 16px;
    }
}

/* ===== LOADING ===== */
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: inline-block;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== CHECKBOX ===== */
.checkbox-cell {
    width: 40px;
    text-align: center;
}

.checkbox-cell input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--accent);
    cursor: pointer;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.empty-state .icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.empty-state p {
    font-size: 14px;
    margin-bottom: 20px;
}

/* ===== TOGGLE SIDEBAR (MOBILE) ===== */
.sidebar-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 24px;
    cursor: pointer;
    padding: 4px;
}

@media (max-width: 768px) {
    .sidebar-toggle {
        display: block;
    }
}

/* ===== PASSWORD MASK ===== */
.password-mask {
    font-family: monospace;
    letter-spacing: 2px;
    color: var(--text-secondary);
}

/* ===== ACTION BUTTONS GROUP ===== */
.action-btns {
    display: flex;
    gap: 4px;
}

/* DONG-A workspace: shared visual language with the faculty portal. */
html { color-scheme: light; }
body { font-size:14px; line-height:1.6; -webkit-font-smoothing:antialiased; }
button, input, select, textarea { font-family:inherit; }
a, button, input, select { touch-action:manipulation; }
a { color:var(--primary); }
button:disabled { cursor:not-allowed; opacity:.55; }
h1,h2,h3,h5 { word-break:keep-all; }
:focus-visible { outline:3px solid #67b8ab; outline-offset:3px; }
.ui-icon { display:inline-block; flex-shrink:0; vertical-align:middle; }
.skip-link { position:fixed;top:-80px;left:16px;z-index:3000;padding:10px 18px;background:#fff;border:1px solid var(--border-color);border-radius:8px; }
.skip-link:focus { top:12px; }
.eyebrow { display:block;font-size:10px;font-weight:700;letter-spacing:1.8px; }
.teal { color:var(--primary); }
.brand { display:flex;gap:13px;align-items:center;text-decoration:none;color:white;text-align:left; }
.brand strong { display:block;font-size:19px;line-height:1.35;letter-spacing:-.6px; }
.brand small { display:block;font-size:10px;color:#b4cbd3;margin-top:5px; }
.brand-mark { display:grid;grid-template-columns:repeat(2,12px);gap:4px;transform:rotate(-6deg);flex-shrink:0; }
.brand-mark i { display:block;width:12px;height:12px;border-radius:2px;background:#a1d3c7; }
.brand-mark i:nth-child(2) { background:white; }
.brand-mark i:nth-child(3) { background:#609a9d; }
.sidebar { width:236px;border:0;padding:0 18px;height:100dvh; }
.sidebar-header { padding:32px 8px 26px;border:0; }
.sidebar-nav { padding:12px 0; }
.nav-section { margin-bottom:26px; }
.nav-section-title { color:#a9c0ca;font-size:10px;letter-spacing:1px;margin-bottom:10px; }
.nav-link { padding:12px;color:#c2d4db;font-size:13px;min-height:44px;gap:12px; }
.nav-link .ui-icon { width:18px;height:18px; }
.nav-link:hover { background:#ffffff0a;color:#fff; }
.nav-link.active { background:#ffffff15;color:#fff;box-shadow:none; }
.nav-link.active::after { content:'';width:5px;height:5px;background:#87d4bf;border-radius:50%;margin-left:auto; }
.sidebar-note { padding:12px 12px 26px; }
.sidebar-note .eyebrow { color:#a5c1c9;font-size:8px; }
.sidebar-note p { color:#e1eded;line-height:1.75;font-size:17px;margin-top:12px; }
.note-line { display:block;width:28px;height:2px;background:#82bcb0;margin-top:17px; }
.sidebar-footer { padding:17px 0;border-top:1px solid #ffffff20; }
.user-info { padding:0 8px;background:transparent; }
.user-avatar { background:#d4e8e4;color:#183b4e;flex-shrink:0; }
.user-details .name { color:white;font-size:12px; }
.user-details .role { color:#b4cbd3;font-size:10px; }
.logout-link { color:#b4cbd3;padding:8px; }
.logout-link:hover { color:white; }
.sidebar-backdrop { display:none; }
.main-content { margin-left:236px;min-width:0;display:flex;flex-direction:column; }
.top-bar { min-height:74px;padding:18px 36px;gap:18px;flex-wrap:wrap;backdrop-filter:none; }
.top-bar-title { display:flex;align-items:center;gap:12px;flex-shrink:0; }
.breadcrumb { display:flex;gap:12px;color:var(--text-secondary);font-size:12px; }
.breadcrumb>span { color:#bdcbcd; }
.top-bar h1 { font-size:13px;font-weight:400; }
.top-bar-actions { gap:8px;flex-wrap:wrap; }
.top-bar-actions>div { flex-wrap:wrap; }
.content-area { padding:36px;max-width:1640px;width:100%;margin:0 auto;flex:1; }
.app-footer { display:flex;justify-content:space-between;gap:16px;margin:0 36px;padding:22px 0;border-top:1px solid var(--border-color);color:#73858b;font-size:10px; }
.app-footer>span:first-child { font-weight:700;letter-spacing:1.5px; }
.page-heading { display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:27px; }
.page-heading .eyebrow { margin-bottom:10px; }
.page-heading h2 { font-size:30px;line-height:1.4;letter-spacing:-1px; }
.heading-dot { color:var(--primary); }
.page-heading p { margin-top:9px;color:var(--text-secondary);font-size:13px; }
.page-heading>.btn { flex-shrink:0; }
.metrics { display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:33px; }
.metric { display:block;padding:21px 22px;background:#fff;border:1px solid var(--border-color);border-radius:14px;color:var(--text-primary);text-decoration:none;transition:transform .15s,border-color .15s; }
.metric:hover { transform:translateY(-2px);border-color:#9dc4bc; }
.metric.featured { background:#e7f1ed;border-color:#d4e5de; }
.metric-top,.metric-bottom { display:flex;justify-content:space-between;align-items:center;gap:8px; }
.metric-top { font-size:12px;color:#516a73; }
.metric-top .ui-icon { color:#648c87;width:18px;height:18px; }
.metric-value { font-size:37px;line-height:1.3;font-weight:700;letter-spacing:-1px;margin:17px 0 15px; }
.metric-value>span { font-size:12px;font-weight:400;color:var(--text-secondary);margin-left:6px; }
.metric-bottom { font-size:11px;color:var(--text-secondary); }
.metric-bottom .ui-icon { width:15px;height:15px; }
.section-heading { display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px; }
.section-heading h3 { font-size:18px;letter-spacing:-.5px; }
.section-heading p { font-size:12px;color:var(--text-secondary);margin-top:5px; }
.section-heading>.eyebrow { color:#85949a;font-size:9px; }
.quick-grid { display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:29px; }
.quick-link { display:block;padding:21px 22px;border:1px solid var(--border-color);border-radius:14px;background:white;color:var(--text-primary);text-decoration:none;transition:border-color .15s,box-shadow .15s; }
.quick-link:hover { border-color:#9dc4bc;box-shadow:var(--shadow-md); }
.quick-icon { width:38px;height:38px;display:flex;align-items:center;justify-content:center;background:#eef5f2;color:#2b7c70;border-radius:10px;margin-bottom:16px; }
.quick-link strong { display:block;font-size:14px; }
.quick-link p { font-size:11px;color:var(--text-secondary);margin-top:6px;word-break:keep-all; }
.quick-go { display:flex;align-items:center;justify-content:space-between;font-size:10px;color:var(--primary);margin-top:21px; }
.quick-go .ui-icon { width:15px;height:15px; }
.overview-bottom { display:grid;grid-template-columns:minmax(0,1.8fr) minmax(270px,1fr);gap:20px;align-items:start; }
.overview-aside { display:grid;gap:18px;min-width:0; }
.card { border-radius:14px;min-width:0; }
.card:hover { border-color:var(--border-color);box-shadow:none; }
.card-header { min-height:67px;padding:20px 23px;gap:12px; }
.card-header h5 { font-size:15px; }
.log-table-wrap { padding:0;overflow-x:auto; }
.text-link { display:inline-flex;align-items:center;gap:7px;color:var(--primary);font-size:11px;text-decoration:none;white-space:nowrap; }
.text-link .ui-icon { width:14px;height:14px; }
.guide-card { padding:23px;background:#edf4f1; }
.guide-card h3 { font-size:21px;line-height:1.6;letter-spacing:-.6px;margin-top:12px; }
.guide-card p { font-size:12px;line-height:1.9;color:var(--text-secondary);margin:11px 0 17px; }
.guide-illustration { display:block;width:100%;height:auto;border-radius:9px;margin:17px 0; }
.history-count { display:flex;align-items:baseline;gap:8px;margin-top:21px;padding-top:14px;border-top:1px solid #d7e5de; }
.history-count strong { font-size:23px;color:#23594f; }
.history-count span { font-size:11px;color:var(--text-secondary); }
.ai-status-card { padding:22px; }
.ai-status-heading { display:flex;align-items:center;gap:9px;color:var(--primary); }
.ai-status-heading h3 { color:var(--text-primary);font-size:14px; }
.ai-status-card>p { margin:12px 0;font-size:12px;color:var(--text-secondary);line-height:1.85; }
.ai-status-card .llm-status { display:flex;flex-wrap:wrap;gap:7px;font-size:11px; }
.ai-status-card .llm-status button { margin-left:auto; }
.btn { min-height:38px;justify-content:center;white-space:nowrap;font-size:12px;line-height:1.4; }
.btn-primary,.btn-accent { color:white;background:var(--primary);border:1px solid var(--primary); }
.btn-primary:hover,.btn-accent:hover { color:white;background:#12665e;box-shadow:0 3px 10px #197a7218;transform:none; }
.btn-outline { background:white;color:#516972; }
.btn-sm { min-height:31px;font-size:11px; }
.btn-danger { background:#fbeced;border-color:#f0cfd3; }
.btn-success { background:#e8f4ec;border-color:#c4e1ce; }
.search-bar { padding:18px;background:white;border:1px solid var(--border-color);border-radius:12px;gap:10px; }
.form-control { background:white;min-height:42px;font-size:13px; }
.form-label { color:#50646d;font-size:12px; }
.form-control::placeholder { color:#87969c; }
.table-container { background:white; }
.data-table { background:white; }
.data-table thead th { background:#f4f7f6;font-size:11px;color:#6c7e84;letter-spacing:0;padding:14px 17px; }
.data-table tbody td { font-size:12px;padding:16px 17px;line-height:1.6; }
.data-table tbody tr:hover { background:#f8fbfa; }
.action-btns .btn { min-width:30px; }
.badge { font-size:10px;padding:3px 9px;white-space:nowrap; }
.badge-primary { background:#e4efeb;color:#266e60; }
.badge-success { background:#e6f3ea; }
.badge-warning { background:#faf0dd; }
.badge-danger { background:#fae9ec; }
.badge-info { background:#e8f1f7; }
.modal-overlay { background:rgba(20,47,63,.4);backdrop-filter:blur(3px); }
.modal { max-height:88dvh; }
.modal-header h3 { font-size:18px; }
.modal-header { background:#f8faf9; }
.llm-panel-header { flex-wrap:wrap;gap:12px; }
.llm-result { background:#f8faf9; }
.llm-status .dot.offline { background:#b88950;box-shadow:none; }
.llm-status .dot.online { box-shadow:none; }
.empty-state { background:white;border:1px solid var(--border-color);border-radius:14px; }
/* Login */
.login-layout { display:grid;grid-template-columns:1fr 1fr;min-height:100svh;background:#fafbf9; }
.login-story { background:#183b4e;color:white;display:flex;flex-direction:column;padding:42px clamp(30px,5vw,82px);min-height:100svh; }
.story-content { margin:auto 0;padding:45px 0; }
.story-content>.eyebrow { color:#a8ccc8;letter-spacing:2px; }
.story-content h1 { font-size:clamp(31px,3.3vw,47px);letter-spacing:-1.8px;line-height:1.4;margin-top:19px; }
.story-description { color:#bfd0d7;font-size:13px;line-height:1.9;margin-top:21px;word-break:keep-all; }
.story-illustration { background:#f3f7f5;border-radius:14px;margin-top:28px;overflow:hidden;max-width:540px; }
.story-illustration img { display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:cover; }
.illustration-caption-bar { display:flex;justify-content:space-between;gap:12px;padding:12px 18px;color:#57756f;font-size:10px; }
.illustration-tag { font-size:9px;font-weight:700;letter-spacing:1px; }
.story-footer { padding-top:18px;border-top:1px solid #ffffff24;display:flex;justify-content:space-between;gap:12px;font-size:9px;color:#a9c0ca; }
.story-footer>span:first-child { letter-spacing:1.4px; }
.login-panel { display:flex;flex-direction:column;align-items:center;justify-content:center;padding:60px 42px;position:relative; }
.login-card { width:100%;max-width:382px; }
.login-card>.eyebrow { margin-bottom:15px; }
.login-card h2 { font-size:28px;letter-spacing:-1px;line-height:1.4; }
.login-intro { font-size:13px;color:var(--text-secondary);margin-top:13px; }
.login-form { margin-top:36px; }
.login-form .form-group { margin-bottom:22px; }
.login-form input { height:51px; }
.login-submit { width:100%;margin-top:8px;justify-content:space-between;padding:14px 18px;min-height:51px;font-size:13px; }
.login-help { display:flex;gap:10px;margin-top:27px;font-size:11px;color:var(--text-secondary);line-height:1.85; }
.login-help .ui-icon { color:#759c96;width:15px;height:15px;margin-top:3px; }
.login-bottom { position:absolute;bottom:28px;color:#84928f;font-size:10px; }
.login-card .alert { margin-top:22px;font-size:12px; }
@media (max-width:1200px) {
    .content-area { padding:28px; }.top-bar { padding:17px 28px; }.metric,.quick-link { padding:18px; }
    .overview-bottom { grid-template-columns:minmax(0,1.4fr) minmax(260px,1fr); }
}
@media (max-width:1020px) {
    .metrics,.quick-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .overview-bottom { grid-template-columns:minmax(0,1fr); }
    .overview-aside { grid-template-columns:repeat(2,minmax(0,1fr));align-items:start; }
    .page-heading>.btn { display:none; }
    .story-content h1 { font-size:32px; }.login-story { padding:30px; }.login-panel { padding:50px 30px; }.login-card h2 { font-size:24px; }
}
@media (max-width:768px) {
    .sidebar { transform:translateX(-100%);width:236px; }.sidebar.open { transform:translateX(0); }
    .sidebar.open+.sidebar-backdrop { display:block;position:fixed;inset:0;background:#142f3f70;border:0;z-index:999; }
    .main-content { margin-left:0; }.sidebar-toggle { display:flex;align-items:center;justify-content:center;width:36px;height:36px; }
    .top-bar { padding:12px 18px;min-height:65px;position:relative;gap:12px; }.top-bar-actions { width:100%; }.top-bar-actions:empty { display:none; }
    .content-area { padding:24px 18px; }.app-footer { margin:0 18px;padding:19px 0; }
    .page-heading h2 { font-size:26px; }.page-heading p { font-size:12px; }.page-heading { margin-bottom:21px; }
    .metrics,.quick-grid { gap:11px; }.metric,.quick-link { padding:18px 16px; }.metric-value { font-size:32px; }
    .section-heading>.eyebrow { display:none; }.overview-aside { grid-template-columns:minmax(0,1fr); }
    .search-bar { flex-wrap:wrap;padding:14px; }.search-bar input.form-control { min-width:100%; }.search-bar select.form-control { flex:1;min-width:110px; }
    .modal { width:calc(100% - 24px); }.modal-body { padding:18px; }.modal-body [style*="grid-template-columns"] { grid-template-columns:minmax(0,1fr)!important; }
    .login-layout { grid-template-columns:1fr; }.login-story { min-height:0;padding:24px; }.story-content { padding:28px 0 0; }.story-content h1 { font-size:30px; }.story-description { margin-top:14px; }
    .story-illustration { max-width:480px;margin:23px auto 0; }.story-illustration img { aspect-ratio:1.8;object-fit:cover; }
    .story-footer { display:none; }.login-panel { padding:38px 24px 30px; }.login-card { max-width:480px; }.login-bottom { position:static;margin-top:35px; }
    .login-form { margin-top:28px; }.login-card h2 { font-size:25px; }
}
@media (max-width:380px) {
    .metrics,.quick-grid { grid-template-columns:minmax(0,1fr); }.breadcrumb { display:none; }.page-heading h2 { font-size:24px; }
}
@media (prefers-reduced-motion:reduce) {
    *,*::before,*::after { animation:none!important;transition:none!important;scroll-behavior:auto!important; }
}
/* Keep dense records readable; the table, not the page, scrolls on small screens. */
.table-container .data-table { min-width:880px; }
.table-container .mentors-table { min-width:1180px; }
.mentors-table td:nth-child(2),.mentors-table td:nth-child(3),.mentors-table td:nth-child(4),.mentors-table td:nth-child(5),.mentors-table td:nth-child(7) { white-space:nowrap; }
.mentors-table td:nth-child(6) { min-width:150px; }
.mentors-table td:nth-child(8) { min-width:240px;max-width:300px; }
@media (max-height:900px) { .sidebar-note { display:none; } }
.btn .ui-icon { width:15px;height:15px; }
.btn-sm .ui-icon { width:13px;height:13px; }
.llm-panel-header .ui-icon { width:19px;height:19px; }
.empty-state>.icon .ui-icon { width:42px;height:42px; }
