.dm-icon-shield { --dm-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M12%2022s8-4%208-11V5l-8-3-8%203v6c0%207%208%2011%208%2011z%20M9%2012l2%202%204-4%22%20fill%3D%22none%22%20stroke%3D%22%23fff%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E"); }
.dm-icon-person { --dm-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M20%2021v-2a4%204%200%200%200-4-4H8a4%204%200%200%200-4%204v2%20M16%207a4%204%200%201%201-8%200%204%204%200%200%201%208%200z%22%20fill%3D%22none%22%20stroke%3D%22%23fff%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E"); }
.dm-icon-play { --dm-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M7%204l14%208-14%208z%22%20fill%3D%22none%22%20stroke%3D%22%23fff%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E"); }
.dm-icon-link { --dm-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M10%2013a4%204%200%200%200%206%200l4-4a4%204%200%200%200-6-6l-2%202%20M14%2011a4%204%200%200%200-6%200l-4%204a4%204%200%200%200%206%206l2-2%22%20fill%3D%22none%22%20stroke%3D%22%23fff%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E"); }
.dm-icon-search { --dm-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M16%2016l5%205%20M18%2011a7%207%200%201%201-14%200%207%207%200%200%201%2014%200z%22%20fill%3D%22none%22%20stroke%3D%22%23fff%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E"); }
.dm-icon-file { --dm-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M6%203h8l4%204v14H6z%20M14%203v5h4%20M9%2012h6m-6%204h6%22%20fill%3D%22none%22%20stroke%3D%22%23fff%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E"); }
.dm-icon-chat { --dm-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M21%2011a8%208%200%200%201-8%208H5l-3%202%201-6a8%208%200%201%201%2018-4z%22%20fill%3D%22none%22%20stroke%3D%22%23fff%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E"); }
.dm-icon-list { --dm-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M9%206h11M9%2012h11M9%2018h11M4%206h1m-1%206h1m-1%206h1%22%20fill%3D%22none%22%20stroke%3D%22%23fff%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E"); }
.dm-icon-check { --dm-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M5%2012l4%204L19%206%22%20fill%3D%22none%22%20stroke%3D%22%23fff%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E"); }
.dm-icon-star { --dm-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22m12%203%203%206%207%201-5%205%201%207-6-3-6%203%201-7-5-5%207-1z%22%20fill%3D%22none%22%20stroke%3D%22%23fff%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E"); }
.dm-icon-card { --dm-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M3%205h18v14H3z%20M3%2010h18m-14%205h4%22%20fill%3D%22none%22%20stroke%3D%22%23fff%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E"); }
.dm-icon-help { --dm-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M22%2012a10%2010%200%201%201-20%200%2010%2010%200%200%201%2020%200z%20M9%209a3%203%200%201%201%204%203c-1%20.5-1%201-1%202m0%203h.01%22%20fill%3D%22none%22%20stroke%3D%22%23fff%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E"); }
.dm-icon-arrow { --dm-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M4%2012h15m-6-6%206%206-6%206%22%20fill%3D%22none%22%20stroke%3D%22%23fff%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E"); }
.dm-icon {
  display: inline-block;
  width: .95em;
  height: .95em;
  margin-inline-end: .45em;
  vertical-align: -.05em;
  background: #67e8f9;
  -webkit-mask: var(--dm-mask) center / contain no-repeat;
  mask: var(--dm-mask) center / contain no-repeat;
}
.dm-guide {
  display: grid;
  grid-template-columns: minmax(135px, .72fr) minmax(0, 1.55fr);
  align-items: center;
  gap: clamp(16px, 4vw, 52px);
  padding: clamp(16px, 4vw, 40px);
  border: 1px solid #494475;
  border-radius: 24px;
  color: #f0f5ff;
  background: radial-gradient(ellipse at 12% 40%, #29245c, transparent 58%), #101831;
  box-shadow: 0 18px 46px #02051755;
}
.dm-guide-art svg { display: block; width: min(100%, 285px); margin: auto; overflow: visible; }
.dm-character { animation: dm-float 3.6s ease-in-out infinite; }
.dm-orbit { transform-origin: 104px 91px; animation: dm-orbit 24s linear infinite; }
@keyframes dm-float { 50% { transform: translateY(-8px); } }
@keyframes dm-orbit { to { transform: rotate(360deg); } }
.dm-guide-name { color: #a7f3ff; font-size: 1.3rem; font-weight: 750; margin: 0 0 5px; }
.dm-guide-intro { color: #e2e8ff; margin: 0 0 15px; }
.dm-guide-steps { display: grid; gap: 8px; }
.dm-guide-steps details { background: #141d3b; border: 1px solid #454680; border-radius: 12px; }
.dm-guide-steps details[open] { border-color: #67e8f9; }
.dm-guide-steps summary {
  display: flex; align-items: center; gap: 10px; min-height: 46px; cursor: pointer;
  border-radius: 11px; padding: 7px 12px; color: #f0f5ff; font-weight: 700;
  list-style: none; touch-action: manipulation;
}
.dm-guide-steps summary::-webkit-details-marker { display: none; }
.dm-guide-steps summary::after { content: "+"; margin-inline-start: auto; color: #a7f3ff; }
.dm-guide-steps details[open] summary::after { content: "−"; }
.dm-guide-steps summary span { color: #a7f3ff; background: #28325a; border-radius: 8px; padding: 2px 8px; }
.dm-guide-steps details p { margin: 0; padding: 0 12px 11px 46px; color: #e2e8ff; }
body .btn, body .lens-open-button, body .lens-search-btn,
body.portal-body .portal-btn, body.portal-body .portal-pay-action,
body.portal-body .portal-dashboard-nav a {
  min-height: 44px; touch-action: manipulation;
  transition: transform .18s ease, box-shadow .18s ease, background-position .28s ease;
}
body .btn.primary, body.portal-body .portal-btn:not(.portal-btn-secondary) {
  background: linear-gradient(115deg, #67e8f9, #a5b4fc 52%, #c4b5fd 76%, #67e8f9);
  background-size: 180% 100%;
  color: #0b1027;
}
body .btn.primary .dm-icon, body.portal-body .portal-btn:not(.portal-btn-secondary) .dm-icon { background: currentColor; }
body .btn:active, body.portal-body .portal-btn:active, body.portal-body .portal-pay-action:active,
.dm-guide-steps summary:active { transform: scale(.97); background-position: 90% 50%; }
body .btn:focus-visible, body.portal-body .portal-btn:focus-visible, body.portal-body .portal-pay-action:focus-visible,
body.portal-body .portal-dashboard-nav a:focus-visible, .dm-guide-steps summary:focus-visible {
  outline: 2px solid #67e8f9; outline-offset: 3px;
}
@media (hover: hover) {
  body .btn:hover, body.portal-body .portal-btn:hover, body.portal-body .portal-pay-action:hover {
    background-position: 90% 50%; transform: translateY(-2px); box-shadow: 0 7px 23px #7065ef60;
  }
}
@media (max-width: 600px) {
  .dm-guide { grid-template-columns: 1fr; gap: 4px; }
  .dm-guide-art svg { width: min(48vw, 180px); }
}
@media (prefers-reduced-motion: reduce) {
  .dm-guide *, body .btn, body.portal-body .portal-btn, body.portal-body .portal-pay-action {
    animation: none; transition: none; transform: none;
  }
}

body.portal-dashboard-body .portal-client-workspace {
  grid-template-columns: minmax(0, 1fr);
}
body.portal-dashboard-body .portal-client-workspace > #client-chat {
  width: 100%;
  max-width: none;
}
body.portal-dashboard-body #client-help .portal-tutorial video {
  display: block;
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  background: #080f20;
}

.dm-removal-character {
  display: flex;
  align-items: center;
  gap: clamp(10px, 3vw, 26px);
  padding: 12px clamp(10px, 3vw, 24px);
  color: #f0f5ff;
  background: linear-gradient(125deg, #23254d, #121b33 72%);
  border: 1px solid #494475;
  border-radius: 18px;
}
.dm-removal-character .dm-guide-art { flex: 0 0 clamp(62px, 14vw, 122px); }
.dm-removal-bubble { min-width: 0; }
.dm-removal-bubble h2 { margin: 0 0 5px; color: #a7f3ff; font-size: 1rem; }
.dm-removal-bubble p { margin: 0; color: #e2e8ff; line-height: 1.55; overflow-wrap: anywhere; }
@media (prefers-reduced-motion: reduce) {
  .dm-removal-character .dm-character, .dm-removal-character .dm-orbit { animation: none; }
}
