/* The approved conversation reference, inside the existing site width. */
.dpo-chat-page-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; min-width: 0; margin: 0 0 20px; padding: 0 4px; color: #0b0c40; font-family: Arial,Helvetica,sans-serif; }
.dpo-chat-page-heading > div { min-width: 0; }
.dpo-chat-page-heading .eyebrow { margin: 0 0 5px; color: #7380a0; font-size: 12px; line-height: 1.4; font-weight: 700; letter-spacing: .7px; }
.dpo-chat-page-heading h1 { margin: 0; color: #0b0c40; font-size: 32px; line-height: 1.12; font-weight: 700; letter-spacing: -.6px; }
.dpo-chat-page-heading p { display: flex; align-items: center; gap: 7px; margin: 5px 0 0; color: #697a9c; font-size: 20px; line-height: 1.35; }
.dpo-chat-page-heading .chat-group-select { display: grid; flex: 0 0 300px; gap: 6px; width: 300px; min-width: 0; max-width: 100%; color: #7380a0; font-size: 16px; line-height: 1.35; }
.dpo-chat-page-heading .chat-group-select select { display: block; width: 100%; min-width: 0; min-height: 48px; margin: 0; padding: 10px 15px; border: 1px solid #d8e1ee; border-radius: 10px; color: #0b0c40; background-color: #fff; font: 16px/1.4 Arial,Helvetica,sans-serif; }
.dpo-chat-design {
  --dpo-chat-ink: #0b0c40;
  --dpo-chat-muted: #7782a5;
  --dpo-chat-accent: #ef003d;
  --dpo-chat-line: #d8e1ee;
  --dpo-chat-canvas: #f1f6fa;
  --dpo-chat-blush: #ffe8f0;
  min-width: 0;
  color: var(--dpo-chat-ink);
  font-family: Arial, Helvetica, sans-serif;
}
.dpo-chat-design.chat-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: stretch;
  gap: 12px;
}
.dpo-chat-design :where(button, input, textarea, summary, a):focus-visible {
  outline: 3px solid #c31d51;
  outline-offset: 3px;
}
.dpo-chat-design :where(button, summary) { -webkit-tap-highlight-color: transparent; }
.dpo-chat-design .outline:not(:focus-visible) { outline: 0; }
.dpo-chat-design button:disabled { cursor: not-allowed; }
.dpo-chat-design .dpo-chat-panel {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  max-width: none;
  height: 877px;
  margin: 0;
  padding: 0;
  overflow: visible;
  border: 1px solid var(--dpo-chat-line);
  border-radius: 12px;
  background: var(--dpo-chat-canvas);
  box-shadow: none;
}
.dpo-chat-design .dpo-chat-header {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 82px;
  padding: 13px 20px;
  border-radius: 12px 12px 0 0;
  background: #fff;
}
.dpo-chat-design .dpo-chat-identity { display: flex; align-items: center; gap: 16px; flex: 1 1 auto; min-width: 0; }
.dpo-chat-design .dpo-chat-identity > div { min-width: 0; }
.dpo-chat-design .dpo-chat-identity .avatar {
  display: grid;
  place-items: center;
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  color: var(--dpo-chat-ink);
  background: #ffe6ee;
  font-size: 21px;
  font-weight: 400;
}
.dpo-chat-design .dpo-chat-identity :where(h2, h3, strong),
.dpo-chat-design .dpo-chat-title { margin: 0; color: var(--dpo-chat-ink); font-size: 20px; line-height: 1.3; font-weight: 700; overflow-wrap: anywhere; }
.dpo-chat-design .dpo-chat-identity :where(p, small) { display: block; margin: 3px 0 0; color: var(--dpo-chat-muted); font-size: 16px; line-height: 1.35; }
.dpo-chat-design .dpo-chat-header-actions { display: flex; align-items: center; gap: 16px; flex: 0 0 auto; }
.dpo-chat-design .dpo-chat-header-actions .dpo-call-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  margin: 0;
  padding: 11px 19px;
  border: 1px solid var(--dpo-chat-accent);
  border-radius: 11px;
  color: #fff;
  background: var(--dpo-chat-accent);
  font-size: 16px;
  line-height: 1.4;
  font-weight: 700;
  white-space: nowrap;
}
.dpo-chat-design .dpo-chat-header-actions .dpo-call-open > svg { width: 21px; height: 21px; }
.dpo-chat-design .dpo-chat-header-actions .dpo-call-open:disabled { opacity: .55; }
.dpo-chat-design .dpo-chat-header-actions .dpo-call-active { color: #fff !important; border-color: #c10034 !important; background: #c10034 !important; }
.dpo-chat-design .dpo-chat-more-menu { position: relative; flex: 0 0 auto; }
.dpo-chat-design .dpo-chat-more-button { display: grid; place-items: center; width: 46px; height: 46px; min-height: 46px; padding: 0; list-style: none; border: 1px solid var(--dpo-chat-line); border-radius: 10px; color: #263666; background: #fff; cursor: pointer; }
.dpo-chat-design .dpo-chat-more-button::-webkit-details-marker { display: none; }
.dpo-chat-design .dpo-chat-more-button > svg { width: 22px; height: 22px; }
.dpo-chat-design .dpo-chat-more-popover { position: absolute; z-index: 30; top: calc(100% + 8px); right: 0; display: grid; gap: 3px; width: 222px; max-width: calc(100vw - 28px); padding: 7px; border: 1px solid var(--dpo-chat-line); border-radius: 10px; background: #fff; box-shadow: 0 8px 24px #1b255b18; }
.dpo-chat-design .dpo-chat-more-popover > button { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 10px; border: 0; border-radius: 7px; color: var(--dpo-chat-ink); background: #fff; font-size: 14px; text-align: left; }
.dpo-chat-design .dpo-chat-more-popover > button:hover { background: #f1f5fa; }
.dpo-chat-design .dpo-chat-mobile-actions { display: none; }
.dpo-chat-design .chat-pinned {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: nowrap;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  margin: 0 11px 3px;
  padding: 6px 14px;
  border: 0;
  border-radius: 11px;
  color: var(--dpo-chat-ink);
  background: #f0f5f9;
}
.dpo-chat-design .chat-pinned > svg { flex: 0 0 22px; width: 22px; height: 22px; color: #303c6a; }
.dpo-chat-design .dpo-chat-pin-copy { display: flex; align-items: center; flex: 1 1 auto; gap: 10px; min-width: 0; max-height: 44px; overflow: auto; }
.dpo-chat-design .dpo-chat-pin-copy :where(span, strong, p) { min-width: 0; max-height: none; margin: 0; color: var(--dpo-chat-ink); font-size: 16px; line-height: 1.4; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dpo-chat-design .dpo-chat-pin-copy a { display: inline; flex: 0 1 auto; min-width: 0; max-width: 40%; margin: 0; color: var(--dpo-chat-muted); font-size: 13px; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dpo-chat-design .chat-pinned > button { display: grid; place-items: center; flex: 0 0 32px; min-width: 32px; min-height: 32px; padding: 0; border: 0; color: #52638d; background: transparent; }
.dpo-chat-design .chat-pinned > button svg { width: 20px; height: 20px; }
.dpo-chat-design .chat-announcement,
.dpo-chat-design .chat-note,
.dpo-chat-design .chat-file-hint { display: none; }
.dpo-chat-design .chat-messages {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  min-height: 0;
  max-height: none;
  margin: 0;
  padding: 15px 20px 12px;
  border: 0;
  background: transparent;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scrollbar-width: thin;
  scrollbar-color: #cbd4e1 transparent;
}
.dpo-chat-design :where(.dpo-message-date, .dpo-chat-date) { align-self: center; flex: 0 0 auto; margin: 0 0 1px; padding: 7px 22px; border-radius: 22px; color: #6e7b9c; background: #fff; font-size: 14px; line-height: 1.3; }
.dpo-chat-design .dpo-chat-message { display: flex; flex: 0 0 auto; align-items: flex-start; gap: 15px; width: 100%; min-width: 0; max-width: 100%; margin: 0; padding: 0; background: transparent; }
.dpo-chat-design .dpo-chat-message > .avatar { display: grid; place-items: center; flex: 0 0 52px; width: 52px; height: 52px; border-radius: 50%; color: #151522; background: #ffe5ee; font-size: 20px; font-weight: 400; }
.dpo-chat-design .dpo-chat-message[data-role=student] > .avatar { background: #edf1f6; }
.dpo-chat-design .dpo-chat-message > .dpo-message-content { flex: 0 1 auto; min-width: 0; max-width: min(85%, calc(100% - 67px)); }
.dpo-chat-design .dpo-chat-message.is-own { flex-direction: row-reverse; }
.dpo-chat-design .dpo-chat-message.is-own > .avatar { display: none; }
.dpo-chat-design .dpo-chat-message.is-own > .dpo-message-content { max-width: 85%; }
.dpo-chat-design .dpo-message-bubble { position: relative; min-width: 0; max-width: 100%; padding: 8px 15px 9px; border: 0; border-radius: 14px; background: #fff; overflow-wrap: anywhere; }
.dpo-chat-design .is-own .dpo-message-bubble { padding: 11px 15px; border: 0; border-radius: 16px; background: var(--dpo-chat-blush); }
.dpo-chat-design .is-own .dpo-message-bubble { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
.dpo-chat-design .is-own .dpo-message-bubble > p { flex: 1 1 auto; }
.dpo-chat-design .is-own .dpo-message-bubble > .dpo-message-meta { flex: 0 0 auto; margin: 0 0 0 auto; }
.dpo-chat-design .dpo-message-bubble > p { min-width: 0; max-width: none; margin: 0; padding: 0; border: 0; border-radius: 0; color: var(--dpo-chat-ink); background: transparent; font-size: 18px; line-height: 1.45; white-space: pre-wrap; }
.dpo-chat-design .dpo-chat-message .message-head { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; margin: 0 0 4px; }
.dpo-chat-design .dpo-chat-message .message-head strong { color: #0348ff; font-size: 16px; line-height: 1.4; font-weight: 600; }
.dpo-chat-design .is-own .message-head { display: none; }
.dpo-chat-design .message-role { display: none; }
.dpo-chat-design .dpo-message-meta { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 6px; min-height: 18px; margin-top: 5px; color: var(--dpo-chat-muted); font-size: 14px; line-height: 1.3; font-variant-numeric: tabular-nums; }
.dpo-chat-design .dpo-message-meta svg { flex: 0 0 auto; color: var(--dpo-chat-accent); }
.dpo-chat-design .dpo-message-read { display: inline-flex; align-items: center; }
.dpo-chat-design .dpo-message-read svg { width: 21px; height: 19px; }
.dpo-chat-design .dpo-message-actions { display: inline-flex; align-items: center; gap: 4px; margin: 0; }
.dpo-chat-design .message-pin { position: absolute; top: 6px; right: -30px; display: grid; place-items: center; min-width: 26px; min-height: 28px; padding: 4px; border: 0; border-radius: 6px; opacity: 0; color: #a0abc1; background: #fff; }
.dpo-chat-design .is-own .message-pin { right: auto; left: -30px; }
.dpo-chat-design .dpo-chat-message:hover .message-pin,
.dpo-chat-design .message-pin:focus-visible { opacity: 1; }
.dpo-chat-design .dpo-message-receipts { display: inline-flex; min-width: 0; align-items: center; }
.dpo-chat-design .dpo-message-receipts .chat-receipt-button { display: inline-flex; align-items: center; gap: 4px; min-height: 20px; margin: 0; padding: 0; border: 0; border-radius: 3px; color: var(--dpo-chat-muted); background: transparent; font-size: 12px; line-height: 1.3; }
.dpo-chat-design .chat-file-list { display: grid; grid-template-columns: minmax(0,1fr); gap: 8px; width: 100%; max-width: 510px; min-width: 0; margin-top: 10px; }
.dpo-chat-design .dpo-chat-file { display: flex; align-items: center; gap: 17px; min-width: 0; max-width: 100%; min-height: 72px; padding: 10px 15px 10px 20px; border: 1px solid #dce3ef; border-radius: 12px; color: var(--dpo-chat-ink); background: #f5f8fb; text-decoration: none; }
.dpo-chat-design .dpo-chat-file > span { min-width: 0; }
.dpo-chat-design .dpo-chat-file > span:not(.dpo-chat-file-kind) { flex: 1 1 auto; }
.dpo-chat-design .dpo-chat-file strong { display: block; color: var(--dpo-chat-ink); font-size: 17px; line-height: 1.35; font-weight: 600; overflow-wrap: anywhere; }
.dpo-chat-design .dpo-chat-file small { display: block; margin-top: 4px; color: var(--dpo-chat-muted); font-size: 15px; line-height: 1.35; }
.dpo-chat-design .dpo-chat-file > svg { flex: 0 0 23px; width: 23px; height: 23px; color: #182355; }
.dpo-chat-design .dpo-chat-file-kind { position: relative; display: grid; place-items: end center; flex: 0 0 40px; width: 40px; height: 50px; padding-bottom: 6px; border: 1px solid #e20036; border-radius: 4px; color: #fff; background: #f20b3d; font-size: 13px; font-weight: 700; line-height: 1; }
.dpo-chat-design .dpo-chat-file-kind::after { content: ''; position: absolute; top: -1px; right: -1px; width: 12px; height: 12px; border-bottom: 1px solid #ba002b; border-left: 1px solid #ba002b; border-radius: 0 2px 0 3px; background: #ff7b9c; clip-path: polygon(0 0,100% 100%,0 100%); }
.dpo-chat-design .chat-media-attachment { display: grid; grid-template-columns: minmax(0,1fr); gap: 7px; width: 100%; min-width: 0; max-width: 480px; padding: 0; border: 0; border-radius: 0; background: transparent; }
.dpo-chat-design .dpo-chat-media-label { color: var(--dpo-chat-ink); font-size: 17px; line-height: 1.35; font-weight: 400; }
.dpo-chat-design .dpo-chat-audio-file { position: relative; display: block; width: 440px; max-width: 100%; }
.dpo-chat-design .dpo-chat-audio-file > * { min-width: 0; max-width: 100%; }
.dpo-chat-design .dpo-chat-audio-file > .dpo-chat-media-label { display: none; }
.dpo-chat-design .dpo-chat-audio-file > .dpo-chat-media-download { position: absolute; top: 0; right: 0; display: grid; place-items: center; width: 24px; min-height: 24px; opacity: 0; }
.dpo-chat-design .dpo-chat-audio-file:hover > .dpo-chat-media-download,
.dpo-chat-design .dpo-chat-audio-file:focus-within > .dpo-chat-media-download { opacity: 1; }
.dpo-chat-design .dpo-message-bubble:has(.dpo-chat-audio-file) > .chat-file-list { margin-top: 2px; }
.dpo-chat-design .dpo-message-bubble:has(.dpo-chat-audio-file) > .dpo-message-meta { position: absolute; right: 15px; bottom: 9px; margin: 0; }
.dpo-chat-design .dpo-chat-audio { display: grid; grid-template-columns: 50px minmax(0,1fr) auto; align-items: center; gap: 15px; width: 100%; max-width: 380px; min-width: 0; min-height: 50px; padding: 0; }
.dpo-chat-design .dpo-chat-audio-toggle { display: grid; place-items: center; width: 50px; min-width: 50px; height: 50px; min-height: 50px; margin: 0; padding: 0; border: 0; border-radius: 50%; color: #fff; background: var(--dpo-chat-accent); }
.dpo-chat-design .dpo-chat-audio-toggle:disabled { opacity: .55; }
.dpo-chat-design .dpo-chat-audio-toggle > svg { width: 24px; height: 24px; }
.dpo-chat-design .dpo-chat-audio-progress { position: relative; min-width: 0; height: 44px; }
.dpo-chat-design .dpo-chat-audio-progress input[type=range] { position: absolute; inset: 0; width: 100%; height: 44px; margin: 0; padding: 0; opacity: 0; cursor: pointer; }
.dpo-chat-design .dpo-chat-wave { display: flex; align-items: center; justify-content: space-between; gap: 2px; min-width: 0; height: 44px; pointer-events: none; }
.dpo-chat-design .dpo-chat-wave i { display: block; flex: 1 1 0; min-width: 0; max-width: 4px; border-radius: 3px; background: #aab5cf; }
.dpo-chat-design .dpo-chat-wave i.is-played { background: var(--dpo-chat-accent); }
.dpo-chat-design .dpo-chat-audio-progress:focus-within { outline: 2px solid #c31d51; outline-offset: 3px; border-radius: 6px; }
.dpo-chat-design .dpo-chat-audio-time { color: #54648e; font-size: 15px; line-height: 1.3; white-space: nowrap; font-variant-numeric: tabular-nums; }
.dpo-chat-design .dpo-chat-audio > audio:not([hidden]) { display: block; grid-column: 1 / -1; width: 100%; min-width: 0; max-width: 100%; }
.dpo-chat-design .dpo-chat-audio > .form-hint { grid-column: 1 / -1; margin: 0; color: #59688e; font-size: 13px; line-height: 1.4; }
.dpo-chat-design .dpo-chat-media-download { display: inline-flex; justify-self: start; align-items: center; gap: 5px; min-height: 24px; margin: 0; padding: 0; color: var(--dpo-chat-muted); font-size: 11px; line-height: 1.3; text-decoration: none; }
.dpo-chat-design .dpo-chat-video { width: 440px; min-width: 0; max-width: 100%; }
.dpo-chat-design .dpo-chat-video video { display: block; width: 100%; min-width: 0; max-width: 100%; max-height: 300px; border-radius: 9px; background: #142f55; object-fit: contain; }
.dpo-chat-design .dpo-chat-video-stage { position: relative; display: block; width: 100%; max-width: 440px; min-width: 0; height: 132px; overflow: hidden; border-radius: 9px; background: #142f55; }
.dpo-chat-design .dpo-chat-video-stage > .dpo-chat-video-native { display: block; width: 100%; min-width: 0; max-width: 100%; height: 100%; max-height: none; border-radius: 9px; background: #142f55; object-fit: cover; }
.dpo-chat-design .dpo-chat-video-play { position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 56px; min-width: 56px; height: 56px; min-height: 56px; margin: 0; padding: 0; transform: translate(-50%,-50%); border: 0; border-radius: 50%; color: #fff; background: #071e3fe6; cursor: pointer; }
.dpo-chat-design .dpo-chat-video-play > svg { width: 26px; height: 26px; }
.dpo-chat-design .dpo-chat-video-duration { position: absolute; right: 8px; bottom: 7px; display: block; padding: 4px 7px; border-radius: 6px; color: #fff; background: #071322cf; font-size: 14px; line-height: 1.2; font-variant-numeric: tabular-nums; pointer-events: none; }
.dpo-chat-design .dpo-chat-video-stage.is-started,
.dpo-chat-design .dpo-chat-video-stage.is-fallback { height: auto; }
.dpo-chat-design .dpo-chat-video-stage.is-started > .dpo-chat-video-native,
.dpo-chat-design .dpo-chat-video-stage.is-fallback > .dpo-chat-video-native { height: auto; max-height: none; object-fit: contain; }
.dpo-chat-design .dpo-chat-video-stage.is-started > .dpo-chat-video-play,
.dpo-chat-design .dpo-chat-video-stage.is-fallback > .dpo-chat-video-play,
.dpo-chat-design .dpo-chat-video-stage.is-started > .dpo-chat-video-duration,
.dpo-chat-design .dpo-chat-video-stage.is-fallback > .dpo-chat-video-duration { display: none; }
.dpo-chat-design .dpo-chat-media-caption { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; }
.dpo-chat-design .dpo-chat-media-caption > strong { flex: 1 1 auto; min-width: 0; }
.dpo-chat-design .dpo-chat-media-caption > .dpo-chat-media-download { display: grid; place-items: center; flex: 0 0 24px; width: 24px; min-height: 24px; }
.dpo-chat-design .dpo-chat-composer { position: relative; bottom: auto; z-index: 5; flex: 0 0 auto; min-width: 0; margin: 0; padding: 5px 20px 22px; border: 0; border-radius: 0 0 12px 12px; background: transparent; isolation: isolate; }
.dpo-chat-design .dpo-chat-lecture-tools { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.dpo-chat-design .dpo-chat-lecture-button { display: inline-flex; align-items: center; justify-content: center; gap: 20px; min-height: 42px; margin: 0; padding: 8px 20px; border: 1px solid var(--dpo-chat-line); border-radius: 11px; color: var(--dpo-chat-ink); background: #fff; font-size: 16px; line-height: 1.35; font-weight: 600; }
.dpo-chat-design .dpo-chat-lecture-button > svg { width: 26px; height: 26px; color: #304474; }
.dpo-chat-design .dpo-chat-compose-row { display: flex; align-items: flex-end; flex-wrap: nowrap; gap: 12px; min-width: 0; }
.dpo-chat-design .dpo-chat-input-shell { display: flex; align-items: center; flex: 1 1 auto; gap: 16px; min-width: 0; min-height: 60px; padding: 5px 18px; border: 1px solid #d0dced; border-radius: 16px; background: #fff; }
.dpo-chat-design .dpo-chat-input-shell > textarea,
.dpo-chat-design .dpo-chat-input-shell > input:not([type=file]) { display: block; flex: 1 1 0; width: 0; min-width: 0; min-height: 44px; max-height: 132px; margin: 0; padding: 11px 11px; border: 0; border-radius: 0; outline: 0; color: var(--dpo-chat-ink); background: transparent; font: 16px/1.4 Arial, Helvetica, sans-serif; resize: none; }
.dpo-chat-design .dpo-chat-input-shell > :where(input, textarea)::placeholder { color: #7b86a8; opacity: 1; }
.dpo-chat-design .dpo-chat-input-shell:focus-within { border-color: #8da0c2; box-shadow: 0 0 0 2px #dfe7f4; }
.dpo-chat-design .dpo-chat-icon-button { display: inline-grid; place-items: center; flex: 0 0 40px; width: 40px; min-width: 40px; height: 44px; min-height: 44px; margin: 0; padding: 0; border: 0; border-radius: 9px; color: #52658e; background: transparent; cursor: pointer; list-style: none; }
.dpo-chat-design .dpo-chat-icon-button::-webkit-details-marker { display: none; }
.dpo-chat-design .dpo-chat-icon-button svg { width: 26px; height: 26px; }
.dpo-chat-design .dpo-chat-icon-button:hover { background: #f1f5fa; }
.dpo-chat-design .dpo-chat-icon-button:disabled { opacity: .5; }
.dpo-chat-design .dpo-chat-send.primary { display: grid; place-items: center; flex: 0 0 56px; width: 56px; min-width: 56px; height: 56px; min-height: 56px; margin: 0 0 2px; padding: 0; border: 0; border-radius: 50%; color: #fff; background: var(--dpo-chat-accent); }
.dpo-chat-design .dpo-chat-send.primary svg { display: block; width: 27px; height: 27px; }
.dpo-chat-design .dpo-chat-send.primary:disabled { opacity: .55; }
.dpo-chat-design .dpo-chat-send.primary:disabled[data-empty=true]:not([data-blocked=true]) { opacity: 1; }
.dpo-chat-design .dpo-chat-emoji-menu { position: relative; flex: 0 0 40px; min-width: 0; }
.dpo-chat-design .dpo-chat-emoji-menu[open] > summary { color: #c10034; background: #ffe8f0; }
.dpo-chat-design .dpo-chat-emoji-popover { position: absolute; z-index: 25; right: 0; bottom: calc(100% + 14px); display: grid; grid-template-columns: repeat(6,40px); gap: 2px; width: max-content; max-width: calc(100vw - 24px); padding: 7px; border: 1px solid var(--dpo-chat-line); border-radius: 11px; background: #fff; box-shadow: 0 6px 24px #1b255b18; }
.dpo-chat-design .dpo-chat-emoji-popover button { display: grid; place-items: center; min-width: 40px; min-height: 44px; margin: 0; padding: 0; border: 0; border-radius: 6px; background: #fff; font-size: 22px; line-height: 1; }
.dpo-chat-design .dpo-chat-emoji-popover button:hover { background: #ffe8f0; }
.dpo-chat-design .selected-chat-files { display: grid; gap: 7px; min-width: 0; margin: 0 0 11px; }
.dpo-chat-design .selected-chat-files > div { min-width: 0; padding: 9px 11px; font-size: 13px; }
.dpo-chat-design .selected-chat-files button { min-width: 36px; min-height: 36px; }
.dpo-chat-design .chat-new-messages { flex: 0 0 auto; align-self: center; min-height: 44px; margin: 0 auto 8px; padding: 10px 14px; font-size: 13px; }
.dpo-chat-design .dpo-chat-roster { position: static; display: flex; flex-direction: column; align-self: stretch; height: 877px; min-width: 0; min-height: 0; margin: 0; padding: 24px 27px; border: 1px solid var(--dpo-chat-line); border-radius: 12px; color: var(--dpo-chat-ink); background: #fff; box-shadow: none; }
.dpo-chat-design .dpo-chat-roster-heading { flex: 0 0 auto; margin: 0 0 23px; }
.dpo-chat-design .dpo-chat-roster h2 { margin: 0; color: var(--dpo-chat-ink); font-size: 22px; line-height: 1.35; letter-spacing: -.3px; font-weight: 700; }
.dpo-chat-design .chat-files-button { display: flex; flex: 0 0 auto; align-items: center; justify-content: center; gap: 14px; width: 100%; min-height: 46px; margin: 0 0 20px; padding: 9px 13px; border: 1px solid var(--dpo-chat-line); border-radius: 10px; color: var(--dpo-chat-ink); background: #fff; font-size: 16px; line-height: 1.35; font-weight: 600; }
.dpo-chat-design .chat-files-button svg { flex: 0 0 auto; width: 23px; height: 23px; }
.dpo-chat-design .chat-roster-search { position: relative; display: flex; flex: 0 0 auto; align-items: center; gap: 12px; min-width: 0; min-height: 46px; margin: 0; padding: 0 13px; border: 1px solid #d5dfec; border-radius: 11px; color: #52648e; background: #edf2f7; }
.dpo-chat-design .chat-roster-search > svg { flex: 0 0 23px; width: 23px; height: 23px; }
.dpo-chat-design .chat-roster-search input { display: block; flex: 1 1 auto; width: 0; min-width: 0; min-height: 44px; margin: 0; padding: 10px 0; border: 0; border-radius: 0; outline: 0; color: var(--dpo-chat-ink); background: transparent; font: 16px/1.4 Arial, Helvetica, sans-serif; }
.dpo-chat-design .chat-roster-search input::placeholder { color: #7b86a8; opacity: 1; }
.dpo-chat-design .chat-roster-search:focus-within { border-color: #8da0c2; box-shadow: 0 0 0 2px #dfe7f4; }
.dpo-chat-design .chat-roster-list { flex: 1 1 auto; min-height: 0; max-height: none; margin: 22px 0 0; padding: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior-y: contain; scrollbar-width: thin; scrollbar-color: #cbd4e1 transparent; }
.dpo-chat-design .chat-participant { display: flex; align-items: center; gap: 22px; min-width: 0; min-height: 58px; margin: 0 0 24px; padding: 0; border: 0; background: transparent; }
.dpo-chat-design .chat-participant > .avatar { display: grid; place-items: center; flex: 0 0 56px; width: 56px; height: 56px; border-radius: 50%; color: #151522; background: #edf1f6; font-size: 21px; font-weight: 400; }
.dpo-chat-design .chat-participant[data-role=teacher] > .avatar,
.dpo-chat-design .chat-participant[data-role=admin] > .avatar { color: #151522; background: #ffe5ee; }
.dpo-chat-design .chat-participant > div { min-width: 0; }
.dpo-chat-design .chat-participant strong,
.dpo-chat-design .chat-participant .person-link { display: block; margin: 0; padding: 0; border: 0; color: var(--dpo-chat-ink); background: transparent; font-size: 16px; line-height: 1.4; font-weight: 600; text-align: left; overflow-wrap: anywhere; }
.dpo-chat-design .chat-participant small { display: block; margin: 3px 0 0; color: var(--dpo-chat-muted); font-size: 15px; line-height: 1.4; }
.dpo-chat-design .participant-subgroup { display: none; }
.dpo-chat-design .chat-roster-office { margin-top: 0; }
.dpo-chat-dialog.dpo-chat-design { width: min(460px,calc(100vw - 24px)) !important; max-width: 460px !important; max-height: calc(100dvh - 24px); padding: 22px !important; border: 1px solid var(--dpo-chat-line); border-radius: 12px !important; background: #fff; overflow-y: auto; overscroll-behavior: contain; }
.dpo-chat-dialog.dpo-chat-design .dpo-chat-roster { display: flex; height: auto; min-height: 0; margin: 0; padding: 0; border: 0; box-shadow: none; }
.dpo-chat-dialog.dpo-chat-design .chat-roster-list { flex: 0 1 auto; max-height: min(55dvh,520px); }
.dpo-chat-dialog.dpo-chat-design .chat-roster-search input { font-size: 16px; }
@media (max-width: 1100px) and (min-width: 901px) {
  .dpo-chat-design.chat-layout { grid-template-columns: minmax(0,1fr) 280px; }
  .dpo-chat-design .dpo-chat-roster { padding-inline: 22px; }
  .dpo-chat-design .chat-participant { gap: 15px; }
  .dpo-chat-design .dpo-chat-header { padding-inline: 16px; gap: 12px; }
  .dpo-chat-design .dpo-chat-header-actions { gap: 9px; }
  .dpo-chat-design .dpo-chat-header-actions .dpo-call-open { padding-inline: 13px; font-size: 14px; }
  .dpo-chat-design .dpo-chat-identity .avatar { flex-basis: 48px; width: 48px; height: 48px; font-size: 18px; }
  .dpo-chat-design .dpo-chat-identity :where(h2,h3,strong) { font-size: 18px; }
  .dpo-chat-design .dpo-chat-identity { gap: 12px; }
}
@media (max-width: 900px) {
  .dpo-chat-page-heading { gap: 16px; }
  .dpo-chat-page-heading h1 { font-size: 28px; }
  .dpo-chat-page-heading p { font-size: 17px; }
  .dpo-chat-page-heading .chat-group-select { flex-basis: 270px; width: 270px; }
  .dpo-chat-design.chat-layout { grid-template-columns: minmax(0,1fr); gap: 0; }
  .dpo-chat-design.chat-layout > .dpo-chat-roster { display: none; }
  .dpo-chat-design .dpo-chat-panel { height: auto; min-height: 0; }
  .dpo-chat-design .dpo-chat-header { padding: 14px 16px; }
  .dpo-chat-design .dpo-chat-mobile-actions { display: grid; flex: 0 0 auto; grid-template-columns: 1fr 1fr; gap: 0; margin: 0 12px 10px; border: 1px solid var(--dpo-chat-line); border-radius: 10px; background: #fff; }
  .dpo-chat-design .dpo-chat-mobile-actions > button { display: flex; align-items: center; justify-content: center; gap: 8px; min-width: 0; min-height: 44px; margin: 0; padding: 10px; border: 0; color: var(--dpo-chat-ink); background: transparent; font-size: 13px; line-height: 1.4; }
  .dpo-chat-design .dpo-chat-mobile-actions > button + button { border-left: 1px solid var(--dpo-chat-line); }
  .dpo-chat-design .dpo-chat-mobile-actions svg { flex: 0 0 auto; width: 19px; height: 19px; }
  .dpo-chat-design .chat-messages { flex: 0 1 auto; min-height: 300px; max-height: clamp(320px,58dvh,640px); padding: 15px 14px; }
  .dpo-chat-design .chat-pinned { min-height: 46px; margin-inline: 11px; padding: 6px 10px; }
  .dpo-chat-design .dpo-chat-pin-copy { max-height: 58px; }
  .dpo-chat-design .dpo-chat-pin-copy :where(span,strong,p) { font-size: 13px; }
  .dpo-chat-design .dpo-chat-pin-copy a { display: none; }
  .dpo-chat-design .chat-pinned > button { flex-basis: 44px; min-width: 44px; min-height: 44px; }
  .dpo-chat-design .dpo-chat-composer { position: sticky; bottom: 0; padding: 8px 12px calc(12px + env(safe-area-inset-bottom,0px)); background: var(--dpo-chat-canvas); }
  .dpo-chat-design .message-pin { position: static; min-width: 44px; min-height: 44px; opacity: 1; background: transparent; }
  .dpo-chat-design .dpo-message-receipts .chat-receipt-button { min-height: 44px; }
}
@media (max-width: 520px) {
  .dpo-chat-page-heading { flex-direction: column; align-items: stretch; gap: 14px; margin-bottom: 16px; padding-inline: 0; }
  .dpo-chat-page-heading h1 { font-size: 26px; }
  .dpo-chat-page-heading p { font-size: 16px; }
  .dpo-chat-page-heading .eyebrow { font-size: 10px; }
  .dpo-chat-page-heading .chat-group-select { flex: 0 0 auto; width: 100%; gap: 5px; font-size: 13px; }
  .dpo-chat-page-heading .chat-group-select select { min-height: 46px; font-size: 14px; }
  .dpo-chat-design .dpo-chat-header { gap: 9px; min-height: 72px; padding: 12px; }
  .dpo-chat-design .dpo-chat-identity { gap: 9px; }
  .dpo-chat-design .dpo-chat-identity .avatar { flex-basis: 38px; width: 38px; height: 38px; font-size: 14px; }
  .dpo-chat-design .dpo-chat-identity :where(h2,h3,strong), .dpo-chat-design .dpo-chat-title { font-size: 14px; line-height: 1.35; }
  .dpo-chat-design .dpo-chat-identity :where(p,small) { font-size: 12px; }
  .dpo-chat-design .dpo-chat-header-actions { gap: 6px; }
  .dpo-chat-design .dpo-chat-header-actions .dpo-call-open { width: 44px; min-width: 44px; height: 44px; min-height: 44px; padding: 0; }
  .dpo-chat-design .dpo-chat-call-label { display: none; }
  .dpo-chat-design .dpo-chat-more-button { width: 44px; height: 44px; min-height: 44px; }
  .dpo-chat-design .chat-messages { gap: 12px; min-height: 300px; padding: 13px 10px; }
  .dpo-chat-design :where(.dpo-message-date,.dpo-chat-date) { padding: 6px 16px; font-size: 12px; }
  .dpo-chat-design .dpo-chat-message { gap: 8px; }
  .dpo-chat-design .dpo-chat-message > .avatar { flex-basis: 32px; width: 32px; height: 32px; font-size: 12px; }
  .dpo-chat-design .dpo-chat-message > .dpo-message-content { max-width: min(90%,calc(100% - 40px)); }
  .dpo-chat-design .dpo-chat-message.is-own > .dpo-message-content { max-width: 90%; }
  .dpo-chat-design .dpo-message-bubble { padding: 8px 10px; border-radius: 12px; }
  .dpo-chat-design .is-own .dpo-message-bubble { padding: 10px; border-radius: 12px; }
  .dpo-chat-design .dpo-message-bubble > p { font-size: 14px; line-height: 1.5; }
  .dpo-chat-design .dpo-chat-message .message-head strong { font-size: 13px; }
  .dpo-chat-design .dpo-message-meta { gap: 4px; font-size: 11px; }
  .dpo-chat-design .dpo-message-receipts .chat-receipt-button { font-size: 10px; }
  .dpo-chat-design .dpo-chat-file { gap: 10px; min-height: 62px; padding: 8px; border-radius: 9px; }
  .dpo-chat-design .dpo-chat-file-kind { flex-basis: 31px; width: 31px; height: 40px; padding-bottom: 4px; font-size: 10px; }
  .dpo-chat-design .dpo-chat-file strong { font-size: 12px; }
  .dpo-chat-design .dpo-chat-file small { margin-top: 3px; font-size: 11px; }
  .dpo-chat-design .dpo-chat-file > svg { flex-basis: 20px; width: 20px; height: 20px; }
  .dpo-chat-design .dpo-chat-audio { grid-template-columns: 44px minmax(0,1fr) auto; width: 100%; max-width: 320px; gap: 8px; min-height: 44px; }
  .dpo-chat-design .dpo-chat-audio-toggle { width: 44px; min-width: 44px; height: 44px; min-height: 44px; }
  .dpo-chat-design .dpo-chat-audio-time { font-size: 11px; }
  .dpo-chat-design .dpo-chat-audio-file { display: grid; grid-template-columns: minmax(0,1fr); gap: 0; }
  .dpo-chat-design .dpo-chat-audio-file > .dpo-chat-media-download { position: static; justify-self: end; width: 44px; min-height: 44px; opacity: 1; }
  .dpo-chat-design .dpo-message-bubble:has(.dpo-chat-audio-file) > .dpo-message-meta { position: static; margin-top: 5px; }
  .dpo-chat-design .dpo-chat-media-label { font-size: 13px; }
  .dpo-chat-design .dpo-chat-media-download { min-height: 44px; font-size: 11px; }
  .dpo-chat-design .dpo-chat-media-caption > .dpo-chat-media-download { flex-basis: 44px; width: 44px; min-height: 44px; }
  .dpo-chat-design .dpo-chat-lecture-tools { margin-bottom: 9px; }
  .dpo-chat-design .dpo-chat-lecture-button { min-height: 44px; padding: 8px 12px; font-size: 13px; gap: 9px; }
  .dpo-chat-design .dpo-chat-lecture-button > svg { width: 22px; height: 22px; }
  .dpo-chat-design .dpo-chat-compose-row { gap: 7px; }
  .dpo-chat-design .dpo-chat-input-shell { gap: 2px; min-height: 52px; padding: 3px; border-radius: 14px; }
  .dpo-chat-design .dpo-chat-input-shell > textarea,
  .dpo-chat-design .dpo-chat-input-shell > input:not([type=file]) { padding: 11px 2px; font-size: 16px; line-height: 1.35; }
  .dpo-chat-design .dpo-chat-icon-button { flex-basis: 44px; width: 44px; min-width: 44px; height: 44px; min-height: 44px; }
  .dpo-chat-design .dpo-chat-icon-button svg { width: 23px; height: 23px; }
  .dpo-chat-design .dpo-chat-emoji-menu { flex-basis: 44px; }
  .dpo-chat-design .dpo-chat-send.primary { flex-basis: 48px; width: 48px; min-width: 48px; height: 48px; min-height: 48px; margin-bottom: 2px; }
  .dpo-chat-design .dpo-chat-send.primary svg { width: 24px; height: 24px; }
  .dpo-chat-design .dpo-chat-emoji-popover { right: -49px; }
  .dpo-chat-design .selected-chat-files > div { padding: 8px; font-size: 12px; }
  .dpo-chat-design .selected-chat-files button { min-width: 44px; min-height: 44px; }
  .dpo-chat-dialog.dpo-chat-design { padding: 20px 16px !important; }
  .dpo-chat-dialog.dpo-chat-design .dpo-chat-roster { padding: 0; }
  .dpo-chat-dialog.dpo-chat-design .chat-participant { gap: 16px; margin-bottom: 20px; }
  .dpo-chat-dialog.dpo-chat-design .chat-participant > .avatar { flex-basis: 48px; width: 48px; height: 48px; font-size: 18px; }
}
@media (max-width: 360px) {
  .dpo-chat-design .dpo-chat-identity .avatar { display: none; }
  .dpo-chat-design .dpo-chat-header { gap: 7px; }
  .dpo-chat-design .dpo-chat-header-actions { gap: 4px; }
  .dpo-chat-design .dpo-chat-composer { padding-inline: 8px; }
  .dpo-chat-design .dpo-chat-compose-row { gap: 5px; }
  .dpo-chat-design .dpo-chat-input-shell { gap: 0; }
  .dpo-chat-design .dpo-chat-emoji-popover { grid-template-columns: repeat(5,40px); }
}
@media (max-height: 560px) and (max-width: 900px) {
  .dpo-chat-design .chat-messages { min-height: 180px; max-height: 45dvh; }
}
@media (prefers-reduced-motion: reduce) {
  .dpo-chat-design *, .dpo-chat-design *::before, .dpo-chat-design *::after { scroll-behavior: auto !important; }
}
