:root {
  --panel-shadow: 4px 7px 17px rgb(21 60 56 / 10%);
  --entry-field-height: 48px;
}

/* Chat avatars, message bubbles and round controls keep their own shapes. */
:where(body, body *):not(:where(.chat-avatar, .desktop-avatar, .chat-message-avatar, .chat-message, #chat-to-latest, #chat-new)) {
  border-radius: 0 !important;
}

input::file-selector-button,
#sections .main-sections a[aria-current]::after,
#sections .section-trigger[data-current]::after,
.chat-tabs [aria-selected="true"]::after,
.chat-direct-tab:has([aria-selected="true"])::after {
  border-radius: 0;
}

main:has(#sections:not([hidden])) > :is(#sections, #tabs:not(:empty)),
#app .panel,
dialog[open],
dialog.chat-attachment-picker,
[popover]:popover-open,
#chat-settings[popover],
#chat-attachment-picker[popover],
#overview-help,
.account-dropdown,
.section-menu,
.period-menu,
.schedule-chat-preview,
#schedule-zone-dialog .plan-wrap,
.chat-message-menu {
  box-shadow: var(--panel-shadow);
}

dialog:is(.chat-photo-view, .chat-video-view)[open] {
  box-shadow: none;
}

#sections .sign-out {
  min-height: 38px;
  gap: .2rem;
  padding-block: 0;
  padding-inline: .25rem;
}

#sections .sign-out svg {
  flex: none;
  width: 14px;
  height: 14px;
}

@media (max-width: 560px) {
  #sections .sign-out {
    padding-inline: .125rem;
  }
}
