.nns-tlms-wrap,
.nns-tlms-panel {
    max-width: 1180px;
    margin: 18px auto;
    color: #071633;
}

.nns-tlms-hero,
.nns-tlms-section,
.nns-tlms-panel {
    background: #fff;
    border: 1px solid #d9e2f1;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 20px;
}

.nns-tlms-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.nns-tlms-portal {
    width: min(1180px, calc(100vw - 32px));
}

.nns-tlms-dashboard-hero {
    align-items: stretch;
    background:
        radial-gradient(circle at 85% 12%, rgba(110, 169, 255, 0.32), transparent 30%),
        linear-gradient(135deg, #051A40 0%, #082A63 46%, #114AAE 100%);
    border: 0;
    border-radius: 14px;
    box-shadow: 0 18px 42px rgba(8, 42, 99, 0.18);
    color: #fff;
    overflow: hidden;
    padding: clamp(22px, 4vw, 40px);
    position: relative;
}

.nns-tlms-dashboard-hero::after {
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: inherit;
    content: "";
    inset: 0;
    pointer-events: none;
    position: absolute;
}

.nns-tlms-hero-content {
    max-width: 760px;
    position: relative;
    z-index: 1;
}

.nns-tlms-eyebrow {
    color: #6EA9FF;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    margin: 0 0 8px;
    text-transform: uppercase;
}

.nns-tlms-hero h1,
.nns-tlms-section h2,
.nns-tlms-panel h2 {
    margin: 0 0 8px;
    line-height: 1.2;
}

.nns-tlms-dashboard-hero h1 {
    color: #fff;
    font-size: clamp(2rem, 5vw, 3.35rem);
    letter-spacing: 0;
    max-width: 680px;
}

.nns-tlms-learner-email {
    color: rgba(255, 255, 255, 0.82);
    font-size: 1rem;
    margin: 10px 0 0;
}

.nns-tlms-stat-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 24px;
    max-width: 640px;
}

.nns-tlms-stat {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    padding: 14px 16px;
}

.nns-tlms-stat strong {
    color: #fff;
    display: block;
    font-size: 1.45rem;
    line-height: 1;
}

.nns-tlms-stat span {
    color: rgba(255, 255, 255, 0.78);
    display: block;
    font-size: 0.82rem;
    margin-top: 6px;
}

.nns-tlms-hero-actions {
    align-content: center;
    align-items: flex-end;
    flex-direction: column;
    justify-content: center;
    min-width: 178px;
    position: relative;
    z-index: 1;
}

.nns-tlms-training-section {
    border-radius: 14px;
    padding: clamp(20px, 3vw, 28px);
}

.nns-tlms-section-header {
    align-items: end;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.nns-tlms-section-header h2 {
    color: #082A63;
    font-size: clamp(1.55rem, 3vw, 2.25rem);
}

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

.nns-tlms-card {
    border: 1px solid #d9e2f1;
    border-radius: 12px;
    box-shadow: 0 10px 26px rgba(8, 42, 99, 0.06);
    display: flex;
    flex-direction: column;
    min-height: 230px;
    padding: 20px;
    background: linear-gradient(180deg, #fff 0%, #fbfdff 100%);
}

.nns-tlms-card h3 {
    color: #082A63;
    font-size: 1.08rem;
    line-height: 1.25;
    margin: 14px 0 auto;
}

.nns-tlms-muted {
    color: #5d6980;
}

.nns-tlms-card-top,
.nns-tlms-progress-row {
    align-items: center;
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.nns-tlms-code-badge,
.nns-tlms-status-badge {
    border-radius: 999px;
    display: inline-flex;
    font-size: 0.75rem;
    font-weight: 800;
    line-height: 1;
    padding: 7px 10px;
    white-space: nowrap;
}

.nns-tlms-code-badge {
    background: #edf4ff;
    color: #114AAE;
}

.nns-tlms-status-badge {
    background: #eef2f7;
    color: #526173;
}

.nns-tlms-status-badge.is-progress {
    background: #e9f2ff;
    color: #0b4ac2;
}

.nns-tlms-status-badge.is-completed {
    background: #e7f5ee;
    color: #11633d;
}

.nns-tlms-progress-row {
    color: #526173;
    font-size: 0.86rem;
    margin-top: 24px;
}

.nns-tlms-progress-row strong {
    color: #082A63;
}

.nns-tlms-progress {
    height: 8px;
    background: #e8edf6;
    border-radius: 999px;
    overflow: hidden;
    margin-top: 8px;
}

.nns-tlms-progress span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #2C6DDE 0%, #6EA9FF 100%);
}

.nns-tlms-empty {
    background: #f4f7fb;
    border: 1px dashed #ccd6e6;
    border-radius: 12px;
    padding: 24px;
}

.nns-tlms-empty h3 {
    margin: 0 0 8px;
}

.nns-tlms-error-text {
    color: #b91c1c;
    margin-top: 18px;
}

.nns-tlms-button {
    display: inline-block;
    border: 0;
    border-radius: 8px;
    padding: 11px 17px;
    background: #082d70;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    font-weight: 700;
}

.nns-tlms-button:hover,
.nns-tlms-button:focus {
    color: #fff;
    background: #0b4ac2;
}

.nns-tlms-button-secondary {
    background: rgba(82, 97, 115, 0.92);
}

.nns-tlms-button-secondary:hover,
.nns-tlms-button-secondary:focus {
    background: #394657;
}

.nns-tlms-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin: 0;
}

.nns-tlms-form {
    display: grid;
    gap: 14px;
}

.nns-tlms-form label {
    display: grid;
    gap: 6px;
    font-weight: 600;
}

.nns-tlms-form input {
    max-width: 460px;
    padding: 10px;
    border: 1px solid #ccd6e6;
    border-radius: 6px;
}

.nns-tlms-hp {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.nns-tlms-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nns-tlms-list li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #e6ecf5;
}

.nns-tlms-notice {
    padding: 12px 14px;
    border-left: 4px solid #0b4ac2;
    background: #edf4ff;
    margin-bottom: 16px;
}

.nns-tlms-notice-warning {
    border-left-color: #b45309;
    background: #fff7ed;
}

.nns-tlms-notice-error {
    border-left-color: #b91c1c;
    background: #fef2f2;
    color: #7f1d1d;
}

.nns-tlms-search-form {
    grid-template-columns: minmax(240px, 460px) auto;
    align-items: end;
    margin-bottom: 20px;
}

.nns-tlms-certificate-result {
    border: 1px solid #d9e2f1;
    border-radius: 8px;
    padding: 20px;
    background: #fbfdff;
}

.nns-tlms-result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid #e6ecf5;
    padding-bottom: 14px;
    margin-bottom: 18px;
}

.nns-tlms-result-header h3 {
    margin: 4px 0 0;
}

.nns-tlms-status {
    display: inline-block;
    border-radius: 999px;
    padding: 6px 12px;
    background: #e7f5ee;
    color: #11633d;
    font-weight: 700;
}

.nns-tlms-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.nns-tlms-detail-grid h4 {
    margin: 0 0 12px;
}

.nns-tlms-detail-grid dl {
    margin: 0;
}

.nns-tlms-detail-grid dt {
    color: #5d6980;
    font-size: 13px;
    margin-top: 10px;
}

.nns-tlms-detail-grid dd {
    margin: 2px 0 0;
    font-weight: 600;
}

@media (max-width: 700px) {
    .nns-tlms-list li,
    .nns-tlms-result-header {
        display: block;
    }

    .nns-tlms-search-form {
        grid-template-columns: 1fr;
    }

    .nns-tlms-button {
        margin-top: 12px;
    }
}

@media (max-width: 980px) {
    .nns-tlms-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .nns-tlms-dashboard-hero {
        flex-direction: column;
    }

    .nns-tlms-hero-actions {
        align-items: flex-start;
        flex-direction: row;
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {
    .nns-tlms-portal {
        width: min(100%, calc(100vw - 24px));
    }

    .nns-tlms-grid,
    .nns-tlms-stat-grid {
        grid-template-columns: 1fr;
    }

    .nns-tlms-dashboard-hero {
        border-radius: 12px;
        padding: 22px;
    }

    .nns-tlms-dashboard-hero h1 {
        font-size: clamp(1.85rem, 10vw, 2.45rem);
    }

    .nns-tlms-hero-actions,
    .nns-tlms-actions {
        align-items: stretch;
        flex-direction: column;
        width: 100%;
    }

    .nns-tlms-button {
        margin-top: 0;
        text-align: center;
        width: 100%;
    }

    .nns-tlms-card {
        min-height: 0;
    }

    .nns-tlms-card-top {
        align-items: flex-start;
        flex-direction: column;
    }
}
