/* Messaging v3: restrained extensions to the existing three-column conversation UI. */
.sync-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #8c968e;
  font-size: 10px;
  margin-bottom: 9px;
  white-space: normal;
}
.sync-indicator i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #73a882;
}
.sync-indicator i.off {
  background: #d99d50;
}
.sync-indicator button {
  margin-left: auto;
  padding: 0;
  font-size: 10px;
  color: #7f927c;
}
.global-search-shortcut {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: #8a9388;
  padding: 5px 20px 13px;
}
.global-search-shortcut > span {
  flex: 1;
  text-align: left;
}
.global-search-shortcut:hover {
  color: #4e805e;
}
.connection-strip {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
  padding: 9px 28px;
  font-size: 11px;
  line-height: 1.5;
  color: #9b7840;
  background: #fff4dc;
  border-bottom: 1px solid #e9e0cd;
}
.connection-strip > span {
  flex: 1;
}
.connection-strip .button {
  font-size: 11px;
}
.connection-strip.offline {
  background: #f9eedb;
}
.announcement-strip,
.pinned-strip {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 9px;
  text-align: left;
  font-size: 11px;
  flex-shrink: 0;
  padding: 10px 28px;
  background: #ecefe8;
  border-bottom: 1px solid #e2e7db;
  color: #6f8665;
  line-height: 1.5;
}
.announcement-strip span,
.pinned-strip span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}
.pinned-strip {
  background: #f3f3ee;
  color: #99a18c;
  padding-top: 7px;
  padding-bottom: 7px;
  font-size: 10px;
}
.announcement-strip:hover,
.pinned-strip:hover {
  background: #e5ebde;
}
.history-more,
.history-start {
  text-align: center;
  padding: 0 0 24px;
  font-size: 10px;
  color: #b6bbae;
}
.history-more .button {
  font-size: 11px;
  color: #929e85;
}
.history-start {
  font-size: 9px;
  letter-spacing: 0.3px;
  opacity: 0.65;
}
.delivery-label {
  font-size: 9px;
  color: #aab2a4;
}
.delivery-label.failed {
  color: #cf796a;
}
.message-meta:has(.delivery-label) {
  opacity: 1;
}
.message-meta .delivery-label + button {
  font-size: 10px;
  width: auto;
  color: #aa8c62;
  padding: 0 2px;
}
.message.local-message .bubble {
  opacity: 0.8;
}
.message-meta button[data-action='v3-discard'] {
  width: auto;
  font-size: 9px;
  padding: 0 2px;
  color: #b1b3a9;
}
.reply-jobs {
  flex-shrink: 0;
  padding: 0 27px 8px;
  color: #98a08f;
  font-size: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.reply-jobs > div {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 22px;
}
.reply-jobs small {
  max-width: 230px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.reply-jobs .text-button {
  font-size: 10px;
  padding: 0 3px;
  min-height: 20px;
}
.pulse-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #98b186;
  animation: pulse 1.3s infinite;
}
.job-failed {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #d49b76;
}
.recording-strip {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #eef3e7;
  padding: 15px 25px;
  border-top: 1px solid #dde6d6;
  font-size: 12px;
  color: #6f8661;
}
.recording-strip > i {
  width: 8px;
  height: 8px;
  background: #cd8178;
  border-radius: 50%;
  animation: pulse 1s infinite;
}
.recording-strip > span {
  flex: 1;
}
.recording-strip .button {
  font-size: 11px;
  min-height: 30px;
  padding: 6px 11px;
}
.chat-stage.drag-over:after {
  content: '松开发送文件';
  position: absolute;
  inset: 4px;
  background: #edf6e9ee;
  border: 2px dashed #98b386;
  border-radius: 7px;
  z-index: 12;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b8b58;
  font-size: 19px;
  pointer-events: none;
}
.chat-stage {
  position: relative;
}
.media-message {
  padding: 7px;
  min-width: 200px;
  max-width: 360px;
}
.media-message.image {
  padding: 5px;
  min-width: 0;
}
.media-message.image > button {
  display: block;
  padding: 0;
  width: 100%;
}
.media-message img {
  display: block;
  max-width: 330px;
  max-height: 300px;
  border-radius: 3px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.media-message audio {
  display: block;
  width: 300px;
  max-width: 100%;
  height: 38px;
  margin: 8px 0;
}
.media-message video {
  display: block;
  width: 330px;
  max-width: 100%;
  max-height: 310px;
  border-radius: 3px;
  background: #252b25;
}
.media-caption {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 9px;
  color: #87917f;
  padding: 5px 3px 1px;
  line-height: 1.5;
}
.media-caption > span {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 270px;
}
.media-caption button {
  padding: 2px;
  color: inherit;
  display: flex;
}
.voice-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  color: #879c79;
  padding: 4px 5px;
}
.media-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 210px;
  height: 140px;
  font-size: 11px;
  color: #9da990;
  background: #eef0e7;
}
.image-viewer {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
}
.image-viewer img {
  max-width: 100%;
  max-height: 65vh;
  object-fit: contain;
}
.v3-panel {
  width: 100%;
  max-width: 960px;
}
.section-heading {
  margin-bottom: 25px;
}
.section-heading h2 {
  font-size: 21px;
  line-height: 1.5;
  font-weight: 450;
  color: #61765a;
  margin-bottom: 6px;
}
.section-heading h3 {
  font-size: 14px;
  line-height: 1.5;
  font-weight: 500;
  color: #748569;
}
.section-heading p {
  font-size: 12px;
  line-height: 1.8;
  color: #a0a795;
}
.section-heading.compact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 34px 0 13px;
}
.section-heading.compact > span {
  font-size: 11px;
  color: #a6ac9b;
}
.account-card {
  display: flex;
  align-items: center;
  gap: 19px;
  padding: 6px 0 23px;
}
.account-card strong {
  display: block;
  color: #65775e;
  font-size: 18px;
  font-weight: 500;
}
.account-card p {
  font-size: 12px;
  margin: 7px 0 9px;
  color: #929e86;
}
.status-chip {
  display: inline-block;
  color: #a89e85;
  background: #f3f0e7;
  border-radius: 4px;
  font-size: 9px;
  line-height: 1.4;
  padding: 3px 6px;
  font-weight: 400;
  white-space: nowrap;
  vertical-align: middle;
}
.status-chip.positive {
  color: #739068;
  background: #eaf0e3;
}
.settings-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 12px 0 20px;
}
.settings-actions .button {
  font-size: 11px;
  padding: 7px 12px;
}
.settings-callout {
  padding: 17px 19px;
  background: #f2f5eb;
  border: 1px solid #e5eadb;
  border-radius: 6px;
  margin: 17px 0 24px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.settings-callout > div {
  flex: 1;
  min-width: 190px;
}
.settings-callout strong {
  font-size: 12px;
  color: #7e9172;
  font-weight: 500;
}
.settings-callout p {
  font-size: 11px;
  color: #a1ad93;
  line-height: 1.8;
  margin: 5px 0 0;
}
.settings-callout > .button {
  font-size: 11px;
}
.session-list .device-row strong {
  font-size: 12px;
  line-height: 1.6;
  font-weight: 450;
  overflow-wrap: anywhere;
}
.session-list .device-row p {
  font-size: 10px;
}
.session-list .device-row > svg {
  min-width: 25px;
}
.notification-form {
  background: #fbfcf7;
  border: 1px solid #e9ecdf;
  border-radius: 6px;
  padding: 20px;
}
.notification-form .check-line {
  font-size: 12px;
  padding: 8px 0;
  color: #839276;
}
.notification-form .field {
  margin-top: 12px;
  margin-bottom: 13px;
}
.notification-form .field > span {
  font-size: 11px;
}
.notification-form input[type='time'] {
  min-height: 36px;
}
.notification-form > .button {
  font-size: 12px;
  margin-top: 4px;
}
.form-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.notification-item {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 17px 1px;
  width: 100%;
  text-align: left;
  border-bottom: 1px solid #eceee5;
}
.notification-icon {
  width: 35px;
  min-width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: #edf1e6;
  color: #9aaa8a;
}
.notification-item > span:nth-child(2) {
  flex: 1;
  min-width: 0;
}
.notification-item strong {
  font-size: 12px;
  font-weight: 500;
  color: #7d8a71;
}
.notification-item p {
  font-size: 11px;
  color: #a3ac97;
  line-height: 1.8;
  margin: 4px 0;
  overflow-wrap: anywhere;
}
.notification-item time {
  font-size: 9px;
  color: #b7bfad;
}
.notification-item > i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #93b478;
  margin-left: 4px;
}
.notification-item.unread strong {
  color: #617d52;
}
.bot-management-list {
  display: flex;
  flex-direction: column;
  gap: 17px;
}
.bot-management-card {
  border: 1px solid #e4e9db;
  background: #fafcf7;
  border-radius: 7px;
  padding: 20px;
}
.bot-management-heading {
  display: flex;
  align-items: center;
  gap: 13px;
}
.bot-management-heading > div {
  flex: 1;
}
.bot-management-heading strong {
  font-size: 14px;
  color: #6e825f;
  font-weight: 500;
}
.bot-management-heading p {
  font-size: 10px;
  color: #a4ae97;
  margin-top: 5px;
}
.bot-management-card > p {
  font-size: 11px;
  color: #99a58c;
  line-height: 1.8;
  margin: 15px 0;
  max-height: 66px;
  overflow: hidden;
}
.bot-management-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.bot-management-actions .button {
  font-size: 11px;
  padding: 7px 11px;
}
.bot-manager-intro {
  display: flex;
  gap: 17px;
  align-items: center;
  margin-bottom: 22px;
}
.bot-manager-intro strong {
  font-size: 19px;
  font-weight: 450;
  color: #6d825f;
}
.bot-manager-intro p {
  font-size: 11px;
  color: #a0ad91;
  margin-top: 7px;
}
.managed-knowledge {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 23px;
}
.managed-knowledge > article {
  padding: 15px 17px;
  border: 1px solid #e5e9dd;
  border-radius: 5px;
  background: #fcfdf9;
}
.managed-knowledge header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.managed-knowledge strong {
  font-size: 12px;
  color: #849774;
  font-weight: 500;
}
.managed-knowledge header > span {
  font-size: 9px;
  color: #adb79e;
}
.managed-knowledge p {
  font-size: 11px;
  line-height: 1.85;
  color: #a0aa94;
  margin: 10px 0;
  white-space: pre-wrap;
}
.managed-knowledge footer {
  display: flex;
  gap: 18px;
}
.managed-knowledge .button {
  font-size: 10px;
}
.version-knowledge {
  border-top: 1px solid #eef0e7;
  padding-top: 11px;
  margin: 12px 0;
}
.version-knowledge strong {
  font-size: 12px;
  color: #8b9c78;
}
.version-knowledge p {
  font-size: 11px;
  color: #a3ad98;
  line-height: 1.8;
}
.announcement-full {
  font-size: 14px;
  line-height: 2;
  color: #829472;
  padding: 4px 0 12px;
}
.managed-member {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px 0;
  border-bottom: 1px solid #eef0e7;
}
.managed-member > div {
  flex: 1;
}
.managed-member strong {
  font-size: 12px;
  color: #7e8e70;
  font-weight: 500;
}
.managed-member p {
  font-size: 10px;
  color: #a7b296;
  margin-top: 6px;
}
.managed-member .button {
  font-size: 10px;
}
.join-request,
.invite-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 16px 0;
  border-bottom: 1px solid #edf0e6;
}
.join-request > div,
.invite-row > div {
  flex: 1;
}
.join-request strong,
.invite-row strong {
  font-size: 12px;
  color: #839770;
  font-weight: 500;
}
.join-request p,
.invite-row p {
  font-size: 10px;
  color: #acb79c;
  margin-top: 5px;
}
.join-request .button,
.invite-row .button {
  font-size: 10px;
  padding: 6px 9px;
}
.pinned-message {
  padding: 17px 0;
  border-bottom: 1px solid #edf0e6;
}
.pinned-message strong {
  font-size: 12px;
  color: #81966d;
}
.pinned-message p {
  font-size: 12px;
  line-height: 1.9;
  color: #a1af90;
  white-space: pre-wrap;
  margin: 10px 0;
}
.pinned-message .button {
  font-size: 10px;
}
.search-controls {
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.search-controls .search-field {
  width: 100%;
  height: 34px;
  background: #f0f1e9;
}
.search-controls select {
  background: #fafbf6;
  border: 1px solid #e6e9dd;
  border-radius: 4px;
  padding: 7px 9px;
  color: #8d9e7c;
  font-size: 11px;
}
.search-controls > .button {
  font-size: 10px;
  justify-content: flex-start;
}
.global-search-form > .search-field {
  height: 39px;
  background: #f0f2e9;
  border: 1px solid #e7ebdc;
}
.search-filter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 17px 0;
}
.search-filter-grid > label {
  min-width: 0;
}
.search-filter-grid > label > span {
  display: block;
  font-size: 10px;
  color: #9cab8a;
  margin-bottom: 7px;
}
.search-filter-grid input,
.search-filter-grid select {
  width: 100%;
  border: 1px solid #e1e7d7;
  border-radius: 4px;
  background: #fcfdf9;
  padding: 8px;
  color: #8c9e76;
  font-size: 11px;
  min-height: 33px;
}
.global-search-form > .button {
  font-size: 12px;
  padding: 7px 22px;
}
.global-search-form + #global-search-results {
  margin-top: 20px;
  border-top: 1px solid #e9eddf;
}
.history-item > small {
  display: block;
  font-size: 9px;
  color: #adb99e;
  margin: 7px 0 3px;
}
.search-complete {
  text-align: center;
  color: #b4bda7;
  font-size: 9px;
  padding: 18px;
}
.auth-help {
  display: flex;
  justify-content: center;
  gap: 22px;
  margin-top: 18px;
}
.auth-help .button {
  font-size: 10px;
  color: #afbaa2;
}
.demo-mail {
  padding: 17px 0;
  border-bottom: 1px solid #edf0e6;
}
.demo-mail strong {
  font-size: 12px;
  color: #889c73;
}
.demo-mail p {
  font-size: 11px;
  color: #acb99b;
  margin: 6px 0 11px;
}
.demo-mail .button {
  font-size: 10px;
}
.admin-panel {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 0 32px 35px;
  background: #f9faf5;
}
.admin-tabs {
  display: flex;
  gap: 5px;
  overflow: auto;
  position: sticky;
  top: 0;
  padding: 20px 0 16px;
  background: #f9faf5;
  z-index: 2;
  border-bottom: 1px solid #e6eadc;
  margin-bottom: 19px;
  white-space: nowrap;
}
.admin-tabs button {
  font-size: 11px;
  color: #9dab8d;
  padding: 8px 11px;
  border-radius: 5px;
}
.admin-tabs button.active {
  color: #749256;
  background: #eaf0df;
}
.admin-tabs button:hover {
  background: #eef2e7;
}
.admin-demo-note {
  font-size: 10px;
  color: #a4af94;
  padding: 9px 12px;
  border-radius: 4px;
  background: #f0f3e8;
  margin-bottom: 19px;
  line-height: 1.6;
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 13px;
  margin: 22px 0;
}
.metric-card {
  border: 1px solid #e1e8d6;
  border-radius: 6px;
  background: #fcfdf8;
  padding: 20px 18px;
}
.metric-card > span {
  font-size: 11px;
  color: #a4b190;
  display: block;
}
.metric-card > strong {
  font-size: 27px;
  font-weight: 400;
  color: #819b66;
  display: block;
  margin-top: 12px;
  letter-spacing: -0.7px;
}
.health-card {
  border: 1px solid #e2e8d6;
  border-radius: 6px;
  background: #fcfdf8;
  padding: 21px 23px;
  margin: 23px 0;
}
.health-card h3 {
  font-size: 14px;
  font-weight: 500;
  color: #879d72;
  margin-bottom: 12px;
}
.health-card > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  border-top: 1px solid #edf0e5;
  padding: 13px 0;
  font-size: 11px;
}
.health-card > div > span {
  color: #a8b599;
}
.health-card strong {
  font-weight: 400;
  color: #8c9f76;
  text-align: right;
  font-size: 11px;
}
.admin-table-wrap {
  overflow: auto;
  border: 1px solid #e3e8d8;
  border-radius: 5px;
  background: #fcfdf8;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 370px;
  font-size: 11px;
}
.admin-table th {
  font-size: 10px;
  font-weight: 400;
  color: #a1b08b;
  background: #f1f4e9;
  padding: 13px 15px;
}
.admin-table td {
  padding: 16px 15px;
  border-top: 1px solid #e8eddc;
  color: #97a781;
  line-height: 1.7;
}
.admin-table td > strong {
  color: #879b70;
  font-weight: 500;
}
.admin-table td small {
  font-size: 9px;
  color: #b1bda0;
  display: block;
  margin-top: 4px;
  max-width: 220px;
  overflow-wrap: anywhere;
}
.admin-table td .button {
  font-size: 10px;
  padding: 4px;
  min-height: 24px;
}
.admin-table td > div {
  display: flex;
  gap: 11px;
  flex-wrap: wrap;
}
.admin-search {
  display: flex;
  gap: 8px;
  margin: 18px 0;
}
.admin-search > input {
  background: #fdfef8;
  border: 1px solid #e2e8d7;
  min-width: 0;
  flex: 1;
  padding: 9px 12px;
  border-radius: 4px;
  font-size: 12px;
  color: #8b9e73;
}
.admin-search > .button {
  font-size: 11px;
}
.admin-jobs {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.admin-jobs > article {
  padding: 17px 19px;
  background: #fcfdf7;
  border: 1px solid #e4e9d8;
  border-radius: 5px;
}
.admin-jobs > article > div {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
  margin-bottom: 8px;
}
.admin-jobs strong {
  font-size: 12px;
  font-weight: 500;
  color: #8d9e76;
}
.admin-jobs small {
  font-size: 9px;
  color: #b1bca0;
}
.admin-jobs footer {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}
.admin-jobs .button {
  font-size: 10px;
  padding: 5px 10px;
  min-height: 28px;
}
.error-text {
  font-size: 11px;
  color: #c69e84;
  margin: 12px 0;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.quota-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid #e4ead7;
}
.quota-row > div {
  flex: 1;
}
.quota-row strong {
  font-size: 12px;
  font-weight: 450;
  color: #90a378;
}
.quota-row p {
  font-size: 10px;
  line-height: 1.7;
  color: #aeba98;
  margin-top: 5px;
}
.quota-row .button {
  font-size: 10px;
}
.usage-row {
  font-size: 10px;
  color: #a4b38d;
  display: flex;
  justify-content: space-between;
  gap: 13px;
  border-bottom: 1px solid #e8eddc;
  padding: 12px 0;
}
.usage-row small {
  font-size: 9px;
  color: #b8c2a8;
}
.audit-list > article {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 0;
  border-bottom: 1px solid #e4ead7;
}
.audit-list > article > span {
  color: #b3c19f;
  display: flex;
}
.audit-list > article > div {
  flex: 1;
  min-width: 0;
}
.audit-list strong {
  font-weight: 500;
  font-size: 11px;
  color: #90a377;
  display: block;
}
.audit-list small {
  font-size: 9px;
  color: #b3bfa0;
  display: block;
  overflow-wrap: anywhere;
  margin-top: 5px;
}
.audit-list time {
  font-size: 9px;
  color: #b6c1a5;
  white-space: nowrap;
}
.v3-panel > .field-hint,
.admin-panel > .field-hint {
  font-size: 10px;
  line-height: 1.8;
  margin-top: 16px;
}
.drawer-pad.search-controls + .history-results {
  padding-top: 0;
}
@media (max-width: 1100px) {
  .composer-toolbar > div {
    gap: 9px;
  }
  .composer-toolbar .icon-button {
    width: 27px;
  }
  .composer-toolbar .icon-button svg {
    width: 19px;
  }
  .metric-grid {
    gap: 10px;
  }
  .metric-card {
    padding: 17px 14px;
  }
  .admin-panel {
    padding-left: 23px;
    padding-right: 23px;
  }
}
@media (max-width: 760px) {
  .announcement-strip,
  .pinned-strip,
  .connection-strip {
    padding-left: 17px;
    padding-right: 17px;
    font-size: 10px;
  }
  .pinned-strip {
    font-size: 9px;
    padding-top: 6px;
    padding-bottom: 6px;
  }
  .sync-indicator {
    font-size: 9px;
    margin-bottom: 6px;
  }
  .global-search-shortcut {
    font-size: 11px;
    padding: 4px 22px 13px;
  }
  .composer-toolbar > div {
    gap: 9px;
  }
  .composer-toolbar .icon-button {
    width: 24px;
  }
  .composer-toolbar .icon-button svg {
    width: 18px;
  }
  .composer-footer > span {
    max-width: 230px;
    font-size: 8px;
  }
  .message-meta:has(.delivery-label) {
    flex-wrap: wrap;
    gap: 5px;
  }
  .reply-jobs {
    padding: 0 17px 7px;
    font-size: 9px;
  }
  .reply-jobs > div {
    flex-wrap: wrap;
    gap: 6px;
  }
  .reply-jobs small {
    max-width: 180px;
  }
  .recording-strip {
    padding: 12px 15px;
    gap: 7px;
    font-size: 11px;
  }
  .recording-strip .button {
    font-size: 10px;
    padding: 6px 8px;
  }
  .media-message {
    min-width: 180px;
    max-width: 100%;
    padding: 5px;
  }
  .media-message.image img {
    max-width: 100%;
    max-height: 260px;
  }
  .media-message.audio {
    width: 230px;
  }
  .media-message.video {
    width: 255px;
  }
  .media-message audio,
  .media-message video {
    width: 100%;
  }
  .media-caption {
    font-size: 8px;
  }
  .image-viewer img {
    max-height: 62vh;
  }
  .history-start {
    padding-bottom: 20px;
    font-size: 8px;
  }
  .section-heading h2 {
    font-size: 19px;
  }
  .section-heading p {
    font-size: 11px;
  }
  .section-heading.compact {
    margin-top: 28px;
  }
  .section-heading h3 {
    font-size: 13px;
  }
  .account-card {
    gap: 14px;
  }
  .account-card .avatar.large {
    width: 58px;
    height: 58px;
    min-width: 58px;
    font-size: 28px;
  }
  .account-card strong {
    font-size: 17px;
  }
  .account-card p {
    font-size: 11px;
  }
  .settings-callout {
    padding: 15px;
    gap: 11px;
  }
  .settings-callout strong {
    font-size: 12px;
  }
  .settings-callout p {
    font-size: 10px;
  }
  .settings-callout .button {
    font-size: 10px;
  }
  .notification-form {
    padding: 17px;
  }
  .notification-form .check-line {
    font-size: 11px;
    align-items: center;
  }
  .notification-form .field input {
    font-size: 14px;
  }
  .notification-form > .button {
    font-size: 11px;
  }
  .notification-item {
    padding: 17px 0;
    gap: 11px;
  }
  .notification-item p {
    font-size: 10px;
  }
  .notification-item strong {
    font-size: 12px;
  }
  .bot-management-card {
    padding: 17px;
  }
  .bot-management-heading {
    gap: 10px;
  }
  .bot-management-heading strong {
    font-size: 13px;
  }
  .bot-management-heading p {
    font-size: 9px;
  }
  .bot-management-actions {
    gap: 6px;
  }
  .bot-management-actions .button {
    font-size: 10px;
    padding: 6px 9px;
  }
  .bot-management-card > p {
    font-size: 11px;
  }
  .managed-knowledge > article {
    padding: 13px;
  }
  .managed-knowledge strong {
    font-size: 11px;
  }
  .managed-knowledge p {
    font-size: 10px;
  }
  .managed-member .avatar {
    width: 35px;
    height: 35px;
    min-width: 35px;
  }
  .managed-member {
    gap: 10px;
  }
  .managed-member p {
    font-size: 9px;
    max-width: 180px;
    line-height: 1.6;
  }
  .search-filter-grid {
    gap: 11px;
  }
  .search-filter-grid select,
  .search-filter-grid input {
    font-size: 13px;
    padding: 7px;
    min-height: 36px;
  }
  .global-search-form > .search-field {
    height: 40px;
  }
  .admin-panel {
    padding: 0 18px 28px;
  }
  .admin-tabs {
    padding-top: 16px;
    gap: 0;
    margin-bottom: 15px;
  }
  .admin-tabs button {
    font-size: 10px;
    padding: 8px 9px;
  }
  .admin-demo-note {
    font-size: 9px;
    padding: 9px 10px;
  }
  .metric-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: 18px 0;
  }
  .metric-grid.compact {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  .metric-card {
    padding: 16px 14px;
  }
  .metric-card > span {
    font-size: 10px;
  }
  .metric-card > strong {
    font-size: 25px;
    margin-top: 9px;
  }
  .metric-grid.compact .metric-card {
    padding: 14px 11px;
  }
  .metric-grid.compact strong {
    font-size: 21px;
  }
  .metric-grid.compact span {
    font-size: 9px;
  }
  .health-card {
    padding: 19px 16px;
    margin: 19px 0;
  }
  .health-card h3 {
    font-size: 13px;
  }
  .health-card > div {
    font-size: 10px;
    gap: 15px;
    padding: 12px 0;
  }
  .health-card strong {
    font-size: 10px;
    max-width: 160px;
    line-height: 1.7;
  }
  .admin-table th {
    font-size: 9px;
    padding: 11px 12px;
  }
  .admin-table td {
    padding: 14px 12px;
    font-size: 10px;
  }
  .admin-table td small {
    font-size: 8px;
  }
  .admin-table td .button {
    font-size: 9px;
  }
  .admin-search > input {
    font-size: 14px;
  }
  .audit-list {
    font-size: 10px;
  }
  .audit-list > article {
    gap: 9px;
  }
  .audit-list strong {
    font-size: 10px;
  }
  .audit-list small,
  .audit-list time {
    font-size: 8px;
  }
  .quota-row {
    gap: 10px;
  }
  .quota-row p {
    font-size: 9px;
  }
  .quota-row strong {
    font-size: 11px;
  }
  .section-heading.compact > .button {
    font-size: 10px;
  }
  .usage-row {
    font-size: 9px;
  }
  .usage-row small {
    font-size: 8px;
  }
}
