.app-chat-panel--rooms-shared.ant-card {
  border: 0;
  border-radius: 0;
  height: 100%;
  background: transparent;
  box-shadow: none;
}

.app-chat-panel--rooms-shared .ant-card-head {
  display: block;
}

.app-chat-panel--rooms-shared .ant-card-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  padding: 0;
  border-radius: 14px;
  background: linear-gradient(180deg, #edf3fb 0%, #e4edf8 100%);
  box-shadow:
    inset 0 0 0 1px rgba(196, 210, 226, 0.96),
    0 8px 24px rgba(148, 163, 184, 0.12);
}

.app-chat-panel--rooms-shared .app-chat-panel__stack,
.app-chat-panel--rooms-shared .app-chat-panel__stack--chat {
  min-height: 0;
  height: 100%;
}

.app-chat-panel--rooms-shared .app-chat-panel__conversation-main,
.app-chat-panel--rooms-shared .app-chat-panel__conversation-empty {
  background: transparent;
}

.app-chat-panel--rooms-shared .app-chat-panel__conversation-main {
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

.app-chat-panel--rooms-shared .app-chat-panel__conversation-empty {
  padding: 18px;
}

.app-chat-panel--rooms-shared .app-chat-panel__rooms-share-header {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.32);
  background: linear-gradient(180deg, rgba(237, 243, 251, 0.98) 0%, rgba(228, 237, 248, 0.94) 100%);
  backdrop-filter: blur(10px);
}

.app-chat-panel--rooms-shared .app-chat-panel__rooms-share-header-main,
.app-chat-panel--rooms-shared .app-chat-panel__rooms-share-header-sub {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.app-chat-panel--rooms-shared .app-chat-panel__rooms-share-header-copy,
.app-chat-panel--rooms-shared .app-chat-panel__rooms-share-current {
  min-width: 0;
}

.app-chat-panel--rooms-shared .app-chat-panel__rooms-share-header-row {
  min-width: 0;
  flex-wrap: wrap;
}

.app-chat-panel--rooms-shared .app-chat-panel__rooms-share-header-title {
  font-size: 14px;
}

.app-chat-panel--rooms-shared .app-chat-panel__rooms-share-header-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
  gap: 8px;
}

.app-chat-panel--rooms-shared .app-chat-panel__rooms-share-nav {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  min-width: 0;
}

.app-chat-panel--rooms-shared .app-chat-panel__rooms-share-window-actions {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 8px;
}

.app-chat-panel--rooms-shared .app-chat-panel__rooms-share-summary,
.app-chat-panel--rooms-shared .app-chat-panel__rooms-share-current {
  min-width: 0;
}

.app-chat-panel--rooms-shared .app-chat-panel__rooms-share-current {
  font-size: 13px;
  font-weight: 600;
}

.app-chat-panel--rooms-shared .app-chat-panel__rooms-share-action--tool.ant-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  height: 36px;
  padding-inline: 12px;
  border-radius: 999px;
  border: 0;
  color: #334155;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(241, 245, 249, 0.9) 100%);
  box-shadow:
    inset 0 0 0 1px rgba(148, 163, 184, 0.26),
    0 6px 16px rgba(148, 163, 184, 0.12);
  transition:
    background-color 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.app-chat-panel--rooms-shared .app-chat-panel__rooms-share-action--tool.ant-btn .ant-btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-inline-end: 0;
  border-radius: 999px;
  color: #2563eb;
  background: rgba(219, 234, 254, 0.92);
  box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.16);
}

.app-chat-panel--rooms-shared .app-chat-panel__rooms-share-action--tool.ant-btn .ant-btn-icon .anticon {
  font-size: 13px;
}

.app-chat-panel--rooms-shared .app-chat-panel__rooms-share-action--tool.ant-btn:hover,
.app-chat-panel--rooms-shared .app-chat-panel__rooms-share-action--tool.ant-btn:focus-visible {
  color: #1d4ed8;
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.96) 0%, rgba(219, 234, 254, 0.94) 100%);
  box-shadow:
    inset 0 0 0 1px rgba(96, 165, 250, 0.32),
    0 8px 18px rgba(96, 165, 250, 0.16);
  transform: translateY(-1px);
}

.app-chat-panel--rooms-shared .app-chat-panel__rooms-share-action--tool.ant-btn:hover .ant-btn-icon,
.app-chat-panel--rooms-shared .app-chat-panel__rooms-share-action--tool.ant-btn:focus-visible .ant-btn-icon {
  color: #1d4ed8;
  background: rgba(191, 219, 254, 0.96);
}

.app-chat-panel--rooms-shared .app-chat-panel__rooms-share-action--tool.ant-btn:active {
  transform: translateY(0);
}

.app-chat-panel--rooms-shared .app-chat-panel__rooms-share-action--icon.ant-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  min-width: 34px;
  height: 34px;
  padding-inline: 0;
  border-radius: 999px;
}

.app-chat-panel--rooms-shared .app-chat-panel__rooms-share-action--icon.ant-btn:hover,
.app-chat-panel--rooms-shared .app-chat-panel__rooms-share-action--icon.ant-btn:focus-visible {
  color: #1d4ed8;
  background: rgba(219, 234, 254, 0.86);
}

.app-chat-panel--rooms-shared .app-chat-panel__rooms-share-action--close.ant-btn:hover,
.app-chat-panel--rooms-shared .app-chat-panel__rooms-share-action--close.ant-btn:focus-visible {
  color: #b91c1c;
  background: rgba(254, 226, 226, 0.96);
}

.app-chat-panel--rooms-shared .app-chat-panel__rooms-share-tool-label {
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.01em;
}

.app-chat-panel--rooms-shared .app-chat-panel__composer {
  gap: 5px;
  padding: 5px 8px max(1px, env(safe-area-inset-bottom, 0px));
  border: 0;
  border-radius: 14px;
  background: rgba(248, 250, 252, 0.94);
  box-shadow:
    inset 0 0 0 1px rgba(219, 226, 236, 0.82),
    0 10px 28px rgba(148, 163, 184, 0.12);
}

.app-chat-panel--rooms-shared .app-chat-panel__composer-topline--shared {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  width: 100%;
}

.app-chat-panel--rooms-shared .app-chat-panel__composer-type--readonly {
  flex: 1 1 180px;
  min-width: 0;
}

.app-chat-panel--rooms-shared .app-chat-panel__composer-actions--shared,
.app-chat-panel--rooms-shared .app-chat-panel__composer-topline--shared .app-chat-panel__composer-utility-buttons {
  flex: 0 0 auto;
}

.app-chat-panel--rooms-shared .app-chat-panel__composer-topline--shared .app-chat-panel__composer-action-buttons .ant-btn {
  width: 36px;
  min-width: 36px;
  height: 36px;
  padding-inline: 0;
  border-radius: 999px;
}
.app-chat-panel--rooms-shared .app-chat-panel__composer-type {
  flex: 1 1 180px;
}

.app-chat-panel--rooms-shared .app-chat-panel__composer-type--readonly {
  flex: 0 0 180px;
}

.app-chat-panel--rooms-shared .app-chat-panel__composer-model-token {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.25;
  color: #334155;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border: 1px solid rgba(148, 163, 184, 0.42);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(241, 245, 249, 0.9) 100%);
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.16);
}

@media (max-width: 760px) {

  .app-chat-panel--rooms-shared .app-chat-panel__composer-type {
    flex: 1 1 150px;
    min-width: 0;
  }

  .app-chat-panel--rooms-shared .app-chat-panel__composer-model-token {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.25;
    color: #334155;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border: 1px solid rgba(148, 163, 184, 0.42);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(241, 245, 249, 0.9) 100%);
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.16);
  }
  .app-chat-panel--rooms.app-chat-panel--rooms-shared .ant-card-body {
    border-radius: 0;
  }

  .app-chat-panel--rooms.app-chat-panel--rooms-shared .app-chat-panel__rooms-share-header-main,
  .app-chat-panel--rooms.app-chat-panel--rooms-shared .app-chat-panel__rooms-share-header-sub {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: flex-start;
  }

  .app-chat-panel--rooms.app-chat-panel--rooms-shared .app-chat-panel__rooms-share-header-actions {
    width: auto;
    gap: 4px;
    justify-content: flex-end;
    justify-self: end;
    flex-wrap: nowrap;
  }

  .app-chat-panel--rooms.app-chat-panel--rooms-shared .app-chat-panel__rooms-share-nav {
    width: auto;
    gap: 0;
    justify-content: flex-end;
    flex-wrap: nowrap;
  }

  .app-chat-panel--rooms.app-chat-panel--rooms-shared .app-chat-panel__rooms-share-window-actions {
    width: auto;
    justify-self: end;
    flex-wrap: nowrap;
  }

  .app-chat-panel--rooms.app-chat-panel--rooms-shared .app-chat-panel__rooms-share-action--tool.ant-btn {
    width: 34px;
    min-width: 34px;
    padding-inline: 0;
    justify-content: center;
  }

  .app-chat-panel--rooms.app-chat-panel--rooms-shared .app-chat-panel__composer {
    gap: 4px;
    padding-bottom: max(1px, env(safe-area-inset-bottom, 0px));
  }

  .app-chat-panel--rooms.app-chat-panel--rooms-shared .app-chat-panel__rooms-share-nav .app-chat-panel__rooms-share-action.ant-btn {
    width: 30px;
    min-width: 30px;
    padding-inline: 0;
    justify-content: center;
  }

  .app-chat-panel--rooms.app-chat-panel--rooms-shared .app-chat-panel__rooms-share-nav .app-chat-panel__rooms-share-action.ant-btn .ant-btn-icon {
    margin-inline-end: 0;
  }

  .app-chat-panel--rooms.app-chat-panel--rooms-shared .app-chat-panel__rooms-share-nav .app-chat-panel__rooms-share-action.ant-btn > span:not(.ant-btn-icon) {
    display: none;
  }

  .app-chat-panel--rooms.app-chat-panel--rooms-shared .app-chat-panel__rooms-share-action--tool.ant-btn .ant-btn-icon {
    width: 24px;
    height: 24px;
  }

  .app-chat-panel--rooms.app-chat-panel--rooms-shared .app-chat-panel__rooms-share-tool-label {
    display: none;
  }

  .app-chat-panel--rooms.app-chat-panel--rooms-shared .app-chat-panel__rooms-share-summary,
  .app-chat-panel--rooms.app-chat-panel--rooms-shared .app-chat-panel__rooms-share-current {
    white-space: normal;
  }

  .app-chat-panel--rooms.app-chat-panel--rooms-shared .app-chat-panel__composer {
    padding-bottom: max(12px, calc(env(safe-area-inset-bottom, 0px) + 8px));
  }
}
