/* /demos/ — "Try it as your customer would": four made-up businesses, each with the customer on the
   left and what the owner receives on the right. Built in .publish/demo-page.
   Everything is under .dm and prefixed dm-, so nothing here can reach another page.
   Type, colour and card values are measured from the live site: the services rows (h2 40px/500/-.05em,
   the Cormorant italic accent, the canvas card) and the home board (lane header, bubbles, "Hear it"). */

.dm { --dm-accent: #264F8F; --dm-card-b: rgba(81, 129, 196, .13); --dm-ok: #1B6B3A; --dm-ok-bg: #EAF7EF; --dm-ok-b: #BFE5CC;
      --dm-warn: #8A5A00; --dm-warn-bg: #FFF4E5; --dm-bad: #B4231A; --dm-bad-bg: #FDECEA; }
.dm *, .dm *::before, .dm *::after { box-sizing: border-box; }
.dm-wrap { max-width: 1320px; margin: 0 auto; padding: 0 var(--pad); }
.dm-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.dm :focus-visible { outline: 2px solid var(--spark); outline-offset: 2px; }
.dm svg { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* headings and copy */
.dm h1, .dm h2 { margin: 0; font-family: var(--sans); font-weight: 500; color: var(--ink); text-wrap: balance; }
.dm h1 { font-size: clamp(2.3rem, 4.9vw, 3.78rem); line-height: 1.06; letter-spacing: -.055em; }
.dm h2 { font-size: clamp(1.85rem, 3.3vw, 2.5rem); line-height: 1.13; letter-spacing: -.05em; }
.dm h1 em, .dm h2 em { font-family: var(--display); font-style: italic; font-weight: 500; font-size: 1.13em; line-height: 1;
                       letter-spacing: -.03em; color: var(--dm-accent); }
.dm-kicker { margin: 0 0 14px; font-size: .78rem; line-height: 1.65; letter-spacing: var(--ls); color: var(--ink-2);
             display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.dm-trade { padding: 1px 10px; border: 1px solid var(--hair-2); border-radius: 100px; background: var(--surface); color: var(--navy);
            font-size: .72rem; font-weight: 600; letter-spacing: .02em; }
.dm-lede { margin: 0; font-size: 1.02rem; line-height: 1.7; color: var(--ink-2); max-width: 34rem; text-wrap: pretty; }

/* hero */
.dm-hero { padding: clamp(52px, 7vw, 104px) 0 clamp(8px, 2vw, 24px); text-align: center; }
.dm-hero .dm-kicker { justify-content: center; }
.dm-hero .dm-lede { margin: 18px auto 0; }
.dm-jump { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; max-width: 900px; margin: 38px auto 0; }
.dm-jump a { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 12px; align-items: center;
             text-align: left; padding: 13px 15px; background: var(--surface); border: 1px solid var(--hair); border-radius: 14px;
             color: var(--ink); text-decoration: none; transition: border-color var(--mid) var(--ease), transform var(--mid) var(--ease), box-shadow var(--mid) var(--ease); }
.dm-jump a:hover { border-color: rgba(72, 108, 252, .5); transform: translateY(-2px); box-shadow: 0 18px 40px -30px rgba(12, 36, 84, .5); }
.dm-jump-ico { grid-row: 1 / 3; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--bg-2); color: var(--navy); font-size: 18px; }
.dm-jump b { font-size: .93rem; font-weight: 600; line-height: 1.3; }
.dm-jump a > span:last-child { font-size: .76rem; line-height: 1.3; color: var(--ink-3); }

/* one demo */
.dm-row { padding: clamp(64px, 8vw, 116px) 0 0; scroll-margin-top: 12px; }
.dm-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 30rem); gap: 20px 64px; align-items: end; }
.dm-head-main { display: flex; align-items: flex-start; gap: 18px; min-width: 0; }
.dm-head-main > div { min-width: 0; }
.dm-mark { flex: none; width: 54px; height: 54px; margin-top: 2px; display: grid; place-items: center; border: 1px solid var(--hair); border-radius: 17px;
           background: var(--surface); color: var(--navy); font-size: 25px; box-shadow: 0 16px 34px -24px rgba(12, 36, 84, .55); }
.dm-stage { margin-top: clamp(26px, 3.2vw, 44px); padding: clamp(12px, 2vw, 28px); display: grid;
            grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr); gap: clamp(10px, 1.4vw, 20px); align-items: stretch;
            border: 1px solid var(--dm-card-b); border-radius: 24px;
            background: radial-gradient(at 65% 30%, rgba(188, 211, 255, .2), rgba(255, 255, 255, .2));
            box-shadow: inset 0 1px 0 #fff, 0 24px 80px -60px rgba(50, 85, 147, .4); }

.dm-pane { height: 672px; min-width: 0; display: flex; flex-direction: column; overflow: hidden;
           background: var(--surface); border: 1px solid var(--hair); border-radius: 18px; }
.dm-pane-head { flex: none; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px;
                min-height: 54px; padding: 10px 18px; border-bottom: 1px solid var(--hair); }
.dm-role { display: inline-flex; align-items: center; gap: 8px; font-size: .86rem; font-weight: 600; letter-spacing: -.01em; color: var(--ink); }
.dm-role svg { font-size: 17px; color: var(--navy); }
.dm-meta { font-size: .76rem; color: var(--ink-3); }

.dm-link { align-self: center; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%;
           background: var(--surface); border: 1px solid var(--hair-2); color: var(--ink-3); font-size: 18px;
           transition: background var(--mid) var(--ease), color var(--mid) var(--ease), border-color var(--mid) var(--ease), box-shadow var(--mid) var(--ease); }
.dm-link.is-live { background: var(--spark); border-color: var(--spark); color: #fff; box-shadow: 0 0 0 9px rgba(72, 108, 252, .14); }

/* a conversation */
.dm-log { flex: 1; min-height: 0; margin: 0; padding: 18px; list-style: none; overflow-y: auto; overscroll-behavior: contain;
          display: flex; flex-direction: column; gap: 10px; scroll-behavior: smooth; }
.dm-log[hidden] { display: none; }
.dm-msg { max-width: 86%; padding: 10px 14px; border-radius: 16px; font-size: .94rem; line-height: 1.5; overflow-wrap: anywhere; animation: dm-in .32s var(--ease) both; }
.dm-msg small { display: block; margin-bottom: 2px; font-size: .66rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .62; }
.dm-msg--agent { align-self: flex-start; background: var(--bg-2); border: 1px solid var(--hair); border-bottom-left-radius: 6px; }
.dm-msg--staff { align-self: flex-start; background: var(--surface); border: 1px solid rgba(72, 108, 252, .45); border-bottom-left-radius: 6px; }
.dm-msg--me { align-self: flex-end; background: var(--navy); color: #fff; border-bottom-right-radius: 6px; }
.dm-log--sms .dm-msg--me { background: var(--spark); }
.dm-typing { align-self: flex-start; display: inline-flex; gap: 5px; padding: 14px 16px; border-radius: 16px; border-bottom-left-radius: 6px; background: var(--bg-2); border: 1px solid var(--hair); }
.dm-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); animation: dm-dot 1s infinite ease-in-out; }
.dm-typing i:nth-child(2) { animation-delay: .15s; }
.dm-typing i:nth-child(3) { animation-delay: .3s; }

.dm-sent { display: none; }
.dm-hint { flex: none; margin: 0 18px 10px; padding: 8px 12px; border-radius: 10px; font-size: .82rem; line-height: 1.5; color: var(--navy); background: rgba(72, 108, 252, .09); }
.dm-chips { flex: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0 18px 12px; }
.dm-chips:empty { display: none; }
.dm-chips button { padding: 8px 13px; border: 1px solid var(--hair-2); border-radius: 100px; background: var(--surface); color: var(--ink);
                   font: 500 .84rem/1.3 var(--sans); text-align: left; cursor: pointer; transition: border-color var(--fast) var(--ease), color var(--fast) var(--ease); }
.dm-chips button:hover { border-color: var(--spark); color: var(--navy); }
.dm-composer { flex: none; display: flex; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--hair); }
.dm-composer input { flex: 1; min-width: 0; padding: 10px 16px; border: 1px solid var(--hair-2); border-radius: 100px; background: var(--bg);
                     color: var(--ink); font: 400 .94rem/1.4 var(--sans); }
.dm-composer input::placeholder { color: var(--ink-3); }
.dm-composer button { flex: none; width: 42px; height: 42px; display: grid; place-items: center; border: 0; border-radius: 50%;
                      background: var(--navy); color: #fff; font-size: 17px; cursor: pointer; }
.dm-composer[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.dm-restart { flex: none; align-self: center; margin: 0 0 14px; display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px;
              border: 1px solid var(--hair-2); border-radius: 100px; background: var(--surface); color: var(--ink-2); font: 600 .8rem/1 var(--sans); cursor: pointer; }
.dm-restart[hidden] { display: none; }
.dm-restart:hover { border-color: var(--spark); color: var(--navy); }

.dm-tabs { display: inline-flex; gap: 3px; padding: 3px; border-radius: 100px; background: var(--bg-2); }
.dm-tabs button { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 0; border-radius: 100px;
                  background: none; color: var(--ink-2); font: 600 .78rem/1.2 var(--sans); cursor: pointer; }
.dm-tabs button svg { font-size: 15px; }
.dm-tabs button[aria-selected="true"] { background: var(--surface); color: var(--navy); box-shadow: 0 1px 2px rgba(12, 36, 84, .14); }
.dm-ping { width: 8px; height: 8px; border-radius: 50%; background: var(--spark); animation: dm-ping 1.4s infinite; }
.dm-ping[hidden] { display: none; }

/* a phone */
.dm-phone { flex: 1; min-height: 0; width: min(100% - 28px, 348px); margin: 16px auto; padding: 12px 14px 16px; display: flex; flex-direction: column; gap: 12px;
            overflow-y: auto; border: 1px solid var(--hair-2); border-radius: 34px; background: linear-gradient(#fff, #FBFBFE);
            box-shadow: inset 0 0 0 5px var(--bg-2), 0 30px 60px -44px rgba(12, 36, 84, .5); }
.dm-phone-bar { flex: none; position: sticky; top: -12px; z-index: 2; margin: -12px 0 0; padding-top: 14px !important; background: linear-gradient(#fff 80%, rgba(255, 255, 255, 0)); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 2px 10px 0; font-size: .72rem; font-weight: 700; color: var(--ink-2); }
.dm-phone-notch { width: 72px; height: 18px; border-radius: 100px; background: var(--ink); opacity: .9; }
.dm-phone-sig { justify-self: end; width: 18px; height: 10px; background: linear-gradient(90deg, var(--ink-2) 0 3px, transparent 3px 5px, var(--ink-2) 5px 8px, transparent 8px 10px, var(--ink-2) 10px 13px, transparent 13px 15px, var(--hair-2) 15px 18px); border-radius: 1px; }

.dm-job { border: 1px solid var(--hair); border-radius: 16px; padding: 14px; background: var(--surface); }
.dm-job > header { display: flex; align-items: center; gap: 8px; }
.dm-job > header b { font-size: .9rem; font-weight: 600; }
.dm-job-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--hair-2); }
.dm-job.is-live .dm-job-dot { background: var(--spark); animation: dm-ping 1.4s infinite; }
.dm-job.is-done .dm-job-dot { background: var(--dm-ok); }
.dm-job > header i { margin-left: auto; padding: 3px 9px; border-radius: 100px; background: var(--dm-bad-bg); color: var(--dm-bad);
                     font: 700 .66rem/1.3 var(--sans); letter-spacing: .06em; text-transform: uppercase; animation: dm-in .32s var(--ease) both; }
.dm-job > header i[hidden] { display: none; }
.dm-job dl { margin: 12px 0 0; display: grid; gap: 8px; }
.dm-job dl > div { display: grid; gap: 1px; }
.dm-job dt { font-size: .66rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.dm-job dd { margin: 0 -6px; padding: 1px 6px; min-height: 1.5em; border-radius: 6px; font-size: .92rem; line-height: 1.5; overflow-wrap: anywhere; }
.dm-job dd:empty::before { content: ""; display: block; width: 58%; height: 9px; margin-top: 7px; border-radius: 9px; background: var(--bg-2); }
.dm-job dl > div:nth-child(even) dd:empty::before { width: 40%; }
.dm-job .is-set dd { animation: dm-flash 1.3s var(--ease) both; }

.dm-sms { flex: none; padding: 12px 14px; border: 1px solid rgba(72, 108, 252, .25); border-radius: 16px; background: #EEF2FF; animation: dm-in .4s var(--ease) both; }
.dm-sms[hidden] { display: none; }
.dm-sms-from { margin: 0; display: flex; align-items: center; gap: 6px; font-size: .7rem; font-weight: 700; color: var(--navy); }
.dm-sms-from svg { font-size: 14px; }
.dm-sms-body { margin: 6px 0 0; font-size: .88rem; line-height: 1.5; overflow-wrap: anywhere; }
.dm-sms-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.dm-fakebtn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 100px; border: 1px solid var(--navy);
              background: var(--navy); color: #fff; font-size: .76rem; font-weight: 600; line-height: 1.2; }
.dm-fakebtn svg { font-size: 14px; }
.dm-fakebtn--quiet { background: var(--surface); color: var(--navy); border-color: var(--hair-2); }

/* the clinic's inbox */
.dm-inbox { flex: 1; min-height: 0; padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.dm-thread-head { flex: none; display: flex; align-items: center; gap: 12px; }
.dm-avatar { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--bg-2); color: var(--navy); font-size: 18px; }
.dm-thread-head > div { min-width: 0; display: grid; }
.dm-thread-head b { font-size: .92rem; font-weight: 600; line-height: 1.35; }
.dm-thread-head div span { font-size: .76rem; color: var(--ink-3); }
.dm-ai { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 100px; background: rgba(72, 108, 252, .1);
         color: var(--navy); font: 600 .72rem/1.2 var(--sans); white-space: nowrap; }
.dm-ai svg { font-size: 14px; }
.dm-ai.is-paused { background: var(--dm-warn-bg); color: var(--dm-warn); }
.dm-thread { flex: 1; min-height: 0; margin: 0; padding: 12px 2px 0 0; border-top: 1px solid var(--hair); list-style: none; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 9px; scroll-behavior: smooth; }
.dm-thread:empty::before { content: "Send a message on the left. It arrives here."; margin: auto; padding: 0 16px; text-align: center; font-size: .9rem; color: var(--ink-3); }
.dm-thread li { padding: 10px 12px; border: 1px solid var(--hair); border-radius: 14px; background: var(--surface); animation: dm-in .32s var(--ease) both; }
.dm-thread li.is-agent { background: var(--bg-2); }
.dm-thread li.is-staff { border-color: rgba(72, 108, 252, .45); }
.dm-t-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: .7rem; line-height: 1.4; }
.dm-t-meta b { font-weight: 700; }
.dm-t-meta span { padding: 0 8px; border: 1px solid var(--hair-2); border-radius: 100px; color: var(--ink-2); }
.dm-t-meta span[data-ch="sms"] { border-color: rgba(72, 108, 252, .5); color: var(--spark); }
.dm-thread li p { margin: 4px 0 0; font-size: .92rem; line-height: 1.5; overflow-wrap: anywhere; }
.dm-booked { flex: none; margin: 0; display: flex; align-items: center; gap: 8px; padding: 9px 12px; border: 1px solid var(--dm-ok-b); border-radius: 12px;
             background: var(--dm-ok-bg); color: var(--dm-ok); font-size: .84rem; font-weight: 600; animation: dm-in .4s var(--ease) both; }
.dm-booked[hidden] { display: none; }
.dm-booked svg { font-size: 17px; }
.dm-takeover { flex: none; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.dm-take { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 1px solid var(--navy); border-radius: 100px;
           background: var(--navy); color: #fff; font: 600 .84rem/1.2 var(--sans); cursor: pointer; transition: background var(--fast) var(--ease), color var(--fast) var(--ease); }
.dm-take svg { font-size: 16px; }
.dm-take[aria-pressed="true"] { background: var(--surface); color: var(--navy); }
.dm-take[hidden] { display: none; }
.dm-composer--staff { flex: 1 1 220px; padding: 0; border: 0; }
.dm-composer--staff[hidden] { display: none; }

/* ordering */
.dm-phone--shop { gap: 6px; }
.dm-phone--shop [data-view][hidden] { display: none; }
.dm-items { margin: 0; padding: 0; list-style: none; }
.dm-items li { display: flex; align-items: center; gap: 12px; padding: 10px 4px; border-bottom: 1px solid var(--hair); }
.dm-items li > div:not(.dm-step) { flex: 1; min-width: 0; }
.dm-thumb { flex: none; width: 56px; height: 56px; border-radius: 12px; object-fit: cover; background: var(--bg-2); border: 1px solid var(--hair); }
.dm-items b { display: block; font-size: .92rem; font-weight: 600; line-height: 1.35; }
.dm-items li > div:not(.dm-step) span { display: block; font-size: .78rem; line-height: 1.4; color: var(--ink-3); }
.dm-step { flex: none; display: inline-flex; align-items: center; padding: 2px; border: 1px solid var(--hair-2); border-radius: 100px; }
.dm-step button { width: 30px; height: 30px; display: grid; place-items: center; border: 0; border-radius: 50%; background: none; color: var(--navy); font-size: 15px; cursor: pointer; }
.dm-step button:hover { background: var(--bg-2); }
.dm-step output { min-width: 22px; text-align: center; font-size: .88rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.dm-pick { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 4px; font-size: .86rem; }
.dm-pick > span { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; }
.dm-pick svg { font-size: 16px; color: var(--navy); }
.dm-pick select { max-width: 60%; padding: 7px 10px; border: 1px solid var(--hair-2); border-radius: 10px; background: var(--surface); color: var(--ink); font: 500 .86rem/1.3 var(--sans); }
.dm-pay { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border: 0; border-radius: 14px;
          background: var(--navy); color: #fff; font: 600 .95rem/1.2 var(--sans); cursor: pointer; transition: opacity var(--fast) var(--ease); }
.dm-pay b { font-weight: 600; font-variant-numeric: tabular-nums; }
.dm-pay:disabled { opacity: .38; cursor: not-allowed; }
.dm-small { margin: 8px 0 0; text-align: center; font-size: .74rem; color: var(--ink-3); }
.dm-tracking { padding: 8px 6px 0; display: flex; flex-direction: column; }
.dm-order-no { margin: 0; font-size: .8rem; color: var(--ink-3); }
.dm-order-no b { display: block; font-size: 1.6rem; font-weight: 600; line-height: 1.2; letter-spacing: -.03em; color: var(--ink); }
.dm-order-pick { margin: 2px 0 0; font-size: .86rem; color: var(--ink-2); }
.dm-track { margin: 20px 0 0; padding: 0; list-style: none; }
.dm-track li { position: relative; padding: 0 0 20px 30px; font-size: .92rem; line-height: 1.4; color: var(--ink-3); }
.dm-track li::before { content: ""; position: absolute; left: 0; top: 3px; width: 14px; height: 14px; border: 2px solid var(--hair-2); border-radius: 50%; background: var(--surface); z-index: 1; }
.dm-track li::after { content: ""; position: absolute; left: 6px; top: 12px; bottom: -6px; width: 2px; background: var(--hair); }
.dm-track li:last-child::after { display: none; }
.dm-track li.is-done { color: var(--ink); }
.dm-track li.is-done::before { background: var(--spark); border-color: var(--spark); }
.dm-track li.is-done::after { background: var(--spark); }
.dm-track li.is-now { color: var(--navy); font-weight: 600; }
.dm-track-note { margin: 0 0 16px; padding: 9px 12px; border-radius: 10px; background: rgba(72, 108, 252, .09); font-size: .82rem; line-height: 1.5; color: var(--navy); }
.dm-tracking .dm-restart { margin: 0; align-self: flex-start; }

.dm-orders { flex: 1; min-height: 0; padding: 18px; display: flex; flex-direction: column; gap: 14px; overflow-y: auto; }
.dm-empty { margin: auto; display: grid; justify-items: center; gap: 10px; max-width: 16rem; text-align: center; font-size: .9rem; line-height: 1.5; color: var(--ink-3); }
.dm-empty[hidden] { display: none; }
.dm-empty svg { font-size: 28px; }
.dm-ticket { padding: 0; border: 1px solid var(--hair-2); border-radius: 16px; background: var(--surface); overflow: hidden; box-shadow: 0 18px 40px -30px rgba(12, 36, 84, .45); animation: dm-drop .5s var(--ease) both; }
.dm-ticket[hidden] { display: none; }
.dm-ticket > header { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 12px 14px; border-bottom: 1px dashed var(--hair-2); }
.dm-ticket > header b { font-size: 1rem; font-weight: 700; }
.dm-ticket > header span { font-size: .8rem; color: var(--ink-2); }
.dm-ticket > header i { margin-left: auto; padding: 3px 10px; border-radius: 100px; background: rgba(72, 108, 252, .12); color: var(--navy); font: 700 .68rem/1.4 var(--sans); letter-spacing: .05em; text-transform: uppercase; }
.dm-ticket[data-state="preparing"] > header i { background: var(--dm-warn-bg); color: var(--dm-warn); }
.dm-ticket[data-state="ready"] > header i { background: var(--dm-ok-bg); color: var(--dm-ok); }
.dm-ticket ul { margin: 0; padding: 12px 14px; list-style: none; display: grid; gap: 6px; }
.dm-ticket li { display: flex; justify-content: space-between; gap: 12px; font-size: .92rem; line-height: 1.45; }
.dm-ticket li b { font-weight: 600; }
.dm-ticket li span { color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.dm-ticket > footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; border-top: 1px dashed var(--hair-2); font-size: .84rem; }
.dm-ticket > footer span { display: inline-flex; align-items: center; gap: 6px; color: var(--dm-ok); font-weight: 600; }
.dm-ticket > footer svg { font-size: 16px; }
.dm-ticket > footer b { font-size: 1rem; font-variant-numeric: tabular-nums; }
.dm-ticket-acts { display: flex; flex-wrap: wrap; gap: 8px; padding: 2px 14px 14px; }
.dm-ticket-acts:empty { display: none; }

/* your own business: the fourth demo sits on the navy the tools page opens with */
.dm-row--yours { margin-top: clamp(72px, 9vw, 128px); padding: clamp(64px, 8vw, 112px) 0; color: #fff;
                 background:
                   linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 72px 72px,
                   linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 72px 72px,
                   radial-gradient(900px 520px at 80% 18%, rgba(72, 108, 252, .3), transparent 62%),
                   linear-gradient(180deg, #0C2454, #0A1D46); }
.dm-row--yours .dm-kicker { color: rgba(255, 255, 255, .74); }
.dm-row--yours .dm-trade { background: none; border-color: rgba(255, 255, 255, .32); color: #fff; }
.dm-row--yours h2 { color: #fff; }
.dm-row--yours h2 em { color: #A9C0FF; }
.dm-row--yours .dm-head .dm-lede { color: rgba(255, 255, 255, .84); }
.dm-row--yours .dm-mark { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .26); color: #fff; box-shadow: none; }
.dm-row--yours .dm-stage { border-color: rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .06); box-shadow: none; color: var(--ink); }
.dm-row--yours .dm-link { border-color: transparent; }

.dm-site { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: center; padding: clamp(20px, 3vw, 40px); }
.dm-site[hidden] { display: none; }
.dm-site label { margin: 0 0 8px; font-size: .84rem; font-weight: 600; }
.dm-site-row { display: flex; flex-wrap: wrap; gap: 10px; }
.dm-site-row input { flex: 1 1 220px; min-width: 0; padding: 14px 16px; border: 1px solid var(--hair-2); border-radius: 12px; background: var(--bg);
                     color: var(--ink); font: 400 1rem/1.3 var(--sans); }
.dm-site-row input::placeholder { color: var(--ink-3); }
.dm-site-row button { display: inline-flex; align-items: center; gap: 10px; padding: 14px 20px; border: 0; border-radius: 12px; background: var(--navy); color: #fff;
                      font: 600 .95rem/1.3 var(--sans); cursor: pointer; }
.dm-site-row button svg { font-size: 16px; }
.dm-site-row button:disabled, .dm-site-row input:disabled { opacity: .55; cursor: default; }
.dm-site-status { min-height: 1.5em; margin: 10px 0 0; font-size: .84rem; line-height: 1.5; color: var(--dm-bad); }
.dm-site-status:empty { min-height: 0; margin: 0; }
.dm-site-steps { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.dm-site-steps[hidden] { display: none; }
.dm-site-steps li { display: flex; align-items: center; gap: 10px; font-size: .9rem; line-height: 1.4; color: var(--ink-3); }
.dm-site-steps li::before { content: ""; flex: none; width: 14px; height: 14px; border: 2px solid var(--hair-2); border-radius: 50%; }
.dm-site-steps li.is-on { color: var(--ink); }
.dm-site-steps li.is-on::before { border-color: var(--spark); border-top-color: transparent; animation: dm-spin .8s linear infinite; }
.dm-site-steps li.is-done { color: var(--ink); }
.dm-site-steps li.is-done::before { border-color: var(--spark); background: var(--spark); }
.dm-site .dm-small { margin-top: 18px; text-align: left; }
.dm-log[hidden], .dm-chips[hidden], .dm-composer[hidden] { display: none; }

.dm-facts { flex: 1; min-height: 0; padding: 8px 18px 18px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; }
.dm-fact-list { margin: 0; }
.dm-fact-list[hidden] { display: none; }
.dm-fact-list > div { display: grid; grid-template-columns: 9.6rem minmax(0, 1fr); gap: 2px 14px; align-items: start; padding: 11px 2px; border-bottom: 1px solid var(--hair);
                      animation: dm-in .4s var(--ease) both; }
.dm-fact-list > div:nth-child(2) { animation-delay: .06s; }
.dm-fact-list > div:nth-child(3) { animation-delay: .12s; }
.dm-fact-list > div:nth-child(4) { animation-delay: .18s; }
.dm-fact-list > div:nth-child(5) { animation-delay: .24s; }
.dm-fact-list > div:nth-child(6) { animation-delay: .3s; }
.dm-fact-list > div:nth-child(7) { animation-delay: .36s; }
.dm-fact-list dt { display: flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 600; line-height: 1.5; color: var(--ink-2); }
.dm-fact-list dt svg { font-size: 16px; color: var(--navy); }
.dm-fact-list dd { margin: 0; font-size: .92rem; line-height: 1.5; overflow-wrap: anywhere; }
.dm-fact-list .is-missing dt svg { color: var(--dm-warn); }
.dm-fact-list .is-missing dd { color: var(--dm-warn); }
.dm-fact-note { margin: 0; font-size: .8rem; line-height: 1.6; color: var(--ink-3); }
.dm-fact-note[hidden] { display: none; }


.dm-close { padding: clamp(72px, 9vw, 128px) 0; text-align: center; }
.dm-close .dm-lede { margin: 16px auto 0; }
.dm-close-acts { margin: 30px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 6px; }

@keyframes dm-spin { to { transform: rotate(360deg); } }
@keyframes dm-in { from { opacity: 0; transform: translateY(6px); } }
@keyframes dm-drop { from { opacity: 0; transform: translateY(-14px) scale(.98); } }
@keyframes dm-flash { from { background: rgba(72, 108, 252, .2); } to { background: transparent; } }
@keyframes dm-dot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
@keyframes dm-ping { 0% { box-shadow: 0 0 0 0 rgba(72, 108, 252, .5); } 70%, 100% { box-shadow: 0 0 0 7px rgba(72, 108, 252, 0); } }

@media (max-width: 960px) {
  .dm-head { grid-template-columns: minmax(0, 1fr); }
  .dm-stage { grid-template-columns: minmax(0, 1fr); border-radius: 20px; }
  .dm-jump { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 560px; }
  .dm-link { justify-self: center; transform: rotate(90deg); }
  .dm-sent:not([hidden]) { flex: none; display: flex; align-items: center; gap: 7px; margin: 0; padding: 7px 18px; border-bottom: 1px solid var(--hair);
                           background: rgba(72, 108, 252, .07); color: var(--navy); font-size: .78rem; font-weight: 600; line-height: 1.4; }
  .dm-pane { scroll-margin-top: 64px; }
  .dm-pane { height: auto; }
  .dm-log { flex: none; min-height: 190px; max-height: 360px; }
  .dm-thread { flex: none; min-height: 150px; max-height: 340px; }
  .dm-phone { flex: none; }
  .dm-orders { min-height: 230px; }
  .dm-facts { min-height: 230px; }
  .dm-site { padding-top: 26px; padding-bottom: 26px; }
}
@media (max-width: 720px) {
  .dm-pane-head { padding: 10px 14px; }
  .dm-log { padding: 14px; }
  .dm-chips { padding: 0 14px 10px; }
  .dm-hint { margin: 0 14px 10px; }
  .dm-inbox { padding: 14px; }
  .dm-ai { margin-left: 0; }
  .dm-thread-head { flex-wrap: wrap; }
  .dm-mark { width: 46px; height: 46px; border-radius: 14px; font-size: 21px; }
  .dm-head-main { gap: 14px; }
  .dm-fact-list > div { grid-template-columns: minmax(0, 1fr); }
  .dm-facts { padding: 6px 14px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .dm *, .dm *::before, .dm *::after { animation: none !important; transition: none !important; }
  .dm-log, .dm-thread { scroll-behavior: auto; }
}
