/* Claire's "Deep Neural Network" view (mc-deep.js): a layered network diagram – a clean card like a
   textbook figure (light), or deep navy (dark theme). Sense blue, other skills teal, achievements (goals)
   purple – purple means achievements only (reached full, open dim, blocked faded); rules rose. Full
   brightness only for learned skills and proven links; gold only for real progress today. */
.mcd_panel, .mcd_static, .mcd_tip {
    --mcd-bg: #ffffff;
    --mcd-line: #dfe6ea;
    --mcd-text: #1d2939;
    --mcd-muted: #6a7686;
    --mcd-in: #0a66ff;
    --mcd-hid: #2fd4d0;
    --mcd-out: #7aa6ff;
    --mcd-built: #8fb5bb;
    --mcd-planned: #b9c4d2;
    --mcd-designed: #6fa3aa;
    --mcd-plink: #9aa9bd;
    --mcd-rule: #ff78aa;
    --mcd-ach: #a86cff;
    --mcd-ach-text: #7b3fe4;
    --mcd-ach-built: #c7adf5;
    --mcd-band-sup: rgba(47, 212, 208, 0.07);
    --mcd-band-sup-line: rgba(30, 150, 150, 0.35);
    --mcd-band-talk: rgba(106, 118, 134, 0.06);
    --mcd-band-talk-line: rgba(106, 118, 134, 0.3);
    --mcd-fail: #e5483c;
    --mcd-learn: #3a7bff;
    --mcd-halo: rgba(10, 102, 255, 0.16);
    --mcd-tip-bg: #ffffff;
    --mcd-label-bg: #ffffff;
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .mcd_panel, :root:not([data-theme="light"]) .mcd_static, :root:not([data-theme="light"]) .mcd_tip {
        --mcd-bg: #08121f;
        --mcd-line: #1e2d3d;
        --mcd-text: #e3edf2;
        --mcd-muted: #8b9cab;
        --mcd-in: #3b8bff;
        --mcd-hid: #36d9d4;
        --mcd-out: #8fb2ff;
        --mcd-built: #3f7078;
        --mcd-planned: #34475c;
        --mcd-designed: #4f8a92;
        --mcd-plink: #5a6d86;
        --mcd-ach-text: #c9a6ff;
        --mcd-ach-built: #5a4688;
        --mcd-band-sup: rgba(54, 217, 212, 0.06);
        --mcd-band-sup-line: rgba(54, 217, 212, 0.28);
        --mcd-band-talk: rgba(139, 156, 171, 0.06);
        --mcd-band-talk-line: rgba(139, 156, 171, 0.25);
        --mcd-halo: rgba(80, 160, 255, 0.22);
        --mcd-tip-bg: #0f1c2c;
        --mcd-label-bg: #08121f;
    }
}
:root[data-theme="dark"] .mcd_panel, :root[data-theme="dark"] .mcd_static, :root[data-theme="dark"] .mcd_tip {
    --mcd-bg: #08121f;
    --mcd-line: #1e2d3d;
    --mcd-text: #e3edf2;
    --mcd-muted: #8b9cab;
    --mcd-in: #3b8bff;
    --mcd-hid: #36d9d4;
    --mcd-out: #8fb2ff;
    --mcd-built: #3f7078;
    --mcd-planned: #34475c;
    --mcd-designed: #4f8a92;
    --mcd-plink: #5a6d86;
    --mcd-ach-text: #c9a6ff;
    --mcd-ach-built: #5a4688;
    --mcd-band-sup: rgba(54, 217, 212, 0.06);
    --mcd-band-sup-line: rgba(54, 217, 212, 0.28);
    --mcd-band-talk: rgba(139, 156, 171, 0.06);
    --mcd-band-talk-line: rgba(139, 156, 171, 0.25);
    --mcd-halo: rgba(80, 160, 255, 0.22);
    --mcd-tip-bg: #0f1c2c;
    --mcd-label-bg: #08121f;
}

.mcd_stage { position: relative; }
.mcd_view {
    position: relative;
    height: 520px;
    overflow: hidden;
    overflow-anchor: none;
    border: 1px solid var(--mcd-line);
    border-radius: 14px;
    background: var(--mcd-bg);
    box-shadow: 0 6px 24px rgba(15, 30, 50, 0.08);
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    cursor: grab;
}
.mcd_view:focus { outline: none; }
.mcd_dragging .mcd_view, .mcd_dragging .mcd_node { cursor: grabbing; }
.mcd_view:has(.mcd_empty) { height: auto; cursor: default; }
@media (max-width: 600px) { .mcd_view { height: 420px; border-radius: 12px; } }
.mcd_empty { margin: 0; padding: 28px 18px; color: var(--mcd-muted); }
.mcd_world { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.mcd_svg { display: block; overflow: visible; }

/* column headers */
.mcd_head { font: 700 16px system-ui, "Segoe UI", sans-serif; fill: var(--mcd-text); }
.mcd_sub { font: 500 12px system-ui, "Segoe UI", sans-serif; fill: var(--mcd-muted); }
.mcd_group { font: 700 10.5px system-ui, "Segoe UI", sans-serif; letter-spacing: 1.5px; fill: var(--mcd-muted); }
.mcd_head_ach { fill: var(--mcd-ach-text); }
.mcd_head_rule { stroke: var(--mcd-line); stroke-width: 1.5; }
.mcd_head_rule_ach { stroke: var(--mcd-ach); opacity: 0.5; }
.mcd_gtag { font: 700 10px system-ui, "Segoe UI", sans-serif; letter-spacing: 1.2px; fill: var(--mcd-muted); }
.mcd_rule_line { stroke: var(--mcd-line); stroke-width: 1; }
/* the bands: the survival arbiter over Act (always on), talk along the bottom (a side channel) */
.mcd_band { stroke-width: 1; stroke-dasharray: 5 4; }
.mcd_band_sup { fill: var(--mcd-band-sup); stroke: var(--mcd-band-sup-line); }
.mcd_band_talk { fill: var(--mcd-band-talk); stroke: var(--mcd-band-talk-line); }
.mcd_band_title { font: 700 13px system-ui, "Segoe UI", sans-serif; fill: var(--mcd-text); }
.mcd_band_talk_title { fill: var(--mcd-muted); }
.mcd_band_sub { font: 500 10px system-ui, "Segoe UI", sans-serif; fill: var(--mcd-muted); }
.mcd_bracket { fill: none; stroke: var(--mcd-band-sup-line); stroke-width: 2; stroke-dasharray: 5 4; }
/* Goals: the hub's purple spine; one line per tab ("Story · 3/16 reached"), opens on click / Enter */
.mcd_spine { fill: none; stroke: var(--mcd-ach); stroke-width: 1.5; opacity: 0.45; }
.mcd_tline[role="button"] { cursor: pointer; }
.mcd_tline:focus { outline: none; }
.mcd_tline_bg { fill: transparent; stroke: none; }
.mcd_tline[role="button"]:hover .mcd_tline_bg { fill: var(--mcd-halo); }
.mcd_tline:focus-visible .mcd_tline_bg { fill: var(--mcd-halo); stroke: var(--mcd-text); stroke-width: 1.2; }
.mcd_tline_text { font: 600 12.5px system-ui, "Segoe UI", sans-serif; fill: var(--mcd-text); }
.mcd_tline_tab .mcd_tline_text { fill: var(--mcd-ach-text); }
.mcd_tline_off .mcd_tline_text { fill: var(--mcd-muted); font-weight: 500; }
.mcd_tline_new { fill: #e8b23a; }
/* a folded parent's button ("+17 needs" / "− hide") and an open family's guide line */
.mcd_more { cursor: pointer; }
.mcd_more:focus { outline: none; }
.mcd_more_bg { fill: var(--mcd-bg); stroke: var(--mcd-line); stroke-width: 1; }
.mcd_more:hover .mcd_more_bg { stroke: var(--mcd-hid); }
.mcd_more:focus-visible .mcd_more_bg { stroke: var(--mcd-text); stroke-width: 1.4; }
.mcd_more_text { font: 600 10.5px system-ui, "Segoe UI", sans-serif; fill: var(--mcd-muted); }
.mcd_more_new .mcd_more_bg { stroke: #e8b23a; }
.mcd_guide { fill: none; stroke: var(--mcd-line); stroke-width: 1.2; }
/* "Not linked yet": one line per group, opens on click / Enter */
.mcd_lgrp { cursor: pointer; }
.mcd_lgrp:focus { outline: none; }
.mcd_lgrp_bg { fill: transparent; stroke: none; }
.mcd_lgrp:hover .mcd_lgrp_bg { fill: var(--mcd-halo); }
.mcd_lgrp:focus-visible .mcd_lgrp_bg { fill: var(--mcd-halo); stroke: var(--mcd-text); stroke-width: 1.2; }
.mcd_lgrp_text { font: 600 12.5px system-ui, "Segoe UI", sans-serif; fill: var(--mcd-text); }

/* links: proven = full colour; designed = dim dashed; planned = faint dotted */
.mcd_edge { fill: none; stroke-width: 1.3; transition: opacity 0.15s; }
.mcd_e_proven.mcd_from_in { stroke: var(--mcd-in); }
.mcd_e_proven.mcd_from_hid { stroke: var(--mcd-hid); }
.mcd_e_proven.mcd_from_ach { stroke: var(--mcd-ach); }
.mcd_e_proven { opacity: 0.85; }
.mcd_e_designed { stroke: var(--mcd-designed); stroke-dasharray: 4 3; opacity: 0.45; stroke-width: 1.1; }
.mcd_e_planned { stroke: var(--mcd-plink); stroke-dasharray: 1.5 4; stroke-linecap: round; opacity: 0.4; stroke-width: 1.1; }
.mcd_arrow_proven { fill: var(--mcd-hid); }
.mcd_arrow_designed { fill: var(--mcd-designed); }
.mcd_arrow_planned { fill: var(--mcd-plink); }
.mcd_arrow_ach { fill: var(--mcd-ach); }
/* the achievement chain (requires order, inside an open Goals tab): always shown, purple */
.mcd_edge.mcd_chain { stroke: var(--mcd-ach); opacity: 0.6; stroke-width: 1.4; stroke-dasharray: 3 3; }
.mcd_edge.mcd_chain.mcd_e_proven { opacity: 0.95; stroke-dasharray: none; }
.mcd_edge.mcd_hide { display: none; }
.mcd_edge.mcd_off { opacity: 0.07; }
.mcd_edge.mcd_on { opacity: 1; stroke-width: 2.2; }

/* nodes: learned = full; learning = blue ring; failing = red ring; built = dim; planned = hollow */
.mcd_node { cursor: pointer; transition: opacity 0.15s; }
.mcd_node:focus { outline: none; }
.mcd_node.mcd_off { opacity: 0.22; }
.mcd_dot { stroke-width: 1.5; }
.mcd_r_in .mcd_dot { fill: var(--mcd-in); stroke: var(--mcd-in); }
.mcd_r_hid .mcd_dot { fill: var(--mcd-hid); stroke: var(--mcd-hid); }
.mcd_r_sup .mcd_dot, .mcd_r_talk .mcd_dot, .mcd_r_loose .mcd_dot { fill: var(--mcd-hid); stroke: var(--mcd-hid); }
.mcd_r_ach .mcd_dot { fill: var(--mcd-ach); stroke: var(--mcd-ach); }
.mcd_s_built .mcd_dot { fill: var(--mcd-built); stroke: var(--mcd-built); }
.mcd_r_ach.mcd_s_built .mcd_dot { fill: var(--mcd-ach-built); stroke: var(--mcd-ach-built); }
.mcd_s_planned .mcd_dot { fill: var(--mcd-bg); stroke: var(--mcd-planned); stroke-dasharray: 2 2; }
.mcd_r_ach.mcd_s_planned .mcd_dot { stroke: var(--mcd-ach-built); }
.mcd_hub .mcd_dot, .mcd_r_ach.mcd_hub .mcd_dot { fill: var(--mcd-ach); stroke: var(--mcd-ach); }
.mcd_a_reached .mcd_dot { fill: var(--mcd-ach); stroke: var(--mcd-ach); }
.mcd_a_open .mcd_dot { fill: var(--mcd-ach-built); stroke: var(--mcd-ach); stroke-width: 1.2; }
.mcd_a_blocked .mcd_dot { fill: var(--mcd-bg); stroke: var(--mcd-ach-built); }
.mcd_a_blocked { opacity: 0.55; }
.mcd_a_planned .mcd_dot { fill: var(--mcd-bg); stroke: var(--mcd-ach-built); stroke-dasharray: 2 2; }
.mcd_a_open .mcd_label, .mcd_a_blocked .mcd_label, .mcd_a_planned .mcd_label { fill: var(--mcd-muted); }
.mcd_a_reached .mcd_label { font-weight: 600; }
.mcd_s_training .mcd_dot { stroke: var(--mcd-learn); stroke-width: 3; }
.mcd_s_failing .mcd_dot { stroke: var(--mcd-fail); stroke-width: 3; }
.mcd_halo { fill: none; stroke: none; }
.mcd_node:hover .mcd_halo, .mcd_node:focus-visible .mcd_halo, .mcd_sel .mcd_halo { fill: var(--mcd-halo); }
.mcd_node:focus-visible .mcd_halo { stroke: var(--mcd-text); stroke-width: 1.2; }
.mcd_sel .mcd_halo { stroke: var(--mcd-text); stroke-width: 1.6; }
/* a rule = a lesson modifying the skill: a rose dot on a dotted tick */
.mcd_rule { fill: var(--mcd-rule); }
.mcd_rule.mcd_s_built, .mcd_rule.mcd_s_planned { fill: var(--mcd-bg); stroke: var(--mcd-rule); stroke-width: 1.2; }
.mcd_rule_tick { stroke: var(--mcd-rule); stroke-width: 1; stroke-dasharray: 1 2; stroke-linecap: round; }
.mcd_label {
    font: 500 12px system-ui, "Segoe UI", sans-serif;
    fill: var(--mcd-text);
    paint-order: stroke;
    stroke: var(--mcd-label-bg);
    stroke-width: 3px;
    stroke-linejoin: round;
}
.mcd_s_built .mcd_label, .mcd_s_planned .mcd_label { fill: var(--mcd-muted); }
.mcd_s_planned .mcd_label { font-style: italic; }
.mcd_k_ach.mcd_a_reached .mcd_label, .mcd_hub .mcd_label { fill: var(--mcd-ach-text); }
.mcd_hub .mcd_label { font-weight: 700; }
.mcd_planned_tag { font: italic 500 9.5px system-ui, "Segoe UI", sans-serif; fill: var(--mcd-muted); }

/* zoom buttons */
.mcd_zoom { position: absolute; right: 8px; bottom: 8px; z-index: 5; display: flex; flex-direction: column; gap: 4px; }
.mcd_zoom[hidden] { display: none; }
.mcd_zbtn {
    width: 32px; height: 32px; padding: 0;
    border: 1px solid var(--mcd-line); border-radius: 8px;
    background: var(--mcd-tip-bg); color: var(--mcd-text);
    font: 600 16px/1 system-ui, sans-serif; cursor: pointer;
}
.mcd_zbtn.mcd_zfit { font-size: 11px; }
.mcd_zbtn:hover { border-color: var(--mcd-hid); }
.mcd_zbtn:disabled { opacity: 0.4; cursor: default; }
.mcd_zbtn:focus-visible { outline: 2px solid var(--mcd-in); outline-offset: 2px; }

/* tooltip */
.mcd_tip {
    position: absolute; z-index: 10; max-width: 280px; padding: 8px 10px;
    border: 1px solid var(--mcd-line); border-radius: 8px;
    background: var(--mcd-tip-bg); color: var(--mcd-text);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
    font-size: 12px; line-height: 1.35; pointer-events: none;
}
.mcd_tip[hidden] { display: none; }
.mcd_tip > * { display: block; }
.mcd_tip_title { font-size: 13px; }
.mcd_tip_desc { color: var(--mcd-muted); margin-top: 2px; }
.mcd_tip_status { margin-top: 4px; font-weight: 600; color: var(--mcd-muted); }
.mcd_ts_learned { color: var(--mcd-hid); }
.mcd_ts_training { color: var(--mcd-learn); }
.mcd_ts_failing { color: var(--mcd-fail); }
.mcd_tip_more { margin-top: 3px; }
.mcd_tip_rules { color: var(--mcd-rule); }
.mcd_ta_open, .mcd_ta_blocked, .mcd_ta_planned { opacity: 0.85; }
.mcd_ts_ach { color: var(--mcd-ach-text); }

/* legend under the view */
.mcd_foot { margin-top: 8px; }
.mcd_legend { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 12px; color: var(--mcd-muted); }
.mcd_lg { display: inline-flex; align-items: center; gap: 5px; }
.mcd_lg i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; }
.mcd_lg_sep { width: 1px; height: 14px; background: var(--mcd-line); }
.mcd_lg_in i { background: var(--mcd-in); }
.mcd_lg_hid i { background: var(--mcd-hid); }
.mcd_lg_ach i { background: var(--mcd-ach); }
.mcd_lg_ach_open i { background: var(--mcd-ach-built); box-shadow: inset 0 0 0 1px var(--mcd-ach); }
.mcd_lg_ach_blocked i { border: 1px solid var(--mcd-ach-built); box-sizing: border-box; opacity: 0.55; }
.mcd_lg_rule i { width: 6px; height: 6px; background: var(--mcd-rule); }
.mcd_lg_learned i { background: var(--mcd-hid); }
.mcd_lg_training i { background: var(--mcd-hid); box-shadow: 0 0 0 2px var(--mcd-learn); width: 8px; height: 8px; }
.mcd_lg_failing i { background: var(--mcd-hid); box-shadow: 0 0 0 2px var(--mcd-fail); width: 8px; height: 8px; }
.mcd_lg_built i { background: var(--mcd-built); }
.mcd_lg_planned i { border: 1px dashed var(--mcd-planned); box-sizing: border-box; }
.mcd_lg_proven i, .mcd_lg_designed i, .mcd_lg_plink i { width: 18px; height: 0; border-radius: 0; border-top: 2px solid var(--mcd-hid); }
.mcd_lg_designed i { border-top: 2px dashed var(--mcd-designed); }
.mcd_lg_plink i { border-top: 2px dotted var(--mcd-plink); }
.mcd_lg_toggle { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.mcd_lg_toggle:hover { color: var(--mcd-text); }
.mcd_lg_toggle:focus-visible { outline: 2px solid var(--mcd-in); outline-offset: 2px; border-radius: 4px; }
.mcd_lg_toggle[aria-pressed="false"] { opacity: 0.55; } /* (a switch: off = those links hidden; no strike-through – it read as "cancelled", Trish 29 Nov) */
.mcd_lg_toggle[aria-pressed="false"]::after { content: " · hidden"; font-style: italic; }
.mcd_legend { flex-direction: column; align-items: flex-start; gap: 3px; }
.mcd_lg_row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.mcd_hint { margin: 4px 0 0; font-size: 11px; color: var(--mcd-muted); }

/* new today (mc-today.js): gold ring on the skill, warm link; still when reduced motion is asked for */
.mcd_newring { fill: none; stroke: #e8b23a; stroke-width: 2; animation: mcd_pulse 2.4s ease-in-out infinite; }
@keyframes mcd_pulse { 0%, 100% { stroke-opacity: 1; } 50% { stroke-opacity: 0.35; } }
@media (prefers-reduced-motion: reduce) { .mcd_newring { animation: none; } }
.mcd_new .mcd_label { font-weight: 700; }
.mcd_edge.mcd_e_new { stroke: #e8b23a; stroke-dasharray: none; opacity: 0.95; stroke-width: 2; }
.mcd_arrow_new { fill: #e8b23a; }
.mcd_lg_new i { background: transparent; box-shadow: 0 0 0 2px #e8b23a; width: 8px; height: 8px; }
.mcd_lg[hidden] { display: none; }
.mcd_tip_new { color: #c98a12; font-weight: 600; }
:root[data-theme="dark"] .mcd_tip_new { color: #f0c35a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .mcd_tip_new { color: #f0c35a; } }

/* Skill statuses (28 Nov – Trish + Server 3): each step adds one thing; kind colours stay as hue.
   built dim · learning a thin hollow ring with a faint glow · trained a bright closed ring on a half-lit core,
   steady glow · learned full + glow + a slow shimmer (the only animated status) · failing a slow red pulse (2 s),
   a broken ring and "!" · being tested now an expanding ripple. Reduced motion: no animation, a still sparkle. */
.mcd_s_built .mcd_dot { opacity: 0.8; }
.mcd_s_training .mcd_dot { stroke: var(--mcd-hid); stroke-width: 1.2; fill-opacity: 0.12; filter: drop-shadow(0 0 2px rgba(54, 217, 212, 0.35)); }
.mcd_r_in.mcd_s_training .mcd_dot { stroke: var(--mcd-in); }
.mcd_s_trained .mcd_dot { stroke-width: 2.4; fill-opacity: 0.45; filter: drop-shadow(0 0 3px rgba(54, 217, 212, 0.6)); }
.mcd_s_learned .mcd_dot { filter: drop-shadow(0 0 4px rgba(54, 217, 212, 0.8)); animation: mcd_shimmer 3.2s ease-in-out infinite; }
@keyframes mcd_shimmer {
    0%, 100% { filter: drop-shadow(0 0 3px rgba(54, 217, 212, 0.6)); }
    50% { filter: drop-shadow(0 0 7px rgba(170, 255, 250, 0.95)) brightness(1.18); }
}
.mcd_s_failing .mcd_dot { stroke: var(--mcd-fail); stroke-width: 2.2; stroke-dasharray: 3 2.4; fill-opacity: 0.35; animation: mcd_failpulse 2s ease-in-out infinite; }
@keyframes mcd_failpulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
.mcd_fail_mark { font: 800 9px system-ui, "Segoe UI", sans-serif; fill: var(--mcd-text); text-anchor: middle; pointer-events: none; }
.mcd_spark_mark { display: none; font-size: 8px; fill: #bffcf6; pointer-events: none; }
.mcd_ripple { fill: none; stroke: #c8ebff; stroke-width: 1.2; transform-box: fill-box; transform-origin: center; animation: mcd_ripple 1.8s ease-out infinite; pointer-events: none; }
@keyframes mcd_ripple { from { transform: scale(1); opacity: 0.85; } to { transform: scale(2.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
    .mcd_s_learned .mcd_dot, .mcd_s_failing .mcd_dot { animation: none; }
    .mcd_spark_mark { display: inline; }
    .mcd_ripple { animation: none; stroke-width: 2; opacity: 0.85; }
}
.mcd_ts_trained { color: var(--mcd-hid); }
.mcd_tip_testing { color: #c8ebff; }
.mcd_tip_ev { color: var(--mcd-muted); }
.mcd_lg_learned i { box-shadow: 0 0 5px rgba(54, 217, 212, 0.8); }
.mcd_lg_trained i { width: 8px; height: 8px; background: rgba(54, 217, 212, 0.45); box-shadow: 0 0 0 2px var(--mcd-hid), 0 0 5px rgba(54, 217, 212, 0.5); }
.mcd_lg_training i { width: 9px; height: 9px; background: rgba(54, 217, 212, 0.12); box-shadow: 0 0 0 1px var(--mcd-hid); }
.mcd_lg_failing i { width: 10px; height: 10px; background: rgba(229, 72, 60, 0.35); border: 2px dashed var(--mcd-fail); box-shadow: none; box-sizing: border-box; }
.mcd_lg_testing i { width: 9px; height: 9px; background: none; border: 1px solid #c8ebff; box-sizing: border-box; box-shadow: 0 0 0 3px rgba(200, 235, 255, 0.25); }

/* learning pulses (Trish 28 Nov): a gentle breath of its faint ring and glow */
.mcd_s_training .mcd_dot { animation: mcd_learnpulse 2.6s ease-in-out infinite; }
@keyframes mcd_learnpulse {
    0%, 100% { stroke-opacity: 0.55; filter: drop-shadow(0 0 1px rgba(54, 217, 212, 0.25)); }
    50% { stroke-opacity: 1; filter: drop-shadow(0 0 5px rgba(54, 217, 212, 0.7)); }
}
@media (prefers-reduced-motion: reduce) { .mcd_s_training .mcd_dot { animation: none; } }
/* a folded parent's chip shows the best status inside it, so a fold never hides drill progress (28 Nov) */
.mcd_more_k_training .mcd_more_bg { stroke: var(--mcd-hid); stroke-opacity: 0.6; animation: mcd_morepulse 2.6s ease-in-out infinite; }
.mcd_more_k_trained .mcd_more_bg { stroke: var(--mcd-hid); stroke-width: 2; }
.mcd_more_k_learned .mcd_more_bg { stroke: var(--mcd-hid); stroke-width: 2; fill: rgba(54, 217, 212, 0.25); }
.mcd_more_k_failing .mcd_more_bg { stroke: var(--mcd-fail); stroke-dasharray: 3 2; }
.mcd_more_k_training .mcd_more_text, .mcd_more_k_trained .mcd_more_text, .mcd_more_k_learned .mcd_more_text { fill: var(--mcd-text); }
@keyframes mcd_morepulse { 0%, 100% { stroke-opacity: 0.35; } 50% { stroke-opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .mcd_more_k_training .mcd_more_bg { animation: none; } }
/* legend (28 Nov): the learning chip pulses like the network's learning skills */
.mcd_lg_training i { animation: mcd_lg_pulse 2.6s ease-in-out infinite; }
@keyframes mcd_lg_pulse { 0%, 100% { opacity: 0.55; transform: scale(0.9); } 50% { opacity: 1; transform: scale(1.12); } }
@media (prefers-reduced-motion: reduce) { .mcd_lg_training i { animation: none; } }

/* Colour = kind, look = progress (Trish 28 Nov): ability green, taught gold, rule pink, goals purple (by their
   advancement). built dim solid · learning outline only, pulsing · trained solid, still · learned bright, glowing,
   with a star · failing broken red ring · being tested now a ripple. The status chips are neutral – shapes only. */
.mcd_node.mcd_kind_ability .mcd_dot { fill: #3fd77f; stroke: #3fd77f; }
.mcd_node.mcd_kind_learned .mcd_dot { fill: #f0c36e; stroke: #f0c36e; }
.mcd_node.mcd_s_built .mcd_dot { opacity: 0.42; filter: none; }
.mcd_node.mcd_s_training .mcd_dot { fill-opacity: 0; stroke-width: 1.8; }
.mcd_node.mcd_s_trained .mcd_dot { fill-opacity: 1; stroke-width: 1.5; filter: none; animation: none; }
.mcd_node.mcd_s_learned .mcd_dot { fill-opacity: 1; filter: drop-shadow(0 0 5px rgba(120, 255, 170, 0.85)); }
.mcd_node.mcd_kind_learned.mcd_s_learned .mcd_dot { filter: drop-shadow(0 0 5px rgba(255, 210, 120, 0.85)); }
.mcd_node.mcd_s_learned .mcd_spark_mark { display: inline; fill: #ffffff; }
.mcd_node.mcd_s_planned .mcd_dot { fill: var(--mcd-bg); }
.mcd_lg_ability i { background: #3fd77f; }
.mcd_lg_taught i { background: #f0c36e; }
.mcd_lg_rule i { background: #ff78aa; }
.mcd_lg_learned i { background: #e8edf2; box-shadow: 0 0 6px rgba(255, 255, 255, 0.8); }
.mcd_lg_trained i { width: 10px; height: 10px; background: #b8c2cc; box-shadow: none; }
.mcd_lg_training i { width: 10px; height: 10px; background: none; box-shadow: 0 0 0 1.5px #b8c2cc inset; }
.mcd_lg_built i { background: #b8c2cc; opacity: 0.42; box-shadow: none; }

/* clearer steps (Trish 28 Nov, from Server 3's check): trained = solid + a thin bright ring; learning = outline +
   a small filled centre. The kind colour comes from the node's kind class. */
.mcd_node.mcd_kind_ability { color: #3fd77f; }
.mcd_node.mcd_kind_learned { color: #f0c36e; }
.mcd_trained_ring { fill: none; stroke: #ebfff0; stroke-width: 1.2; pointer-events: none; }
.mcd_learn_core { fill: currentColor; pointer-events: none; animation: mcd_learnpulse_core 2.6s ease-in-out infinite; }
@keyframes mcd_learnpulse_core { 0%, 100% { opacity: 0.6; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .mcd_learn_core { animation: none; } }
.mcd_lg_trained i { width: 9px; height: 9px; background: #b8c2cc; box-shadow: 0 0 0 1.5px var(--mcd-bg), 0 0 0 2.7px #ebfff0; }
.mcd_lg_training i { width: 10px; height: 10px; background: radial-gradient(circle, #b8c2cc 0 28%, transparent 32%); box-shadow: 0 0 0 1.5px #b8c2cc inset; }

/* her experience in the tooltip (29 Nov) */
.mcd_tip_exp { color: #c9d6e2; }
.mcd_tip_exp_head { margin-top: 4px; padding-top: 5px; border-top: 1px solid rgba(255, 255, 255, 0.08); color: #e6eef5; }

/* the phase A chain Sense → Explore → Seek (29 Nov): always shown, clearer than other not-yet-proven links */
.mcd_edge.mcd_pchain { stroke: #7fe6f2; stroke-opacity: 0.75; stroke-dasharray: 5 4; stroke-width: 1.5; }
.mcd_tip_chain { color: #7fe6f2; }

/* the static strip under the map (29 Nov): Talk band + "Not linked yet", flowing and wrapping */
.mcd_panel { position: relative; }
.mcd_static { display: flex; flex-direction: column; gap: 12px; padding: 12px 14px 4px; }
.mcd_static:empty { display: none; }
.mcd_hbox { border: 1px dashed var(--mcd-line); border-radius: 10px; padding: 9px 12px 11px; }
.mcd_hbox_loose { border-width: 1px 0 0; border-style: solid; border-radius: 0; padding: 10px 0 0; }
.mcd_hbox_t { font-size: 13px; font-weight: 600; color: var(--mcd-text); }
.mcd_hbox_sub { margin-top: 1px; font-size: 11.5px; color: var(--mcd-muted); }
.mcd_hflow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 20px; margin-top: 7px; }
.mcd_hitem { display: inline-flex; align-items: center; gap: 5px; }
.mcd_hnode { display: inline-flex; align-items: center; gap: 5px; padding: 1px 3px; border-radius: 6px; font-size: 12.5px; color: var(--mcd-text); cursor: pointer; outline: none; }
.mcd_hnode:focus-visible { box-shadow: 0 0 0 2px var(--mcd-hid); }
.mcd_hnode.mcd_off { opacity: 0.45; }
.mcd_hnode.mcd_s_built .mcd_hlabel, .mcd_hnode.mcd_s_planned .mcd_hlabel { color: var(--mcd-muted); }
.mcd_hdot { flex: none; overflow: visible; }
.mcd_hplanned { font-size: 10.5px; font-style: italic; color: var(--mcd-muted); }
.mcd_hmore { padding: 0 7px; border: 1px solid var(--mcd-line); border-radius: 9px; background: transparent; color: var(--mcd-muted); font: inherit; font-size: 11px; line-height: 17px; cursor: pointer; }
.mcd_hmore:focus-visible, .mcd_hgroup_btn:focus-visible { outline: 2px solid var(--mcd-hid); outline-offset: 1px; }
.mcd_hgroup_btn { padding: 2px 0; border: 0; background: none; color: var(--mcd-text); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.mcd_hgroup_open { flex-basis: 100%; }
.mcd_hsub { margin: 3px 0 2px 14px; }
.mcd_hnode .mcd_hlabel { color: var(--mcd-text); }
.mcd_hnode.mcd_s_built .mcd_hlabel, .mcd_hnode.mcd_s_planned .mcd_hlabel { color: var(--mcd-muted); }
.mcd_hnode.mcd_s_training .mcd_hlabel, .mcd_hnode.mcd_s_learning .mcd_hlabel, .mcd_hnode.mcd_s_trained .mcd_hlabel, .mcd_hnode.mcd_s_learned .mcd_hlabel, .mcd_hnode.mcd_s_failing .mcd_hlabel { font-weight: 600; }
/* the tooltip at 80% (Trish 29 Nov): the map shows through its background; the text stays fully readable */
.mcd_tip { background: color-mix(in srgb, var(--mcd-tip-bg) 80%, transparent); }

/* the tooltip wider and shorter (Trish 29 Nov) */
.mcd_tip { width: max-content; max-width: min(460px, calc(100% - 12px)); }

/* the tooltip in sections (Trish 29 Nov): a header over up to three columns; they stack when narrow */
.mcd_tip { max-width: min(720px, calc(100% - 12px)); }
.mcd_tip > .mcd_tip_head, .mcd_tip > .mcd_tip_cols { display: block; }
.mcd_tip_head > * { display: block; }
.mcd_tip_cols { display: flex !important; flex-wrap: wrap; gap: 6px 18px; margin-top: 6px; }
.mcd_tip_col { display: flex; flex-direction: column; flex: 1 1 200px; min-width: 0; max-width: 260px; }
.mcd_tip_cols_1 .mcd_tip_col, .mcd_tip_cols:not([class*="mcd_tip_cols_"]) .mcd_tip_col { max-width: none; }
.mcd_tip_col + .mcd_tip_col { padding-left: 14px; border-left: 1px solid rgba(255, 255, 255, 0.08); }
.mcd_tip_col > * { display: block; }
.mcd_tip_col .mcd_tip_status { margin-top: 0; }
.mcd_tip_col .mcd_tip_exp_head { margin-top: 4px; }
@media (max-width: 600px) { .mcd_tip_col { flex-basis: 100%; max-width: none; } .mcd_tip_col + .mcd_tip_col { padding-left: 0; border-left: 0; padding-top: 5px; border-top: 1px solid rgba(255, 255, 255, 0.08); } }

/* the full pairs (Trish 29 Nov): Building → Built, Training → Trained, Learning → Learned. Building (a dashed ring)
   and Learning (a single bright dot) breathe like Training */
.mcd_lg_building i { width: 10px; height: 10px; background: none; border: 1.5px dashed #b8c2cc; box-sizing: border-box; box-shadow: none; opacity: 0.75; animation: mcd_lg_pulse 2.6s ease-in-out infinite; }
.mcd_lg_learning i { width: 10px; height: 10px; background: radial-gradient(circle, #e8edf2 0 36%, transparent 42%); box-shadow: 0 0 0 1.5px #e8edf2 inset, 0 0 5px rgba(255, 255, 255, 0.55); animation: mcd_lg_pulse 2.6s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .mcd_lg_building i, .mcd_lg_learning i { animation: none; } }
/* Training = the outer ring alone, pulsing; Learning = a single bright dot, pulsing the same way (Trish 29 Nov) */
.mcd_lg_training i { width: 10px; height: 10px; background: none; box-shadow: 0 0 0 1.5px #b8c2cc inset; }
.mcd_lg_learning i { width: 9px; height: 9px; background: #e8edf2; border: 0; box-shadow: 0 0 6px rgba(255, 255, 255, 0.8); }

/* Learning and Building on the map itself (29 Nov – the data's own states): learning a solid dot that pulses like
   training's ring; building a dashed ring, pulsing */
.mcd_node.mcd_s_learning .mcd_dot { animation: mcd_dotpulse 2.6s ease-in-out infinite; }
.mcd_node.mcd_s_building .mcd_dot { fill-opacity: 0; stroke-width: 1.5; stroke-dasharray: 2 2.4; animation: mcd_dotpulse 2.6s ease-in-out infinite; }
@keyframes mcd_dotpulse { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; } }
.mcd_ts_learning { color: #e8edf2; }
.mcd_more_k_learning .mcd_more_bg { stroke: var(--mcd-hid); stroke-width: 2; animation: mcd_morepulse 2.6s ease-in-out infinite; }
.mcd_more_k_learning .mcd_more_text { fill: var(--mcd-text); }
@media (prefers-reduced-motion: reduce) { .mcd_node.mcd_s_learning .mcd_dot, .mcd_node.mcd_s_building .mcd_dot, .mcd_more_k_learning .mcd_more_bg { animation: none; } }
