/* Generated from styles.css; edit the source, then prepare-frontend.py. */


.mail-view {
  padding: 22px 24px 24px;
}

.mail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.mail-empty-panel {
  min-height: calc(100vh - 172px);
}

.mail-empty-surface {
  min-height: 420px;
}

.mail-panel {
  display: grid;
  gap: 14px;
}

.mail-panel-title {
  min-width: 0;
  margin-bottom: 2px;
}

.mail-panel-title p {
  min-width: 0;
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  font-weight: 650;
}

.mail-panel-actions {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  min-width: 0;
}

.mail-compose-open-button,
.mail-refresh-button {
  inline-size: 132px;
  flex: 0 0 132px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 8px;
  padding-inline: 16px;
  white-space: nowrap;
}

.mail-status {
  min-height: 22px;
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
  font-weight: 650;
}

.mail-status.is-error {
  color: #ffb7aa;
}

.mail-message-list {
  display: grid;
  gap: 8px;
  align-content: start;
  transition: opacity 120ms ease;
}

.mail-message-list.is-loading {
  opacity: 0.58;
  pointer-events: none;
}

.mail-bulk-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.05);
}

.mail-bulk-select-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 760;
}

.mail-bulk-select-all input,
.mail-message-select input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #b3ff00;
}

.mail-bulk-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  min-width: 0;
}

.mail-bulk-action,
.mail-bulk-clear,
.mail-bulk-label-select {
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.84);
  font: inherit;
  font-size: 12px;
  font-weight: 740;
}

.mail-bulk-action,
.mail-bulk-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  cursor: pointer;
}

.mail-bulk-label-select {
  max-width: 180px;
  padding: 0 30px 0 10px;
  color-scheme: dark;
}

.mail-bulk-action:hover,
.mail-bulk-action:focus-visible,
.mail-bulk-clear:hover,
.mail-bulk-clear:focus-visible,
.mail-bulk-label-select:hover,
.mail-bulk-label-select:focus-visible {
  border-color: rgba(179, 255, 0, 0.46);
  background: rgba(179, 255, 0, 0.1);
  outline: none;
}

.mail-bulk-action:disabled,
.mail-bulk-clear:disabled,
.mail-bulk-label-select:disabled {
  cursor: default;
  opacity: 0.56;
}

.mail-bulk-action--danger {
  border-color: rgba(255, 116, 93, 0.34);
  color: #ffd5cf;
}

.mail-bulk-status {
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  font-weight: 700;
}

.mail-bulk-status.is-success {
  color: #c7ff4a;
}

.mail-bulk-status.is-error {
  color: #ffb7aa;
}

.mail-content {
  display: grid;
  grid-template-columns: minmax(168px, 220px) minmax(280px, 0.95fr) minmax(420px, 1.45fr);
  gap: 14px;
  align-items: start;
}

.mail-folder-panel {
  display: grid;
  gap: 6px;
  align-content: start;
  min-height: 420px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 12px;
  background: rgba(34, 34, 34, 0.72);
  color: rgba(255, 255, 255, 0.92);
}

.mail-folder-item {
  width: 100%;
  display: flex;
  align-items: center;
  min-height: 38px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 12px;
  background: transparent;
  color: rgba(255, 255, 255, 0.74);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.mail-folder-item.is-active {
  pointer-events: none;
}

.mail-folder-item.is-active {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.96);
}

.mail-folder-item:hover,
.mail-folder-item:focus-visible {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.mail-folder-item:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.34);
  outline-offset: 2px;
}

.mail-sidebar-section {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mail-sidebar-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.mail-sidebar-section-title {
  color: rgba(255, 255, 255, 0.54);
  font-size: 11px;
  font-weight: 780;
  letter-spacing: 0;
  text-transform: uppercase;
}

.mail-sidebar-control-list,
.mail-rule-list {
  display: grid;
  gap: 6px;
}

.mail-sidebar-control {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 32px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 10px;
  background: transparent;
  color: rgba(255, 255, 255, 0.68);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.mail-sidebar-control span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mail-sidebar-control small {
  flex: 0 0 auto;
  color: rgba(255, 255, 255, 0.44);
  font-size: 11px;
  font-weight: 760;
}

.mail-sidebar-control.is-active small,
.mail-sidebar-control:hover small,
.mail-sidebar-control:focus-visible small {
  color: rgba(255, 255, 255, 0.72);
}

.mail-smart-section-list {
  margin-bottom: 4px;
}

.mail-sidebar-control:hover,
.mail-sidebar-control:focus-visible,
.mail-sidebar-control.is-active {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.94);
  outline: none;
}

.mail-sidebar-control.is-active {
  pointer-events: none;
}

.mail-sidebar-label-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  align-items: center;
}

.mail-saved-filter-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  align-items: center;
}

.mail-saved-filter-row.is-custom {
  grid-template-columns: minmax(0, 1fr) 28px;
}

.mail-saved-filter {
  min-height: 40px;
}

.mail-saved-filter small {
  max-width: 86px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mail-sidebar-label-row .mail-sidebar-label {
  min-width: 0;
}

.mail-sidebar-label::before,
.mail-label-add-button::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: var(--mail-label-color, #8fd14f);
}

.mail-sidebar-label-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mail-sidebar-label-count {
  margin-left: auto;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.62);
  font-size: 10px;
  font-weight: 780;
  line-height: 1.35;
}

.mail-sidebar-label-actions {
  display: inline-flex;
  gap: 4px;
  align-items: center;
}

.mail-sidebar-label-actions button,
.mail-saved-filter-row > button:not(.mail-saved-filter),
.mail-sidebar-small-button,
.mail-rule-item button,
.mail-label-badge button,
.mail-detail-label-tools-head button,
.mail-label-add-button {
  min-height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.82);
  font: inherit;
  font-size: 12px;
  font-weight: 720;
  cursor: pointer;
}

.mail-sidebar-label-actions button {
  display: inline-grid;
  width: 28px;
  min-width: 28px;
  padding: 0;
  place-items: center;
  font-size: 13px;
  line-height: 1;
}

.mail-saved-filter-row > button:not(.mail-saved-filter) {
  display: inline-grid;
  width: 28px;
  min-width: 28px;
  height: 28px;
  padding: 0;
  place-items: center;
  font-size: 13px;
  line-height: 1;
}

.mail-sidebar-label-actions [data-mail-label-color] span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--mail-label-color, #8fd14f);
}

.mail-sidebar-label-row.is-favorite [data-mail-label-favorite] {
  border-color: rgba(179, 255, 0, 0.42);
  background: rgba(179, 255, 0, 0.1);
  color: #b3ff00;
}

.mail-sidebar-small-button {
  padding: 0 9px;
}

.mail-sidebar-label-actions button:hover,
.mail-sidebar-label-actions button:focus-visible,
.mail-saved-filter-row > button:not(.mail-saved-filter):hover,
.mail-saved-filter-row > button:not(.mail-saved-filter):focus-visible,
.mail-sidebar-small-button:hover,
.mail-sidebar-small-button:focus-visible,
.mail-rule-item button:hover,
.mail-rule-item button:focus-visible,
.mail-label-badge button:hover,
.mail-label-badge button:focus-visible,
.mail-detail-label-tools-head button:hover,
.mail-detail-label-tools-head button:focus-visible,
.mail-label-add-button:hover,
.mail-label-add-button:focus-visible {
  border-color: rgba(179, 255, 0, 0.62);
  background: rgba(179, 255, 0, 0.1);
  color: #fff;
  outline: none;
}

.mail-sidebar-label-actions button:disabled,
.mail-saved-filter-row > button:not(.mail-saved-filter):disabled,
.mail-sidebar-small-button:disabled,
.mail-rule-item button:disabled,
.mail-detail-label-tools-head button:disabled,
.mail-label-add-button:disabled {
  opacity: 0.52;
  cursor: not-allowed;
}

.mail-sidebar-empty,
.mail-sidebar-error {
  margin: 0;
  color: rgba(255, 255, 255, 0.46);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.35;
}

.mail-sidebar-error {
  color: #ffb7aa;
}

.mail-rule-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px;
  gap: 6px;
  align-items: center;
  min-height: 40px;
  padding: 6px 0 6px 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.mail-rule-item span {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.mail-rule-item strong,
.mail-rule-item small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mail-rule-item strong {
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  font-weight: 740;
}

.mail-rule-item small {
  color: rgba(255, 255, 255, 0.48);
  font-size: 11px;
  font-weight: 650;
}

.mail-rule-item button {
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 50%;
}

.mail-message {
  width: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 72px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(34, 34, 34, 0.8);
  color: inherit;
  font: inherit;
  text-align: left;
}

.mail-message.is-unread {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(34, 34, 34, 0.72);
}

.mail-message.is-active {
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(34, 34, 34, 0.72);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.mail-message.is-selected {
  border-color: rgba(179, 255, 0, 0.46);
  background: rgba(179, 255, 0, 0.08);
}

.mail-message:hover,
.mail-message:focus-within {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(34, 34, 34, 0.72);
}

.mail-message:focus-within {
  outline: 2px solid rgba(255, 255, 255, 0.34);
  outline-offset: 2px;
}

.mail-message--placeholder {
  grid-template-columns: minmax(0, 1fr);
}

.mail-message-select {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  min-height: 24px;
}

.mail-message-open {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-width: 0;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.mail-message-open:focus-visible {
  outline: none;
}

.mail-smart-group {
  display: grid;
  gap: 8px;
}

.mail-smart-group + .mail-smart-group {
  margin-top: 6px;
}

.mail-smart-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 24px;
  padding: 0 4px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 11px;
  font-weight: 780;
  letter-spacing: 0;
  text-transform: uppercase;
}

.mail-smart-group-head small {
  color: rgba(255, 255, 255, 0.42);
  font-size: 11px;
  font-weight: 760;
}

.mail-smart-group-list {
  display: grid;
  gap: 8px;
}

.mail-message-main {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.mail-message-sender,
.mail-message-email,
.mail-message-date {
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  font-weight: 650;
}

.mail-message-sender,
.mail-message-subject,
.mail-message-email {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mail-message-subject {
  color: rgba(255, 255, 255, 0.94);
  font-size: 15px;
  font-weight: 760;
}

.mail-message-date {
  align-self: start;
  white-space: nowrap;
}

.mail-detail {
  min-height: 420px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 18px;
  background: rgba(34, 34, 34, 0.72);
  color: rgba(255, 255, 255, 0.92);
  transition: opacity 120ms ease;
}

.mail-detail.is-loading {
  opacity: 0.72;
  pointer-events: none;
}

@media (min-width: 1101px) {

  .mail-view:not(.is-hidden) .mail-detail {
    position: sticky;
    top: 96px;
    height: auto;
    max-height: none;
    overflow: visible;
  }

  .app-shell.is-mail-view-active.has-mail-detail-actions .mail-detail {
    padding-bottom: 138px;
  }

  .mail-detail-actions--dock {
    position: fixed;
    bottom: 18px;
    z-index: 80;
    box-sizing: border-box;
    margin-top: 0;
    padding: 14px 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: rgba(34, 34, 34, 0.96);
    box-shadow: 0 -18px 48px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(10px);
  }}

.mail-detail-empty,
.mail-detail-loading,
.mail-detail-error {
  display: grid;
  place-items: center;
  min-height: 360px;
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
  font-weight: 650;
  text-align: center;
}

.mail-detail-error {
  color: #ffb7aa;
}

.mail-detail-header {
  display: grid;
  gap: 8px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mail-detail-subject {
  margin: 0;
  color: rgba(255, 255, 255, 0.96);
  font-size: 20px;
  font-weight: 780;
  line-height: 1.25;
}

.mail-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  font-weight: 650;
}

.mail-label-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.mail-message .mail-label-badges {
  margin-top: 4px;
}

.mail-label-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid color-mix(in srgb, var(--mail-label-color, #8fd14f) 58%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--mail-label-color, #8fd14f) 16%, transparent);
  color: rgba(255, 255, 255, 0.92);
  font-size: 11px;
  font-weight: 760;
}

.mail-label-badge span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mail-label-badge button {
  width: 18px;
  min-height: 18px;
  height: 18px;
  padding: 0;
  border-radius: 50%;
  font-size: 13px;
  line-height: 1;
}

.mail-detail-label-tools {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.mail-detail-label-tools-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  font-weight: 760;
}

.mail-detail-label-tools-head div,
.mail-detail-label-add-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mail-detail-label-tools-head button {
  padding: 0 10px;
}

.mail-detail-label-current {
  min-height: 24px;
}

.mail-detail-label-empty {
  color: rgba(255, 255, 255, 0.46);
  font-size: 12px;
  font-weight: 650;
}

.mail-label-add-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
}

.mail-conversation {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.mail-conversation-item {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.mail-conversation-item.is-selected {
  border-color: rgba(179, 255, 0, 0.42);
  background: rgba(179, 255, 0, 0.055);
}

.mail-conversation-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.mail-conversation-author {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.mail-conversation-author strong,
.mail-conversation-author span,
.mail-conversation-meta,
.mail-conversation-subject {
  overflow-wrap: anywhere;
}

.mail-conversation-author strong {
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  font-weight: 760;
}

.mail-conversation-author span,
.mail-conversation-meta,
.mail-conversation-empty {
  color: rgba(255, 255, 255, 0.54);
  font-size: 12px;
  font-weight: 650;
}

.mail-conversation-meta {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  text-align: right;
}

.mail-conversation-selected {
  color: #c7ff4a;
}

.mail-conversation-subject {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 13px;
  font-weight: 740;
  line-height: 1.35;
}

.mail-conversation-empty {
  margin: 0;
}

.mail-conversation-item .mail-detail-body {
  margin-top: 0;
}

.mail-conversation-item .mail-detail-body--html {
  padding: 16px;
}

.mail-conversation-item .mail-detail-attachments {
  margin-top: 4px;
}

.mail-detail-body {
  margin: 18px 0 0;
  max-height: none;
  overflow: visible;
  overflow-wrap: anywhere;
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.55;
}

.mail-detail-body--plain {
  white-space: pre-wrap;
}

.mail-detail-body--html {
  max-height: none;
  padding: 22px;
  border-radius: 8px;
  background: #fff;
  color: #202124;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
  white-space: normal;
  overflow-wrap: normal;
}

.mail-detail-body--html * {
  box-sizing: border-box;
  max-width: 100%;
}

.mail-detail-body--html p {
  margin: 0 0 12px;
}

.mail-detail-body--html blockquote {
  margin: 14px 0 0 14px;
  padding-left: 12px;
  border-left: 2px solid #dadce0;
}

.mail-detail-body--html table {
  width: auto;
  max-width: 100% !important;
  border-collapse: separate;
  border-spacing: 0;
  color: inherit;
  background: transparent;
}

.mail-detail-body--html table[width="100%"] {
  width: 100% !important;
}

.mail-detail-body--html table[align="center"] {
  margin-left: auto;
  margin-right: auto;
}

.mail-detail-body--html table[align="right"] {
  margin-left: auto;
  margin-right: 0;
}

.mail-detail-body--html table[align="left"] {
  margin-left: 0;
  margin-right: auto;
}

.mail-detail-body--html th,
.mail-detail-body--html td {
  max-width: 100%;
  vertical-align: top;
}

.mail-detail-body--html img {
  max-width: 100%;
  height: auto;
  border: 0;
  vertical-align: middle;
}

.mail-detail-body--html table[border]:not([border="0"]) {
  border-collapse: collapse;
}

.mail-detail-body--html table[border]:not([border="0"]) th,
.mail-detail-body--html table[border]:not([border="0"]) td {
  padding: 6px 8px;
  border: 1px solid #cfcfcf;
}

.mail-detail-body--html a {
  color: #0b57d0;
}

.mail-detail-attachments {
  display: grid;
  gap: 6px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mail-detail-attachments-title,
.mail-detail-attachment {
  color: rgba(255, 255, 255, 0.64);
  font-size: 12px;
  font-weight: 650;
}

.mail-detail-attachment {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  align-items: center;
  gap: 4px;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  text-decoration: none;
}

.mail-detail-attachment:hover,
.mail-detail-attachment:focus-visible {
  border-color: rgba(179, 255, 0, 0.58);
  color: rgba(255, 255, 255, 0.92);
  outline: none;
}

.mail-detail-attachment span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mail-detail-attachment small {
  color: rgba(255, 255, 255, 0.48);
  font: inherit;
}

.mail-detail-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}

.mail-detail-actions--inline-hidden {
  display: none;
}

.mail-detail-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.9);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.mail-detail-action:hover,
.mail-detail-action:focus-visible {
  border-color: rgba(179, 255, 0, 0.82);
  background: rgba(179, 255, 0, 0.12);
  color: #fff;
}

.mail-detail-action--danger {
  border-color: rgba(255, 116, 93, 0.48);
  color: #ffd5cf;
}

.mail-detail-action--danger:hover,
.mail-detail-action--danger:focus-visible {
  border-color: rgba(255, 116, 93, 0.86);
  background: rgba(255, 116, 93, 0.12);
}

.mail-detail-action.is-disabled {
  opacity: 0.44;
  pointer-events: none;
}

.mail-detail-action:disabled {
  cursor: default;
}

.mail-detail-actions-separator {
  width: 1px;
  height: 24px;
  background: rgba(255, 255, 255, 0.14);
}

.mail-action-status {
  flex-basis: 100%;
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  font-weight: 650;
}

.mail-action-status.is-success {
  color: #c7ff4a;
}

.mail-action-status.is-error {
  color: #ffb7aa;
}

.mail-compose-form {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(20, 20, 20, 0.34);
}

.mail-compose-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mail-compose-head h5 {
  margin: 0;
  color: rgba(255, 255, 255, 0.94);
  font-size: 15px;
  font-weight: 760;
}

.mail-compose-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.82);
  font: inherit;
  font-size: 18px;
  cursor: pointer;
}

.mail-compose-field {
  display: grid;
  gap: 6px;
}

.mail-compose-field span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  font-weight: 700;
}

.mail-compose-field input,
.mail-compose-field textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.92);
  font: inherit;
  font-size: 14px;
  line-height: 1.45;
}

.mail-compose-field input {
  min-height: 38px;
  padding: 0 12px;
}

.mail-compose-field textarea {
  min-height: 150px;
  padding: 10px 12px;
  resize: vertical;
}

.mail-compose-field input:focus,
.mail-compose-field textarea:focus {
  outline: none;
  border-color: rgba(179, 255, 0, 0.72);
}

.mail-compose-field input:disabled,
.mail-compose-field textarea:disabled {
  opacity: 0.68;
}

.mail-compose-address-wrap {
  position: relative;
}

.mail-compose-suggest {
  position: absolute;
  z-index: 18;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  display: grid;
  gap: 4px;
  max-height: 236px;
  overflow: auto;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(20, 20, 20, 0.98);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.36);
}

.mail-compose-suggest-item {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: 10px;
  min-height: 34px;
  width: 100%;
  padding: 0 9px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: rgba(255, 255, 255, 0.86);
  font: inherit;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}

.mail-compose-suggest-item:hover,
.mail-compose-suggest-item:focus-visible,
.mail-compose-suggest-item.is-active {
  background: rgba(179, 255, 0, 0.14);
  color: rgba(255, 255, 255, 0.96);
  outline: none;
}

.mail-compose-suggest-item span,
.mail-compose-suggest-item small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mail-compose-field .mail-compose-suggest-item span {
  color: inherit;
  font-size: inherit;
  font-weight: 750;
}

.mail-compose-suggest-item small {
  color: rgba(255, 255, 255, 0.54);
  font: inherit;
  font-size: 12px;
}

.mail-compose-attachments {
  display: grid;
  gap: 8px;
}

.mail-compose-file-button {
  position: relative;
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.mail-compose-file-button:hover,
.mail-compose-file-button:focus-within {
  border-color: rgba(179, 255, 0, 0.58);
}

.mail-compose-file-button input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.mail-compose-attachment-hint {
  color: rgba(255, 255, 255, 0.48);
  font-size: 12px;
  font-weight: 650;
}

.mail-compose-attachment-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mail-compose-attachment {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 0 8px 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  font-weight: 650;
}

.mail-compose-attachment > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mail-compose-attachment small {
  flex: 0 0 auto;
  color: rgba(255, 255, 255, 0.48);
  font: inherit;
}

.mail-compose-attachment button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.72);
  font: inherit;
  cursor: pointer;
}

.mail-compose-attachment button:hover,
.mail-compose-attachment button:focus-visible {
  background: rgba(255, 116, 93, 0.18);
  color: #ffd5cf;
  outline: none;
}

.mail-compose-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mail-compose-submit {
  border-color: rgba(179, 255, 0, 0.84);
}

.mail-compose-status {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 650;
}

.mail-compose-status.is-success {
  color: #c7ff4a;
}

.mail-compose-status.is-error {
  color: #ffb7aa;
}

@media (max-width: 1100px) {
  .mail-content {
    grid-template-columns: minmax(0, 1fr);
  }

  .mail-folder-panel {
    min-height: 0;
  }

  .mail-detail {
    min-height: 320px;
  }}

@media (max-width: 900px) {
  .mail-view {
    min-width: 0;
    overflow-x: hidden;
    padding-left: 12px;
    padding-right: 12px;
  }

  .mail-panel-title {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .mail-panel-title p {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .mail-panel-actions {
    width: 100%;
  }

  .mail-compose-open-button,
  .mail-refresh-button {
    flex: 1 1 130px;
    inline-size: auto;
  }

  .mail-content,
  .mail-message-list,
  .mail-bulk-toolbar,
  .mail-message,
  .mail-message-open {
    max-width: 100%;
    min-width: 0;
  }

  .mail-content,
  .mail-message-list {
    width: calc(100vw - 64px);
    max-width: calc(100vw - 64px);
  }

  .mail-bulk-toolbar {
    align-items: stretch;
  }

  .mail-bulk-actions {
    flex: 1 1 100%;
  }

  .mail-bulk-action,
  .mail-bulk-clear,
  .mail-bulk-label-select {
    flex: 1 1 auto;
    min-width: 0;
  }

  .mail-bulk-label-select {
    max-width: none;
  }

  .mail-message-open {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .mail-message-date {
    justify-self: start;
  }}

/* codex-mail-client-dark-design-system-20260524 */
@media (min-width: 901px) {
  body:has(#mailView:not(.is-hidden)) .mail-view {
    background: #222;
  }

  body:has(#mailView:not(.is-hidden)) .mail-empty-panel {
    min-height: calc(100vh - 172px);
    border-color: rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    background: #333;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.26);
  }

  body:has(#mailView:not(.is-hidden)) .mail-empty-panel .panel-title {
    color: rgba(255, 255, 255, 0.92);
  }

  body:has(#mailView:not(.is-hidden)) .mail-empty-surface {
    min-height: 420px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }}

@media (max-width: 900px) {
  .panel-title.mail-panel-title {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .panel-title.mail-panel-title .mail-panel-actions {
    width: 100%;
    justify-self: stretch;
  }}