/* HaxLearn — supplemental styles (Tailwind components live in index.html) */

html { scroll-behavior: smooth; }
body { overflow-x: hidden; }

/* Animations */
@keyframes slideIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-slide-in { animation: slideIn 0.2s ease-out forwards; }

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}
.animate-shake { animation: shake 0.2s linear 2; }

/* Blinking block cursor used in section headers */
@keyframes blink { 50% { opacity: 0; } }
.cursor-block {
    display: inline-block;
    width: 0.55em;
    height: 0.8em;
    margin-left: 0.4rem;
    vertical-align: middle;
    border: 2px solid #0b0b0b;
    animation: blink 1s steps(1) infinite;
}

/* Lesson (deep dive) typography */
.lesson-body { font-size: 1.05rem; line-height: 1.75; }
.lesson-body h3, .lesson-body h4 {
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    margin: 1.75rem 0 0.75rem;
    border-bottom: 2px solid #0b0b0b;
    padding-bottom: 0.25rem;
}
.lesson-body h3 { font-size: 1.5rem; }
.lesson-body h4 { font-size: 1.2rem; }
.lesson-body p { margin-bottom: 1rem; }
.lesson-body ul, .lesson-body ol { margin: 0 0 1rem 1.5rem; }
.lesson-body ul { list-style: square; }
.lesson-body ol { list-style: decimal; }
.lesson-body li { margin-bottom: 0.35rem; }
.lesson-body code, .inline-code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85em;
    background: #0b0b0b;
    color: #5ce1e6;
    padding: 0.1em 0.35em;
}
.lesson-body pre {
    font-family: 'JetBrains Mono', monospace;
    background: #0b0b0b;
    color: #fafafa;
    padding: 1rem;
    border: 2px solid #0b0b0b;
    box-shadow: 4px 4px 0 0 #5ce1e6;
    overflow-x: auto;
    margin-bottom: 1rem;
    font-size: 0.85rem;
}
.lesson-body pre code { background: transparent; color: inherit; padding: 0; }
.lesson-body strong { font-weight: 800; }
.lesson-body a { text-decoration: underline; font-weight: 700; }
.lesson-body blockquote {
    border-left: 6px solid #5ce1e6;
    padding: 0.5rem 1rem;
    background: #fff;
    margin-bottom: 1rem;
}
.lesson-body table { border-collapse: collapse; margin-bottom: 1rem; width: 100%; font-size: 0.9rem; }
.lesson-body th, .lesson-body td { border: 2px solid #0b0b0b; padding: 0.5rem; text-align: left; }
.lesson-body th { background: #fafafa; font-family: 'JetBrains Mono', monospace; text-transform: uppercase; font-size: 0.75rem; }

/* Code blocks used by games */
.code-panel {
    background: #0b0b0b;
    color: #fafafa;
    border: 2px solid #0b0b0b;
    box-shadow: 4px 4px 0 0 #5ce1e6;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    overflow-x: auto;
}
.code-line { border: 2px solid transparent; }
.code-line:hover { background: rgba(92, 225, 230, 0.12); }
.code-line.hit { background: rgba(255, 42, 42, 0.25); border-color: #ff2a2a; }
.code-line.miss { background: rgba(255, 255, 255, 0.08); border-color: #888; }
.code-line.answer { background: rgba(0, 230, 118, 0.15); border: 2px dashed #00e676; }

/* Terminal game */
.terminal {
    background: #0b0b0b;
    color: #00e676;
    font-family: 'JetBrains Mono', monospace;
    border: 2px solid #0b0b0b;
    box-shadow: 6px 6px 0 0 #5ce1e6;
}
.terminal input {
    background: transparent;
    border: none;
    outline: none;
    color: #fafafa;
    font-family: inherit;
    width: 100%;
    caret-color: #5ce1e6;
}

/* Flashcards */
.flashcard { perspective: 1000px; }
.flashcard-inner {
    position: relative;
    width: 100%;
    min-height: 220px;
    transition: transform 0.35s;
    transform-style: preserve-3d;
}
.flashcard.flipped .flashcard-inner { transform: rotateY(180deg); }
.flashcard-face {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.5rem;
    border: 2px solid #0b0b0b;
    box-shadow: 6px 6px 0 0 #0b0b0b;
}
.flashcard-back { transform: rotateY(180deg); }

/* Phase timeline */
.phase-rail { position: relative; }
.phase-rail::before {
    content: '';
    position: absolute;
    left: 19px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #0b0b0b;
}
@media (max-width: 640px) {
    .phase-rail::before { left: 15px; }
}

/* Print: certificate only */
@media print {
    @page { size: A4 landscape; margin: 0; }
    .no-print, nav, footer { display: none !important; }
    body { background: #fff !important; }
    #app-root { max-width: none !important; padding: 0 !important; margin: 0 !important; }
    .print-only { display: block !important; }
    .print-hide { display: none !important; }
    .print-cert { width: 100vw; height: 100vh; object-fit: contain; }
}
.print-only { display: none; }

/* Outlook Email Simulation */
.outlook-frame {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #d1d5db;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3), 0 0 0 1px rgba(0,0,0,0.05);
    font-family: 'Segoe UI', Inter, sans-serif;
}
.outlook-titlebar {
    background: #0078d4;
    color: white;
    padding: 8px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    font-weight: 600;
}
.outlook-titlebar .win-dots {
    display: flex;
    gap: 6px;
}
.outlook-titlebar .win-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}
.outlook-toolbar {
    background: #f3f2f1;
    border-bottom: 1px solid #edebe9;
    padding: 6px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #323130;
    overflow-x: auto;
}
.outlook-toolbar button {
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid transparent;
    background: transparent;
    cursor: pointer;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.outlook-toolbar button:hover {
    background: #e1dfdd;
    border-color: #d1d1d1;
}
.outlook-headers {
    background: white;
    padding: 14px 16px 10px 16px;
    border-bottom: 1px solid #edebe9;
}
.outlook-subject {
    font-size: 18px;
    font-weight: 600;
    color: #323130;
    margin-bottom: 10px;
    line-height: 1.3;
}
.outlook-meta-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 6px 0;
    font-size: 13px;
}
.outlook-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #0078d4;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    flex-shrink: 0;
}
.outlook-from-pill {
    cursor: pointer;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid transparent;
}
.outlook-from-pill:hover {
    background: #f3f2f1;
    border-color: #edebe9;
}
.outlook-from-pill .dropdown {
    font-size: 10px;
    color: #605e5c;
}
.outlook-details-popover {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 6px;
    background: white;
    border: 1px solid #edebe9;
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    padding: 10px 12px;
    min-width: 280px;
    z-index: 20;
    font-size: 12px;
    color: #323130;
    line-height: 1.5;
}
.outlook-security-badge {
    font-size: 11px;
    padding: 2px 7px;
    border-radius: 10px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.badge-external {
    background: #fff4ce;
    color: #323130;
    border: 1px solid #fed557;
}
.badge-internal {
    background: #dff6dd;
    color: #107c10;
    border: 1px solid #a7e3a5;
}
.outlook-body {
    padding: 18px 20px;
    font-size: 13.5px;
    line-height: 1.6;
    color: #323130;
    background: white;
    min-height: 160px;
    overflow-wrap: break-word;
}
.outlook-body a {
    color: #0563c1;
    text-decoration: underline;
    cursor: pointer;
    position: relative;
}
.outlook-body a:hover {
    color: #004578;
}
.outlook-body hr {
    border: none;
    border-top: 1px solid #edebe9;
    margin: 14px 0;
}
.outlook-attachment-bar {
    background: #faf9f8;
    border-top: 1px solid #edebe9;
    padding: 10px 16px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.outlook-attachment {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    border: 1px solid #edebe9;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 12px;
    color: #323130;
    cursor: pointer;
    position: relative;
}
.outlook-attachment:hover {
    border-color: #0078d4;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.outlook-attachment .att-icon {
    width: 22px;
    height: 22px;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: white;
}
.outlook-statusbar {
    background: #f3f2f1;
    border-top: 1px solid #edebe9;
    padding: 6px 12px;
    font-size: 11px;
    color: #605e5c;
    font-family: 'Fira Code', monospace;
    min-height: 26px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Phishing indicator checklist (brutalist) */
.phishing-indicator-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 10px;
}
.phishing-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    border: 2px solid #0b0b0b;
    background: #fff;
    cursor: pointer;
    box-shadow: 2px 2px 0 0 #0b0b0b;
    transition: background 0.05s;
}
.phishing-checkbox:hover { background: #fafafa; }
.phishing-checkbox.selected { background: #5ce1e6; }
.phishing-checkbox.correct { background: #00e676; }
.phishing-checkbox.wrong { background: #ff2a2a; color: #fff; }
.phishing-checkbox.wrong div { color: #fff !important; }
.phishing-checkbox.missed { background: #ffeb3b; }

/* Selected answer: the Tailwind `.option` hover (bg-canvas) must never hide the pick. */
.option .option-badge { background: #fff; }
.option.is-selected,
.option.is-selected:hover { background: #5ce1e6; box-shadow: inset 0 0 0 2px #0b0b0b, 3px 3px 0 0 #0b0b0b; }
.option.is-selected .option-badge { background: #0b0b0b; color: #5ce1e6; }

/* Skeleton loaders */
@keyframes shimmer { 0% { background-position: -400px 0; } 100% { background-position: 400px 0; } }
.skeleton {
    background: linear-gradient(90deg, #fff 0%, #ececec 50%, #fff 100%);
    background-size: 800px 100%;
    animation: shimmer 1.2s linear infinite;
}

/* Drag to reorder */
.sortable-item { touch-action: auto; }
.sortable-item [data-grip] { touch-action: none; }
.sortable-list.is-sorting { user-select: none; }
.sortable-item.is-dragging { position: relative; z-index: 5; box-shadow: 6px 6px 0 0 #5ce1e6; cursor: grabbing; }

/* Categorize */
.cat-chip { touch-action: none; cursor: grab; }
.cat-zone.zone-over { background: #5ce1e6 !important; outline: 2px dashed #0b0b0b; outline-offset: -6px; }
.drag-ghost {
    position: fixed; z-index: 300; pointer-events: none;
    transform: translate(-50%, -50%) rotate(-2deg);
    box-shadow: 6px 6px 0 0 #0b0b0b; background: #5ce1e6 !important;
}

/* Fill in the blank */
.blank-input {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.95em;
    border: 0; border-bottom: 3px solid #5ce1e6;
    background: rgba(92, 225, 230, 0.12);
    color: inherit;
    padding: 0 0.3em; margin: 0 0.15em;
    outline: none;
}
.bg-white .blank-input, p .blank-input { border-bottom-color: #0b0b0b; }
.blank-input:focus { background: rgba(92, 225, 230, 0.3); }
.blank-input.is-right { background: rgba(0, 230, 118, 0.35); border-bottom-color: #00e676; }
.blank-input.is-wrong { background: rgba(255, 42, 42, 0.25); border-bottom-color: #ff2a2a; }

/* Log hunt */
.log-line.picked { background: rgba(92, 225, 230, 0.25); border-color: #5ce1e6; }
.log-line.found { background: rgba(0, 230, 118, 0.25); border-color: #00e676; }
.log-line.false-pos { background: rgba(255, 42, 42, 0.25); border-color: #ff2a2a; }
.log-line.missed { background: rgba(255, 235, 59, 0.15); border: 2px dashed #ffeb3b; }

/* Rows stretch to the longest line, so highlights span the full scrolled width */
.line-rows { display: inline-block; min-width: 100%; }

/* Query lab */
.query-editor {
    display: block; width: 100%;
    background: #0b0b0b; color: #fafafa; caret-color: #5ce1e6;
    font-family: 'JetBrains Mono', monospace; font-size: 0.9rem;
    padding: 0.9rem; border: 0; outline: none; resize: vertical;
}
.query-table { border-collapse: collapse; width: 100%; font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; }
.query-table th, .query-table td { border: 1px solid #0b0b0b; padding: 0.3rem 0.5rem; text-align: left; white-space: nowrap; }
.query-table th { background: #fafafa; text-transform: uppercase; font-size: 0.65rem; }

/* Module sub-sections stepper */
.stepper-item { display: flex; align-items: center; gap: 0.6rem; padding: 0.55rem 0.75rem; border-bottom: 2px solid #0b0b0b; font-size: 0.8rem; }
.stepper-item:last-child { border-bottom: 0; }
.stepper-item.current { background: #0b0b0b; color: #5ce1e6; }
.stepper-dot { width: 1.4rem; height: 1.4rem; flex-shrink: 0; border: 2px solid currentColor; display: flex; align-items: center; justify-content: center; font-family: 'JetBrains Mono', monospace; font-weight: 800; font-size: 0.7rem; }
.stepper-item.done .stepper-dot { background: #00e676; color: #0b0b0b; border-color: #0b0b0b; }

/* Search */
.search-results mark { background: #5ce1e6; color: inherit; }

/* Answer states on .option buttons. They must beat the Tailwind hover (bg-canvas) and text-ink,
   otherwise a hovered wrong answer renders white text on a near-white background. */
.option.is-picked, .option.is-picked:hover { background: #5ce1e6 !important; color: #0b0b0b !important; }
.option.is-right, .option.is-right:hover { background: #00e676 !important; color: #0b0b0b !important; }
.option.is-wrong, .option.is-wrong:hover { background: #ff2a2a !important; color: #fff !important; }
.option.is-wrong .inline-code { background: #0b0b0b; color: #fff; }
.option.is-answer { border-style: dashed; background: rgba(0, 230, 118, 0.3) !important; color: #0b0b0b !important; }

/* Nav: compact search trigger + profile menu */
.nav-search-btn, .profile-btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    height: 2.25rem; padding: 0 0.6rem;
    background: #fff; color: #0b0b0b; border: 2px solid #0b0b0b;
    box-shadow: 2px 2px 0 0 #0b0b0b; transition: transform 75ms, box-shadow 75ms;
}
.nav-search-btn:hover, .profile-btn:hover, .profile-btn[aria-expanded="true"] { transform: translate(1px, 1px); box-shadow: 1px 1px 0 0 #0b0b0b; background: #fafafa; }
.nav-search-btn:focus-visible, .profile-btn:focus-visible { outline: 2px solid #5ce1e6; outline-offset: 2px; }
.nav-search-btn kbd, .palette kbd {
    font-family: 'JetBrains Mono', monospace; font-size: 10px; font-weight: 800;
    border: 1.5px solid #0b0b0b; padding: 0 0.3rem; line-height: 1.2rem; background: #fafafa;
}
.profile-avatar {
    width: 1.5rem; height: 1.5rem; display: inline-flex; align-items: center; justify-content: center;
    background: #5ce1e6; border: 2px solid #0b0b0b; font-size: 0.7rem; font-weight: 900;
}
.profile-menu {
    position: absolute; right: 0; top: calc(100% + 0.6rem); width: 17rem; max-width: calc(100vw - 2rem); z-index: 60;
    background: #fff; border: 2px solid #0b0b0b; box-shadow: 5px 5px 0 0 #0b0b0b;
}
.profile-menu [role="menuitem"] {
    display: flex; align-items: center; gap: 0.6rem; width: 100%; text-align: left;
    padding: 0.65rem 0.9rem; font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
    border-top: 2px solid #0b0b0b;
}
.profile-menu [role="menuitem"]:hover, .profile-menu [role="menuitem"]:focus { background: #5ce1e6; outline: none; }

/* Search palette */
.palette-input { width: 100%; border: 0; outline: none; background: transparent; font-family: 'JetBrains Mono', monospace; font-size: 1rem; padding: 0.9rem 0; }
.palette .search-row.is-active { background: #5ce1e6; }

/* Progress dashboard */
.profile-band {
    display: flex; flex-direction: column; gap: 1.5rem; justify-content: space-between;
    background: #0b0b0b; color: #fafafa; border: 2px solid #0b0b0b; padding: 1.5rem;
    box-shadow: 6px 6px 0 0 #5ce1e6;
}
@media (min-width: 768px) { .profile-band { flex-direction: row; align-items: center; padding: 2rem; } }
.profile-band .profile-avatar { border-color: #fafafa; color: #0b0b0b; }
.kpi {
    background: #fff; border: 2px solid #0b0b0b; padding: 1rem 1.1rem;
    box-shadow: 4px 4px 0 0 #0b0b0b; border-top: 6px solid var(--accent, #5ce1e6);
}
.panel { background: #fff; border: 2px solid #0b0b0b; box-shadow: 6px 6px 0 0 #0b0b0b; }
.panel-head {
    display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
    background: #0b0b0b; color: #5ce1e6; padding: 0.6rem 1rem;
    font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em;
}
.panel-head.bg-danger { background: #ff2a2a; color: #fff; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.data-table th {
    text-align: left; font-family: 'JetBrains Mono', monospace; font-size: 0.65rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: 0.06em; padding: 0.5rem 0.75rem; background: #fafafa; border-bottom: 2px solid #0b0b0b; white-space: nowrap;
}
.data-table td { padding: 0.6rem 0.75rem; border-bottom: 1px solid #d4d4d4; vertical-align: middle; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody:not(:last-child) tr:last-child td { border-bottom: 1px solid #d4d4d4; }
.data-table tr.phase-row th { background: #f1f1f1; border-top: 2px solid #0b0b0b; border-bottom: 1px solid #0b0b0b; }
.data-table tr.is-next td { background: rgba(92, 225, 230, 0.15); }
.data-table .text-right { text-align: right; }
.data-table .text-center { text-align: center; }
.status-dot {
    width: 1.75rem; height: 1.75rem; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
    border: 2px solid #0b0b0b; font-family: 'JetBrains Mono', monospace; font-weight: 800; font-size: 0.75rem;
}
.next-up {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    border: 2px solid #0b0b0b; padding: 1rem 1.25rem; box-shadow: 4px 4px 0 0 #0b0b0b; transition: transform 75ms, box-shadow 75ms;
}
.next-up:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 0 #0b0b0b; }
.activity li { display: flex; gap: 0.75rem; align-items: flex-start; padding: 0.7rem 1rem; border-bottom: 1px solid #d4d4d4; }
.activity li:last-child { border-bottom: 0; }

/* Module test step in the lesson stepper */
.stepper-test { border-top: 2px dashed #0b0b0b; background: #fafafa; }
.stepper-item.stepper-test.done .stepper-dot { background: #ffeb3b; }

/* Branching scenario */
.branch-scene { background: #0b0b0b; color: #fafafa; border: 2px solid #0b0b0b; padding: 1.25rem 1.5rem; box-shadow: 6px 6px 0 0 #5ce1e6; }
.branch-scene.is-success { box-shadow: 6px 6px 0 0 #00e676; }
.branch-scene.is-fail { box-shadow: 6px 6px 0 0 #ff2a2a; }
.branch-scene .inline-code { background: #5ce1e6; color: #0b0b0b; }

/* Decoder lab */
#dec-out.dec-error { color: #ff8a8a; }
#dec-out.dec-flag { box-shadow: 4px 4px 0 0 #00e676; color: #00e676; font-weight: 800; }
.dec-op { width: 100%; }

/* Memory */
.mem-card {
    position: relative; min-height: 6.5rem; padding: 0.75rem; border: 2px solid #0b0b0b;
    background: #0b0b0b; color: #5ce1e6; box-shadow: 3px 3px 0 0 #0b0b0b; text-align: center;
    display: flex; align-items: center; justify-content: center; font-size: 0.85rem; font-weight: 600;
    transition: transform 0.12s, background 0.12s;
}
.mem-card:hover:not(.is-open):not(.is-found) { transform: translate(1px, 1px); }
.mem-card .mem-back { font-family: 'JetBrains Mono', monospace; font-size: 1.75rem; font-weight: 900; }
.mem-card .mem-front { display: none; }
.mem-card.is-open, .mem-card.is-found { background: #fff; color: #0b0b0b; }
.mem-card.is-open .mem-back, .mem-card.is-found .mem-back { display: none; }
.mem-card.is-open .mem-front, .mem-card.is-found .mem-front { display: block; }
.mem-card.is-found { background: #00e676; cursor: default; }
.mem-card.is-miss { background: #ff2a2a; color: #fff; }

/* Word guess */
.wg-slot {
    width: 2.1rem; height: 2.6rem; display: inline-flex; align-items: center; justify-content: center;
    border-bottom: 4px solid #0b0b0b; background: #fff; font-family: 'JetBrains Mono', monospace; font-size: 1.3rem; font-weight: 900;
}
.wg-slot.is-shown { background: #5ce1e6; }
.wg-slot.is-missed { background: #ff2a2a; color: #fff; }
.wg-key {
    height: 2.4rem; border: 2px solid #0b0b0b; background: #fff; font-family: 'JetBrains Mono', monospace; font-weight: 800;
    box-shadow: 2px 2px 0 0 #0b0b0b;
}
.wg-key:hover:not(:disabled) { background: #5ce1e6; }
.wg-key.is-hit { background: #00e676; }
.wg-key.is-miss { background: #0b0b0b; color: #666; }
.wg-key:disabled { box-shadow: none; cursor: default; }
.data-table .tag { white-space: nowrap; }

/* Progress: current-phase view */
.phase-strip { display: flex; overflow-x: auto; border-bottom: 2px solid #0b0b0b; background: #fff; }
.phase-chip {
    display: flex; align-items: center; gap: 0.5rem; flex: 1 1 0; min-width: 9rem;
    padding: 0.6rem 0.9rem; border-right: 2px solid #0b0b0b;
    font-family: 'JetBrains Mono', monospace; font-size: 0.65rem; font-weight: 800; text-transform: uppercase;
}
.phase-chip:last-child { border-right: 0; }
.phase-chip-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.phase-chip-dot {
    width: 1.4rem; height: 1.4rem; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
    border: 2px solid currentColor; font-size: 0.65rem;
}
.phase-chip.is-done .phase-chip-dot { background: #00e676; color: #0b0b0b; border-color: #0b0b0b; }
.phase-chip.is-current { background: #0b0b0b; color: #5ce1e6; }
.phase-chip.is-locked { opacity: 0.5; }
.module-row { display: flex; gap: 1rem; align-items: flex-start; padding: 1rem 1.25rem; border-bottom: 1px solid #d4d4d4; }
.module-row:last-child { border-bottom: 0; }
.module-row.is-next { background: rgba(92, 225, 230, 0.12); box-shadow: inset 4px 0 0 #5ce1e6; }
