:root {
  --blue: #0b3a5b;
  --blue-2: #125f8c;
  --blue-3: #1f7fb2;
  --cyan: #69c7b1;
  --gold: #f4b63f;
  --bg: #f4f8fb;
  --bg-2: #eef6fb;
  --text: #17212b;
  --muted: #6b7a8a;
  --line: #dfeaf2;
  --card: #ffffff;
  --danger: #d84c4c;
  --success: #1f8a5b;
  --shadow: 0 18px 50px rgba(11, 58, 91, 0.08);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(105, 199, 177, 0.18), transparent 34rem),
    radial-gradient(circle at top right, rgba(31, 127, 178, 0.15), transparent 30rem),
    var(--bg);
  color: var(--text);
}

body.sidebar-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

.topbar {
  height: 68px;
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 24px;
  box-shadow: 0 12px 35px rgba(11, 58, 91, 0.18);
  position: sticky;
  top: 0;
  z-index: 900;
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  font-weight: 950;
  font-size: 20px;
  letter-spacing: -0.03em;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 13px;
  background: #fff;
  object-fit: contain;
}

.topbar nav {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 14px;
}

.topbar nav a {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 800;
}

.logout {
  background: rgba(255, 255, 255, 0.14);
  padding: 9px 13px;
  border-radius: 13px;
  transition: background 0.15s ease, transform 0.15s ease;
}

.logout:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}

.layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  min-height: calc(100vh - 68px);
}

.sidebar {
  padding: 22px 20px;
  background: rgba(255, 255, 255, 0.96);
  border-right: 1px solid var(--line);
  overflow: auto;
  box-shadow: 10px 0 35px rgba(11, 58, 91, 0.04);
}

.sidebar-toggle,
.sidebar-backdrop,
.sidebar-mobile-head {
  display: none;
}

.compose-mini,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 10px 15px;
  border-radius: 15px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.compose-mini:hover,
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(11, 58, 91, 0.09);
}

.compose-mini {
  width: 100%;
  background: linear-gradient(135deg, var(--gold), #ffd978);
  border-color: transparent;
  color: #302407;
  margin-bottom: 18px;
}

.btn.primary {
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  color: #fff;
  border-color: var(--blue);
}

.btn.danger {
  color: #fff;
  background: var(--danger);
  border-color: var(--danger);
}

.btn.wide {
  width: 100%;
  border: none;
}

.side-title {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 950;
  letter-spacing: 0.08em;
  margin: 18px 0 8px;
}

.side-title.small {
  margin-top: 20px;
}

.box-select-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.box-select-label {
  font-size: 12px;
  font-weight: 900;
  color: #557087;
}

.box-select {
  width: 100%;
  border: 1px solid rgba(11, 58, 91, 0.16);
  background: #fff;
  color: #17384f;
  border-radius: 15px;
  padding: 12px 13px;
  font-weight: 850;
  outline: none;
  cursor: pointer;
}

.box-select:focus {
  border-color: var(--blue-3);
  box-shadow: 0 0 0 4px rgba(31, 127, 178, 0.12);
}

.selected-box-card {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 13px;
  border-radius: 17px;
  background:
    linear-gradient(135deg, rgba(18, 95, 140, 0.11), rgba(105, 199, 177, 0.12)),
    #f8fcfe;
  border: 1px solid rgba(11, 58, 91, 0.10);
}

.selected-box-card strong {
  color: var(--blue);
  font-size: 14px;
}

.selected-box-card span {
  color: var(--muted);
  font-size: 12px;
  word-break: break-word;
}

.folder-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.box-link {
  display: none !important;
}

.folder-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 15px;
  padding: 12px 13px;
  margin: 0;
  color: #24313d;
  font-weight: 800;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.folder-link:hover {
  background: #f0f7fb;
  color: var(--blue);
  transform: translateX(2px);
}

.folder-link.active {
  background: linear-gradient(135deg, #e7f4fb, #edf9f5);
  color: var(--blue);
  font-weight: 950;
  box-shadow: inset 4px 0 0 var(--blue-2);
}

.folder-link.small {
  font-size: 13px;
  color: var(--muted);
  font-weight: 750;
}

.folder-link span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.main {
  padding: 28px;
  overflow: auto;
  min-width: 0;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.toolbar h1 {
  margin: 0;
  color: var(--blue);
  font-size: 30px;
  letter-spacing: -0.04em;
}

.muted {
  color: var(--muted);
  margin: 0.25rem 0;
}

.toolbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search {
  display: flex;
  gap: 8px;
}

.search input,
.compose-card input,
.compose-card textarea,
.login-card input {
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 12px 14px;
  background: #fff;
  color: var(--text);
  outline: none;
}

.search input:focus,
.compose-card input:focus,
.compose-card textarea:focus,
.login-card input:focus {
  border-color: var(--blue-3);
  box-shadow: 0 0 0 4px rgba(31, 127, 178, 0.10);
}

.search button {
  border: 0;
  background: linear-gradient(135deg, var(--cyan), #8bddcc);
  color: #073c31;
  font-weight: 950;
  border-radius: 15px;
  padding: 0 15px;
  cursor: pointer;
}

.alert {
  padding: 13px 15px;
  border-radius: 15px;
  margin: 12px 0;
  font-weight: 850;
}

.alert.ok {
  background: #e9f8f2;
  color: #176647;
  border: 1px solid rgba(31, 138, 91, 0.12);
}

.alert.bad {
  background: #fdeaea;
  color: #8a2929;
  border: 1px solid rgba(216, 76, 76, 0.14);
}

.list-card,
.message-card,
.compose-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.mail-row {
  display: grid;
  grid-template-columns: 16px minmax(140px, 240px) 1fr 90px;
  gap: 12px;
  align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  transition: background 0.15s ease;
}

.mail-row:hover {
  background: #f8fbfd;
}

.mail-row.unread {
  background: #fffdf5;
}

.mail-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #d7e0e8;
}

.mail-row.unread .mail-dot {
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(244, 182, 63, 0.16);
}

.mail-from {
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mail-content {
  min-width: 0;
}

.mail-content strong,
.mail-content span {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mail-content strong {
  color: #1f2b36;
}

.mail-content span {
  color: var(--muted);
  font-size: 13px;
  margin-top: 3px;
}

.mail-date {
  font-size: 12px;
  color: var(--muted);
  text-align: right;
}

.empty {
  padding: 52px 20px;
  text-align: center;
  color: var(--muted);
}

.empty strong {
  display: block;
  color: var(--blue);
  font-size: 22px;
  margin-bottom: 8px;
}

.pager {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 18px;
}

.message-card {
  padding: 26px;
}

.message-card h1 {
  margin-top: 0;
  color: var(--blue);
  letter-spacing: -0.03em;
}

.message-meta {
  background: #f6fafc;
  border: 1px solid var(--line);
  border-radius: 17px;
  padding: 14px;
  margin: 14px 0;
  color: #2e3b48;
}

.message-body {
  line-height: 1.65;
}

.message-body pre {
  white-space: pre-wrap;
  font-family: inherit;
}

.html-frame {
  width: 100%;
  min-height: 620px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.attachments {
  margin: 12px 0;
}

.chip {
  display: inline-block;
  background: #edf7f4;
  color: #0d644f;
  border-radius: 999px;
  padding: 8px 12px;
  margin: 6px 6px 0 0;
  font-weight: 850;
}

.compose-card {
  padding: 24px;
  display: grid;
  gap: 11px;
}

.compose-card label,
.login-card label {
  font-weight: 900;
  color: var(--blue);
}

.compose-card textarea {
  resize: vertical;
  min-height: 260px;
}

.compose-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 8px;
}

.public {
  background:
    radial-gradient(circle at top left, rgba(105, 199, 177, 0.20), transparent 28rem),
    linear-gradient(135deg, #eef8fb, #f9fbfd);
}

.login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
}

.login-card {
  width: min(440px, 100%);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 32px;
  box-shadow: 0 25px 70px rgba(11, 58, 91, 0.14);
  display: grid;
  gap: 12px;
}

.login-logo {
  width: 62px;
  border-radius: 18px;
}

.login-card h1 {
  margin: 0;
  color: var(--blue);
  letter-spacing: -0.04em;
}

.login-card p {
  color: var(--muted);
  margin: 0 0 10px;
}

/* =========================================================
   Responsive tablette
========================================================= */

@media (max-width: 1050px) {
  .layout {
    grid-template-columns: 280px 1fr;
  }

  .main {
    padding: 22px;
  }

  .mail-row {
    grid-template-columns: 14px minmax(120px, 190px) 1fr 78px;
  }
}

/* =========================================================
   Responsive mobile : sidebar cachée + bouton
========================================================= */

@media (max-width: 900px) {
  .topbar {
    height: 62px;
    padding: 0 14px 0 70px;
  }

  .brand {
    font-size: 17px;
  }

  .brand img {
    width: 34px;
    height: 34px;
  }

  .topbar nav {
    gap: 8px;
    font-size: 13px;
  }

  .layout {
    display: block;
    min-height: calc(100vh - 62px);
  }

  .sidebar-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 10px;
    left: 14px;
    z-index: 1200;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--blue), var(--blue-2));
    color: #fff;
    font-size: 22px;
    font-weight: 950;
    box-shadow: 0 12px 28px rgba(11, 58, 91, 0.25);
    cursor: pointer;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1202;
    width: min(88vw, 340px);
    height: 100vh;
    padding: 18px;
    overflow-y: auto;
    transform: translateX(-105%);
    transition: transform 0.22s ease;
    border-right: 1px solid var(--line);
    box-shadow: 22px 0 60px rgba(10, 35, 52, 0.22);
  }

  body.sidebar-open .sidebar {
    transform: translateX(0);
  }

  .sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1201;
    background: rgba(8, 24, 36, 0.38);
    backdrop-filter: blur(2px);
  }

  body.sidebar-open .sidebar-backdrop {
    display: block;
  }

  .sidebar-mobile-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(15, 63, 95, 0.10);
  }

  .sidebar-mobile-head strong {
    color: var(--blue);
    font-size: 16px;
  }

  .sidebar-mobile-head button {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 12px;
    background: rgba(15, 63, 95, 0.08);
    color: var(--blue);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
  }

  .main {
    width: 100%;
    padding: 18px 16px 28px;
  }

  .toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .toolbar h1 {
    font-size: 26px;
  }

  .toolbar-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .search {
    width: 100%;
  }

  .search input {
    width: 100%;
    min-width: 0;
  }

  .search button,
  .toolbar-actions .btn {
    min-height: 44px;
  }

  .mail-row {
    grid-template-columns: 10px 1fr auto;
    gap: 10px;
    padding: 14px;
  }

  .mail-from {
    display: block;
    grid-column: 2 / 4;
    font-size: 14px;
  }

  .mail-content {
    grid-column: 2 / 4;
  }

  .mail-date {
    display: block;
    grid-column: 3 / 4;
    grid-row: 1;
    font-size: 12px;
  }

  .message-card,
  .compose-card {
    border-radius: 20px;
    padding: 18px;
  }

  .html-frame {
    min-height: 520px;
  }
}

/* =========================================================
   Très petits écrans
========================================================= */

@media (max-width: 560px) {
  .topbar nav a:not(.logout) {
    display: none;
  }

  .main {
    padding-left: 12px;
    padding-right: 12px;
  }

  .sidebar {
    width: 91vw;
  }

  .toolbar h1 {
    font-size: 24px;
  }

  .selected-box-card {
    padding: 11px;
  }

  .box-select {
    font-size: 14px;
  }

  .compose-mini {
    width: 100%;
    text-align: center;
  }

  .list-card {
    border-radius: 18px;
  }

  .mail-row {
    padding: 13px 12px;
  }

  .mail-content strong {
    font-size: 14px;
  }

  .mail-content span {
    font-size: 12px;
  }

  .empty {
    padding: 40px 14px;
  }

  .login-card {
    border-radius: 24px;
    padding: 24px;
  }

  .compose-actions {
    flex-direction: column;
  }

  .compose-actions .btn {
    width: 100%;
  }
}

/* =========================================================
   Desktop strict : aucun bouton mobile visible
========================================================= */

@media (min-width: 901px) {
  .sidebar-toggle,
  .sidebar-backdrop,
  .sidebar-mobile-head {
    display: none !important;
  }

  body.sidebar-open {
    overflow: auto;
  }

  .sidebar {
    position: static;
    transform: none !important;
    width: auto;
    height: auto;
  }
}

.pwa-install-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 12px;
  padding: 9px 12px;
  background: rgba(255,255,255,.14);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.pwa-install-btn:hover {
  background: rgba(255,255,255,.22);
}

.pwa-install-btn:disabled {
  opacity: .65;
  cursor: default;
}

/* =========================================================
   Rich editor — rédaction email
========================================================= */

.rich-editor {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  overflow: hidden;
}

.rich-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px;
  background: linear-gradient(135deg, #f6fafc, #eef6fb);
  border-bottom: 1px solid var(--line);
}

.rich-toolbar button {
  border: 1px solid rgba(11, 58, 91, 0.12);
  background: #fff;
  color: var(--blue);
  border-radius: 11px;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.rich-toolbar button:hover {
  background: #eaf5fb;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(11, 58, 91, 0.08);
}

.rich-toolbar button:active {
  transform: translateY(0);
}

.rich-separator {
  width: 1px;
  min-height: 30px;
  background: var(--line);
  margin: 0 3px;
}

.rich-editor-area {
  min-height: 360px;
  padding: 18px;
  outline: none;
  line-height: 1.65;
  color: var(--text);
  background: #fff;
  overflow: auto;
}

.rich-editor-area:focus {
  box-shadow: inset 0 0 0 3px rgba(31, 127, 178, 0.08);
}

.rich-editor-area p {
  margin: 0 0 10px;
}

.rich-editor-area a {
  color: var(--blue-2);
  text-decoration: underline;
  font-weight: 700;
}

.rich-editor-area blockquote {
  border-left: 4px solid var(--line);
  margin: 16px 0;
  padding: 10px 0 10px 14px;
  color: #516272;
  background: #f8fbfd;
  border-radius: 0 14px 14px 0;
}

.rich-editor-area table,
.mail-table {
  border-collapse: collapse;
  width: 100%;
  margin: 12px 0;
}

.rich-editor-area td,
.rich-editor-area th,
.mail-table td,
.mail-table th {
  border: 1px solid var(--line);
  padding: 8px;
  min-width: 80px;
}

.rich-editor-area th,
.mail-table th {
  background: #f1f7fb;
  color: var(--blue);
  font-weight: 900;
}

.svs-signature {
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid #dfeaf2;
  color: #24313d;
  font-size: 14px;
  line-height: 1.5;
}

.svs-signature strong {
  color: var(--blue);
  font-size: 15px;
}

.svs-signature a {
  color: var(--blue-2);
  font-weight: 800;
  text-decoration: none;
}

.svs-signature .svs-signature-muted {
  color: var(--muted);
  font-size: 12px;
}

.svs-signature .svs-signature-badge {
  display: inline-block;
  margin-top: 7px;
  padding: 5px 9px;
  border-radius: 999px;
  background: #eaf5fb;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

/* Mobile */
@media (max-width: 900px) {
  .rich-toolbar {
    gap: 5px;
    padding: 8px;
  }

  .rich-toolbar button {
    padding: 8px 9px;
    font-size: 12px;
  }

  .rich-separator {
    display: none;
  }

  .rich-editor-area {
    min-height: 300px;
    padding: 14px;
  }
}

@media (max-width: 560px) {
  .rich-toolbar {
    max-height: 160px;
    overflow-y: auto;
  }

  .rich-editor-area {
    min-height: 260px;
  }
}

/* =========================================================
   Sidebar bottom actions + bulk mail actions
========================================================= */

.brand-text-only img {
  display: none;
}

.topbar-user {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 800;
}

.sidebar {
  padding: 0;
}

.sidebar-inner {
  min-height: calc(100vh - 68px);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}

.sidebar-bottom {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
}

.sidebar-action-btn {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(11, 58, 91, 0.12);
  border-radius: 14px;
  background: #f4f8fb;
  color: var(--blue);
  font-weight: 900;
  cursor: pointer;
  padding: 10px 12px;
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.sidebar-action-btn:hover {
  background: #eaf5fb;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(11, 58, 91, 0.08);
}

.sidebar-action-btn:disabled {
  opacity: 0.65;
  cursor: default;
  transform: none;
  box-shadow: none;
}

.bulk-mail-form {
  display: block;
}

.bulk-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}

.bulk-check-all {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--blue);
  font-weight: 900;
  cursor: pointer;
}

.bulk-check-all input,
.mail-checkbox {
  width: 18px;
  height: 18px;
  accent-color: var(--blue-2);
  cursor: pointer;
}

.bulk-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bulk-actions select {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  font-weight: 800;
  padding: 0 12px;
  outline: none;
}

.bulk-actions select:focus {
  border-color: var(--blue-3);
  box-shadow: 0 0 0 4px rgba(31, 127, 178, 0.10);
}

.mail-row-wrap {
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: stretch;
  border-bottom: 1px solid var(--line);
  transition: background 0.15s ease;
}

.mail-row-wrap:last-child {
  border-bottom: 0;
}

.mail-row-wrap.selected {
  background: #eaf5fb;
}

.mail-row-wrap .mail-row {
  border-bottom: 0;
}

.mail-select {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-right: 1px solid var(--line);
  background: rgba(244, 248, 251, 0.55);
}

.mail-select:hover {
  background: #eef6fb;
}

/* Le bouton PWA ancien ne doit plus s'afficher dans le header */
.topbar .pwa-install-btn {
  display: none !important;
}

/* =========================================================
   Responsive bulk actions
========================================================= */

@media (max-width: 900px) {
  .sidebar-inner {
    min-height: 100vh;
    padding: 0;
  }

  .sidebar-bottom {
    margin-top: 20px;
    padding-bottom: 10px;
  }

  .bulk-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .bulk-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr auto;
  }

  .bulk-actions select {
    width: 100%;
  }

  .mail-row-wrap {
    grid-template-columns: 42px 1fr;
  }

  .mail-row-wrap .mail-row {
    grid-template-columns: 10px 1fr auto;
  }
}

@media (max-width: 560px) {
  .topbar-user {
    display: none;
  }

  .bulk-actions {
    grid-template-columns: 1fr;
  }

  .bulk-actions .btn {
    width: 100%;
  }

  .mail-row-wrap {
    grid-template-columns: 38px 1fr;
  }

  .mail-select {
    align-items: flex-start;
    padding-top: 16px;
  }
}