/* Interactive demo on the home page. Uses only theme tokens from landing.css. */
.dm { display: grid; grid-template-columns: 300px 1fr; gap: 32px; margin-top: 40px; align-items: start; }
.dm-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: none; }
.dm-steps button { width: 100%; display: flex; gap: 14px; align-items: flex-start; text-align: left; padding: 14px 16px; border: 1px solid var(--lp-line); border-radius: var(--lp-radius); background: var(--lp-surface); color: var(--lp-ink); font: inherit; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.dm-steps button:hover { border-color: var(--lp-brand); }
.dm-steps li.is-on button { border-color: var(--lp-brand); box-shadow: 0 0 0 3px var(--lp-brand-soft); }
.dm-steps__n { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--lp-brand-soft); color: var(--lp-brand); font-weight: 700; font-size: 14px; }
.dm-steps li.is-on .dm-steps__n { background: var(--lp-brand); color: #fff; }
.dm-steps b { display: block; font-size: 15px; }
.dm-steps small { display: block; color: var(--lp-muted); font-size: 13px; line-height: 1.35; margin-top: 2px; }
.dm-app .lp-frame__bar { position: relative; }
.dm-reset { margin-left: auto; border: 0; background: none; color: var(--lp-muted); font: inherit; font-size: 12px; cursor: pointer; padding: 4px 6px; border-radius: 6px; }
.dm-reset:hover { color: var(--lp-brand); background: var(--lp-wash); }
.dm-screen { min-height: 470px; padding: 22px; background: var(--lp-surface); font-size: 14px; line-height: 1.45; }
.dm-view { animation: dm-in .25s ease; }
@keyframes dm-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.dm-note { margin-top: 14px !important; font-size: 13px; color: var(--lp-muted); }
.dm-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 14px; }
.dm-head b { display: block; font-size: 16px; }
.dm-head small, .dm small { display: block; color: var(--lp-muted); font-size: 12.5px; }
.dm-kpi { text-align: right; }
.dm-kpi strong { font-family: var(--lp-head); font-size: 28px; color: var(--lp-brand); line-height: 1; }
.dm-tablewrap { overflow-x: auto; }
.dm-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.dm-table th, .dm-table td { padding: 9px 10px; border-bottom: 1px solid var(--lp-line); text-align: right; white-space: nowrap; }
.dm-table th:first-child { text-align: left; }
.dm-table thead th { font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--lp-muted); font-weight: 600; }
.dm-table tbody th { font-weight: 600; display: flex; align-items: center; gap: 8px; }
.dm-row--focus { background: var(--lp-wash); }
.dm-row--changed { animation: dm-flash 1.6s ease; }
@keyframes dm-flash { 0%, 40% { background: var(--lp-brand-soft); } 100% { background: var(--lp-wash); } }
.dm-late { color: var(--lp-amber); font-weight: 700; }
.dm-prob { color: var(--lp-red); font-weight: 700; }
.dm-barcell { width: 26%; }
.dm-bar { display: block; height: 6px; border-radius: 3px; background: var(--lp-line); overflow: hidden; min-width: 60px; }
.dm-bar > span { display: block; height: 100%; background: var(--lp-brand); border-radius: 3px; transition: width .4s; }
.dm-light { flex: none; display: inline-block; width: 10px; height: 10px; border-radius: 50%; }
.dm-light--red { background: var(--lp-red); box-shadow: 0 0 0 3px color-mix(in srgb, var(--lp-red) 20%, transparent); }
.dm-light--amber { background: var(--lp-amber); }
.dm-light--green { background: var(--lp-green); }
.dm-card { margin-top: 16px; padding: 16px; border: 1px solid var(--lp-line); border-radius: 12px; background: var(--lp-surface); }
.dm-card p { margin: 0 0 10px; }
.dm-card h4, .dm-cols h4 { margin: 0 0 10px; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--lp-muted); }
.dm-card--alert { border-left: 3px solid var(--lp-red); }
.dm-card--new { border-color: var(--lp-brand); box-shadow: 0 0 0 3px var(--lp-brand-soft); }
.dm-task { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; background: var(--lp-wash); margin-bottom: 10px; flex-wrap: wrap; }
.dm-task > div { flex: 1; min-width: 180px; }
.dm-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 14px; border-radius: 8px; border: 1px solid var(--lp-line); background: var(--lp-surface); color: var(--lp-ink); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; text-decoration: none; transition: transform .1s, background .15s; }
.dm-btn:hover { border-color: var(--lp-brand); }
.dm-btn:active { transform: scale(.97); }
.dm-btn--primary { background: var(--lp-brand); border-color: var(--lp-brand); color: #fff !important; }
.dm-btn--primary:hover { background: var(--lp-brand-dark); }
.dm-btn--warn { color: var(--lp-red); }
.dm-btn--warn:hover { border-color: var(--lp-red); }
.dm-btn--reason { width: 100%; justify-content: flex-start; margin-bottom: 6px; font-weight: 500; }
.dm-btn--link { border: 0; background: none; color: var(--lp-muted); font-weight: 500; }
.dm-ok { color: var(--lp-green); font-weight: 600; }
.dm-pill { display: inline-block; padding: 3px 9px; border-radius: 99px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.dm-pill--ok { background: color-mix(in srgb, var(--lp-green) 16%, transparent); color: var(--lp-green); }
.dm-pill--late { background: color-mix(in srgb, var(--lp-red) 14%, transparent); color: var(--lp-red); white-space: normal; }
.dm-tag { display: inline-block; margin-bottom: 8px; padding: 2px 8px; border-radius: 6px; background: var(--lp-brand); color: #fff; font-size: 11.5px; font-weight: 700; letter-spacing: .02em; }
.dm-tag--red { background: var(--lp-red); }
.dm-cols { display: grid; grid-template-columns: 1.4fr 1fr; gap: 22px; }
.dm-client { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--lp-line); }
.dm-client > span:nth-child(2) { flex: 1; font-weight: 600; }
.dm-client--new { box-shadow: inset 3px 0 0 var(--lp-brand); padding-left: 8px; }
.dm-person { display: grid; grid-template-columns: 34px 1fr; gap: 4px 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--lp-line); font-weight: 600; }
.dm-person .dm-bar { grid-column: 2; }
.dm-av { grid-row: span 2; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--lp-brand-soft); color: var(--lp-brand); font-size: 12px; font-weight: 700; }
.dm-phone { max-width: 380px; margin: 0 auto; padding: 14px; border: 8px solid #13201b; border-radius: 30px; background: var(--lp-bg); }
.dm-phone__head { padding: 4px 4px 12px; }
.dm-phone__head b { font-size: 17px; }
.dm-item { padding: 12px; margin-bottom: 10px; border: 1px solid var(--lp-line); border-radius: 12px; background: var(--lp-surface); }
.dm-item > b { display: block; }
.dm-item--new { border-color: var(--lp-brand); box-shadow: 0 0 0 3px var(--lp-brand-soft); }
.dm-item--done { opacity: .75; }
.dm-item--done > b { text-decoration: line-through; }
.dm-item--prob { border-color: var(--lp-red); }
.dm-item .dm-pill { margin-top: 8px; }
.dm-actions { display: flex; gap: 8px; margin-top: 10px; }
.dm-actions .dm-btn { flex: 1; }
.dm-reasons { margin-top: 10px; }
.dm-reasons p { margin: 0 0 8px; font-weight: 600; }
.dm-center { text-align: center; margin-top: 14px; }
.dm-hint { text-align: center; color: var(--lp-muted); margin: 14px 0 0; }
.dm-problem { margin: 10px 0; padding: 12px; border-radius: 10px; border: 1px solid var(--lp-red); background: color-mix(in srgb, var(--lp-red) 6%, var(--lp-surface)); }
.dm-problem b { display: block; }
.dm-problem p { margin: 2px 0; }
.dm-end { margin-top: 14px !important; font-weight: 600; }
@media (max-width: 1000px) {
  .dm { grid-template-columns: 1fr; gap: 18px; }
  .dm-steps { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .dm-steps button { flex-direction: column; gap: 6px; padding: 10px; }
  .dm-steps small { display: none; }
}
@media (max-width: 760px) {
  .dm-steps b { font-size: 12.5px; }
  .dm-screen { padding: 14px; min-height: 420px; }
  .dm-cols { grid-template-columns: 1fr; }
  .dm-table th, .dm-table td { padding: 8px 6px; }
  .dm-barcell { display: none; }
  .dm-table { font-size: 12.5px; }
  .dm-table thead th { white-space: normal; font-size: 10px; letter-spacing: .02em; vertical-align: bottom; }
  .dm-phone { border-width: 6px; padding: 10px; }
  .dm .dm-btn { width: auto; }
  .dm-actions { flex-direction: column; }
}
.dm-cols--one { grid-template-columns: 1fr; }
