/* ===================================
   TRAINING SECTIONS - Redesigned UI
   Tim Hortons #C8102E
   =================================== */

/* ---- Content Root ---- */
.t-content {
    padding: 28px 32px 40px;
    max-width: 1200px;
}

.t-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ---- Headings ---- */
.t-heading {
    font-family: 'Sofia Pro Bold', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: var(--text-xl, 22px);
    color: #1C1C1E;
    margin: 0;
    letter-spacing: -0.3px;
}

.t-subheading {
    font-family: 'Sofia Pro Bold', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: var(--text-base, 15px);
    color: #48484A;
    margin: 0;
    letter-spacing: -0.1px;
}

.t-heading-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

/* ---- Loader ---- */
.t-loader {
    display: flex;
    justify-content: center;
    padding: 32px;
}

.t-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #F2F2F7;
    border-top-color: #C8102E;
    border-radius: 50%;
    animation: tSpin 0.7s linear infinite;
}

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

/* ---- Skeleton ---- */
@keyframes tSkeletonShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.t-skeleton {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    background: linear-gradient(
        90deg,
        #f0f1f4 0%,
        #f7f8fa 45%,
        #f0f1f4 100%
    );
    background-size: 200% 100%;
    animation: tSkeletonShimmer 1.3s ease-in-out infinite;
}

.t-skeleton--line,
.t-skeleton-line {
    height: 12px;
    width: 100%;
    border-radius: 999px;
}

.t-skeleton--pill,
.t-skeleton-pill {
    height: 36px;
    min-width: 120px;
    border-radius: 10px;
}

.t-skeleton--circle,
.t-skeleton-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
}

.t-skeleton--card {
    width: 100%;
    min-height: 120px;
    border-radius: 14px;
}

.t-skeleton-grid {
    display: grid;
    gap: 14px;
}

.t-skeleton-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.t-skeleton-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.t-skeleton-grid--courses {
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
}

.t-skeleton-grid--filters {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}

.t-skeleton-grid--kardex {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.t-skeleton-grid--launches {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.t-skeleton-grid--badges {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.t-skeleton-course-card {
    min-height: 260px;
    border-radius: 16px;
}

.t-skeleton-assess-card {
    width: 100%;
    height: 74px;
    border-radius: 14px;
}

.t-skeleton-profile-card {
    width: 100%;
    height: 96px;
    border-radius: 16px;
}

.t-skeleton-table {
    width: 100%;
    height: 220px;
    border-radius: 14px;
}

.t-skeleton-player-header {
    width: 100%;
    height: 142px;
    border-radius: 16px;
}

.t-skeleton-player-section {
    width: 100%;
    height: 182px;
    border-radius: 14px;
}

.t-skeleton-kardex-stat {
    width: 100%;
    height: 94px;
    border-radius: 14px;
}

.t-skeleton-onboarding-card {
    width: 100%;
    height: 84px;
    border-radius: 14px;
}

.t-skeleton-launch-card {
    width: 100%;
    height: 240px;
    border-radius: 16px;
}

.t-skeleton-badge-card {
    width: 100%;
    height: 196px;
    border-radius: 16px;
}

.t-skeleton-leaders-block {
    width: 100%;
    height: 250px;
    border-radius: 16px;
}

.t-skeleton-filter-card .t-skeleton-line:first-child {
    max-width: 220px;
}

@media (prefers-reduced-motion: reduce) {
    .t-skeleton {
        animation: none;
    }
}

/* ---- Empty States ---- */
.t-empty {
    text-align: center;
    padding: 24px;
    color: #AEAEB2;
    font-family: 'Sofia Pro Regular', sans-serif;
    font-size: 14px;
}

.t-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 48px 24px;
    color: #AEAEB2;
}

.t-empty-state svg {
    width: 40px;
    height: 40px;
    opacity: 0.3;
}

.t-empty-state p {
    font-family: 'Sofia Pro Regular', sans-serif;
    font-size: 14px;
    margin: 0;
}

/* ---- Pill / Tag ---- */
.t-pill {
    display: inline-block;
    font-family: 'Sofia Pro Bold', sans-serif;
    font-size: 10px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: #C8102E;
    background: rgba(200, 16, 46, 0.07);
    padding: 3px 10px;
    border-radius: 5px;
    margin-bottom: 6px;
}

/* ---- Badge (status) ---- */
.t-badge {
    display: inline-flex;
    align-items: center;
    font-family: 'Sofia Pro Regular', sans-serif;
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 20px;
    white-space: nowrap;
    line-height: 1.4;
}

.t-badge--active {
    background: rgba(200, 16, 46, 0.08);
    color: #C8102E;
}

.t-badge--muted {
    background: #F2F2F7;
    color: #8E8E93;
}

.t-badge--success {
    background: rgba(52, 199, 89, 0.1);
    color: #34C759;
}

.t-badge--danger {
    background: rgba(255, 59, 48, 0.1);
    color: #FF3B30;
}

/* ---- Buttons ---- */
.t-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: 'Sofia Pro Bold', sans-serif;
    font-size: 13px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 150ms, box-shadow 150ms, background 150ms, color 150ms;
    white-space: nowrap;
    padding: 10px 20px;
}

.t-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.t-btn--primary {
    background: linear-gradient(135deg, #C8102E, #D41432);
    color: #fff;
    box-shadow: 0 2px 8px rgba(200, 16, 46, 0.2);
}

.t-btn--primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(200, 16, 46, 0.3);
}

.t-btn--primary:active {
    transform: translateY(0) scale(0.97);
}

.t-btn--outline {
    background: #fff;
    color: #C8102E;
    border: 1px solid rgba(200, 16, 46, 0.25);
}

.t-btn--outline:hover {
    background: rgba(200, 16, 46, 0.04);
    border-color: rgba(200, 16, 46, 0.4);
}

.t-btn--ghost {
    background: transparent;
    color: #636366;
    padding: 8px 14px;
}

.t-btn--ghost:hover {
    background: rgba(0, 0, 0, 0.04);
    color: #1C1C1E;
}

.t-btn--sm {
    padding: 7px 16px;
    font-size: 12.5px;
    border-radius: 8px;
}

.t-btn--xs {
    padding: 4px 12px;
    font-size: 11.5px;
    border-radius: 6px;
}

/* ---- Input ---- */
.t-input {
    width: 100%;
    padding: 10px 14px;
    background: #F8F8FA;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    font-family: 'Sofia Pro Regular', sans-serif;
    font-size: 13.5px;
    color: #1C1C1E;
    outline: none;
    transition: border-color 200ms, background 200ms, box-shadow 200ms;
}

.t-input:focus {
    border-color: #C8102E;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.08);
}

.t-input::placeholder {
    color: #AEAEB2;
}

.t-input--sm {
    padding: 7px 12px;
    font-size: 12.5px;
    border-radius: 8px;
}

/* ---- ServSafe Upload ---- */
.t-servsafe-upload-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.t-servsafe-file-input {
    min-width: 260px;
    flex: 1 1 340px;
    padding: 6px;
    border-style: dashed;
    border-color: rgba(200, 16, 46, 0.32);
    background: #fff8f9;
    color: #1c1c1e;
    cursor: pointer;
}

.t-servsafe-file-input:hover {
    border-color: rgba(200, 16, 46, 0.5);
    background: #fff;
}

.t-servsafe-file-input::file-selector-button {
    margin-right: 12px;
    border: 0;
    border-radius: 8px;
    padding: 8px 12px;
    font-family: 'Sofia Pro Bold', sans-serif;
    font-size: 12px;
    background: linear-gradient(135deg, #C8102E, #D41432);
    color: #fff;
    cursor: pointer;
}

.t-servsafe-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

/* ---- Card ---- */
.t-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    padding: 24px;
}

.t-card__title {
    font-family: 'Sofia Pro Bold', sans-serif;
    font-size: 16px;
    color: #1C1C1E;
    margin: 0 0 16px;
}

.t-card__subtitle {
    font-family: 'Sofia Pro Bold', sans-serif;
    font-size: 14px;
    color: #48484A;
    margin: 20px 0 10px;
}

.t-passport-debug {
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background:
        radial-gradient(130% 150% at 100% 0%, rgba(200, 16, 46, 0.1), rgba(200, 16, 46, 0)),
        linear-gradient(180deg, #ffffff 0%, #f7f7f9 100%);
    padding: 18px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
    gap: 16px;
    align-items: end;
}

.t-passport-debug__copy h3 {
    margin: 0 0 6px;
    font-family: 'Sofia Pro Bold', sans-serif;
    color: #1c1c1e;
    font-size: 17px;
    letter-spacing: -0.2px;
}

.t-passport-debug__copy p {
    margin: 0;
    font-family: 'Sofia Pro Regular', sans-serif;
    color: #636366;
    font-size: 13px;
    line-height: 1.45;
    max-width: 62ch;
}

.t-passport-debug__controls {
    display: grid;
    gap: 10px;
}

.t-passport-debug__hint {
    font-family: 'Sofia Pro Regular', sans-serif;
    font-size: 12px;
    color: #8e8e93;
}

.t-passport-card {
    background: linear-gradient(160deg, #ffffff 0%, #fbfbfd 100%);
    border: 1px solid rgba(0, 0, 0, 0.09);
    border-radius: 20px;
    padding: 22px;
    box-shadow: 0 16px 40px rgba(18, 18, 18, 0.04);
}

.t-passport-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.t-passport-card__title {
    margin: 0;
    font-family: 'Sofia Pro Bold', sans-serif;
    font-size: 16px;
    color: #121214;
    letter-spacing: -0.2px;
}

.t-passport-card__subtitle {
    margin: 6px 0 0;
    font-family: 'Sofia Pro Regular', sans-serif;
    color: #6b6b72;
    font-size: 13px;
}

.t-passport-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.t-passport-fact {
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 12px;
    min-height: 76px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    justify-content: center;
}

.t-passport-fact__label {
    font-family: 'Sofia Pro Regular', sans-serif;
    font-size: 11px;
    color: #8e8e93;
}

.t-passport-fact__value {
    font-family: 'Sofia Pro Bold', sans-serif;
    font-size: 13px;
    color: #1c1c1e;
    line-height: 1.35;
    word-break: break-word;
}

/* ===== PROFILE — PASSPORT DOCUMENT ===== */

/* --- Opening animation --- */
@keyframes tp-passport-open {
    0% {
        opacity: 0;
        transform: perspective(800px) rotateY(-12deg) scale(0.92);
        filter: blur(3px);
    }
    60% {
        opacity: 1;
        transform: perspective(800px) rotateY(2deg) scale(1.01);
        filter: blur(0);
    }
    100% {
        opacity: 1;
        transform: perspective(800px) rotateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes tp-seal-stamp {
    0% { opacity: 0; transform: translate(-50%, -50%) rotate(-18deg) scale(2.5); }
    50% { opacity: 0.9; transform: translate(-50%, -50%) rotate(-18deg) scale(0.9); }
    70% { opacity: 0.7; transform: translate(-50%, -50%) rotate(-18deg) scale(1.05); }
    100% { opacity: 0.7; transform: translate(-50%, -50%) rotate(-18deg) scale(1); }
}

@keyframes tp-photo-spinner {
    to { transform: rotate(360deg); }
}

.tp-doc--animate {
    animation: tp-passport-open 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.tp-doc {
    position: relative;
    background:
        repeating-linear-gradient(0deg, transparent, transparent 28px, rgba(200, 16, 46, 0.018) 28px, rgba(200, 16, 46, 0.018) 29px),
        linear-gradient(160deg, #fdf8f4 0%, #faf6f1 40%, #f7f3ee 100%);
    border: 1px solid rgba(180, 160, 140, 0.25);
    border-radius: 12px;
    overflow: hidden;
    box-shadow:
        0 1px 3px rgba(0,0,0,0.04),
        0 8px 30px rgba(0,0,0,0.06),
        inset 0 1px 0 rgba(255,255,255,0.7);
}

/* Watermark */
.tp-doc__watermark {
    position: absolute;
    right: 30%;
    top: 50%;
    transform: translate(50%, -50%);
    width: 300px;
    height: 300px;
    color: rgba(200, 16, 46, 0.04);
    pointer-events: none;
    z-index: 0;
}

.tp-doc__watermark svg,
.tp-doc__watermark img { width: 100%; height: 100%; object-fit: contain; opacity: 0.06; }

/* Corner arcs */
.tp-doc__stamp-corner {
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 80px;
    color: rgba(200, 16, 46, 0.12);
    pointer-events: none;
    z-index: 0;
}

.tp-doc__stamp-corner svg { width: 100%; height: 100%; }

/* --- Verification seal (passport stamp style) --- */
.tp-doc__seal {
    position: absolute;
    top: 50%;
    right: 14%;
    transform: translate(-50%, -50%) rotate(-18deg);
    z-index: 2;
    pointer-events: none;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px double currentColor;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    animation: tp-seal-stamp 0.5s 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.tp-doc__seal::before {
    content: '';
    position: absolute;
    inset: 5px;
    border-radius: 50%;
    border: 1.5px solid currentColor;
}

.tp-doc__seal--success {
    color: #34c759;
    box-shadow: 0 0 20px rgba(52, 199, 89, 0.1);
}

.tp-doc__seal--danger {
    color: #ff3b30;
    box-shadow: 0 0 20px rgba(255, 59, 48, 0.1);
}

.tp-doc__seal--muted {
    color: #8e8e93;
}

.tp-doc__seal-text {
    font-family: 'Sofia Pro Bold', sans-serif;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    text-align: center;
    line-height: 1.1;
}

/* --- Layout --- */
.tp-doc__layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 420px;
}

/* --- Left column --- */
.tp-doc__left {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 28px;
    border-right: 1px solid rgba(180, 160, 140, 0.18);
    gap: 8px;
}

.tp-doc__photo {
    position: relative;
    margin-bottom: 14px;
}

.tp-doc__photo-inner {
    position: relative;
    width: 150px;
    height: 180px;
    border-radius: 6px;
    background: linear-gradient(145deg, #e8e0d8 0%, #d6cec4 100%);
    border: 3px solid rgba(180, 160, 140, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.25s;
}

.tp-doc__photo-inner:hover {
    border-color: rgba(200, 16, 46, 0.35);
}

/* Crosshatch pattern behind placeholder */
.tp-doc__photo-pattern {
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(45deg, transparent, transparent 4px, rgba(160, 140, 120, 0.06) 4px, rgba(160, 140, 120, 0.06) 5px),
        repeating-linear-gradient(-45deg, transparent, transparent 4px, rgba(160, 140, 120, 0.06) 4px, rgba(160, 140, 120, 0.06) 5px);
    z-index: 0;
}

.tp-doc__photo-initial {
    position: relative;
    z-index: 1;
    font-family: 'Sofia Pro Bold', sans-serif;
    font-size: 64px;
    color: rgba(140, 120, 100, 0.3);
    letter-spacing: -2px;
    line-height: 1;
}

.tp-doc__photo-inner img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Hover overlay with camera icon */
.tp-doc__photo-hover {
    position: absolute;
    inset: 0;
    z-index: 3;
    background: rgba(28, 28, 30, 0.55);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    opacity: 0;
    transition: opacity 0.25s;
    color: #fff;
    border-radius: 3px;
}

.tp-doc__photo-hover span {
    font-family: 'Sofia Pro Bold', sans-serif;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tp-doc__photo-inner:hover .tp-doc__photo-hover {
    opacity: 1;
}

/* Loading spinner */
.tp-doc__photo-loading {
    position: absolute;
    inset: 0;
    z-index: 4;
    background: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tp-doc__photo-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(200, 16, 46, 0.15);
    border-top-color: #C8102E;
    border-radius: 50%;
    animation: tp-photo-spinner 0.6s linear infinite;
}

.tp-doc__photo-upload {
    display: none;
}

/* Logo */
.tp-doc__logo {
    width: 90px;
    height: auto;
    object-fit: contain;
    margin-top: 4px;
    opacity: 0.85;
}

.tp-doc__serial {
    margin: 0;
    font-family: 'Sofia Pro Regular', sans-serif;
    font-size: 11px;
    color: #9a9088;
    letter-spacing: 0.5px;
}

/* --- Stamp-style stats --- */
.tp-doc__stamps {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}

.tp-doc__stamp-circle {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    border: 2px solid rgba(200, 16, 46, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    transition: border-color 0.2s, background 0.2s;
}

.tp-doc__stamp-circle:hover {
    border-color: rgba(200, 16, 46, 0.4);
    background: rgba(200, 16, 46, 0.03);
}

.tp-doc__stamp-num {
    font-family: 'Sofia Pro Bold', sans-serif;
    font-size: 16px;
    color: #C8102E;
    line-height: 1;
}

.tp-doc__stamp-lbl {
    font-family: 'Sofia Pro Bold', sans-serif;
    font-size: 7px;
    color: #9a9088;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- Right column --- */
.tp-doc__right {
    padding: 36px 34px;
    display: flex;
    flex-direction: column;
}

.tp-doc__header {
    margin-bottom: 28px;
}

.tp-doc__title {
    margin: 0;
    font-family: 'Sofia Pro Bold', sans-serif;
    font-size: 28px;
    color: #1c1c1e;
    letter-spacing: 2px;
    line-height: 1;
}

.tp-doc__doctitle {
    margin: 6px 0 0;
    font-family: 'Sofia Pro Bold', sans-serif;
    font-size: 11px;
    color: #C8102E;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Export button */
.tp-doc__actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 20px;
}

.tp-doc__export-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border-radius: 8px;
    border: 1px solid rgba(200, 16, 46, 0.2);
    background: rgba(200, 16, 46, 0.04);
    color: #C8102E;
    font-family: 'Sofia Pro Bold', sans-serif;
    font-size: 12px;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.tp-doc__export-btn:hover {
    background: rgba(200, 16, 46, 0.08);
    border-color: rgba(200, 16, 46, 0.35);
}

/* --- Fields grid --- */
.tp-doc__fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    flex: 0 1 auto;
}

.tp-doc__field {
    padding: 14px 0;
    border-bottom: 1px solid rgba(180, 160, 140, 0.15);
}

.tp-doc__field:nth-child(even) { padding-left: 24px; }
.tp-doc__field:nth-child(odd) { padding-right: 24px; }

.tp-doc__field--wide {
    grid-column: 1 / -1;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.tp-doc__field-label {
    display: block;
    font-family: 'Sofia Pro Bold', sans-serif;
    font-size: 9.5px;
    color: #C8102E;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 5px;
}

.tp-doc__field-value {
    display: block;
    font-family: 'Sofia Pro Bold', sans-serif;
    font-size: 14.5px;
    color: #1c1c1e;
    letter-spacing: 0.3px;
    line-height: 1.3;
    word-break: break-word;
}

/* --- MRZ line --- */
.tp-doc__mrz {
    margin-top: 18px;
    padding: 10px 14px;
    background: rgba(180, 160, 140, 0.06);
    border: 1px solid rgba(180, 160, 140, 0.1);
    border-radius: 4px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 11px;
    letter-spacing: 1.5px;
    color: rgba(28, 28, 30, 0.35);
    line-height: 1.6;
    white-space: pre;
    overflow-x: auto;
    user-select: none;
}

/* --- Visas & Certifications --- */
.tp-doc__visas {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(180, 160, 140, 0.15);
}

.tp-doc__visas-title {
    margin: 0 0 14px;
    font-family: 'Sofia Pro Bold', sans-serif;
    font-size: 9.5px;
    color: #C8102E;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.tp-doc__visas-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tp-doc__visa {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 72px;
}

.tp-doc__visa-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px dashed rgba(200, 16, 46, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(200, 16, 46, 0.5);
    transition: border-color 0.2s, color 0.2s, transform 0.2s;
}

.tp-doc__visa-icon:hover {
    transform: scale(1.08);
}

.tp-doc__visa--success .tp-doc__visa-icon {
    border-color: rgba(52, 199, 89, 0.4);
    color: #34c759;
    background: rgba(52, 199, 89, 0.06);
}

.tp-doc__visa--danger .tp-doc__visa-icon {
    border-color: rgba(255, 59, 48, 0.35);
    color: #ff3b30;
    background: rgba(255, 59, 48, 0.06);
}

.tp-doc__visa--muted .tp-doc__visa-icon {
    border-color: rgba(142, 142, 147, 0.3);
    color: #8e8e93;
    background: rgba(142, 142, 147, 0.06);
}

.tp-doc__visa-name {
    font-family: 'Sofia Pro Bold', sans-serif;
    font-size: 8.5px;
    color: #6b6b72;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    text-align: center;
    line-height: 1.2;
    max-width: 100%;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.tp-doc__visa-evidence {
    font-family: 'Sofia Pro Bold', sans-serif;
    font-size: 9px;
    line-height: 1;
    color: #C8102E;
}

/* --- Operational passport summary --- */
.tp-doc__ops {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(180, 160, 140, 0.15);
}

.tp-doc__ops-title {
    margin: 0 0 12px;
    font-family: 'Sofia Pro Bold', sans-serif;
    font-size: 9.5px;
    color: #C8102E;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.tp-doc__ops-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.tp-doc__op {
    min-height: 76px;
    padding: 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(180, 160, 140, 0.16);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 4px;
}

.tp-doc__op-label {
    font-family: 'Sofia Pro Bold', sans-serif;
    font-size: 8px;
    color: #8a817a;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tp-doc__op-value {
    font-family: 'Sofia Pro Bold', sans-serif;
    font-size: 15px;
    line-height: 1.1;
    color: #1c1c1e;
    word-break: break-word;
}

.tp-doc__op-meta {
    font-family: 'Sofia Pro Regular', sans-serif;
    font-size: 10.5px;
    line-height: 1.2;
    color: #636366;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tp-doc__op--success {
    border-color: rgba(52, 199, 89, 0.22);
    background: rgba(52, 199, 89, 0.06);
}

.tp-doc__op--active {
    border-color: rgba(200, 16, 46, 0.18);
    background: rgba(200, 16, 46, 0.045);
}

.tp-doc__op--danger {
    border-color: rgba(255, 59, 48, 0.22);
    background: rgba(255, 59, 48, 0.06);
}

.tp-doc__op--muted {
    border-color: rgba(142, 142, 147, 0.2);
    background: rgba(142, 142, 147, 0.06);
}

/* --- Digital passport closure --- */
.tp-passport-close {
    display: grid;
    gap: 16px;
}

.tp-passport-close__header {
    margin-bottom: 0;
}

.tp-passport-close__header .t-badge {
    margin-left: auto;
}

.tp-passport-close__empty,
.tp-passport-close__alert {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 11px 12px;
    border-radius: 10px;
    font-family: 'Sofia Pro Regular', sans-serif;
    font-size: 13px;
    line-height: 1.35;
}

.tp-passport-close__empty {
    color: #636366;
    background: #f7f7f8;
}

.tp-passport-close__alert {
    color: #7a1d2a;
    background: rgba(200, 16, 46, 0.08);
    border: 1px solid rgba(200, 16, 46, 0.12);
}

.tp-passport-close__summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.tp-passport-close__metric {
    min-height: 70px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #f9f9fb;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 8px;
}

.tp-passport-close__metric span {
    font-family: 'Sofia Pro Bold', sans-serif;
    font-size: 10px;
    color: #8a817a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tp-passport-close__metric strong {
    font-family: 'Sofia Pro Bold', sans-serif;
    font-size: 18px;
    color: #1c1c1e;
    line-height: 1.15;
}

.tp-passport-close__progress {
    height: 7px;
    border-radius: 999px;
    background: #ececef;
    overflow: hidden;
}

.tp-passport-close__progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #C8102E;
    transition: width 0.25s ease;
}

.tp-passport-close__groups {
    display: grid;
    gap: 14px;
}

.tp-passport-close__group {
    display: grid;
    gap: 8px;
}

.tp-passport-close__group-title {
    min-height: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    font-family: 'Sofia Pro Bold', sans-serif;
    color: #1c1c1e;
}

.tp-passport-close__group-title span {
    font-size: 13px;
}

.tp-passport-close__group-title strong {
    flex-shrink: 0;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(200, 16, 46, 0.08);
    color: #C8102E;
    font-size: 11px;
}

.tp-passport-close__items {
    display: grid;
    gap: 7px;
}

.tp-passport-close__item {
    min-height: 58px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #f9f9fb;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
}

.tp-passport-close__item-main {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.tp-passport-close__item-title {
    font-family: 'Sofia Pro Bold', sans-serif;
    font-size: 13px;
    line-height: 1.25;
    color: #1c1c1e;
}

.tp-passport-close__item-note {
    font-family: 'Sofia Pro Regular', sans-serif;
    font-size: 11.5px;
    line-height: 1.3;
    color: #6e6e73;
}

.tp-passport-close__item-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.tp-passport-close__mini-btn,
.tp-passport-close__action {
    border: 0;
    border-radius: 999px;
    font-family: 'Sofia Pro Bold', sans-serif;
    cursor: pointer;
    transition: transform 0.16s ease, background 0.16s ease, opacity 0.16s ease;
}

.tp-passport-close__mini-btn {
    min-height: 30px;
    padding: 0 12px;
    background: #1c1c1e;
    color: #fff;
    font-size: 11.5px;
}

.tp-passport-close__action {
    min-height: 38px;
    padding: 0 16px;
    background: #f1f1f3;
    color: #1c1c1e;
    font-size: 12.5px;
}

.tp-passport-close__action--primary {
    background: #C8102E;
    color: #fff;
}

.tp-passport-close__mini-btn:hover,
.tp-passport-close__action:hover {
    transform: translateY(-1px);
}

.tp-passport-close__mini-btn:disabled,
.tp-passport-close__action:disabled {
    cursor: not-allowed;
    opacity: 0.48;
    transform: none;
}

.tp-passport-close__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    font-family: 'Sofia Pro Regular', sans-serif;
    font-size: 12.5px;
    line-height: 1.35;
    color: #636366;
}

.tp-passport-close__buttons {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-shrink: 0;
}

.tp-passport-evidence {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #f9f9fb;
    font-family: 'Sofia Pro Regular', sans-serif;
    font-size: 12.5px;
    color: #636366;
}

.tp-passport-evidence__button {
    min-height: 34px;
    padding: 0 13px;
    border-radius: 999px;
    background: #1c1c1e;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: 'Sofia Pro Bold', sans-serif;
    font-size: 11.5px;
    cursor: pointer;
    transition: transform 0.16s ease, opacity 0.16s ease;
}

.tp-passport-evidence__button:hover {
    transform: translateY(-1px);
}

.tp-passport-evidence__button input {
    display: none;
}

.tp-passport-audit {
    display: grid;
    gap: 9px;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.tp-passport-audit__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-family: 'Sofia Pro Bold', sans-serif;
    font-size: 13px;
    color: #1c1c1e;
}

.tp-passport-audit__head small {
    font-family: 'Sofia Pro Regular', sans-serif;
    font-size: 11.5px;
    color: #8e8e93;
}

.tp-passport-audit__list {
    display: grid;
    gap: 7px;
}

.tp-passport-audit__row {
    min-height: 48px;
    padding: 9px 11px;
    border-radius: 12px;
    background: #f9f9fb;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
}

.tp-passport-audit__row div {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.tp-passport-audit__row strong {
    font-family: 'Sofia Pro Bold', sans-serif;
    font-size: 12.5px;
    color: #1c1c1e;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tp-passport-audit__row span,
.tp-passport-audit__row small,
.tp-passport-audit__empty {
    font-family: 'Sofia Pro Regular', sans-serif;
    font-size: 11.5px;
    color: #6e6e73;
}

.tp-passport-audit__row small {
    text-align: right;
    text-transform: uppercase;
}

.tp-passport-manager {
    display: grid;
    gap: 14px;
}

.tp-passport-manager__header {
    margin-bottom: 0;
}

.tp-passport-manager__summary {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
}

.tp-passport-manager__pill {
    min-height: 58px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #f9f9fb;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 6px;
}

.tp-passport-manager__pill span {
    font-family: 'Sofia Pro Bold', sans-serif;
    font-size: 10px;
    line-height: 1.2;
    color: #8a817a;
    text-transform: uppercase;
}

.tp-passport-manager__pill strong {
    font-family: 'Sofia Pro Bold', sans-serif;
    font-size: 18px;
    color: #1c1c1e;
}

.tp-passport-manager__list {
    display: grid;
    gap: 7px;
}

.tp-passport-manager__row {
    min-height: 58px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #f9f9fb;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(180px, auto);
    gap: 12px;
    align-items: center;
}

.tp-passport-manager__person,
.tp-passport-manager__state {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.tp-passport-manager__person span {
    font-family: 'Sofia Pro Bold', sans-serif;
    font-size: 13px;
    color: #1c1c1e;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tp-passport-manager__person small,
.tp-passport-manager__state small {
    font-family: 'Sofia Pro Regular', sans-serif;
    font-size: 11.5px;
    line-height: 1.25;
    color: #6e6e73;
}

.tp-passport-manager__state {
    justify-items: end;
    text-align: right;
}

.tp-passport-manager__sign {
    min-height: 28px;
    padding: 0 12px;
    border: 0;
    border-radius: 999px;
    background: #C8102E;
    color: #fff;
    font-family: 'Sofia Pro Bold', sans-serif;
    font-size: 11.5px;
    cursor: pointer;
    transition: transform 0.16s ease, opacity 0.16s ease;
}

.tp-passport-manager__sign:hover {
    transform: translateY(-1px);
}

.tp-passport-manager__sign:disabled {
    cursor: not-allowed;
    opacity: 0.5;
    transform: none;
}

.tp-ojt-evaluator {
    display: grid;
    gap: 14px;
    margin-bottom: 18px;
}

.tp-ojt-evaluator__controls {
    display: grid;
    grid-template-columns: minmax(180px, 1.1fr) minmax(180px, 1.1fr) auto;
    gap: 10px;
    align-items: center;
}

.tp-ojt-evaluator__file {
    min-height: 40px;
    white-space: nowrap;
}

.tp-ojt-evaluator__hint {
    font-family: 'Sofia Pro Regular', sans-serif;
    font-size: 12px;
    color: #6e6e73;
}

.tp-ojt-evaluator__notes {
    min-height: 88px;
    resize: vertical;
}

.tp-ojt-evaluator__items {
    display: grid;
    gap: 8px;
}

.tp-ojt-evaluator__item {
    min-height: 74px;
    padding: 12px;
    border-radius: 12px;
    background: #f9f9fb;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(180px, 0.8fr);
    gap: 12px;
    align-items: center;
}

.tp-ojt-evaluator__item-copy {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.tp-ojt-evaluator__item-copy span {
    font-family: 'Sofia Pro Bold', sans-serif;
    font-size: 13px;
    line-height: 1.25;
    color: #1c1c1e;
}

.tp-ojt-evaluator__item-copy small {
    font-family: 'Sofia Pro Regular', sans-serif;
    font-size: 11.5px;
    line-height: 1.3;
    color: #6e6e73;
}

.tp-ojt-evaluator__result {
    display: grid;
    grid-template-columns: repeat(3, 64px);
    gap: 6px;
}

.tp-ojt-evaluator__result-btn {
    min-height: 34px;
    padding: 0 10px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 999px;
    background: #fff;
    color: #48484a;
    font-family: 'Sofia Pro Bold', sans-serif;
    font-size: 11.5px;
    cursor: pointer;
    transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.tp-ojt-evaluator__result-btn--active {
    border-color: rgba(200, 16, 46, 0.28);
    background: rgba(200, 16, 46, 0.08);
    color: #C8102E;
}

/* --- Skills block --- */
.tp-block {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    padding: 22px;
}

.tp-block__header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    color: #48484A;
}

.tp-block__header h3 {
    margin: 0;
    font-family: 'Sofia Pro Bold', sans-serif;
    font-size: 15px;
    color: #1c1c1e;
    letter-spacing: -0.15px;
}

.tp-skills {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 8px;
}

.tp-skill-groups {
    display: grid;
    gap: 14px;
}

.tp-skill-group {
    display: grid;
    gap: 8px;
}

.tp-skill-group__title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 30px;
    padding: 0 2px 8px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    font-family: 'Sofia Pro Bold', sans-serif;
    color: #1c1c1e;
}

.tp-skill-group__title span {
    font-size: 13px;
}

.tp-skill-group__title strong {
    font-size: 11px;
    color: #C8102E;
    background: rgba(200, 16, 46, 0.08);
    border-radius: 999px;
    padding: 3px 8px;
}

.tp-skill {
    padding: 12px 14px;
    border-radius: 12px;
    background: #f9f9fb;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: background 0.2s;
}

.tp-skill:hover { background: #f4f4f7; }

.tp-skill__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.tp-skill__station {
    font-family: 'Sofia Pro Bold', sans-serif;
    font-size: 13px;
    color: #1c1c1e;
}

.tp-skill__level {
    font-family: 'Sofia Pro Bold', sans-serif;
    font-size: 10.5px;
    padding: 2px 9px;
    border-radius: 100px;
    background: rgba(200, 16, 46, 0.08);
    color: #C8102E;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    flex-shrink: 0;
}

.tp-skill__name {
    font-family: 'Sofia Pro Regular', sans-serif;
    font-size: 12.5px;
    color: #636366;
    line-height: 1.3;
}

.tp-skill__date {
    font-family: 'Sofia Pro Regular', sans-serif;
    font-size: 11px;
    color: #aeaeb2;
}

.tp-skill__evidence {
    font-family: 'Sofia Pro Bold', sans-serif;
    font-size: 10.5px;
    color: #C8102E;
}

/* --- Passport responsive --- */
@media (max-width: 700px) {
    .tp-passport-close__summary {
        grid-template-columns: 1fr;
    }

    .tp-passport-close__item {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .tp-passport-close__item-actions {
        justify-content: space-between;
    }

    .tp-passport-close__footer,
    .tp-passport-close__buttons {
        align-items: stretch;
        flex-direction: column;
    }

    .tp-passport-close__action {
        width: 100%;
    }

    .tp-passport-evidence,
    .tp-passport-audit__row {
        align-items: stretch;
        grid-template-columns: 1fr;
    }

    .tp-passport-evidence {
        flex-direction: column;
    }

    .tp-passport-evidence__button {
        width: 100%;
    }

    .tp-passport-manager__summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tp-passport-manager__row {
        grid-template-columns: 1fr;
    }

    .tp-passport-manager__state {
        justify-items: start;
        text-align: left;
    }

    .tp-ojt-evaluator__controls,
    .tp-ojt-evaluator__item {
        grid-template-columns: 1fr;
    }

    .tp-ojt-evaluator__result {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .tp-doc__layout {
        grid-template-columns: 1fr;
    }

    .tp-doc__left {
        border-right: none;
        border-bottom: 1px solid rgba(180, 160, 140, 0.18);
        padding: 28px 24px;
    }

    .tp-doc__photo-inner {
        width: 120px;
        height: 144px;
    }

    .tp-doc__photo-initial {
        font-size: 48px;
    }

    .tp-doc__right {
        padding: 24px;
    }

    .tp-doc__fields {
        grid-template-columns: 1fr;
    }

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

    .tp-doc__field:nth-child(even) { padding-left: 0; }
    .tp-doc__field:nth-child(odd) { padding-right: 0; }

    .tp-doc__seal {
        width: 90px;
        height: 90px;
        right: 10%;
        top: 40%;
    }

    .tp-doc__seal-text {
        font-size: 10px;
        letter-spacing: 1.5px;
    }

    .tp-doc__mrz {
        font-size: 9px;
        letter-spacing: 1px;
    }
}

@media (max-width: 480px) {
    .tp-doc__title {
        font-size: 22px;
    }

    .tp-doc__visas-list { gap: 8px; }
    .tp-doc__visa { width: 60px; }
    .tp-doc__visa-icon { width: 40px; height: 40px; }

    .tp-doc__stamp-circle {
        width: 48px;
        height: 48px;
    }

    .tp-doc__stamp-num { font-size: 14px; }
    .tp-doc__stamp-lbl { font-size: 6px; }

    .tp-doc__ops-grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tp-doc--animate {
        animation: none;
    }
    .tp-doc__seal {
        animation: none;
        opacity: 0.7;
    }
}

/* ===== CATALOG / COURSES (screenshot layout) ===== */

.t-courses-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.t-courses-stat {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.t-courses-stat strong {
    display: block;
    font-family: 'Sofia Pro Bold', sans-serif;
    font-size: 36px;
    line-height: 1;
    color: #1A1A1F;
}

.t-courses-stat span {
    display: block;
    margin-top: 2px;
    font-family: 'Sofia Pro Regular', sans-serif;
    font-size: 26px;
    color: #3A3A40;
}

.t-courses-stat__icon {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.t-courses-stat__icon svg {
    width: 24px;
    height: 24px;
}

.t-courses-stat__icon--red {
    background: rgba(200, 16, 46, 0.12);
    color: #8C0F24;
}

.t-courses-stat__icon--green {
    background: rgba(27, 145, 76, 0.15);
    color: #13673A;
}

.t-courses-stat__icon--amber {
    background: rgba(255, 176, 65, 0.2);
    color: #9C5C14;
}

.t-courses-search {
    position: relative;
    display: flex;
    align-items: center;
}

.t-courses-search__icon {
    position: absolute;
    left: 14px;
    color: #A2A2AB;
    pointer-events: none;
}

.t-courses-search__input {
    width: 100%;
    height: 42px;
    padding: 0 40px 0 40px;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: #fff;
    font-family: 'Sofia Pro Regular', sans-serif;
    font-size: 15px;
    color: #17171B;
}

.t-courses-search__input:focus {
    outline: none;
    border-color: rgba(200, 16, 46, 0.45);
    box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.1);
}

.t-courses-search__input::placeholder {
    color: #A2A2AB;
}

.t-courses-search__clear {
    position: absolute;
    right: 10px;
    border: none;
    background: transparent;
    color: #A2A2AB;
    cursor: pointer;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.t-courses-search__clear:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #63636A;
}

.t-courses-filters {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.t-courses-filter {
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: #F2F2F6;
    color: #2A2A30;
    border-radius: 999px;
    padding: 7px 14px;
    font-family: 'Sofia Pro Regular', sans-serif;
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
}

.t-courses-filter.is-active {
    background: #fff1f3;
    border-color: rgba(200, 16, 46, 0.3);
    color: #9A1027;
    font-family: 'Sofia Pro Bold', sans-serif;
}

.t-courses-hero {
    border: none;
    border-radius: 14px;
    min-height: 162px;
    padding: 18px 20px;
    background: linear-gradient(120deg, #9A0E24 0%, #C8102E 52%, #7A0A1D 100%);
    color: #fff;
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 16px;
    text-align: left;
    cursor: pointer;
    align-items: center;
}

.t-courses-hero__thumb {
    height: 104px;
    border-radius: 10px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.t-courses-hero__thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.4));
}

.t-courses-hero__thumb--fallback {
    background: linear-gradient(140deg, #C8102E, #8B0D21);
    display: flex;
    align-items: center;
    justify-content: center;
}

.t-courses-hero__thumb--fallback span {
    position: relative;
    z-index: 1;
    font-family: 'Sofia Pro Bold', sans-serif;
    font-size: 18px;
    letter-spacing: 0.04em;
}

.t-courses-hero__content {
    min-width: 0;
}

.t-courses-hero__label {
    display: block;
    font-family: 'Sofia Pro Bold', sans-serif;
    font-size: 19px;
    letter-spacing: 0.05em;
    line-height: 1.2;
    margin-bottom: 8px;
}

.t-courses-hero__content h3 {
    margin: 0;
    font-family: 'Sofia Pro Bold', sans-serif;
    font-size: 40px;
    letter-spacing: -0.03em;
    line-height: 1.06;
}

.t-courses-hero__category {
    display: block;
    margin-top: 6px;
    font-family: 'Sofia Pro Regular', sans-serif;
    font-size: 17px;
    opacity: 0.9;
}

.t-courses-hero__progress {
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.t-courses-hero__bar {
    flex: 1;
    max-width: 280px;
    height: 7px;
    background: rgba(255, 255, 255, 0.36);
    border-radius: 999px;
    overflow: hidden;
}

.t-courses-hero__bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #fff;
}

.t-courses-hero__progress > span {
    font-family: 'Sofia Pro Bold', sans-serif;
    font-size: 20px;
}

.t-courses-hero__cta {
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    color: #121217;
    border-radius: 999px;
    padding: 7px 16px;
    font-family: 'Sofia Pro Bold', sans-serif;
    font-size: 14px;
}

.t-courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 14px;
}

.t-courses-card {
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
    cursor: pointer;
    transition: transform 200ms cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 200ms cubic-bezier(0.4, 0, 0.2, 1),
                border-color 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

.t-courses-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.15);
}

.t-courses-card:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.t-courses-card:focus-visible {
    outline: 3px solid rgba(200, 16, 46, 0.22);
    outline-offset: 2px;
}

.t-courses-card__media {
    height: 146px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.t-courses-card__media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.5) 100%);
}

.t-courses-card__media--fallback {
    background: linear-gradient(140deg, #d0453d, #7b0a1c);
}

.t-courses-card__status,
.t-courses-card__pct,
.t-courses-card__bar {
    position: absolute;
    z-index: 1;
}

.t-courses-card__status {
    top: 10px;
    left: 10px;
    border-radius: 999px;
    padding: 4px 8px;
    font-family: 'Sofia Pro Bold', sans-serif;
    font-size: 11px;
    letter-spacing: 0.02em;
}

.t-courses-card__status--idle {
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
}

.t-courses-card__status--progress {
    background: rgba(255, 195, 102, 0.95);
    color: #5C3609;
}

.t-courses-card__status--done {
    background: rgba(120, 226, 165, 0.95);
    color: #114827;
}

.t-courses-card__status--assigned {
    background: rgba(180, 214, 255, 0.95);
    color: #0d3f78;
}

.t-courses-card__pct {
    right: 10px;
    top: 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    padding: 3px 8px;
    font-family: 'Sofia Pro Bold', sans-serif;
    font-size: 12px;
}

.t-courses-card__bar {
    left: 10px;
    right: 10px;
    bottom: 10px;
    height: 6px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.4);
}

.t-courses-card__bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #E31337, #F7536E);
}

.t-courses-card__body {
    padding: 11px 12px 12px;
}

.t-courses-card__body h3 {
    margin: 0;
    font-family: 'Sofia Pro Bold', sans-serif;
    font-size: 15px;
    line-height: 1.28;
    color: #19191D;
}

.t-courses-card__category {
    margin-top: 4px;
    display: block;
    font-family: 'Sofia Pro Regular', sans-serif;
    font-size: 12px;
    color: #676770;
    letter-spacing: 0.02em;
}

.t-courses-card__actions {
    margin-top: 10px;
    display: flex;
    justify-content: flex-end;
    gap: 6px;
}

.t-courses-card__action {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 999px;
    background: #F2F2F6;
    color: #4A4A53;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.t-courses-card__action svg {
    width: 16px;
    height: 16px;
}

.t-courses-card__action:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.t-courses-card__action:hover:not(:disabled) {
    background: #E7E7EE;
}

/* Card status accent border — removed */

/* Grid stagger entrance animation */
@keyframes tCardEnter {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.t-courses-grid .t-courses-card {
    animation: tCardEnter 0.35s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.t-courses-grid .t-courses-card:nth-child(1) { animation-delay: 0.03s; }
.t-courses-grid .t-courses-card:nth-child(2) { animation-delay: 0.06s; }
.t-courses-grid .t-courses-card:nth-child(3) { animation-delay: 0.09s; }
.t-courses-grid .t-courses-card:nth-child(4) { animation-delay: 0.12s; }
.t-courses-grid .t-courses-card:nth-child(5) { animation-delay: 0.15s; }
.t-courses-grid .t-courses-card:nth-child(6) { animation-delay: 0.18s; }
.t-courses-grid .t-courses-card:nth-child(7) { animation-delay: 0.21s; }
.t-courses-grid .t-courses-card:nth-child(8) { animation-delay: 0.24s; }
.t-courses-grid .t-courses-card:nth-child(n+9) { animation-delay: 0.27s; }

@media (prefers-reduced-motion: reduce) {
    .t-courses-grid .t-courses-card {
        animation: none;
    }
}

/* ===== CATALOG / COURSES (redesigned — list layout) ===== */

/* ---- Stats row ---- */
.t-cat-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.t-cat-stat {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 14px;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    position: relative;
    overflow: hidden;
}

.t-cat-stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #C8102E;
}

.t-cat-stat--green::before { background: #34C759; }
.t-cat-stat--amber::before { background: #FF9500; }
.t-cat-stat--blue::before  { background: #007AFF; }

.t-cat-stat__val {
    font-family: 'Sofia Pro Bold', sans-serif;
    font-size: 24px;
    color: #1C1C1E;
    line-height: 1.1;
}

.t-cat-stat__lbl {
    font-family: 'Sofia Pro Regular', sans-serif;
    font-size: 12px;
    color: #8E8E93;
}

/* ---- Featured hero ---- */
.t-cat-hero {
    display: flex;
    border: none;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    cursor: pointer;
    text-align: left;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1), box-shadow 250ms;
    min-height: 160px;
}

.t-cat-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.10);
}

.t-cat-hero__gradient {
    position: relative;
    width: 200px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #C8102E 0%, #9B0D24 60%, #7A0A1D 100%);
    overflow: hidden;
}

.t-cat-hero__deco {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.t-cat-hero__content {
    flex: 1;
    padding: 22px 26px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    justify-content: center;
}

.t-cat-hero__label {
    font-family: 'Sofia Pro Bold', sans-serif;
    font-size: 11px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #C8102E;
}

.t-cat-hero__cat {
    font-family: 'Sofia Pro Bold', sans-serif;
    font-size: 10px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #8E8E93;
}

.t-cat-hero__title {
    font-family: 'Sofia Pro Bold', sans-serif;
    font-size: 19px;
    color: #1C1C1E;
    margin: 0;
    line-height: 1.25;
    letter-spacing: -0.2px;
}

.t-cat-hero__bar-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
}

.t-cat-hero__bar {
    flex: 1;
    height: 6px;
    background: #F2F2F7;
    border-radius: 3px;
    overflow: hidden;
    max-width: 200px;
}

.t-cat-hero__bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #C8102E, #E8394A);
    border-radius: 3px;
    transition: width 600ms cubic-bezier(0.4, 0, 0.2, 1);
}

.t-cat-hero__pct {
    font-family: 'Sofia Pro Bold', sans-serif;
    font-size: 14px;
    color: #C8102E;
}

.t-cat-hero__cta {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: 'Sofia Pro Bold', sans-serif;
    font-size: 13px;
    color: #C8102E;
    margin-top: 4px;
    transition: gap 200ms;
}

.t-cat-hero:hover .t-cat-hero__cta {
    gap: 8px;
}

/* ---- Search bar ---- */
.t-cat-search {
    position: relative;
    display: flex;
    align-items: center;
}

.t-cat-search__icon {
    position: absolute;
    left: 14px;
    color: #AEAEB2;
    pointer-events: none;
}

.t-cat-search__input {
    width: 100%;
    padding: 12px 42px 12px 42px;
    font-family: 'Sofia Pro Regular', sans-serif;
    font-size: 14px;
    color: #1C1C1E;
    background: #F8F8FA;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    outline: none;
    transition: border-color 200ms, box-shadow 200ms;
}

.t-cat-search__input::placeholder {
    color: #AEAEB2;
}

.t-cat-search__input:focus {
    border-color: rgba(200, 16, 46, 0.3);
    box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.08);
}

.t-cat-search__clear {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    color: #AEAEB2;
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    display: flex;
    transition: color 150ms;
}

.t-cat-search__clear:hover {
    color: #636366;
}

/* ---- Course list (rows) ---- */
.t-cat-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.t-cat-row {
    display: flex;
    align-items: center;
    gap: 0;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    text-align: left;
    transition: transform 200ms cubic-bezier(0.4, 0, 0.2, 1), box-shadow 200ms, border-color 200ms;
}

.t-cat-row:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    border-color: rgba(200, 16, 46, 0.12);
}

/* ---- Row status icon ---- */
.t-cat-row__icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-left: 16px;
    transition: transform 200ms;
}

.t-cat-row:hover .t-cat-row__icon {
    transform: scale(1.08);
}

.t-cat-row__icon--done {
    background: rgba(52, 199, 89, 0.10);
    color: #34C759;
}

.t-cat-row__icon--progress {
    background: rgba(200, 16, 46, 0.08);
    color: #C8102E;
}

.t-cat-row__icon--assigned {
    background: rgba(0, 122, 255, 0.08);
    color: #007AFF;
}

.t-cat-row__icon--default {
    background: rgba(142, 142, 147, 0.08);
    color: #8E8E93;
}

.t-cat-row__main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    min-width: 0;
}

.t-cat-row__info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.t-cat-row__cat {
    font-family: 'Sofia Pro Bold', sans-serif;
    font-size: 10px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #8E8E93;
}

.t-cat-row__title {
    font-family: 'Sofia Pro Bold', sans-serif;
    font-size: 14px;
    color: #1C1C1E;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.01em;
}

.t-cat-row__chips {
    display: flex;
    gap: 10px;
    margin-top: 2px;
}

.t-cat-row__chip {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-family: 'Sofia Pro Regular', sans-serif;
    font-size: 11px;
    color: #AEAEB2;
}

.t-cat-row__chip svg {
    opacity: 0.5;
}

.t-cat-row__chip--warn {
    color: #FF9500;
}

.t-cat-row__right {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.t-cat-row__progress {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 120px;
}

.t-cat-row__bar {
    flex: 1;
    height: 5px;
    background: #F2F2F7;
    border-radius: 3px;
    overflow: hidden;
}

.t-cat-row__bar-fill {
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, #C8102E, #E8394A);
    transition: width 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

.t-cat-row__pct {
    font-family: 'Sofia Pro Bold', sans-serif;
    font-size: 13px;
    color: #1C1C1E;
    min-width: 32px;
    text-align: right;
}

.t-cat-row__badge {
    font-family: 'Sofia Pro Bold', sans-serif;
    font-size: 10px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 6px;
    white-space: nowrap;
}

.t-cat-row__badge--done     { background: rgba(52, 199, 89, 0.10); color: #248A3D; }
.t-cat-row__badge--progress { background: rgba(200, 16, 46, 0.08); color: #C8102E; }
.t-cat-row__badge--assigned { background: rgba(0, 122, 255, 0.08); color: #007AFF; }
.t-cat-row__badge--default  { background: rgba(142, 142, 147, 0.08); color: #8E8E93; }

.t-cat-row__chevron {
    flex-shrink: 0;
    color: #D1D1D6;
    margin-right: 12px;
    transition: color 150ms, transform 150ms;
}

.t-cat-row:hover .t-cat-row__chevron {
    color: #C8102E;
    transform: translateX(2px);
}

/* ===== COURSE PLAYER (split-pane redesign) ===== */
.t-player {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* ---- Top bar ---- */
.t-player__topbar {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 14px;
    padding: 14px 18px;
}

.t-player__back {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    font-family: 'Sofia Pro Bold', sans-serif;
    font-size: 13px;
    color: #C8102E;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 8px;
    flex-shrink: 0;
    transition: background 150ms;
}

.t-player__back:hover {
    background: rgba(200, 16, 46, 0.06);
}

.t-player__topbar-info {
    flex: 1;
    min-width: 0;
}

.t-player__topbar-title {
    font-family: 'Sofia Pro Bold', sans-serif;
    font-size: 16px;
    color: #1C1C1E;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.2px;
}

.t-player__topbar-sub {
    font-family: 'Sofia Pro Regular', sans-serif;
    font-size: 12px;
    color: #8E8E93;
}

.t-player__topbar-ring {
    position: relative;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
}

.t-player__topbar-ring svg {
    width: 100%;
    height: 100%;
}

.t-player__topbar-pct {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Sofia Pro Bold', sans-serif;
    font-size: 11px;
    color: #C8102E;
}

/* ---- Split pane ---- */
.t-player__split {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 16px;
    min-height: 500px;
}

/* ---- Main content ---- */
.t-player__main {
    min-width: 0;
}

.t-player__lesson {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 14px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.t-player__lesson-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.t-player__lesson-title {
    font-family: 'Sofia Pro Bold', sans-serif;
    font-size: 20px;
    color: #1C1C1E;
    margin: 0;
    letter-spacing: -0.2px;
    line-height: 1.25;
}

.t-player__lesson-meta {
    display: flex;
    gap: 12px;
    font-family: 'Sofia Pro Regular', sans-serif;
    font-size: 12px;
    color: #8E8E93;
    margin-top: 4px;
}

.t-player__lesson-meta span:not(:last-child)::after {
    content: '·';
    margin-left: 12px;
}

.t-player__lesson-close {
    background: #F2F2F7;
    border: none;
    border-radius: 8px;
    padding: 6px;
    cursor: pointer;
    color: #636366;
    flex-shrink: 0;
    transition: background 150ms, color 150ms;
    display: flex;
}

.t-player__lesson-close:hover {
    background: #E5E5EA;
    color: #1C1C1E;
}

/* ---- Alerts ---- */
.t-player__alert {
    padding: 12px 14px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-family: 'Sofia Pro Regular', sans-serif;
    font-size: 13px;
}

.t-player__alert strong {
    font-family: 'Sofia Pro Bold', sans-serif;
    font-size: 13px;
}

.t-player__alert--danger {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #7f1d1d;
}

/* ---- Video ---- */
.t-player__video-wrap {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.t-player__video {
    width: 100%;
    border-radius: 12px;
    background: #111;
}

.t-player__micro-count {
    font-family: 'Sofia Pro Regular', sans-serif;
    font-size: 12px;
    color: #636366;
}

.t-player__micro-prompt {
    padding: 16px;
    border-radius: 12px;
    border: 1px solid #93c5fd;
    background: #eff6ff;
}

.t-player__micro-prompt strong {
    display: block;
    margin-bottom: 8px;
    font-family: 'Sofia Pro Bold', sans-serif;
    font-size: 14px;
}

/* ---- Text content ---- */
.t-player__text-content {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.t-player__content-block {
    padding: 16px;
    background: #F8F8FA;
    border-radius: 12px;
}

.t-player__content-block strong {
    display: block;
    font-family: 'Sofia Pro Bold', sans-serif;
    font-size: 14px;
    color: #1C1C1E;
    margin-bottom: 8px;
}

/* ---- Empty state ---- */
.t-player__empty-state {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 14px;
    padding: 60px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    min-height: 400px;
    justify-content: center;
}

.t-player__empty-state h3 {
    font-family: 'Sofia Pro Bold', sans-serif;
    font-size: 17px;
    color: #1C1C1E;
    margin: 0;
}

.t-player__empty-state p {
    font-family: 'Sofia Pro Regular', sans-serif;
    font-size: 13px;
    color: #8E8E93;
    margin: 0;
    max-width: 320px;
}

.t-player__empty-summary {
    margin-top: 8px !important;
    padding: 12px 16px;
    background: #F8F8FA;
    border-radius: 10px;
    font-size: 13px !important;
    color: #636366 !important;
    line-height: 1.5;
    max-width: 400px;
}

/* ---- Sidebar navigation ---- */
.t-player__nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.t-player__nav-sections {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.t-player__nav-section {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 14px;
    padding: 16px;
}

.t-player__nav-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.t-player__nav-section-title {
    font-family: 'Sofia Pro Bold', sans-serif;
    font-size: 13px;
    color: #1C1C1E;
    margin: 0;
}

.t-player__nav-section-count {
    font-family: 'Sofia Pro Bold', sans-serif;
    font-size: 11px;
    color: #8E8E93;
    background: #F2F2F7;
    padding: 2px 8px;
    border-radius: 10px;
}

.t-player__nav-lessons {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.t-player__nav-lesson {
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 8px;
    transition: background 150ms;
    padding: 2px 4px;
}

.t-player__nav-lesson:hover {
    background: rgba(0, 0, 0, 0.02);
}

.t-player__nav-lesson--active {
    background: rgba(200, 16, 46, 0.06) !important;
}

.t-player__nav-lesson-btn {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    padding: 8px 4px;
    cursor: pointer;
    text-align: left;
    min-width: 0;
}

.t-player__nav-lesson-check {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: #F2F2F7;
    color: #AEAEB2;
}

.t-player__nav-lesson--done .t-player__nav-lesson-check {
    background: rgba(52, 199, 89, 0.12);
    color: #34C759;
}

.t-player__nav-lesson--active .t-player__nav-lesson-check {
    background: rgba(200, 16, 46, 0.12);
    color: #C8102E;
}

.t-player__nav-lesson-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #D1D1D6;
}

.t-player__nav-lesson--active .t-player__nav-lesson-dot {
    background: #C8102E;
}

.t-player__nav-lesson-title {
    font-family: 'Sofia Pro Regular', sans-serif;
    font-size: 12.5px;
    color: #1C1C1E;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.t-player__nav-lesson--done .t-player__nav-lesson-title {
    color: #8E8E93;
    text-decoration: line-through;
}

.t-player__nav-lesson--active .t-player__nav-lesson-title {
    font-family: 'Sofia Pro Bold', sans-serif;
    color: #C8102E;
}

/* ---- Nav assessments ---- */
.t-player__nav-assess {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 14px;
    padding: 16px;
}

.t-player__nav-assess-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.t-player__nav-assess-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.t-player__nav-assess-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.t-player__nav-assess-name {
    font-family: 'Sofia Pro Bold', sans-serif;
    font-size: 12px;
    color: #1C1C1E;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.t-player__nav-assess-attempt {
    font-family: 'Sofia Pro Regular', sans-serif;
    font-size: 11px;
    color: #AEAEB2;
}

.t-rich-content {
    font-family: 'Sofia Pro Regular', sans-serif;
    font-size: 13.5px;
    line-height: 1.6;
    color: #1C1C1E;
    overflow-wrap: anywhere;
}

.t-rich-content--lesson {
    margin-top: 14px;
}

.t-rich-content p {
    margin: 0 0 10px;
}

.t-rich-content ul,
.t-rich-content ol {
    margin: 0 0 10px;
    padding-left: 22px;
}

.t-rich-content li {
    margin-bottom: 6px;
}

.t-rich-content a {
    color: #C8102E;
    text-decoration: underline;
}

.t-rich-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 10px 0;
}

.t-rich-content code {
    background: #F2F2F7;
    border-radius: 6px;
    padding: 1px 6px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
    font-size: 12px;
}

.t-rich-content pre {
    margin: 10px 0;
    padding: 10px 12px;
    border-radius: 10px;
    background: #F8F8FA;
    border: 1px solid rgba(0, 0, 0, 0.06);
    overflow-x: auto;
}

.t-rich-content pre code {
    background: transparent;
    padding: 0;
}

.t-rich-content blockquote {
    margin: 10px 0;
    padding: 8px 12px;
    border-left: 3px solid #C8102E;
    background: rgba(200, 16, 46, 0.05);
    border-radius: 0 8px 8px 0;
}

.t-rich-content .rich-editor-video {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    margin: 12px 0;
    border-radius: 12px;
    overflow: hidden;
    background: #111;
}

.t-rich-content .rich-editor-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.t-player__sections {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.t-player-section {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 14px;
    padding: 20px;
}

.t-player-section__title {
    font-family: 'Sofia Pro Bold', sans-serif;
    font-size: 15px;
    color: #1C1C1E;
    margin: 0 0 14px;
}

.t-player-lessons {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.t-lesson {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    transition: background 150ms;
}

.t-lesson:hover {
    background: rgba(0, 0, 0, 0.02);
}

.t-lesson__check {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: #F2F2F7;
    color: #AEAEB2;
}

.t-lesson--done .t-lesson__check {
    background: rgba(52, 199, 89, 0.12);
    color: #34C759;
}

.t-lesson__check svg {
    width: 16px;
    height: 16px;
}

.t-lesson__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #D1D1D6;
}

.t-lesson__title {
    font-family: 'Sofia Pro Regular', sans-serif;
    font-size: 13.5px;
    color: #1C1C1E;
    flex: 1;
    min-width: 0;
}

.t-lesson--done .t-lesson__title {
    color: #8E8E93;
    text-decoration: line-through;
}

/* ===== COURSE DETAIL (layout from reference) ===== */
/* ===== COURSE DETAIL - ENHANCED ===== */

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

@keyframes t-detail-pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.08); }
}

@keyframes t-detail-progressFill {
    from { width: 0; }
}

.t-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 370px;
    background: #fff;
    margin: -28px -32px -40px;
    min-height: calc(100vh - 60px);
}

.t-detail-main {
    min-width: 0;
    padding: 24px 32px 28px;
    animation: t-detail-fadeIn 350ms ease-out;
}

.t-detail-back {
    border: none;
    background: transparent;
    color: #C8102E;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-family: 'Sofia Pro Bold', sans-serif;
    font-size: 13px;
    padding: 4px 0;
    transition: gap 200ms ease;
}

.t-detail-back:hover {
    gap: 8px;
}

.t-detail-back svg {
    width: 16px;
    height: 16px;
    transition: transform 200ms ease;
}

.t-detail-back:hover svg {
    transform: translateX(-2px);
}

/* Header zone: badge + title + metadata row */
.t-detail-header {
    margin-top: 16px;
    animation: t-detail-fadeIn 400ms ease-out 50ms both;
}

.t-detail-header-top {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.t-detail-category-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 20px;
    background: linear-gradient(135deg, #C8102E, #A00D24);
    color: #fff;
    font-family: 'Sofia Pro Bold', sans-serif;
    font-size: 11px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.t-detail-category-badge svg {
    width: 12px;
    height: 12px;
}

.t-detail-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-family: 'Sofia Pro Regular', sans-serif;
    font-size: 12.5px;
    color: #8A8A92;
}

.t-detail-breadcrumb span:last-child {
    color: #62626A;
    font-family: 'Sofia Pro Bold', sans-serif;
}

.t-detail-title {
    margin: 0 0 8px;
    font-family: 'Sofia Pro Bold', sans-serif;
    font-size: 38px;
    line-height: 1.1;
    letter-spacing: -0.025em;
    color: #17171D;
}

/* Inline metadata row under title */
.t-detail-meta-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.t-detail-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: 'Sofia Pro Regular', sans-serif;
    font-size: 13px;
    color: #6B6B73;
}

.t-detail-meta-item svg {
    width: 14px;
    height: 14px;
    color: #9A9AA3;
}

.t-detail-meta-item strong {
    font-family: 'Sofia Pro Bold', sans-serif;
    color: #3D3D45;
}

/* Inline mini progress */
.t-detail-inline-progress {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px 4px 8px;
    border-radius: 20px;
    background: rgba(200, 16, 46, 0.06);
    font-family: 'Sofia Pro Bold', sans-serif;
    font-size: 12px;
    color: #C8102E;
}

.t-detail-inline-progress__ring {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.t-detail-inline-progress__ring circle {
    fill: none;
    stroke-width: 3;
}

.t-detail-inline-progress__ring .ring-bg {
    stroke: rgba(200, 16, 46, 0.15);
}

.t-detail-inline-progress__ring .ring-fill {
    stroke: #C8102E;
    stroke-linecap: round;
    transition: stroke-dashoffset 600ms ease;
}

.t-detail-media {
    margin-top: 18px;
    animation: t-detail-fadeIn 400ms ease-out 100ms both;
}

.t-detail-video-wrap {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
}

.t-detail-video {
    width: 100%;
    min-height: 300px;
    max-height: 440px;
    display: block;
    background: #111;
}

.t-detail-video--iframe {
    aspect-ratio: 16 / 9;
    height: auto;
    max-height: none;
    border: 0;
}

.t-detail-play-chip {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #E31337;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    box-shadow: 0 6px 28px rgba(227, 19, 55, 0.4);
    animation: t-detail-pulse 2.5s ease-in-out infinite;
}

.t-detail-play-chip svg {
    width: 30px;
    height: 30px;
    margin-left: 3px;
}

/* Video/image overlay badge */
.t-detail-media-badge {
    position: absolute;
    bottom: 14px;
    left: 14px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    font-family: 'Sofia Pro Bold', sans-serif;
    font-size: 12px;
    z-index: 2;
}

.t-detail-media-badge svg {
    width: 13px;
    height: 13px;
}

.t-detail-image {
    height: 320px;
    border-radius: 16px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.t-detail-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.02) 0%, rgba(0, 0, 0, 0.25) 100%);
}

.t-detail-image--fallback {
    background: linear-gradient(140deg, #C8102E 0%, #7D0B1E 60%, #4A0812 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.t-detail-image--fallback span {
    position: relative;
    z-index: 1;
    color: #fff;
    font-family: 'Sofia Pro Bold', sans-serif;
    font-size: 20px;
    letter-spacing: 0.04em;
}

.t-detail-micro-count {
    margin-top: 12px;
    font-family: 'Sofia Pro Regular', sans-serif;
    font-size: 12px;
    color: #6B6B73;
}

.t-detail-micro-prompt {
    margin-top: 10px;
    padding: 16px;
    border: 1px solid #99bdfb;
    border-radius: 14px;
    background: #f0f6ff;
    animation: t-detail-fadeIn 300ms ease-out;
}

.t-detail-micro-prompt strong {
    display: block;
    margin-bottom: 4px;
    font-family: 'Sofia Pro Bold', sans-serif;
}

.t-detail-micro-prompt p {
    margin: 0 0 10px;
    font-family: 'Sofia Pro Regular', sans-serif;
    font-size: 14px;
    color: #2C2C33;
}

.t-detail-micro-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.t-detail-micro-option {
    border: 1px solid #c8d5ef;
    background: #fff;
    border-radius: 10px;
    padding: 8px 14px;
    font-family: 'Sofia Pro Regular', sans-serif;
    font-size: 13px;
    cursor: pointer;
    transition: all 180ms ease;
}

.t-detail-micro-option:hover {
    border-color: #99b0e0;
    background: #f8faff;
}

.t-detail-micro-option.is-active {
    border-color: rgba(200, 16, 46, 0.4);
    background: rgba(200, 16, 46, 0.08);
    color: #9A1027;
    font-family: 'Sofia Pro Bold', sans-serif;
}

.t-detail-micro-actions {
    margin-top: 10px;
    display: flex;
    justify-content: flex-end;
}

.t-detail-block {
    margin-top: 26px;
    animation: t-detail-fadeIn 400ms ease-out 150ms both;
}

.t-detail-block > h3 {
    margin: 0 0 10px;
    font-family: 'Sofia Pro Bold', sans-serif;
    font-size: 20px;
    color: #17171D;
    display: flex;
    align-items: center;
    gap: 8px;
}

.t-detail-block > h3::before {
    content: '';
    width: 3px;
    height: 18px;
    border-radius: 2px;
    background: #C8102E;
    flex-shrink: 0;
}

.t-detail-block--flat {
    margin-top: 20px;
}

.t-detail-block--flat h3 {
    display: none;
}

.t-detail-block p {
    margin: 0;
    font-family: 'Sofia Pro Regular', sans-serif;
    font-size: 17px;
    color: #4A4A52;
    line-height: 1.6;
}

.t-detail-rich-copy {
    margin: 0;
    font-family: 'Sofia Pro Regular', sans-serif;
    font-size: 17px;
    color: #4A4A52;
    line-height: 1.6;
}

.t-detail-rich-copy h1,
.t-detail-rich-copy h2,
.t-detail-rich-copy h3,
.t-detail-rich-copy h4,
.t-detail-rich-copy h5,
.t-detail-rich-copy h6 {
    margin: 1.1em 0 0.45em;
    line-height: 1.25;
    color: #1F1F24;
    font-family: 'Sofia Pro Bold', sans-serif;
}

.t-detail-rich-copy h1 {
    font-size: 2.25rem;
    letter-spacing: -0.022em;
}

.t-detail-rich-copy h2 {
    font-size: 1.9rem;
    letter-spacing: -0.018em;
}

.t-detail-rich-copy h3 {
    font-size: 1.55rem;
    letter-spacing: -0.012em;
}

.t-detail-rich-copy h4 {
    font-size: 1.3rem;
}

.t-detail-rich-copy h5 {
    font-size: 1.12rem;
    color: #2E2E35;
}

.t-detail-rich-copy h6 {
    font-size: 1rem;
    color: #5E5E67;
    letter-spacing: 0.01em;
}

.t-detail-rich-copy > :first-child {
    margin-top: 0;
}

.t-detail-rich-copy > :last-child {
    margin-bottom: 0;
}

/* Collapse excessive whitespace from editor artifacts */
.t-detail-rich-copy br + br {
    display: none;
}
.t-detail-rich-copy p:empty,
.t-detail-rich-copy div:empty {
    display: none;
}
.t-detail-rich-copy p > br:only-child,
.t-detail-rich-copy div > br:only-child {
    display: none;
}
.t-detail-rich-copy p + br,
.t-detail-rich-copy div + br {
    display: none;
}

.t-detail-rich-copy p,
.t-detail-rich-copy div:not(.rich-editor-video),
.t-detail-rich-copy ul,
.t-detail-rich-copy ol,
.t-detail-rich-copy blockquote,
.t-detail-rich-copy pre {
    margin: 0 0 0.5rem;
}

.t-detail-rich-copy ul,
.t-detail-rich-copy ol {
    padding-left: 1.2rem;
}

.t-detail-rich-copy img,
.t-detail-rich-copy iframe {
    max-width: 100%;
    border-radius: 10px;
}

.t-detail-rich-copy a {
    color: #9A1027;
    text-decoration: underline;
}

/* Takeaway / Punto clave - subtle inline */
.t-detail-takeaway {
    margin-top: 14px;
    display: flex;
    gap: 8px;
    align-items: flex-start;
    padding: 0;
}

.t-detail-takeaway > svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    color: #B8B8BF;
    margin-top: 2px;
}

.t-detail-takeaway p {
    margin: 0;
    font-family: 'Sofia Pro Regular', sans-serif;
    font-size: 13.5px;
    color: #8A8A92;
    line-height: 1.45;
    font-style: italic;
}

/* Resources - card style */
.t-detail-resources {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.t-detail-resource {
    border: 1px solid #e8e0e0;
    border-radius: 14px;
    background: #fff;
    color: #3D3D45;
    padding: 14px 18px;
    font-family: 'Sofia Pro Bold', sans-serif;
    font-size: 13.5px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    cursor: pointer;
    transition: all 200ms ease;
    min-width: 160px;
}

.t-detail-resource svg {
    width: 18px;
    height: 18px;
    color: #C8102E;
    flex-shrink: 0;
}

.t-detail-resource:hover {
    border-color: rgba(200, 16, 46, 0.3);
    background: #FFF8F8;
    color: #8E0F24;
    transform: translateY(-1px);
    box-shadow: 0 3px 12px rgba(200, 16, 46, 0.08);
}

.t-detail-no-resources {
    font-family: 'Sofia Pro Regular', sans-serif;
    font-size: 13px;
    color: #8A8A93;
    padding: 10px 0;
}

/* ===== SIDEBAR ===== */
.t-detail-side {
    border-left: 1px solid rgba(0, 0, 0, 0.06);
    background: linear-gradient(180deg, #FAFAFB 0%, #F5F5F7 100%);
    position: sticky;
    top: 0;
    align-self: start;
    max-height: 100vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(0,0,0,0.1) transparent;
}

.t-detail-side-card {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.t-detail-side-card h3 {
    margin: 0;
    font-family: 'Sofia Pro Bold', sans-serif;
    font-size: 15px;
    color: #1B1B20;
}

.t-detail-side-count {
    font-family: 'Sofia Pro Regular', sans-serif;
    font-size: 12px;
    color: #8A8A92;
}

.t-detail-modules {
}

/* Module group (wraps sections) */
.t-detail-module-group {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.t-detail-module-group__head {
    width: 100%;
    border: none;
    background: linear-gradient(135deg, #f8f0f0 0%, #f5f3f4 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    text-align: left;
    padding: 14px 18px;
    cursor: pointer;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: background 180ms ease;
}

.t-detail-module-group__head:hover {
    background: linear-gradient(135deg, #f5ebeb 0%, #f2f0f1 100%);
}

.t-detail-module-group__head h4 {
    margin: 0;
    font-family: 'Sofia Pro Bold', sans-serif;
    font-size: 13.5px;
    color: #C8102E;
    letter-spacing: 0.01em;
    text-transform: uppercase;
}

.t-detail-module-group__head svg {
    width: 16px;
    height: 16px;
    color: #C8102E;
    transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.t-detail-module-group__head svg.is-collapsed {
    transform: rotate(-90deg);
}

.t-detail-module {
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.t-detail-module__head {
    width: 100%;
    border: none;
    background: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    text-align: left;
    padding: 13px 18px 13px 24px;
    cursor: pointer;
    transition: background 180ms ease;
}

.t-detail-module__head:hover {
    background: rgba(255, 255, 255, 0.95);
}

.t-detail-module__head h4 {
    margin: 0;
    font-family: 'Sofia Pro Bold', sans-serif;
    font-size: 14px;
    color: #1F1F24;
}

.t-detail-module__head svg {
    width: 15px;
    height: 15px;
    color: #5B5B63;
    transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.t-detail-module__head svg.is-collapsed {
    transform: rotate(-90deg);
}

.t-detail-module__lessons {
    padding: 2px 0 6px;
    background: rgba(255, 255, 255, 0.5);
}

.t-detail-lesson {
    width: 100%;
    border: none;
    background: transparent;
    padding: 10px 16px 10px 20px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    text-align: left;
    cursor: pointer;
    border-left: 3px solid transparent;
    transition: all 180ms ease;
}

.t-detail-lesson:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.8);
}

.t-detail-lesson.is-current {
    background: #FFF4F5;
    border-left-color: #C8102E;
}

.t-detail-lesson.is-done .t-detail-lesson__title {
    color: #8A8A93;
}

.t-detail-lesson.is-done {
    opacity: 0.7;
}

.t-detail-lesson.is-locked {
    opacity: 0.5;
    cursor: not-allowed;
}

.t-detail-lesson__icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: #C8102E;
    margin-top: 1px;
}

.t-detail-lesson.is-done .t-detail-lesson__icon {
    color: #24A55A;
}

.t-detail-lesson.is-locked .t-detail-lesson__icon {
    color: #8C8C95;
}

.t-detail-lesson__icon svg {
    width: 20px;
    height: 20px;
}

.t-detail-lesson__body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.t-detail-lesson__title {
    font-family: 'Sofia Pro Bold', sans-serif;
    font-size: 14px;
    color: #202026;
    line-height: 1.35;
}

.t-detail-lesson__meta {
    font-family: 'Sofia Pro Regular', sans-serif;
    font-size: 11.5px;
    color: #7B7B84;
}

/* ===== STICKY FOOTER ===== */
.t-detail-footer {
    margin: 24px -32px 0;
    position: sticky;
    bottom: 0;
    z-index: 10;
    border-top: 1px solid rgba(0, 0, 0, 0.07);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 14px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.t-detail-footer-btn {
    border: none;
    border-radius: 10px;
    padding: 11px 16px;
    font-family: 'Sofia Pro Bold', sans-serif;
    font-size: 13.5px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    transition: all 200ms ease;
}

.t-detail-footer-btn svg {
    width: 15px;
    height: 15px;
}

.t-detail-footer-btn--ghost {
    background: #fff;
    color: #23232A;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.t-detail-footer-btn--ghost:hover:not(:disabled) {
    background: #f8f8fa;
    border-color: rgba(0, 0, 0, 0.15);
}

.t-detail-footer-btn--primary {
    margin-left: auto;
    background: linear-gradient(135deg, #E31337, #C8102E);
    color: #fff;
    box-shadow: 0 2px 10px rgba(200, 16, 46, 0.2);
}

.t-detail-footer-btn--primary:hover:not(:disabled) {
    box-shadow: 0 4px 16px rgba(200, 16, 46, 0.3);
    transform: translateY(-1px);
}

.t-detail-footer-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Footer lesson name hints */
.t-detail-footer-btn__label {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.t-detail-footer-btn__hint {
    font-family: 'Sofia Pro Regular', sans-serif;
    font-size: 10.5px;
    color: rgba(0, 0, 0, 0.4);
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.t-detail-footer-btn--primary .t-detail-footer-btn__hint {
    color: rgba(255, 255, 255, 0.65);
    text-align: right;
}

.t-detail-footer-btn--ghost .t-detail-footer-btn__label {
    text-align: right;
}

.t-detail-footer-btn--primary .t-detail-footer-btn__label {
    text-align: left;
}

/* ===== ASSESSMENTS ===== */
.t-assess-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.t-assess-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 14px;
    transition: transform 150ms, box-shadow 150ms;
}

.t-assess-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

.t-assess-card__icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255, 149, 0, 0.1);
    color: #FF9500;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.t-assess-card__icon svg {
    width: 22px;
    height: 22px;
}

.t-assess-card__body {
    flex: 1;
    min-width: 0;
}

.t-assess-card__title {
    font-family: 'Sofia Pro Bold', sans-serif;
    font-size: 14px;
    color: #1C1C1E;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.t-assess-card__course {
    font-family: 'Sofia Pro Regular', sans-serif;
    font-size: 12px;
    color: #8E8E93;
    margin-top: 2px;
    display: block;
}

.t-assess-card.is-locked {
    opacity: 0.65;
    pointer-events: none;
    background: #F9FAFB;
}

.t-assess-card.is-locked .t-assess-card__icon {
    background: rgba(0, 0, 0, 0.06);
    color: #8E8E93;
}

.t-assess-card.is-passed {
    border-color: rgba(52, 199, 89, 0.2);
    background: rgba(52, 199, 89, 0.03);
}

.t-assess-card.is-passed .t-assess-card__icon {
    background: rgba(52, 199, 89, 0.1);
    color: #34C759;
}

.t-assess-card__lock-hint {
    font-size: 11px;
    color: #8E8E93;
    display: block;
    margin-top: 2px;
}

.t-detail-resource.is-locked {
    opacity: 0.45;
    cursor: not-allowed;
    background: #f8f8f9;
}

.t-detail-resource.is-locked svg {
    color: #999;
}

.t-detail-resource.is-passed {
    border-color: #b8e6ca;
    background: #f0faf4;
    color: #1a7a3d;
}

.t-detail-resource.is-passed svg {
    color: #24A55A;
}

/* ---- Attempt ---- */
.t-attempt {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.t-attempt__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 14px;
    padding: 20px 24px;
}

.t-attempt__title {
    font-family: 'Sofia Pro Bold', sans-serif;
    font-size: 18px;
    color: #1C1C1E;
    margin: 0 0 6px;
}

.t-attempt__summary {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.t-attempt__headline {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 220px));
    gap: 10px;
}

.t-attempt__score-pill {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.t-attempt__score-pill span {
    font-size: 11px;
    color: #6E6E76;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.t-attempt__score-pill strong {
    font-family: 'Sofia Pro Bold', sans-serif;
    font-size: 24px;
    color: #1C1C1E;
    line-height: 1.1;
}

.t-attempt__score-pill.is-pass {
    background: #f0fbf4;
    border-color: rgba(36, 165, 90, 0.35);
}

.t-attempt__score-pill.is-pass strong {
    color: #1f8b4b;
}

.t-attempt__score-pill.is-fail {
    background: #fff4f5;
    border-color: rgba(200, 16, 46, 0.25);
}

.t-attempt__score-pill.is-fail strong {
    color: #C8102E;
}

.t-attempt__score-pill--muted {
    background: #f7f7f9;
}

.t-attempt__score-pill--muted strong {
    font-size: 22px;
    color: #2D2D32;
}

.t-attempt__metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.t-attempt__metric {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    padding: 12px 14px;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.t-attempt__metric-label {
    font-size: 12px;
    color: #6E6E76;
}

.t-attempt__metric strong {
    font-family: 'Sofia Pro Bold', sans-serif;
    font-size: 18px;
    color: #1C1C1E;
}

.t-attempt__questions {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.t-question {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 14px;
    padding: 22px 24px;
}

.t-question__text {
    font-family: 'Sofia Pro Regular', sans-serif;
    font-size: 14.5px;
    color: #1C1C1E;
    margin: 0 0 14px;
    line-height: 1.5;
}

.t-question__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(200, 16, 46, 0.08);
    color: #C8102E;
    font-family: 'Sofia Pro Bold', sans-serif;
    font-size: 12px;
    margin-right: 10px;
    vertical-align: middle;
    flex-shrink: 0;
}

.t-question__num.is-correct {
    background: rgba(52, 199, 89, 0.12);
    color: #1f8b4b;
}

/* ---- Options (radio) ---- */
.t-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.t-option {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #F8F8FA;
    border: 1.5px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    transition: background 150ms, border-color 150ms;
}

.t-option:hover {
    background: #F2F2F7;
}

.t-option--selected {
    background: rgba(200, 16, 46, 0.04);
    border-color: rgba(200, 16, 46, 0.3);
}

.t-option input[type="radio"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 1px;
    height: 1px;
    margin: 0;
    opacity: 0;
    pointer-events: none;
}

.t-option__radio {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #D1D1D6;
    flex-shrink: 0;
    position: relative;
    transition: border-color 150ms;
}

.t-option--selected .t-option__radio {
    border-color: #C8102E;
}

.t-option--selected .t-option__radio::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #C8102E;
}

.t-option__text {
    font-family: 'Sofia Pro Regular', sans-serif;
    font-size: 13.5px;
    color: #1C1C1E;
}

/* ===== ONBOARDING ===== */
.t-onboard-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.t-onboard-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 22px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 14px;
    transition: transform 150ms, box-shadow 150ms;
}

.t-onboard-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

.t-onboard-card__indicator {
    width: 6px;
    height: 40px;
    border-radius: 3px;
    flex-shrink: 0;
}

.t-onboard-card__indicator--in_progress {
    background: linear-gradient(180deg, #C8102E, #E8394A);
}

.t-onboard-card__indicator--completed {
    background: #34C759;
}

.t-onboard-card__indicator--pending {
    background: #D1D1D6;
}

.t-onboard-card__body {
    flex: 1;
    min-width: 0;
}

.t-onboard-card__title {
    font-family: 'Sofia Pro Bold', sans-serif;
    font-size: 15px;
    color: #1C1C1E;
    margin: 0;
}

.t-onboard-card__step {
    font-family: 'Sofia Pro Regular', sans-serif;
    font-size: 12.5px;
    color: #8E8E93;
    margin-top: 3px;
    display: block;
}

/* ===== LAUNCHES ===== */

/* ---- Stats row ---- */
/* ---- Heading override ---- */
.t-launch-heading {
    font-size: 33px !important;
    line-height: 1 !important;
    letter-spacing: -0.03em !important;
}

/* ---- Stats bar ---- */
.t-launch-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: #fff;
    border: 1px solid #E7E7EC;
    border-radius: 12px;
    overflow: hidden;
}

.t-launch-stat {
    padding: 16px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    position: relative;
    border-right: 1px solid #E7E7EC;
}

.t-launch-stat:last-child {
    border-right: none;
}

.t-launch-stat::before {
    display: none;
}

.t-launch-stat__val {
    font-family: 'Sofia Pro Bold', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 31px;
    line-height: 1;
    color: #1A1A1F;
}

.t-launch-stat--green .t-launch-stat__val  { color: #34C759; }
.t-launch-stat--blue .t-launch-stat__val   { color: #007AFF; }
.t-launch-stat--amber .t-launch-stat__val  { color: #FF9500; }

.t-launch-stat__lbl {
    font-family: 'Sofia Pro Regular', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 11px;
    color: #4F4F58;
}

/* ---- Filters ---- */
.t-launch-filters {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.t-launch-filter {
    border: 1px solid #E5E5EB;
    background: #FAFAFB;
    color: #35353A;
    border-radius: 10px;
    padding: 7px 14px;
    font-family: 'Sofia Pro Regular', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
    transition: border-color 150ms, background 150ms;
}

.t-launch-filter:hover {
    border-color: #D4D4DC;
    background: #fff;
}

.t-launch-filter.is-active {
    background: #C8102E;
    border-color: #C8102E;
    color: #fff;
    font-family: 'Sofia Pro Bold', -apple-system, BlinkMacSystemFont, sans-serif;
}

.t-launch-sort {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Sofia Pro Regular', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 12px;
    color: #7D7D86;
}

.t-launch-sort select {
    border: 1px solid #E5E5EB;
    border-radius: 8px;
    padding: 5px 10px;
    font-family: 'Sofia Pro Regular', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 12px;
    color: #35353A;
    background: #FAFAFB;
    cursor: pointer;
    transition: border-color 150ms;
}

.t-launch-sort select:focus {
    outline: none;
    border-color: #C8102E;
}

/* ---- Grid ---- */
.t-launch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
}

/* ---- Card (dark, matching dash-learning-card) ---- */
.t-launch-card {
    border: none;
    background: #0f1013;
    border-radius: 12px;
    color: #fff;
    overflow: hidden;
    transition: transform 150ms;
}

.t-launch-card:hover {
    transform: translateY(-1px);
}

.t-launch-card--history {
    opacity: 0.6;
}

/* ---- Urgency accents ---- */
.t-launch-card--warning {
    box-shadow: inset 3px 0 0 #FF9500;
}

.t-launch-card--overdue {
    box-shadow: inset 3px 0 0 #DD1938;
    animation: t-launch-pulse 2.5s ease-in-out infinite;
}

.t-launch-card--completed {
    box-shadow: inset 3px 0 0 #34C759;
}

@keyframes t-launch-pulse {
    0%, 100% { box-shadow: inset 3px 0 0 #DD1938, 0 0 0 0 rgba(221, 25, 56, 0); }
    50%      { box-shadow: inset 3px 0 0 #DD1938, 0 0 0 4px rgba(221, 25, 56, 0.08); }
}

/* ---- Media section ---- */
.t-launch-card__media {
    height: 140px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.t-launch-card__media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.12) 0%, rgba(0, 0, 0, 0.8) 100%);
}

.t-launch-card__media--fallback {
    background: linear-gradient(140deg, #d7483f, #8d101a);
    display: flex;
    align-items: center;
    justify-content: center;
}

.t-launch-card__media--fallback::after {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.4) 100%);
}

.t-launch-card__media--fallback svg {
    width: 44px;
    height: 44px;
    color: rgba(255, 255, 255, 0.3);
    z-index: 1;
}

/* ---- Status badge (on media) ---- */
.t-launch-card__status {
    position: absolute;
    z-index: 1;
    top: 14px;
    left: 14px;
    font-family: 'Sofia Pro Bold', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.t-launch-card__status--idle {
    color: rgba(255, 255, 255, 0.85);
}

.t-launch-card__status--progress {
    color: #FFC366;
}

.t-launch-card__status--done {
    color: #78E2A5;
}

.t-launch-card__status--overdue {
    color: #FF5046;
}

/* ---- Pct overlay (top-right) ---- */
.t-launch-card__pct-overlay {
    position: absolute;
    z-index: 1;
    right: 14px;
    top: 14px;
    font-family: 'Sofia Pro Bold', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
}

/* ---- Progress bar overlay (bottom of media) ---- */
.t-launch-card__bar-overlay {
    position: absolute;
    z-index: 1;
    left: 10px;
    right: 10px;
    bottom: 10px;
    height: 4px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.18);
}

.t-launch-card__bar-overlay span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #DD1938;
    transition: width 400ms ease;
}

/* ---- Completed check (bottom-right of media) ---- */
.t-launch-card__check {
    position: absolute;
    z-index: 1;
    right: 14px;
    bottom: 14px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #34C759;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.t-launch-card__check svg {
    width: 14px;
    height: 14px;
}

/* ---- Card body (dark) ---- */
.t-launch-card__body {
    padding: 10px 10px 12px;
    background: #101115;
}

.t-launch-card__title {
    font-family: 'Sofia Pro Bold', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 13px;
    line-height: 1.3;
    color: #fff;
    margin: 0 0 8px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ---- Inline progress bar (body) ---- */
.t-launch-card__bar {
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    overflow: hidden;
    margin-bottom: 10px;
}

.t-launch-card__bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #DD1938;
    transition: width 400ms ease;
}

/* ---- Card footer ---- */
.t-launch-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.t-launch-card__due {
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: 'Sofia Pro Regular', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

.t-launch-card__due svg {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
}

.t-launch-card__due--warning {
    color: #FF9500;
    font-family: 'Sofia Pro Bold', -apple-system, BlinkMacSystemFont, sans-serif;
}

.t-launch-card__due--overdue {
    color: #FF5046;
    font-family: 'Sofia Pro Bold', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ---- Action button (white pill, matching dash-learning-resume) ---- */
.t-launch-card__action {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #fff;
    color: #121216;
    border: none;
    border-radius: 999px;
    padding: 5px 10px;
    font-family: 'Sofia Pro Bold', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 12px;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 150ms;
    margin-left: auto;
}

.t-launch-card__action:hover {
    background: #E4E4E9;
}

.t-launch-card__action:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.t-launch-card__action svg {
    width: 13px;
    height: 13px;
}

/* ---- Circular progress ring (kept for fallback) ---- */
.t-launch-progress-ring {
    width: 40px;
    height: 40px;
    position: relative;
    flex-shrink: 0;
}

.t-launch-progress-ring svg {
    width: 40px;
    height: 40px;
    transform: rotate(-90deg);
}

.t-launch-progress-ring__bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.12);
    stroke-width: 3;
}

.t-launch-progress-ring__fill {
    fill: none;
    stroke: #DD1938;
    stroke-width: 3;
    stroke-linecap: round;
    transition: stroke-dashoffset 400ms ease;
}

.t-launch-progress-ring__text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Sofia Pro Bold', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 10px;
    color: #fff;
}

/* ---- History toggle ---- */
.t-launch-history-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    border-top: 1px solid #E7E7EC;
    cursor: pointer;
    padding: 14px 0 8px;
    margin-top: 20px;
    margin-bottom: 8px;
    font-family: 'Sofia Pro Bold', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    color: #4F4F58;
    width: 100%;
    transition: color 150ms;
}

.t-launch-history-toggle:hover {
    color: #1A1A1F;
}

.t-launch-history-toggle svg {
    width: 16px;
    height: 16px;
    transition: transform 200ms;
    color: #7D7D86;
}

.t-launch-history-toggle svg.is-open {
    transform: rotate(0deg);
}

.t-launch-history-toggle svg.is-collapsed {
    transform: rotate(-90deg);
}

.t-launch-card--history .t-launch-card__media {
    height: 100px;
}

/* ---- Empty state ---- */
.t-launch-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 48px 24px;
    color: #9A9AA3;
}

.t-launch-empty svg {
    width: 44px;
    height: 44px;
    opacity: 0.25;
}

.t-launch-empty p {
    font-family: 'Sofia Pro Regular', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    margin: 0;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .t-launch-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    .t-launch-stat:nth-child(2) {
        border-right: none;
    }
    .t-launch-stat:nth-child(1),
    .t-launch-stat:nth-child(2) {
        border-bottom: 1px solid #E7E7EC;
    }
    .t-launch-grid {
        grid-template-columns: 1fr;
    }
    .t-launch-heading {
        font-size: 24px !important;
    }
}

/* ===== KARDEX ===== */
.t-kardex-stats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
}

.t-kstat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 14px;
    padding: 20px 12px;
    text-align: center;
    transition: transform 150ms, box-shadow 150ms;
}

.t-kstat:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

.t-kstat--accent {
    background: linear-gradient(135deg, #C8102E, #D41432);
    border-color: transparent;
}

.t-kstat--accent .t-kstat__value,
.t-kstat--accent .t-kstat__label {
    color: #fff;
}

.t-kstat__value {
    font-family: 'Sofia Pro Bold', sans-serif;
    font-size: 24px;
    color: #1C1C1E;
    line-height: 1.1;
}

.t-kstat__label {
    font-family: 'Sofia Pro Regular', sans-serif;
    font-size: 11.5px;
    color: #8E8E93;
}

/* ---- Admin Controls ---- */
.t-admin-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.t-admin-controls .t-input {
    flex: 1;
    min-width: 160px;
}

.t-kardex-restaurant__name {
    font-family: 'Sofia Pro Bold', sans-serif;
    font-size: 17px;
    color: #1C1C1E;
    margin: 20px 0 0;
}

/* ---- Kardex Module v2 ---- */
.kx-module {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Restaurant Selector */
.kx-selector {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 18px;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.kx-selector__icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(200,16,46,0.08), rgba(200,16,46,0.03));
    color: #C8102E;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.kx-selector__icon svg {
    width: 22px;
    height: 22px;
}

.kx-selector__search-wrap {
    flex: 1;
    min-width: 200px;
    position: relative;
}

.kx-selector__search {
    width: 100%;
    padding: 10px 14px 10px 38px;
    background: #F8F8FA;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 10px;
    font-family: 'Sofia Pro Regular', sans-serif;
    font-size: 13.5px;
    color: #1C1C1E;
    outline: none;
    transition: border-color 200ms, background 200ms, box-shadow 200ms;
}

.kx-selector__search:focus {
    border-color: #C8102E;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(200,16,46,0.08);
}

.kx-selector__search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: #AEAEB2;
    pointer-events: none;
}

.kx-selector__pills {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    max-width: 100%;
}

.kx-selector__pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    border-radius: 20px;
    font-family: 'Sofia Pro Regular', sans-serif;
    font-size: 12.5px;
    color: #636366;
    background: #F2F2F7;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 150ms;
    white-space: nowrap;
}

.kx-selector__pill:hover {
    background: #E8E8ED;
}

.kx-selector__pill--active {
    background: linear-gradient(135deg, #C8102E, #D41432);
    color: #fff;
    border-color: transparent;
    font-family: 'Sofia Pro Bold', sans-serif;
}

.kx-selector__pill--all {
    font-family: 'Sofia Pro Bold', sans-serif;
}

.kx-selector__count {
    font-family: 'Sofia Pro Regular', sans-serif;
    font-size: 12px;
    color: #AEAEB2;
    white-space: nowrap;
    margin-left: auto;
}

/* Active Restaurant Indicator */
.kx-active-restaurant {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    background: linear-gradient(135deg, rgba(200,16,46,0.04), rgba(200,16,46,0.01));
    border: 1px solid rgba(200,16,46,0.1);
    border-radius: 12px;
    margin-top: 16px;
}

.kx-active-restaurant__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #34C759;
    flex-shrink: 0;
    box-shadow: 0 0 0 3px rgba(52,199,89,0.15);
}

.kx-active-restaurant__label {
    font-family: 'Sofia Pro Regular', sans-serif;
    font-size: 12.5px;
    color: #8E8E93;
}

.kx-active-restaurant__name {
    font-family: 'Sofia Pro Bold', sans-serif;
    font-size: 14px;
    color: #C8102E;
}

.kx-active-restaurant__meta {
    font-family: 'Sofia Pro Regular', sans-serif;
    font-size: 12px;
    color: #AEAEB2;
    margin-left: auto;
}

/* Kardex Sub-navigation */
.kx-subnav {
    display: flex;
    gap: 2px;
    padding: 4px;
    background: #F2F2F7;
    border-radius: 12px;
    margin-top: 20px;
}

.kx-subnav__tab {
    flex: 1;
    padding: 10px 18px;
    border: none;
    border-radius: 9px;
    font-family: 'Sofia Pro Bold', sans-serif;
    font-size: 12.5px;
    color: #636366;
    background: transparent;
    cursor: pointer;
    transition: all 200ms;
    text-align: center;
    white-space: nowrap;
}

.kx-subnav__tab:hover {
    color: #1C1C1E;
    background: rgba(255,255,255,0.5);
}

.kx-subnav__tab--active {
    background: #fff;
    color: #C8102E;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

/* Dashboard Charts Panel */
.kx-dashboard {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.kx-dash-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.kx-chart-card {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 16px;
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.kx-chart-card--full {
    grid-column: 1 / -1;
}

.kx-chart-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.kx-chart-card__title {
    font-family: 'Sofia Pro Bold', sans-serif;
    font-size: 14px;
    color: #1C1C1E;
    margin: 0;
}

.kx-chart-card__value {
    font-family: 'Sofia Pro Bold', sans-serif;
    font-size: 28px;
    color: #1C1C1E;
    line-height: 1;
}

.kx-chart-card__subtitle {
    font-family: 'Sofia Pro Regular', sans-serif;
    font-size: 11.5px;
    color: #AEAEB2;
    margin-top: 2px;
}

/* Donut chart */
.kx-donut {
    position: relative;
    width: 140px;
    height: 140px;
    margin: 0 auto;
}

.kx-donut__svg {
    transform: rotate(-90deg);
}

.kx-donut__track {
    fill: none;
    stroke: #F2F2F7;
    stroke-width: 10;
}

.kx-donut__fill {
    fill: none;
    stroke-width: 10;
    stroke-linecap: round;
    transition: stroke-dashoffset 800ms cubic-bezier(0.4, 0, 0.2, 1);
}

.kx-donut__fill--red { stroke: #C8102E; }
.kx-donut__fill--green { stroke: #34C759; }
.kx-donut__fill--amber { stroke: #FF9500; }
.kx-donut__fill--blue { stroke: #007AFF; }

.kx-donut__center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.kx-donut__pct {
    font-family: 'Sofia Pro Bold', sans-serif;
    font-size: 26px;
    color: #1C1C1E;
    line-height: 1;
}

.kx-donut__pct-label {
    font-family: 'Sofia Pro Regular', sans-serif;
    font-size: 11px;
    color: #AEAEB2;
    margin-top: 2px;
}

/* Horizontal bar chart */
.kx-bars {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.kx-bar {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.kx-bar__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.kx-bar__label {
    font-family: 'Sofia Pro Regular', sans-serif;
    font-size: 12.5px;
    color: #636366;
}

.kx-bar__value {
    font-family: 'Sofia Pro Bold', sans-serif;
    font-size: 12.5px;
    color: #1C1C1E;
}

.kx-bar__track {
    height: 8px;
    background: #F2F2F7;
    border-radius: 99px;
    overflow: hidden;
}

.kx-bar__fill {
    height: 100%;
    border-radius: 99px;
    transition: width 600ms cubic-bezier(0.4, 0, 0.2, 1);
}

.kx-bar__fill--red { background: linear-gradient(90deg, #C8102E, #E8384F); }
.kx-bar__fill--green { background: linear-gradient(90deg, #30B050, #34C759); }
.kx-bar__fill--amber { background: linear-gradient(90deg, #E88B00, #FF9500); }
.kx-bar__fill--blue { background: linear-gradient(90deg, #0062CC, #007AFF); }
.kx-bar__fill--purple { background: linear-gradient(90deg, #8944AB, #AF52DE); }

/* Mini sparkline trend */
.kx-sparkline {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 48px;
    padding-top: 4px;
}

.kx-sparkline__bar {
    flex: 1;
    min-width: 4px;
    border-radius: 3px 3px 0 0;
    background: linear-gradient(180deg, rgba(200,16,46,0.7), rgba(200,16,46,0.25));
    transition: height 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

.kx-sparkline__bar:hover {
    background: linear-gradient(180deg, #C8102E, rgba(200,16,46,0.5));
}

/* KPI metric row */
.kx-kpi-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 20px;
}

.kx-kpi {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 14px;
    padding: 18px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: transform 150ms, box-shadow 150ms;
}

.kx-kpi:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0,0,0,0.05);
}

.kx-kpi__icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kx-kpi__icon svg {
    width: 18px;
    height: 18px;
}

.kx-kpi__icon--red {
    background: rgba(200,16,46,0.08);
    color: #C8102E;
}

.kx-kpi__icon--green {
    background: rgba(52,199,89,0.1);
    color: #34C759;
}

.kx-kpi__icon--amber {
    background: rgba(255,149,0,0.1);
    color: #FF9500;
}

.kx-kpi__icon--blue {
    background: rgba(0,122,255,0.1);
    color: #007AFF;
}

.kx-kpi__number {
    font-family: 'Sofia Pro Bold', sans-serif;
    font-size: 22px;
    color: #1C1C1E;
    line-height: 1.1;
}

.kx-kpi__label {
    font-family: 'Sofia Pro Regular', sans-serif;
    font-size: 11.5px;
    color: #8E8E93;
}

/* Category filter pills */
.kx-cat-filters {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    padding: 2px 0;
}

.kx-cat-filter {
    padding: 5px 14px;
    border-radius: 20px;
    font-family: 'Sofia Pro Regular', sans-serif;
    font-size: 12px;
    color: #636366;
    background: #F2F2F7;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 150ms;
}

.kx-cat-filter:hover {
    background: #E8E8ED;
}

.kx-cat-filter--active {
    background: #1C1C1E;
    color: #fff;
    font-family: 'Sofia Pro Bold', sans-serif;
}

/* Roster Table */
.kx-roster-wrap {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 16px;
    overflow: hidden;
    margin-top: 20px;
}

.kx-roster-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    flex-wrap: wrap;
}

.kx-roster-toolbar__title {
    font-family: 'Sofia Pro Bold', sans-serif;
    font-size: 15px;
    color: #1C1C1E;
    margin: 0;
    margin-right: auto;
}

.kx-roster-search {
    padding: 7px 12px 7px 32px;
    background: #F8F8FA;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 8px;
    font-family: 'Sofia Pro Regular', sans-serif;
    font-size: 12.5px;
    color: #1C1C1E;
    outline: none;
    min-width: 180px;
    transition: border-color 200ms, background 200ms, box-shadow 200ms;
}

.kx-roster-search:focus {
    border-color: #C8102E;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(200,16,46,0.08);
}

.kx-roster-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Sofia Pro Regular', sans-serif;
    font-size: 13px;
}

.kx-roster-table th {
    text-align: left;
    font-family: 'Sofia Pro Bold', sans-serif;
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #8E8E93;
    padding: 10px 16px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    background: #FAFAFA;
    white-space: nowrap;
}

.kx-roster-table td {
    padding: 12px 16px;
    color: #1C1C1E;
    border-bottom: 1px solid rgba(0,0,0,0.04);
    vertical-align: middle;
}

.kx-roster-table tbody tr {
    cursor: pointer;
    transition: background 120ms;
}

.kx-roster-table tbody tr:hover {
    background: rgba(200,16,46,0.02);
}

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

.kx-roster-name {
    display: flex;
    align-items: center;
    gap: 10px;
}

.kx-roster-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #F2F2F7, #E5E5EA);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Sofia Pro Bold', sans-serif;
    font-size: 12px;
    color: #636366;
    flex-shrink: 0;
}

.kx-roster-avatar--img {
    object-fit: cover;
}

.kx-roster-user__name {
    font-family: 'Sofia Pro Bold', sans-serif;
    font-size: 13px;
    color: #1C1C1E;
}

.kx-roster-user__role {
    font-family: 'Sofia Pro Regular', sans-serif;
    font-size: 11px;
    color: #AEAEB2;
}

/* Progress mini bar inline */
.kx-progress-mini {
    display: flex;
    align-items: center;
    gap: 8px;
}

.kx-progress-mini__track {
    flex: 1;
    height: 6px;
    background: #F2F2F7;
    border-radius: 99px;
    overflow: hidden;
    min-width: 60px;
}

.kx-progress-mini__fill {
    height: 100%;
    border-radius: 99px;
    transition: width 500ms cubic-bezier(0.4,0,0.2,1);
}

.kx-progress-mini__fill--high { background: #34C759; }
.kx-progress-mini__fill--mid { background: #FF9500; }
.kx-progress-mini__fill--low { background: #FF3B30; }

.kx-progress-mini__text {
    font-family: 'Sofia Pro Bold', sans-serif;
    font-size: 12px;
    color: #1C1C1E;
    min-width: 36px;
    text-align: right;
}

/* Person Detail Modal */
.kx-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
    animation: kxFadeIn 200ms ease-out;
}

@keyframes kxFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes kxSlideUp {
    from { opacity: 0; transform: translateY(16px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.kx-modal {
    background: #fff;
    border-radius: 20px;
    width: 100%;
    max-width: 680px;
    max-height: 85vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,0,0,0.05);
    animation: kxSlideUp 250ms cubic-bezier(0.16, 1, 0.3, 1);
}

.kx-modal__header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 22px 24px 18px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.kx-modal__avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #C8102E, #D41432);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Sofia Pro Bold', sans-serif;
    font-size: 18px;
    color: #fff;
    flex-shrink: 0;
}

.kx-modal__info {
    flex: 1;
    min-width: 0;
}

.kx-modal__name {
    font-family: 'Sofia Pro Bold', sans-serif;
    font-size: 17px;
    color: #1C1C1E;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.kx-modal__meta {
    font-family: 'Sofia Pro Regular', sans-serif;
    font-size: 12.5px;
    color: #8E8E93;
    margin-top: 2px;
}

.kx-modal__close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: #F2F2F7;
    color: #636366;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 150ms, color 150ms;
    flex-shrink: 0;
}

.kx-modal__close:hover {
    background: #E5E5EA;
    color: #1C1C1E;
}

.kx-modal__close svg {
    width: 16px;
    height: 16px;
}

.kx-modal__body {
    overflow-y: auto;
    padding: 20px 24px 24px;
    flex: 1;
}

.kx-modal__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.kx-modal__stat {
    text-align: center;
    padding: 12px 8px;
    background: #FAFAFA;
    border-radius: 12px;
}

.kx-modal__stat-value {
    font-family: 'Sofia Pro Bold', sans-serif;
    font-size: 20px;
    color: #1C1C1E;
    line-height: 1.1;
}

.kx-modal__stat-label {
    font-family: 'Sofia Pro Regular', sans-serif;
    font-size: 11px;
    color: #AEAEB2;
    margin-top: 3px;
}

/* Course rows inside modal */
.kx-course-group {
    margin-top: 18px;
}

.kx-course-group__title {
    font-family: 'Sofia Pro Bold', sans-serif;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #8E8E93;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    margin: 0 0 6px;
}

.kx-course-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0,0,0,0.04);
}

.kx-course-row:last-child {
    border-bottom: none;
}

.kx-course-row__status {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.kx-course-row__status--done { background: #34C759; }
.kx-course-row__status--progress { background: #FF9500; }
.kx-course-row__status--pending { background: #D1D1D6; }
.kx-course-row__status--overdue { background: #FF3B30; }

.kx-course-row__name {
    flex: 1;
    font-family: 'Sofia Pro Regular', sans-serif;
    font-size: 13px;
    color: #1C1C1E;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.kx-course-row__score {
    font-family: 'Sofia Pro Bold', sans-serif;
    font-size: 12.5px;
    color: #1C1C1E;
    min-width: 40px;
    text-align: right;
}

.kx-course-row__date {
    font-family: 'Sofia Pro Regular', sans-serif;
    font-size: 11.5px;
    color: #AEAEB2;
    min-width: 70px;
    text-align: right;
}

/* Restricted notice */
.kx-restricted-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(255,149,0,0.06);
    border: 1px solid rgba(255,149,0,0.15);
    border-radius: 10px;
    margin-top: 10px;
    font-family: 'Sofia Pro Regular', sans-serif;
    font-size: 12.5px;
    color: #8E8E93;
}

.kx-restricted-notice svg {
    width: 16px;
    height: 16px;
    color: #FF9500;
    flex-shrink: 0;
}

/* Export button area */
.kx-export-row {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 16px;
}

/* Pagination */
.kx-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 14px 16px;
    border-top: 1px solid rgba(0,0,0,0.06);
}

.kx-page-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #636366;
    font-family: 'Sofia Pro Regular', sans-serif;
    font-size: 12.5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 120ms;
}

.kx-page-btn:hover {
    background: #F2F2F7;
}

.kx-page-btn--active {
    background: #1C1C1E;
    color: #fff;
    font-family: 'Sofia Pro Bold', sans-serif;
}

.kx-page-btn:disabled {
    opacity: 0.3;
    cursor: default;
}

/* Skeleton for kardex v2 */
.kx-skeleton-dashboard {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 20px;
}

.kx-skeleton-chart {
    height: 220px;
    border-radius: 16px;
}

.kx-skeleton-kpi-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 20px;
}

.kx-skeleton-kpi {
    height: 100px;
    border-radius: 14px;
}

.kx-skeleton-table {
    height: 320px;
    border-radius: 16px;
    margin-top: 20px;
}

/* Empty state for kardex */
.kx-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 48px 24px;
    color: #AEAEB2;
}

.kx-empty svg {
    width: 44px;
    height: 44px;
    opacity: 0.25;
}

.kx-empty p {
    font-family: 'Sofia Pro Regular', sans-serif;
    font-size: 14px;
    margin: 0;
    text-align: center;
}

/* Legend */
.kx-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 8px;
}

.kx-legend__item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Sofia Pro Regular', sans-serif;
    font-size: 11.5px;
    color: #636366;
}

.kx-legend__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.kx-legend__dot--green { background: #34C759; }
.kx-legend__dot--amber { background: #FF9500; }
.kx-legend__dot--red { background: #FF3B30; }
.kx-legend__dot--gray { background: #D1D1D6; }

/* ---- Table ---- */
.t-table-wrap {
    margin-top: 16px;
}

.t-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Sofia Pro Regular', sans-serif;
    font-size: 13px;
}

.t-table th {
    text-align: left;
    font-family: 'Sofia Pro Bold', sans-serif;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #8E8E93;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.t-table td {
    padding: 12px 14px;
    color: #1C1C1E;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.t-table tbody tr:hover {
    background: rgba(0, 0, 0, 0.015);
}

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

/* ===== BADGES ===== */
.t-badge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.t-badge-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 150ms, box-shadow 150ms;
}

.t-badge-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.t-badge-card__medal {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(200, 16, 46, 0.1), rgba(200, 16, 46, 0.05));
    color: #C8102E;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.t-badge-card__medal svg {
    width: 28px;
    height: 28px;
}

.t-badge-card__name {
    font-family: 'Sofia Pro Bold', sans-serif;
    font-size: 14.5px;
    color: #1C1C1E;
    margin: 0 0 6px;
}

.t-badge-card__desc {
    font-family: 'Sofia Pro Regular', sans-serif;
    font-size: 12.5px;
    color: #8E8E93;
    margin: 0 0 10px;
    line-height: 1.4;
}

.t-badge-card__date {
    font-family: 'Sofia Pro Regular', sans-serif;
    font-size: 11px;
    color: #AEAEB2;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .t-player__split {
        grid-template-columns: 1fr;
    }

    .t-player__nav {
        order: -1;
    }

    .t-cat-hero__gradient {
        display: none;
    }

    .t-courses-stats {
        grid-template-columns: 1fr;
    }

    .t-courses-stat strong {
        font-size: 30px;
    }

    .t-courses-stat span {
        font-size: 20px;
    }

    .t-courses-hero {
        grid-template-columns: 1fr;
        padding: 14px;
    }

    .t-courses-hero__thumb {
        height: 118px;
    }

    .t-courses-hero__content h3 {
        font-size: 30px;
    }

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

    .t-detail-layout {
        grid-template-columns: 1fr;
    }

    .t-detail-side {
        border-left: none;
        border-top: 1px solid rgba(0, 0, 0, 0.06);
        position: static;
        max-height: none;
        overflow-y: visible;
    }

    .t-detail-title {
        font-size: 32px;
    }

    .t-detail-image {
        height: 260px;
    }
}

@media (max-width: 700px) {
    .t-content {
        padding: 20px 16px 32px;
    }

    .t-cat-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .t-launch-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .t-launch-filters {
        overflow-x: auto;
        white-space: nowrap;
        flex-wrap: nowrap;
        padding-bottom: 2px;
    }

    .t-cat-hero {
        flex-direction: column;
    }

    .t-cat-hero__gradient {
        display: none;
    }

    .t-cat-row__right {
        flex-direction: column;
        align-items: flex-end;
        gap: 6px;
    }

    .t-cat-row__progress {
        min-width: 80px;
    }

    .t-courses-search__input {
        font-size: 14px;
    }

    .t-courses-filters {
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 2px;
        flex-wrap: nowrap;
    }

    .t-courses-filter {
        flex: 0 0 auto;
    }

    .t-courses-hero__label {
        font-size: 14px;
    }

    .t-courses-hero__content h3 {
        font-size: 24px;
    }

    .t-courses-hero__category {
        font-size: 13px;
    }

    .t-courses-grid {
        grid-template-columns: 1fr;
    }

    .t-detail-layout {
        margin: -20px -16px -32px;
    }

    .t-detail-main {
        padding: 16px;
    }

    .t-detail-title {
        font-size: 26px;
    }

    .t-detail-meta-row {
        gap: 10px;
    }

    .t-detail-block > h3 {
        font-size: 17px;
    }

    .t-detail-block p {
        font-size: 15px;
    }

    .t-detail-rich-copy {
        font-size: 15px;
    }

    .t-detail-video,
    .t-detail-image {
        min-height: 200px;
        height: 200px;
    }

    .t-detail-footer {
        margin: 24px -16px 0;
        flex-direction: column;
        padding: 12px 16px;
    }

    .t-detail-footer-btn--primary {
        margin-left: 0;
        width: 100%;
        justify-content: center;
    }

    .t-detail-footer-btn--ghost {
        width: 100%;
        justify-content: center;
    }

    .t-detail-footer-btn__hint {
        display: none;
    }

    .t-detail-inline-progress {
        order: -1;
    }

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

    .t-launch-grid {
        grid-template-columns: 1fr;
    }

    .t-kardex-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .kx-dash-row {
        grid-template-columns: 1fr;
    }

    .kx-kpi-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .kx-skeleton-dashboard {
        grid-template-columns: 1fr;
    }

    .kx-skeleton-kpi-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .kx-selector {
        flex-direction: column;
        align-items: stretch;
    }

    .kx-selector__icon {
        display: none;
    }

    .kx-selector__count {
        margin-left: 0;
    }

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

    .t-assess-card {
        flex-wrap: wrap;
    }

    .t-admin-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .t-admin-controls .t-input {
        min-width: 0;
    }

    .t-attempt__header {
        flex-direction: column;
        align-items: flex-start;
    }

    .t-attempt__headline {
        grid-template-columns: 1fr;
        width: 100%;
    }

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

    .t-heading-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .t-passport-debug {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

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

@media (max-width: 480px) {
    .t-servsafe-file-input {
        min-width: 0;
        width: 100%;
    }

    .t-servsafe-actions {
        width: 100%;
        margin-left: 0;
    }

    .t-servsafe-actions .t-btn {
        flex: 1;
    }

    .t-badge-grid {
        grid-template-columns: 1fr;
    }

    .t-kardex-stats {
        grid-template-columns: 1fr;
    }

    .t-attempt__metrics {
        grid-template-columns: 1fr;
    }

    .t-attempt__score-pill strong {
        font-size: 21px;
    }

    .kx-kpi-row {
        grid-template-columns: 1fr;
    }

    .kx-skeleton-kpi-row {
        grid-template-columns: 1fr;
    }

    .kx-subnav {
        overflow-x: auto;
        flex-wrap: nowrap;
    }

    .kx-subnav__tab {
        flex: 0 0 auto;
    }

    .kx-modal {
        max-height: 92vh;
        border-radius: 16px;
    }

    .kx-modal__stats {
        grid-template-columns: 1fr;
    }

    .t-launch-stats {
        grid-template-columns: 1fr;
    }

    .t-passport-card {
        padding: 16px;
    }

    .t-passport-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== LEADERS / CENTRO DE LIDERAZGO ===== */

.leaders-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.leaders-header__controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.leaders-header__restaurant {
    min-width: 200px;
    max-width: 320px;
}

.leaders-header__meta {
    font-family: 'Sofia Pro Regular', sans-serif;
    font-size: 12.5px;
    color: #8E8E93;
    margin-top: 2px;
}

/* --- KPI Cards (clickable) --- */
.leaders-kpis {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
}

.leaders-kpi {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 14px;
    padding: 20px 12px;
    text-align: center;
    cursor: pointer;
    transition: transform 150ms, box-shadow 150ms, border-color 150ms;
}

.leaders-kpi:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
    border-color: rgba(200, 16, 46, 0.15);
}

.leaders-kpi--active {
    border-color: #C8102E;
    box-shadow: 0 2px 10px rgba(200, 16, 46, 0.12);
}

.leaders-kpi--accent {
    background: linear-gradient(135deg, #C8102E, #D41432);
    border-color: transparent;
}

.leaders-kpi--accent .leaders-kpi__value,
.leaders-kpi--accent .leaders-kpi__label {
    color: #fff;
}

.leaders-kpi__value {
    font-family: 'Sofia Pro Bold', sans-serif;
    font-size: 26px;
    color: #1C1C1E;
    line-height: 1.1;
}

.leaders-kpi__label {
    font-family: 'Sofia Pro Regular', sans-serif;
    font-size: 11.5px;
    color: #8E8E93;
}

/* --- Team Cards Grid --- */
.leaders-team-search {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.leaders-team-search .t-input {
    flex: 1;
    min-width: 200px;
    max-width: 400px;
}

.leaders-team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}

.leaders-team-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 14px;
    padding: 18px 20px;
    transition: transform 150ms, box-shadow 150ms, border-color 150ms;
}

.leaders-team-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

.leaders-team-card--risk {
    border-left: 3px solid #FF3B30;
}

.leaders-team-card--ready {
    border-left: 3px solid #34C759;
}

.leaders-team-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.leaders-team-card__avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(200, 16, 46, 0.08), rgba(200, 16, 46, 0.04));
    color: #C8102E;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Sofia Pro Bold', sans-serif;
    font-size: 14px;
    flex-shrink: 0;
}

.leaders-team-card__info {
    flex: 1;
    min-width: 0;
}

.leaders-team-card__name {
    font-family: 'Sofia Pro Bold', sans-serif;
    font-size: 14px;
    color: #1C1C1E;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.leaders-team-card__role {
    font-family: 'Sofia Pro Regular', sans-serif;
    font-size: 12px;
    color: #8E8E93;
}

.leaders-team-card__progress {
    display: flex;
    align-items: center;
    gap: 10px;
}

.leaders-team-card__bar {
    flex: 1;
    height: 6px;
    background: #F2F2F7;
    border-radius: 3px;
    overflow: hidden;
}

.leaders-team-card__bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

.leaders-team-card__bar-fill--good {
    background: linear-gradient(90deg, #34C759, #30D158);
}

.leaders-team-card__bar-fill--mid {
    background: linear-gradient(90deg, #FF9500, #FFa726);
}

.leaders-team-card__bar-fill--low {
    background: linear-gradient(90deg, #FF3B30, #FF453A);
}

.leaders-team-card__pct {
    font-family: 'Sofia Pro Bold', sans-serif;
    font-size: 13px;
    color: #1C1C1E;
    min-width: 36px;
    text-align: right;
}

.leaders-team-card__tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.leaders-team-card__actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 2px;
}

/* --- Coaching Split View --- */
.coaching-split {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 16px;
    min-height: 400px;
}

.coaching-sidebar {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    padding: 16px;
    overflow-y: auto;
    max-height: 700px;
}

.coaching-sidebar__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 4px;
}

.coaching-sidebar__filters {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.coaching-filter-chip {
    padding: 4px 10px;
    border: none;
    border-radius: 8px;
    font-family: 'Sofia Pro Regular', sans-serif;
    font-size: 11px;
    color: #636366;
    background: #F2F2F7;
    cursor: pointer;
    transition: all 150ms;
}

.coaching-filter-chip:hover {
    background: #E5E5EA;
}

.coaching-filter-chip--active {
    background: rgba(200, 16, 46, 0.08);
    color: #C8102E;
    font-family: 'Sofia Pro Bold', sans-serif;
}

.coaching-plan-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 150ms;
    border: 1px solid transparent;
}

.coaching-plan-item:hover {
    background: rgba(0, 0, 0, 0.02);
}

.coaching-plan-item--selected {
    background: rgba(200, 16, 46, 0.04);
    border-color: rgba(200, 16, 46, 0.12);
}

.coaching-plan-item__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.coaching-plan-item__dot--active {
    background: #34C759;
}

.coaching-plan-item__dot--closed {
    background: #8E8E93;
}

.coaching-plan-item__dot--cancelled {
    background: #FF3B30;
}

.coaching-plan-item__info {
    flex: 1;
    min-width: 0;
}

.coaching-plan-item__name {
    font-family: 'Sofia Pro Bold', sans-serif;
    font-size: 13px;
    color: #1C1C1E;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.coaching-plan-item__title {
    font-family: 'Sofia Pro Regular', sans-serif;
    font-size: 11.5px;
    color: #8E8E93;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* --- Coaching Detail Panel --- */
.coaching-detail {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow-y: auto;
    max-height: 700px;
}

.coaching-detail__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.coaching-detail__title {
    font-family: 'Sofia Pro Bold', sans-serif;
    font-size: 18px;
    color: #1C1C1E;
    margin: 0;
}

.coaching-detail__meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    font-family: 'Sofia Pro Regular', sans-serif;
    font-size: 12.5px;
    color: #8E8E93;
}

.coaching-detail__meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.coaching-detail__goals {
    background: #F8F8FA;
    border-radius: 10px;
    padding: 14px 16px;
    font-family: 'Sofia Pro Regular', sans-serif;
    font-size: 13px;
    color: #48484A;
    white-space: pre-wrap;
    line-height: 1.5;
}

.coaching-detail__actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* --- Coaching Timeline --- */
.coaching-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding-left: 20px;
    border-left: 2px solid #F2F2F7;
}

.coaching-timeline__entry {
    position: relative;
    padding: 0 0 20px 20px;
}

.coaching-timeline__entry:last-child {
    padding-bottom: 0;
}

.coaching-timeline__dot {
    position: absolute;
    left: -27px;
    top: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px #F2F2F7;
}

.coaching-timeline__dot--note {
    background: #007AFF;
}

.coaching-timeline__dot--praise {
    background: #34C759;
}

.coaching-timeline__dot--correction {
    background: #FF3B30;
}

.coaching-timeline__dot--followup {
    background: #FF9500;
}

.coaching-timeline__date {
    font-family: 'Sofia Pro Regular', sans-serif;
    font-size: 11px;
    color: #AEAEB2;
    margin-bottom: 4px;
}

.coaching-timeline__type {
    display: inline-block;
    font-family: 'Sofia Pro Bold', sans-serif;
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 6px;
}

.coaching-timeline__type--note {
    background: rgba(0, 122, 255, 0.08);
    color: #007AFF;
}

.coaching-timeline__type--praise {
    background: rgba(52, 199, 89, 0.08);
    color: #248A3D;
}

.coaching-timeline__type--correction {
    background: rgba(255, 59, 48, 0.08);
    color: #FF3B30;
}

.coaching-timeline__type--followup {
    background: rgba(255, 149, 0, 0.08);
    color: #FF9500;
}

.coaching-timeline__content {
    font-family: 'Sofia Pro Regular', sans-serif;
    font-size: 13px;
    color: #1C1C1E;
    white-space: pre-wrap;
    line-height: 1.5;
}

.coaching-timeline__author {
    font-family: 'Sofia Pro Regular', sans-serif;
    font-size: 11px;
    color: #AEAEB2;
    margin-top: 4px;
}

/* --- Coaching Feedback Input --- */
.coaching-feedback-input {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #F8F8FA;
    border-radius: 12px;
    padding: 14px;
}

.coaching-feedback-input__row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.coaching-feedback-input__row .t-input {
    width: auto;
    min-width: 150px;
}

.coaching-feedback-input textarea {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 10px;
    padding: 10px 14px;
    font-family: 'Sofia Pro Regular', sans-serif;
    font-size: 13px;
    color: #1C1C1E;
    resize: vertical;
    min-height: 60px;
    max-height: 160px;
    outline: none;
    transition: border-color 200ms, box-shadow 200ms;
}

.coaching-feedback-input textarea:focus {
    border-color: #C8102E;
    box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.06);
}

/* --- New Plan Form --- */
.coaching-new-plan {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.coaching-new-plan__row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.coaching-new-plan__row .t-input {
    flex: 1;
    min-width: 180px;
}

/* --- Certify Action Cards --- */
.certify-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.certify-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 14px;
    padding: 18px 20px;
    transition: transform 150ms, box-shadow 150ms;
}

.certify-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

.certify-card__icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 18px;
}

.certify-card__icon--ojt {
    background: rgba(52, 199, 89, 0.08);
    color: #34C759;
}

.certify-card__icon--promo {
    background: rgba(0, 122, 255, 0.08);
    color: #007AFF;
}

.certify-card__icon--expiry {
    background: rgba(255, 149, 0, 0.08);
    color: #FF9500;
}

.certify-card__body {
    flex: 1;
    min-width: 0;
}

.certify-card__title {
    font-family: 'Sofia Pro Bold', sans-serif;
    font-size: 14px;
    color: #1C1C1E;
}

.certify-card__subtitle {
    font-family: 'Sofia Pro Regular', sans-serif;
    font-size: 12.5px;
    color: #8E8E93;
    margin-top: 2px;
}

.certify-card__actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

/* --- Section dividers --- */
.leaders-section-title {
    font-family: 'Sofia Pro Bold', sans-serif;
    font-size: 15px;
    color: #48484A;
    margin: 8px 0 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.leaders-section-title__count {
    font-family: 'Sofia Pro Regular', sans-serif;
    font-size: 12px;
    color: #AEAEB2;
}

/* --- Empty state for coaching --- */
.coaching-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 48px 24px;
    color: #AEAEB2;
    text-align: center;
}

.coaching-empty__icon {
    font-size: 32px;
    opacity: 0.4;
}

.coaching-empty__text {
    font-family: 'Sofia Pro Regular', sans-serif;
    font-size: 14px;
}

/* --- Panel alert summary --- */
.leaders-alerts-summary {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.leaders-alert-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 10px;
    font-family: 'Sofia Pro Regular', sans-serif;
    font-size: 13px;
    color: #1C1C1E;
    cursor: pointer;
    transition: background 150ms;
}

.leaders-alert-row:hover {
    background: rgba(0, 0, 0, 0.015);
}

.leaders-alert-row__icon {
    flex-shrink: 0;
    font-size: 16px;
}

.leaders-alert-row__text {
    flex: 1;
}

.leaders-alert-row__action {
    font-family: 'Sofia Pro Bold', sans-serif;
    font-size: 12px;
    color: #C8102E;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .coaching-split {
        grid-template-columns: 1fr;
    }

    .coaching-sidebar {
        max-height: 250px;
    }

    .leaders-team-grid {
        grid-template-columns: 1fr;
    }

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

    .leaders-header {
        flex-direction: column;
        align-items: stretch;
    }

    .leaders-header__controls {
        flex-direction: column;
    }

    .leaders-header__restaurant {
        max-width: none;
    }

    .certify-card {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .certify-card__icon {
        align-self: center;
    }

    .certify-card__actions {
        justify-content: center;
    }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    .t-spinner {
        animation-duration: 0.01ms !important;
    }

    .t-course-card,
    .t-assess-card,
    .t-onboard-card,
    .t-launch-card,
    .t-launch-card--overdue,
    .t-kstat,
    .t-badge-card,
    .t-btn {
        transition-duration: 0.01ms !important;
    }
}
