/* ═══════════════════════════════════════════════
   TRAINING MODULE
   ═══════════════════════════════════════════════ */

/* --- Course switcher in vertical nav --- */
.training-course-switcher {
    padding: 12px 16px;
    border-bottom: 1px solid var(--color-border, #e5e7eb);
}

.training-course-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-text-secondary, #6b7280);
    margin-bottom: 6px;
}

.training-course-select {
    width: 100%;
    padding: 6px 10px;
    border: 1px solid var(--color-border, #e5e7eb);
    border-radius: var(--radius-input, 8px);
    font-size: 14px;
    background: var(--color-surface, #fff);
    color: var(--color-text, #1e293b);
    cursor: pointer;
}

/* --- Horizontal subtabs (Flying / Ground School, Per Student / Overall) --- */
.training-subtabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--color-border, #e5e7eb);
    margin-bottom: 20px;
}

.training-subtab {
    padding: 8px 18px;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-secondary, #6b7280);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color var(--transition-base, 0.18s ease), border-color var(--transition-base, 0.18s ease);
}

.training-subtab:hover {
    color: var(--color-text, #1e293b);
}

.training-subtab.active {
    color: var(--color-primary, #0072ce);
    border-bottom-color: var(--color-primary, #0072ce);
    font-weight: 600;
}

/* ═══════════════════════════════════════════════
   PROGRAMME LIST
   ═══════════════════════════════════════════════ */
.programme-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.programme-empty {
    color: var(--color-text-secondary, #6b7280);
    font-size: 14px;
    padding: 20px 0;
}

.programme-item {
    border: 1px solid var(--color-border, #e5e7eb);
    border-radius: var(--radius-sm, 8px);
    margin-bottom: 8px;
    background: var(--color-surface, #fff);
    transition: box-shadow var(--transition-base, 0.18s ease);
}

.programme-item:hover {
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
}

.programme-item--milestone {
    border-left: 4px solid var(--color-info, #0891b2);
}

/* Drag-handle + dragging-row visuals (.programme-drag-handle,
   .programme-item--dragging, .checklist-item--dragging) are in
   styles.css -shared with the skydiving techlog and any future
   drag-to-reorder list. Paired with window.attachDragReorder(). */

.programme-item-inline-actions {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.programme-item:hover .programme-item-inline-actions,
.checklist-item:hover .programme-item-inline-actions {
    opacity: 1;
}

.programme-inline-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    color: var(--color-text-secondary, #6b7280);
    padding: 3px 5px;
    border-radius: 4px;
    transition: color 0.15s ease, background 0.15s ease;
}

.programme-inline-btn:hover {
    color: var(--color-primary, #0072ce);
    background: color-mix(in srgb, var(--color-primary, #0072ce) 8%, transparent);
}

.programme-inline-btn--danger:hover {
    color: var(--color-danger, #dc2626);
    background: color-mix(in srgb, var(--color-danger, #dc2626) 8%, transparent);
}

.programme-item-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    cursor: pointer;
    user-select: none;
}

.programme-item-number {
    font-weight: 700;
    color: var(--color-text-secondary, #6b7280);
    min-width: 28px;
    font-size: 14px;
}

.programme-item-title {
    flex: 1;
    font-weight: 500;
    font-size: 14px;
    color: var(--color-text, #1e293b);
}

.programme-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.programme-badge--exam {
    background: color-mix(in srgb, var(--color-info, #0891b2) 15%, transparent);
    color: var(--color-info, #0891b2);
}

/* Flying milestone -distinct from exam (which is ground-school only). */
.programme-badge--milestone {
    background: color-mix(in srgb, #6366f1 18%, transparent);
    color: #4338ca;
}

/* Final practical -strongest emphasis. */
.programme-badge--skills-test {
    background: color-mix(in srgb, #ec4899 22%, transparent);
    color: #9d174d;
    box-shadow: inset 0 0 0 1px rgba(236, 72, 153, 0.45);
}

.programme-badge--exam-sm {
    font-size: 9px;
    padding: 1px 4px;
    background: color-mix(in srgb, var(--color-info, #0891b2) 15%, transparent);
    color: var(--color-info, #0891b2);
    border-radius: 3px;
    font-weight: 700;
    vertical-align: middle;
    margin-left: 2px;
}

.programme-badge--dual {
    background: #d1fae5;
    color: #065f46;
}

.programme-badge--solo {
    background: #fef3c7;
    color: #92400e;
}

.programme-badge--dual-sm,
.programme-badge--solo-sm {
    font-size: 9px;
    padding: 1px 4px;
    border-radius: 3px;
    font-weight: 700;
    vertical-align: middle;
    margin-left: 2px;
}

.programme-badge--dual-sm {
    background: color-mix(in srgb, #065f46 12%, transparent);
    color: #065f46;
}

.programme-badge--solo-sm {
    background: color-mix(in srgb, #92400e 12%, transparent);
    color: #92400e;
}

.programme-radio-group {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.programme-radio-group .users-dot-filter {
    margin: 0;
}

.programme-expand-btn {
    background: none;
    border: none;
    font-size: 14px;
    color: var(--color-text-secondary, #6b7280);
    cursor: pointer;
    padding: 4px;
    transition: transform 0.2s ease;
}

.programme-expand-btn.expanded {
    transform: rotate(180deg);
}

.programme-item-body {
    padding: 0 14px 14px;
    border-top: 1px solid var(--color-border-light, #f1f3f5);
}

.programme-item-body[hidden] {
    display: none;
}

.programme-item-desc {
    font-size: 13px;
    line-height: 1.5;
    color: var(--color-text-secondary, #6b7280);
    margin: 10px 0;
}

/* --- Programme add/edit forms --- */
.programme-add-form {
    margin-top: 24px;
    padding: 20px;
    border: 1px dashed var(--color-border, #e5e7eb);
    border-radius: var(--radius-sm, 8px);
    background: var(--color-bg-subtle, #f9fafb);
}

.programme-add-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 14px;
    color: var(--color-text, #1e293b);
}

.programme-form-field {
    margin-bottom: 12px;
}

.programme-form-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--color-text, #1e293b);
}

.programme-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--color-border, #e5e7eb);
    border-radius: var(--radius-input, 8px);
    font-size: 14px;
    background: var(--color-surface, #fff);
    color: var(--color-text, #1e293b);
    box-sizing: border-box;
}

.programme-input--short {
    max-width: 160px;
}

.programme-input:focus {
    outline: none;
    border-color: var(--color-primary, #0072ce);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-primary, #0072ce) 20%, transparent);
}

.programme-textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--color-border, #e5e7eb);
    border-radius: var(--radius-input, 8px);
    font-size: 14px;
    font-family: inherit;
    background: var(--color-surface, #fff);
    color: var(--color-text, #1e293b);
    resize: vertical;
    box-sizing: border-box;
}

.programme-textarea:focus {
    outline: none;
    border-color: var(--color-primary, #0072ce);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-primary, #0072ce) 20%, transparent);
}

.programme-textarea[readonly] {
    background: var(--color-bg-subtle, #f9fafb);
    cursor: default;
}

/* --- Programme toolbar (above the syllabus list) --- */
.programme-toolbar {
    display: flex;
    justify-content: flex-end;
    margin: 6px 0 12px;
}

/* --- Programme import section --- */
.programme-import-section {
    margin-top: 16px;
    padding: 16px 20px;
    border: 1px dashed var(--color-border, #e5e7eb);
    border-radius: var(--radius-sm, 8px);
    background: var(--color-bg-subtle, #f9fafb);
}

.programme-import-hint {
    font-size: 13px;
    color: var(--color-text-secondary, #6b7280);
    margin: 0 0 12px;
    line-height: 1.5;
}

.programme-import-hint code {
    font-size: 12px;
    background: color-mix(in srgb, var(--color-text-secondary, #6b7280) 10%, transparent);
    padding: 1px 5px;
    border-radius: 4px;
}

.programme-import-row {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.programme-file-pick {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border: 1.5px dashed var(--color-border, #e5e7eb);
    border-radius: var(--radius-sm, 8px);
    background: var(--color-surface, #fff);
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
    flex: 1;
    min-width: 0;
}

.programme-file-pick:hover {
    border-color: var(--color-primary, #0072ce);
    background: color-mix(in srgb, var(--color-primary, #0072ce) 4%, transparent);
}

.programme-file-pick--dragover {
    border-color: var(--color-primary, #0072ce);
    border-style: solid;
    background: color-mix(in srgb, var(--color-primary, #0072ce) 8%, transparent);
}

.programme-file-pick--has-file {
    border-color: var(--color-success, #16a34a);
    border-style: solid;
    background: color-mix(in srgb, var(--color-success, #16a34a) 5%, transparent);
}

.programme-file-pick-icon {
    font-size: 16px;
    line-height: 1;
    opacity: 0.5;
    flex-shrink: 0;
}

.programme-file-pick--has-file .programme-file-pick-icon {
    opacity: 0.8;
}

.programme-file-pick-label {
    font-size: 13px;
    color: var(--color-text-secondary, #6b7280);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.programme-file-pick--has-file .programme-file-pick-label {
    color: var(--color-success, #16a34a);
    font-weight: 500;
}

.programme-import-file-input {
    flex: 1;
    max-width: 400px;
}

.programme-import-confirm-text {
    font-size: 14px;
    color: var(--color-text, #1e293b);
    line-height: 1.5;
    margin: 0 0 16px;
}

.programme-import-warning-text {
    font-size: 13px;
    line-height: 1.5;
    margin: 0 0 16px;
    padding: 10px 14px;
    border-left: 4px solid var(--color-warning, #f59e0b);
    background: color-mix(in srgb, var(--color-warning, #f59e0b) 8%, transparent);
    border-radius: 0 var(--radius-sm, 8px) var(--radius-sm, 8px) 0;
    color: var(--color-text, #1e293b);
}

/* --- Column mapping modal --- */
.programme-column-map-modal {
    max-width: 640px;
    width: 100%;
}

.programme-column-map-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.programme-column-map-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--color-text, #1e293b);
}

.programme-column-map-select {
    width: 100%;
    padding: 6px 10px;
    font-size: 13px;
}

.programme-column-map-preview-wrap {
    overflow-x: auto;
    margin-bottom: 12px;
    border: 1px solid var(--color-border, #e5e7eb);
    border-radius: var(--radius-sm, 8px);
}

.programme-column-map-preview {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.programme-column-map-preview th,
.programme-column-map-preview td {
    padding: 6px 10px;
    text-align: left;
    white-space: nowrap;
    border-bottom: 1px solid var(--color-border-light, #f1f3f5);
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.programme-column-map-preview th {
    background: var(--color-th-bg, #f2f2f2);
    color: var(--color-th-text, #1e293b);
    font-weight: 600;
    font-size: 11px;
    position: sticky;
    top: 0;
}

.column-map-col--exnum {
    background: color-mix(in srgb, var(--color-warning, #f59e0b) 10%, transparent);
}

.column-map-col--title {
    background: color-mix(in srgb, var(--color-primary, #0072ce) 10%, transparent);
}

.column-map-col--desc {
    background: color-mix(in srgb, var(--color-success, #16a34a) 10%, transparent);
}

.column-map-col--milestone {
    background: color-mix(in srgb, var(--color-info, #0891b2) 10%, transparent);
}

.programme-column-map-preview th.column-map-col--exnum {
    background: color-mix(in srgb, var(--color-warning, #f59e0b) 20%, var(--color-th-bg, #f2f2f2));
}

.programme-column-map-preview th.column-map-col--title {
    background: color-mix(in srgb, var(--color-primary, #0072ce) 20%, var(--color-th-bg, #f2f2f2));
}

.programme-column-map-preview th.column-map-col--desc {
    background: color-mix(in srgb, var(--color-success, #16a34a) 20%, var(--color-th-bg, #f2f2f2));
}

.programme-column-map-preview th.column-map-col--milestone {
    background: color-mix(in srgb, var(--color-info, #0891b2) 20%, var(--color-th-bg, #f2f2f2));
}

.column-map-col--flighttype {
    background: color-mix(in srgb, #065f46 10%, transparent);
}

.programme-column-map-preview th.column-map-col--flighttype {
    background: color-mix(in srgb, #065f46 20%, var(--color-th-bg, #f2f2f2));
}

#columnMapSummary {
    font-size: 13px;
    color: var(--color-text-secondary, #6b7280);
    margin: 0 0 12px;
    line-height: 1.5;
}

/* AI import button styling (.btn-ai, .ai-sparkle-icon, the shine
   keyframes) lives in styles.css -single source of truth, used by
   Training, MyDocuments, Defects, Turn Around report and the
   Skydiving techlog. */

/* --- AI import modal --- */
.ai-import-modal {
    max-width: 600px;
    width: 100%;
}

.ai-import-hint {
    font-size: 13px;
    color: var(--color-text-secondary, #6b7280);
    line-height: 1.5;
    margin: 0 0 12px;
}

.ai-import-actions {
    display: flex;
    gap: 8px;
    margin-top: 14px;
    justify-content: flex-end;
}

/* --- AI spinner --- */
.ai-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 48px 20px;
    gap: 20px;
}

.ai-spinner-stars {
    position: relative;
    width: 56px;
    height: 56px;
}

.ai-star {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    color: #e8c97a;
    filter: drop-shadow(0 0 6px rgba(232, 201, 122, 0.55));
}
.ai-star svg {
    display: block;
    width: 100%;
    height: 100%;
}

.ai-star--1 {
    top: 0;
    left: 14px;
    animation: aiPlaneFly 1.8s ease-in-out infinite;
}

.ai-star--2 {
    bottom: 4px;
    left: 0;
    animation: aiPlaneFly 1.8s ease-in-out 0.4s infinite;
}

.ai-star--3 {
    bottom: 2px;
    right: 0;
    animation: aiPlaneFly 1.8s ease-in-out 0.8s infinite;
}

@keyframes aiPlaneFly {
    0%, 100% {
        transform: scale(0.85) rotate(-6deg);
        opacity: 0.55;
        color: #c9a961;
        filter: drop-shadow(0 0 3px rgba(201, 169, 97, 0.45));
    }
    50% {
        transform: scale(1.15) rotate(6deg);
        opacity: 1;
        color: #e8c97a;
        filter: drop-shadow(0 0 10px rgba(232, 201, 122, 0.95));
    }
}

.ai-spinner-text {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-secondary, #6b7280);
    margin: 0;
    animation: textPulse 1.8s ease-in-out infinite;
}

@keyframes textPulse {
    0%, 100% { opacity: 0.5; }
    50%      { opacity: 1; }
}

/* AI file drop zone (.ai-file-drop and friends) lives in styles.css -
   shared across every AI import in the app. */

/* --- AI Preview List (sortable items after extraction) --- */
.ai-preview-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: 400px;
    overflow-y: auto;
    padding: 2px;
}

.ai-preview-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border: 1px solid var(--color-border, #e5e7eb);
    border-radius: var(--radius-sm, 8px);
    background: var(--color-surface, #fff);
    cursor: default;
    transition: box-shadow 0.15s ease, opacity 0.15s ease;
}

.ai-preview-item:hover {
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.ai-preview-item--dragging {
    opacity: 0.4;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.ai-preview-handle {
    cursor: grab;
    font-size: 16px;
    color: var(--color-text-secondary, #6b7280);
    user-select: none;
    flex-shrink: 0;
    line-height: 1;
}

.ai-preview-handle:active {
    cursor: grabbing;
}

.ai-preview-number {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text-secondary, #6b7280);
    background: var(--color-bg-subtle, #f1f5f9);
    padding: 2px 6px;
    border-radius: 4px;
    flex-shrink: 0;
    min-width: 24px;
    text-align: center;
}

.ai-preview-title {
    flex: 1;
    font-size: 13px;
    color: var(--color-text, #1e293b);
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ai-preview-meta {
    font-size: 11px;
    color: var(--color-text-secondary, #6b7280);
    background: var(--color-bg-subtle, #f1f5f9);
    padding: 2px 6px;
    border-radius: 4px;
    flex-shrink: 0;
    white-space: nowrap;
}

.ai-preview-delete {
    background: none;
    border: none;
    font-size: 18px;
    line-height: 1;
    color: var(--color-text-secondary, #6b7280);
    cursor: pointer;
    padding: 0 2px;
    flex-shrink: 0;
    transition: color 0.15s ease;
}

.ai-preview-delete:hover {
    color: var(--color-danger, #dc2626);
}

.ai-preview-add-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
}

.ai-preview-add-short {
    width: 70px;
    flex-shrink: 0;
}

.ai-preview-add-flex {
    flex: 1;
    min-width: 0;
}

.programme-import-or {
    font-size: 13px;
    color: var(--color-text-secondary, #6b7280);
    font-style: italic;
}

.programme-edit-modal {
    max-width: 500px;
}

.programme-edit-actions {
    display: flex;
    gap: 8px;
    margin-top: 14px;
    justify-content: flex-end;
}

/* ═══════════════════════════════════════════════
   CHECKLIST / REQUIREMENTS
   ═══════════════════════════════════════════════ */
.checklist-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    border: 1px solid var(--color-border, #e5e7eb);
    border-radius: var(--radius-sm, 8px);
    margin-bottom: 8px;
    background: var(--color-surface, #fff);
}

.checklist-item-header {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.checklist-item-title {
    font-weight: 500;
    font-size: 14px;
    color: var(--color-text, #1e293b);
}

.checklist-item-target {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-primary, #0072ce);
    white-space: nowrap;
}

.checklist-item-source {
    font-size: 12px;
    color: var(--color-text-secondary, #6b7280);
    white-space: nowrap;
}

/* ═══════════════════════════════════════════════
   STUDENTS TAB
   ═══════════════════════════════════════════════ */
.students-enrol-section {
    margin-bottom: 20px;
}

.students-enrol-row {
    display: flex;
    gap: 10px;
    align-items: center;
    max-width: 500px;
}

.students-enrol-select {
    flex: 1;
}

.students-empty-row td {
    padding: 20px 14px;
}

/* ═══════════════════════════════════════════════
   PROGRESS -STUDENT SELECTOR
   ═══════════════════════════════════════════════ */
.progress-student-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.progress-student-selector label {
    font-weight: 600;
    font-size: 14px;
    color: var(--color-text, #1e293b);
}

.progress-student-selector select {
    min-width: 250px;
}

/* ═══════════════════════════════════════════════
   ROADMAP -HORIZONTAL TIMELINE
   ═══════════════════════════════════════════════ */
.roadmap-section-title {
    font-size: 16px;
    font-weight: 600;
    margin: 24px 0 12px;
    color: var(--color-text, #1e293b);
}

.roadmap-container {
    overflow-x: auto;
    padding: 16px 0 24px;
}

.roadmap-timeline {
    display: flex;
    align-items: flex-start;
    gap: 0;
    min-width: min-content;
    padding: 0 8px;
}

.roadmap-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    min-width: 72px;
    cursor: pointer;
    padding-top: 8px;
}

.roadmap-step:hover .roadmap-node {
    transform: scale(1.15);
}

/* Connecting line between nodes -centered on regular node */
.roadmap-step::before {
    content: '';
    position: absolute;
    top: 19px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--color-border, #e5e7eb);
    z-index: 0;
}

.roadmap-step:first-child::before {
    left: 50%;
}

.roadmap-step:last-child::before {
    right: 50%;
}

.roadmap-step--achieved::before {
    background: var(--color-primary, #0072ce);
}

/* Node circle */
.roadmap-node {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid var(--color-border, #e5e7eb);
    background: var(--color-surface, #fff);
    z-index: 1;
    transition: transform 0.15s ease, border-color 0.2s ease, background 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
}

.roadmap-step--achieved .roadmap-node {
    background: var(--color-primary, #0072ce);
    border-color: var(--color-primary, #0072ce);
}

/* Milestone (exam) nodes */
.roadmap-step--milestone .roadmap-node {
    width: 22px;
    height: 22px;
    border-color: var(--color-info, #0891b2);
}

.roadmap-step--milestone.roadmap-step--achieved .roadmap-node {
    background: var(--color-info, #0891b2);
    border-color: var(--color-info, #0891b2);
}

/* First Solo node -larger, gold/amber; negative margin centers it on the connecting line */
.roadmap-step--first-solo .roadmap-node {
    width: 36px;
    height: 36px;
    border-color: var(--color-warning, #f59e0b);
    border-width: 3px;
    font-size: 16px;
    margin-top: -10px;
}

.roadmap-step--first-solo.roadmap-step--achieved .roadmap-node {
    background: var(--color-warning, #f59e0b);
    border-color: var(--color-warning, #f59e0b);
    color: #fff;
}

/* Pulse animation for unachieved first solo */
.roadmap-step--first-solo:not(.roadmap-step--achieved) .roadmap-node {
    animation: soloNodePulse 2s ease-in-out infinite;
}

@keyframes soloNodePulse {
    0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--color-warning, #f59e0b) 40%, transparent); }
    50%      { box-shadow: 0 0 0 8px color-mix(in srgb, var(--color-warning, #f59e0b) 0%, transparent); }
}

/* Failed exam nodes -red */
.roadmap-step--failed .roadmap-node {
    background: var(--color-danger, #dc2626);
    border-color: var(--color-danger, #dc2626);
}

/* Skills test passed = student is now a pilot. Stamp the app's aircraft
   icon on the node so it visually outranks the regular achievement tick. */
.roadmap-node--skills-test-passed {
    width: 40px !important;
    height: 40px !important;
    margin-top: -12px !important;
    background: linear-gradient(135deg, #ec4899 0%, #be185d 100%) !important;
    border-color: #be185d !important;
    border-width: 3px !important;
    color: #fff !important;
    box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.22), 0 6px 14px rgba(190, 24, 93, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
}
.roadmap-node--skills-test-passed svg {
    width: 22px;
    height: 22px;
    stroke: #fff;
}

.roadmap-step--failed .roadmap-label {
    color: var(--color-danger, #dc2626);
}

/* Node labels */
.roadmap-label {
    margin-top: 8px;
    font-size: 11px;
    color: var(--color-text-secondary, #6b7280);
    text-align: center;
    max-width: 64px;
    line-height: 1.3;
    word-break: break-word;
}

.roadmap-step--achieved .roadmap-label {
    color: var(--color-text, #1e293b);
    font-weight: 500;
}

.roadmap-date {
    margin-top: 2px;
    font-size: 10px;
    color: var(--color-text-secondary, #6b7280);
}

.roadmap-solo-label {
    margin-top: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-warning, #f59e0b);
}

.roadmap-exam-badge {
    margin-top: 2px;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-info, #0891b2);
}
.roadmap-exam-badge--milestone {
    color: #4338ca;
}
.roadmap-exam-badge--skills-test {
    color: #9d174d;
    text-shadow: 0 0 4px rgba(236, 72, 153, 0.35);
}

.roadmap-flight-type {
    margin-top: 2px;
    font-size: 9px;
    font-weight: 700;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.roadmap-flight-type--dual {
    background: #d1fae5;
    color: #065f46;
}

.roadmap-flight-type--solo {
    background: #fef3c7;
    color: #92400e;
}

/* ═══════════════════════════════════════════════
   OVERALL PROGRESS GRID
   ═══════════════════════════════════════════════ */
.overall-grid-wrap {
    overflow-x: auto;
    margin-bottom: 24px;
}

.overall-grid {
    border-collapse: separate;
    border-spacing: 0;
    font-size: 12px;
    width: auto;
}

.overall-grid th,
.overall-grid td {
    padding: 6px 8px;
    text-align: center;
    border-bottom: 1px solid var(--color-border-light, #f1f3f5);
}

.overall-grid th {
    background: var(--color-th-bg, #f2f2f2);
    color: var(--color-th-text, #1e293b);
    font-weight: 600;
    font-size: 11px;
    position: sticky;
    top: 0;
    z-index: 1;
}

.overall-grid-name {
    text-align: left !important;
    white-space: nowrap;
    font-weight: 500;
    position: sticky;
    left: 0;
    z-index: 2;
    background: var(--color-surface, #fff);
    min-width: 120px;
}

th.overall-grid-name {
    background: var(--color-th-bg, #f2f2f2);
    z-index: 3;
}

.overall-grid-step {
    vertical-align: bottom;
    padding: 6px 2px 4px !important;
    width: 28px;
    min-width: 28px;
}

.overall-grid-step .programme-badge {
    display: block;
    margin: 4px auto 0;
}

.overall-grid-step-label {
    writing-mode: vertical-lr;
    transform: rotate(180deg);
    display: inline-block;
    white-space: nowrap;
    font-size: 10px;
    max-height: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.overall-grid-cell {
    padding: 4px 2px;
}

.overall-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    vertical-align: middle;
}

.overall-dot--achieved {
    background: var(--color-primary, #0072ce);
}

.overall-dot--pending {
    border: 2px solid var(--color-border, #e5e7eb);
    background: transparent;
    width: 8px;
    height: 8px;
}

.overall-dot--failed {
    background: var(--color-danger, #dc2626);
}

.overall-dot--solo {
    color: var(--color-warning, #f59e0b);
    font-size: 16px;
    line-height: 1;
}

/* Skills test passed = student is a pilot. Inline aeroplane glyph in
   the rose/pink palette so the cell stands out from regular achievements. */
.overall-dot--skills-test {
    width: auto;
    height: auto;
    background: transparent;
    color: #be185d;
    line-height: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.overall-dot--skills-test svg {
    width: 18px;
    height: 18px;
}

.overall-checklist-value {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--color-text-muted, #94a3b8);
    white-space: nowrap;
}

.overall-checklist-value--achieved {
    color: var(--color-primary, #0072ce);
}

/* ═══════════════════════════════════════════════
   STEP DETAIL MODAL
   ═══════════════════════════════════════════════ */
.step-detail-modal {
    max-width: 520px;
}

.step-detail-desc {
    font-size: 13px;
    color: var(--color-text-secondary, #6b7280);
    line-height: 1.5;
    margin: 0 0 16px;
}

.step-detail-field {
    margin-bottom: 12px;
}

.step-detail-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--color-text, #1e293b);
}

.step-detail-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-primary, #0072ce);
}

.step-detail-note-wrap {
    position: relative;
}

.step-detail-mic-btn {
    position: absolute;
    right: 6px;
    top: 6px;
    font-size: 16px;
    line-height: 1;
    padding: 4px 6px !important;
}

.step-detail-mic-btn.recording {
    background: var(--color-danger-bg, #fee2e2);
    color: var(--color-danger, #dc2626);
    border-color: var(--color-danger, #dc2626);
    animation: micPulse 1s ease-in-out infinite;
}

@keyframes micPulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.5; }
}

.step-detail-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

/* First-solo prompt -small, dot-style toggle but still standout. */
.step-detail-firstsolo {
    flex-basis: 100%;
    margin: 6px 0 0;
    padding: 8px 12px;
    border: 1px solid #f4b740;
    border-radius: 10px;
    background: linear-gradient(135deg, #fffaf0 0%, #fff3d6 100%);
    box-shadow: 0 0 0 2px rgba(244, 183, 64, 0.14);
}

/* Reuse the .users-dot-filter dot styling, just tweak the wrapper to
   align the star with the label. */
.step-detail-firstsolo-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #7a4d00;
    margin: 0;
}

.step-detail-firstsolo-star {
    font-size: 1.05rem;
    color: #f0a830;
    text-shadow: 0 0 4px rgba(240, 168, 48, 0.55);
    line-height: 1;
    margin: 0 2px 0 4px;
}

.step-detail-firstsolo-text {
    flex: 1;
}

/* Dark theme: keep the gold tone but tone the panel down. */
[data-palette="phpstorm_classic"] .step-detail-firstsolo,
[data-palette="phpstorm_teal"] .step-detail-firstsolo {
    background: linear-gradient(135deg, rgba(244, 183, 64, 0.14), rgba(244, 183, 64, 0.05));
    border-color: #d4a843;
}
[data-palette="phpstorm_classic"] .step-detail-firstsolo-label,
[data-palette="phpstorm_teal"] .step-detail-firstsolo-label {
    color: #fde29a;
}
[data-palette="phpstorm_classic"] .step-detail-firstsolo-star,
[data-palette="phpstorm_teal"] .step-detail-firstsolo-star {
    color: #fcd34d;
    text-shadow: 0 0 6px rgba(252, 211, 77, 0.5);
}

/* ═══════════════════════════════════════════════
   CHECKLIST PROGRESS (per-student / my-training)
   ═══════════════════════════════════════════════ */
.checklist-progress-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
}

.checklist-progress-item {
    padding: 12px 16px;
    border: 1px solid var(--color-border, #e5e7eb);
    border-radius: var(--radius-sm, 8px);
    background: var(--color-surface, #fff);
}

.checklist-progress-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
}

.checklist-progress-title {
    font-weight: 500;
    font-size: 14px;
    color: var(--color-text, #1e293b);
}

.checklist-progress-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-secondary, #6b7280);
    white-space: nowrap;
}

.checklist-progress-bar {
    height: 8px;
    background: var(--color-border-light, #f1f3f5);
    border-radius: 4px;
    overflow: hidden;
}

.checklist-progress-fill {
    height: 100%;
    background: var(--color-primary, #0072ce);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.checklist-progress-fill--complete {
    background: var(--color-success, #16a34a);
}

.checklist-progress-check {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-secondary, #6b7280);
    white-space: nowrap;
}

.checklist-progress-check--done {
    color: var(--color-success, #16a34a);
}

/* ═══════════════════════════════════════════════
   HIDDEN / VISIBLE UTILITY
   ═══════════════════════════════════════════════ */
.training-hidden {
    display: none !important;
}

/* Show modal-backdrop as flex when opened via JS */
.modal-backdrop.training-open {
    display: flex !important;
}

/* ═══════════════════════════════════════════════
   STUDENT SYLLABUS -READ-ONLY LIST
   ═══════════════════════════════════════════════ */
.syllabus-readonly-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 16px;
}

.syllabus-readonly-item {
    padding: 10px 14px;
    background: var(--color-surface, #fff);
    border-left: 3px solid var(--color-border, #e5e7eb);
}

.syllabus-readonly-item--milestone {
    border-left-color: var(--color-warning, #f59e0b);
}

.syllabus-readonly-header {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.syllabus-readonly-number {
    font-weight: 600;
    font-size: 13px;
    color: var(--color-text-secondary, #6b7280);
    min-width: 36px;
}

.syllabus-readonly-title {
    font-weight: 500;
    font-size: 14px;
}

.syllabus-readonly-meta {
    font-size: 12px;
    color: var(--color-text-secondary, #6b7280);
    background: var(--color-bg, #f3f4f6);
    padding: 2px 8px;
    border-radius: 10px;
}

.syllabus-readonly-desc {
    margin: 4px 0 0 44px;
    font-size: 13px;
    color: var(--color-text-secondary, #6b7280);
    line-height: 1.4;
}

/* ═══════════════════════════════════════════════
   MY TRAINING -STUDENT SELF-SERVICE
   ═══════════════════════════════════════════════ */
.my-training-page {
    max-width: var(--page-max-width, 1600px);
    margin: 0 auto;
    padding: 20px;
}

.my-training-courses {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.my-training-course-btn {
    padding: 8px 16px;
    border: 2px solid var(--color-border, #e5e7eb);
    border-radius: var(--radius-btn, 8px);
    background: var(--color-surface, #fff);
    color: var(--color-text, #1e293b);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: border-color var(--transition-base), color var(--transition-base);
}

.my-training-course-btn:hover {
    border-color: var(--color-primary, #0072ce);
    color: var(--color-primary, #0072ce);
}

.my-training-course-btn.active {
    border-color: var(--color-primary, #0072ce);
    background: color-mix(in srgb, var(--color-primary, #0072ce) 8%, transparent);
    color: var(--color-primary, #0072ce);
    font-weight: 600;
}

/* ═══════════════════════════════════════════════
   DARK PALETTE SUPPORT
   ═══════════════════════════════════════════════ */
[data-palette="phpstorm_classic"] .training-course-select,
[data-palette="phpstorm_teal"] .training-course-select {
    background: var(--color-surface);
    color: var(--color-text);
    border-color: var(--color-border);
}

[data-palette="phpstorm_classic"] .programme-item,
[data-palette="phpstorm_teal"] .programme-item {
    background: var(--color-surface);
    border-color: var(--color-border);
}

[data-palette="phpstorm_classic"] .programme-add-form,
[data-palette="phpstorm_teal"] .programme-add-form,
[data-palette="phpstorm_classic"] .programme-import-section,
[data-palette="phpstorm_teal"] .programme-import-section {
    background: var(--color-bg-subtle);
    border-color: var(--color-border);
}

[data-palette="phpstorm_classic"] .programme-input,
[data-palette="phpstorm_classic"] .programme-textarea,
[data-palette="phpstorm_teal"] .programme-input,
[data-palette="phpstorm_teal"] .programme-textarea {
    background: var(--color-surface);
    color: var(--color-text);
    border-color: var(--color-border);
}

[data-palette="phpstorm_classic"] .overall-grid-name,
[data-palette="phpstorm_teal"] .overall-grid-name {
    background: var(--color-surface);
}

[data-palette="phpstorm_classic"] th.overall-grid-name,
[data-palette="phpstorm_teal"] th.overall-grid-name {
    background: var(--color-th-bg);
}

[data-palette="phpstorm_classic"] .roadmap-step--achieved .roadmap-node,
[data-palette="phpstorm_teal"] .roadmap-step--achieved .roadmap-node {
    box-shadow: 0 0 6px 1px color-mix(in srgb, var(--color-primary, #0072ce) 40%, transparent);
}

[data-palette="phpstorm_classic"] .my-training-course-btn,
[data-palette="phpstorm_teal"] .my-training-course-btn {
    background: var(--color-surface);
    color: var(--color-text);
    border-color: var(--color-border);
}

[data-palette="phpstorm_classic"] .programme-column-map-modal,
[data-palette="phpstorm_teal"] .programme-column-map-modal,
[data-palette="phpstorm_classic"] .ai-import-modal,
[data-palette="phpstorm_teal"] .ai-import-modal {
    background: var(--color-surface);
}

/* .ai-file-drop palette overrides are now in styles.css (shared). */
[data-palette="phpstorm_classic"] .programme-file-pick,
[data-palette="phpstorm_teal"] .programme-file-pick {
    background: var(--color-bg-subtle);
    border-color: var(--color-border);
}

[data-palette="phpstorm_classic"] .ai-preview-item,
[data-palette="phpstorm_teal"] .ai-preview-item {
    background: var(--color-surface);
    border-color: var(--color-border);
}

[data-palette="phpstorm_classic"] .ai-preview-number,
[data-palette="phpstorm_teal"] .ai-preview-number,
[data-palette="phpstorm_classic"] .ai-preview-meta,
[data-palette="phpstorm_teal"] .ai-preview-meta {
    background: var(--color-bg-subtle);
}

[data-palette="phpstorm_classic"] .checklist-item,
[data-palette="phpstorm_teal"] .checklist-item,
[data-palette="phpstorm_classic"] .checklist-progress-item,
[data-palette="phpstorm_teal"] .checklist-progress-item,
[data-palette="phpstorm_classic"] .syllabus-readonly-item,
[data-palette="phpstorm_teal"] .syllabus-readonly-item {
    background: var(--color-surface);
    border-color: var(--color-border);
}

[data-palette="phpstorm_classic"] .programme-import-warning-text,
[data-palette="phpstorm_teal"] .programme-import-warning-text {
    background: color-mix(in srgb, var(--color-warning, #f59e0b) 12%, var(--color-surface));
    color: var(--color-text);
}

[data-palette="phpstorm_classic"] .programme-column-map-preview-wrap,
[data-palette="phpstorm_teal"] .programme-column-map-preview-wrap {
    border-color: var(--color-border);
}

[data-palette="phpstorm_classic"] .programme-column-map-select,
[data-palette="phpstorm_teal"] .programme-column-map-select {
    background: var(--color-surface);
    color: var(--color-text);
    border-color: var(--color-border);
}

/* ═══════════════════════════════════════════════
   RESPONSIVE -TABLET (<=1024px)
   ═══════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .roadmap-step {
        min-width: 64px;
    }

    .overall-grid-step {
        width: 24px;
        min-width: 24px;
    }

    .overall-grid-step-label {
        font-size: 9px;
        max-height: 120px;
    }
}

/* ═══════════════════════════════════════════════
   RESPONSIVE -MOBILE (<=700px)
   ═══════════════════════════════════════════════ */
@media (max-width: 700px) {
    /* --- Subtabs: horizontal scroll, no wrapping --- */
    .training-subtabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .training-subtabs::-webkit-scrollbar {
        display: none;
    }

    .training-subtab {
        white-space: nowrap;
        padding: 8px 12px;
        font-size: 13px;
        flex-shrink: 0;
    }

    /* --- Course switcher --- */
    .training-course-switcher {
        padding: 10px 12px;
    }

    .training-course-select {
        font-size: 13px;
    }

    /* --- Programme items --- */
    .programme-item-header {
        padding: 10px 12px;
    }

    .programme-item-number {
        min-width: 24px;
        font-size: 13px;
    }

    .programme-item-title {
        font-size: 13px;
    }

    .programme-item-body {
        padding: 0 12px 12px;
    }

    .programme-import-section {
        padding: 14px;
    }

    .programme-import-row {
        flex-direction: column;
        align-items: stretch;
    }

    .programme-file-pick {
        justify-content: center;
    }

    .programme-import-row .btn {
        width: 100%;
        text-align: center;
    }

    .programme-add-form {
        padding: 14px;
        margin-top: 16px;
    }

    .programme-add-title {
        font-size: 15px;
    }

    .programme-edit-modal {
        max-width: 100%;
    }

    .programme-column-map-modal,
    .ai-import-modal {
        max-width: 100%;
        width: 100%;
    }

    .programme-column-map-grid {
        grid-template-columns: 1fr;
    }

    .ai-import-actions {
        flex-direction: column-reverse;
    }

    .ai-import-actions .btn {
        width: 100%;
        text-align: center;
    }

    .programme-import-or {
        display: none;
    }

    .programme-import-row #aiImportBtn {
        width: 100%;
        text-align: center;
    }

    .programme-column-map-preview-wrap {
        max-height: 200px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* --- Students enrolment --- */
    .students-enrol-row {
        flex-direction: column;
        max-width: 100%;
        align-items: stretch;
        gap: 8px;
    }

    .students-enrol-row .btn {
        width: 100%;
        text-align: center;
    }

    /* --- Students table mobile --- */
    .users-table-card {
        margin: 0 -12px;
    }

    .users-table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* --- Progress student selector --- */
    .progress-student-selector {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }

    .progress-student-selector select {
        min-width: 0;
        width: 100%;
    }

    /* --- Roadmap mobile: larger touch targets, tighter spacing --- */
    .roadmap-container {
        padding: 12px 0 20px;
        -webkit-overflow-scrolling: touch;
    }

    .roadmap-timeline {
        padding: 0 4px;
    }

    .roadmap-step {
        min-width: 56px;
        padding-top: 6px;
    }

    .roadmap-node {
        width: 20px;
        height: 20px;
        border-width: 2px;
    }

    .roadmap-step--milestone .roadmap-node {
        width: 24px;
        height: 24px;
    }

    .roadmap-step--first-solo .roadmap-node {
        width: 32px;
        height: 32px;
        font-size: 14px;
        margin-top: -7px;
    }

    .roadmap-step::before {
        top: 18px;
    }

    .roadmap-label {
        font-size: 10px;
        max-width: 48px;
        margin-top: 6px;
    }

    .roadmap-date {
        font-size: 9px;
    }

    .roadmap-solo-label {
        font-size: 9px;
    }

    .roadmap-exam-badge {
        font-size: 8px;
    }

    .roadmap-section-title {
        font-size: 15px;
        margin: 16px 0 8px;
    }

    /* --- Step detail modal: full-width on mobile --- */
    .step-detail-modal {
        max-width: 100%;
        width: 100%;
    }

    .step-detail-desc {
        font-size: 12px;
    }

    .step-detail-note-wrap .programme-textarea {
        font-size: 14px;
        padding-right: 40px;
    }

    .step-detail-mic-btn {
        padding: 6px 8px !important;
        font-size: 18px;
    }

    .step-detail-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .step-detail-actions .btn {
        width: 100%;
        text-align: center;
    }

    .programme-edit-actions {
        flex-direction: column-reverse;
    }

    .programme-edit-actions .btn {
        width: 100%;
        text-align: center;
    }

    /* --- Overall grid mobile --- */
    .overall-grid-wrap {
        margin: 0 -12px 20px;
        padding: 0 4px;
        -webkit-overflow-scrolling: touch;
    }

    .overall-grid {
        font-size: 11px;
    }

    .overall-grid th,
    .overall-grid td {
        padding: 4px 3px;
    }

    .overall-grid-name {
        min-width: 80px;
        font-size: 11px;
        padding: 4px 8px;
    }

    .overall-grid-step {
        width: 22px;
        min-width: 22px;
    }

    .overall-grid-step-label {
        font-size: 9px;
        max-height: 110px;
    }

    .overall-dot {
        width: 10px;
        height: 10px;
    }

    .overall-dot--pending {
        width: 6px;
        height: 6px;
    }

    .overall-dot--solo {
        font-size: 14px;
    }

    /* --- My Training page --- */
    .my-training-page {
        padding: 14px;
    }

    .my-training-page h2 {
        font-size: 20px;
        margin-bottom: 12px;
    }

    .my-training-courses {
        flex-direction: row;
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 6px;
        margin-bottom: 14px;
        padding-bottom: 4px;
    }

    .my-training-courses::-webkit-scrollbar {
        display: none;
    }

    .my-training-course-btn {
        flex-shrink: 0;
        padding: 6px 14px;
        font-size: 13px;
    }
}

/* ═══════════════════════════════════════════════
   RESPONSIVE -SMALL MOBILE (<=480px)
   ═══════════════════════════════════════════════ */
@media (max-width: 480px) {
    .roadmap-step {
        min-width: 48px;
    }

    .roadmap-node {
        width: 16px;
        height: 16px;
    }

    .roadmap-step--milestone .roadmap-node {
        width: 20px;
        height: 20px;
    }

    .roadmap-step--first-solo .roadmap-node {
        width: 28px;
        height: 28px;
        font-size: 12px;
        margin-top: -7px;
    }

    .roadmap-step::before {
        top: 16px;
    }

    .roadmap-label {
        font-size: 9px;
        max-width: 42px;
    }

    .overall-grid-name {
        min-width: 64px;
        font-size: 10px;
    }

    .overall-grid-step {
        width: 20px;
        min-width: 20px;
    }

    .overall-grid-step-label {
        font-size: 8px;
        max-height: 90px;
    }

    .programme-badge {
        font-size: 10px;
        padding: 1px 6px;
    }

    .step-detail-modal {
        padding: 14px;
    }
}
