/* Product demo player on the sign-in page (frontend/demo.js). The picture is a 768 x 432 stage scaled to fit;
   it is always dark, like the showcase it sits in. */
.dm-player { position: relative; border-radius: 16px; overflow: hidden; background: #0b1120; border: 1px solid #1e293b;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, .5); color: #e2e8f0; font-family: var(--font); outline: none; }
.dm-player * { box-sizing: border-box; }
.dm-screen { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; cursor: pointer; background: #070b14; }
.dm-stage { position: absolute; left: 0; top: 0; width: 768px; height: 432px; transform-origin: 0 0; font-size: 11px; line-height: 1.35; }
.dm-instant, .dm-instant * { transition: none !important; animation-duration: 0s !important; animation-delay: 0s !important; }

/* shown and hidden by the script */
.dm-stage .h:not(.in), .dm-stage .out { display: none !important; }
.dm-stage .h.in { animation: dm-in .4s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes dm-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.dm-stage .press { animation: dm-press .35s ease; }
@keyframes dm-press { 40% { transform: scale(.94); filter: brightness(1.3); } }

/* pointer, chapter title, big play button, captions */
.dm-cursor { position: absolute; left: 0; top: 0; z-index: 5; width: 16px; height: 20px; pointer-events: none; opacity: 0; transition: opacity .25s; }
.dm-cursor.on { opacity: 1; }
.dm-cursor svg { width: 16px; height: 20px; fill: #fff; stroke: #0f172a; stroke-width: 1.2; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .5)); }
.dm-cursor i { position: absolute; left: -11px; top: -11px; width: 24px; height: 24px; border-radius: 50%; border: 2px solid #34d399; opacity: 0; }
.dm-cursor.tap i { animation: dm-tap .5s ease-out; }
@keyframes dm-tap { from { opacity: 1; transform: scale(.3); } to { opacity: 0; transform: scale(1.4); } }
.dm-intro { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(.96); z-index: 4; padding: 14px 26px; border-radius: 14px; text-align: center;
  background: rgba(2, 6, 23, .82); border: 1px solid rgba(52, 211, 153, .35); backdrop-filter: blur(6px); opacity: 0; transition: opacity .35s, transform .35s; pointer-events: none; }
.dm-intro.on { opacity: 1; transform: translate(-50%, -50%); }
.dm-intro small { display: block; font-family: var(--mono); font-size: 11px; color: #34d399; letter-spacing: .08em; }
.dm-intro b { font-size: clamp(16px, 2.4vw, 24px); color: #fff; letter-spacing: -.01em; }
.dm-bigplay { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 6; display: flex; align-items: center; gap: 10px;
  padding: 12px 20px 12px 14px; border-radius: 99px; border: 1px solid rgba(52, 211, 153, .5); background: rgba(6, 78, 59, .85); color: #fff;
  font: 600 14px var(--font); cursor: pointer; box-shadow: 0 10px 30px rgba(0, 0, 0, .45); backdrop-filter: blur(4px); transition: transform .15s, background .15s; }
.dm-bigplay:hover { background: rgba(4, 120, 87, .95); transform: translate(-50%, -50%) scale(1.04); filter: none; }
.dm-bigplay svg { width: 26px; height: 26px; fill: #fff; padding: 4px; border-radius: 50%; background: #10b981; }
.dm-player.playing .dm-bigplay { display: none; }
/* room for two lines, so the player keeps its height whichever caption is showing */
.dm-cap { min-height: 52px; padding: 8px 14px; display: flex; align-items: center; justify-content: center; font-size: 13px; line-height: 1.35; color: #e2e8f0;
  background: #0b1120; border-top: 1px solid #1e293b; text-align: center; }
.dm-cap.on { animation: dm-in .35s ease both; }
.dm-ctrl { display: flex; align-items: center; gap: 10px; padding: 8px 12px 10px; background: #0b1120; }
.dm-ctrl button { width: 30px; height: 30px; flex: none; display: flex; align-items: center; justify-content: center; padding: 6px; border-radius: 8px;
  border: 1px solid #1e293b; background: #0f172a; color: #e2e8f0; cursor: pointer; }
.dm-ctrl button:hover { border-color: #334155; background: #1e293b; filter: none; }
.dm-ctrl button svg { width: 16px; height: 16px; fill: currentColor; }
.dm-ctrl .dm-max svg { fill: none; }
.dm-track { flex: 1; display: flex; gap: 4px; padding: 8px 0; cursor: pointer; touch-action: none; outline: none; }
.dm-track:focus-visible { box-shadow: 0 0 0 2px rgba(52, 211, 153, .5); border-radius: 4px; }
.dm-seg { height: 5px; border-radius: 3px; background: #1e293b; overflow: hidden; }
.dm-seg i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #10b981, #34d399); }
.dm-track:hover .dm-seg { height: 7px; margin-top: -1px; }
.dm-clock { font-family: var(--mono); font-size: 11px; color: #94a3b8; white-space: nowrap; }

/* full screen (the player covers the window) */
.dm-player.dm-full { position: fixed; inset: 0; z-index: 1000; border-radius: 0; border: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: #020617; padding: 16px; }
.dm-player.dm-full > * { width: min(100%, calc((100vh - 150px) * 16 / 9)); }  /* 150px: padding, caption (two lines) and controls */
.dm-player.dm-full .dm-screen { border-radius: 12px 12px 0 0; }
.dm-player.dm-full .dm-ctrl { border-radius: 0 0 12px 12px; }
.dm-player.dm-full .dm-cap { font-size: 16px; min-height: 60px; }

/* ---------- the app inside the stage ---------- */
.dm-app { position: absolute; inset: 0; display: flex; flex-direction: column; background: #0b1120; }
.dm-title { height: 26px; flex: none; display: flex; align-items: center; gap: 8px; padding: 0 10px; background: #0f172a; border-bottom: 1px solid #1e293b; }
.dm-badge { width: 18px; height: 18px; border-radius: 5px; background: #15803d; color: #fff; font-size: 9px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.dm-file { font-size: 11px; color: #cbd5e1; }
.dm-sp { flex: 1; }
.dm-aib { padding: 2px 9px; border-radius: 6px; font-size: 10px; font-weight: 600; color: #fbbf24; border: 1px solid rgba(245, 158, 11, .4); background: rgba(245, 158, 11, .1); }
.dm-av { width: 18px; height: 18px; border-radius: 50%; background: #334155; color: #e2e8f0; font-size: 8px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.dm-tabs { height: 24px; flex: none; display: flex; gap: 2px; padding: 0 8px; background: #0f172a; border-bottom: 1px solid #1e293b; }
.dm-tabs span { padding: 5px 10px 0; font-size: 10.5px; color: #94a3b8; }
.dm-tabs span.on { color: #34d399; font-weight: 600; box-shadow: inset 0 -2px 0 #10b981; }
.dm-main { position: relative; flex: 1; }
.dm-pane { position: absolute; inset: 10px; border-radius: 10px; background: #0f172a; border: 1px solid #1e293b; padding: 10px 12px; overflow: hidden; }
.dm-ph { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; min-height: 22px; }
.dm-ph b { font-size: 12px; color: #fff; }
.dm-mute { color: #94a3b8; font-size: 10.5px; }
.dm-m { font-family: var(--mono); font-size: 10px; }
.dm-blue { color: #38bdf8; } .dm-green { color: #34d399; } .dm-rose { color: #fb7185; } .dm-violet { color: #a78bfa; } .dm-amber { color: #fbbf24; }
.dm-stage .r { text-align: right; }
.dm-btn { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 6px; font-size: 10.5px; font-weight: 600; border: 1px solid #334155; background: #1e293b; color: #e2e8f0; white-space: nowrap; }
.dm-btn.dm-primary { background: #15803d; border-color: #16a34a; color: #fff; }
.dm-chip { display: inline-block; font-family: var(--mono); font-size: 9.5px; padding: 1px 6px; border-radius: 4px; border: 1px solid; white-space: nowrap; }
.dm-c-sky { color: #7dd3fc; background: rgba(56, 189, 248, .1); border-color: rgba(56, 189, 248, .3); }
.dm-c-rose { color: #fda4af; background: rgba(244, 63, 94, .15); border-color: rgba(244, 63, 94, .35); }
.dm-c-green { color: #6ee7b7; background: rgba(16, 185, 129, .12); border-color: rgba(16, 185, 129, .35); }
.dm-c-amber { color: #fcd34d; background: rgba(245, 158, 11, .12); border-color: rgba(245, 158, 11, .35); }
.dm-c-violet { color: #c4b5fd; background: rgba(139, 92, 246, .15); border-color: rgba(139, 92, 246, .35); }
.dm-c-slate { color: #cbd5e1; background: #1e293b; border-color: #334155; }

/* chapter 1: drop zone, BOQ table, Gantt */
.dm-drop { position: absolute; inset: 40px 120px 60px; border: 2px dashed #334155; border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  background: rgba(15, 23, 42, .6); color: #94a3b8; transition: border-color .2s, background .2s; }
.dm-drop b { font-size: 15px; color: #e2e8f0; }
.dm-dropi { font-size: 30px; color: #38bdf8; line-height: 1; }
.dm-drop.hover { border-color: #38bdf8; background: rgba(56, 189, 248, .08); }
.dm-prog { display: none; width: 60%; margin-top: 10px; text-align: center; }
.dm-drop.busy .dm-prog { display: block; }
.dm-prog div { height: 6px; border-radius: 3px; background: #1e293b; overflow: hidden; margin-bottom: 6px; }
.dm-prog i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #0ea5e9, #38bdf8); }
.dm-filechip { position: absolute; left: 600px; top: 270px; z-index: 3; display: flex; align-items: center; gap: 8px; padding: 7px 12px 7px 7px; border-radius: 9px;
  background: #1e293b; border: 1px solid #334155; color: #e2e8f0; font-size: 11px; font-weight: 500; box-shadow: 0 8px 20px rgba(0, 0, 0, .4); }
.dm-filechip span { font-size: 8px; font-weight: 700; color: #fff; background: #15803d; padding: 4px 5px; border-radius: 4px; }
.dm-filechip.drag { transform: rotate(-3deg); box-shadow: 0 14px 28px rgba(0, 0, 0, .55); }
.dm-note { font-size: 10px; color: #6ee7b7; margin-bottom: 6px; }
.dm-tbl { width: 100%; border-collapse: collapse; font-size: 10.5px; }
.dm-tbl th { text-align: left; font-family: var(--mono); font-size: 9.5px; font-weight: 500; color: #94a3b8; padding: 5px 6px; background: #0b1120; border-bottom: 1px solid #1e293b; }
.dm-tbl td { padding: 6px; border-bottom: 1px solid rgba(30, 41, 59, .7); color: #e2e8f0; white-space: nowrap; height: 29px; }
.dm-grow { display: grid; grid-template-columns: 46px 126px 72px 34px 56px 1fr; align-items: center; gap: 0 6px; height: 34px; padding-left: 5px; border-bottom: 1px solid rgba(30, 41, 59, .6); font-size: 10.5px; }
.dm-grow.hl { background: rgba(56, 189, 248, .08); box-shadow: inset 2px 0 0 #38bdf8; }
.dm-ghead { height: 22px; font-family: var(--mono); font-size: 9.5px; color: #94a3b8; background: #0b1120; border-bottom: 1px solid #1e293b; }
.dm-gn { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #e2e8f0; }
.dm-id { color: #34d399; transition: color .4s; }
.crit .cr .dm-id { color: #fb7185; }
.dm-months { display: flex; height: 100%; }
.dm-months i { flex: 1; font-style: normal; padding-left: 4px; border-left: 1px solid #1e293b; display: flex; align-items: center; }
.dm-grows { position: relative; }
.dm-gbars { position: relative; height: 100%; }
.dm-gbar { position: absolute; top: 11px; height: 12px; border-radius: 3px; background: #10b981; transform-origin: left center; transform: scaleX(0); transition: background .5s, box-shadow .5s; }
.crit .cr .dm-gbar { background: linear-gradient(90deg, #e11d48, #f43f5e); box-shadow: 0 0 8px rgba(244, 63, 94, .45); }
.dm-gfloat { position: absolute; top: 13px; height: 8px; border: 1px dashed rgba(52, 211, 153, .7); border-left: 0; background: rgba(16, 185, 129, .1); border-radius: 0 2px 2px 0; }
.dm-links { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.dm-links path { fill: none; stroke: #64748b; stroke-width: 1.1; }
.dm-links marker path { fill: #64748b; stroke: none; }
.crit .dm-links path.c { stroke: #fb7185; }
.crit .dm-links #dm-arr path { fill: #fb7185; }
/* under the last row, starting where the bars do: it must not cover the bar it explains */
.dm-calc { position: absolute; left: 381px; top: 278px; padding: 8px 12px; border-radius: 9px; background: rgba(8, 47, 73, .95); border: 1px solid rgba(56, 189, 248, .45); font-size: 11.5px; color: #e0f2fe; box-shadow: 0 8px 22px rgba(0, 0, 0, .45); }
.dm-sum { display: flex; align-items: center; gap: 18px; margin-top: 14px; padding: 8px 12px; border-radius: 9px; background: #0b1120; border: 1px solid #1e293b; font-size: 11px; color: #94a3b8; }
.dm-sum b { color: #fff; font-family: var(--mono); }
.dm-sc { margin-left: auto; display: flex; align-items: center; gap: 8px; font-size: 10px; }
.dm-sc svg { width: 84px; height: 24px; }
.dm-sc path { fill: none; stroke: #34d399; stroke-width: 2; stroke-dasharray: 1; stroke-dashoffset: 1; }

/* chapter 2: delay Gantt and the AI assistant */
.dm-delay { transition: right .5s cubic-bezier(.16, 1, .3, 1); }
.chat-on .dm-delay { right: 318px; }
.dm-legend { display: flex; gap: 14px; font-size: 10px; color: #94a3b8; margin-bottom: 8px; }
.dm-legend span { display: inline-flex; align-items: center; gap: 5px; }
.dm-legend i { display: inline-block; width: 14px; height: 7px; border-radius: 2px; }
.dm-lg-cur { background: #f43f5e; } .dm-lg-base { background: #475569; height: 4px !important; }
.dm-lg-frag { background: repeating-linear-gradient(45deg, #f59e0b 0 3px, #b45309 3px 6px); }
.dm-drow { display: grid; grid-template-columns: 46px 118px 1fr; align-items: center; height: 38px; border-bottom: 1px solid rgba(30, 41, 59, .6); font-size: 10.5px; }
.dm-dhead { height: 22px; font-family: var(--mono); font-size: 9.5px; color: #94a3b8; background: #0b1120; border-bottom: 1px solid #1e293b; }
.dm-drows { position: relative; }
.dm-dbars { position: relative; height: 100%; }
.dm-base { position: absolute; top: 25px; height: 4px; border-radius: 2px; background: #475569; }
.dm-cur { position: absolute; top: 10px; height: 12px; border-radius: 3px; background: linear-gradient(90deg, #e11d48, #f43f5e); transition: box-shadow .5s; }
.critglow .dm-cur { box-shadow: 0 0 0 1px #fda4af, 0 0 10px rgba(244, 63, 94, .6); }
.dm-frag { position: absolute; top: 7px; height: 18px; border-radius: 3px; z-index: 1; background: repeating-linear-gradient(45deg, #f59e0b 0 3px, #b45309 3px 6px); box-shadow: 0 0 0 1px #fcd34d; }
.dm-flab { position: absolute; top: -2px; margin-left: 4px; font-style: normal; font-family: var(--mono); font-size: 9px; color: #fcd34d; white-space: nowrap; }
.dm-msrow { border-bottom: 0; }
.dm-ms, .dm-msb { position: absolute; top: 12px; width: 11px; height: 11px; margin-left: -5px; transform: rotate(45deg); }
.dm-ms { background: #f43f5e; }
.dm-msb { border: 1.5px solid #94a3b8; }
.dm-mslab { position: absolute; top: 24px; transform: translateX(-60%); font-style: normal; font-family: var(--mono); font-size: 9px; color: #fda4af; white-space: nowrap; }
.dm-mslab.b { top: 11px; color: #94a3b8; transform: translateX(calc(-100% - 10px)); }
.dm-ddwrap { position: absolute; top: 0; bottom: 0; left: 164px; right: 0; pointer-events: none; }
.dm-dd { position: absolute; top: -4px; bottom: 0; border-left: 1.5px dashed #38bdf8; }
.dm-dd span { position: absolute; bottom: -14px; left: -40px; font-style: normal; font-family: var(--mono); font-size: 8.5px; color: #38bdf8; white-space: nowrap; }
.dm-chat { position: absolute; top: 10px; right: 10px; bottom: 10px; width: 300px; display: flex; flex-direction: column; border-radius: 10px; background: #0f172a; border: 1px solid #334155;
  box-shadow: -10px 0 30px rgba(0, 0, 0, .35); transform: translateX(calc(100% + 20px)); transition: transform .5s cubic-bezier(.16, 1, .3, 1); }
.chat-on .dm-chat { transform: none; }
.dm-chead { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-bottom: 1px solid #1e293b; font-size: 11.5px; }
.dm-cav { width: 20px; height: 20px; border-radius: 6px; background: linear-gradient(135deg, #f59e0b, #fbbf24); color: #0f172a; font-weight: 800; font-size: 10px; display: flex; align-items: center; justify-content: center; }
.dm-clog { flex: 1; overflow: hidden; padding: 10px; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; }
/* older lines leave at the top: they fade out instead of being cut by the header */
.dm-clog { -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 30px); mask-image: linear-gradient(to bottom, transparent 0, #000 30px); }
.dm-clog > * { flex: none; }
.dm-ubub { align-self: flex-end; max-width: 88%; padding: 7px 10px; border-radius: 10px 10px 2px 10px; background: #15803d; color: #fff; font-size: 10.5px; }
.dm-think { display: flex; gap: 4px; padding: 4px 2px; }
.dm-think i { width: 6px; height: 6px; border-radius: 50%; background: #fbbf24; animation: dm-dot 1s infinite ease-in-out; }
.dm-think i:nth-child(2) { animation-delay: .15s; } .dm-think i:nth-child(3) { animation-delay: .3s; }
@keyframes dm-dot { 50% { opacity: .25; transform: translateY(-2px); } }
.dm-steps { display: flex; flex-direction: column; gap: 4px; font-size: 10px; color: #cbd5e1; }
.dm-steps span, .dm-stepsum { color: #34d399; margin-right: 6px; }
.dm-stepsum { font-size: 10px; }
.dm-ans { flex: none; border-radius: 10px; padding: 9px; background: linear-gradient(135deg, rgba(2, 44, 34, .55), rgba(15, 23, 42, .95)); border: 1px solid rgba(16, 185, 129, .3); font-size: 10px; }
.dm-ansh { display: flex; justify-content: space-between; align-items: center; color: #34d399; font-weight: 700; font-size: 11px; margin-bottom: 6px; }
.dm-ans table { width: 100%; border-collapse: collapse; }
.dm-ans th { text-align: left; font-family: var(--mono); font-size: 9px; font-weight: 500; color: #94a3b8; padding: 2px 3px; }
.dm-ans td { padding: 4px 3px; border-top: 1px solid rgba(51, 65, 85, .6); color: #e2e8f0; vertical-align: middle; }
.dm-ans td .dm-m { display: block; font-size: 8.5px; }
.dm-stack { display: flex; height: 8px; margin: 8px 0 6px; border-radius: 4px; overflow: hidden; background: #1e293b; }
.dm-stack i { display: block; width: 0; }
.dm-stack .e { background: #8b5cf6; } .dm-stack .n { background: #f59e0b; } .dm-stack .c { background: #64748b; }
.dm-eot { color: #cbd5e1; line-height: 1.5; }
.dm-eot b { color: #fff; }
.dm-acts { display: flex; gap: 6px; margin-top: 8px; }
.dm-cin { flex: none; display: flex; align-items: center; min-height: 40px; margin: 8px; padding: 6px 30px 6px 10px; position: relative; border-radius: 9px; border: 1px solid #334155; background: #0b1120; font-size: 10.5px; color: #e2e8f0; }
.dm-ph2 { color: #64748b; }
.dm-caret { display: inline-block; width: 1px; height: 12px; background: #34d399; margin-left: 1px; animation: dm-blink 1s steps(1) infinite; }
@keyframes dm-blink { 50% { opacity: 0; } }
.dm-send { position: absolute; right: 6px; top: 50%; margin-top: -11px; width: 22px; height: 22px; border-radius: 6px; background: #15803d; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 11px; }
.dm-toast { position: absolute; left: 22px; bottom: 22px; padding: 8px 14px; border-radius: 9px; background: #064e3b; border: 1px solid #10b981; color: #d1fae5; font-size: 11px; font-weight: 600; box-shadow: 0 10px 25px rgba(0, 0, 0, .5); }
.dm-toast.in { animation: dm-toast .4s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes dm-toast { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* chapter 3: contract register, letter, determination */
.dm-regs { right: auto; width: 292px; padding: 10px; }
.dm-reg { display: flex; justify-content: space-between; gap: 8px; padding: 5px 8px; margin-bottom: 4px; border-radius: 8px; border: 1px solid #1e293b; background: #0b1120; }
.dm-reg.sel { border-color: rgba(139, 92, 246, .6); background: rgba(139, 92, 246, .08); }
.dm-reg.dm-new { border-color: rgba(16, 185, 129, .5); background: rgba(16, 185, 129, .08); }
.dm-reg.dm-new.sel { border-color: #10b981; }
.dm-regl { min-width: 0; }
.dm-reg p { margin: 2px 0 0; font-size: 10.5px; color: #e2e8f0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dm-reg small { font-size: 9px; color: #94a3b8; }
.dm-regr { flex: none; text-align: right; font-family: var(--mono); font-size: 9px; color: #94a3b8; }
.dm-letter { left: 312px; }
.dm-bar { padding: 5px 9px; border-radius: 7px; font-size: 10px; color: #fde68a; background: rgba(245, 158, 11, .1); border: 1px solid rgba(245, 158, 11, .3); margin-bottom: 8px; transition: all .4s; }
.dm-bar.ok { color: #a7f3d0; background: rgba(16, 185, 129, .1); border-color: rgba(16, 185, 129, .35); }
.dm-fields { display: grid; grid-template-columns: 46px 1fr; gap: 3px 6px; font-size: 10.5px; color: #e2e8f0; padding-bottom: 7px; margin-bottom: 7px; border-bottom: 1px solid #1e293b; }
.dm-fields > span:nth-child(odd) { color: #94a3b8; }
.dm-body { white-space: pre-line; font-size: 10.5px; line-height: 1.55; color: #cbd5e1; min-height: 150px; font-family: Georgia, "Times New Roman", serif; }
.dm-links2 { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.dm-aisum { padding: 9px 11px; border-radius: 9px; background: linear-gradient(135deg, rgba(2, 44, 34, .55), rgba(15, 23, 42, .95)); border: 1px solid rgba(16, 185, 129, .3); font-size: 11px; margin-bottom: 12px; }
.dm-aisum b:first-child { color: #34d399; }
.dm-aisum p { margin: 4px 0 0; color: #cbd5e1; line-height: 1.55; }
.dm-aisum p b { color: #fff; }
.dm-cdates { padding: 10px 12px 12px; border-radius: 9px; background: #0b1120; border: 1px solid #1e293b; }
.dm-cdates small { font-family: var(--mono); font-size: 9px; color: #64748b; }
.dm-cd-line { position: relative; height: 70px; margin: 0 14px; border-bottom: 2px solid #334155; }
.dm-cd-line em { position: absolute; bottom: -16px; transform: translateX(-50%); font-style: normal; font-family: var(--mono); font-size: 8.5px; color: #64748b; }
.dm-cd-ms, .dm-cd-fc { position: absolute; bottom: -7px; width: 0; height: 12px; font-style: normal; }
.dm-cd-ms::before, .dm-cd-fc::before { content: ""; position: absolute; left: -6px; top: 0; width: 12px; height: 12px; transform: rotate(45deg); }
.dm-cd-ms { left: 43%; transition: left .9s cubic-bezier(.16, 1, .3, 1); }
.dm-cd-ms::before { background: #8b5cf6; }
.extended .dm-cd-ms { left: 89%; }
.dm-cd-fc { left: 82%; }
.dm-cd-fc::before { background: #f43f5e; transition: background .6s; }
.extended .dm-cd-fc::before { background: #10b981; }
.dm-cd-ms span, .dm-cd-fc span { position: absolute; white-space: nowrap; font-family: var(--mono); font-size: 9.5px; transform: translateX(-50%); }
.dm-cd-ms span { bottom: 44px; color: #c4b5fd; transition: transform .9s; }
.extended .dm-cd-ms span { transform: translateX(-88%); }
.dm-cd-ms::after { content: ""; position: absolute; left: 0; bottom: 14px; height: 28px; border-left: 1px dashed #8b5cf6; }
.dm-cd-fc span { bottom: 18px; color: #fda4af; transform: translateX(-60%); }
.extended .dm-cd-fc span { color: #6ee7b7; }
.dm-cd-ok { margin-top: 26px; font-size: 10.5px; color: #6ee7b7; }
.dm-end { position: absolute; inset: 0; z-index: 4; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 30px;
  background: radial-gradient(ellipse at center, rgba(6, 78, 59, .92), rgba(2, 6, 23, .97) 70%); }
.dm-end.in { animation: dm-fade .6s ease both; }
@keyframes dm-fade { from { opacity: 0; } to { opacity: 1; } }
.dm-endmark { width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(135deg, #15803d, #10b981); color: #fff; font-weight: 800; font-size: 16px; display: flex; align-items: center; justify-content: center; }
.dm-end h3 { margin: 6px 0 0; font-size: 22px; color: #fff; letter-spacing: -.01em; max-width: 520px; }
.dm-end p { margin: 0 0 10px; font-size: 13px; color: #a7f3d0; }
.dm-end > div:last-child { display: flex; gap: 10px; }
.dm-btn.dm-big { padding: 8px 16px; font-size: 12.5px; border-radius: 9px; cursor: pointer; }
.dm-btn.dm-big:hover { filter: brightness(1.15); }

@media (max-width: 560px) {
  .dm-cap { font-size: 11.5px; min-height: 44px; padding: 6px 10px; }
  .dm-bigplay span { display: none; }
  .dm-bigplay { padding: 10px; }
}
