/* Try Compliance Hub: the full-screen demo (demo.js) and its launchers on the page.
   Product surfaces reuse the .ch island styles in zenoo.css; this file adds the shell,
   the guided-task rail, the glowing dot and the screens the hero does not have. */

/* Launchers on the page */
.dm-cue { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 16px; margin-bottom: 14px; }
.dm-cue .hint { margin: 0; }
.dm-launch { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 12px; border: 0; border-radius: 999px; background: var(--accent); color: #fff; font: 600 13.5px/1 var(--font-ui); cursor: pointer; box-shadow: 0 6px 18px -6px color-mix(in srgb, var(--accent) 70%, transparent); transition: background .15s, transform .15s; }
.dm-launch:hover { background: var(--accent-hover); transform: translateY(-1px); }
.dm-launch svg { width: 14px; height: 14px; }
.dm-launch small { font: 500 12px/1 var(--font-ui); opacity: .8; padding-left: 8px; border-left: 1px solid rgba(255,255,255,.35); }
.dm-launch:focus-visible, .dm-corner:focus-visible, .hero-try:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.dm-corner { position: absolute; z-index: 5; right: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border: 1px solid var(--accent-wash-border); border-radius: 9px; background: rgba(255,255,255,.94); color: var(--accent); font: 600 13px/1 var(--font-ui); cursor: pointer; box-shadow: 0 8px 24px -10px rgba(20,12,60,.35); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.dm-corner:hover { background: var(--accent-wash); }
.dm-corner svg { width: 14px; height: 14px; }
.hero .ch-frame { position: relative; }
.hero-try { display: inline-flex; align-items: center; gap: 7px; padding: 0; border: 0; background: none; color: var(--accent); font: 600 15px/1.2 var(--font-ui); cursor: pointer; }
.hero-try svg { width: 13px; height: 13px; }
.hero-try:hover { text-decoration: underline; text-underline-offset: 3px; }
.cu-m .dm-mtry { display: flex; width: 100%; justify-content: center; margin-top: 14px; padding: 12px 16px; font-size: 15px; border-radius: 10px; }
/* The hero inbox says it can be clicked: a pulse beside the next thing to try */
.hero .ch-ai:not(.done):not(.is-working) .ch-act { position: relative; }
.hero .ch-ai:not(.done):not(.is-working) .ch-act:not(.selected)::after { content: ""; position: absolute; top: -3px; right: -9px; width: 7px; height: 7px; border-radius: 50%; background: var(--c-action); box-shadow: 0 0 0 0 rgba(101,72,232,.5); }
@media (prefers-reduced-motion: no-preference) { .hero .ch-ai:not(.done):not(.is-working) .ch-act:not(.selected)::after { animation: dm-pulse 1.6s ease-out infinite; } }

/* Shell */
html.dm-lock, html.dm-lock body { overflow: hidden; }
.dm { position: fixed; inset: 0; z-index: 1000; display: flex; flex-direction: column; background: #f4f3f0; color: #202124; font-family: var(--font-ui); opacity: 0; transition: opacity .18s ease-out; }
.dm[hidden] { display: none; }
.dm.in { opacity: 1; }
.dm .i { width: 15px; height: 15px; flex: none; }
:where(.dm) button { font: inherit; color: inherit; }
.dm-sp { flex: 1; }
.dm-top { display: flex; align-items: center; gap: 10px; height: 54px; padding: 0 14px 0 18px; background: #fff; border-bottom: 1px solid #e7e5e0; flex: none; }
.dm-brand { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.dm-brand svg { width: 18px; height: 18px; fill: #6548e8; flex: none; }
.dm-brand b { font-weight: 600; font-size: 15px; white-space: nowrap; }
.dm-note { font-size: 12.5px; color: #747982; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dm-tbtn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border: 1px solid #e4e4e7; border-radius: 8px; background: #fff; cursor: pointer; font-size: 13px; font-weight: 500; color: #3f4249; }
.dm-tbtn:hover { background: #f4f4f5; }
.dm-close { width: 34px; padding: 0; justify-content: center; }
.dm-cta { display: inline-flex; align-items: center; justify-content: center; height: 34px; padding: 0 14px; border-radius: 8px; background: #6548e8; color: #fff; font-weight: 600; font-size: 13.5px; text-decoration: none; white-space: nowrap; }
.dm-cta:hover { background: #5638d9; }
.dm-cta.big { height: 40px; margin-top: 10px; width: 100%; }
.dm :focus-visible { outline: 2px solid #7c3aed; outline-offset: 2px; }
.dm-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 320px; gap: 14px; padding: 14px; }
.dm-app { position: relative; min-width: 0; min-height: 0; overflow: auto; background: #fff; border: 1px solid #e2e0da; border-radius: 14px; box-shadow: 0 20px 50px -28px rgba(20,12,60,.3); display: flex; flex-direction: column; }
.dm-view { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; }

/* Product nav */
.dm-pnav { position: sticky; top: 0; z-index: 9; display: flex; align-items: center; gap: 4px; padding: 0 14px; height: 48px; border-bottom: 1px solid var(--c-hair); background: #fff; flex: none; }
.dm-pname { font-weight: 600; font-size: 14.5px; margin-right: 18px; white-space: nowrap; }
.dm-pnav button { all: unset; position: relative; padding: 7px 10px; border-radius: 7px; font-size: 13.5px; color: var(--c-ink2); cursor: pointer; }
.dm-pnav button:hover { background: var(--c-hover); }
.dm-pnav button.on { color: var(--c-ink); font-weight: 600; }
.dm-pnav button.on::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -8px; height: 2px; background: var(--c-ink); border-radius: 2px; }
.dm-pnav button:focus-visible { outline: 2px solid var(--c-ai-accent); }
.dm-me { width: 26px; height: 26px; border-radius: 50%; background: #4b3f72; color: #fff; display: grid; place-items: center; font-size: 10px; font-weight: 600; }
.dm-split { display: grid; grid-template-columns: 200px 1fr; flex: 1; min-height: 0; }
.dm-side { border-radius: 0; }
.dm-side .ch-nav { all: unset; box-sizing: border-box; width: 100%; display: flex; align-items: center; gap: 9px; padding: 6px 8px; border-radius: 7px; color: var(--c-label); font-size: 13.5px; cursor: pointer; }
.dm-side .ch-nav:hover { background: var(--c-hover); }
.dm-side .ch-nav.on { background: var(--c-action-tint); color: var(--c-action); font-weight: 600; }
.dm-side .ch-nav span { flex: 1; }
.dm-side .ch-nav b { font: 400 11px/1 var(--c-mono); color: var(--c-muted); }
.dm-side .ch-nav .i { color: var(--c-ink3); }
.dm-side .ch-nav.on .i { color: var(--c-action); }
.dm-main { overflow: auto; }
.dm-pad { padding: 22px 24px 28px; }
.dm-rows { min-width: 620px; }
.dm-rows tr.dm-grp, .dm-rows tr.dm-static, .dm-ev tr.dm-static { cursor: default; }
.dm-rows tr.dm-grp td, .dm-rows tr.dm-static:hover td, .dm-ev tr:hover td { background: none; }
.dm-rows tr.dm-grp td { border-bottom: 0; padding-top: 14px; }
.dm-rows .ch-group { margin: 0; }
.dm-rows tr.dm-dim td { color: var(--c-muted); }
.dm-rows tr.dm-dim td.it { color: var(--c-ink3); }
.dm-done { font-size: 12px; font-weight: 500; color: var(--c-green); background: var(--c-green-bg); padding: 2px 7px; border-radius: 5px; }
.dm-empty-row { color: var(--c-ink3); padding: 18px 6px; }
.dm-link { all: unset; display: inline-flex; align-items: center; gap: 6px; color: var(--c-action); font-weight: 500; cursor: pointer; }
.dm-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.dm-link .i { width: 14px; height: 14px; }
.dm-empty { margin-top: 18px; border: 0; }
.dm-card-row { display: flex; gap: 10px; margin-top: 16px; padding: 12px; border: 1px solid var(--c-hair); border-radius: 10px; font-size: 13px; }
.dm-card-row p { margin: 4px 0 0; color: var(--c-ink2); }
.dm-note2 { margin-top: 14px; font-size: 13px; color: var(--c-amber); }
.dm-risk { font-size: 12px; padding: 2px 7px; border-radius: 5px; background: #f1f0ec; color: var(--c-ink2); white-space: nowrap; }
.dm-risk.high { background: var(--c-red-bg); color: var(--c-red); }
.dm-risk.medium { background: var(--c-amber-wash); color: var(--c-amber); }
.dm-unas { font-size: 12px; color: var(--c-muted); }

/* The item pop-up */
.dm-scrim { position: absolute; inset: 0; z-index: 6; background: rgba(32,33,36,.32); }
.dm-item, .dm-imp { position: absolute; z-index: 7; inset: 16px 22px; background: #fff; border-radius: 12px; box-shadow: 0 30px 80px -20px rgba(20,12,60,.45); display: flex; flex-direction: column; overflow: hidden; }
.dm-ibody { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 300px; }
.dm-ibody .ch-work { overflow-y: auto; }
.dm-irail { display: flex; flex-direction: column; border-left: 1px solid var(--c-hair); min-height: 0; }
.dm-itabs { display: flex; gap: 4px; padding: 8px 10px; border-bottom: 1px solid var(--c-hair); background: var(--c-side); }
.dm-itabs button { all: unset; position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 6px 9px; border-radius: 7px; font-size: 12.5px; color: var(--c-ink2); cursor: pointer; }
.dm-itabs button:hover { background: var(--c-hover); }
.dm-itabs button[aria-selected="true"] { background: var(--c-action-tint); color: var(--c-ink); font-weight: 600; }
.dm-itabs .i { width: 14px; height: 14px; }
.dm-itabs .ch-dot { top: 3px; right: 3px; }
.dm-irail .ch-pane { flex: 1; overflow-y: auto; }
.dm-ai { margin-bottom: 4px; }
.dm-ai .ch-band { display: block; margin-top: 2px; }
.dm-hint { font-size: 11.5px; color: var(--c-muted); }
.dm-thread { display: grid; gap: 12px; margin-bottom: 12px; }
.dm-msg { display: flex; gap: 8px; font-size: 13px; }
.dm-msg .ch-own { flex: none; }
.dm-msg .ch-own.me { background: #6548e8; }
.dm-msg time { font: 400 11px var(--c-mono); color: var(--c-muted); }
.dm-msg p { margin: 3px 0 0; color: var(--c-ink); line-height: 1.45; }
.dm-msg.typing p { display: flex; gap: 3px; padding-top: 4px; }
.dm-msg.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--c-muted); animation: dm-blink 1s infinite; }
.dm-msg.typing i:nth-child(2) { animation-delay: .15s; } .dm-msg.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dm-blink { 50% { opacity: .3; } }
.dm-at { color: var(--c-action); font-weight: 500; }
.dm-compose { border: 1px solid var(--c-border); border-radius: 10px; padding: 8px; background: #fff; }
.dm-compose textarea { width: 100%; box-sizing: border-box; border: 0; resize: none; font: inherit; font-size: 13px; color: var(--c-ink); outline: none; }
.dm-compose-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 4px; }
.dm-chip { all: unset; padding: 4px 8px; border-radius: 6px; background: var(--c-action-tint); color: var(--c-action); font-size: 12px; font-weight: 500; cursor: pointer; }
.dm-chip:hover { background: #ebe5ff; }

/* The case */
.dm-case { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.dm-chead { position: relative; padding: 18px 22px 0; border-bottom: 1px solid var(--c-hair); }
.dm-ctitle { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.ch-av.sq { border-radius: 6px; background: #f1f0ec; color: var(--c-ink2); }
.dm-status { font-size: 12px; padding: 2px 8px; border-radius: 999px; background: var(--c-action-tint); color: var(--c-action); font-weight: 500; }
.dm-cmeta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 10px; font-size: 13px; color: var(--c-ink2); }
.dm-wlopen { font-size: 13px; color: var(--c-ink2); font-weight: 500; }
.dm-wlopen:hover { color: var(--c-action); }
.dm-wlchip { all: unset; display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 7px; font-size: 12.5px; font-weight: 500; cursor: pointer; background: var(--c-amber-wash); color: var(--c-amber); }
.dm-wlchip.hard { background: var(--c-red-bg); color: var(--c-red); box-shadow: inset 0 0 0 1px #f5b5b5; }
.dm-wlchip .i { width: 13px; height: 13px; }
.dm-wlchip::after { content: "Remove"; margin-left: 6px; font-size: 11.5px; opacity: .65; text-decoration: underline; }
.dm-apwrap { position: relative; display: inline-flex; align-items: center; gap: 8px; }
.dm-outst { all: unset; font-size: 12.5px; font-weight: 500; padding: 4px 9px; border-radius: 7px; background: var(--c-amber-wash); color: var(--c-amber); cursor: pointer; }
.dm-appr { all: unset; display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 8px; background: #f1f0ec; color: var(--c-muted); font-weight: 600; font-size: 13px; cursor: pointer; }
.dm-appr .i { width: 13px; height: 13px; }
.dm-appr.ready { background: var(--c-ink); color: #fff; }
.dm-appr.done, .ch-approve.done.dm-appr { background: var(--c-green-bg); color: var(--c-green); cursor: default; }
.dm-apop { position: absolute; z-index: 8; top: calc(100% + 8px); right: 0; width: 330px; max-width: calc(100vw - 60px); background: #fff; border: 1px solid var(--c-border); border-radius: 10px; box-shadow: 0 12px 32px -8px rgba(20,12,60,.25); padding: 12px 14px; font-size: 13px; color: var(--c-ink); }
.dm-apop p { margin: 0 0 8px; }
.dm-apop .who { margin: 10px 0 2px; font-size: 12px; color: var(--c-ink3); }
.dm-apop .row { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--c-row); }
.dm-apop .dm-link { margin-top: 10px; }
.dm-wlpop { position: absolute; z-index: 8; left: 22px; top: 92px; width: 380px; max-width: calc(100% - 44px); background: #fff; border: 1px solid var(--c-border); border-radius: 12px; box-shadow: 0 16px 40px -10px rgba(20,12,60,.3); padding: 14px 16px; display: grid; gap: 8px; font-size: 13px; color: var(--c-ink); }
.dm-wlpop h6, .dm-drawer h6, .dm-qlist h6 { margin: 0 0 2px; font-size: 13.5px; font-weight: 600; }
.dm-opt { display: flex; gap: 10px; align-items: flex-start; padding: 10px; border: 1px solid var(--c-border); border-radius: 9px; cursor: pointer; }
.dm-opt.on { border-color: var(--c-action); background: var(--c-action-tint); }
.dm-opt input { margin-top: 3px; accent-color: #6548e8; }
.dm-opt b { display: block; font-weight: 600; margin-bottom: 2px; }
.dm-opt span { color: var(--c-ink2); line-height: 1.4; }
.dm-lab { font-weight: 500; margin-top: 4px; }
.dm-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.dm-ctabs { display: flex; gap: 2px; margin-top: 14px; overflow-x: auto; }
.dm-ctabs button { all: unset; position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 9px 12px 11px; font-size: 13.5px; color: var(--c-ink2); cursor: pointer; white-space: nowrap; }
.dm-ctabs button:hover { color: var(--c-ink); }
.dm-ctabs button[aria-selected="true"] { color: var(--c-ink); font-weight: 600; }
.dm-ctabs button[aria-selected="true"]::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; background: var(--c-ink); }
.dm-ctabs em { font-style: normal; font: 500 11px/1 var(--c-mono); background: var(--c-amber-wash); color: var(--c-amber); padding: 3px 5px; border-radius: 5px; }
.dm-cbody { position: relative; flex: 1; padding: 6px 22px 24px; }
.dm-ev { min-width: 640px; }
.dm-ev .ch-pgrp td { white-space: normal; }
.dm-ev .ch-pgrp .ch-tagc, .dm-ev .ch-pgrp .ch-need-c, .dm-ev .ch-pgrp .ch-ok-c { margin-left: 8px; }
.dm-ver { font-size: 12.5px; color: var(--c-ink3); }
.dm-new { margin-left: 8px; font-size: 11.5px; font-weight: 500; color: var(--c-action); background: var(--c-action-tint); padding: 2px 7px; border-radius: 5px; }
.dm-foot { margin: 14px 0 0; font-size: 12.5px; color: var(--c-ink3); }

/* Structure */
.dm-strbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 12px 0; }
.dm-strbar p { margin: 0; color: var(--c-ink2); font-size: 13px; }
.dm-strbar .ch-btn { display: inline-flex; align-items: center; gap: 6px; }
.dm-strbar .ch-btn .i { width: 14px; height: 14px; }
.dm-canvas-wrap { overflow-x: auto; border: 1px solid var(--c-hair); border-radius: 12px; background: #fafaf8 radial-gradient(#e2e0da 1px, transparent 1px) 0 0 / 18px 18px; }
.dm-canvas { position: relative; width: 720px; height: 400px; margin: 0 auto; }
.dm-layer { position: absolute; left: 12px; font-size: 11.5px; color: var(--c-ink3); transform: translateY(-50%); }
.dm-edges { position: absolute; inset: 0; width: 100%; height: 100%; }
.dm-edges path { fill: none; stroke: #b9b6ae; stroke-width: 1.3; }
.dm-edges text { font: 500 11px var(--c-mono); fill: var(--c-ink2); text-anchor: middle; paint-order: stroke; stroke: #fafaf8; stroke-width: 4px; }
.dm-node { all: unset; box-sizing: border-box; position: absolute; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 2px; min-width: 150px; max-width: 210px; padding: 9px 12px; background: #fff; border: 1px solid var(--c-border); border-radius: 10px; text-align: center; font-size: 12.5px; cursor: pointer; box-shadow: 0 4px 12px -8px rgba(20,12,60,.25); }
.dm-node:hover { border-color: var(--c-ink3); }
.dm-node.sel { border-color: var(--c-action); box-shadow: 0 0 0 3px var(--c-action-tint); }
.dm-node b { font-weight: 600; color: var(--c-ink); }
.dm-node small { color: var(--c-ink3); font-size: 11.5px; }
.dm-node.pe { background: transparent; border-color: transparent; box-shadow: none; min-width: 120px; }
.dm-node.pe:hover, .dm-node.pe.sel { background: #fff; border-color: var(--c-border); }
.dm-node.me { border-color: var(--c-ink); border-width: 1.5px; }
.dm-node em { font-style: normal; font-size: 10.5px; font-weight: 600; padding: 2px 6px; border-radius: 5px; background: var(--c-ink); color: #fff; margin-top: 2px; }
.dm-node em.new { background: var(--c-action); }
.dm-node.fresh { animation: dm-in .5s ease-out both; }
.dm-nav { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--c-border); background: #fff; display: grid; place-items: center; font-size: 9.5px; font-weight: 600; color: var(--c-ink2); margin-bottom: 2px; }
.dm-node.unk { cursor: default; background: var(--c-amber-wash); border: 1px dashed #e0b56e; color: var(--c-amber); }
.dm-node.unk b { color: var(--c-amber); }
.dm-node.unk small { color: #a87a3a; }
@keyframes dm-in { from { opacity: 0; transform: translate(-50%, -40%); } to { opacity: 1; transform: translate(-50%, -50%); } }
.dm-drawer { position: absolute; z-index: 5; top: 6px; right: 22px; width: 300px; max-width: calc(100% - 44px); background: #fff; border: 1px solid var(--c-border); border-radius: 12px; box-shadow: 0 16px 40px -10px rgba(20,12,60,.3); padding: 14px; font-size: 13px; display: grid; gap: 8px; }
.dm-dhead { display: flex; align-items: center; gap: 8px; }
.dm-drawer .ch-tagc { justify-self: start; margin: 0; }
.dm-drawer .row { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--c-row); }

/* Import from a chart */
.dm-imp { inset: 12px; z-index: 9; }
.dm-imp .ch-top { gap: 10px; }
.dm-impbody { flex: 1; min-height: 0; display: grid; grid-template-columns: 1.15fr 1fr; }
.dm-impl { padding: 16px 18px; background: #f7f7f5; overflow: auto; }
.dm-impr { padding: 16px 18px; overflow: auto; border-left: 1px solid var(--c-hair); display: grid; gap: 10px; align-content: start; }
.dm-impr .ch-lbl { margin-top: 6px; }
.dm-pdf { background: #fff; border: 1px solid var(--c-hair); border-radius: 6px; padding: 16px; margin-top: 10px; font-family: Georgia, "Times New Roman", serif; min-width: 440px; }
.dm-pdf > b { font-size: 14px; }
.dm-pdf > small { display: block; font-size: 11.5px; color: #555; margin-top: 2px; }
.dm-pdfg { position: relative; height: 270px; margin-top: 12px; }
.dm-pdfg span { position: absolute; display: grid; justify-items: center; padding: 6px 10px; border: 1.3px solid #222; border-radius: 4px; background: #fff; font-size: 11px; transform: translateX(-50%); min-width: 110px; }
.dm-pdfg span.p { border-radius: 16px; }
.dm-pdfg span.me { background: #eef1fb; }
.dm-pdfg span b { font-size: 11.5px; }
.dm-pdfg span small { font-size: 10px; color: #444; }
.dm-pdfg span i { position: absolute; left: -7px; top: -7px; width: 15px; height: 15px; background: #202124; color: #fff; font: 600 9.5px/15px var(--c-ui); font-style: normal; text-align: center; border-radius: 3px; }
.dm-pdfg .b4 { left: 24%; top: 0; } .dm-pdfg .b5 { left: 72%; top: 0; }
.dm-pdfg .b2 { left: 24%; top: 92px; } .dm-pdfg .b3 { left: 72%; top: 92px; }
.dm-pdfg .b1 { left: 40%; top: 200px; } .dm-pdfg .b6 { left: 84%; top: 200px; }
.dm-pdfg em { position: absolute; font: 600 10.5px var(--c-mono); font-style: normal; transform: translateX(-50%); }
.dm-pdfg .p3 { left: 24%; top: 62px; } .dm-pdfg .p4 { left: 72%; top: 62px; }
.dm-pdfg .p1 { left: 30%; top: 160px; } .dm-pdfg .p2 { left: 60%; top: 160px; }
.dm-impopt { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--c-row); font-size: 13px; cursor: pointer; }
.dm-impopt input { margin-top: 3px; accent-color: #202124; }
.dm-impopt b { display: block; font-weight: 600; }
.dm-impopt span { color: var(--c-ink2); line-height: 1.4; }
.dm-impopt small { display: block; color: var(--c-muted); margin-top: 2px; }
.dm-unch { margin: 0; font-size: 12.5px; color: var(--c-ink3); line-height: 1.5; }

/* Files and history */
.dm-files { display: grid; gap: 10px; margin-top: 14px; }
.dm-file { display: flex; gap: 12px; padding: 12px 14px; border: 1px solid var(--c-hair); border-radius: 10px; font-size: 13px; }
.dm-file > .i { width: 18px; height: 18px; color: var(--c-ink3); margin-top: 1px; }
.dm-file small { display: block; color: var(--c-ink3); margin-top: 2px; }
.dm-file p { display: flex; gap: 6px; align-items: flex-start; margin: 8px 0 0; color: var(--c-v6t2); background: var(--c-ai-bg); padding: 6px 9px; border-radius: 7px; }
.dm-mk svg { width: 13px; height: 13px; fill: var(--c-brand); margin-top: 3px; }
.dm-trail { margin-top: 10px; max-width: 640px; }
.dm-trail .ch-hrow { grid-template-columns: 52px 1fr; }

/* Insights */
.dm-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 16px 0 18px; }
.dm-kpis > div { padding: 12px 14px; border: 1px solid var(--c-hair); border-radius: 10px; }
.dm-kpis small { display: block; font-size: 12px; color: var(--c-ink3); }
.dm-kpis b { display: block; margin-top: 6px; font-size: 24px; font-weight: 600; letter-spacing: -.02em; }
.dm-kpis b.r { color: var(--c-red); }
.dm-bar { all: unset; box-sizing: border-box; width: 100%; display: grid; grid-template-columns: 120px 1fr 28px; gap: 12px; align-items: center; padding: 9px 8px; margin: 0 -8px; border-radius: 8px; cursor: pointer; font-size: 13px; }
.dm-bar:hover { background: var(--c-hover); }
.dm-bar.on { background: var(--c-action-tint); }
.dm-bar .ch-bar { height: 12px; }
.dm-qlist { margin-top: 14px; padding: 12px 14px; border: 1px solid var(--c-hair); border-radius: 10px; }
.dm-qrow { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--c-row); font-size: 13px; }
.dm-qrow:last-child { border-bottom: 0; }
.dm-qrow .t { flex: 1; min-width: 0; }
.dm-qrow small { display: block; color: var(--c-ink3); }
.dm-aswrap { position: relative; }
.dm-assign { all: unset; padding: 4px 10px; border: 1px dashed var(--c-ink3); border-radius: 7px; font-size: 12.5px; font-weight: 500; cursor: pointer; }
.dm-menu { position: absolute; z-index: 5; right: 0; top: calc(100% + 6px); display: grid; min-width: 170px; padding: 4px; background: #fff; border: 1px solid var(--c-border); border-radius: 9px; box-shadow: 0 12px 28px -8px rgba(20,12,60,.25); }
.dm-menu button { all: unset; padding: 7px 10px; border-radius: 6px; font-size: 13px; cursor: pointer; }
.dm-menu button:hover { background: var(--c-hover); }

/* Rail: guided tasks */
.dm-rail { min-height: 0; overflow-y: auto; background: #fff; border: 1px solid #e2e0da; border-radius: 14px; padding: 18px 16px 16px; display: flex; flex-direction: column; }
.dm-rhead h3 { margin: 4px 0 4px; font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.dm-rhead p { margin: 0; font-size: 13px; color: #5f636b; line-height: 1.45; }
.dm-rhead .dm-eyebrow { font: 500 11px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: #6548e8; }
.dm-prog { height: 6px; margin-top: 14px; border-radius: 3px; background: #efeef0; overflow: hidden; }
.dm-prog i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #6548e8, #a35cf0 50%, #e8559a); transition: width .5s ease-out; }
.dm-rhead > small { display: block; margin-top: 6px; font-size: 12px; color: #747982; }
.dm-tasks { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 6px; }
.dm-tasks > li { border: 1px solid #ecebe7; border-radius: 11px; transition: border-color .15s, box-shadow .15s; }
.dm-tasks > li.on { border-color: #ded6ff; box-shadow: 0 6px 18px -12px rgba(101,72,232,.6); }
.dm-task { all: unset; box-sizing: border-box; width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 12px; cursor: pointer; border-radius: 11px; }
.dm-task:hover { background: #faf9f7; }
.dm-tick { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font: 600 12px/1 var(--font-ui); background: #f1f0ec; color: #5f636b; }
.dm-tasks li.on .dm-tick { background: #6548e8; color: #fff; }
.dm-tasks li.done .dm-tick { background: #e6f4ea; color: #15803d; }
.dm-tick .i { width: 13px; height: 13px; }
.dm-tt { min-width: 0; }
.dm-tt b { display: block; font-size: 13.5px; font-weight: 600; }
.dm-tt small { display: block; font-size: 12px; color: #747982; margin-top: 1px; }
.dm-steps { padding: 0 12px 12px 46px; font-size: 13px; }
.dm-steps > p { margin: 0 0 8px; color: #5f636b; line-height: 1.45; }
.dm-steps ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.dm-steps li { display: flex; gap: 8px; align-items: flex-start; color: #9ca0a7; line-height: 1.4; }
.dm-steps li > i { flex: none; width: 8px; height: 8px; margin: 5px 3px 0; border-radius: 50%; border: 1.5px solid currentColor; }
.dm-steps li .i { width: 14px; height: 14px; margin-top: 2px; }
.dm-steps li.ok { color: #15803d; }
.dm-steps li.ok span { color: #747982; }
.dm-steps li.cur { color: #202124; font-weight: 500; }
.dm-steps li.cur > i { border: 0; background: #6548e8; box-shadow: 0 0 0 0 rgba(101,72,232,.5); animation: dm-pulse 1.6s ease-out infinite; }
.dm-well { margin-top: 12px; padding: 10px 12px; border-radius: 9px; background: #f5f2ff; color: #3f4249; line-height: 1.45; }
.dm-well > small { display: block; margin-top: 6px; color: #5f636b; text-align: center; }
.dm-next { all: unset; display: flex; align-items: center; justify-content: space-between; gap: 6px; width: 100%; box-sizing: border-box; margin-top: 8px; padding: 9px 12px; border-radius: 8px; background: #202124; color: #fff; font-weight: 600; font-size: 13px; cursor: pointer; }
.dm-next .i { width: 14px; height: 14px; }
.dm-rfoot { margin-top: auto; padding-top: 18px; display: grid; gap: 6px; text-align: center; }
.dm-rfoot p { margin: 0; font-size: 13px; color: #5f636b; }
.dm-rfoot small { font-size: 12px; color: #747982; }
.dm-rfoot .dm-cta { height: 40px; }

/* The glowing dot and its tip */
.dm-dot { position: absolute; z-index: 30; top: 0; left: 0; width: 14px; height: 14px; border-radius: 50%; background: #6548e8; border: 2px solid #fff; box-sizing: border-box; box-shadow: 0 0 0 0 rgba(101,72,232,.55), 0 2px 6px rgba(20,12,60,.35); pointer-events: none; opacity: 0; transition: opacity .2s, transform .35s cubic-bezier(.2,.7,.2,1); }
.dm-dot.on { opacity: 1; animation: dm-glow 1.5s ease-out infinite; }
@keyframes dm-glow { 0% { box-shadow: 0 0 0 0 rgba(101,72,232,.55), 0 2px 6px rgba(20,12,60,.35); } 100% { box-shadow: 0 0 0 16px rgba(101,72,232,0), 0 2px 6px rgba(20,12,60,.35); } }
@keyframes dm-pulse { 0% { box-shadow: 0 0 0 0 rgba(101,72,232,.5); } 100% { box-shadow: 0 0 0 8px rgba(101,72,232,0); } }
.dm-tip { position: absolute; z-index: 30; top: 0; left: 0; padding: 7px 10px; border-radius: 8px; background: #202124; color: #fff; font-size: 12.5px; font-weight: 500; line-height: 1.35; pointer-events: none; opacity: 0; transition: opacity .2s, transform .35s cubic-bezier(.2,.7,.2,1); box-shadow: 0 8px 20px -8px rgba(0,0,0,.4); }
.dm-tip.on { opacity: 1; }
.dm-target { box-shadow: 0 0 0 3px rgba(101,72,232,.28) !important; border-radius: 7px; }
tr.dm-target { box-shadow: none !important; }
tr.dm-target td { background: #f5f2ff !important; }
.dm-toast { position: absolute; z-index: 40; left: 50%; bottom: 26px; transform: translate(-50%, 12px); max-width: calc(100% - 40px); padding: 10px 14px; border-radius: 10px; background: #202124; color: #fff; font-size: 13px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.dm-toast.on { opacity: 1; transform: translate(-50%, 0); }
.dm-mbar { display: none; }

@media (prefers-reduced-motion: reduce) {
  .dm-dot.on, .dm-steps li.cur > i, .dm-node.fresh, .dm-msg.typing i { animation: none; }
  .dm, .dm-dot, .dm-tip, .dm-toast { transition: none; }
}

/* Laptop */
@media (max-width: 1180px) {
  .dm-body { grid-template-columns: 1fr 280px; }
  .dm-split { grid-template-columns: 172px 1fr; }
  .dm-ibody { grid-template-columns: 1fr 260px; }
}
/* Tablet and phone: the tasks become a bar at the bottom that opens as a sheet */
@media (max-width: 900px) {
  .dm-top { height: 50px; padding: 0 10px 0 14px; }
  .dm-note, .dm-hide-s { display: none; }
  .dm-body { grid-template-columns: 1fr; padding: 0; gap: 0; }
  .dm-app { border: 0; border-radius: 0; box-shadow: none; padding-bottom: 76px; }
  .dm-split { grid-template-columns: 1fr; }
  .dm-side { display: none; }
  .dm-pname { display: none; }
  .dm-pad, .dm-main { padding: 18px 14px 24px; }
  .dm-chead { padding: 14px 14px 0; }
  .dm-cbody { padding: 6px 14px 24px; }
  .dm-item, .dm-imp { inset: 0; border-radius: 0; }
  .dm-ibody { display: block; overflow-y: auto; }
  .dm-ibody .ch-work { overflow: visible; padding: 18px 14px; }
  .dm-irail { border-left: 0; border-top: 1px solid var(--c-hair); }
  .dm-impbody { display: block; overflow-y: auto; }
  .dm-impr { border-left: 0; }
  .dm-kpis b { font-size: 20px; }
  .dm-bar { grid-template-columns: 96px 1fr 22px; }
  .dm-rail { position: absolute; z-index: 35; left: 0; right: 0; bottom: 0; max-height: 78%; border-radius: 16px 16px 0 0; border-width: 1px 0 0; box-shadow: 0 -20px 50px -20px rgba(20,12,60,.4); transform: translateY(105%); transition: transform .25s ease-out; padding-bottom: 86px; }
  .dm.sheet .dm-rail { transform: none; }
  .dm-mbar { all: unset; box-sizing: border-box; position: absolute; z-index: 36; left: 10px; right: 10px; bottom: 10px; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: #202124; color: #fff; cursor: pointer; box-shadow: 0 12px 30px -10px rgba(0,0,0,.5); }
  .dm-mdot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: #8b74ff; animation: dm-pulse 1.6s ease-out infinite; }
  .dm-mt { flex: 1; min-width: 0; }
  .dm-mt b { display: block; font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .dm-mt small { display: block; font-size: 12.5px; color: #c9c7d1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .dm-mn { display: inline-flex; align-items: center; gap: 6px; font: 500 12px/1 var(--font-mono); color: #c9c7d1; }
  .dm-wlpop { left: 14px; top: 84px; }
  .dm-drawer { right: 14px; }
  .dm-toast { bottom: 84px; }
  .dm-cue { justify-content: flex-start; }
}
@media (max-width: 480px) {
  .dm-brand b { font-size: 14px; }
  .dm-top .dm-cta { padding: 0 10px; font-size: 13px; }
  .ch-top .ch-pill { display: none; }
  .dm-kpis { grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
  .dm-kpis > div { padding: 10px; }
  .dm-pdf { min-width: 400px; }
}
.dm-hero-try { margin: 18px 0 0; }
.hero .dm-expand { color: var(--c-action); border-color: var(--c-action-border); background: var(--c-action-tint); }
.hero .dm-expand svg { width: 14px; height: 14px; }
.dm-pdfg svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.dm-pdfg svg path { fill: none; stroke: #222; stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.dm-pdfg svg path.dash { stroke-dasharray: 3 3; }
.dm-pdfg span { z-index: 1; }
@media (max-width: 640px) {
  .dm-rows { min-width: 0; }
  .dm-rows td, .dm-rows td.it { white-space: normal; }
  .dm-view .dm-rows:not(.dm-cases) th:nth-child(4), .dm-view .dm-rows:not(.dm-cases) td:nth-child(4),
  .dm-view .dm-rows:not(.dm-cases) th:nth-child(6), .dm-view .dm-rows:not(.dm-cases) td:nth-child(6),
  .dm-view .dm-rows:not(.dm-cases) th:nth-child(7), .dm-view .dm-rows:not(.dm-cases) td:nth-child(7) { display: none; }
  .dm-rows tr.dm-grp td { display: table-cell; }
  .dm-cases th:nth-child(1), .dm-cases td:nth-child(1), .dm-cases th:nth-child(5), .dm-cases td:nth-child(5), .dm-cases th:nth-child(6), .dm-cases td:nth-child(6) { display: none; }
}
@media (max-width: 640px) {
  .dm-apwrap { position: static; }
  .dm-apop { left: 14px; right: 14px; top: auto; width: auto; max-width: none; margin-top: 8px; }
  .dm-ev { min-width: 0; }
  .dm-ev th:nth-child(3), .dm-ev td:nth-child(3) { display: none; }
  .dm-ev td { white-space: normal; }
}

/* Spike: the real components at /try, in an iframe */
.dm-real{position:fixed;inset:0;z-index:1001;display:flex;flex-direction:column;background:#fafafa}
.dm-real[hidden]{display:none}
.dm-real-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;height:44px;padding:0 12px 0 20px;border-bottom:1px solid #e7e5e0;background:#fff;font:500 14px/1.3 Inter,system-ui,sans-serif;color:#202124}
.dm-real-bar em{font-style:normal;font-weight:400;color:#747982;margin-left:10px}
.dm-real-x{width:32px;height:32px;border:0;border-radius:8px;background:transparent;font-size:22px;line-height:1;color:#202124;cursor:pointer}
.dm-real-x:hover{background:#f2f1ee}
.dm-real iframe{flex:1;width:100%;border:0}
@media (max-width:640px){.dm-real-bar em{display:none}}
