/* ChipTrace live demos (demo.html, replay.html), in the site's colours: indigo cards, cyan accent, one colour per core */

/* ------------------------------------------------------------------ the page around them */
main > .dm-intro { border-image: none; }
.dm-intro { display: flex; flex-direction: column; gap: 14px; padding: 44px var(--gutter) 26px; }
.dm-switch { display: inline-flex; gap: 4px; padding: 4px; align-self: flex-start; background: #13153d; border: 1px solid rgba(70,199,246,0.2); border-radius: 12px; }
.dm-switch a { font: 600 13px/1 'Inter', sans-serif; color: #a9aed6; padding: 10px 16px; border-radius: 8px; transition: background 0.2s, color 0.2s; }
.dm-switch a:hover { color: #fff; }
.dm-switch a[aria-current="page"] { background: #46c7f6; color: #0f1135; }
.dm-intro h1 { font: 800 clamp(30px, 4vw, 42px)/1.1 'Outfit', sans-serif; color: #fff; margin-top: 6px; }
.dm-intro .lead { font-size: 15px; }
.dm-facts { display: flex; flex-wrap: wrap; gap: 8px; }
.dm-facts span { font: 500 12px/1 'JetBrains Mono', ui-monospace, monospace; color: #c6c9ea; background: rgba(70,199,246,0.07); border: 1px solid rgba(70,199,246,0.2); border-radius: 6px; padding: 7px 10px; }
.dm-facts b { color: #fff; font-weight: 600; }
.demo-end { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 48px var(--gutter) 56px; }
.demo-end p { color: #c6c9ea; font-size: 15px; max-width: 640px; }

/* ------------------------------------------------------------------ cards, buttons */
.dm { display: flex; flex-direction: column; gap: 16px; padding: 0 var(--gutter) 40px; font-family: 'Inter', system-ui, sans-serif; }
.dm-card { min-width: 0; background: #181b4a; border: 1px solid rgba(70,199,246,0.16); border-radius: 14px; padding: 20px 22px; box-shadow: 0 18px 40px rgba(5,6,30,0.25); }
.dm-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px 20px; flex-wrap: wrap; margin-bottom: 16px; }
.dm-head h2 { font: 700 19px/1.25 'Outfit', sans-serif; color: #fff; margin: 0; }
.dm-sub { font-size: 12.5px; line-height: 1.5; color: #a9aed6; margin: 4px 0 0; max-width: 680px; }
.dm-tools { display: flex; gap: 6px; }
.dm-btn { font: 600 13px/1 'Inter', sans-serif; color: #e1e3f7; background: #20245a; border: 1px solid rgba(70,199,246,0.28); border-radius: 8px; padding: 9px 14px; cursor: pointer; transition: border-color 0.2s, background 0.2s, color 0.2s; }
.dm-btn:hover:not(:disabled) { border-color: #46c7f6; color: #fff; }
.dm-btn.sq { width: 36px; padding: 9px 0; font-size: 15px; }
.dm-btn.primary { background: #46c7f6; border-color: #46c7f6; color: #0f1135; }
.dm-btn.primary:hover:not(:disabled) { background: #8adaf9; color: #0f1135; }
.dm-btn:disabled { opacity: 0.35; cursor: default; }
.dm-btn:focus-visible, .dm button:focus-visible, .tl-tracks:focus-visible { outline: 2px solid #46c7f6; outline-offset: 2px; }
.dm-tip { position: fixed; z-index: 120; pointer-events: none; display: flex; flex-direction: column; gap: 2px; max-width: 340px; background: #0a0c29; border: 1px solid rgba(70,199,246,0.35); border-radius: 8px; padding: 8px 11px; font: 12.5px/1.45 'Inter', sans-serif; color: #c6c9ea; box-shadow: 0 10px 30px rgba(0,0,0,0.45); }
.dm-tip[hidden] { display: none; }
.dm-tip b { font: 600 13px 'JetBrains Mono', monospace; color: #fff; }

/* ------------------------------------------------------------------ the timeline */
.tl { --lw: 178px; position: relative; user-select: none; -webkit-user-select: none; }
.tl-axis { display: grid; grid-template-columns: var(--lw) minmax(0, 1fr); height: 28px; }
.tl-corner { align-self: end; padding-bottom: 7px; font: 600 12px 'Inter', sans-serif; letter-spacing: 0.1em; text-transform: uppercase; color: #7f85bd; }
.tl-ticks { position: relative; overflow: hidden; border-bottom: 1px solid rgba(70,199,246,0.2); }
.tl-ticks span { position: absolute; bottom: 7px; transform: translateX(-50%); font: 12px 'JetBrains Mono', monospace; color: #a9aed6; white-space: nowrap; }
.tl-ticks span.first { transform: none; }
.tl-ticks span::after { content: ""; position: absolute; left: 50%; bottom: -7px; height: 5px; border-left: 1px solid rgba(169,174,214,0.45); }
.tl-ticks span.first::after { left: 0; }
.tl-markrow { height: auto; }
.tl-marks { position: relative; height: 34px; border-bottom: 1px solid rgba(70,199,246,0.1); }
.tl-mark { position: absolute; top: 4px; transform: translateX(-50%); height: 22px; min-width: 22px; padding: 0 7px; border: 0; border-radius: 11px; background: #f59e42; color: #0f1135; font: 700 12px/22px 'Inter', sans-serif; cursor: pointer; z-index: 2; transition: box-shadow 0.2s, background 0.2s; }
.tl-mark[hidden] { display: none; }
.tl-mark:hover { background: #ffc27d; }
.tl-mark.on { background: #fff; box-shadow: 0 0 0 3px rgba(245,158,66,0.55); }
.tl-mark.stop { background: #f06060; color: #fff; transform: translateX(-100%); }
.tl-mark.stop.on { background: #fff; color: #d73a2e; box-shadow: 0 0 0 3px rgba(240,96,96,0.55); }
.tl-body { display: grid; grid-template-columns: var(--lw) minmax(0, 1fr); }
.tl-label { display: flex; align-items: center; gap: 10px; min-width: 0; padding-right: 12px; border-bottom: 1px solid rgba(70,199,246,0.08); }
.tl-label > i { flex: 0 0 auto; width: 9px; height: 9px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 22%, transparent); }
.tl-label > div { min-width: 0; }
.tl-label b { display: block; font: 600 13px/1.25 'Inter', sans-serif; color: #fff; }
.tl-label small { display: block; font-size: 12px; line-height: 1.3; color: #a9aed6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-tag { margin-left: auto; flex: 0 0 auto; font: 600 12px/1 'JetBrains Mono', monospace; color: #c6c9ea; padding: 3px 5px; border-radius: 4px; background: rgba(255,255,255,0.06); }
.tl-tracks { position: relative; overflow: hidden; cursor: grab; touch-action: pan-y; }
.tl-tracks.drag { cursor: grabbing; }
.tl-track { position: relative; border-bottom: 1px solid rgba(70,199,246,0.08); }
.tl-track:nth-child(even) { background: rgba(255,255,255,0.018); }
.tl-run { position: absolute; height: 20px; min-width: 2px; box-sizing: border-box; padding: 0 6px; border-radius: 4px; border: 1px solid color-mix(in srgb, var(--c) 60%, transparent); background: color-mix(in srgb, var(--c) 26%, #181b4a); color: #fff; font: 500 12px/18px 'Inter', sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; transition: opacity 0.2s, background 0.2s, box-shadow 0.2s; }
.tl-run[hidden] { display: none; }
.tl-run.l1 { background: color-mix(in srgb, var(--c) 52%, #181b4a); }
.tl-run.l2 { background: color-mix(in srgb, var(--c) 78%, #181b4a); color: #0f1135; }
.tl-run.tiny { padding: 0; }
.tl-run.tiny span { display: none; }
.tl-run:hover { border-color: #fff; }
.tl.sel .tl-run:not(.on) { opacity: 0.6; }
.tl-run.on { z-index: 2; background: var(--c); color: #0f1135; border-color: #fff; box-shadow: 0 0 14px color-mix(in srgb, var(--c) 70%, transparent); }
.tl-cursor { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 10px rgba(255,255,255,0.55); pointer-events: none; z-index: 4; }
.tl-cursor[hidden], .tl-line[hidden] { display: none; }
.tl-line { position: absolute; top: 0; bottom: 0; width: 0; border-left: 1px dashed rgba(245,158,66,0.55); pointer-events: none; z-index: 1; }
.tl-line.stop { border-left: 2px solid #f06060; margin-left: -2px; }
.tl-ov { position: relative; height: 34px; margin: 12px 0 0 var(--lw); border-radius: 7px; background: #13153d; border: 1px solid rgba(70,199,246,0.14); overflow: hidden; cursor: pointer; touch-action: none; }
.tl-ov i { position: absolute; height: 3px; border-radius: 2px; background: var(--c); opacity: 0.8; }
.tl-ov b { position: absolute; top: 0; bottom: 0; min-width: 4px; box-sizing: border-box; border: 1.5px solid #46c7f6; border-radius: 6px; background: rgba(70,199,246,0.12); }
.dm-hint { margin: 10px 0 0 178px; font-size: 12.5px; color: #7f85bd; }

/* ------------------------------------------------------------------ explore: the function, the cursor, the profile */
.dm-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.fn-kicker, .rp-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 12.5px; color: #a9aed6; }
.fn-core { display: inline-flex; align-items: center; gap: 7px; color: #c6c9ea; }
.fn-core i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.fn-name { font: 600 clamp(18px, 2.2vw, 24px)/1.25 'JetBrains Mono', monospace; color: #fff; margin: 8px 0 16px; overflow-wrap: anywhere; }
.fn-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.fn-stats > div { background: #13153d; border-radius: 10px; padding: 12px 14px; }
.fn-stats b { display: block; font: 700 22px/1.15 'Outfit', sans-serif; color: #fff; }
.fn-stats b.hi { color: #34d399; } .fn-stats b.mid { color: #f5b83d; } .fn-stats b.lo { color: #f06060; }
.fn-stats span { display: block; margin-top: 4px; font-size: 12px; line-height: 1.4; color: #a9aed6; }
.fn-rel { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 10px; font-size: 12.5px; color: #a9aed6; }
.fn-rel > span { min-width: 70px; }
.fn-rel button { font: 500 12px/1 'JetBrains Mono', monospace; color: #e1e3f7; background: #13153d; border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); border-radius: 6px; padding: 6px 8px; cursor: pointer; }
.fn-rel button:hover { border-color: var(--c); color: #fff; }
.src { margin-top: 14px; background: #0a0c29; border: 1px solid rgba(70,199,246,0.14); border-radius: 10px; overflow: auto; max-height: 440px; font: 12.5px/1.65 'JetBrains Mono', ui-monospace, monospace; }
.src-file { position: sticky; top: 0; left: 0; z-index: 1; display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px; background: #0e1033; border-bottom: 1px solid rgba(70,199,246,0.12); font: 500 12px 'Inter', sans-serif; color: #a9aed6; }
.src-file span:first-child { color: #e1e3f7; font-family: 'JetBrains Mono', monospace; white-space: nowrap; }
.src-rows { min-width: max-content; padding: 4px 0; }
.src-row { display: flex; border-left: 3px solid transparent; }
.src-row .n { flex: 0 0 46px; text-align: right; padding-right: 12px; color: #8c92c8; }   /* 4.5:1 at least on every row */
.src-row .k { flex: 0 0 48px; text-align: right; padding-right: 14px; color: #a9aed6; }
.src-row code { font: inherit; white-space: pre; color: #e1e3f7; padding-right: 16px; }
.src-row.exec { border-left-color: #34d399; background: rgba(52,211,153,0.09); }
.src-row.not { border-left-color: #f06060; background: rgba(240,96,96,0.12); }
.src-row.partial { border-left-color: #f5b83d; background: rgba(245,184,61,0.12); }
.src-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font-size: 12.5px; color: #a9aed6; }
.src-legend span { display: inline-flex; align-items: center; gap: 6px; }
.src-legend i { width: 10px; height: 10px; border-radius: 3px; }
.src-legend i.exec { background: #34d399; } .src-legend i.partial { background: #f5b83d; } .src-legend i.not { background: #f06060; }

.now-t { font: 600 12.5px 'JetBrains Mono', monospace; color: #46c7f6; }
.now-row { display: grid; grid-template-columns: 9px minmax(0, 1fr); gap: 12px; padding: 11px 8px; border-bottom: 1px solid rgba(70,199,246,0.08); border-radius: 8px; }
.now-row:last-child { border-bottom: 0; }
.now-row > i { width: 9px; height: 9px; margin-top: 4px; border-radius: 50%; background: var(--c); }
.now-row b { font: 600 13px 'Inter', sans-serif; color: #fff; }
.now-row small { margin-left: 8px; font-size: 12.5px; color: #a9aed6; }
.now-row.focus { background: color-mix(in srgb, var(--c) 12%, transparent); }
.now-stack { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; margin-top: 4px; font: 12px/1.5 'JetBrains Mono', monospace; color: #e1e3f7; }
.now-stack button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.now-stack button:hover, .now-stack button.on { color: #46c7f6; text-decoration: underline; text-underline-offset: 3px; }
.now-stack .sep { color: #5b6190; }
.now-idle { margin-top: 4px; font-size: 12.5px; color: #7f85bd; }
.now-lane { margin: 6px 0 2px 8px; font: 600 12px 'Inter', sans-serif; letter-spacing: 0.1em; text-transform: uppercase; color: #7f85bd; }
.now-group + .now-group { margin-top: 8px; }

.prof { display: flex; flex-direction: column; gap: 2px; }
.prof-row { display: grid; grid-template-columns: minmax(0, 250px) minmax(0, 1fr) 130px 64px; gap: 16px; align-items: center; width: 100%; padding: 9px 10px; border: 0; border-radius: 8px; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; transition: background 0.15s; }
.prof-row:hover { background: #20245a; }
.prof-row.on { background: #232764; box-shadow: inset 3px 0 0 var(--c); }
.prof-name { display: flex; align-items: center; gap: 9px; min-width: 0; font: 500 13px 'JetBrains Mono', monospace; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prof-name > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.prof-name i { flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.prof-bar { height: 8px; border-radius: 4px; background: #13153d; overflow: hidden; }
.prof-bar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, color-mix(in srgb, var(--c) 70%, #181b4a), var(--c)); }
.prof-n { font: 12px 'JetBrains Mono', monospace; color: #c6c9ea; text-align: right; white-space: nowrap; }
.cov { font: 600 12px/1 'JetBrains Mono', monospace; padding: 5px 0; border-radius: 6px; text-align: center; }
.cov.hi { color: #34d399; background: rgba(52,211,153,0.12); }
.cov.mid { color: #f5b83d; background: rgba(245,184,61,0.12); }
.cov.lo { color: #f06060; background: rgba(240,96,96,0.12); }

.dm-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.dm-tile { display: flex; flex-direction: column; gap: 6px; padding: 14px 0 0; border-top: 1px solid rgba(169,174,214,0.3); }
.dm-tile b { font: 700 26px/1.1 'Outfit', sans-serif; color: #fff; }
.dm-tile span { font-size: 12.5px; line-height: 1.5; color: #a9aed6; }

/* ------------------------------------------------------------------ replay: the stepper, the story */
.rp-steps { display: flex; align-items: flex-start; padding: 2px 2px 4px; margin-bottom: 18px; overflow-x: auto; scrollbar-width: thin; }
.rp-steps .bar { flex: 1 1 18px; min-width: 10px; height: 2px; margin-top: 15px; background: rgba(169,174,214,0.22); }
.rp-step { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0; border: 0; background: none; cursor: pointer; font: 600 12px/1 'Inter', sans-serif; color: #a9aed6; }
.rp-step i { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; font: 700 12.5px/1 'Inter', sans-serif; font-style: normal; color: #f59e42; background: #13153d; border: 1.5px solid rgba(245,158,66,0.5); transition: background 0.2s, box-shadow 0.2s; }
.rp-step.cause i { color: #a78bfa; border-color: rgba(167,139,250,0.6); }
.rp-step.stop i { color: #f06060; border-color: rgba(240,96,96,0.7); font-size: 12px; }
.rp-step.done i { background: rgba(245,158,66,0.16); }
.rp-step.cause.done i { background: rgba(167,139,250,0.16); }
.rp-step:hover i { box-shadow: 0 0 0 4px rgba(255,255,255,0.06); }
.rp-step.on { color: #fff; }
.rp-step.on i { background: #f59e42; border-color: #f59e42; color: #0f1135; box-shadow: 0 0 0 5px rgba(245,158,66,0.2); }
.rp-step.cause.on i { background: #a78bfa; border-color: #a78bfa; box-shadow: 0 0 0 5px rgba(167,139,250,0.2); }
.rp-step.stop.on i { background: #f06060; border-color: #f06060; color: #fff; box-shadow: 0 0 0 5px rgba(240,96,96,0.2); }
.rp-story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 16px 28px; align-items: start; min-height: 200px; padding: 4px 0 20px; border-bottom: 1px solid rgba(70,199,246,0.12); }
.rp-story.nosrc { grid-template-columns: minmax(0, 1fr); min-height: 0; }
.rp-src .src { margin-top: 0; max-height: 300px; }
.rp-bar { margin: 18px 0 14px; }
.now.wide .now-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
.now.wide .now-group + .now-group { margin-top: 0; }
.rp-kind { font: 600 12px/1 'Inter', sans-serif; letter-spacing: 0.06em; text-transform: uppercase; padding: 6px 9px; border-radius: 6px; color: #f59e42; background: rgba(245,158,66,0.12); }
.rp-kind.cause { color: #a78bfa; background: rgba(167,139,250,0.12); }
.rp-kind.stop { color: #ff7a7a; background: rgba(240,96,96,0.12); }
.rp-story h2 { font: 700 clamp(20px, 2.4vw, 26px)/1.2 'Outfit', sans-serif; color: #fff; margin: 14px 0 8px; }
.rp-story p { margin: 0; font-size: 15px; line-height: 1.65; color: #c6c9ea; max-width: 640px; }
.rp-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.rp-nav .dm-btn.primary { min-width: 150px; }

/* ------------------------------------------------------------------ the compact explorer of the overview (index.html) */
.dm.dm-home { padding: 0; gap: 0; }
.dm-win { min-width: 0; overflow: hidden; background: #181b4a; border: 1px solid #343842; border-radius: 4px; }
.dm-win-bar { display: flex; align-items: center; gap: 12px; padding: 6px 8px 6px 12px; background: #24272e; border-bottom: 1px solid #343842; }
.dm-win-bar em { flex: 1 1 auto; }
.dm-win-bar .dm-tools .dm-btn { padding: 5px 10px; font-size: 12.5px; color: #c9ccd6; background: #2e323b; border-color: #41464f; border-radius: 3px; }
.dm-win-bar .dm-tools .dm-btn.sq { width: 28px; padding: 5px 0; }
.dm-win-body { padding: 16px 18px 18px; }
.dm-try { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; font: 600 12px 'Inter', sans-serif; letter-spacing: 0.1em; text-transform: uppercase; color: #7f85bd; }
.dm-try button { font: 500 12.5px/1 'Inter', sans-serif; letter-spacing: 0; text-transform: none; color: #e1e3f7; background: rgba(70,199,246,0.08); border: 1px solid rgba(70,199,246,0.3); border-radius: 999px; padding: 8px 13px; cursor: pointer; transition: background 0.2s, border-color 0.2s, color 0.2s; }
.dm-try button:hover { border-color: #46c7f6; color: #fff; }
.dm-try button.on { background: #46c7f6; border-color: #46c7f6; color: #0f1135; }
.dm-home .tl-host { min-height: 220px; }
.dm-home .tl-host:empty { display: grid; place-items: center; font-size: 12.5px; color: #7f85bd; }
.dm-home .tl-host:empty::before { content: "Loading the capture…"; }
.dm-home .dm-hint { margin-bottom: 4px; }
.dm-tabs { display: flex; gap: 2px; margin: 14px -18px 0; padding: 0 18px; border-bottom: 1px solid rgba(70,199,246,0.16); overflow-x: auto; scrollbar-width: none; }
.dm-tabs button { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; font: 600 13px/1 'Inter', sans-serif; color: #a9aed6; background: none; border: 0; border-bottom: 2px solid transparent; padding: 12px 14px 11px; cursor: pointer; transition: color 0.2s, border-color 0.2s; }
.dm-tabs button:hover { color: #fff; }
.dm-tabs button[aria-selected="true"] { color: #fff; border-bottom-color: #46c7f6; }
.dm-tabs .now-t { font-size: 12px; }
.dm-pane { padding-top: 16px; min-height: 240px; }
.dm-pane[hidden] { display: none; }
.dm-home .fn-name { margin-top: 6px; }
.dm-home .src { max-height: 280px; }
.dm-home .now-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 24px; }
.dm-home .now-row { border-bottom: 0; background: rgba(255,255,255,0.02); }
.dm-home .prof { max-height: 340px; overflow-y: auto; }
.try-links { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* ------------------------------------------------------------------ narrower screens */
@media (max-width: 1000px) {
  .dm-grid, .rp-story, .now.wide .now-list { grid-template-columns: 1fr; }
  .rp-story { min-height: 0; }
  .dm-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .dm-card { padding: 16px 14px; border-radius: 12px; }
  .tl { --lw: 74px; }
  .tl-label { gap: 7px; padding-right: 6px; }
  .tl-label small, .tl-tag { display: none; }
  .tl-label b { font-size: 12.5px; }
  .dm-hint { margin-left: 0; }
  .fn-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prof-row { grid-template-columns: minmax(0, 1fr) auto 56px; gap: 6px 12px; }
  .prof-bar { grid-column: 1 / -1; grid-row: 2; }
  .dm-tiles { grid-template-columns: 1fr; }
  .src-file { flex-wrap: wrap; gap: 2px 12px; }
  .src { max-height: 360px; font-size: 12px; }
  .rp-nav { width: 100%; }
  .rp-nav .dm-btn { flex: 1 1 0; padding: 10px 6px; }
  .rp-nav .dm-btn.primary { min-width: 0; flex-grow: 1.4; }
  .rp-steps .bar { min-width: 6px; }
  .dm-win-body { padding: 14px 12px 14px; }
  .dm-tabs { margin: 12px -12px 0; padding: 0 12px; }
  .dm-tabs button { padding: 11px 10px 10px; }
  .dm-home .now-list { grid-template-columns: 1fr; }
}
/* the cards inside the replay's card */
.dm-card .dm-card { background: #13153d; box-shadow: none; }
.dm-card .dm-card .src { background: #0a0c29; }
/* the two demos, side by side and large: the other one is never missed */
.dm-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 900px; }
.dm-choice { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 12px; border: 1px solid rgba(70,199,246,0.25); background: #13153d; color: #e1e3f7; transition: border-color 0.2s, background 0.2s, transform 0.2s; }
.dm-choice:not(.on) { border-color: #e07820; background: linear-gradient(90deg, rgba(224,120,32,0.16), #13153d 70%); }
.dm-choice:not(.on):hover { transform: translateY(-2px); background: linear-gradient(90deg, rgba(224,120,32,0.26), #13153d 75%); }
.dm-choice.on { border-color: #46c7f6; background: rgba(70,199,246,0.1); }
.dm-choice-ico { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; flex: none; background: rgba(70,199,246,0.12); color: #46c7f6; }
.dm-choice:not(.on) .dm-choice-ico { background: #e07820; color: #0f1135; }
.dm-choice-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.dm-choice-txt b { font: 700 16px/1.2 'Outfit', sans-serif; color: #fff; }
.dm-choice-txt span { font-size: 12.5px; color: #a9aed6; line-height: 1.4; }
.dm-choice-go { margin-left: auto; font-size: 22px; color: #f0913a; }
.dm-choice-tag { margin-left: auto; font: 600 12px/1 'JetBrains Mono', monospace; color: #46c7f6; white-space: nowrap; }
@media (max-width: 640px) { .dm-choices { grid-template-columns: 1fr; } }
