/* Home-page interactive demo (inbox & email, chat, voice chat, podcast streamer). The app window is always dark; the page around it follows the site theme. */

.demo__note { text-align: center; margin: 14px auto 0; max-width: 60ch; }

.dm {
  --d-bg: #1e1f22; --d-side: #2b2d31; --d-rail: #17181a; --d-text: #dbdee1; --d-mute: #949ba4;
  --d-line: rgba(255, 255, 255, 0.08); --d-hover: rgba(255, 255, 255, 0.07); --d-input: #383a40;
  --d-accent: #6366f1; --d-green: #23a55a; --d-red: #ed4245;
  position: relative; display: grid; grid-template-columns: 84px minmax(0, 1fr); height: 640px; max-width: 1120px; margin: 0 auto;
  background: var(--d-bg); color: var(--d-text); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden;
  font-family: "Inter", system-ui, sans-serif; font-size: 14px; line-height: 1.35;
}
.dm [hidden] { display: none !important; }
.dm *, .dm *::before, .dm *::after { box-sizing: border-box; }
.dm button { font: inherit; color: inherit; }
.dm svg.dm-ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dm-mute { color: var(--d-mute); font-size: 0.88em; }
.dm :focus-visible { outline: 2px solid var(--d-accent); outline-offset: 2px; }

/* avatars */
.dm-av { display: inline-grid; place-items: center; flex: none; border-radius: 50%; color: #fff; font-weight: 700; user-select: none; }
.dm-av--ch { background: var(--d-input); color: var(--d-text); }
.dm-av--ch svg.dm-ic { width: 55%; height: 55%; }

/* taskbar rail */
.dm-rail { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 6px; padding: 14px 8px; background: var(--d-rail); border-right: 1px solid var(--d-line); }
.dm-tab { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; width: 100%; padding: 10px 4px; border: 0; border-radius: 14px; background: transparent; color: var(--d-mute); cursor: pointer; }
.dm-tab:hover { background: var(--d-hover); color: var(--d-text); }
.dm-tab.is-on { background: color-mix(in srgb, var(--d-accent) 24%, transparent); color: #fff; }
.dm-tab.is-on .dm-tab__ic { color: #a5b4fc; }
.dm-tab__ic { position: relative; display: grid; place-items: center; }
.dm-tab svg.dm-ic { width: 26px; height: 26px; stroke-width: 1.8; }
.dm-tab__lab { font-size: 0.72rem; font-weight: 600; }
.dm-tab__badge { position: absolute; top: -6px; left: 60%; min-width: 17px; height: 17px; padding: 0 5px; border-radius: 999px; background: var(--d-red); color: #fff; font-style: normal; font-size: 0.68rem; font-weight: 700; line-height: 17px; text-align: center; box-shadow: 0 0 0 2px var(--d-rail); }
.dm-tab__badge--dot { min-width: 11px; width: 11px; height: 11px; padding: 0; top: -3px; left: auto; right: -5px; }
.dm-tab__badge--green { background: var(--d-green); }
.dm-tab--end { margin-top: auto; }
.dm-sys { align-self: center; max-width: 92%; padding: 4px 12px; margin: 2px 0; border-radius: 999px; background: rgba(255, 255, 255, 0.07); color: var(--d-mute); font-size: 0.82em; text-align: center; overflow-wrap: anywhere; white-space: pre-wrap; }

.dm-stage { position: relative; min-width: 0; min-height: 0; }
.dm-panel { position: absolute; inset: 0; display: flex; min-height: 0; background: var(--d-bg); }

/* shared bits */
.dm-ibtn { display: inline-grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 8px; background: transparent; color: var(--d-mute); cursor: pointer; }
.dm-ibtn:hover { background: var(--d-hover); color: var(--d-text); }
.dm-ibtn.is-on { color: #a5b4fc; background: color-mix(in srgb, var(--d-accent) 20%, transparent); }
.dm-ibtn:disabled { opacity: 0.35; cursor: default; }
.dm-primary, .dm-ghost, .dm-pill, .dm-join, .dm-leave { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 18px; border-radius: 999px; border: 1px solid transparent; font-weight: 600; cursor: pointer; }
.dm-primary { background: linear-gradient(135deg, #22d3ee 0%, #6366f1 60%, #4f46e5 100%); color: #fff; }
.dm-primary:hover { filter: brightness(1.1); }
.dm-ghost, .dm-pill { background: transparent; border-color: rgba(255, 255, 255, 0.2); color: var(--d-text); }
.dm-ghost:hover, .dm-pill:hover { background: var(--d-hover); }
.dm-join { background: var(--d-green); color: #fff; }
.dm-leave { background: var(--d-red); color: #fff; }
.dm-join:hover, .dm-leave:hover { filter: brightness(1.1); }
.dm-empty { display: grid; place-items: center; align-content: center; gap: 10px; flex: 1; padding: 40px 20px; color: var(--d-mute); text-align: center; }
.dm-empty svg.dm-ic { width: 38px; height: 38px; opacity: 0.6; }
.dm-side__title { padding: 6px 10px 10px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--d-mute); }
.dm-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--d-green); flex: none; display: inline-block; }
.dm-chip { padding: 1px 7px; margin-right: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.14); font-style: normal; font-size: 0.78em; font-weight: 600; }
.dm-toast { position: absolute; left: 50%; bottom: 22px; z-index: 30; max-width: 80%; padding: 10px 18px; border-radius: 999px; background: #111214; color: #fff; border: 1px solid rgba(255, 255, 255, 0.14); font-size: 0.85rem; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45); opacity: 0; transform: translate(-50%, 12px); pointer-events: none; transition: opacity 0.2s, transform 0.2s; }
.dm-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- inbox & email ---------- */
.dm-mail { display: grid; grid-template-columns: 190px minmax(280px, 340px) minmax(0, 1fr); }
.dm-mail__side { display: flex; flex-direction: column; gap: 2px; padding: 14px 10px; background: var(--d-side); overflow-y: auto; }
.dm-mail__compose { display: flex; align-items: center; gap: 10px; align-self: flex-start; margin: 0 0 12px 4px; padding: 12px 20px; border: 0; border-radius: 14px; background: linear-gradient(135deg, #22d3ee 0%, #6366f1 60%, #4f46e5 100%); color: #fff; font-weight: 600; cursor: pointer; }
.dm-mail__compose:hover { filter: brightness(1.1); }
.dm-folder { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border: 0; border-radius: 10px; background: transparent; color: var(--d-text); text-align: left; cursor: pointer; }
.dm-folder:hover { background: var(--d-hover); }
.dm-folder.is-on { background: color-mix(in srgb, var(--d-accent) 26%, transparent); font-weight: 700; }
.dm-folder span { flex: 1; }
.dm-folder em { font-style: normal; font-size: 0.82em; color: var(--d-mute); }
.dm-mail__list { display: flex; flex-direction: column; min-width: 0; min-height: 0; border-right: 1px solid var(--d-line); }
.dm-mail__searchbar { display: flex; align-items: center; gap: 10px; margin: 12px; padding: 0 14px; height: 40px; border-radius: 999px; background: var(--d-input); color: var(--d-mute); flex: none; }
.dm-search { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--d-text); font: inherit; }
.dm-search::placeholder { color: var(--d-mute); }
.dm-mail__rows { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; }
.dm-mrow { display: flex; align-items: flex-start; gap: 6px; padding: 10px 12px 10px 6px; border-bottom: 1px solid var(--d-line); cursor: pointer; }
.dm-mrow:hover { background: var(--d-hover); }
.dm-mrow.is-sel { background: color-mix(in srgb, var(--d-accent) 20%, transparent); }
.dm-mrow.is-unread b, .dm-mrow.is-unread .dm-mrow__sub span { font-weight: 700; color: #fff; }
.dm-star { display: grid; place-items: center; width: 28px; height: 28px; margin-top: -3px; border: 0; border-radius: 6px; background: transparent; color: var(--d-mute); cursor: pointer; flex: none; }
.dm-star svg.dm-ic { width: 17px; height: 17px; }
.dm-star:hover { color: #f4b400; }
.dm-star.is-on { color: #f4b400; }
.dm-star.is-on svg.dm-ic { fill: #f4b400; }
.dm-mrow__mid { flex: 1; min-width: 0; }
.dm-mrow__top { display: flex; gap: 8px; align-items: baseline; }
.dm-mrow__top b { flex: 1; min-width: 0; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dm-mrow__top time { flex: none; font-size: 0.78em; color: var(--d-mute); }
.dm-mrow__sub { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.dm-mrow__sub small { color: var(--d-mute); font-size: 1em; }
.dm-mail__read { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.dm-mread__tb { display: flex; align-items: center; gap: 4px; padding: 10px 14px; border-bottom: 1px solid var(--d-line); flex: none; }
.dm-back { display: none; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 8px; background: transparent; color: var(--d-text); cursor: pointer; }
.dm-mread__body { flex: 1; min-height: 0; overflow-y: auto; padding: 18px 24px 24px; display: flex; flex-direction: column; gap: 14px; }
.dm-mread__subject { display: flex; align-items: center; gap: 10px; }
.dm-mread__subject h3 { margin: 0; font-size: 1.45rem; font-weight: 500; }
.dm-mread__subject .dm-chip { margin: 0; }
.dm-mread__who { display: flex; align-items: center; gap: 12px; }
.dm-mread__nm { flex: 1; min-width: 0; }
.dm-mread__body p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.dm-mread__acts { display: flex; gap: 10px; margin-top: 8px; }
.dm-modal { position: absolute; inset: 0; z-index: 20; display: grid; place-items: center; padding: 16px; background: rgba(0, 0, 0, 0.55); }
.dm-modal__card { width: min(540px, 100%); max-height: 100%; display: flex; flex-direction: column; border-radius: 14px; background: var(--d-side); border: 1px solid var(--d-line); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5); overflow: hidden; }
.dm-modal__head { display: flex; align-items: center; justify-content: space-between; padding: 8px 8px 8px 16px; background: #404249; }
.dm-modal__row { display: flex; align-items: center; gap: 12px; padding: 4px 16px; border-bottom: 1px solid var(--d-line); }
.dm-modal__row > span { width: 56px; flex: none; color: var(--d-mute); font-size: 0.88em; }
.dm-modal__row input, .dm-modal__row textarea { flex: 1; min-width: 0; padding: 9px 0; border: 0; outline: 0; background: transparent; color: var(--d-text); font: inherit; resize: none; }
.dm-modal__row--body { align-items: flex-start; border-bottom: 0; }
.dm-modal__row--body > span { display: none; }
.dm-modal__row--body textarea { min-height: 150px; }
.dm-modal__note { min-height: 20px; padding: 0 16px; color: var(--d-red); font-size: 0.85em; }
.dm-modal__foot { display: flex; gap: 10px; padding: 12px 16px 16px; }

/* ---------- chat ---------- */
.dm-chat, .dm-vc { display: grid; grid-template-columns: 250px minmax(0, 1fr); }
.dm-chat__side, .dm-vc__side { display: flex; flex-direction: column; gap: 2px; padding: 14px 8px; background: var(--d-side); overflow-y: auto; min-height: 0; }
.dm-conv { display: flex; align-items: center; gap: 11px; width: 100%; padding: 8px 10px; border: 0; border-radius: 10px; background: transparent; text-align: left; cursor: pointer; }
.dm-conv:hover { background: var(--d-hover); }
.dm-conv.is-on { background: color-mix(in srgb, var(--d-accent) 26%, transparent); }
.dm-conv__txt { flex: 1; min-width: 0; display: grid; }
.dm-conv__txt b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dm-conv__txt small { color: var(--d-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dm-conv em { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--d-red); color: #fff; font-style: normal; font-size: 0.72rem; font-weight: 700; line-height: 20px; text-align: center; flex: none; }
.dm-chat__main, .dm-vc__main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.dm-chat__head, .dm-vc__head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--d-side); border-bottom: 1px solid var(--d-line); flex: none; }
.dm-chat__who, .dm-vc__who { flex: 1; min-width: 0; display: grid; }
.dm-chat__who small, .dm-vc__who small { color: var(--d-mute); }
.dm-chat__body { flex: 1; min-height: 0; display: flex; }
.dm-chat__msgs { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 14px; padding: 16px; overflow-y: auto; }
.dm-chat__msgs > :first-child { margin-top: auto; }
.dm-msg { display: flex; gap: 12px; align-items: flex-start; }
.dm-msg__col { min-width: 0; display: grid; gap: 2px; }
.dm-msg__head { display: flex; align-items: baseline; gap: 8px; }
.dm-msg__head time { font-size: 0.75em; color: var(--d-mute); }
.dm-msg--me .dm-msg__head b { color: #a5b4fc; }
.dm-msg__text { overflow-wrap: anywhere; white-space: pre-wrap; }
.dm-chat__mem { width: 190px; flex: none; padding: 12px; background: var(--d-side); border-left: 1px solid var(--d-line); overflow-y: auto; }
.dm-mem { display: flex; align-items: center; gap: 9px; padding: 5px 4px; }
.dm-mem span:not(.dm-av) { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dm-chat__typing { min-height: 22px; padding: 0 18px; flex: none; color: var(--d-mute); font-size: 0.82em; display: flex; align-items: center; gap: 4px; }
.dm-dots { display: inline-flex; gap: 3px; margin-left: 4px; }
.dm-dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--d-mute); animation: dm-bounce 1s infinite ease-in-out; }
.dm-dots i:nth-child(2) { animation-delay: 0.15s; }
.dm-dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes dm-bounce { 0%, 60%, 100% { transform: translateY(0); opacity: 0.5; } 30% { transform: translateY(-4px); opacity: 1; } }
.dm-chat__foot { position: relative; display: flex; align-items: center; gap: 8px; padding: 6px 14px 14px; flex: none; }
.dm-chat__input { flex: 1; min-width: 0; height: 42px; padding: 0 16px; border: 0; outline: 0; border-radius: 999px; background: var(--d-input); color: var(--d-text); font: inherit; }
.dm-chat__input::placeholder { color: var(--d-mute); }
.dm-chat__send { display: grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 50%; background: linear-gradient(135deg, #22d3ee 0%, #6366f1 60%, #4f46e5 100%); color: #fff; cursor: pointer; }
.dm-chat__send:hover { filter: brightness(1.1); }
.dm-emoji { position: absolute; left: 14px; bottom: 60px; z-index: 5; display: grid; grid-template-columns: repeat(6, 1fr); gap: 2px; padding: 8px; border-radius: 12px; background: #111214; border: 1px solid var(--d-line); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5); }
.dm-emoji button { width: 36px; height: 36px; border: 0; border-radius: 8px; background: transparent; font-size: 1.25rem; cursor: pointer; }
.dm-emoji button:hover { background: var(--d-hover); }

/* ---------- voice ---------- */
.dm-vc__hint { padding: 10px 18px 0; color: var(--d-mute); font-size: 0.82em; flex: none; }
.dm-seg { display: flex; gap: 2px; }
.dm-vc__grid { flex: 1; min-height: 0; overflow-y: auto; padding: 14px 16px; align-content: start; }
.dm-vc__grid--list { display: flex; flex-direction: column; gap: 6px; }
.dm-vc__grid--grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.dm-vcu { position: relative; display: flex; align-items: center; gap: 12px; padding: 8px 10px; border: 2px solid transparent; border-radius: 12px; cursor: pointer; transition: background 0.15s, border-color 0.15s; }
.dm-vcu[role="button"]:hover { background: var(--d-hover); }
.dm-vcu:not([role]) { cursor: default; }
.dm-vcu .dm-av { transition: box-shadow 0.15s; }
.dm-vcu.is-speaking .dm-av { box-shadow: 0 0 0 3px var(--d-bg), 0 0 0 5px var(--d-green); }
.dm-vcu__name { flex: 1; min-width: 0; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dm-vcu.is-speaking .dm-vcu__name { font-weight: 700; color: #fff; }
.dm-vcu__st { display: inline-flex; align-items: center; gap: 6px; color: var(--d-mute); }
.dm-vcu__eq { display: none; color: var(--d-green); }
.dm-vcu.is-speaking .dm-vcu__eq { display: inline-flex; }
.dm-vcu__off { display: inline-flex; color: var(--d-red); }
.dm-vcu.is-local { opacity: 0.55; }
.dm-vc__grid--grid .dm-vcu { flex-direction: column; justify-content: center; gap: 10px; padding: 22px 10px 16px; background: rgba(255, 255, 255, 0.05); }
.dm-vc__grid--grid .dm-vcu.is-speaking { border-color: var(--d-green); }
.dm-vc__grid--grid .dm-vcu__name { flex: none; max-width: 100%; text-align: center; }
.dm-vc__grid--grid .dm-vcu__st { position: absolute; top: 8px; right: 8px; }
.dm-vc__foot { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: var(--d-side); border-top: 1px solid var(--d-line); flex: none; flex-wrap: wrap; }
.dm-round { display: grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--d-input); color: var(--d-text); cursor: pointer; }
.dm-round:hover:not(:disabled) { filter: brightness(1.2); }
.dm-round.is-off { background: var(--d-red); color: #fff; }
.dm-round:disabled, .dm-talk:disabled { opacity: 0.4; cursor: default; }
.dm-talk { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 20px; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 999px; background: transparent; font-weight: 600; cursor: pointer; user-select: none; touch-action: none; }
.dm-talk.is-on { background: var(--d-green); border-color: var(--d-green); color: #fff; }
.dm-vc__status { margin-left: auto; font-size: 0.82em; color: var(--d-mute); }

/* ---------- podcast ---------- */
.dm-pod { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 24px; overflow-y: auto; background: radial-gradient(ellipse at 50% 30%, color-mix(in srgb, var(--d-accent) 22%, transparent), transparent 70%); }
.dm-pod__card { width: min(340px, 100%); border-radius: 20px; overflow: hidden; background: var(--d-side); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5); }
.dm-pod__pic { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.dm-pod__title { padding: 18px 20px 22px; text-align: center; font-size: 1.4rem; font-weight: 700; overflow-wrap: anywhere; }
.dm-pod__demo { display: grid; justify-items: center; gap: 8px; max-width: 340px; text-align: center; color: var(--d-mute); }
.dm-pod__demo .dm-ghost { height: 34px; font-size: 0.85rem; border-style: dashed; }

/* ---------- live chat (real, via the SDK) ---------- */
.dm-live { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: rgba(35, 165, 90, 0.18); color: #3ecf8e; font-size: 0.75rem; font-weight: 700; }
.dm-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #3ecf8e; }
.dm-chat__err { color: var(--d-red); }
.dm-gate { position: absolute; inset: 0; z-index: 10; display: grid; place-items: center; padding: 20px; background: color-mix(in srgb, var(--d-bg) 94%, transparent); }
.dm-gate[hidden] { display: none; }
.dm-gate__card { display: grid; gap: 10px; width: min(340px, 100%); padding: 22px; border-radius: 16px; background: var(--d-side); border: 1px solid var(--d-line); text-align: center; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45); }
.dm-gate__card b { font-size: 1.15rem; }
.dm-gate__card p { margin: 0; color: var(--d-mute); font-size: 0.88em; }
.dm-gate__login { color: var(--d-accent); font-weight: 600; text-decoration: underline; }
.dm-gate__form { display: grid; gap: 10px; }
.dm-gate__form input { height: 42px; padding: 0 14px; border: 0; outline: 0; border-radius: 10px; background: var(--d-input); color: var(--d-text); font: inherit; text-align: center; }
.dm-preview-tag { position: absolute; top: 10px; right: 12px; z-index: 6; padding: 4px 12px; border-radius: 999px; background: rgba(255, 243, 205, 0.95); color: #7a5b00; font-size: 0.72rem; font-weight: 700; pointer-events: none; }
.dm-preview-tag[hidden] { display: none; }

/* ---------- account popover (taskbar login) ---------- */
.dm-tab--acct { margin-top: auto; }
.dm-tab--end + .dm-tab--acct { margin-top: 0; }   /* Settings (the end of the taskbar) sits right above Login; only the first of them takes the free space */
.dm-acct { position: absolute; left: 92px; bottom: 16px; z-index: 25; width: min(320px, calc(100% - 108px)); display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 16px; background: var(--d-side); border: 1px solid var(--d-line); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55); }
.dm-acct__head { display: flex; align-items: center; gap: 12px; }
.dm-acct__head > div { display: grid; min-width: 0; }
.dm-acct__head svg.dm-ic { width: 26px; height: 26px; color: #a5b4fc; }
.dm-acct__tabs { display: flex; border-bottom: 1px solid var(--d-line); }
.dm-acct__tab { flex: 1; padding: 8px 4px; border: 0; border-bottom: 3px solid transparent; background: transparent; color: var(--d-mute); font-weight: 600; cursor: pointer; }
.dm-acct__tab.is-on { color: #a5b4fc; border-bottom-color: #a5b4fc; }
.dm-acct__form { display: flex; flex-direction: column; gap: 10px; }
.dm-acct__form input { height: 40px; padding: 0 12px; border: 0; outline: 0; border-radius: 8px; background: var(--d-input); color: var(--d-text); font: inherit; }
.dm-acct__form input::placeholder { color: var(--d-mute); }
.dm-acct__form input[hidden] { display: none; }
.dm-acct__mail { margin: -4px 0 0; color: var(--d-mute); font-size: 0.78em; overflow-wrap: anywhere; }
.dm-acct__err { min-height: 18px; color: var(--d-red); font-size: 0.82em; }
.dm-acct__skip { padding: 4px; border: 0; background: transparent; color: var(--d-mute); font-size: 0.85em; text-decoration: underline; cursor: pointer; }
.dm-acct__note { margin: 0; color: var(--d-mute); font-size: 0.85em; }
.dm-acct__gid { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border: 1px dashed rgba(255, 255, 255, 0.2); border-radius: 8px; color: var(--d-mute); font-size: 0.8em; }
.dm-acct__gid code { color: var(--d-text); font-family: ui-monospace, "Cascadia Code", Consolas, monospace; }
.dm-acct__out { align-self: flex-start; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .dm-mail { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .dm-mail__side { flex-direction: row; align-items: center; gap: 4px; padding: 8px 10px; overflow-x: auto; overflow-y: hidden; }
  .dm-mail__compose { margin: 0 8px 0 0; padding: 9px 16px; flex: none; }
  .dm-folder { flex: none; padding: 8px 12px; }
  .dm-mail__list, .dm-mail__read { grid-row: 2; grid-column: 1; border-right: 0; }
  .dm-mail.is-reading .dm-mail__list { display: none; }
  .dm-mail:not(.is-reading) .dm-mail__read { display: none; }
  .dm-back { display: inline-grid; }
}
@media (max-width: 720px) {
  .dm { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; height: min(86vh, 700px); border-radius: 14px; }
  .dm-rail { grid-row: 2; flex-direction: row; justify-content: space-around; gap: 4px; padding: 6px 8px; border-right: 0; border-top: 1px solid var(--d-line); }
  .dm-tab { width: auto; flex: 1; padding: 6px 4px; }
  .dm-tab--acct, .dm-tab--end { margin-top: 0; }
  .dm-acct { left: 12px; right: 12px; bottom: 76px; width: auto; }
  .dm-tab svg.dm-ic { width: 22px; height: 22px; }
  .dm-stage { grid-row: 1; }
  .dm-chat, .dm-vc { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .dm-chat__side, .dm-vc__side { flex-direction: row; align-items: center; gap: 4px; padding: 8px; overflow-x: auto; overflow-y: hidden; }
  .dm-side__title { display: none; }
  .dm-conv { width: auto; flex: none; padding: 6px 10px; }
  .dm-conv__txt small { display: none; }
  .dm-chat__main, .dm-vc__main { grid-row: 2; }
  .dm-chat__mem { position: absolute; right: 0; top: 0; bottom: 0; z-index: 4; box-shadow: -10px 0 30px rgba(0, 0, 0, 0.4); }
  .dm-chat__body { position: relative; }
  .dm-mread__body { padding: 14px 16px 20px; }
  .dm-vc__status { display: none; }
  .dm-toast { bottom: 76px; }
}
@media (prefers-reduced-motion: reduce) {
  .dm-dots i { animation: none; }
  .dm-toast, .dm-vcu, .dm-vcu .dm-av { transition: none; }
}
