:root {
    --bg: #f4f7fb;
    --bg-soft: #eef3f9;
    --surface: rgba(255, 255, 255, 0.82);
    --surface-solid: #ffffff;
    --text: #0f172a;
    --muted: #64748b;
    --line: rgba(15, 23, 42, 0.08);
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --accent: #06b6d4;
    --radius: 22px;
    --radius-sm: 14px;
    --shadow: 0 20px 60px rgba(15, 23, 42, 0.12);
    --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.08);
    --max: 1240px;
}

html, body {
    min-height: 100%;
}

body.site-shell {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.08), transparent 28%),
        radial-gradient(circle at top right, rgba(6, 182, 212, 0.08), transparent 24%),
        linear-gradient(180deg, #f8fbff 0%, #f3f6fb 100%);
}

.container-xl {
    width: 100%;
    max-width: var(--max);
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

.site-main {
    padding-top: 100px;
    padding-bottom: 56px;
}

.site-navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.74) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 6px 24px rgba(15, 23, 42, 0.04);
}

.brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    text-decoration: none !important;
}

.brand-company {
    color: #111827;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.84rem;
}

.brand-separator {
    width: 1px;
    height: 20px;
    background: rgba(15, 23, 42, 0.14);
}

.brand-product,
.brand-product--footer {
    color: var(--primary);
    font-weight: 800;
    letter-spacing: -0.02em;
    font-size: 1.05rem;
}

.site-navbar .nav-link {
    color: var(--text) !important;
    font-weight: 500;
    margin-left: 10px;
    margin-right: 10px;
    opacity: 0.86;
}

.site-navbar .nav-link:hover,
.site-navbar .nav-item.active .nav-link {
    opacity: 1;
    color: var(--primary) !important;
}

.site-btn-login {
    margin-left: 16px;
    border-radius: 999px;
    padding: 10px 16px;
    font-weight: 600;
    box-shadow: var(--shadow-soft);
}

.btn {
    border-radius: 14px;
    font-weight: 600;
    padding: 11px 18px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border: 0;
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.24);
}

.btn-primary:hover {
    transform: translateY(-1px);
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
}

.hero {
    min-height: calc(100vh - 140px);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    margin: 24px;
    border-radius: 32px;
    background:
        linear-gradient(120deg, rgba(8, 15, 34, 0.62), rgba(8, 15, 34, 0.22)),
        url('../images/bg/start.jpg') center center / cover no-repeat;
    box-shadow: var(--shadow);
}

.hero__content {
    max-width: 640px;
    padding: 72px 0;
    color: #fff;
}

.hero__eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero__title {
    font-size: clamp(2.8rem, 7vw, 5rem);
    line-height: 0.96;
    letter-spacing: -0.04em;
    margin-bottom: 20px;
    font-weight: 800;
}

.hero__text {
    font-size: 1.15rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    max-width: 560px;
    margin-bottom: 28px;
}

.hero__actions .btn {
    margin-right: 12px;
    margin-bottom: 12px;
}

.kathema-page-content,
.form-style,
.page-panel,
.typography,
.content-panel {
    background: var(--surface-solid);
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
    padding: 28px;
}

.form-control,
select,
textarea {
    min-height: 48px;
    border-radius: 14px !important;
    border: 1px solid #dbe3ee !important;
    box-shadow: none !important;
}

.form-control:focus,
select:focus,
textarea:focus {
    border-color: rgba(37, 99, 235, 0.55) !important;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12) !important;
}

table {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
}

.site-footer {
    padding: 24px 0 36px;
    border-top: 1px solid var(--line);
    background: transparent;
}

.site-footer__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.site-footer__links a {
    margin-left: 18px;
    color: var(--muted);
    text-decoration: none;
}

.site-footer__links a:hover {
    color: var(--primary);
    text-decoration: none;
}

@media (max-width: 991px) {
    .site-main {
        padding-top: 88px;
    }

    .hero {
        margin: 12px;
        min-height: auto;
    }

    .hero__content {
        padding: 54px 0;
    }

    .site-btn-login {
        margin-left: 0;
        margin-top: 12px;
    }
}

.app-shell {
    padding-top: 36px;
    padding-bottom: 56px;
}

.app-page-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    margin-bottom: 28px;
}

.app-eyebrow {
    margin: 0 0 8px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #2563eb;
}

.app-title {
    margin: 0;
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.02;
    letter-spacing: -0.03em;
    font-weight: 800;
    color: #0f172a;
}

.app-title-muted {
    color: #64748b;
    font-weight: 700;
}

.app-subtitle {
    margin: 12px 0 0;
    color: #64748b;
    font-size: 1.02rem;
    max-width: 760px;
}

.app-head-actions {
    flex-shrink: 0;
}

.app-btn-action {
    border-radius: 16px;
    padding: 12px 18px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.panel {
    background: rgba(255,255,255,0.9);
    border: 1px solid rgba(15,23,42,0.06);
    border-radius: 28px;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.07);
    padding: 22px;
    margin-bottom: 28px;
}

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

.panel-title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: #0f172a;
}

.panel-meta {
    color: #64748b;
    font-size: 0.92rem;
}

.desktop-table {
    width: 100%;
}

.table-head {
    padding: 0 14px 12px;
    color: #64748b;
    font-size: 0.88rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 1px solid rgba(15,23,42,0.08);
}

.table-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 12px;
}

.table-grid-exams,
.table-grid-schools {
    display: grid;
    align-items: center;
    gap: 18px;
}

.table-grid-exams {
    grid-template-columns: 90px minmax(280px, 2fr) 120px 140px 160px;
}

.table-grid-schools {
    grid-template-columns: 1.5fr 160px 100px;
}

.table-row {
    padding: 16px 14px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid rgba(15,23,42,0.06);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.table-row:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(15,23,42,0.08);
    border-color: rgba(37,99,235,0.14);
}

.row-card-link {
    color: inherit;
    text-decoration: none !important;
}

.row-link-main {
    color: #0f172a;
    font-weight: 700;
    text-decoration: none !important;
}

.row-link-main:hover {
    color: #2563eb;
}

.row-link-sub {
    margin-top: 4px;
    font-size: 0.92rem;
    color: #64748b;
}

.table-icon-link,
.table-open-link {
    color: #2563eb;
    font-size: 1.1rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 22px;
}

.feature-card {
    grid-column: span 6;
    min-height: 220px;
    padding: 28px;
    border-radius: 28px;
    background:
        linear-gradient(135deg, rgba(255,255,255,0.96), rgba(248,250,252,0.92));
    border: 1px solid rgba(15,23,42,0.06);
    box-shadow: 0 16px 42px rgba(15,23,42,0.08);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    color: inherit;
    text-decoration: none !important;
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 46px rgba(15,23,42,0.12);
}

.feature-card__eyebrow {
    margin: 0 0 10px;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #2563eb;
    font-weight: 700;
}

.feature-card__title {
    margin: 0 0 10px;
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
}

.feature-card__text {
    margin: 0;
    color: #64748b;
    max-width: 500px;
    line-height: 1.6;
}

.feature-card__icon img {
    max-width: 72px;
    max-height: 72px;
    opacity: 0.92;
}

.app-bottom-bar {
    display: flex;
    justify-content: flex-end;
    margin-top: 16px;
}

.app-back-btn {
    border-radius: 16px;
    padding: 11px 16px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.mobile-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mobile-select-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 18px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid rgba(15,23,42,0.06);
    color: inherit;
    text-decoration: none !important;
}

.mobile-select-card__title {
    font-weight: 700;
    color: #0f172a;
}

.mobile-select-card__meta {
    margin-top: 4px;
    color: #64748b;
    font-size: 0.94rem;
}

@media (max-width: 991px) {
    .app-page-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .feature-card {
        grid-column: span 12;
        min-height: auto;
    }
}

.table-grid-exams {
    display: grid;
    grid-template-columns: 90px minmax(320px, 2fr) minmax(220px, 1.3fr) 90px 180px;
    gap: 18px;
    align-items: center;
}

.table-row {
    padding: 18px 18px;
    border-radius: 20px;
    background: rgba(255,255,255,0.96);
    border: 1px solid rgba(15,23,42,0.06);
    box-shadow: 0 10px 24px rgba(15,23,42,0.05);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.table-row:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 34px rgba(15,23,42,0.09);
    border-color: rgba(37,99,235,0.18);
}

.cell-title {
    min-width: 0;
}

.row-link-main {
    display: inline-block;
    color: #0f172a;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none !important;
    letter-spacing: -0.01em;
}

.row-link-main:hover {
    color: #2563eb;
}

.row-link-sub {
    margin-top: 6px;
    color: #64748b;
    font-size: 0.92rem;
    line-height: 1.45;
}

.status-control {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    font-size: 1rem;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.status-control:hover {
    transform: scale(1.04);
}

.status-control--start {
    background: rgba(34,197,94,0.12);
    color: #16a34a;
}

.status-control--stop {
    background: rgba(239,68,68,0.12);
    color: #dc2626;
}

.row-actions-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mini-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid rgba(15,23,42,0.06);
    color: #2563eb;
    text-decoration: none !important;
    font-size: 0.88rem;
    font-weight: 600;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.mini-action:hover {
    background: #eff6ff;
    border-color: rgba(37,99,235,0.18);
    transform: translateY(-1px);
}

.mini-action--danger {
    color: #dc2626;
    background: rgba(254,242,242,0.8);
}

.mini-action--danger:hover {
    background: rgba(254,226,226,1);
    border-color: rgba(220,38,38,0.18);
}

.table-icon-link {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    color: #2563eb;
    border: 1px solid rgba(15,23,42,0.06);
    text-decoration: none !important;
}

.table-icon-link:hover {
    background: #eff6ff;
    border-color: rgba(37,99,235,0.16);
}

@media (max-width: 991px) {
    .table-grid-exams {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .cell-actions,
    .cell-info,
    .cell-accounts,
    .cell-status {
        text-align: left !important;
    }
}

.table-grid-schools {
    display: grid;
    grid-template-columns: minmax(260px, 1.8fr) 180px 80px;
    gap: 18px;
    align-items: center;
}

.meta-pill {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 0.88rem;
    font-weight: 700;
    border: 1px solid rgba(37, 99, 235, 0.12);
}

.table-open-link {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border: 1px solid rgba(15,23,42,0.06);
    color: #2563eb;
    font-size: 1rem;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.row-card-link:hover .table-open-link {
    background: #eff6ff;
    border-color: rgba(37,99,235,0.16);
    transform: translateY(-1px);
}

.container-form {
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

.app-shell--narrow {
    padding-top: 32px;
    padding-bottom: 56px;
}

.app-page-head--compact {
    margin-bottom: 20px;
}

.app-title--medium {
    font-size: clamp(2.1rem, 4vw, 3rem);
    letter-spacing: -0.025em;
}

.app-subtitle--compact {
    max-width: 620px;
    font-size: 0.98rem;
    line-height: 1.6;
    color: #64748b;
}

.panel-form {
    padding: 22px 22px;
    border-radius: 24px;
    box-shadow: 0 12px 34px rgba(15,23,42,0.07);
}

.panel-form .field {
    margin-bottom: 20px;
}

.panel-form label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.94rem;
    font-weight: 600;
    color: #334155;
}

.panel-form .form-control,
.panel-form input[type="text"],
.panel-form input[type="datetime"],
.panel-form input[type="date"],
.panel-form input[type="time"],
.panel-form input[type="datetime-local"],
.panel-form textarea,
.panel-form select {
    width: 100%;
    box-sizing: border-box;
    min-height: 46px;
    padding: 10px 14px;
    border-radius: 14px !important;
    border: 1px solid #dbe3ee !important;
    background: #fff;
    box-shadow: none !important;
    font-size: 0.98rem;
}

.panel-form textarea {
    min-height: 110px;
}

.panel-form .Actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

.panel-form .action,
.panel-form button,
.panel-form input[type="submit"] {
    border-radius: 14px !important;
    padding: 11px 18px;
    font-size: 0.96rem;
    font-weight: 700;
    border: 0;
    color: #fff;
    background: linear-gradient(135deg, #2563eb, #0ea5e9);
    box-shadow: 0 12px 24px rgba(37,99,235,0.2);
}

.panel-form .action:hover,
.panel-form button:hover,
.panel-form input[type="submit"]:hover {
    transform: translateY(-1px);
}

@media (max-width: 991px) {
    .container-form {
        max-width: 100%;
        padding-left: 16px;
        padding-right: 16px;
    }

    .panel-form {
        padding: 18px;
        border-radius: 20px;
    }
}

.panel-form,
.kathema-page-content,
.panel {
    overflow: visible !important;
}

.flatpickr-calendar {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 18px;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.14);
    z-index: 99999 !important;
}

.flatpickr-calendar.open {
    margin-top: 8px;
}

.panel-form--compact {
    max-width: 980px;
    margin: 0 auto;
    padding: 20px 22px;
}

.panel-form--compact .field {
    margin-bottom: 16px;
}

.panel-form--compact .Actions {
    margin-top: 8px;
}

.panel-form--compact label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #334155;
}

.panel-form--compact select,
.panel-form--compact .form-control {
    min-height: 46px;
    font-size: 0.98rem;
}

.panel-form--compact .action,
.panel-form--compact input[type="submit"],
.panel-form--compact button {
    min-width: 138px;
}

.panel-form {
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
    border-radius: 22px;
}

.app-title--medium {
    font-size: clamp(1.9rem, 3.5vw, 2.5rem);
    font-weight: 750;
}

.context-note {
    margin-bottom: 14px;
    padding: 12px 14px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid rgba(15,23,42,0.06);
    color: #64748b;
    font-size: 0.94rem;
}

.panel-head--compact {
    margin-bottom: 12px;
}

.data-block {
    display: flex;
    align-items: center;
    min-height: 56px;
}

.data-pill {
    display: inline-flex;
    align-items: center;
    padding: 12px 16px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid rgba(15,23,42,0.06);
    color: #0f172a;
    font-weight: 700;
    letter-spacing: 0.02em;
    font-size: 1rem;
}

.action-cluster {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.action-btn-secondary {
    border-radius: 14px;
    padding: 11px 16px;
    font-weight: 700;
}

.action-btn-primary {
    border-radius: 14px;
    padding: 11px 16px;
    font-weight: 700;
}

.app-back-btn {
    border-radius: 14px;
    padding: 11px 16px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

@media (max-width: 767px) {
    .action-cluster {
        justify-content: stretch;
        flex-direction: column;
    }

    .action-cluster .btn {
        width: 100%;
    }
}

.table-grid-students {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) minmax(280px, 1.4fr);
    gap: 18px;
    align-items: center;
}

.panel-table--compact {
    padding: 20px 20px;
}

.code-pill {
    display: inline-flex;
    align-items: center;
    padding: 10px 14px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid rgba(15,23,42,0.06);
    color: #0f172a;
    font-weight: 700;
    letter-spacing: 0.02em;
    font-size: 0.96rem;
}

.student-name {
    color: #0f172a;
    font-weight: 600;
}

.student-name--empty {
    color: #94a3b8;
    font-weight: 500;
    font-style: italic;
}

.panel-actions {
    margin-top: 18px;
}

.action-cluster {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.action-btn-secondary,
.action-btn-primary {
    border-radius: 14px;
    padding: 11px 16px;
    font-weight: 700;
}

@media (max-width: 767px) {
    .table-grid-students {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .action-cluster {
        flex-direction: column;
        align-items: stretch;
    }

    .action-cluster .btn {
        width: 100%;
    }
}

.panel-upload {
    padding: 22px;
}

.panel-upload .field.frontenduploadfield {
    margin-bottom: 0;
}

.panel-upload label.left {
    display: block;
    margin-bottom: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #334155;
}

.panel-upload .dropzone,
.panel-upload .droparea {
    border-radius: 18px !important;
    background: #fbfdff;
}

.panel-upload .droparea {
    border: 1px dashed rgba(37, 99, 235, 0.24) !important;
    padding: 28px 20px !important;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.panel-upload .droparea:hover {
    border-color: rgba(37, 99, 235, 0.42) !important;
    background: #f8fbff;
}

.panel-upload .droparea a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 16px;
    border-radius: 14px;
    background: linear-gradient(135deg, #2563eb, #0ea5e9);
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 700;
    box-shadow: 0 10px 22px rgba(37,99,235,0.18);
}

.panel-upload .dz-previews-container {
    margin-top: 16px;
}

.panel-upload .dz-preview,
.panel-upload .dz-image-preview {
    border-radius: 16px;
    border: 1px solid rgba(15,23,42,0.06);
    background: #fff;
    box-shadow: 0 8px 20px rgba(15,23,42,0.05);
}

.panel-upload .action,
.panel-upload input[type="submit"],
.panel-upload button {
    border-radius: 14px !important;
    padding: 10px 16px;
    font-weight: 700;
    border: 0;
    color: #fff;
    background: linear-gradient(135deg, #2563eb, #0ea5e9);
    box-shadow: 0 12px 24px rgba(37,99,235,0.2);
}

.panel-upload .Actions {
    display: flex;
    justify-content: flex-start;
    margin-top: 16px;
}

.container-live {
    max-width: 1120px;
}

.table-grid-running {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(280px, 1.4fr) 180px;
    gap: 18px;
    align-items: center;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 700;
    border: 1px solid transparent;
}

.status-badge--online {
    background: rgba(34, 197, 94, 0.12);
    color: #15803d;
    border-color: rgba(34, 197, 94, 0.18);
}

.status-badge--offline {
    background: rgba(148, 163, 184, 0.14);
    color: #475569;
    border-color: rgba(148, 163, 184, 0.2);
}

.status-badge--warning {
    background: rgba(239, 68, 68, 0.12);
    color: #dc2626;
    border-color: rgba(239, 68, 68, 0.16);
}

.credential-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.credential-item {
    min-width: 0;
}

.credential-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #64748b;
}

.credential-value {
    padding: 12px 14px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid rgba(15,23,42,0.06);
    color: #0f172a;
    font-weight: 700;
    word-break: break-all;
}

@media (max-width: 767px) {
    .table-grid-running {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .credential-grid {
        grid-template-columns: 1fr;
    }
}

.table-grid-running {
    display: grid;
    grid-template-columns: minmax(200px, 1fr) minmax(260px, 1.3fr) 170px minmax(220px, 1fr);
    gap: 18px;
    align-items: center;
}

.row-actions-inline--tight {
    justify-content: flex-end;
}

@media (max-width: 991px) {
    .table-grid-running {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .row-actions-inline--tight {
        justify-content: flex-start;
    }
}

.container-live {
    max-width: 1120px;
}

.panel-credentials {
    margin-bottom: 22px;
}

.credential-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.credential-item {
    min-width: 0;
}

.credential-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #64748b;
    letter-spacing: 0.01em;
}

.credential-value {
    padding: 13px 15px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid rgba(15,23,42,0.06);
    color: #0f172a;
    font-weight: 700;
    word-break: break-all;
}

.panel-live-users .panel-head {
    margin-bottom: 16px;
}

.table-grid-running {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(260px, 1.4fr) 170px minmax(230px, 1fr);
    gap: 18px;
    align-items: center;
}

.participant-primary {
    color: #0f172a;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.participant-name {
    color: #0f172a;
    font-weight: 600;
}

.participant-name--empty {
    color: #94a3b8;
    font-style: italic;
    font-weight: 500;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 700;
    border: 1px solid transparent;
}

.status-badge--online {
    background: rgba(34, 197, 94, 0.12);
    color: #15803d;
    border-color: rgba(34, 197, 94, 0.18);
}

.status-badge--offline {
    background: rgba(148, 163, 184, 0.14);
    color: #475569;
    border-color: rgba(148, 163, 184, 0.2);
}

.status-badge--warning {
    background: rgba(239, 68, 68, 0.12);
    color: #dc2626;
    border-color: rgba(239, 68, 68, 0.16);
}

.row-actions-inline--tight {
    justify-content: flex-end;
}

.mini-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid rgba(15,23,42,0.06);
    color: #2563eb;
    text-decoration: none !important;
    font-size: 0.88rem;
    font-weight: 600;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.mini-action:hover {
    background: #eff6ff;
    border-color: rgba(37,99,235,0.18);
    transform: translateY(-1px);
}

.mini-action--danger {
    color: #dc2626;
    background: rgba(254,242,242,0.85);
}

.mini-action--danger:hover {
    background: rgba(254,226,226,1);
    border-color: rgba(220,38,38,0.18);
}

@media (max-width: 991px) {
    .table-grid-running {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .credential-grid {
        grid-template-columns: 1fr;
    }

    .row-actions-inline--tight {
        justify-content: flex-start;
    }
}

.panel-head--stacked {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 16px;
}

.panel-subtitle {
    margin: 6px 0 0;
    color: #64748b;
    font-size: 0.94rem;
}

.live-user-row {
    display: grid;
    grid-template-columns: minmax(240px, 1.2fr) 170px minmax(280px, 1fr);
    gap: 18px;
    align-items: center;
}

.live-user-row__main {
    min-width: 0;
}

.participant-primary {
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.01em;
}

.participant-secondary {
    margin-top: 4px;
    color: #64748b;
    font-size: 0.92rem;
}

.live-user-row__status {
    display: flex;
    justify-content: flex-start;
}

.live-user-row__actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

@media (max-width: 991px) {
    .live-user-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .live-user-row__actions {
        justify-content: flex-start;
    }
}

.homepage-app {
    padding-top: 20px;
    padding-bottom: 56px;
}

.hero-product {
    position: relative;
    padding: 36px 0 26px;
}

.hero-product__grid {
    display: grid;
    grid-template-columns: minmax(320px, 1fr) minmax(360px, 540px);
    gap: 42px;
    align-items: center;
    min-height: 72vh;
}

.hero-product__content {
    max-width: 620px;
}

.hero-product__eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.08);
    color: #2563eb;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-product__title {
    margin: 0 0 16px;
    font-size: clamp(3rem, 8vw, 5.4rem);
    line-height: 0.95;
    font-weight: 800;
    letter-spacing: -0.05em;
    color: #0f172a;
}

.hero-product__text {
    margin: 0 0 28px;
    max-width: 560px;
    font-size: 1.12rem;
    line-height: 1.75;
    color: #64748b;
}

.hero-product__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 28px;
}

.hero-product__actions .btn {
    min-width: 170px;
    border-radius: 16px;
    font-weight: 700;
    padding: 13px 20px;
}

.hero-product__meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(120px, 1fr));
    gap: 14px;
    max-width: 640px;
}

.hero-product__meta-item {
    padding: 16px 16px;
    border-radius: 18px;
    background: rgba(255,255,255,0.8);
    border: 1px solid rgba(15,23,42,0.06);
    box-shadow: 0 10px 28px rgba(15,23,42,0.05);
}

.hero-product__meta-item strong {
    display: block;
    margin-bottom: 4px;
    color: #0f172a;
    font-size: 0.98rem;
    font-weight: 700;
}

.hero-product__meta-item span {
    color: #64748b;
    font-size: 0.9rem;
}

.hero-product__visual {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-window {
    position: relative;
    width: 100%;
    max-width: 520px;
    border-radius: 28px;
    overflow: hidden;
    background: rgba(255,255,255,0.84);
    border: 1px solid rgba(15,23,42,0.07);
    box-shadow: 0 28px 80px rgba(15,23,42,0.16);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 2;
}

.product-window__topbar {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 48px;
    padding: 0 18px;
    border-bottom: 1px solid rgba(15,23,42,0.06);
    background: rgba(248,250,252,0.9);
}

.product-window__topbar span {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(100,116,139,0.28);
}

.product-window__body {
    display: grid;
    grid-template-columns: 78px 1fr;
    min-height: 420px;
}

.product-window__sidebar {
    padding: 18px 14px;
    border-right: 1px solid rgba(15,23,42,0.06);
    background: rgba(248,250,252,0.72);
}

.product-window__navitem {
    height: 42px;
    margin-bottom: 12px;
    border-radius: 12px;
    background: rgba(148,163,184,0.18);
}

.product-window__navitem.active {
    background: linear-gradient(135deg, rgba(37,99,235,0.26), rgba(14,165,233,0.2));
}

.product-window__content {
    padding: 22px;
}

.product-window__headline {
    width: 46%;
    height: 18px;
    border-radius: 10px;
    background: rgba(15,23,42,0.16);
    margin-bottom: 10px;
}

.product-window__subline {
    width: 72%;
    height: 12px;
    border-radius: 10px;
    background: rgba(100,116,139,0.16);
    margin-bottom: 22px;
}

.product-card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 18px;
}

.product-card {
    padding: 16px;
    border-radius: 18px;
    background: rgba(248,250,252,0.95);
    border: 1px solid rgba(15,23,42,0.05);
}

.product-card--large {
    grid-column: span 2;
}

.product-card__title {
    width: 44%;
    height: 12px;
    border-radius: 10px;
    background: rgba(37,99,235,0.24);
    margin-bottom: 12px;
}

.product-card__line {
    width: 100%;
    height: 10px;
    border-radius: 10px;
    background: rgba(100,116,139,0.15);
    margin-bottom: 8px;
}

.product-card__line.short {
    width: 64%;
}

.product-table__row {
    display: grid;
    grid-template-columns: 1.2fr 1fr 0.8fr 0.8fr;
    gap: 10px;
    margin-bottom: 10px;
}

.product-table__row span {
    display: block;
    height: 12px;
    border-radius: 10px;
    background: rgba(148,163,184,0.16);
}

.product-glow {
    position: absolute;
    border-radius: 999px;
    filter: blur(50px);
    opacity: 0.55;
    z-index: 1;
}

.product-glow--one {
    width: 240px;
    height: 240px;
    background: rgba(37, 99, 235, 0.24);
    top: 30px;
    right: 20px;
}

.product-glow--two {
    width: 180px;
    height: 180px;
    background: rgba(6, 182, 212, 0.18);
    bottom: 40px;
    left: 20px;
}

.home-features {
    padding-top: 28px;
}

.section-head {
    margin-bottom: 22px;
}

.section-head__eyebrow {
    display: inline-block;
    margin-bottom: 8px;
    color: #2563eb;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.section-head__title {
    margin: 0;
    font-size: clamp(1.7rem, 4vw, 2.4rem);
    line-height: 1.1;
    color: #0f172a;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.feature-box {
    padding: 22px;
    border-radius: 22px;
    background: rgba(255,255,255,0.88);
    border: 1px solid rgba(15,23,42,0.06);
    box-shadow: 0 12px 34px rgba(15,23,42,0.06);
}

.feature-box h3 {
    margin: 0 0 12px;
    font-size: 1.08rem;
    font-weight: 700;
    color: #0f172a;
}

.feature-box p {
    margin: 0;
    color: #64748b;
    line-height: 1.65;
}

@media (max-width: 991px) {
    .hero-product__grid {
        grid-template-columns: 1fr;
        gap: 26px;
        min-height: auto;
    }

    .hero-product__visual {
        min-height: auto;
    }

    .hero-product__meta {
        grid-template-columns: 1fr;
    }

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

.container-form--auth {
    max-width: 760px;
}

.auth-layout {
    display: flex;
    justify-content: center;
    padding-top: 28px;
    padding-bottom: 56px;
}

.auth-card {
    width: 100%;
    padding: 28px;
    border-radius: 28px;
    background: rgba(255,255,255,0.92);
    border: 1px solid rgba(15,23,42,0.06);
    box-shadow: 0 18px 48px rgba(15,23,42,0.08);
}

.auth-intro {
    margin-bottom: 18px;
    color: #475569;
    line-height: 1.65;
}

.auth-card form {
    margin-top: 10px;
}

.auth-card fieldset {
    margin: 0;
    padding: 0;
    border: 0;
}

.auth-card .field {
    margin-bottom: 18px;
}

.auth-card .field label.left,
.auth-card .field label.right {
    display: block;
    margin-bottom: 8px;
    color: #334155;
    font-size: 0.95rem;
    font-weight: 600;
}

.auth-card .middleColumn {
    width: 100%;
}

.auth-card input[type="text"],
.auth-card input[type="email"],
.auth-card input[type="password"] {
    width: 100%;
    min-height: 48px;
    padding: 11px 14px;
    border-radius: 14px;
    border: 1px solid #dbe3ee;
    background: #fff;
    color: #0f172a;
    box-shadow: none;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.auth-card input[type="text"]:focus,
.auth-card input[type="email"]:focus,
.auth-card input[type="password"]:focus {
    border-color: rgba(37,99,235,0.55);
    box-shadow: 0 0 0 4px rgba(37,99,235,0.12);
}

.auth-card .field.checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
}

.auth-card .field.checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
}

.auth-card .field.checkbox label.right {
    margin: 0;
    font-size: 0.94rem;
    font-weight: 500;
    color: #475569;
}

.auth-card .btn-toolbar {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.auth-card .btn-toolbar .action,
.auth-card .btn-toolbar input[type="submit"] {
    appearance: none;
    border: 0;
    min-height: 46px;
    padding: 11px 18px;
    border-radius: 14px;
    background: linear-gradient(135deg, #2563eb, #0ea5e9);
    color: #fff;
    font-size: 0.96rem;
    font-weight: 700;
    box-shadow: 0 12px 24px rgba(37,99,235,0.2);
    cursor: pointer;
}

.auth-card .btn-toolbar .action:hover,
.auth-card .btn-toolbar input[type="submit"]:hover {
    transform: translateY(-1px);
}

.auth-card #ForgotPassword {
    margin: 0;
}

.auth-card #ForgotPassword a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
}

.auth-card #ForgotPassword a:hover {
    text-decoration: underline;
}

.auth-card .message {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(239,68,68,0.08);
    border: 1px solid rgba(239,68,68,0.14);
    color: #b91c1c;
    font-size: 0.94rem;
}

.auth-card .hidden,
.auth-card .clear {
    display: none !important;
}

@media (max-width: 767px) {
    .auth-card {
        padding: 20px;
        border-radius: 22px;
    }

    .auth-card .btn-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .auth-card .btn-toolbar .action,
    .auth-card .btn-toolbar input[type="submit"] {
        width: 100%;
    }
}

.panel-upload #Form_UploadHandoutForm_HandoutSecret_Holder,
.panel-upload .field.password {
    margin-top: 18px;
    margin-bottom: 18px;
}

.panel-upload .field.password label.left {
    display: block;
    margin-bottom: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #334155;
}

.panel-upload .field.password .middleColumn {
    width: 100%;
    max-width: 100%;
}

.panel-upload .field.password input[type="password"] {
    width: 100%;
    max-width: 100%;
    min-height: 46px;
    padding: 10px 14px;
    border-radius: 14px !important;
    border: 1px solid #dbe3ee !important;
    background: #fff;
    box-shadow: none !important;
    box-sizing: border-box;
    font-size: 0.98rem;
}

.panel-upload .field.password input[type="password"]:focus {
    border-color: rgba(37, 99, 235, 0.55) !important;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12) !important;
}

.status-badge--danger {
    background: rgba(220, 38, 38, 0.14);
    color: #b91c1c;
    border-color: rgba(220, 38, 38, 0.22);
}
