/* Hey! Card */

.hey-card {
  height: 75px;
  padding: 8px 8px;
}
.hey-card .mdc-card__primary-action {
  padding: 16px;
  height: 100%;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
}
.hey-card .hey-card__avatar {
  margin-right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--mdc-theme-text-secondary-on-light);
  background-color: #e0e0e0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hey-card .hey-card__content {
  flex-grow: 1;
}

/* Hey! Feed */

.hey-tab-bar-container {
  flex-shrink: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

@media (prefers-color-scheme: dark) {
  .hey-tab-bar-container {
    border-bottom-color: rgba(255, 255, 255, 0.12);
  }
}

.hey-section-header {
  padding: 10px 16px 4px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mdc-theme-text-secondary-on-background);
}

.hey-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

@media (prefers-color-scheme: dark) {
  .hey-item {
    border-bottom-color: rgba(255, 255, 255, 0.06);
  }
}

.hey-item--selected {
  border-left: 3px solid var(--mdc-theme-primary);
  padding-left: 13px;
}

.hey-avatar {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--circle-icon-background);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #fff;
}

.hey-avatar--update {
  background-color: #2e7d32;
}

.hey-avatar--review {
  background-color: #f57c00;
}

.hey-avatar--warning {
  background-color: #c62828;
}

.hey-avatar .material-icons,
.hey-avatar .material-icons-outlined,
.hey-avatar i {
  font-size: 20px;
  color: #fff;
}

.hey-item__text {
  flex: 1;
  min-width: 0;
}

.hey-item__headline {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 2px;
}

.hey-item__title {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--mdc-theme-text-primary-on-background);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hey-item__time {
  flex-shrink: 0;
  font-size: 0.75rem;
  color: var(--mdc-theme-text-secondary-on-background);
}

.hey-item__body {
  margin: 2px 0 0;
  font-size: 0.875rem;
  color: var(--mdc-theme-text-secondary-on-background);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hey-item__body--compact {
  -webkit-line-clamp: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hey-stars {
  display: flex;
  gap: 1px;
  margin: 4px 0 2px;
}

.hey-stars .material-icons,
.hey-stars .material-icons-outlined,
.hey-stars i {
  font-size: 16px;
  color: #f57c00;
}

.hey-item__actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.hey-action {
  padding: 4px 10px;
  border: none;
  border-radius: 4px;
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  background-color: var(--light-primary);
  color: var(--mdc-theme-primary);
  line-height: 1.5;
}

.hey-action--secondary {
  background-color: transparent;
  color: var(--mdc-theme-text-secondary-on-background);
}

/* Hey! — dismiss button */
.hey-action--dismiss {
  background-color: transparent;
  color: var(--mdc-theme-text-secondary-on-background);
  padding: 4px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hey-action--dismiss:hover {
  background-color: rgba(0, 0, 0, 0.04);
}

@media (prefers-color-scheme: dark) {
  .hey-action--dismiss:hover {
    background-color: rgba(255, 255, 255, 0.08);
  }
}

.hey-action--dismiss .material-icons,
.hey-action--dismiss .material-icons-outlined,
.hey-action--dismiss i {
  font-size: 20px;
}

/* Hey! — SEPA card avatar */
.hey-avatar--sepa {
  background-color: #1565c0;
}

/* Hey! — HTMLPayload iframe preview */
.hey-iframe-preview {
  width: 100%;
  height: 100%;
  border: 0;
  min-height: 200px;
  margin-top: 8px;
}

.hey-html-preview {
  cursor: pointer;
}

/* Hey! — chat detail view */
.hey-chat-detail {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.hey-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hey-chat-bubble {
  max-width: 75%;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 0.875rem;
  line-height: 1.4;
  word-wrap: break-word;
}

.hey-chat-bubble--other {
  align-self: flex-start;
  background-color: #e3f2fd;
  color: #212121;
  border-bottom-left-radius: 4px;
}

.hey-chat-bubble--self {
  align-self: flex-end;
  background-color: var(--mdc-theme-primary);
  color: #fff;
  border-bottom-right-radius: 4px;
}

@media (prefers-color-scheme: dark) {
  .hey-chat-bubble--other {
    background-color: #1e3a5f;
    color: #e0e0e0;
  }
  .hey-chat-bubble--self {
    background-color: #1565c0;
  }
}

.hey-chat-bubble__time {
  font-size: 0.6875rem;
  color: rgba(0, 0, 0, 0.45);
  margin-top: 2px;
  text-align: right;
}

.hey-chat-bubble--self .hey-chat-bubble__time {
  color: rgba(255, 255, 255, 0.7);
}

.hey-chat-compose {
  display: flex;
  gap: 8px;
  padding: 8px 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
  align-items: center;
}

@media (prefers-color-scheme: dark) {
  .hey-chat-compose {
    border-top-color: rgba(255, 255, 255, 0.12);
  }
}

.hey-chat-compose input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 20px;
  font-size: 0.875rem;
  outline: none;
}

.hey-chat-compose input:focus {
  border-color: var(--mdc-theme-primary);
}

.hey-chat-compose button {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--mdc-theme-primary);
  padding: 4px;
  display: flex;
  align-items: center;
}

/* Hey! -- detail pane */
.hey-detail {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.hey-detail__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  flex-shrink: 0;
}

@media (prefers-color-scheme: dark) {
  .hey-detail__header {
    border-bottom-color: rgba(255, 255, 255, 0.12);
  }
}

.hey-detail__title {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--mdc-theme-text-primary-on-background);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hey-detail__time {
  flex-shrink: 0;
  font-size: 0.75rem;
  color: var(--mdc-theme-text-secondary-on-background);
}

.hey-detail__body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--mdc-theme-text-primary-on-background);
}

.hey-detail .hey-iframe-preview {
  max-height: calc(100% - 32px);
  min-height: 300px;
}

/* Hey! — empty state */
.hey-empty {
  text-align: center;
  padding: 48px 16px;
  color: var(--mdc-theme-text-secondary-on-background);
  font-size: 0.875rem;
}

.hey-toast {
  position: fixed;
  top: 0px;
  left: 0px;
  right: 0px;
  z-index: 100;
}
.hey-toast--fade-in {
  animation: 0.3s ease-out hey-toast-in;
}
.hey-toast--fade-out {
  opacity: 0;
  animation: 1s linear hey-toast-out;
}
.hey-toast__line {
  position: relative;
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--mdc-theme-secondary);

}
.hey-toast__button {
  position: fixed;
  top: 2px;
  left: 50%;
  height: 30px;
  padding-left: 12px;
  padding-right: 12px;
  padding-top: 0px;
  padding-bottom: 0px;
  transform: translateX(-50%);
  cursor: pointer;
  max-width: calc(100vw - 32px);
  border-top-left-radius: 0px;
  border-top-right-radius: 0px;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  border-color: var(--mdc-theme-secondary);
  border-style: solid;
  background-color: var(--mdc-theme-secondary);
  color: var(--mdc-theme-on-secondary);
  z-index: 100;
}

@keyframes hey-toast-in {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

@keyframes hey-toast-out {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

.changelog {
  height: 100%;
}
.changelog .mdc-layout-grid {
  height: 100%;
}
.changelog .mdc-layout-grid__inner {
  height: 100%;
  grid-template-rows: 56px 1fr;
}
.changelog .mdc-layout-grid__inner .mdc-layout-grid__cell:nth-child(2) {
  height: 100%;
  overflow-y: auto;
  scrollbar-width: thin;
}
.changelog__header {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}
.changelog__header__button {
  height: 100%;
  min-width: 48px;
  cursor: pointer;
  position: relative;
}
.changelog__header__button.changelog__header__button--hidden {
  cursor: auto;
}
.changelog__header__version {
  text-align: center;
}

.changelog .jodit-wysiwyg,
.hey-message-preview .jodit-wysiwyg
{
  font-family: system-ui;
  line-height: 1.5;
}
.hey-message-preview .jodit-wysiwyg
{
  padding: 16px;
}
.changelog .jodit-wysiwyg > *:first-child,
.hey-message-preview .jodit-wysiwyg > *:first-child
{
  margin-top: 0;
}
.changelog .jodit-wysiwyg > *:last-child
.hey-message-preview .jodit-wysiwyg > *:last-child
{
  margin-bottom: 0;
}
