/**
 * HumiDesk — Program Detail Split-Pane Execution Center
 * Phase C: replaces single-column step track with left-nav + right-panel layout
 *
 * DO NOT merge into shortcodes.php inline style blocks (宪法第九章)
 */

/* ─── Root container ─────────────────────────────────────────────────────── */
.hd-prog-exec {
    display: flex;
    gap: 0;
    min-height: 520px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
}

/* ─── Left nav ───────────────────────────────────────────────────────────── */
.hd-prog-exec__nav {
    width: 260px;
    flex-shrink: 0;
    border-right: 1px solid #e2e8f0;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.hd-prog-exec__nav-header {
    padding: 18px 16px 14px;
    border-bottom: 1px solid #e2e8f0;
}

.hd-prog-exec__back {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #7c3aed;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 10px;
}
.hd-prog-exec__back:hover { color: #6d28d9; }
.hd-prog-exec__back svg { width: 12px; height: 12px; }

.hd-prog-exec__nav-prog-title {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.4;
}

.hd-prog-exec__nav-prog-meta {
    margin: 4px 0 0;
    font-size: 11px;
    color: #64748b;
}

/* Step list */
.hd-prog-exec__step-list {
    list-style: none;
    margin: 0;
    padding: 8px 0;
    flex: 1;
}

/* PG-10-013: module group header in step nav */
.hd-prog-exec__module-header {
    list-style: none;
    padding: 10px 16px 3px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #94a3b8;
    pointer-events: none;
    user-select: none;
}

.hd-prog-exec__step-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 9px 14px 9px 16px;
    cursor: pointer;
    border-left: 3px solid transparent;
    transition: background 0.1s, border-color 0.1s;
    position: relative;
}
.hd-prog-exec__step-item:hover {
    background: #f1f5f9;
}
.hd-prog-exec__step-item.is-active {
    background: #ede9fe;
    border-left-color: #7c3aed;
}

/* Status dot */
.hd-prog-exec__step-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 700;
    margin-top: 1px;
}
.hd-prog-exec__step-dot.pending   { background: #f1f5f9; border: 2px solid #cbd5e1; color: #94a3b8; }
.hd-prog-exec__step-dot.in_progress { background: #dbeafe; border: 2px solid #93c5fd; color: #2563eb; }
.hd-prog-exec__step-dot.done,
.hd-prog-exec__step-dot.completed { background: #22c55e; border: 2px solid #16a34a; color: #fff; }

.hd-prog-exec__step-info { flex: 1; min-width: 0; }

.hd-prog-exec__step-title {
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.hd-prog-exec__step-title.is-done {
    color: #94a3b8;
    text-decoration: line-through;
}
.hd-prog-exec__step-due {
    display: block;
    font-size: 10px;
    color: #94a3b8;
    margin-top: 2px;
}

/* ─── Right panel ────────────────────────────────────────────────────────── */
.hd-prog-exec__panel {
    flex: 1;
    min-width: 0;
    overflow-y: auto;
    padding: 24px 28px 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Panel header */
.hd-prog-exec__panel-header {
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 14px;
}
.hd-prog-exec__panel-step-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #7c3aed;
    margin-bottom: 6px;
}
.hd-prog-exec__panel-title {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
}
.hd-prog-exec__panel-status-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.hd-prog-exec__status-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
}
.hd-prog-exec__status-pill.pending    { background: #f1f5f9; color: #475569; }
.hd-prog-exec__status-pill.in_progress { background: #dbeafe; color: #1d4ed8; }
.hd-prog-exec__status-pill.done,
.hd-prog-exec__status-pill.completed  { background: #dcfce7; color: #15803d; }
.hd-prog-exec__status-pill::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}
.hd-prog-exec__due-text {
    font-size: 12px;
    color: #64748b;
}

/* Panel sections */
.hd-prog-exec__section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.hd-prog-exec__section-title {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #64748b;
    margin: 0;
}

/* Task description prose */
.hd-prog-exec__task-content {
    font-size: 14px;
    line-height: 1.7;
    color: #1e293b;
}
.hd-prog-exec__task-content h2,
.hd-prog-exec__task-content h3 {
    margin: 1.1em 0 .5em;
    color: #0f172a;
    font-weight: 700;
}
.hd-prog-exec__task-content h2 { font-size: 16px; }
.hd-prog-exec__task-content h3 { font-size: 14px; }
.hd-prog-exec__task-content p  { margin: 0 0 .75em; }
.hd-prog-exec__task-content ul,
.hd-prog-exec__task-content ol { margin: 0 0 .75em; padding-left: 1.4em; }
.hd-prog-exec__task-content li { margin-bottom: .3em; }
.hd-prog-exec__task-content strong { font-weight: 700; }
.hd-prog-exec__task-content em    { font-style: italic; }
.hd-prog-exec__task-content blockquote {
    margin: .75em 0;
    padding: 10px 14px;
    border-left: 3px solid #e2e8f0;
    background: #f8fafc;
    color: #475569;
    border-radius: 0 6px 6px 0;
}
.hd-prog-exec__task-content table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin-bottom: .75em;
}
.hd-prog-exec__task-content th,
.hd-prog-exec__task-content td {
    border: 1px solid #e2e8f0;
    padding: 7px 10px;
    text-align: left;
}
.hd-prog-exec__task-content th { background: #f8fafc; font-weight: 700; }
.hd-prog-exec__task-content figure { margin: .75em 0; }

/* Skeleton loading */
.hd-prog-exec__skeleton {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 4px 0;
}
.hd-prog-exec__skeleton-line {
    height: 14px;
    border-radius: 6px;
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: hd-skeleton-shimmer 1.4s ease infinite;
}
.hd-prog-exec__skeleton-line.short { width: 40%; }
.hd-prog-exec__skeleton-line.medium { width: 70%; }
.hd-prog-exec__skeleton-line.long { width: 95%; }
.hd-prog-exec__skeleton-line.title { height: 20px; width: 60%; }
@keyframes hd-skeleton-shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Materials list */
.hd-prog-exec__materials {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.hd-prog-exec__materials-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.hd-prog-exec__materials-group-title {
    margin: 0;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #64748b;
}
.hd-prog-exec__material-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    text-decoration: none;
    color: #0f172a;
    font-size: 13px;
    font-weight: 500;
    background: #fafbfc;
    transition: background 0.1s, border-color 0.1s;
}
.hd-prog-exec__material-item:hover {
    background: #f1f5f9;
    border-color: #c7d2fe;
    color: #0f172a;
}
.hd-prog-exec__material-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}
.hd-prog-exec__material-icon.doc      { background: #dbeafe; }
.hd-prog-exec__material-icon.video    { background: #fce7f3; }
.hd-prog-exec__material-icon.download { background: #dcfce7; }
.hd-prog-exec__material-icon.tool     { background: #fef3c7; }
.hd-prog-exec__material-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.hd-prog-exec__material-label { min-width: 0; }
.hd-prog-exec__material-meta {
    font-size: 11px;
    color: #94a3b8;
}
.hd-prog-exec__material-arrow { color: #94a3b8; font-size: 12px; }

/* Checklist */
.hd-prog-exec__checklist {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.hd-prog-exec__check-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fafbfc;
    cursor: pointer;
    transition: background 0.1s;
}
.hd-prog-exec__check-item:hover { background: #f1f5f9; }
.hd-prog-exec__check-item.is-checked {
    background: #f0fdf4;
    border-color: #bbf7d0;
}
.hd-prog-exec__check-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    accent-color: #22c55e;
    cursor: pointer;
}
.hd-prog-exec__check-label {
    font-size: 13px;
    color: #1e293b;
    line-height: 1.4;
}
.hd-prog-exec__check-item.is-checked .hd-prog-exec__check-label {
    text-decoration: line-through;
    color: #94a3b8;
}

/* CTA area */
.hd-prog-exec__cta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: 4px;
}
.hd-prog-exec__cta-hint {
    width: 100%;
    margin: 0 0 4px;
    font-size: 12px;
    color: #64748b;
}
.hd-prog-exec__cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 22px;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.12s, transform 0.08s;
}
.hd-prog-exec__cta-btn:active { transform: scale(.98); }
.hd-prog-exec__cta-btn.primary { background: #7c3aed; color: #fff; }
.hd-prog-exec__cta-btn.primary:hover { background: #6d28d9; }
.hd-prog-exec__cta-btn.secondary { background: #f1f5f9; color: #334155; border: 1px solid #e2e8f0; }
.hd-prog-exec__cta-btn.secondary:hover { background: #e2e8f0; }
.hd-prog-exec__cta-btn:disabled { opacity: .45; cursor: not-allowed; }

/* Empty / no-task state */
.hd-prog-exec__empty {
    text-align: center;
    padding: 40px 20px;
    color: #94a3b8;
    font-size: 14px;
}

/* ── Instructor's Take callout ─────────────────────────────────────────── */
.hd-prog-exec__instructor-take {
    background: #f5f3ff;
    border-left: 3px solid #7c3aed;
    border-radius: 0 8px 8px 0;
    padding: 12px 16px;
    margin: 0 0 16px;
    position: relative;
}
.hd-prog-exec__instructor-take-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #7c3aed;
    margin-bottom: 6px;
}
.hd-prog-exec__instructor-take-body {
    margin: 0 0 6px;
    padding: 0;
    font-size: 14px;
    line-height: 1.65;
    color: #1e1b4b;
    font-style: italic;
    border: none;
    white-space: pre-wrap;
}
.hd-prog-exec__instructor-take-attr {
    font-size: 11px;
    color: #a78bfa;
    display: block;
}

/* ─── Mobile: stack vertically ───────────────────────────────────────────── */
@media (max-width: 640px) {
    .hd-prog-exec {
        flex-direction: column;
        min-height: unset;
    }
    .hd-prog-exec__nav {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
        max-height: 200px;
    }
    .hd-prog-exec__step-list {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        padding: 6px 8px;
        gap: 4px;
    }
    .hd-prog-exec__step-item {
        flex-direction: column;
        align-items: center;
        gap: 4px;
        min-width: 72px;
        padding: 8px 6px;
        border-left: none;
        border-bottom: 3px solid transparent;
        border-radius: 8px;
        text-align: center;
    }
    .hd-prog-exec__step-item.is-active {
        background: #ede9fe;
        border-bottom-color: #7c3aed;
    }
    .hd-prog-exec__step-title {
        font-size: 10px;
        white-space: normal;
        text-align: center;
        overflow: visible;
        text-overflow: unset;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .hd-prog-exec__step-due { display: none; }
    .hd-prog-exec__panel { padding: 18px 16px 24px; }
}

/* ─── F2-B: Step Feed ────────────────────────────────────────────────────── */
.hd-prog-exec__feed {
    margin-top: 28px;
    border-top: 1px solid #e2e8f0;
    padding-top: 20px;
}

.hd-prog-exec__feed-header {
    font-size: 13px;
    font-weight: 700;
    color: #5b21b6;
    margin-bottom: 14px;
    letter-spacing: .01em;
}

.hd-prog-exec__feed-empty {
    font-size: 13px;
    color: #94a3b8;
    margin: 0 0 14px;
}

.hd-prog-exec__feed-comment,
.hd-prog-exec__feed-reply {
    padding: 10px 12px;
    border-radius: 8px;
    margin-bottom: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.hd-prog-exec__feed-comment.is-coach,
.hd-prog-exec__feed-reply.is-coach {
    background: #f5f3ff;
    border-color: #ddd6fe;
}

.hd-prog-exec__feed-replies {
    margin-top: 8px;
    margin-left: 16px;
    border-left: 2px solid #ddd6fe;
    padding-left: 12px;
}

.hd-prog-exec__feed-reply {
    margin-bottom: 6px;
}

.hd-prog-exec__feed-comment-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    flex-wrap: wrap;
}

.hd-prog-exec__feed-author {
    font-size: 12px;
    font-weight: 700;
    color: #0f172a;
}

.hd-prog-exec__feed-role {
    font-size: 10px;
    font-weight: 600;
    padding: 1px 7px;
    border-radius: 999px;
    background: #e2e8f0;
    color: #475569;
}

.hd-prog-exec__feed-role.coach,
.hd-prog-exec__feed-role.admin {
    background: #ede9fe;
    color: #5b21b6;
}

.hd-prog-exec__feed-time {
    font-size: 11px;
    color: #94a3b8;
    margin-left: auto;
}

.hd-prog-exec__feed-comment-body {
    font-size: 13px;
    color: #334155;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
}

.hd-prog-exec__feed-compose {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hd-prog-exec__feed-textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #c4b5fd;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 13px;
    color: #0f172a;
    resize: vertical;
    font-family: inherit;
    line-height: 1.5;
    transition: border-color .15s;
}

.hd-prog-exec__feed-textarea:focus {
    outline: none;
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124,58,237,.12);
}

.hd-prog-exec__feed-submit {
    align-self: flex-end;
    background: #7c3aed;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s, opacity .15s;
}

.hd-prog-exec__feed-submit:hover { background: #6d28d9; }
.hd-prog-exec__feed-submit:disabled { opacity: .5; cursor: not-allowed; }

.hd-prog-exec__feed-msg {
    font-size: 12px;
    font-weight: 600;
}

/* ── Coach/Admin rich composer toolbar ─────────────────────────────────── */
.hd-prog-exec__feed-toolbar {
    display: flex;
    gap: 4px;
    padding: 6px 8px;
    background: #f5f3ff;
    border: 1px solid #ddd6fe;
    border-radius: 8px 8px 0 0;
    border-bottom: none;
}

.hd-prog-exec__feed-tb-btn {
    background: #fff;
    border: 1px solid #ddd6fe;
    border-radius: 5px;
    padding: 3px 9px;
    font-size: 12px;
    cursor: pointer;
    color: #5b21b6;
    line-height: 1.4;
    transition: background .12s;
}
.hd-prog-exec__feed-tb-btn:hover { background: #ede9fe; }

.hd-prog-exec__feed-textarea.is-coach {
    border-radius: 0 0 8px 8px;
    border-color: #c4b5fd;
    background: #faf5ff;
    margin-top: 0;
}
.hd-prog-exec__feed-textarea.is-coach:focus {
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124,58,237,.12);
}

/* Reply button on comments (coach/admin only) */
.hd-prog-exec__feed-reply-btn {
    background: none;
    border: 1px solid #ddd6fe;
    border-radius: 6px;
    padding: 2px 10px;
    font-size: 11px;
    color: #7c3aed;
    cursor: pointer;
    margin-left: auto;
    font-weight: 600;
    transition: background .12s;
}
.hd-prog-exec__feed-reply-btn:hover { background: #f5f3ff; }

/* Inline reply form */
.hd-prog-exec__feed-reply-form {
    margin-top: 10px;
    padding: 10px;
    background: #faf5ff;
    border: 1px solid #ddd6fe;
    border-radius: 10px;
}

/* ── PG-10-015: Inline Structured Submission Zone ──────────────────────── */
.hd-prog-submit-zone {
    margin: 20px 0 8px;
    border-radius: 14px;
    border: 1.5px solid #ddd6fe;
    background: #fdfcff;
    overflow: hidden;
    transition: border-color 0.18s, box-shadow 0.18s;
}
.hd-prog-submit-zone:hover {
    border-color: #c4b5fd;
    box-shadow: 0 2px 12px rgba(124,58,237,.07);
}
.hd-prog-submit-zone.is-open {
    border-color: #7c3aed;
    box-shadow: 0 4px 20px rgba(124,58,237,.12);
}
.hd-prog-submit-zone.is-submitted {
    border-color: #bbf7d0;
    background: #f0fdf4;
}

/* Trigger button (collapsed state) */
.hd-prog-submit-zone__trigger {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 14px;
    font-weight: 600;
    color: #5b21b6;
    transition: background 0.12s;
}
.hd-prog-submit-zone__trigger:hover {
    background: #f5f3ff;
}
.hd-prog-submit-zone__trigger-icon {
    font-size: 16px;
    flex-shrink: 0;
}
.hd-prog-submit-zone__trigger-label {
    flex: 1;
}
.hd-prog-submit-zone__trigger-arrow {
    font-size: 20px;
    color: #a78bfa;
    transition: transform 0.2s;
    line-height: 1;
}
.hd-prog-submit-zone.is-open .hd-prog-submit-zone__trigger-arrow {
    transform: rotate(90deg);
}

/* Accordion body */
.hd-prog-submit-zone__body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(.4, 0, .2, 1);
}
.hd-prog-submit-zone.is-open .hd-prog-submit-zone__body {
    max-height: 1200px;
}
.hd-prog-submit-zone__body-inner {
    padding: 4px 20px 20px;
    border-top: 1px solid #ede9fe;
}
.hd-prog-submit-zone__form-title {
    font-size: 15px;
    font-weight: 700;
    color: #1e1b4b;
    margin: 14px 0 16px;
}

/* Fields */
.hd-prog-submit-zone__fields {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.hd-prog-submit-zone__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.hd-prog-submit-zone__field-label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}
.hd-prog-submit-zone__required {
    color: #ef4444;
    margin-left: 3px;
}
.hd-prog-submit-zone__field-input {
    width: 100%;
    padding: 10px 13px;
    font-size: 13.5px;
    color: #1e293b;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 9px;
    box-sizing: border-box;
    transition: border-color 0.15s, box-shadow 0.15s;
    font-family: inherit;
    line-height: 1.6;
    resize: vertical;
}
.hd-prog-submit-zone__field-input:focus {
    outline: none;
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124,58,237,.12);
}
.hd-prog-submit-zone__field-input.is-invalid {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239,68,68,.1);
}

/* Footer */
.hd-prog-submit-zone__footer {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}
.hd-prog-submit-zone__submit-btn {
    padding: 11px 28px;
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s, transform 0.08s, box-shadow 0.15s;
    box-shadow: 0 2px 8px rgba(124,58,237,.25);
}
.hd-prog-submit-zone__submit-btn:hover {
    background: linear-gradient(135deg, #6d28d9, #5b21b6);
    box-shadow: 0 4px 16px rgba(124,58,237,.35);
}
.hd-prog-submit-zone__submit-btn:active { transform: scale(.97); }
.hd-prog-submit-zone__submit-btn:disabled {
    opacity: .55;
    cursor: not-allowed;
    box-shadow: none;
}

/* Feedback messages */
.hd-prog-submit-zone__msg {
    font-size: 13px;
    padding: 5px 10px;
    border-radius: 6px;
}
.hd-prog-submit-zone__msg.is-ok {
    color: #16a34a;
    background: #f0fdf4;
}
.hd-prog-submit-zone__msg.is-error {
    color: #dc2626;
    background: #fef2f2;
}

/* Success state */
.hd-prog-submit-zone__success {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
}
.hd-prog-submit-zone__success-icon {
    font-size: 24px;
    flex-shrink: 0;
    margin-top: 1px;
}
.hd-prog-submit-zone__success-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.hd-prog-submit-zone__success-text strong {
    font-size: 14px;
    color: #15803d;
    font-weight: 700;
}
.hd-prog-submit-zone__success-text span {
    font-size: 12.5px;
    color: #166534;
}

/* Already-submitted header strip */
.hd-prog-submit-zone__header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 18px;
}
.hd-prog-submit-zone__icon { font-size: 16px; }
.hd-prog-submit-zone__title {
    flex: 1;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}
.hd-prog-submit-zone__badge {
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
}
.hd-prog-submit-zone__badge.is-submitted {
    background: #dcfce7;
    color: #16a34a;
}
.hd-prog-submit-zone__time {
    font-size: 11px;
    color: #94a3b8;
}

/* ── Feed: Submission summary card (coach view) ────────────────────────── */
.hd-prog-exec__feed-submission-card {
    margin-bottom: 16px;
    border: 1.5px solid #ddd6fe;
    border-radius: 12px;
    background: #fdfcff;
    overflow: hidden;
}
.hd-prog-exec__feed-submission-header {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 10px 14px;
    background: linear-gradient(135deg, #f5f3ff, #ede9fe);
    border-bottom: 1px solid #ddd6fe;
    font-size: 12px;
}
.hd-prog-exec__feed-submission-badge {
    font-size: 12px;
    font-weight: 700;
    color: #5b21b6;
    flex-shrink: 0;
}
/* PG-10-020: Gate review status badge (student view) */
.hd-prog-exec__feed-review-status {
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
    flex-shrink: 0;
}
.hd-prog-exec__feed-review-status.is-approved {
    background: #dcfce7;
    color: #15803d;
}
.hd-prog-exec__feed-review-status.is-revision {
    background: #fef9c3;
    color: #a16207;
}
.hd-prog-exec__feed-submission-fields {
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.hd-prog-exec__feed-submission-field {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.hd-prog-exec__feed-submission-field-label {
    font-size: 11px;
    font-weight: 700;
    color: #7c3aed;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.hd-prog-exec__feed-submission-field-value {
    font-size: 13px;
    color: #1e293b;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
}

/* ── Submit zone: Image upload field ───────────────────────────────────── */
.hd-prog-submit-zone__image-upload {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}
.hd-prog-submit-zone__image-label {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
}
.hd-prog-submit-zone__image-btn {
    display: inline-block;
    padding: 6px 14px;
    border: 1px solid #c4b5fd;
    border-radius: 6px;
    background: #faf5ff;
    color: #6d28d9;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    white-space: nowrap;
}
.hd-prog-submit-zone__image-label:hover .hd-prog-submit-zone__image-btn {
    background: #ede9fe;
    border-color: #a78bfa;
}
.hd-prog-submit-zone__image-status {
    font-size: 12px;
    line-height: 1.5;
}
.hd-prog-submit-zone__image-preview {
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    max-width: 100%;
    max-height: 200px;
    object-fit: contain;
    margin-top: 6px;
    display: block;
}

/* ── Coach approval card ────────────────────────────────────────────────── */
.hd-prog-exec__feed-approval-card {
    border: 1px solid #bbf7d0;
    border-left: 4px solid #16a34a;
    border-radius: 10px;
    background: #f0fdf4;
    padding: 10px 14px;
    margin-bottom: 8px;
}
.hd-prog-exec__feed-approval-header {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.hd-prog-exec__feed-approval-badge {
    font-size: 13px;
    font-weight: 700;
    color: #15803d;
    flex-shrink: 0;
}
.hd-prog-exec__feed-approval-note {
    margin: 8px 0 0;
    font-size: 13px;
    color: #166534;
    line-height: 1.6;
}

/* ── Approve button (on submission card) ────────────────────────────────── */
.hd-prog-exec__feed-approve-btn {
    padding: 3px 10px;
    border: 1px solid #86efac;
    border-radius: 6px;
    background: #f0fdf4;
    color: #15803d;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    margin-left: 4px;
}
.hd-prog-exec__feed-approve-btn:hover:not(:disabled) {
    background: #dcfce7;
    border-color: #4ade80;
}
.hd-prog-exec__feed-approve-btn.is-approved,
.hd-prog-exec__feed-approve-btn:disabled {
    opacity: 0.65;
    cursor: default;
}

/* ── PG-10-017: Welcome / Onboarding Banner ──────────────────────────────── */
.hd-prog-welcome-banner {
    margin-bottom: 20px;
    border: 1px solid #ddd6fe;
    border-left: 4px solid #7c3aed;
    border-radius: 10px;
    background: #faf5ff;
    overflow: hidden;
}

.hd-prog-welcome-banner__header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 16px;
    cursor: default;
}

.hd-prog-welcome-banner__icon {
    font-size: 18px;
    flex-shrink: 0;
}

.hd-prog-welcome-banner__title {
    flex: 1;
    font-size: 14px;
    font-weight: 700;
    color: #4c1d95;
    line-height: 1.3;
}

.hd-prog-welcome-banner__toggle {
    flex-shrink: 0;
    padding: 3px 10px;
    border: 1px solid #c4b5fd;
    border-radius: 6px;
    background: transparent;
    color: #6d28d9;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
    white-space: nowrap;
}

.hd-prog-welcome-banner__toggle:hover {
    background: #ede9fe;
}

.hd-prog-welcome-banner__body {
    padding: 0 16px 16px;
    border-top: 1px solid #ede9fe;
}

.hd-prog-welcome-banner__content {
    padding-top: 14px;
    font-size: 14px;
    color: #334155;
    line-height: 1.75;
}

.hd-prog-welcome-banner__content p {
    margin: 0 0 10px;
}

.hd-prog-welcome-banner__content p:last-child {
    margin-bottom: 0;
}

.hd-prog-welcome-banner__dismiss {
    display: inline-block;
    margin-top: 14px;
    padding: 7px 18px;
    border: none;
    border-radius: 8px;
    background: #7c3aed;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s;
}

.hd-prog-welcome-banner__dismiss:hover {
    background: #6d28d9;
}

.hd-prog-welcome-banner--collapsed .hd-prog-welcome-banner__body {
    display: none;
}

/* ── Workshop Landing (99/100) ──────────────────────────────────────────────── */
.hd-workshop-landing {
    margin: 0 0 16px;
    padding: 16px 18px 14px;
    background: linear-gradient(135deg, #eff6ff 0%, #f5f3ff 100%);
    border: 1px solid #c7d2fe;
    border-radius: 12px;
}
/* live 阶段：战斗模式沉浸式主题 */
.hd-workshop-landing--live {
    background: linear-gradient(135deg, #0c1a2e 0%, #0e2440 60%, #0f3460 100%);
    border-color: #1e40af;
    color: #e2e8f0;
}
.hd-workshop-landing--live .hd-wl-msg,
.hd-workshop-landing--live .hd-wl-peer,
.hd-workshop-landing--live .hd-wl-session-date {
    color: #94a3b8;
}
/* replay 阶段：琥珀复盘主题 */
.hd-workshop-landing--replay {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border-color: #fcd34d;
}
.hd-workshop-landing__header {
    margin-bottom: 10px;
}
.hd-wl-stage-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .02em;
}
.hd-wl-stage-enrollment { background: #dbeafe; color: #1d4ed8; }
.hd-wl-stage-confirmed  { background: #dcfce7; color: #15803d; }
.hd-wl-stage-live       { background: #dc2626; color: #fff; animation: hd-pulse 1.2s ease infinite; letter-spacing: .05em; }
.hd-wl-stage-replay     { background: #d97706; color: #fff; }
.hd-workshop-landing--live .hd-wl-stage-live { background: rgba(239,68,68,.25); color: #fca5a5; border: 1px solid rgba(252,165,165,.4); }
.hd-wl-stage-completed  { background: #f1f5f9; color: #475569; }

/* Countdown */
.hd-wl-countdown {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 12px;
}
.hd-wl-countdown__label {
    font-size: 11px;
    font-weight: 600;
    color: #6366f1;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.hd-wl-countdown__units {
    display: flex;
    align-items: flex-end;
    gap: 6px;
}
.hd-wl-countdown__unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
}
.hd-wl-countdown__n {
    display: inline-block;
    min-width: 38px;
    padding: 6px 4px;
    background: #1e1b4b;
    color: #fff;
    font-size: 22px;
    font-weight: 800;
    line-height: 1;
    text-align: center;
    border-radius: 6px;
    font-variant-numeric: tabular-nums;
}
.hd-wl-countdown__u {
    font-size: 10px;
    color: #6366f1;
    font-weight: 600;
}
.hd-wl-countdown__sep {
    font-size: 20px;
    font-weight: 800;
    color: #818cf8;
    line-height: 1.6;
}
.hd-wl-countdown__date {
    font-size: 12px;
    color: #4b5563;
    margin: 4px 0 0;
}
.hd-wl-session-date {
    font-size: 12px;
    color: #4b5563;
    margin: 0 0 10px;
}

/* Seat bar */
.hd-wl-seats {
    margin-bottom: 10px;
}
.hd-wl-seats__bar {
    height: 8px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 4px;
    max-width: 260px;
}
.hd-wl-seats__fill {
    height: 100%;
    border-radius: 999px;
    transition: width .4s ease;
}
.hd-wl-seats__label {
    font-size: 12px;
    color: #374151;
    margin: 0;
}

/* Peer count + misc */
.hd-wl-peer {
    font-size: 12px;
    color: #374151;
    margin: 0 0 8px;
}
.hd-wl-msg {
    font-size: 13px;
    color: #1e293b;
    margin: 0 0 8px;
    line-height: 1.5;
}
.hd-wl-risk {
    font-size: 11px;
    color: #16a34a;
    margin: 0;
    font-weight: 500;
}

/* Session entry CTA button */
.hd-wl-session-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 10px 0 4px;
    padding: 9px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: opacity .15s;
}
.hd-wl-session-cta:hover { opacity: .85; }
.hd-wl-session-cta--async {
    background: #ede9fe;
    color: #5b21b6;
    border: 1.5px solid #c4b5fd;
}
.hd-wl-session-cta--live {
    background: #1e1b4b;
    color: #fff;
    border: 1.5px solid #1e1b4b;
}
/* live 阶段大战斗按钮 */
.hd-wl-session-cta--battle {
    display: flex;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
    padding: 18px 24px;
    margin: 14px 0 6px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.03em;
    background: linear-gradient(135deg, #0891b2 0%, #06b6d4 60%, #22d3ee 100%);
    color: #fff;
    border: none;
    text-decoration: none;
    box-shadow: 0 0 0 0 rgba(8,145,178,.6);
    animation: hd-battle-pulse 2s ease-in-out infinite;
    cursor: pointer;
}
.hd-wl-session-cta--battle:hover { opacity: .9; transform: translateY(-1px); }
@keyframes hd-battle-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(8,145,178,.55); }
    50%       { box-shadow: 0 0 0 10px rgba(8,145,178,0); }
}
/* live 阶段无链接时的提示框 */
.hd-wl-session-cta--pending {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 14px 18px;
    margin: 14px 0 6px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    background: #f0fdfa;
    color: #0e7490;
    border: 1.5px dashed #67e8f9;
    text-align: center;
    cursor: default;
}
.hd-wl-session-cta__icon { font-size: 16px; line-height: 1; }

/* ICS calendar download button */
.hd-wl-ics-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin: 6px 0 2px;
    padding: 7px 14px;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    color: #374151;
    background: #f3f4f6;
    border: 1.5px solid #d1d5db;
    cursor: pointer;
    transition: background .15s, border-color .15s;
}
.hd-wl-ics-btn:hover { background: #e5e7eb; border-color: #9ca3af; }

/* Replay button (replay stage external link) */
.hd-wl-replay-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin: 8px 0 2px;
    padding: 8px 16px;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    color: #fff;
    background: #2563eb;
    border: 1.5px solid #2563eb;
    cursor: pointer;
    transition: background .15s, border-color .15s;
}
.hd-wl-replay-btn:hover { background: #1d4ed8; border-color: #1d4ed8; color: #fff; }

/* NPS satisfaction form */
.hd-wl-nps {
    margin: 14px 0 4px;
    padding: 14px 16px;
    background: #faf5ff;
    border: 1px solid #ddd6fe;
    border-radius: 10px;
}
.hd-wl-nps__label {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 600;
    color: #4c1d95;
}
.hd-wl-nps__stars {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
}
.hd-wl-nps__stars span {
    font-size: 26px;
    color: #d1d5db;
    cursor: pointer;
    line-height: 1;
    transition: color .1s;
    user-select: none;
}
.hd-wl-nps__stars span.active { color: #f59e0b; }
.hd-wl-nps__stars span:hover,
.hd-wl-nps__stars span:hover ~ span { color: #fbbf24; }
.hd-wl-nps__textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 8px 10px;
    border: 1px solid #ddd6fe;
    border-radius: 7px;
    font-size: 13px;
    resize: vertical;
    background: #fff;
    color: #1e1b4b;
    margin-bottom: 8px;
}
.hd-wl-nps__submit {
    padding: 7px 18px;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    background: #7c3aed;
    border: none;
    cursor: pointer;
    transition: background .15s;
}
.hd-wl-nps__submit:hover { background: #6d28d9; }
.hd-wl-nps__submit:disabled { opacity: .6; cursor: default; }
.hd-wl-nps__thanks {
    margin: 4px 0 0;
    font-size: 14px;
    font-weight: 600;
    color: #16a34a;
}

/* Participant avatar group */
.hd-wl-avatars {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 8px 0 4px;
    flex-wrap: wrap;
}
.hd-wl-avatars__img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,.12);
    object-fit: cover;
    margin-left: -6px;
    background: #e5e7eb;
}
.hd-wl-avatars__img:first-child { margin-left: 0; }
.hd-wl-avatars__extra {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e0e7ff;
    color: #3730a3;
    font-size: 11px;
    font-weight: 700;
    margin-left: -6px;
    border: 2px solid #fff;
}
.hd-wl-avatars__label {
    font-size: 12px;
    color: #6b7280;
    margin-left: 6px;
}
.hd-wl-avatars--guest { margin-top: 6px; }

/* Pre-live content lock notice */
.hd-prog-exec__prelive-lock {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 32px 24px;
    margin: 16px 0;
    background: #f8f8fc;
    border: 1.5px dashed #c7c4e0;
    border-radius: 12px;
    text-align: center;
}
.hd-prog-exec__prelive-lock__icon {
    font-size: 28px;
    line-height: 1;
}
.hd-prog-exec__prelive-lock__msg {
    margin: 0;
    font-size: 14px;
    color: #6b7280;
    line-height: 1.6;
}

/* PG-10-028: Phase Gate — step dependency lock (黄黑阻卡感) */
.hd-prog-exec__step-item[data-locked="1"] {
    opacity: 0.5;
    cursor: not-allowed;
}
.hd-prog-exec__step-item[data-locked="1"]:hover {
    background: transparent;
}
.hd-prog-exec__step-item[data-locked="1"] .hd-prog-exec__step-dot {
    background: #fef3c7;
    border-color: #fbbf24;
    color: #92400e;
    font-size: 12px;
}
/* Gate lock content card */
.hd-step-gate-lock-wrap {
    position: relative;
    min-height: 300px;
    margin: 16px 0;
    overflow: hidden;
    border-radius: 12px;
}
.hd-step-gate-lock__blur-bg {
    filter: blur(5px);
    opacity: 0.35;
    pointer-events: none;
    user-select: none;
}
.hd-step-gate-lock__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.hd-step-gate-lock__card {
    background: #1c1a14;
    color: #f5f0d8;
    border: 2px solid #fbbf24;
    border-radius: 14px;
    padding: 28px 32px;
    max-width: 400px;
    width: 100%;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.hd-step-gate-lock__card-icon {
    font-size: 34px;
    line-height: 1;
    margin-bottom: 14px;
}
.hd-step-gate-lock__card-title {
    font-size: 16px;
    font-weight: 700;
    color: #fbbf24;
    margin: 0 0 10px;
}
.hd-step-gate-lock__card-msg {
    font-size: 13px;
    color: #e5e0cc;
    line-height: 1.65;
    margin: 0;
}

/* Workshop toast celebration */
.hd-workshop-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    padding: 12px 18px;
    background: #1e1b4b;
    color: #fff;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(0,0,0,.25);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .3s ease, transform .3s ease;
    pointer-events: none;
}
.hd-workshop-toast--show {
    opacity: 1;
    transform: translateY(0);
}
.hd-workshop-toast--milestone {
    background: #065f46;
}

/* ── Challenge: confetti particles ─────────────────────────────────────────── */
@keyframes hd-confetti-fall {
    0%   { transform: translateY(-10px) rotate(0deg);   opacity: 1; }
    100% { transform: translateY(105vh) rotate(900deg); opacity: 0; }
}
.hd-confetti-wrap {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 10000;
    overflow: hidden;
}
.hd-confetti-piece {
    position: absolute;
    top: -10px;
    animation: hd-confetti-fall linear forwards;
}

/* ── Challenge: submission celebration toast ────────────────────────────────── */
.hd-ch-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    padding: 13px 20px;
    background: linear-gradient(135deg, #f97316, #f59e0b);
    color: #fff;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 8px 28px rgba(249,115,22,.35);
    opacity: 0;
    transform: translateY(14px) scale(.95);
    transition: opacity .3s ease, transform .3s ease;
    pointer-events: none;
    max-width: 320px;
}
.hd-ch-toast--show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* ── Challenge: completion certificate overlay ──────────────────────────────── */
.hd-ch-cert-overlay {
    position: fixed;
    inset: 0;
    z-index: 10001;
    background: rgba(0,0,0,.55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity .35s ease;
}
.hd-ch-cert-overlay.is-visible { opacity: 1; }

.hd-ch-cert-card {
    position: relative;
    background: linear-gradient(160deg, #fffbeb 0%, #fef3c7 60%, #fef9c3 100%);
    border: 2px solid #fcd34d;
    border-radius: 20px;
    padding: 40px 36px 32px;
    max-width: 420px;
    width: 100%;
    text-align: center;
    box-shadow: 0 24px 64px rgba(0,0,0,.22);
    transform: translateY(20px) scale(.97);
    transition: transform .35s cubic-bezier(.22,.61,.36,1);
}
.hd-ch-cert-overlay.is-visible .hd-ch-cert-card {
    transform: translateY(0) scale(1);
}

.hd-ch-cert-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    border: none;
    font-size: 22px;
    line-height: 1;
    color: #92400e;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
}
.hd-ch-cert-close:hover { background: rgba(0,0,0,.06); }

.hd-ch-cert-trophy { font-size: 56px; line-height: 1; margin-bottom: 6px; }
.hd-ch-cert-kicker { font-size: 12px; font-weight: 600; color: #b45309; letter-spacing: .06em; text-transform: uppercase; margin: 0 0 8px; }
.hd-ch-cert-name   { font-size: 26px; font-weight: 800; color: #1c1917; margin: 0 0 6px; }
.hd-ch-cert-program{ font-size: 15px; color: #44403c; margin: 0 0 4px; font-weight: 600; }
.hd-ch-cert-stat   { font-size: 13px; color: #78716c; margin: 0 0 4px; }
.hd-ch-cert-date   { font-size: 13px; color: #78716c; margin: 0 0 18px; }

.hd-ch-cert-seal {
    display: inline-block;
    background: #ecfdf5;
    border: 1px solid #6ee7b7;
    color: #065f46;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.hd-ch-cert-actions {
    display: flex;
    gap: 10px;
}
.hd-ch-cert-save-btn {
    flex: 1;
    padding: 12px 8px;
    background: linear-gradient(135deg, #f97316, #f59e0b);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: opacity .2s;
}
.hd-ch-cert-save-btn:hover { opacity: .88; }
.hd-ch-cert-save-btn:disabled { opacity: .6; cursor: wait; }
.hd-ch-cert-share-btn {
    flex: 1;
    padding: 12px 8px;
    background: #fff;
    color: #92400e;
    font-size: 15px;
    font-weight: 700;
    border: 2px solid #fcd34d;
    border-radius: 12px;
    cursor: pointer;
    transition: background .2s;
}
.hd-ch-cert-share-btn:hover { background: #fef9c3; }
.hd-ch-cert-share-btn:disabled { opacity: .6; cursor: wait; }

/* ── Challenge: "N 人已打卡" social proof avatar wall ───────────────────────── */
.hd-ch-checkin-wall {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 10px;
}
.hd-ch-wall-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #fff;
    margin-left: -8px;
    object-fit: cover;
    box-shadow: 0 1px 3px rgba(0,0,0,.15);
}
.hd-ch-wall-avatar:first-child { margin-left: 0; }
.hd-ch-wall-extra {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #e0f2fe;
    color: #0369a1;
    font-size: 10px;
    font-weight: 700;
    border: 2px solid #fff;
    margin-left: -8px;
}
.hd-ch-wall-label {
    font-size: 12px;
    font-weight: 600;
    color: #0891b2;
    margin-left: 6px;
    white-space: nowrap;
}

/* ── Challenge: program-level completers showcase wall ──────────────────────── */
.hd-ch-completers-wrap {
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-bottom: 1px solid #f1f5f9;
    background: #f8fafc;
    font-size: 13px;
}
.hd-ch-completers-avatars {
    display: inline-flex;
    align-items: center;
}
.hd-ch-completers-avatars .hd-ch-wall-avatar { margin-left: -8px; }
.hd-ch-completers-avatars .hd-ch-wall-avatar:first-child { margin-left: 0; }
.hd-ch-completers-label {
    color: #475569;
    font-size: 13px;
    font-weight: 500;
}
.hd-ch-completers-label strong { color: #0891b2; }

/* ── P2-B: Public accountability feed ────────────────────────────────────── */
.hd-ch-public-feed-wrap { padding: 10px 16px; border-bottom: 1px solid #f1f5f9; background: #f8fafc; }
.hd-ch-feed-header { font-size: 12px; font-weight: 700; color: #0891b2; margin-bottom: 8px; }
.hd-ch-feed-item { display: flex; align-items: flex-start; gap: 8px; padding: 6px 0; border-bottom: 1px solid #f1f5f9; font-size: 12px; color: #475569; }
.hd-ch-feed-item:last-child { border-bottom: none; }
.hd-ch-feed-avatar { width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0; }
.hd-ch-feed-name { font-weight: 600; color: #0f172a; }

/* ── P2-B: Submit form public toggle ─────────────────────────────────────── */
.hd-prog-submit-zone__public-toggle { display: flex; align-items: center; gap: 7px; padding: 8px 0 4px; font-size: 12px; color: #475569; cursor: pointer; user-select: none; }
.hd-prog-submit-zone__public-toggle input[type="checkbox"] { width: 15px; height: 15px; accent-color: #0891b2; cursor: pointer; flex-shrink: 0; }

/* ── P3-A: Step share button ─────────────────────────────────────────────── */
.hd-prog-submit-zone__share-btn { margin-top: 10px; padding: 7px 16px; background: #0891b2; color: #fff; border: none; border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer; }
.hd-prog-submit-zone__share-btn:hover { background: #0e7490; }
.hd-prog-submit-zone__share-row { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.hd-prog-submit-zone__save-btn { padding: 7px 14px; background: #f1f5f9; color: #475569; border: 1px solid #e2e8f0; border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer; }
.hd-prog-submit-zone__save-btn:hover { background: #e2e8f0; }
.hd-prog-submit-zone__share-link { margin-left: 8px; font-size: 12px; color: #0891b2; text-decoration: none; font-weight: 600; }
.hd-prog-submit-zone__share-link:hover { text-decoration: underline; }

/* ── P3-B: Peer comments in public feed ─────────────────────────────────── */
.hd-ch-feed-actions { margin-top: 4px; }
.hd-ch-feed-comment-btn { background: none; border: 1px solid #e2e8f0; border-radius: 6px; padding: 2px 8px; font-size: 11px; color: #64748b; cursor: pointer; }
.hd-ch-feed-comment-btn:hover { background: #f1f5f9; }
.hd-ch-peer-comments { margin-top: 6px; padding: 6px 8px; background: #f8fafc; border-radius: 6px; border: 1px solid #e2e8f0; overflow: hidden; width: 100%; box-sizing: border-box; }
.hd-ch-peer-comment { display: flex; align-items: flex-start; gap: 6px; font-size: 11px; color: #475569; padding: 4px 0; min-width: 0; }
.hd-ch-peer-avatar { width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0; margin-top: 1px; }
.hd-ch-peer-name { font-weight: 600; color: #0f172a; }
.hd-ch-peer-compose { display: flex; gap: 6px; margin-top: 6px; width: 100%; box-sizing: border-box; min-width: 0; }
.hd-ch-peer-input { flex: 1; min-width: 0; border: 1px solid #e2e8f0; border-radius: 6px; padding: 4px 8px; font-size: 12px; color: #0f172a; outline: none; width: 0; }
.hd-ch-peer-input:focus { border-color: #0891b2; }
.hd-ch-peer-submit { flex-shrink: 0; padding: 4px 10px; background: #0891b2; color: #fff; border: none; border-radius: 6px; font-size: 12px; cursor: pointer; white-space: nowrap; }

/* ── P3-C: Invite widget ─────────────────────────────────────────────────── */
.hd-ch-invite-wrap { margin: 12px 0; }
.hd-ch-invite-card { background: linear-gradient(135deg, #e0f2fe 0%, #f0fdf4 100%); border: 1px solid #bae6fd; border-radius: 10px; padding: 12px 14px; }
.hd-ch-invite-title { font-size: 13px; font-weight: 700; color: #0e7490; margin-bottom: 4px; }
.hd-ch-invite-count { font-size: 12px; color: #475569; margin-bottom: 6px; }
.hd-ch-invite-row { display: flex; gap: 6px; align-items: center; }
.hd-ch-invite-input { flex: 1; border: 1px solid #bae6fd; border-radius: 6px; padding: 5px 8px; font-size: 11px; color: #0f172a; background: #fff; min-width: 0; }
.hd-ch-invite-copy-btn { padding: 5px 12px; background: #0891b2; color: #fff; border: none; border-radius: 6px; font-size: 12px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.hd-ch-invite-copy-btn:hover { background: #0e7490; }

/* ── Seconds unit tweak for enrolled countdown ─────────────────────────────── */
.hd-wl-countdown__n--s {
    min-width: 34px;
    font-size: 18px;
}

/* ── Guest-facing compact Workshop countdown (program listing cards) ────────── */
.hd-guest-cd {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 3px 4px;
    padding: 7px 10px;
    margin: 8px 0 4px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.3;
}
.hd-guest-cd__label {
    font-size: 11px;
    color: #2563eb;
    font-weight: 700;
    margin-right: 4px;
    white-space: nowrap;
}
.hd-guest-cd__num {
    display: inline-block;
    min-width: 20px;
    padding: 1px 4px;
    background: #1e40af;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    text-align: center;
    border-radius: 4px;
    font-variant-numeric: tabular-nums;
}
.hd-guest-cd__unit {
    font-size: 10px;
    color: #3b82f6;
    font-weight: 600;
    margin-right: 1px;
}
.hd-guest-cd__sep {
    color: #93c5fd;
    font-weight: 700;
    margin: 0 1px;
}
/* Detail-page variant: slightly larger and block-level */
.hd-guest-cd--detail {
    margin: 0 0 16px;
    padding: 10px 14px;
    font-size: 14px;
    background: linear-gradient(135deg, #eff6ff 0%, #f5f3ff 100%);
    border-color: #a5b4fc;
}
.hd-guest-cd--detail .hd-guest-cd__label {
    font-size: 12px;
    width: 100%;
    margin-bottom: 6px;
    color: #4f46e5;
}
.hd-guest-cd--detail .hd-guest-cd__num {
    font-size: 16px;
    min-width: 26px;
    padding: 3px 6px;
    background: #1e1b4b;
}
.hd-guest-cd--detail .hd-guest-cd__unit {
    font-size: 11px;
    color: #6366f1;
}
.hd-guest-cd__date {
    font-size: 11px;
    color: #6366f1;
    width: 100%;
    margin-top: 5px;
    order: 99;
}
.hd-guest-cd__seat {
    font-size: 11px;
    font-weight: 600;
    width: 100%;
    margin-top: 3px;
    order: 100;
}
/* Seconds flash on tick */
@keyframes hd-gcd-flash {
    0%   { background: #4f46e5; color: #fff; }
    100% { background: #1e1b4b; color: #fff; }
}
.hd-gcd-s--tick {
    animation: hd-gcd-flash 0.28s ease-out;
}

/* Expired: show 开场中 banner */
.hd-guest-cd--live {
    background: #fef2f2;
    border-color: #fca5a5;
    justify-content: center;
}
.hd-guest-cd__live {
    font-size: 13px;
    font-weight: 700;
    color: #dc2626;
    letter-spacing: .02em;
}

/* Mobile: stack countdown above buttons on narrow screens */
@media (max-width: 480px) {
    .hd-guest-cd--detail {
        width: 100%;
        margin-bottom: 12px;
    }
    .hd-guest-cd__num {
        font-size: 13px;
        min-width: 22px;
        padding: 2px 4px;
    }
}

/* ── Workshop legacy card (kept for backwards compat) ──────────────────────── */
.hd-workshop-narrative-card {
    margin: 0 0 14px;
    border: 1px solid #c7d2fe;
    background: linear-gradient(135deg, #eef2ff 0%, #f8fafc 72%);
    border-radius: 14px;
    padding: 14px 16px;
}

.hd-workshop-narrative-card__kicker {
    margin: 0 0 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #4338ca;
}

.hd-workshop-narrative-card__title {
    margin: 0 0 10px;
    font-size: 17px;
    line-height: 1.35;
    color: #0f172a;
}

.hd-workshop-narrative-card__list {
    margin: 0;
    padding-left: 18px;
    color: #334155;
    font-size: 13px;
    line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Cohort Narrative Card  (.hd-cohort-narrative)
   ═══════════════════════════════════════════════════════════════════════════ */
.hd-cohort-narrative {
    margin: 0 0 14px;
    padding: 14px 16px;
    background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
    border: 1px solid #c4b5fd;
    border-radius: 12px;
}
.hd-cn-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}
.hd-cn-phase-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    background: #7c3aed;
    color: #fff;
}
.hd-cn-mode-badge {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    background: #ede9fe;
    color: #5b21b6;
    border: 1px solid #c4b5fd;
}
.hd-cn-schedule {
    margin: 0 0 6px;
    font-size: 12px;
    color: #4c1d95;
    font-weight: 600;
}
.hd-cn-hint {
    margin: 0;
    font-size: 12px;
    color: #5b21b6;
}

/* ── COH-05: Social proof peer wall ──────────────────────────────────── */
.hd-cn-social-proof {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    padding: 8px 10px;
    background: rgba(109, 40, 217, .06);
    border-radius: 8px;
}
.hd-cn-peer-avatars {
    display: flex;
    gap: 2px;
    flex-wrap: wrap;
}
.hd-cn-peer-avatar {
    font-size: 18px;
    line-height: 1;
    filter: grayscale(0.3);
}
.hd-cn-peer-label {
    font-size: 12px;
    color: #5b21b6;
}
.hd-cn-peer-label strong {
    font-weight: 800;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Bootcamp Narrative Card  (.hd-bootcamp-narrative)
   ═══════════════════════════════════════════════════════════════════════════ */
.hd-bootcamp-narrative {
    margin: 0 0 14px;
    padding: 14px 16px;
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    border: 1px solid #fdba74;
    border-radius: 12px;
}
.hd-bn-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}
.hd-bn-day-badge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    background: #ea580c;
    color: #fff;
    letter-spacing: .02em;
}
.hd-bn-mode-badge {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    background: #ffedd5;
    color: #9a3412;
    border: 1px solid #fdba74;
}
.hd-bn-progress {
    margin: 0 0 8px;
}
.hd-bn-progress__bar {
    height: 6px;
    background: #fed7aa;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 4px;
    max-width: 240px;
}
.hd-bn-progress__fill {
    height: 100%;
    background: linear-gradient(90deg, #ea580c, #f97316);
    border-radius: 999px;
    transition: width .4s ease;
}
.hd-bn-progress__label {
    margin: 0;
    font-size: 11px;
    color: #7c2d12;
    font-weight: 600;
}
.hd-bn-streak-badge {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    background: #fff7ed;
    color: #c2410c;
    border: 1px solid #fb923c;
    margin-left: auto;
}
.hd-bn-sla {
    margin: 8px 0 0;
    font-size: 12px;
    color: #9a3412;
}

/* ── Bootcamp completion certificate banner ───────────────────────────── */
.hd-cert-banner {
    margin: 12px 0 4px;
    padding: 20px 18px 16px;
    background: linear-gradient( 135deg, #fef9c3 0%, #fef3c7 60%, #fde68a 100% );
    border: 1.5px solid #f59e0b;
    border-radius: 14px;
    text-align: center;
}
.hd-cert-banner__trophy {
    font-size: 44px;
    line-height: 1;
    margin-bottom: 6px;
}
.hd-cert-banner__title {
    font-size: 18px;
    font-weight: 800;
    color: #78350f;
    margin: 0 0 4px;
}
.hd-cert-banner__prog {
    font-size: 13px;
    color: #92400e;
    margin: 0 0 12px;
}
.hd-cert-banner__stats {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 10px;
}
.hd-cert-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
}
.hd-cert-stat strong {
    font-size: 22px;
    font-weight: 900;
    color: #78350f;
    line-height: 1;
}
.hd-cert-stat em {
    font-size: 10px;
    font-style: normal;
    color: #92400e;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.hd-cert-stat--gold strong { color: #d97706; }
.hd-cert-streak {
    display: inline-block;
    padding: 3px 10px;
    background: #fef3c7;
    border: 1px solid #fcd34d;
    border-radius: 99px;
    font-size: 12px;
    font-weight: 700;
    color: #b45309;
    margin-bottom: 12px;
}
.hd-cert-banner__actions {
    margin-top: 4px;
}
.hd-cert-copy-btn {
    display: inline-block;
    padding: 8px 20px;
    background: #f59e0b;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: opacity .2s;
}
.hd-cert-copy-btn:hover { opacity: .85; }

/* ── Day-axis timeline ─────────────────────────────────────────────────── */
.hd-bn-timeline {
    display: grid;
    grid-template-columns: repeat( auto-fill, minmax( 120px, 1fr ) );
    gap: 6px;
    margin: 8px 0;
}
.hd-bn-timeline--compact {
    grid-template-columns: repeat( auto-fill, minmax( 44px, 1fr ) );
}
.hd-bn-day-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 7px 6px 6px;
    border-radius: 9px;
    border: 1px solid transparent;
    text-align: center;
    font-size: 11px;
    transition: transform .15s ease, box-shadow .15s ease;
    cursor: default;
}
.hd-bn-day-cell--done {
    background: #f0fdf4;
    border-color: #86efac;
}
.hd-bn-day-cell--active {
    background: #fff7ed;
    border-color: #fb923c;
    box-shadow: 0 0 0 2px rgba(249,115,22,.25);
    transform: translateY(-1px);
}
.hd-bn-day-cell--locked {
    background: #f1f5f9;
    border-color: #e2e8f0;
    opacity: .65;
}
.hd-bn-day-cell--pending {
    background: #fafaf9;
    border-color: #e7e5e4;
}
.hd-bn-day-cell__num {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .02em;
    color: #a8a29e;
    text-transform: none;
}
.hd-bn-day-cell--active .hd-bn-day-cell__num { color: #ea580c; }
.hd-bn-day-cell--done  .hd-bn-day-cell__num  { color: #16a34a; }
.hd-bn-day-cell__icon {
    font-size: 15px;
    line-height: 1;
}
.hd-bn-day-cell__title {
    font-size: 10px;
    font-weight: 600;
    color: #57534e;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
    line-height: 1.3;
}
.hd-bn-day-cell--done  .hd-bn-day-cell__title { color: #15803d; }
.hd-bn-day-cell--locked .hd-bn-day-cell__title { color: #a8a29e; }
/* Compact pill variant */
.hd-bn-day-cell--compact {
    flex-direction: row;
    gap: 2px;
    padding: 4px 5px;
}
.hd-bn-day-cell--compact .hd-bn-day-cell__icon { font-size: 11px; }
.hd-bn-day-cell--compact .hd-bn-day-cell__num  { font-size: 9px; }

@media (max-width: 480px) {
    .hd-bn-timeline {
        grid-template-columns: repeat( auto-fill, minmax( 80px, 1fr ) );
    }
    .hd-bn-timeline--compact {
        grid-template-columns: repeat( auto-fill, minmax( 38px, 1fr ) );
    }
}

.hd-workshop-goal-card {
    margin: 0 0 14px;
    border: 1px solid #fde68a;
    background: linear-gradient(135deg, #fffbeb 0%, #fff 72%);
    border-radius: 14px;
    padding: 12px 14px;
}

.hd-workshop-goal-card__kicker {
    margin: 0 0 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #92400e;
}

.hd-workshop-goal-card__main {
    margin: 0 0 6px;
    font-size: 15px;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.45;
}

.hd-workshop-goal-card__meta {
    margin: 0 0 4px;
    font-size: 12px;
    color: #334155;
}

.hd-workshop-goal-card__tip {
    margin: 0;
    font-size: 12px;
    color: #475569;
}

/* ═══════════════════════════════════════════════════════════════════════════
   hd-prog-exec__task-content — Rich body_html rendering
   Covers: tables (both raw HTML and wp-block-table), blockquotes,
           headings, callout boxes, and time/deliverable meta rows.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── Base prose styles ──────────────────────────────────────────────────── */
.hd-prog-exec__task-content {
    font-size: 14px;
    line-height: 1.75;
    color: #1e293b;
}

.hd-prog-exec__task-content h2 {
    font-size: 17px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid #ede9fe;
    letter-spacing: -0.01em;
}

.hd-prog-exec__task-content h3 {
    font-size: 14px;
    font-weight: 700;
    color: #4c1d95;
    margin: 22px 0 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.hd-prog-exec__task-content h3::before {
    content: '';
    display: inline-block;
    width: 3px;
    height: 14px;
    background: #7c3aed;
    border-radius: 2px;
    flex-shrink: 0;
}

.hd-prog-exec__task-content p {
    margin: 0 0 10px;
}

.hd-prog-exec__task-content ul,
.hd-prog-exec__task-content ol {
    margin: 0 0 12px;
    padding-left: 20px;
}

.hd-prog-exec__task-content li {
    margin-bottom: 5px;
}

.hd-prog-exec__task-content hr {
    border: none;
    border-top: 1px solid #e2e8f0;
    margin: 20px 0;
}

/* ─── Tables (both raw <table> and .wp-block-table) ─────────────────────── */
.hd-prog-exec__task-content table,
.hd-prog-exec__task-content .wp-block-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin: 8px 0 16px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.hd-prog-exec__task-content table thead th,
.hd-prog-exec__task-content .wp-block-table table thead th {
    background: #f1f5f9;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #475569;
    padding: 9px 12px;
    text-align: left;
    border-bottom: 2px solid #e2e8f0;
}

.hd-prog-exec__task-content table tbody td,
.hd-prog-exec__task-content .wp-block-table table tbody td {
    padding: 8px 12px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: top;
    color: #334155;
}

.hd-prog-exec__task-content table tbody tr:last-child td,
.hd-prog-exec__task-content .wp-block-table table tbody tr:last-child td {
    border-bottom: none;
}

.hd-prog-exec__task-content table tbody tr:nth-child(even) td,
.hd-prog-exec__task-content .wp-block-table table tbody tr:nth-child(even) td {
    background: #fafbff;
}

.hd-prog-exec__task-content table tbody tr:hover td,
.hd-prog-exec__task-content .wp-block-table table tbody tr:hover td {
    background: #f5f3ff;
}

/* ─── Blockquote — Operator法则 callout ────────────────────────────────── */
.hd-prog-exec__task-content blockquote {
    margin: 16px 0;
    padding: 12px 16px 12px 20px;
    background: linear-gradient(135deg, #faf5ff 0%, #f0fdf4 100%);
    border-left: 4px solid #7c3aed;
    border-radius: 0 8px 8px 0;
    font-style: normal;
    font-size: 13px;
    color: #4c1d95;
    line-height: 1.65;
}

.hd-prog-exec__task-content blockquote em {
    font-style: italic;
    color: #5b21b6;
}

/* ─── Styled callout boxes via data-callout attribute ───────────────────── */
/* Usage in body_html: <div class="hd-callout hd-callout--tip"> */
.hd-prog-exec__task-content .hd-callout {
    padding: 12px 16px;
    border-radius: 8px;
    margin: 12px 0;
    font-size: 13px;
    line-height: 1.65;
}

.hd-prog-exec__task-content .hd-callout--tip {
    background: #f0fdf4;
    border-left: 3px solid #22c55e;
    color: #166534;
}

.hd-prog-exec__task-content .hd-callout--warning {
    background: #fffbeb;
    border-left: 3px solid #f59e0b;
    color: #92400e;
}

.hd-prog-exec__task-content .hd-callout--danger {
    background: #fef2f2;
    border-left: 3px solid #ef4444;
    color: #991b1b;
}

.hd-prog-exec__task-content .hd-callout--info {
    background: #eff6ff;
    border-left: 3px solid #3b82f6;
    color: #1e40af;
}

.hd-prog-exec__task-content .hd-callout--operator {
    background: linear-gradient(135deg, #faf5ff, #f0fdf4);
    border-left: 3px solid #7c3aed;
    color: #4c1d95;
    font-weight: 500;
}

/* Callout title */
.hd-prog-exec__task-content .hd-callout__title {
    font-weight: 700;
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ─── Gate condition block ──────────────────────────────────────────────── */
.hd-prog-exec__task-content .hd-gate {
    margin-top: 20px;
    padding: 12px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-top: 3px solid #7c3aed;
    border-radius: 0 0 8px 8px;
    font-size: 13px;
    color: #374151;
}

/* ─── Resource card links ───────────────────────────────────────────────── */
.hd-prog-exec__task-content .hd-resource-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 8px;
    text-decoration: none;
    color: #334155;
    font-size: 13px;
    font-weight: 500;
    transition: border-color 0.15s, background 0.15s;
    background: #fff;
}

.hd-prog-exec__task-content .hd-resource-card:hover {
    border-color: #7c3aed;
    background: #faf5ff;
    color: #4c1d95;
}

/* ─── Case study / reference example sections ───────────────────────────── */
.hd-prog-exec__task-content .hd-case-study {
    background: #fafbff;
    border: 1px solid #c4b5fd;
    border-radius: 10px;
    padding: 16px 18px;
    margin: 16px 0;
}

.hd-prog-exec__task-content .hd-case-study__label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #7c3aed;
    margin-bottom: 6px;
    display: block;
}

.hd-prog-exec__task-content .hd-case-study__title {
    font-size: 13px;
    font-weight: 700;
    color: #1e1b4b;
    margin-bottom: 10px;
}

/* ─── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
    .hd-prog-exec__task-content table {
        font-size: 12px;
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .hd-prog-exec__task-content table thead th,
    .hd-prog-exec__task-content table tbody td {
        padding: 7px 8px;
        white-space: nowrap;
    }
}

/* ─── Mobile: nav collapses above panel ─────────────────────────────────── */
@media (max-width: 767px) {
    .hd-prog-exec {
        flex-direction: column;
    }
    .hd-prog-exec__nav {
        width: 100%;
        min-width: 0;
        flex-shrink: 0;
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
        max-height: 260px;
        overflow-y: auto;
        position: static; /* override sticky on mobile */
    }
    .hd-prog-exec__panel {
        padding: 16px 14px 24px;
        min-height: 320px;
    }
    .hd-prog-exec__overview {
        /* keep overview visible on mobile too */
    }
}

/* ══════════════════════════════════════════════════════════════════════════
   P3: Application Banner — waitlisted user enrollment form
   ══════════════════════════════════════════════════════════════════════════ */

.hd-prog-application-banner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 48px 32px 56px;
    background: linear-gradient(135deg, #fffbeb 0%, #fef9c3 100%);
    border: 1.5px solid #fde68a;
    border-radius: 16px;
    margin: 24px 20px;
    box-shadow: 0 2px 16px rgba(251,191,36,.10);
}
.hd-prog-application-banner__icon {
    font-size: 44px;
    margin-bottom: 16px;
    line-height: 1;
}
.hd-prog-application-banner__title {
    font-size: 20px;
    font-weight: 700;
    color: #92400e;
    margin: 0 0 10px;
}
.hd-prog-application-banner__desc {
    font-size: 14px;
    color: #78350f;
    max-width: 520px;
    line-height: 1.75;
    margin: 0 0 24px;
}
.hd-prog-application-banner__btn {
    display: inline-block;
    padding: 10px 28px;
    border-radius: 8px;
    background: #f59e0b;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background .15s;
}
.hd-prog-application-banner__btn:hover { background: #d97706; }

/* Pending / Approved variants */
.hd-prog-application-banner--pending {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-color: #bae6fd;
}
.hd-prog-application-banner--pending .hd-prog-application-banner__title { color: #0c4a6e; }
.hd-prog-application-banner--pending .hd-prog-application-banner__desc  { color: #075985; }

.hd-prog-application-banner--approved {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-color: #86efac;
}
.hd-prog-application-banner--approved .hd-prog-application-banner__title { color: #14532d; }
.hd-prog-application-banner--approved .hd-prog-application-banner__desc  { color: #166534; }

/* Form variant — left-align the form inside the banner */
.hd-prog-application-banner--form {
    align-items: stretch;
    text-align: left;
    padding: 36px 32px 40px;
}
.hd-prog-application-banner--form .hd-prog-application-banner__icon,
.hd-prog-application-banner--form .hd-prog-application-banner__title,
.hd-prog-application-banner--form .hd-prog-application-banner__desc {
    text-align: left;
    align-self: flex-start;
}

/* Form fields */
.hd-prog-appform {
    width: 100%;
    margin-top: 8px;
}
.hd-prog-appform__field {
    margin-bottom: 20px;
}
.hd-prog-appform__field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #92400e;
    margin-bottom: 6px;
}
.hd-prog-appform__req {
    color: #ef4444;
    margin-left: 2px;
}
.hd-prog-appform__field input[type="text"],
.hd-prog-appform__field textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 14px;
    border: 1.5px solid #fde68a;
    border-radius: 8px;
    background: #fff;
    font-size: 14px;
    color: #1e1b4b;
    line-height: 1.7;
    resize: vertical;
    transition: border-color .15s, box-shadow .15s;
}
.hd-prog-appform__field input[type="text"]:focus,
.hd-prog-appform__field textarea:focus {
    outline: none;
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245,158,11,.15);
}
.hd-prog-appform__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}
.hd-prog-appform__submit {
    padding: 10px 32px;
    border-radius: 8px;
    background: #f59e0b;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: background .15s;
}
.hd-prog-appform__submit:hover:not(:disabled) { background: #d97706; }
.hd-prog-appform__submit:disabled { opacity: .6; cursor: not-allowed; }

/* Dim nav for waitlisted users */
.hd-prog-exec[data-role="waitlisted"] .hd-prog-exec__nav {
    opacity: .5;
    pointer-events: none;
    filter: blur(1px);
    user-select: none;
}

/* ── Step relative deadline hints (v0.3.44.21) ──────────────────────────────── */
.hd-step-deadline {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    margin-top: 2px;
    padding: 1px 5px;
    border-radius: 4px;
    line-height: 1.5;
}
.hd-step-deadline--ok {
    color: #64748b;
    background: #f1f5f9;
}
.hd-step-deadline--warn {
    color: #92400e;
    background: #fef3c7;
}
.hd-step-deadline--overdue {
    color: #991b1b;
    background: #fee2e2;
}
