:root {
    --vex-ink: #162033;
    --vex-muted: #64748b;
    --vex-panel: rgba(255, 255, 255, .96);
    --vex-line: rgba(37, 99, 235, .3);
}

.vex-host { min-height: 0; width: 100%; }
.vex-shell { --vex-text-scale: 1.2; min-height: min(680px, calc(100dvh - 132px)); height: clamp(520px, calc(100dvh - 132px), 980px); display: flex; flex-direction: column; overflow: hidden; border: 1px solid #dbe4f0; border-radius: 22px; color: var(--vex-ink); background: #fff; box-shadow: 0 22px 70px rgba(15, 23, 42, .12); }
.vex-toolbar { min-height: 64px; padding: 10px 16px; display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; gap: 16px; background: #fff; border-bottom: 1px solid #e2e8f0; }
.vex-problem-selector { min-width: 0; flex: 1 1 auto; display: flex; align-items: center; gap: 10px; }
.vex-problem-selector > span { flex: 0 0 auto; padding: 6px 9px; border-radius: 8px; color: #075985; background: #e0f2fe; font-size: calc(10px * var(--vex-text-scale, 1.2)); font-weight: 900; }
.vex-problem-selector > strong { min-width: 0; overflow: hidden; color: #162033; font-size: calc(14px * var(--vex-text-scale, 1.2)); font-weight: 850; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.vex-heading, .uv-heading { min-width: 0; display: flex; align-items: center; gap: 12px; }
.vex-brand-icon, .uv-brand-icon { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 10px; object-fit: cover; box-shadow: 0 7px 24px rgba(22, 135, 255, .2); }
.vex-toolbar h2 { margin: 1px 0 2px; font-size: 20px; font-weight: 900; letter-spacing: 0; }
.vex-toolbar p { margin: 0; color: var(--vex-muted); font-size: 12px; }
.vex-eyebrow { color: #1687ff; font-size: 9px; font-weight: 900; letter-spacing: .18em; }
.vex-toolbar-actions { display: flex; align-items: center; gap: 7px; }
.vex-toolbar-actions label { display: flex; align-items: center; gap: 8px; color: var(--vex-muted); font-size: 11px; font-weight: 700; }
.vex-toolbar-actions select, .vex-toolbar-actions button { min-height: 34px; border: 1px solid #d7e0ec; border-radius: 10px; background: #fff; color: #23314a; padding: 7px 10px; font-size: 11px; }
.vex-toolbar-actions button { min-width: 35px; cursor: pointer; transition: .18s ease; }
.vex-toolbar-actions button:hover { border-color: #1687ff; color: #1687ff; transform: translateY(-1px); }
.vex-toolbar-actions [data-vex-zoom] { min-width: 43px; text-align: center; color: #2563eb; font: 800 11px/1 system-ui; }
.vex-text-controls { display: flex; align-items: center; gap: 5px; }
.vex-text-controls > span { color: #64748b; font-size: calc(10px * var(--vex-text-scale, 1.2)); font-weight: 800; white-space: nowrap; }
.vex-toolbar-actions [data-vex-text-scale] { min-width: 45px; text-align: center; color: #0f766e; font: 800 11px/1 system-ui; }
.vex-toolbar-actions [data-vex-action^="text-"] { border-color: #99d5d1; color: #0f766e; background: #f0fdfa; }
.vex-toolbar-separator { width: 1px; height: 24px; flex: 0 0 auto; background: #e2e8f0; }
.vex-knowledge-context { min-height: 48px; padding: 7px 18px; display: flex; flex: 0 0 auto; align-items: center; gap: 12px; border-bottom: 1px solid #e2e8f0; color: #334155; background: #fff; }
.vex-knowledge-context[hidden] { display: none; }
.vex-knowledge-context label { display: flex; align-items: center; gap: 7px; flex: 0 0 auto; color: #334155; font-size: 10px; font-weight: 900; }
.vex-knowledge-context select { min-height: 32px; max-width: 220px; padding: 5px 26px 5px 9px; border: 1px solid #a9c7f2; border-radius: 9px; color: #173b73; background: #fff; font-size: 10px; font-weight: 750; }
.vex-knowledge-context nav { min-width: 0; display: none; align-items: center; gap: 5px; overflow: auto; white-space: nowrap; scrollbar-width: none; }
.vex-knowledge-context nav button { padding: 4px 7px; border: 0; border-radius: 7px; color: #1768e5; background: rgba(255,255,255,.8); font-size: 10px; cursor: pointer; }
.vex-knowledge-context nav span, .vex-knowledge-context nav i { color: #52637a; font-size: 10px; font-style: normal; }
.vex-knowledge-context > small { margin-left: auto; color: #64748b; font-size: 9px; white-space: nowrap; }
.vex-stage { position: relative; min-height: 0; height: auto; flex: 1 1 0; overflow: hidden; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; background: #fff; }
.vex-shell.has-knowledge-context .vex-stage { height: auto; }
.vex-stage.is-dragging { cursor: grabbing; }
.vex-grid { position: absolute; z-index: 0; inset: 0; opacity: .7; pointer-events: none; background-image: linear-gradient(rgba(148, 163, 184, .09) 1px, transparent 1px), linear-gradient(90deg, rgba(148, 163, 184, .09) 1px, transparent 1px); background-size: 34px 34px; mask-image: radial-gradient(circle at center, #000 22%, transparent 92%); }
.vex-world { position: absolute; z-index: 1; left: 0; top: 0; width: 2600px; height: 1800px; transform-origin: 0 0; will-change: transform; }
.vex-edges, .vex-nodes { position: absolute; inset: 0; width: 2600px; height: 1800px; overflow: visible; }
.vex-edges, .vex-nodes { pointer-events: none; }
.vex-edge { fill: none; stroke: var(--vex-line); stroke-width: 2.2; stroke-dasharray: 7 7; vector-effect: non-scaling-stroke; animation: vex-flow 1.8s linear infinite; }
@keyframes vex-flow { to { stroke-dashoffset: -28; } }
.vex-node { --vex-accent: #1687ff; position: absolute; width: 276px; min-height: 150px; padding: 18px 42px 17px 18px; display: flex; flex-direction: column; justify-content: center; gap: 8px; text-align: left; border: 1px solid color-mix(in srgb, var(--vex-accent), #dbe4f0 62%); border-radius: 17px; color: #162033; background: linear-gradient(145deg, color-mix(in srgb, var(--vex-accent), white 95%), #fff); box-shadow: 0 14px 36px rgba(30, 64, 175, .1); cursor: pointer; overflow: hidden; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; pointer-events: auto; user-select: none; -webkit-user-select: none; }
.vex-node:focus-visible { outline: 2px solid #67e8f9; outline-offset: 3px; }
.vex-node:hover, .vex-node[aria-pressed="true"] { transform: translateY(-5px); border-color: var(--vex-accent); box-shadow: 0 18px 46px color-mix(in srgb, var(--vex-accent), transparent 78%); }
.vex-node-image { display: none !important; }
.vex-node-kind { align-self: flex-start; padding: 3px 7px; border-radius: 999px; color: color-mix(in srgb, var(--vex-accent), #0f172a 34%); background: color-mix(in srgb, var(--vex-accent), white 88%); font-size: calc(9px * var(--vex-text-scale, 1.2)); font-weight: 900; letter-spacing: .06em; }
.vex-node strong { padding-right: 4px; font-size: calc(14px * var(--vex-text-scale, 1.2)); line-height: 1.35; overflow-wrap: anywhere; }
.vex-node small { color: var(--vex-muted); font-size: calc(10px * var(--vex-text-scale, 1.2)); line-height: 1.5; overflow-wrap: anywhere; }
.vex-node em { color: #b45309; font-size: calc(9px * var(--vex-text-scale, 1.2)); font-style: normal; }
.vex-node-expand { position: absolute; z-index: 3; top: 8px; right: 8px; width: 29px; height: 29px; display: grid; place-items: center; padding: 0; border: 1px solid color-mix(in srgb, var(--vex-accent), #dbe4f0 58%); border-radius: 9px; color: #2563eb; background: rgba(255, 255, 255, .94); box-shadow: 0 7px 18px rgba(15, 23, 42, .12); cursor: pointer; opacity: .82; transition: .18s ease; }
.vex-node:hover .vex-node-expand, .vex-node:focus-within .vex-node-expand, .vex-node-expand:focus-visible { opacity: 1; border-color: var(--vex-accent); transform: scale(1.04); }
.vex-node--root { width: 292px; border-width: 2px; }
.vex-node--knowledge-map { --vex-accent: #0e9f9a !important; border-width: 2px; background: linear-gradient(145deg, #effcfb, #fff); }
.vex-node--knowledge-current { width: 292px; box-shadow: 0 16px 42px rgba(14,159,154,.16); }
.vex-node--knowledge-related { border-style: dashed; }
.vex-edge--knowledge { stroke: rgba(14,159,154,.58); stroke-dasharray: 3 5; }
.vex-edge--bridge { stroke: rgba(124,58,237,.7); stroke-width: 3; stroke-dasharray: 10 5; }
.vex-node.is-ended { opacity: .68; filter: grayscale(.22); }
.vex-inspector { position: absolute; z-index: 30; right: 18px; bottom: 18px; width: min(370px, calc(100% - 36px)); max-height: calc(100% - 36px); padding: 14px; overflow: auto; border: 1px solid #dbe4f0; border-radius: 18px; color: #162033; background: rgba(255, 255, 255, .97); box-shadow: 0 24px 64px rgba(15, 23, 42, .18); backdrop-filter: blur(18px); opacity: 0; transform: translateY(18px); pointer-events: none; transition: .22s ease; cursor: default; user-select: text; -webkit-user-select: text; }
.vex-inspector.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.vex-inspector-visual { display: none !important; }
.vex-inspector-copy { padding: 2px 2px 7px; }
.vex-inspector-copy span { color: #1687ff; font-size: calc(9px * var(--vex-text-scale, 1.2)); font-weight: 900; letter-spacing: .12em; }
.vex-inspector-copy h3 { margin: 4px 0 5px; font-size: calc(17px * var(--vex-text-scale, 1.2)); }
.vex-inspector-markdown { max-height: 270px; overflow: auto; color: #475569; font-size: calc(11px * var(--vex-text-scale, 1.2)); line-height: 1.58; overflow-wrap: anywhere; }
.vex-inspector-markdown > :first-child { margin-top: 0; }
.vex-inspector-markdown > :last-child { margin-bottom: 0; }
.vex-inspector-markdown p { margin: 0 0 8px; }
.vex-inspector-markdown ul, .vex-inspector-markdown ol { margin: 6px 0 9px; padding-left: 21px; }
.vex-inspector-markdown li + li { margin-top: 4px; }
.vex-inspector-markdown pre { max-width: 100%; margin: 8px 0; padding: 10px; overflow: auto; border: 1px solid #dbe4f0; border-radius: 9px; color: #1e293b; background: #f8fafc; white-space: pre; }
.vex-inspector-markdown code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.vex-inspector-markdown :not(pre) > code { padding: 1px 4px; border-radius: 4px; color: #0369a1; background: #e0f2fe; }
.vex-inspector-markdown blockquote { margin: 8px 0; padding-left: 10px; border-left: 3px solid #7dd3fc; color: #475569; }
.vex-inspector-expand { margin-top: 9px; padding: 6px 9px; border: 1px solid #bae6fd; border-radius: 9px; color: #0369a1; background: #f0f9ff; font-size: 10px; font-weight: 800; cursor: pointer; }
.vex-dialog-label { display: block; margin: 6px 0; color: #475569; font-size: 10px; font-weight: 800; }
.vex-inspector textarea { width: 100%; min-height: 78px; resize: vertical; border: 1px solid #cbd5e1; border-radius: 12px; outline: none; padding: 10px 11px; color: #162033; background: #fff; font-size: 11px; line-height: 1.5; }
.vex-inspector textarea:focus { border-color: #38bdf8; box-shadow: 0 0 0 3px rgba(56, 189, 248, .12); }
.vex-dialog-actions { display: flex; gap: 8px; margin-top: 9px; }
.vex-dialog-actions button { flex: 1; min-height: 36px; border: 1px solid #1d8fff; border-radius: 11px; color: white; background: linear-gradient(135deg, #2563eb, #0ea5e9); font-size: 11px; font-weight: 900; cursor: pointer; }
.vex-dialog-actions button.secondary { border-color: #cbd5e1; color: #475569; background: #f8fafc; }
.vex-dialog-actions button:disabled { opacity: .45; cursor: not-allowed; }
.vex-dialog-status { margin: 8px 1px 0; color: #64748b; font-size: 9px; line-height: 1.4; }
.vex-knowledge-inspector > span { color: #0e9f9a; font-size: 9px; font-weight: 900; letter-spacing: .12em; }
.vex-knowledge-inspector h3 { margin: 5px 0 7px; font-size: 18px; }
.vex-knowledge-inspector > p { margin: 0 0 10px; color: #475569; font-size: 11px; line-height: 1.62; }
.vex-knowledge-inspector > small { display: inline-block; margin-bottom: 10px; padding: 3px 7px; border-radius: 999px; color: #0f766e; background: #ccfbf1; font-size: 9px; }
.vex-knowledge-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0; }
.vex-knowledge-controls label { display: grid; gap: 5px; color: #475569; font-size: 9px; font-weight: 850; }
.vex-knowledge-controls select { min-width: 0; min-height: 36px; padding: 7px; border: 1px solid #b6d8d6; border-radius: 9px; color: #134e4a; background: #fff; font-size: 10px; }
.vex-knowledge-guide { margin: 10px 0; padding: 10px; border: 1px solid #ccfbf1; border-radius: 11px; background: #f0fdfa; }
.vex-knowledge-guide strong { color: #115e59; font-size: 11px; }
.vex-knowledge-guide p { margin: 4px 0 0; color: #475569; font-size: 10px; line-height: 1.5; }
.vex-knowledge-guide dl { display: grid; gap: 7px; margin: 8px 0 0; }
.vex-knowledge-guide dl div { display: grid; gap: 2px; }
.vex-knowledge-guide dt { color: #0f766e; font-size: 9px; font-weight: 850; }
.vex-knowledge-guide dd { margin: 0; color: #475569; font-size: 10px; line-height: 1.45; }
.vex-knowledge-level-restriction { padding: 7px 8px; border-radius: 8px; color: #9a3412 !important; background: #fff7ed; }
.vex-knowledge-primary { width: 100%; min-height: 38px; padding: 8px 11px; border: 1px solid #0e9f9a; border-radius: 10px; color: #fff; background: linear-gradient(135deg, #0f766e, #0ea5e9); font-size: 10px; font-weight: 900; cursor: pointer; }
.vex-knowledge-primary + .vex-knowledge-primary { margin-top: 8px; }
.vex-knowledge-tags, .vex-node-tags { display: flex; flex-wrap: wrap; gap: 5px; margin: 7px 0; }
.vex-knowledge-tags em, .vex-node-tags em { padding: 3px 7px; border-radius: 999px; color: #155e75; background: #ecfeff; font-size: 9px; font-style: normal; font-weight: 800; }
.vex-node-tags { margin: 2px 0 5px; }
.vex-node-tags em { padding: 2px 5px; font-size: 8px; }
.vex-knowledge-levels { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; margin: 12px 0; padding: 0; border: 0; }
.vex-knowledge-levels legend { grid-column: 1 / -1; margin-bottom: 3px; color: #475569; font-size: 9px; font-weight: 850; }
.vex-knowledge-levels button { display: grid; min-width: 0; min-height: 34px; place-content: center; gap: 2px; padding: 7px 2px; border: 1px solid #bfdbfe; border-radius: 8px; color: #1e40af; background: #eff6ff; font-size: 9px; font-weight: 900; cursor: pointer; }
.vex-knowledge-levels button strong { font: inherit; }
.vex-knowledge-levels button small { overflow: hidden; max-width: 100%; color: #9a3412; font-size: 7px; font-weight: 650; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.vex-knowledge-levels button[aria-pressed="true"] { border-color: #2563eb; color: #fff; background: #2563eb; }
.vex-knowledge-levels button:disabled { border-color: #fed7aa; color: #9a3412; background: #fff7ed; cursor: not-allowed; opacity: .82; }
.vex-knowledge-levels button:disabled[aria-pressed="true"] { outline: 2px solid #fb923c; outline-offset: 1px; }
.vex-knowledge-controls > button, .vex-knowledge-candidate-actions > button { min-height: 36px; padding: 7px 9px; border: 1px solid #99d5d1; border-radius: 9px; color: #115e59; background: #f0fdfa; font-size: 9px; font-weight: 850; cursor: pointer; }
.vex-knowledge-reason { margin: 8px 0; padding: 8px; border-left: 3px solid #14b8a6; color: #334155; background: #f0fdfa; font-size: 9px; line-height: 1.5; }
.vex-knowledge-confirm-summary { margin: 9px 0; padding: 9px 10px; border: 1px solid #99f6e4; border-radius: 10px; color: #134e4a; background: #ecfdf5; font-size: 10px; font-weight: 750; line-height: 1.5; }
.vex-knowledge-candidate-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 12px; }
.vex-knowledge-candidate-actions .vex-knowledge-primary { min-height: 36px; }
.vex-learning-overview { margin: 11px 0; padding: 11px; border: 1px solid #dbeafe; border-radius: 13px; background: #f8fbff; }
.vex-overview-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 9px; }
.vex-overview-tags em { padding: 3px 7px; border-radius: 999px; color: #075985; background: #e0f2fe; font-size: 8px; font-style: normal; font-weight: 850; }
.vex-learning-overview dl { display: grid; gap: 7px; margin: 0; }
.vex-learning-overview dl > div { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 8px; }
.vex-learning-overview dt { color: #64748b; font-size: 9px; font-weight: 800; }
.vex-learning-overview dd { margin: 0; color: #1e293b; font-size: 10px; line-height: 1.5; overflow-wrap: anywhere; }
.vex-learning-points { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0; }
.vex-learning-points > section { padding: 8px; border-radius: 9px; background: #fff; }
.vex-learning-points h4, .vex-m2-level-contract h4 { margin: 0 0 6px; color: #334155; font-size: 9px; }
.vex-learning-points ul { margin: 0; padding-left: 16px; color: #475569; font-size: 9px; line-height: 1.5; }
.vex-inspector-empty { margin: 0; color: #94a3b8; font-size: 9px; }
.vex-m2-level-contract { margin-top: 10px; }
.vex-m2-level-contract ol { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; margin: 0; padding: 0; list-style: none; }
.vex-m2-level-contract li { min-width: 0; padding: 5px 3px; border: 1px solid #dbe4f0; border-radius: 7px; text-align: center; background: #fff; }
.vex-m2-level-contract li strong, .vex-m2-level-contract li span { display: block; }
.vex-m2-level-contract li strong { color: #1e40af; font-size: 9px; }
.vex-m2-level-contract li span { overflow: hidden; margin-top: 2px; color: #64748b; font-size: 7px; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.vex-m2-level-contract li.is-current { border-color: #2563eb; background: #eff6ff; box-shadow: inset 0 0 0 1px #2563eb; }
.vex-m2-level-contract > p { margin: 6px 0 0; color: #9a3412; font-size: 8px; line-height: 1.4; }
.vex-hint { position: absolute; left: 18px; bottom: 16px; color: #94a3b8; font-size: 10px; pointer-events: none; }
.vex-empty { position: absolute; left: 36vw; top: 34vh; width: 390px; text-align: center; color: #64748b; }
.vex-empty span { display: block; color: #1687ff; font-size: 42px; filter: drop-shadow(0 0 16px rgba(22, 135, 255, .28)); animation: vex-pulse 2.2s ease-in-out infinite; }
.vex-empty strong { display: block; margin: 10px 0 4px; color: #162033; font-size: 18px; }
.vex-empty p { font-size: 12px; line-height: 1.6; }
.vex-empty button { min-height: 40px; margin-top: 14px; padding: 8px 18px; border: 1px solid #2458b8; border-radius: 10px; color: #fff; background: #2458b8; font-size: 13px; font-weight: 800; cursor: pointer; }
.vex-empty button:hover { background: #173f82; }
.vex-empty button:focus-visible { outline: 3px solid rgba(36, 88, 184, .28); outline-offset: 3px; }
@keyframes vex-pulse { 50% { transform: scale(1.12); opacity: .72; } }

.vex-card-overlay { --vex-text-scale: 1.2; position: fixed; z-index: 995; inset: 0; display: grid; place-items: center; padding: 24px; background: rgba(15, 23, 42, .46); backdrop-filter: blur(16px); animation: uv-enter .22s ease both; }
.vex-card-dialog { width: min(1120px, 96vw); height: min(900px, 94dvh); max-height: 94dvh; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; overflow: hidden; border: 1px solid #dbe4f0; border-radius: 24px; color: #162033; background: #fff; box-shadow: 0 38px 120px rgba(15, 23, 42, .34); }
.vex-card-dialog > header { min-height: 78px; padding: 15px 18px 14px 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid #e2e8f0; }
.vex-card-dialog > header span { color: #1687ff; font-size: 9px; font-weight: 900; letter-spacing: .13em; }
.vex-card-dialog > header h2 { margin: 4px 0 0; font-size: clamp(18px, 2.2vw, 27px); }
.vex-card-dialog > header button { flex: 0 0 42px; width: 42px; height: 42px; padding: 0; border: 1px solid #dbe4f0; border-radius: 12px; color: #475569; background: #fff; font-size: 26px; cursor: pointer; }
.vex-card-body { min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; overflow: hidden; }
.vex-card-body figure { display: none !important; }
.vex-card-body article { min-height: 0; padding: 24px 26px; overflow: auto; user-select: text; -webkit-user-select: text; }
.vex-card-body article > strong { display: block; margin-bottom: 14px; color: #1687ff; font-size: 10px; letter-spacing: .12em; }
.vex-card-content { color: #334155; font-size: 14px; line-height: 1.82; white-space: pre-wrap; overflow-wrap: anywhere; }
.vex-card-content.markdown-body h1, .vex-card-content.markdown-body h2, .vex-card-content.markdown-body h3, .vex-card-content.markdown-body h4 { margin: 1.15em 0 .55em; color: #162033 !important; font-weight: 850; line-height: 1.35; }
.vex-card-content.markdown-body p { margin: 0 0 .8em; color: inherit; }
.vex-card-content.markdown-body ul, .vex-card-content.markdown-body ol { margin: .45em 0 .9em 1.5em; padding: 0; }
.vex-card-content.markdown-body ul { list-style: disc; }
.vex-card-content.markdown-body ol { list-style: decimal; }
.vex-card-content.markdown-body blockquote { margin: .8em 0; padding: .7em 1em; border-left: 3px solid #38bdf8; border-radius: 0 10px 10px 0; color: #475569 !important; background: #f0f9ff; }
.vex-card-content.markdown-body pre { padding: 13px 15px; overflow: auto; border: 1px solid #dbe4f0; border-radius: 12px; color: #1e293b; background: #f8fafc; white-space: pre; }
.vex-card-content.markdown-body code { color: #be123c; background: #fff1f2; }
.vex-card-dialogue { padding: 14px 18px 16px; border-top: 1px solid #e2e8f0; background: #fff; }
.vex-card-dialogue > label { display: block; margin-bottom: 7px; color: #334155; font-size: 11px; font-weight: 850; }
.vex-card-composer { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: stretch; gap: 10px; }
.vex-card-composer textarea { width: 100%; min-height: 74px; max-height: 160px; resize: vertical; padding: 11px 13px; outline: none; border: 1px solid #cbd5e1; border-radius: 12px; color: #162033; background: #fff; font-size: 12px; line-height: 1.55; }
.vex-card-composer textarea:focus { border-color: #38bdf8; box-shadow: 0 0 0 3px rgba(56,189,248,.12); }
.vex-card-dialog-actions { width: 138px; display: grid; grid-template-rows: 1fr 1fr; gap: 7px; }
.vex-card-dialog-actions button { min-height: 34px; padding: 7px 11px; border: 1px solid #1d8fff; border-radius: 10px; color: #fff; background: linear-gradient(135deg, #2563eb, #0ea5e9); font-size: 11px; font-weight: 900; cursor: pointer; }
.vex-card-dialog-actions button.secondary { border-color: #cbd5e1; color: #475569; background: #f8fafc; }
.vex-card-dialog-actions button:disabled { opacity: .45; cursor: wait; }
.vex-card-dialogue > p { min-height: 14px; margin: 7px 1px 0; color: #64748b; font-size: 9px; line-height: 1.4; }
.vex-card-dialogue.is-pending { opacity: .82; }

.vex-card-dialog--learning .vex-card-body { grid-template-columns: minmax(0, 1fr); }
.vex-card-dialog--learning .vex-card-body article { padding: 20px 24px 28px; }
.vex-learning-structure { margin-top: 18px; color: #1e293b; }
.vex-learning-structure > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.vex-learning-structure > header span { color: #0f766e; font-size: 10px; font-weight: 900; letter-spacing: .08em; }
.vex-learning-structure > header h3 { margin: 3px 0 0; font-size: 18px; line-height: 1.35; }
.vex-learning-structure > header > strong { color: #0f766e; font-size: 15px; }
.vex-learning-progress { height: 7px; overflow: hidden; border-radius: 999px; background: #e2e8f0; }
.vex-learning-progress i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #0e9f9a, #2563eb); }
.vex-learning-constraints { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 14px; }
.vex-learning-constraints span { padding: 5px 8px; border: 1px solid #dbe4f0; border-radius: 9px; color: #475569; background: #f8fafc; font-size: 9px; }
.vex-learning-constraints b { margin-right: 5px; color: #0f766e; }
.vex-learning-units { display: grid; gap: 9px; }
.vex-learning-unit { border: 1px solid #dbe4f0; border-radius: 12px; background: #fff; }
.vex-learning-unit[open] { border-color: #99d5d1; box-shadow: 0 8px 24px rgba(15,118,110,.08); }
.vex-learning-unit > summary { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 9px; padding: 11px 12px; cursor: pointer; list-style-position: inside; }
.vex-learning-unit > summary span { color: #0f766e; font-size: 9px; font-weight: 900; }
.vex-learning-unit > summary strong { overflow-wrap: anywhere; font-size: 12px; }
.vex-learning-unit > summary em { color: #64748b; font-size: 9px; font-style: normal; }
.vex-learning-unit-body { padding: 0 12px 12px; color: #475569; font-size: 11px; line-height: 1.58; }
.vex-learning-unit-body > p { margin: 6px 0; }
.vex-learning-unit-body h5 { margin: 8px 0 4px; color: #334155; }
.vex-learning-unit-body ul { margin: 0; padding-left: 18px; }
.vex-learning-children { display: grid; gap: 7px; margin: 10px 0 0 14px; padding-left: 10px; border-left: 2px solid #ccfbf1; }
.vex-learning-unit-actions { display: flex; justify-content: flex-end; align-items: center; gap: 8px; flex-wrap: wrap; margin: 9px 0; }
.vex-learning-expansion-limit { color: #64748b; font-size: 9px; }
.vex-learning-active-round { display: inline-flex; margin: 4px 0; color: #0f766e; font-size: 9px; font-weight: 800; }
.vex-learning-completion-actions { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 8px; }
.vex-learning-completion-actions button { min-height: 30px; padding: 5px 9px; border: 1px solid #cbd5e1; border-radius: 8px; color: #334155; background: #fff; font-size: 9px; font-weight: 800; cursor: pointer; }
.vex-sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }
.vex-learning-unit-actions button, .vex-learning-note button, .vex-learning-round-composer button { min-height: 32px; padding: 6px 10px; border: 1px solid #0e9f9a; border-radius: 9px; color: #fff; background: #0f766e; font-size: 9px; font-weight: 850; cursor: pointer; }
.vex-learning-rounds { margin-top: 12px; padding: 10px; border: 1px solid #e2e8f0; border-radius: 10px; background: #f8fafc; }
.vex-learning-rounds h4 { margin: 0 0 7px; color: #334155; font-size: 10px; }
.vex-learning-rounds ol { margin: 0 0 8px; padding: 0; list-style: none; }
.vex-learning-rounds li { margin-bottom: 6px; padding: 7px 8px; border-radius: 8px; background: #fff; }
.vex-learning-rounds li header { display: flex; justify-content: space-between; color: #0f766e; font-size: 9px; }
.vex-learning-rounds li p, .vex-learning-empty-line, .vex-learning-round-limit { margin: 4px 0 0; color: #64748b; font-size: 9px; line-height: 1.5; }
.vex-learning-round-composer { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 7px; }
.vex-learning-round-composer textarea { min-height: 58px; resize: vertical; padding: 8px; border: 1px solid #cbd5e1; border-radius: 9px; font-size: 10px; }
.vex-learning-note { display: grid; grid-template-columns: minmax(0,1fr) 180px auto; align-items: end; gap: 8px; margin-top: 14px; padding: 12px; border: 1px solid #bfdbfe; border-radius: 12px; background: #eff6ff; }
.vex-learning-note label { display: grid; gap: 5px; color: #334155; font-size: 9px; font-weight: 850; }
.vex-learning-note textarea, .vex-learning-note input { width: 100%; min-height: 36px; padding: 8px; border: 1px solid #bfdbfe; border-radius: 8px; background: #fff; font-size: 10px; }
.vex-learning-note textarea { min-height: 62px; resize: vertical; }
.vex-learning-note p { grid-column: 1 / -1; min-height: 14px; margin: 0; color: #0f766e; font-size: 9px; }
.vex-learning-empty { padding: 22px; border: 1px dashed #99d5d1; border-radius: 12px; text-align: center; background: #f0fdfa; }
.vex-learning-empty strong { display: block; color: #115e59; }
.vex-learning-empty p, .vex-learning-truncated { color: #64748b; font-size: 10px; line-height: 1.55; }

/* Text enlargement is independent from the map viewport scale. */
.vex-toolbar-actions label,
.vex-toolbar-actions select,
.vex-toolbar-actions button { font-size: calc(11px * var(--vex-text-scale, 1.2)); }
.vex-toolbar-actions [data-vex-zoom],
.vex-toolbar-actions [data-vex-text-scale] { font-size: calc(11px * var(--vex-text-scale, 1.2)); }
.vex-knowledge-context label,
.vex-knowledge-context select,
.vex-knowledge-context nav button,
.vex-knowledge-context nav span,
.vex-knowledge-context nav i { font-size: calc(10px * var(--vex-text-scale, 1.2)); }
.vex-knowledge-context > small { font-size: calc(9px * var(--vex-text-scale, 1.2)); }
.vex-node-tags em { font-size: calc(8px * var(--vex-text-scale, 1.2)); }
.vex-dialog-label,
.vex-inspector textarea,
.vex-dialog-actions button,
.vex-inspector-expand { font-size: calc(10px * var(--vex-text-scale, 1.2)); }
.vex-dialog-status,
.vex-knowledge-inspector > span,
.vex-knowledge-inspector > small,
.vex-knowledge-controls label,
.vex-knowledge-guide dt,
.vex-knowledge-tags em,
.vex-knowledge-levels legend,
.vex-knowledge-levels button,
.vex-knowledge-controls > button,
.vex-knowledge-candidate-actions > button,
.vex-knowledge-reason,
.vex-learning-overview dt,
.vex-learning-points h4,
.vex-m2-level-contract h4,
.vex-learning-points ul,
.vex-inspector-empty,
.vex-m2-level-contract li strong { font-size: calc(9px * var(--vex-text-scale, 1.2)); }
.vex-knowledge-inspector h3 { font-size: calc(18px * var(--vex-text-scale, 1.2)); }
.vex-knowledge-inspector > p,
.vex-knowledge-guide strong { font-size: calc(11px * var(--vex-text-scale, 1.2)); }
.vex-knowledge-controls select,
.vex-knowledge-guide p,
.vex-knowledge-guide dd,
.vex-knowledge-primary,
.vex-knowledge-confirm-summary,
.vex-learning-overview dd { font-size: calc(10px * var(--vex-text-scale, 1.2)); }
.vex-overview-tags em,
.vex-m2-level-contract > p { font-size: calc(8px * var(--vex-text-scale, 1.2)); }
.vex-knowledge-levels button small,
.vex-m2-level-contract li span { font-size: calc(7px * var(--vex-text-scale, 1.2)); }
.vex-card-dialog > header span,
.vex-card-body article > strong,
.vex-learning-structure > header span,
.vex-learning-rounds h4,
.vex-learning-round-composer textarea,
.vex-learning-note textarea,
.vex-learning-note input,
.vex-learning-empty p,
.vex-learning-truncated { font-size: calc(10px * var(--vex-text-scale, 1.2)); }
.vex-card-dialog > header h2 { font-size: clamp(calc(18px * var(--vex-text-scale, 1.2)), calc(2.2vw * var(--vex-text-scale, 1.2)), calc(27px * var(--vex-text-scale, 1.2))); }
.vex-card-content { font-size: calc(14px * var(--vex-text-scale, 1.2)); }
.vex-card-dialogue > label,
.vex-card-dialog-actions button,
.vex-learning-unit-body { font-size: calc(11px * var(--vex-text-scale, 1.2)); }
.vex-card-composer textarea,
.vex-learning-unit > summary strong { font-size: calc(12px * var(--vex-text-scale, 1.2)); }
.vex-card-dialogue > p,
.vex-learning-constraints span,
.vex-learning-unit > summary span,
.vex-learning-unit > summary em,
.vex-learning-expansion-limit,
.vex-learning-active-round,
.vex-learning-completion-actions button,
.vex-learning-unit-actions button,
.vex-learning-note button,
.vex-learning-round-composer button,
.vex-learning-rounds li header,
.vex-learning-rounds li p,
.vex-learning-empty-line,
.vex-learning-round-limit,
.vex-learning-note label,
.vex-learning-note p { font-size: calc(9px * var(--vex-text-scale, 1.2)); }
.vex-learning-structure > header h3 { font-size: calc(18px * var(--vex-text-scale, 1.2)); }
.vex-learning-structure > header > strong { font-size: calc(15px * var(--vex-text-scale, 1.2)); }

.uv-overlay { position: fixed; z-index: 980; inset: 0; padding: 18px; background: rgba(1, 4, 14, .88); backdrop-filter: blur(20px); animation: uv-enter .32s ease both; }
@keyframes uv-enter { from { opacity: 0; transform: scale(.985); } }
.uv-shell { height: 100%; overflow: hidden; border: 1px solid rgba(103, 232, 249, .22); border-radius: 25px; color: #edf8ff; background: #020617; box-shadow: 0 40px 120px rgba(0,0,0,.7); }
.uv-header { height: 80px; padding: 14px 18px 14px 24px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(148, 163, 184, .14); background: linear-gradient(180deg, rgba(9, 20, 44, .98), rgba(2, 6, 23, .94)); }
.uv-header span { color: #67e8f9; font-size: 9px; font-weight: 900; letter-spacing: .2em; }
.uv-header h2 { margin: 3px 0 0; max-width: 66vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 22px; }
.uv-actions { display: flex; align-items: center; gap: 8px; }
.uv-actions button { min-height: 38px; padding: 8px 13px; border: 1px solid rgba(148, 163, 184, .22); border-radius: 11px; color: #dbeafe; background: rgba(15, 23, 42, .72); font-size: 11px; font-weight: 800; cursor: pointer; }
.uv-actions .uv-close { width: 40px; padding: 0; font-size: 24px; }
.uv-main { display: grid; grid-template-columns: minmax(0, 1fr) clamp(280px, 21vw, 350px); height: calc(100% - 80px); min-height: 0; }
.uv-space { position: relative; min-width: 0; overflow: hidden; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; background: radial-gradient(circle at 50% 48%, rgba(67, 56, 202, .13), transparent 43%), #020617; }
.uv-space.is-dragging { cursor: grabbing; }
.uv-stars, .uv-links, .uv-node-layer { position: absolute; inset: 0; width: 100%; height: 100%; }
.uv-stars { z-index: 0; pointer-events: none; }
.uv-links { z-index: 1; overflow: visible; pointer-events: none; }
.uv-link { stroke: rgba(103, 232, 249, .44); stroke-width: 1.2; filter: drop-shadow(0 0 4px rgba(56, 189, 248, .6)); transition: stroke .2s ease; }
.uv-link.is-connected { stroke: #67e8f9; stroke-width: 2.4; opacity: 1 !important; filter: drop-shadow(0 0 7px rgba(34, 211, 238, .95)); }
.uv-link.is-dimmed { opacity: 0 !important; filter: none; }
.uv-node-layer { z-index: 2; pointer-events: none; }
.uv-node { --uv-color: #6ee7ff; position: absolute; left: 0; top: 0; width: 132px; padding: 0; border: 0; color: white; background: transparent; text-align: center; pointer-events: auto; cursor: pointer; will-change: transform; transition: filter .2s ease; }
.uv-node:hover, .uv-node[aria-pressed="true"] { filter: brightness(1.28); }
.uv-node.is-connected { opacity: 1 !important; filter: brightness(1.12) saturate(1.08); }
.uv-node.is-connected .uv-orb { box-shadow: 0 0 0 2px color-mix(in srgb, var(--uv-color), transparent 44%), 0 0 34px color-mix(in srgb, var(--uv-color), transparent 36%); }
.uv-node.is-dimmed { opacity: 0 !important; visibility: hidden; pointer-events: none; filter: none; }
.uv-node[aria-pressed="true"] .uv-orb { box-shadow: 0 0 0 3px color-mix(in srgb, var(--uv-color), transparent 30%), 0 0 42px color-mix(in srgb, var(--uv-color), transparent 25%); }
.uv-orb { display: block; width: 58px; height: 58px; margin: 0 auto 7px; padding: 3px; border: 1px solid color-mix(in srgb, var(--uv-color), transparent 35%); border-radius: 50%; background: radial-gradient(circle at 32% 28%, white, var(--uv-color) 21%, #0f172a 74%); box-shadow: 0 0 26px color-mix(in srgb, var(--uv-color), transparent 52%); overflow: hidden; }
.uv-orb img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; mix-blend-mode: screen; opacity: .9; }
.uv-node strong { display: -webkit-box; min-height: 2.48em; overflow: hidden; overflow-wrap: anywhere; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; text-shadow: 0 2px 8px #000; font-size: 11px; line-height: 1.24; }
.uv-node small { display: block; margin-top: 3px; color: #829ab2; font-size: 8px; }
.uv-node--origin { width: 190px; }
.uv-node--origin .uv-orb { width: 96px; height: 96px; animation: uv-origin 3.5s ease-in-out infinite; }
.uv-node--origin strong { min-height: 2.6em; font-size: 16px; line-height: 1.3; }
@keyframes uv-origin { 50% { transform: scale(1.06); box-shadow: 0 0 60px rgba(103,232,249,.42); } }
.uv-guide { position: absolute; z-index: 3; left: 18px; bottom: 16px; color: rgba(186, 230, 253, .46); font-size: 10px; pointer-events: none; }
.uv-empty { position: absolute; z-index: 3; inset: 50% auto auto 50%; width: min(440px, calc(100% - 48px)); padding: 28px; transform: translate(-50%, -50%); text-align: center; border: 1px solid rgba(103, 232, 249, .18); border-radius: 20px; color: #9fb7cf; background: rgba(7, 18, 37, .82); box-shadow: 0 24px 70px rgba(0, 0, 0, .34); backdrop-filter: blur(16px); }
.uv-empty[hidden] { display: none; }
.uv-empty span { display: block; margin-bottom: 8px; color: #67e8f9; font-size: 36px; }
.uv-empty strong { display: block; color: #f8fbff; font-size: 18px; }
.uv-empty p { margin: 8px 0 0; font-size: 12px; line-height: 1.65; }
.uv-detail { padding: 20px; overflow: auto; border-left: 1px solid rgba(148, 163, 184, .13); background: linear-gradient(180deg, rgba(10, 21, 43, .94), rgba(4, 10, 23, .98)); user-select: text; -webkit-user-select: text; }
.uv-detail-kicker { color: #67e8f9; font-size: 9px; font-weight: 900; letter-spacing: .12em; }
.uv-detail-image { height: 150px; margin: 15px 0; border: 1px solid rgba(103,232,249,.22); border-radius: 16px; overflow: hidden; box-shadow: 0 14px 36px rgba(0,0,0,.32); }
.uv-detail-image img { width: 100%; height: 100%; object-fit: cover; }
.uv-detail h3 { margin: 0 0 9px; font-size: 20px; line-height: 1.3; }
.uv-detail p { color: #adc2d6; font-size: 12px; line-height: 1.72; white-space: pre-wrap; }
.uv-detail-meta { margin-top: 18px; padding-top: 14px; display: grid; gap: 7px; border-top: 1px solid rgba(148,163,184,.13); color: #7690aa; font-size: 9px; }
.uv-detail-card { position: relative; width: 100%; margin: 0; padding: 14px 38px 14px 14px; overflow: hidden; border: 1px solid rgba(103, 232, 249, .2); border-radius: 15px; color: inherit; background: linear-gradient(145deg, rgba(15, 31, 58, .78), rgba(5, 13, 29, .82)); box-shadow: 0 12px 30px rgba(0, 0, 0, .18); font: inherit; text-align: left; cursor: zoom-in; transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease; }
.uv-detail-card-action { position: absolute; top: 12px; right: 13px; width: 22px; height: 22px; display: grid; place-items: center; border: 1px solid rgba(103, 232, 249, .2); border-radius: 8px; color: #67e8f9; background: rgba(3, 11, 26, .62); font-size: 12px; line-height: 1; }
.uv-detail-card:hover { border-color: rgba(103, 232, 249, .54); background: linear-gradient(145deg, rgba(18, 39, 72, .9), rgba(6, 16, 35, .94)); box-shadow: 0 16px 40px rgba(0, 0, 0, .3), 0 0 0 1px rgba(103, 232, 249, .08); transform: translateY(-1px); }
.uv-detail-card:focus-visible { outline: 3px solid rgba(103, 232, 249, .42); outline-offset: 3px; border-color: #67e8f9; }
.uv-detail-card h3 { padding-right: 4px; }
.uv-detail-card p { margin-bottom: 0; }
.uv-detail-card .uv-detail-meta { margin-top: 14px; }

.uv-card-overlay { position: fixed; z-index: 990; inset: 0; display: grid; place-items: center; padding: 24px; background: rgba(1, 4, 14, .78); backdrop-filter: blur(18px); animation: uv-enter .22s ease both; }
.uv-card-dialog { width: min(820px, calc(100vw - 48px)); max-height: min(820px, calc(100dvh - 48px)); display: grid; grid-template-rows: auto minmax(0, 1fr); overflow: hidden; border: 1px solid rgba(103, 232, 249, .28); border-radius: 24px; color: #edf8ff; background: radial-gradient(circle at 78% 0, rgba(67, 56, 202, .18), transparent 36%), linear-gradient(155deg, #0a162d, #030817 72%); box-shadow: 0 36px 110px rgba(0, 0, 0, .72); }
.uv-card-header { min-height: 74px; padding: 14px 16px 14px 24px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid rgba(148, 163, 184, .16); background: rgba(5, 13, 29, .72); }
.uv-card-header > div { min-width: 0; }
.uv-card-kicker { display: block; margin-bottom: 4px; color: #67e8f9; font-size: 9px; font-weight: 900; letter-spacing: .14em; }
.uv-card-header small { display: block; color: #829ab2; font-size: 11px; line-height: 1.4; }
.uv-card-close { flex: 0 0 42px; width: 42px; height: 42px; padding: 0; border: 1px solid rgba(148, 163, 184, .24); border-radius: 12px; color: #dbeafe; background: rgba(15, 23, 42, .76); font-size: 25px; line-height: 1; cursor: pointer; transition: border-color .18s ease, background .18s ease; }
.uv-card-close:hover { border-color: rgba(103, 232, 249, .56); background: rgba(21, 42, 72, .88); }
.uv-card-close:focus-visible { outline: 3px solid rgba(103, 232, 249, .42); outline-offset: 3px; }
.uv-card-body { min-height: 0; padding: 24px 28px 30px; overflow: auto; overscroll-behavior: contain; scrollbar-gutter: stable; user-select: text; -webkit-user-select: text; }
.uv-card-image { width: 100%; max-height: min(300px, 34dvh); margin: 0 0 22px; overflow: hidden; border: 1px solid rgba(103, 232, 249, .22); border-radius: 18px; background: rgba(2, 6, 23, .7); box-shadow: 0 18px 42px rgba(0, 0, 0, .3); }
.uv-card-image img { display: block; width: 100%; max-height: inherit; object-fit: cover; }
.uv-card-content { color: #c2d8ea; font-size: clamp(15px, 1.8vw, 18px); line-height: 1.85; white-space: pre-wrap; overflow-wrap: anywhere; }
.uv-card-content h3 { margin: 0 0 16px; color: #f8fbff; font-size: clamp(22px, 3.2vw, 32px); line-height: 1.35; overflow-wrap: anywhere; }
.uv-card-content p { margin: 0; color: inherit; font: inherit; white-space: inherit; }
.uv-card-meta { margin-top: 24px; padding-top: 16px; display: flex; flex-wrap: wrap; gap: 8px 18px; border-top: 1px solid rgba(148, 163, 184, .16); color: #829ab2; font-size: 11px; }

.collection-card--universe { position: relative; min-height: 238px; color: white !important; background: radial-gradient(circle at 82% 18%, rgba(83, 226, 255, .27), transparent 28%), radial-gradient(circle at 15% 82%, rgba(139, 92, 246, .28), transparent 34%), linear-gradient(150deg, #08182f, #071023 58%, #020617) !important; border-color: rgba(103,232,249,.24) !important; overflow: hidden; }
.collection-card--universe::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .42; background-image: radial-gradient(circle, rgba(255,255,255,.9) 0 1px, transparent 1.5px); background-size: 31px 31px; mask-image: linear-gradient(120deg, #000, transparent 72%); }
.collection-card--universe > * { position: relative; z-index: 1; }
.collection-card--universe .collection-card-kicker, .collection-card--universe .collection-card-action { color: #67e8f9 !important; }
.collection-card--universe .collection-card-title { color: #f8fbff !important; font-size: 18px; }
.collection-card--universe .collection-card-meta { color: #a9bdd0 !important; }
.collection-card--universe .outcome-universe-billing { display: block; color: #fbbf24; font-size: 9px; font-weight: 700; }
.collection-card--universe .outcome-universe-billing[hidden] { display: none; }
.collection-card--universe .outcome-universe-stats { display: flex; align-items: center; gap: 9px; color: #c2d8ea; font-size: 10px; }
.collection-card--universe .outcome-universe-stats em { padding: 3px 7px; border: 1px solid rgba(103,232,249,.24); border-radius: 999px; color: #67e8f9; font-style: normal; }
.outcome-universe-card[disabled] { cursor: not-allowed; opacity: .66; filter: saturate(.72); }
.outcome-universe-card[disabled] .collection-card-action { color: #94a3b8 !important; }
.outcome-universe-card[aria-busy="true"] { pointer-events: none; opacity: .74; }
.outcome-universe-card[aria-busy="true"] [data-lucide="loader-circle"] { animation: uv-spin .85s linear infinite; }
.outcome-universe-card.is-retry { border-color: rgba(251, 191, 36, .48) !important; }
.outcome-universe-card.is-retry .outcome-universe-stats em,
.outcome-universe-card.is-retry .collection-card-action { color: #fbbf24 !important; border-color: rgba(251, 191, 36, .35); }
@keyframes uv-spin { to { transform: rotate(360deg); } }
.collection-card--universe .outcome-orbit-preview { position: absolute; right: 22px; bottom: 20px; width: 86px; height: 86px; border: 1px solid rgba(103,232,249,.35); border-radius: 50%; box-shadow: inset 0 0 25px rgba(103,232,249,.13); animation: uv-origin 3.5s ease-in-out infinite; }
.collection-card--universe .outcome-orbit-preview::before, .collection-card--universe .outcome-orbit-preview::after { content: ''; position: absolute; border-radius: 50%; background: #67e8f9; box-shadow: 0 0 14px #38bdf8; }
.collection-card--universe .outcome-orbit-preview::before { width: 12px; height: 12px; left: 4px; top: 21px; }
.collection-card--universe .outcome-orbit-preview::after { width: 8px; height: 8px; right: 8px; bottom: 11px; background: #a78bfa; }

@media (max-width: 1180px) {
    .uv-main { grid-template-columns: minmax(0, 1fr) 290px; }
    .uv-detail { padding: 16px; }
    .uv-node { width: 124px; }
}

@media (max-width: 900px) {
    .vex-shell { min-height: 420px; height: calc(100dvh - 120px); max-height: 760px; }
    .vex-toolbar { align-items: flex-start; }
    .vex-toolbar-actions label { display: none; }
    .vex-toolbar-actions { flex-wrap: wrap; justify-content: flex-end; }
    .vex-text-controls > span, .vex-toolbar-separator { display: none; }
    .vex-stage { padding: 12px; overflow: auto; cursor: default; touch-action: pan-y; user-select: auto; -webkit-user-select: auto; }
    .vex-world { position: relative; width: 100%; height: auto; transform: none !important; will-change: auto; }
    .vex-grid, .vex-edges, .vex-hint { display: none; }
    .vex-nodes { position: relative; inset: auto; width: 100%; height: auto; display: grid; gap: 12px; padding-bottom: min(52vh, 420px); }
    .vex-node, .vex-node--root, .vex-node--knowledge-current { position: relative; left: auto !important; top: auto !important; width: 100%; min-height: 142px; }
    .vex-inspector { position: sticky; width: 100%; right: auto; bottom: 0; max-height: 52vh; margin-top: 12px; border-radius: 18px 18px 8px 8px; }
    .vex-knowledge-context > small { display: none; }
    .uv-overlay { padding: 0; }
    .uv-shell { border-radius: 0; }
    .uv-main { grid-template-columns: 1fr; }
    .uv-detail { position: absolute; z-index: 20; right: 12px; bottom: 12px; width: min(320px, calc(100% - 24px)); max-height: 44%; border: 1px solid rgba(103,232,249,.18); border-radius: 18px; }
    .vex-card-dialog { width: min(760px, 96vw); }
    .vex-card-body { grid-template-columns: 1fr; overflow: auto; }
    .vex-learning-note { grid-template-columns: 1fr; }
    .vex-learning-note p { grid-column: auto; }
}

@media (max-width: 560px) {
    .vex-card-overlay { padding: 0; }
    .vex-card-dialog { width: 100vw; max-height: 100dvh; height: 100dvh; border-radius: 0; }
    .uv-card-overlay { padding: 0; }
    .uv-card-dialog { width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; }
    .uv-card-header { min-height: 66px; padding: 10px 12px 10px 16px; }
    .uv-card-body { padding: 18px 16px max(22px, env(safe-area-inset-bottom)); }
    .uv-card-image { max-height: 230px; margin-bottom: 18px; border-radius: 14px; }
    .uv-card-content { font-size: 15px; line-height: 1.78; }
    .uv-card-content h3 { font-size: 22px; }
    .vex-card-dialog > header { min-height: 66px; padding: 10px 12px 10px 16px; }
    .vex-card-body article { padding: 18px 16px; }
    .vex-card-dialogue { padding: 11px 12px max(12px, env(safe-area-inset-bottom)); }
    .vex-card-composer { grid-template-columns: 1fr; }
    .vex-card-dialog-actions { width: 100%; grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
    .vex-shell { min-height: 390px; height: calc(100dvh - 104px); }
    .vex-toolbar { min-height: 104px; padding: 8px 10px; flex-wrap: wrap; gap: 6px; }
    .vex-problem-selector { flex: 1 0 100%; }
    .vex-toolbar-actions { width: 100%; gap: 4px; justify-content: flex-start; }
    .vex-toolbar-actions button { min-width: 32px; min-height: 32px; padding: 6px 7px; }
    .vex-toolbar-actions [data-vex-zoom], .vex-toolbar-actions [data-vex-text-scale] { min-width: 38px; }
    .vex-brand-icon, .uv-brand-icon { width: 34px; height: 34px; border-radius: 9px; }
    .vex-toolbar p, .vex-eyebrow { display: none; }
    .vex-stage { height: auto; }
    .vex-shell.has-knowledge-context .vex-stage { height: auto; }
    .vex-problem-selector > strong { font-size: calc(11px * var(--vex-text-scale, 1.2)); }
    .vex-learning-round-composer { grid-template-columns: 1fr; }
    .vex-learning-unit > summary { grid-template-columns: auto minmax(0,1fr); }
    .vex-learning-unit > summary em { grid-column: 2; }
    .vex-learning-points { grid-template-columns: 1fr; }
    .vex-knowledge-context { min-height: 52px; padding: 7px 10px; gap: 8px; }
    .vex-knowledge-context label > span { display: none; }
    .vex-knowledge-context select { max-width: 130px; }
    .vex-knowledge-controls { grid-template-columns: 1fr; }
    .vex-knowledge-levels { grid-template-columns: repeat(5, minmax(40px, 1fr)); overflow-x: auto; }
    .vex-knowledge-candidate-actions { grid-template-columns: 1fr; }
    .uv-header { height: 68px; padding: 10px 12px; }
    .uv-header h2 { font-size: 17px; }
    .uv-main { height: calc(100% - 68px); }
}

@media (max-height: 700px) {
    .vex-shell {
        height: max(360px, calc(100dvh - 112px));
        min-height: max(360px, calc(100dvh - 112px));
    }
    .vex-inspector { max-height: calc(100% - 24px); bottom: 12px; }
}

@media (prefers-reduced-motion: reduce) {
    .vex-edge, .vex-empty span, .uv-node--origin .uv-orb, .collection-card--universe .outcome-orbit-preview, .uv-card-overlay { animation: none !important; }
    .uv-detail-card, .uv-card-close { transition: none !important; }
}

/* M3 · PPT fidelity layer (2026-08-14)
   The annotated red callouts are specifications, not runtime decoration. */
.vex-shell {
    min-height: 0;
    height: 100%;
    max-height: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}
.vex-map-header {
    min-height: 94px;
    padding: 14px 28px;
    display: grid;
    grid-template-columns: auto minmax(260px, 1fr) auto;
    align-items: center;
    gap: 34px;
    flex: 0 0 auto;
    border: 1px solid #2458b8;
    color: #172238;
    background: #fff;
}
.vex-map-brand { display: flex; align-items: center; gap: 14px; }
.vex-brand-icon { width: 54px; height: 54px; border-radius: 14px; object-fit: cover; }
.vex-map-brand span { display: block; color: #2c7df0; font-size: 11px; font-weight: 900; letter-spacing: .19em; }
.vex-map-brand h2 { margin: 4px 0 0; font-size: 23px; font-weight: 950; line-height: 1; }
.vex-journey-copy { margin: 0; font-size: 20px; line-height: 1.5; }
.vex-journey-copy strong { color: #19499f; font-size: 24px; }
.vex-map-header .vex-toolbar-actions { justify-self: end; gap: 9px; }
.vex-map-header .vex-toolbar-actions button {
    min-width: 48px;
    min-height: 44px;
    padding: 8px 13px;
    border: 1px solid #dbe4f0;
    border-radius: 13px;
    color: #27405f;
    background: #fff;
    font-size: 15px;
}
.vex-map-header .vex-toolbar-actions button:hover { transform: none; }
.vex-map-header .vex-toolbar-actions [data-vex-zoom] { min-width: 56px; font-size: 15px; }
.vex-toolbar {
    min-height: 76px;
    padding: 10px 32px;
    justify-content: flex-start;
    border-bottom: 0;
}
.vex-problem-selector { flex: 0 1 auto; gap: 10px; }
.vex-problem-selector > span {
    min-height: 58px;
    padding: 12px 18px;
    display: inline-flex;
    align-items: center;
    border-radius: 12px;
    color: #050b14;
    background: #eef8ff;
    font-size: 25px;
    font-weight: 950;
}
.vex-problem-selector > strong,
.vex-problem-selector > select {
    width: min(440px, 42vw);
    min-height: 54px;
    padding: 10px 44px 10px 20px;
    overflow: hidden;
    border: 1px solid #dbe4f0;
    border-radius: 14px;
    color: #111c30 !important;
    background: #fff !important;
    color-scheme: light;
    box-shadow: 0 4px 14px rgba(30, 64, 175, .05);
    font-size: 16px;
    font-weight: 800;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.vex-problem-selector > strong { display: flex; align-items: center; }
.vex-problem-selector > strong[hidden], .vex-problem-selector > select[hidden] { display: none; }
.vex-stage {
    border-top: 0;
    background: #fff;
}
.vex-grid {
    opacity: .36;
    background-size: 56px 56px;
    background-image: linear-gradient(#e8edf5 1px, transparent 1px), linear-gradient(90deg, #e8edf5 1px, transparent 1px);
}
.vex-world { width: 2600px; height: 1800px; }
.vex-edge { stroke: #87cfda; stroke-width: 2; stroke-dasharray: 4 6; }
.vex-edges { z-index: 0; }
.vex-nodes { z-index: 1; }
.vex-node-shell {
    position: absolute;
    overflow: visible;
    pointer-events: none;
}
.vex-node-shell > .vex-node {
    position: relative;
    left: auto !important;
    top: auto !important;
    pointer-events: auto;
}
.vex-m3-branch-toggle {
    position: absolute;
    z-index: 7;
    top: 50%;
    right: -22px;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    color: #17438b;
    background: transparent;
    box-shadow: none;
    font: 900 24px/1 system-ui, -apple-system, "Segoe UI", sans-serif;
    cursor: pointer;
    pointer-events: auto;
    touch-action: manipulation;
    transform: translateY(-50%) scale(var(--vex-m3-toggle-inverse-scale, 1));
    transform-origin: center;
    transition: color .16s ease;
}
.vex-m3-branch-toggle > span {
    box-sizing: border-box;
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border: 2px solid #2458b8;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, .92), 0 5px 12px rgba(23, 67, 139, .18);
    font-size: 16px;
    transform: translateY(-1px);
    transition: color .16s ease, background-color .16s ease, box-shadow .16s ease;
}
.vex-m3-branch-toggle:hover {
    color: #fff;
}
.vex-m3-branch-toggle:hover > span,
.vex-m3-branch-toggle[aria-expanded="false"] > span {
    color: #fff;
    background: #2458b8;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, .96), 0 6px 14px rgba(23, 67, 139, .26);
}
.vex-m3-branch-toggle:focus-visible {
    outline: none;
}
.vex-m3-branch-toggle:focus-visible > span {
    outline: 3px solid #f59e0b;
    outline-offset: 3px;
}
.vex-edge--m3 {
    fill: none;
    stroke: #2854a6;
    stroke-width: 3.6;
    stroke-dasharray: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
    opacity: .96;
    animation: none;
}
.vex-edge--m3-stem { stroke-width: 4; }
.vex-edge--m3-branch { stroke-width: 3.2; }
.vex-edge--m3-group-original-theme,
.vex-edge--m3-group-learning-direction { stroke: #234f9d; }
.vex-edge--m3-group-level-functions { stroke: #2b7f8d; }
.vex-node,
.vex-node--root,
.vex-node--knowledge-current {
    width: 360px;
    min-height: 232px;
    height: 232px;
    padding: 18px 22px 20px;
    justify-content: flex-start;
    gap: 14px;
    border: 3px solid #89cbd2;
    border-radius: 32px;
    color: #12203a;
    background: #f3fcfc;
    box-shadow: 0 10px 26px rgba(14, 116, 122, .06);
    overflow: visible;
    transition: border-color .16s ease, box-shadow .16s ease;
}
.vex-node:hover { transform: none; border-color: #5fb7c1; box-shadow: 0 14px 34px rgba(14, 116, 122, .10); }
.vex-node[aria-pressed="true"] {
    z-index: 4;
    transform: none;
    border-width: 3px;
    border-color: #1f5dba;
    box-shadow: 0 0 0 4px rgba(31, 93, 186, .10), 0 18px 40px rgba(31, 93, 186, .13);
}
.vex-node[aria-pressed="true"]::after {
    content: "";
    position: absolute;
    inset: -3px;
    box-sizing: border-box;
    border: solid #1f5dba;
    border-width: 6px;
    border-radius: inherit;
    pointer-events: none;
}
.vex-node-kind {
    width: min(100%, 270px);
    min-height: 48px;
    padding: 10px 16px;
    display: -webkit-box;
    align-self: flex-start;
    overflow: hidden;
    border: 1px solid #2458b8;
    border-radius: 12px;
    color: #fff;
    background: #073748;
    font-size: 19px;
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}
.vex-node-outline { margin: 0; padding-left: 24px; display: grid; gap: 8px; color: #142139; font-size: 13px; line-height: 1.45; }
.vex-node-outline li { padding-left: 3px; }
.vex-node-ratio { color: #173f7b; font-weight: 750; }
.vex-node > em { margin-top: auto; }
.vex-node--m3-architecture {
    box-sizing: border-box;
    min-height: 0;
    padding: 10px 12px;
    gap: 6px;
    border-radius: 22px;
    background: #f7fdfd;
}
.vex-node--m3-architecture .vex-node-kind {
    box-sizing: border-box;
    width: 100%;
    min-height: 0;
    padding: 7px 10px;
    border-radius: 10px;
    font-size: 16px;
    line-height: 1.22;
}
.vex-node--m3-original-theme { width: 300px; height: 140px; }
.vex-node--m3-problem-scenario { width: 340px; height: 132px; }
.vex-node--m3-learning-direction { width: 260px; height: 110px; }
.vex-node--m3-level { width: 240px; height: 92px; }
.vex-node--m3-level-system,
.vex-node--m3-level-consolidation,
.vex-node--m3-level-personalization { width: 280px; height: 74px; padding: 8px 10px; }
.vex-node--m3-original-theme .vex-node-outline,
.vex-node--m3-problem-scenario .vex-node-outline {
    padding-left: 20px;
    gap: 0;
    font-size: 12px;
    line-height: 1.35;
}
.vex-node--m3-original-theme .vex-node-outline li:not(:first-child),
.vex-node--m3-problem-scenario .vex-node-outline li:not(:first-child),
.vex-node--m3-learning-direction .vex-node-outline,
.vex-node--m3-level .vex-node-outline,
.vex-node--m3-level-system .vex-node-outline,
.vex-node--m3-level-consolidation .vex-node-outline,
.vex-node--m3-level-personalization .vex-node-outline { display: none; }
.vex-node--m3-original-theme { border-color: #2458b8; background: #f4f8ff; }
.vex-node--m3-original-theme .vex-node-kind { background: #082f49; }
.vex-node--m3-problem-scenario .vex-node-kind,
.vex-node--m3-learning-direction .vex-node-kind { background: #0d5562; }
.vex-node--m3-level .vex-node-kind { background: #17438b; }
.vex-node--m3-level-system .vex-node-kind,
.vex-node--m3-level-consolidation .vex-node-kind,
.vex-node--m3-level-personalization .vex-node-kind { background: #0e6672; }
.vex-shell.is-map-low-detail .vex-node--m3-architecture {
    justify-content: center;
}
.vex-shell.is-map-low-detail .vex-node--m3-architecture .vex-node-outline {
    display: none;
}
.vex-shell.is-map-low-detail .vex-node--m3-architecture .vex-node-kind {
    align-self: stretch;
    margin: auto 0;
    text-align: center;
    font-size: 34px;
    line-height: 1.22;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}
.vex-shell.is-map-low-detail .vex-node--m3-level .vex-node-kind,
.vex-shell.is-map-low-detail .vex-node--m3-level-system .vex-node-kind,
.vex-shell.is-map-low-detail .vex-node--m3-level-consolidation .vex-node-kind,
.vex-shell.is-map-low-detail .vex-node--m3-level-personalization .vex-node-kind {
    padding: 4px 7px;
    display: block;
    overflow: hidden;
    font-size: 24px;
    line-height: 1.12;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.vex-inspector {
    top: 14px;
    right: 0;
    bottom: 0;
    width: clamp(440px, 32.5%, 620px);
    max-height: none;
    padding: 0;
    border: 1px solid #dce6f1;
    border-right: 0;
    border-bottom: 0;
    border-radius: 30px 0 0 0;
    background: #fff;
    box-shadow: -18px 0 42px rgba(15, 23, 42, .07);
    backdrop-filter: none;
    transform: translateX(18px);
    overscroll-behavior: contain;
    scroll-padding-bottom: 88px;
    scrollbar-gutter: stable;
}
.vex-inspector.is-open { transform: translateX(0); }
.vex-knowledge-inspector { min-height: 100%; }
.vex-m3-inspector { min-height: 100%; padding: 34px 28px 88px; color: #142139; background: #fff; }
.vex-m3-inspector-heading { margin-bottom: 24px; }
.vex-m3-inspector-heading > span { color: #0e8f94; font-size: 11px; font-weight: 900; letter-spacing: .14em; }
.vex-m3-inspector-heading > h3 { margin: 7px 0 0; color: #0b1528; font-size: 25px; line-height: 1.35; }
.vex-m3-inspector > p { color: #475569; font-size: 15px; line-height: 1.7; }
.vex-m3-anchor-list { margin: 0; display: grid; gap: 14px; }
.vex-m3-anchor-list > div { padding: 15px 16px; border: 1px solid #b9e2e4; border-radius: 14px; background: #f1fbfb; }
.vex-m3-anchor-list dt { margin-bottom: 5px; color: #0f766e; font-size: 14px; font-weight: 900; }
.vex-m3-anchor-list dd { margin: 0; color: #1e293b; font-size: 15px; line-height: 1.65; }
.vex-m3-anchor-list.is-compact { margin-top: 18px; grid-template-columns: 1fr 1fr; }
.vex-m3-problem-contract {
    margin: 0;
    padding: 16px;
    display: grid;
    gap: 14px;
    border: 2px solid #89cbd2;
    border-radius: 16px;
    background: #f3fcfc;
}
.vex-m3-problem-contract > div { min-width: 0; display: grid; gap: 5px; }
.vex-m3-problem-contract dt { color: #0f766e; font-size: 14px; font-weight: 900; }
.vex-m3-problem-contract dd {
    min-width: 0;
    margin: 0;
    color: #1e293b;
    font-size: 15px;
    line-height: 1.65;
    overflow-wrap: anywhere;
}
.vex-m3-level-contract {
    margin: 0;
    display: grid;
    gap: 14px;
}
.vex-m3-level-contract > div {
    min-width: 0;
    padding: 15px 16px;
    display: grid;
    gap: 8px;
    border: 1px solid #b9e2e4;
    border-radius: 14px;
    background: #f3fcfc;
}
.vex-m3-level-contract dt {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #0f766e;
    font-size: 14px;
    font-weight: 900;
}
.vex-m3-level-contract dt > span {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 24px;
    border-radius: 999px;
    color: #fff;
    background: #2458b8;
    font-size: 12px;
    line-height: 1;
}
.vex-m3-level-contract dd {
    min-width: 0;
    margin: 0;
    color: #1e293b;
    font-size: 15px;
    line-height: 1.65;
    overflow-wrap: anywhere;
}
.vex-m3-level-outputs {
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
    list-style: none;
}
.vex-m3-level-outputs > li {
    position: relative;
    padding-left: 20px;
}
.vex-m3-level-outputs > li::before {
    content: '';
    position: absolute;
    top: .68em;
    left: 3px;
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #2458b8;
}
.vex-m3-level-output-summary { margin: 0; }
.vex-m3-level-output-pending { color: #64748b; font-weight: 800; }
.vex-m3-tag-ratios { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.vex-m3-tag-ratios > span {
    min-width: 92px;
    padding: 8px 10px;
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    gap: 6px;
    border: 2px solid #2458b8;
    border-radius: 11px;
    color: #17438b;
    background: #fff;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
}
.vex-m3-tag-ratios > span > strong { font-weight: 950; }
.vex-m3-tag-ratios > span.is-pending { color: #64748b; border-color: #cbd5e1; background: #f8fafc; }
.vex-m3-inspector-note,
.vex-m3-level-state { margin-top: 18px !important; padding: 12px 14px; border-left: 4px solid #2458b8; background: #eef5ff; }
.vex-m3-level-grid { display: grid; gap: 10px; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.vex-m3-level-grid button { padding: 12px; border: 1px solid #bcd6f7; border-radius: 12px; color: #173f82; background: #fff; text-align: left; cursor: pointer; }
.vex-m3-level-grid button { text-align: center; }
.vex-m3-level-grid button strong { display: block; font-size: 18px; }
.vex-m3-level-grid button span { display: block; margin-top: 3px; font-size: 10px; }
.vex-m3-level-grid button.is-current { border: 2px solid #2458b8; background: #eef5ff; }
.vex-m3-axis-guide { margin-top: 20px; display: grid; gap: 10px; }
.vex-m3-axis-guide p { margin: 0; padding: 13px 14px; display: grid; gap: 4px; border-radius: 12px; background: #f1f5f9; }
.vex-m3-axis-guide strong { color: #17438b; }
.vex-m3-function-contract { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.vex-m3-function-contract > div { padding: 12px; border-radius: 12px; background: #f1fbfb; }
.vex-m3-function-contract dt { color: #0f766e; font-size: 12px; font-weight: 900; }
.vex-m3-function-contract dd { margin: 5px 0 0; }
.vex-m3-consolidation-entries { margin-top: 18px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.vex-m3-function-entry { min-width: 0; padding: 15px; display: flex; flex-direction: column; gap: 12px; border: 1px solid #b9e2e4; border-radius: 14px; background: #f3fcfc; }
.vex-m3-function-entry > p { min-height: 3.2em; margin: 0; color: #475569; font-size: 13px; line-height: 1.6; }
.vex-m3-function-entry .vex-knowledge-primary { min-height: 42px; margin-top: auto; font-size: 13px; }
.vex-m3-function-entry[data-vex-consolidation-entry="guidance"] { border-color: #bfd2f2; background: #f5f8ff; }
.vex-m3-function-entry[data-vex-consolidation-entry="guidance"] .vex-knowledge-primary { border-color: #2458b8; background: linear-gradient(135deg, #2458b8, #4f7ed8); }
.vex-m3-function-entry .vex-knowledge-primary:disabled { opacity: .5; cursor: not-allowed; filter: saturate(.55); }
.vex-m3-function-entry .vex-knowledge-primary[aria-busy="true"] { cursor: wait; }
.vex-m3-level-state.is-error { border-left-color: #b42318; color: #8f1d14; background: #fff5f4; }
.vex-learning-overview {
    min-height: 100%;
    margin: 0;
    padding: 34px 28px 88px;
    border: 0;
    border-radius: inherit;
    background: #fff;
}
.vex-overview-header { margin: 0 0 30px; display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.vex-overview-header > div { min-width: 0; display: grid; gap: 12px; }
.vex-overview-header > div > strong { color: #0a0e17; font-size: 18px; }
.vex-overview-tags { display: flex; flex-wrap: wrap; gap: 9px; }
.vex-overview-tags em {
    min-width: 88px;
    padding: 7px 13px;
    border: 2px solid #2458b8;
    border-radius: 11px;
    color: #17438b;
    background: #fff;
    text-align: center;
    font-size: 15px;
    font-style: normal;
    font-weight: 900;
}
.vex-overview-tags em.is-dominant { color: #e10b12; }
.vex-m3-system-theme-tags em {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.vex-m3-system-theme-tags em.is-recommended {
    border-color: #e10b12;
    color: #e10b12;
    background: #fff7f7;
}
.vex-m3-system-theme-tags em[data-vex-theme-state="pending"] {
    border-color: #cbd5e1;
    color: #64748b;
    background: #f8fafc;
}
.vex-m3-system-theme-tags em small {
    padding: 2px 5px;
    border-radius: 999px;
    color: #fff;
    background: #e10b12;
    font-size: 9px;
    line-height: 1;
}
.vex-inspector-expand {
    flex: 0 0 auto;
    margin: 0;
    padding: 6px 8px;
    border: 0;
    color: #080b12;
    background: transparent;
    font-size: 20px;
    font-weight: 950;
}
.vex-learning-overview dl { display: grid; gap: 22px; margin: 0; }
.vex-learning-overview dl > div { display: block; }
.vex-learning-overview dt { margin-bottom: 7px; color: #0b1019; font-size: 16px; font-weight: 950; }
.vex-learning-overview dd { margin: 0; color: #172238; font-size: 16px; line-height: 1.72; }
.vex-learning-choice, .vex-m2-level-contract { margin-top: 28px; }
.vex-learning-choice h4, .vex-m2-level-contract h4 { margin: 0 0 10px; color: #0b1019; font-size: 17px; }
.vex-mode-options, .vex-level-options { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
.vex-mode-options button,
.vex-level-options button {
    min-width: 0;
    min-height: 54px;
    padding: 8px 5px;
    border: 1px solid #d8e3ef;
    border-radius: 0;
    color: #355077;
    background: #f7f9fc;
    font-size: 13px;
    font-weight: 850;
    cursor: pointer;
}
.vex-m3-system-overview .vex-mode-options .vex-m3-status-option {
    display: grid;
    place-content: center;
    gap: 4px;
    cursor: pointer;
}
.vex-m3-system-overview .vex-mode-options .vex-m3-status-option,
.vex-m3-system-overview .vex-level-options .vex-m3-status-option {
    min-width: 0;
    min-height: 54px;
    padding: 8px 5px;
    border: 1px solid #d8e3ef;
    color: #355077;
    background: #f7f9fc;
    font-size: 13px;
    font-weight: 850;
    text-align: center;
}
.vex-m3-system-overview .vex-level-options .vex-m3-status-option {
    min-height: 84px;
    display: grid;
    place-content: center;
    gap: 4px;
}
.vex-m3-system-overview .vex-level-options .vex-m3-status-option strong { font-size: 15px; }
.vex-m3-system-overview .vex-level-options .vex-m3-status-option > span {
    display: block;
    overflow: visible;
    font-size: 11px;
    line-height: 1.35;
    text-overflow: clip;
    white-space: normal;
    word-break: keep-all;
}
.vex-m3-system-overview .vex-mode-options .vex-m3-status-option[aria-disabled="true"],
.vex-m3-system-overview .vex-level-options .vex-m3-status-option[aria-disabled="true"] { opacity: .46; }
.vex-m3-system-overview .vex-mode-options button.vex-m3-status-option:disabled {
    opacity: .55;
    cursor: not-allowed;
}
.vex-m3-system-overview .vex-mode-options button.vex-m3-status-option.is-pending {
    box-shadow: inset 0 0 0 2px #8aabdc;
}
.vex-m3-mode-status {
    min-height: 1.4em;
    margin: 8px 0 0;
    color: #2458b8;
    font-size: 12px;
    line-height: 1.4;
}
.vex-m3-mode-status.is-error { color: #b42318; }
.vex-m3-system-overview .vex-inspector-expand:disabled {
    opacity: .42;
    cursor: not-allowed;
}
.vex-m3-system-overview .vex-mode-options .vex-m3-status-option small,
.vex-m3-system-overview .vex-level-options .vex-m3-status-option small {
    color: #2458b8;
    font-size: 9px;
    line-height: 1.1;
}
.vex-mode-options button[aria-pressed="true"],
.vex-level-options button[aria-pressed="true"],
.vex-level-options button.is-current,
.vex-m3-system-overview .vex-m3-status-option.is-current {
    border-color: #9bbbe8;
    color: #123f91;
    background: #eaf1fb;
    box-shadow: inset 0 0 0 1px #9bbbe8;
}
.vex-level-options { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.vex-level-options button { min-height: 72px; display: grid; place-content: center; gap: 4px; }
.vex-level-options button strong { font-size: 15px; }
.vex-level-options button span { display: block; overflow: hidden; font-size: 11px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.vex-m3-system-overview .vex-level-options .vex-m3-status-option.is-current {
    border-width: 2px;
}
.vex-hint { color: #6c7b91; }

#main-workspace:has(#module-visual-wrapper:not(.hidden-important)) {
    overflow: hidden !important;
}
#main-workspace:has(#module-visual-wrapper:not(.hidden-important)) #module-visual-wrapper {
    min-height: 0;
    overflow: hidden;
}
#main-workspace:has(#module-visual-wrapper:not(.hidden-important)) .vex-host {
    height: 100%;
    flex: 1 1 0;
}
#main-workspace:has(#module-visual-wrapper:not(.hidden-important)) #top-module-nav {
    position: relative !important;
    top: auto !important;
    bottom: auto !important;
    flex: 0 0 auto;
    margin-top: 0;
    z-index: 70;
    border-color: #dbe4f0 !important;
    border-radius: 0 !important;
    color: #172238 !important;
    background: #fff !important;
    box-shadow: none !important;
}
#main-workspace:has(#module-visual-wrapper:not(.hidden-important)) #top-module-nav button {
    color: #172238 !important;
    background: #fff !important;
}
#main-workspace:has(#module-visual-wrapper:not(.hidden-important)) #top-module-nav button[aria-current="page"],
#main-workspace:has(#module-visual-wrapper:not(.hidden-important)) #top-module-nav button.is-active,
#main-workspace:has(#module-visual-wrapper:not(.hidden-important)) #top-module-nav button.active {
    color: #16408a !important;
    background: #eaf1fb !important;
}

@media (max-width: 1180px) {
    .vex-map-header { grid-template-columns: auto 1fr; gap: 18px; }
    .vex-map-header .vex-toolbar-actions { grid-column: 1 / -1; justify-self: stretch; justify-content: flex-end; }
    .vex-journey-copy { font-size: 16px; }
    .vex-inspector { width: clamp(390px, 39%, 500px); }
}

@media (max-width: 900px) {
    .vex-shell { height: calc(100dvh - 96px); min-height: 560px; }
    .vex-map-header { min-height: auto; padding: 10px 12px; grid-template-columns: 1fr auto; }
    .vex-journey-copy { display: none; }
    .vex-map-header .vex-toolbar-actions { grid-column: auto; justify-self: end; }
    .vex-toolbar { min-height: 62px; padding: 7px 10px; }
    .vex-problem-selector > span { min-height: 44px; padding: 8px 11px; font-size: 18px; }
    .vex-problem-selector > strong, .vex-problem-selector > select { width: min(56vw, 360px); min-height: 44px; font-size: 13px; }
    .vex-node, .vex-node--root, .vex-node--knowledge-current { width: 100%; height: auto; min-height: 190px; }
    .vex-nodes { width: 100% !important; height: auto !important; }
    .vex-node-shell {
        position: relative;
        left: auto !important;
        top: auto !important;
        width: 100% !important;
        height: auto !important;
    }
    .vex-node-shell > .vex-node { width: 100%; height: auto; min-height: 190px; }
    .vex-m3-branch-toggle {
        top: 24px;
        right: 8px;
        transform: none;
    }
    .vex-inspector { position: sticky; top: auto; right: auto; bottom: 0; width: 100%; max-height: 58vh; border: 1px solid #dbe4f0; border-radius: 22px 22px 0 0; }
    .vex-learning-overview { padding: 22px 18px max(72px, env(safe-area-inset-bottom)); }
}

/* PPT dialog variants: system learning, consolidation/guidance, personalization. */
.vex-card-overlay {
    padding: 5.5vh 3vw 8.5vh;
    background: rgba(239, 244, 250, .64);
    backdrop-filter: blur(5px);
}
.vex-card-dialog.vex-card-dialog--learning {
    position: relative;
    width: min(1840px, 96vw);
    height: min(900px, 86dvh);
    max-height: min(900px, 86dvh);
    display: block;
    overflow: hidden;
    border: 2px solid #2458b8;
    border-radius: 30px;
    box-shadow: 0 28px 90px rgba(15, 23, 42, .20);
}
.vex-popup-close {
    position: absolute;
    z-index: 8;
    top: 18px;
    right: 20px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid #dbe4f0;
    border-radius: 50%;
    color: #34435a;
    background: #fff;
    font-size: 26px;
    cursor: pointer;
}
.vex-card-dialog--learning .vex-card-body { height: 100%; display: block; overflow: hidden; }
.vex-card-dialog--learning .vex-card-body > article { height: 100%; padding: 0; overflow: auto; overscroll-behavior: contain; }
.vex-card-dialog--learning .vex-card-body > article:has(> .vex-popup-view--rounds) { overflow: hidden; }
.vex-popup-view { min-height: 100%; padding: 28px 72px 30px; color: #0d1523; background: #fff; }
.vex-popup-tags, .vex-popup-flow-header { padding-right: 70px; display: flex; align-items: center; gap: 14px; }
.vex-popup-tags > strong, .vex-popup-flow-header > strong { font-size: 22px; font-weight: 950; }
.vex-popup-tags > span, .vex-popup-flow-header > div { display: flex; flex-wrap: wrap; gap: 9px; }
.vex-popup-tags em,
.vex-popup-flow-header button,
.vex-popup-flow-state {
    min-width: 120px;
    padding: 9px 18px;
    border: 2px solid #2458b8;
    border-radius: 11px;
    color: #16408a;
    background: #fff;
    text-align: center;
    font-size: 18px;
    font-style: normal;
    font-weight: 900;
}
.vex-popup-tags em.is-dominant, .vex-popup-flow-state.is-current { color: #e10b12; }
.vex-popup-topic, .vex-popup-task { margin: 24px 0 20px; font-size: 18px; line-height: 1.65; }
.vex-popup-topic p, .vex-popup-task p { margin: 9px 0; }
.vex-system-learning { font-size: 16px; line-height: 1.72; }
.vex-system-learning > h3, .vex-popup-guidance > h3 { margin: 22px 0 12px; font-size: 23px; }
.vex-system-learning > h4 { margin: 18px 0 8px; font-size: 19px; }
.vex-system-learning > p { margin: 6px 0 14px; color: #334155; }
.vex-system-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; }
.vex-system-grid > section { min-width: 0; padding: 14px 16px; border: 1px solid #dbe4f0; border-radius: 14px; background: #fbfdff; }
.vex-system-grid h5 { margin: 0 0 8px; font-size: 16px; }
.vex-system-grid .vex-card-content { max-height: 180px; overflow: auto; font-size: 14px; line-height: 1.65; }
.vex-system-grid ul { margin: 0; padding-left: 20px; }
.vex-system-unit-list { margin: 0; padding-left: 22px; display: grid; gap: 7px; }
.vex-system-unit-list li { padding-left: 5px; }
.vex-system-unit-list strong { display: block; }
.vex-system-unit-list p { margin: 3px 0; color: #475569; }
.vex-system-unit-list small { color: #53719b; }
.vex-popup-view--system .vex-popup-tags { position: sticky; z-index: 3; top: -28px; padding-top: 10px; padding-bottom: 10px; background: rgba(255, 255, 255, .97); }
.vex-system-popup-theme-tags em { display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.vex-system-popup-theme-tags em.is-recommended { color: #d5141a; border-color: #d5141a; background: #fff7f7; }
.vex-system-popup-theme-tags em small { font-size: 11px; font-style: normal; }
.vex-popup-view--system .vex-popup-topic { padding: 14px 18px; border-left: 4px solid #2458b8; background: #f7faff; }
.vex-popup-view--system .vex-popup-topic b { color: #173f82; }
.vex-popup-view--system .vex-system-learning > section { margin-top: 18px; }
.vex-popup-view--system .vex-system-learning > section > h4 { margin: 0 0 10px; font-size: 19px; }
.vex-popup-view--system .vex-system-grid .vex-card-content { max-height: none; overflow: visible; color: #1f2937; font-size: 15px; white-space: normal; }
.vex-system-popup-pending { display: inline-block; padding: 2px 9px; border-radius: 999px; color: #7c5a10; background: #fff8db; font-size: 14px; font-weight: 800; }
.vex-system-case { margin: 0; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 12px; }
.vex-system-case > div { min-width: 0; padding: 14px 16px; border: 1px solid #dbe4f0; border-radius: 14px; background: #fbfdff; }
.vex-system-case dt { margin-bottom: 7px; color: #173f82; font-weight: 900; }
.vex-system-case dd { margin: 0; color: #334155; line-height: 1.72; }
.vex-popup-view--system [data-vex-system-learning-section="personalized"] > .vex-card-content { padding: 14px 16px; border: 1px solid #cce6df; border-radius: 14px; background: #f3fbf8; }
.vex-popup-view--system [data-vex-system-learning-section="note"] .vex-learning-note-panel { margin-top: 0; }
.vex-system-note-workspace { display: grid; gap: 12px; padding: 14px 16px; border: 1px solid #bcd6f7; border-radius: 14px; background: #f5f9ff; }
.vex-system-note-hint { margin: 0; color: #31517e; font-size: 14px; line-height: 1.6; }
.vex-system-note-workspace > .vex-system-note-hint { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.vex-system-note-workspace > .vex-system-note-hint strong { flex: 0 0 auto; padding: 2px 8px; border-radius: 999px; color: #174b91; background: #e3efff; font-size: 12px; }
.vex-system-note-list { display: grid; gap: 10px; }
.vex-system-note-list:empty::before { content: "尚未记录笔记"; display: block; padding: 14px; border: 1px dashed #b9cbe4; border-radius: 10px; color: #64748b; background: #fff; text-align: center; }
.vex-system-note-item { min-width: 0; padding: 12px 14px; border: 1px solid #d6e3f4; border-radius: 11px; background: #fff; }
.vex-system-note-item > p { margin: 7px 0 0; color: #243b5a; white-space: pre-wrap; overflow-wrap: anywhere; }
.vex-system-note-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; color: #567092; font-size: 12px; }
.vex-system-note-meta strong { color: #174b91; font-size: 13px; }
.vex-system-note-delete { margin-left: auto; min-height: 30px; padding: 4px 10px; border: 1px solid #d5a09b; border-radius: 8px; color: #a5281d; background: #fff; font-size: 12px; font-weight: 800; line-height: 1.2; cursor: pointer; }
.vex-system-note-delete:hover { border-color: #b42318; color: #8f1d14; background: #fff5f4; }
.vex-system-note-delete:focus-visible { outline: 3px solid rgba(180, 35, 24, .24); outline-offset: 2px; }
.vex-system-note-delete:disabled, .vex-system-note-delete[aria-busy="true"] { opacity: .58; cursor: wait; }
.vex-system-note-delete-status { min-height: 20px; margin: -2px 0 0; color: #31517e; font-size: 13px; line-height: 1.5; }
.vex-system-note-delete-status:empty { display: none; }
.vex-system-note-delete-status.is-error { color: #a5281d; }
.vex-system-note-quote { padding-left: 10px; border-left: 3px solid #9ab9e6; color: #52637a !important; font-size: 13px; }
.vex-system-note-workspace > .vex-learning-note-panel { margin: 0; background: #fff; }
.vex-popup-guidance { margin-top: 20px; padding: 16px 18px; border: 1px solid #dbe4f0; border-radius: 14px; background: #f8fbff; }
.vex-popup-guidance button, .vex-enter-next, .vex-learning-completion-actions button {
    min-height: 42px;
    margin: 0 8px 0 0;
    padding: 9px 16px;
    border: 1px solid #2458b8;
    border-radius: 9px;
    color: #173f82;
    background: #fff;
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
}
.vex-popup-footer { display: flex; justify-content: flex-end; margin-top: 18px; }
.vex-enter-next { color: #fff; background: #2458b8; }
.vex-enter-next:disabled { opacity: .46; cursor: not-allowed; }
.vex-enter-next-float { position: absolute; z-index: 9; right: 42px; bottom: 26px; box-shadow: 0 10px 26px rgba(36, 88, 184, .22); }
.vex-enter-next-status {
    position: absolute;
    z-index: 9;
    right: 42px;
    bottom: 78px;
    max-width: min(560px, calc(100% - 84px));
    margin: 0;
    padding: 9px 12px;
    border: 1px solid #bfdbfe;
    border-radius: 9px;
    color: #173f82;
    background: rgba(239, 246, 255, .98);
    font-size: 13px;
    line-height: 1.45;
    box-shadow: 0 8px 20px rgba(36, 88, 184, .14);
}
.vex-enter-next-status:empty { display: none; }
.vex-learning-note-panel { margin-top: 18px; border: 1px solid #bcd6f7; border-radius: 12px; background: #f5f9ff; }
.vex-learning-note-panel > summary { padding: 11px 14px; color: #173f82; font-size: 14px; font-weight: 900; cursor: pointer; }
.vex-learning-note-panel .vex-learning-note { margin: 0; border: 0; border-top: 1px solid #dbeafe; border-radius: 0 0 12px 12px; }

.vex-popup-view--rounds { height: 100%; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.vex-popup-flow-header { flex: 0 0 auto; }
.vex-popup-task { flex: 0 0 auto; margin-bottom: 10px; }
.vex-round-workspace { min-height: 360px; flex: 1 1 0; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) 72px; gap: 0; border: 1px solid #dbe5f2; border-radius: 16px; background: #fbfdff; }
.vex-round-scroll { min-height: 0; overflow-y: scroll; overflow-x: hidden; overscroll-behavior: contain; padding: 14px 8px 14px 14px; scrollbar-width: thin; scrollbar-color: #c7d3e3 #f4f7fb; }
.vex-round-scroll::-webkit-scrollbar { width: 10px; }
.vex-round-scroll::-webkit-scrollbar-track { border-radius: 999px; background: #f4f7fb; }
.vex-round-scroll::-webkit-scrollbar-thumb { min-height: 44px; border: 2px solid #f4f7fb; border-radius: 999px; background: #c7d3e3; }
.vex-round-scroll::-webkit-scrollbar-thumb:hover { background: #9fb1c8; }
.vex-learning-rounds--popup { min-height: 100%; margin: 0; padding: 0 0 2px; display: flex; flex-direction: column; border: 0; background: transparent; }
.vex-learning-rounds--popup > h4 { display: none; }
.vex-learning-rounds--popup ol { margin: 0; padding: 0; display: grid; gap: 18px; list-style: none; }
.vex-learning-rounds--popup li { margin: 0; padding: 0; background: transparent; }
.vex-learning-rounds--popup li > header { display: flex; justify-content: center; gap: 8px; margin: 0 0 8px; color: #64748b; font-size: 12px; }
.vex-consolidation-chat-log { padding-bottom: 18px !important; }
.vex-consolidation-turn { display: grid; gap: 8px; scroll-margin-top: 12px; }
.vex-round-answer, .vex-round-feedback, .vex-round-question, .vex-consolidation-question { width: min(78%, 880px); min-height: 70px; padding: 14px 18px; border: 1px solid #e1e7ef; background: #f1f1f1; font-size: 16px; line-height: 1.55; box-shadow: 0 4px 12px rgba(34, 51, 84, .04); }
.vex-round-answer { margin-left: auto; border-radius: 16px 16px 4px 16px; text-align: left; background: #eef5ff; }
.vex-round-feedback, .vex-round-question, .vex-consolidation-question { margin: 0 auto 0 0; border-radius: 16px 16px 16px 4px; text-align: left; }
.vex-round-question, .vex-consolidation-question { border-color: #c8d8ee; background: #edf3fb; }
.vex-consolidation-question { flex: 0 0 auto; margin: 0 0 12px; }
.vex-round-answer b, .vex-round-feedback b, .vex-round-question b, .vex-consolidation-question b { display: block; margin-bottom: 6px; color: #173f82; font-size: 14px; }
.vex-round-feedback b { color: #0f766e; }
.vex-consolidation-turn.is-streaming,
.vex-personal-turn.is-streaming { opacity: 1; }
.vex-round-feedback.is-streaming,
.vex-personal-message.is-tutor.is-streaming { position: relative; }
.vex-round-feedback.is-streaming::after,
.vex-personal-message.is-tutor.is-streaming::after { content: ''; display: inline-block; width: 7px; height: 1.05em; margin-left: 4px; vertical-align: -2px; border-radius: 2px; background: #0f766e; animation: vex-stream-caret .9s steps(1, end) infinite; }
.vex-consolidation-turn.has-stream-content .vex-round-feedback,
.vex-personal-turn.has-stream-content .vex-personal-message.is-tutor { box-shadow: 0 5px 16px rgba(15, 118, 110, .1); }
@keyframes vex-stream-caret { 0%, 48% { opacity: 1; } 49%, 100% { opacity: .15; } }
.vex-round-answer p, .vex-round-feedback p, .vex-round-question p, .vex-consolidation-question p { margin: 0; color: #172238; font-size: 16px; white-space: pre-wrap; }
.vex-consolidation-chat-log > .vex-learning-empty-line { min-height: auto; padding: 14px 18px; color: #334155; }
.vex-learning-round-composer {
    min-height: 136px;
    margin-top: auto;
    padding: 12px 14px;
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) 108px;
    align-items: end;
    gap: 10px;
    border: 2px solid #8bd0d6;
    border-radius: 12px;
    background: #fff;
}
.vex-learning-round-composer textarea { height: 100%; min-height: 96px; padding: 10px; border: 0 !important; outline: 0; resize: none; color: #172238 !important; background: #fff !important; font-size: 16px; color-scheme: light; }
.vex-learning-round-composer button { min-height: 44px; border-radius: 22px; color: #fff; background: #2a65c7; font-size: 14px; }
.vex-round-image { position: relative; width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid #c8d6e8; border-radius: 10px; color: #355577; background: #f8fbff; font-size: 0; overflow: visible; }
.vex-round-image:hover { border-color: #79a4dc; color: #174f9e; background: #eef6ff; }
.vex-round-image-icon { position: relative; width: 30px; height: 30px; display: grid; place-items: center; }
.vex-round-image-icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.vex-round-image-icon em { position: absolute; right: -8px; top: -7px; min-width: 18px; height: 18px; padding: 0 4px; display: inline-grid; place-items: center; border: 2px solid #fff; border-radius: 999px; color: #fff; background: #2458b8; font-size: 10px; font-style: normal; font-weight: 900; line-height: 1; }
.vex-round-image-icon em[hidden] { display: none; }
.vex-round-image:has(input:disabled) { opacity: .65; }
.vex-progress-scrubber { padding: 14px 8px; display: grid; grid-template-rows: auto minmax(0, 1fr); place-items: center; gap: 10px; border-left: 1px solid #dbe5f2; color: #173f82; background: #f5f9ff; }
.vex-progress-scrubber output { max-width: 58px; color: #173f82; font-size: 12px; font-weight: 850; line-height: 1.35; text-align: center; }
.vex-progress-scrubber input {
    width: 10px;
    height: 100%;
    min-height: 220px;
    margin: 0;
    appearance: slider-vertical;
    writing-mode: vertical-lr;
    direction: rtl;
    accent-color: #2458b8;
    cursor: grab;
}
.vex-progress-scrubber input:active { cursor: grabbing; }
.vex-popup-view--rounds > .vex-learning-note-panel { flex: 0 0 auto; margin-top: 10px; }
.vex-popup-view--rounds > .vex-learning-note-panel[open] { max-height: 210px; overflow: auto; }
.vex-learning-visible-status {
    min-height: 22px;
    margin: 2px 0 8px;
    color: #b42318;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.45;
}
.vex-learning-visible-status:empty { min-height: 0; margin: 0; }
.vex-learning-round-limit { margin: 12px 0; padding: 11px 13px; border-left: 4px solid #2458b8; color: #173f82; background: #eef5ff; font-size: 14px; }
.vex-popup-view--personalization .vex-round-workspace { grid-template-columns: minmax(0, 1fr); }
.vex-personal-dialogue-note { margin: 0 0 12px; padding: 10px 13px; border-radius: 10px; color: #0f766e; background: #ecfdfb; font-size: 14px; }
.vex-personal-dialogue-log { display: grid; gap: 16px; padding: 2px 4px 18px; }
.vex-personal-turn { display: grid; gap: 8px; }
.vex-personal-turn > header { color: #64748b; font-size: 12px; }
.vex-personal-message { width: min(78%, 760px); padding: 13px 16px; border-radius: 16px; }
.vex-personal-message strong { display: block; margin-bottom: 5px; font-size: 13px; }
.vex-personal-message p { margin: 0; color: #172238; font-size: 16px; line-height: 1.6; white-space: pre-wrap; }
.vex-personal-message.is-learner { margin-left: auto; border-bottom-right-radius: 4px; background: #eef5ff; }
.vex-personal-message.is-tutor { margin-right: auto; border-bottom-left-radius: 4px; background: #f1f1f1; }
.vex-personal-composer { position: sticky; bottom: 0; }

@media (max-width: 900px) {
    .vex-card-overlay { padding: 0; }
    .vex-card-dialog.vex-card-dialog--learning { width: 100vw; height: 100dvh; max-height: none; border-radius: 0; }
    .vex-popup-view { padding: 22px 16px 18px; }
    .vex-popup-tags, .vex-popup-flow-header { padding-right: 50px; align-items: flex-start; flex-direction: column; gap: 8px; }
    .vex-system-grid { grid-template-columns: 1fr; }
    .vex-system-case { grid-template-columns: 1fr; }
    .vex-round-workspace { min-height: 320px; grid-template-columns: minmax(0, 1fr) 56px; gap: 0; }
    .vex-round-scroll { padding: 10px 6px 10px 10px; }
    .vex-round-answer, .vex-round-feedback, .vex-round-question, .vex-consolidation-question { width: 92%; }
    .vex-progress-scrubber { padding-inline: 4px; }
    .vex-progress-scrubber output { max-width: 48px; font-size: 11px; }
    .vex-learning-round-composer { grid-template-columns: 42px minmax(0, 1fr); }
    .vex-learning-round-composer button { grid-column: 2; justify-self: end; min-width: 104px; }
    .vex-learning-note { grid-template-columns: 1fr; }
    .vex-m3-inspector { padding: 24px 18px max(72px, env(safe-area-inset-bottom)); }
    .vex-m3-level-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .vex-m3-anchor-list.is-compact,
    .vex-m3-function-contract { grid-template-columns: 1fr; }
    .vex-personal-message { width: 92%; }
}

/* M3 keyboard focus and motion accessibility. */
.vex-m3-inspector button:focus-visible,
.vex-inspector-expand:focus-visible,
.vex-card-dialog--learning button:focus-visible,
.vex-card-dialog--learning input:focus-visible,
.vex-card-dialog--learning textarea:focus-visible,
.vex-card-dialog--learning summary:focus-visible {
    outline: 3px solid #0b57d0;
    outline-offset: 3px;
    box-shadow: 0 0 0 5px rgba(255, 255, 255, .96), 0 0 0 8px rgba(11, 87, 208, .28);
}
.vex-learning-round-composer textarea:focus-visible,
.vex-learning-note textarea:focus-visible,
.vex-learning-note input:focus-visible {
    border-color: #0b57d0 !important;
}
.vex-learning-round-composer:focus-within { border-color: #4eb7c0; box-shadow: 0 0 0 3px rgba(78, 183, 192, .16); }
.vex-learning-round-composer textarea:focus,
.vex-learning-round-composer textarea:focus-visible {
    border-color: transparent !important;
    outline: 0 !important;
    outline-offset: 0 !important;
    box-shadow: none !important;
}
.vex-round-image {
    border-radius: 9px;
    cursor: pointer;
}
.vex-round-image:focus-within {
    outline: 3px solid #0b57d0;
    outline-offset: 3px;
    box-shadow: 0 0 0 5px rgba(255, 255, 255, .96), 0 0 0 8px rgba(11, 87, 208, .28);
}
.vex-progress-scrubber input:focus-visible {
    outline-offset: 5px;
}

@media (prefers-reduced-motion: reduce) {
    .vex-card-overlay,
    .vex-card-dialog--learning,
    .vex-card-dialog--learning *,
    .vex-node,
    .vex-node-expand,
    .vex-m3-branch-toggle,
    .vex-inspector,
    .vex-map-header .vex-toolbar-actions button {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}
