@font-face {
  font-family: "Inter UI";
  src: url("/fonts/inter-cyrillic.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Inter UI";
  src: url("/fonts/inter-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
:root {
  --font-ui: "Inter UI", system-ui, -apple-system, "Segoe UI", sans-serif;
  --text-muted: #465061;
  --type-2xs: 10px;
  --type-xs: 11px;
  --type-sm: 12px;
  --type-meta: 13px;
  --type-table: 14px;
  --type-body: 15px;
  --type-subtitle: 17px;
  --type-h3: 16px;
  --type-h2: 20px;
  --type-h1: 28px;
  --type-figure: 24px;
  --type-metric: 30px;
  --type-display: 42px;
  font-family: var(--font-ui);
  color: #252638;
  background: #f8f9fc;
  font-size: var(--type-body);
  line-height: 1.5;
  --accent: #535ff4;
  --line: #e6e8f0;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
  border: 1px solid var(--line);
  background: #fff;
  color: inherit;
  padding: 10px 16px;
  border-radius: 9px;
}
.ui-icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  flex: 0 0 auto;
  background: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}
.ui-icon-bullhorn {
  --icon: url("/icons/bullhorn.svg");
}
.ui-icon-inbox {
  --icon: url("/icons/inbox.svg");
}
.ui-icon-chart-bar {
  --icon: url("/icons/chart-bar.svg");
}
.ui-icon-envelope {
  --icon: url("/icons/envelope.svg");
}
.ui-icon-right-from-bracket {
  --icon: url("/icons/right-from-bracket.svg");
}
.ui-icon-plus {
  --icon: url("/icons/plus.svg");
}
.ui-icon-file-export {
  --icon: url("/icons/file-export.svg");
}
.ui-icon-signature {
  --icon: url("/icons/signature.svg");
}
.ui-icon-gear {
  --icon: url("/icons/gear.svg");
}
.ui-icon-circle-check {
  --icon: url("/icons/circle-check.svg");
}
.ui-icon-address-book {
  --icon: url("/icons/address-book.svg");
}
.ui-icon-paper-plane {
  --icon: url("/icons/paper-plane.svg");
}
.ui-icon-comments {
  --icon: url("/icons/comments.svg");
}
.ui-icon-eye {
  --icon: url("/icons/eye.svg");
}
.ui-icon-triangle-exclamation {
  --icon: url("/icons/triangle-exclamation.svg");
}
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
button:hover {
  background: #f0f2ff;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}
button.danger {
  color: #b63a46;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #a0a7ff;
  outline-offset: 2px;
}
a {
  color: var(--accent);
}
.shell {
  display: grid;
  grid-template-columns: 230px 1fr;
  min-height: 100vh;
}
.sidebar {
  background: white;
  border-right: 1px solid var(--line);
  padding: 28px 20px;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.logo {
  font-size: var(--type-h1);
  font-weight: 750;
  color: var(--accent);
  letter-spacing: -0.055em;
  line-height: 1.1;
  margin-bottom: 4px;
}
.subtle {
  color: var(--text-muted);
  font-size: var(--type-table);
  line-height: 1.5;
}
.sidebar nav {
  margin-top: 30px;
  display: grid;
  gap: 8px;
}
.sidebar nav button {
  display: flex;
  align-items: center;
  gap: 11px;
  text-align: left;
  border: 0;
  padding: 13px 15px;
}
.sidebar nav .ui-icon {
  color: #667087;
  font-size: 16px;
}
.sidebar nav button.active {
  color: var(--accent);
  background: #eef0ff;
}
.sidebar nav button.active .ui-icon {
  color: var(--accent);
}
.sidebar footer {
  margin-top: auto;
  font-size: var(--type-table);
  line-height: 1.5;
  color: var(--text-muted);
}
.sidebar footer button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: #353d50;
}
.content {
  padding: 36px 42px;
  min-width: 0;
  max-width: 1700px;
  width: 100%;
  margin: auto;
}
.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
}
.campaign-filter {
  position: relative;
  width: min(370px, 100%);
  flex: 0 1 370px;
}
.campaign-filter-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border-color: #dce0eb;
  border-radius: 12px;
  text-align: left;
}
.campaign-filter-trigger > span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.campaign-filter-trigger:hover,
.campaign-filter-trigger[aria-expanded="true"] {
  background: #fff;
  border-color: #aeb7d4;
}
.filter-chevron {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-right: 2px solid #4b5570;
  border-bottom: 2px solid #4b5570;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.15s ease;
}
.campaign-filter-trigger[aria-expanded="true"] .filter-chevron {
  transform: translateY(2px) rotate(225deg);
}
.campaign-filter-options {
  position: absolute;
  z-index: 30;
  top: calc(100% + 6px);
  left: 0;
  width: 100%;
  max-height: 280px;
  overflow-y: auto;
  padding: 6px;
  border: 1px solid #dce0eb;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 14px 30px #29304a1a;
}
.campaign-filter-options[hidden] {
  display: none;
}
.campaign-filter-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 8px;
  text-align: left;
  line-height: 1.35;
}
.campaign-filter-option[aria-selected="true"] {
  background: #eef0ff;
  color: #3542b5;
  font-weight: 600;
}
.campaign-filter-option[aria-selected="true"]::after {
  content: "✓";
  flex: 0 0 auto;
}
.campaign-filter-option:hover,
.campaign-filter-option:focus-visible {
  background: #f1f3ff;
}
h1 {
  font-size: var(--type-h1);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.2;
  margin: 0;
}
h2 {
  font-size: var(--type-h2);
  font-weight: 650;
  letter-spacing: -0.025em;
  line-height: 1.3;
  margin: 0 0 20px;
}
h3 {
  font-size: var(--type-h3);
  font-weight: 650;
  line-height: 1.35;
  margin: 0 0 12px;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 20px;
}
.empty {
  text-align: center;
  padding: 75px 24px;
  background: white;
  border: 1px dashed #cdd2e4;
  border-radius: 14px;
}
.empty h2 {
  margin-bottom: 10px;
}
.empty p {
  max-width: 500px;
  margin: 0 auto 25px;
  color: var(--text-muted);
}
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 15px;
  margin-bottom: 25px;
}
.metric {
  padding: 22px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.metric .hint {
  font-weight: 600;
}
.metric-label {
  display: flex;
  align-items: center;
  gap: 8px;
}
.metric-label .ui-icon {
  font-size: 17px;
  color: #707ab0;
}
.metric strong {
  font-size: var(--type-metric);
  font-variant-numeric: tabular-nums;
  color: #252638;
  display: block;
  margin-top: 9px;
  text-align: center;
}
.table-scroll {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--type-table);
  font-variant-numeric: tabular-nums;
}
th {
  text-align: left;
  color: var(--text-muted);
  font-weight: 600;
  padding: 15px 12px;
}
td {
  padding: 19px 12px;
  border-top: 1px solid var(--line);
  vertical-align: top;
}
th.num,
td.num {
  text-align: center;
}
td button {
  padding: 6px 10px;
}
.badge {
  display: inline-block;
  border-radius: 6px;
  padding: 4px 9px;
  background: #eef0ff;
  color: #535bb0;
  font-size: var(--type-sm);
}
.badge.sent,
.badge.completed,
.badge.replied,
.badge.interested {
  background: #e9f7ef;
  color: #27734d;
}
.badge.failed,
.badge.uncertain,
.badge.unknown,
.badge.bounced,
.badge.error,
.badge.unverified {
  background: #fff0f0;
  color: #ae4049;
}
.badge.warming {
  background: #e9f7ef;
  color: #27734d;
}
.badge.waiting,
.badge.paused {
  background: #fff4de;
  color: #8b641c;
}
.row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.spaced {
  justify-content: space-between;
}
.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.tabs button.selected {
  background: #eef0ff;
  color: var(--accent);
  border-color: #cdd1ff;
}
label {
  display: block;
  font-size: var(--type-meta);
  margin-bottom: 15px;
}
input:not([type="checkbox"]),
select,
textarea {
  display: block;
  width: 100%;
  border: 1px solid #dce0eb;
  border-radius: 8px;
  padding: 11px 12px;
  background: white;
  color: #252638;
  margin-top: 7px;
}
input[type="checkbox"] {
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
}
textarea {
  resize: vertical;
  line-height: 1.65;
  min-height: 130px;
}
input[type="file"] {
  padding: 24px;
  border-style: dashed;
}
.check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.hint {
  font-size: var(--type-table);
  line-height: 1.6;
  color: var(--text-muted);
}
.alert {
  border-left: 3px solid #d89822;
  background: #fff9ed;
  color: #795d23;
  padding: 14px 18px;
  border-radius: 6px;
  margin: 15px 0;
  font-size: var(--type-meta);
}
.steps {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 24px;
}
.step {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 12px;
  cursor: pointer;
}
.step.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px #e0e3ff;
}
.step small {
  display: block;
  color: var(--text-muted);
  margin: 8px 0;
}
.step p {
  font-size: var(--type-meta);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.editor textarea {
  min-height: 300px;
}
.editor .variables {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.variables button {
  font-size: var(--type-sm);
  padding: 5px 8px;
}
.actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin: 20px 0;
}
.inbox {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 20px;
}
.thread-button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 18px;
  margin-bottom: 8px;
}
.thread-button small {
  display: block;
  margin-top: 8px;
  color: var(--text-muted);
}
.message {
  padding: 20px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 14px;
}
.message.in {
  border-left: 3px solid #9ba3ff;
}
.message pre,
.preview {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: inherit;
  line-height: 1.7;
}
.login {
  max-width: 430px;
  margin: 15vh auto;
  padding: 36px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.login h1 {
  margin: 20px 0;
}
.login button {
  width: 100%;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 30px;
  width: min(780px, 95vw);
  max-height: 90vh;
  overflow: auto;
}
dialog::backdrop {
  background: #22284265;
}
#notice {
  position: fixed;
  bottom: 24px;
  right: 24px;
  max-width: 500px;
  padding: 0;
  z-index: 100;
  background: #252638;
  color: white;
  border-radius: 10px;
  box-shadow: 0 8px 40px #2223;
}
#notice:not(:empty) {
  padding: 16px 22px;
}
.right {
  text-align: right;
}
.muted {
  color: var(--text-muted);
}
.progress {
  height: 6px;
  background: #edf0f7;
  border-radius: 4px;
  margin-top: 8px;
}
.progress span {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: 4px;
}
code {
  background: #f0f2ff;
  padding: 2px 5px;
  border-radius: 3px;
}
.small {
  font-size: var(--type-sm);
}
@media (max-width: 1200px) {
  .metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 1000px) {
  .content {
    padding: 25px;
  }
  .steps {
    grid-template-columns: 200px 1fr;
  }
}
@media (max-width: 720px) {
  .shell {
    display: block;
  }
  .sidebar {
    position: static;
    height: auto;
    padding: 15px;
  }
  .sidebar nav {
    display: flex;
    flex-wrap: wrap;
    margin: 10px 0;
  }
  .sidebar footer {
    display: none;
  }
  .content {
    padding: 20px 15px;
  }
  .grid,
  .steps,
  .inbox {
    grid-template-columns: minmax(0, 1fr);
  }
  .steps > *,
  .editor fieldset,
  .compose-tools {
    min-width: 0;
  }
  .metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  .top {
    align-items: flex-start;
    flex-direction: column;
  }
  .panel {
    padding: 18px;
  }
}

.mailbox-detail-head,
.section-head,
.dns-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.mailbox-detail-head {
  margin-bottom: 24px;
}
.mailbox-detail-head h1 {
  margin-top: 12px;
}
.back-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent);
}
.back-link:hover {
  background: transparent;
}
.detail-tabs {
  padding-bottom: 0;
  border-bottom: 1px solid var(--line);
}
.detail-tabs button {
  border: 0;
  border-radius: 0;
  padding: 14px 18px;
  background: transparent;
  border-bottom: 2px solid transparent;
}
.detail-tabs button.selected {
  background: transparent;
  border-color: var(--accent);
}
.detail-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}
.detail-metric {
  min-height: 140px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
}
.detail-metric span,
.detail-metric small {
  display: block;
  color: var(--text-muted);
}
.detail-metric strong {
  display: block;
  margin: 12px 0 7px;
  font-size: var(--type-metric);
  font-variant-numeric: tabular-nums;
}
.detail-metric.accent {
  border-color: #cdd1ff;
  background: #f7f8ff;
}
.detail-metric.accent strong {
  color: var(--accent);
}
.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--text-muted);
  font-size: var(--type-meta);
}
.chart-legend span::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 6px;
  border-radius: 50%;
}
.inbox-dot::before,
.bar-inbox {
  background: #6edb91;
}
.sent-dot::before,
.bar-sent {
  background: #7583f7;
}
.reply-dot::before,
.bar-replies {
  background: #9a70dc;
}
.promo-dot::before,
.bar-promotions {
  background: #f4be6c;
}
.spam-dot::before,
.bar-spam {
  background: #ff8f88;
}
.unknown-dot::before,
.bar-unknown {
  background: #adb3c2;
}
.rescued-dot::before,
.bar-rescued {
  background: #43b7bd;
}
.activity-chart {
  display: grid;
  grid-template-columns: repeat(30, minmax(12px, 1fr));
  align-items: end;
  gap: 6px;
  min-height: 205px;
  margin-top: 24px;
  padding: 20px 10px 0;
  border-bottom: 1px solid var(--line);
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 49px,
    #eef0f5 50px
  );
  overflow-x: auto;
}
.activity-day {
  display: grid;
  align-items: end;
  gap: 8px;
  min-width: 12px;
}
.activity-pair {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 2px;
}
.activity-day small {
  height: 28px;
  color: #84899a;
  font-size: var(--type-2xs);
  white-space: nowrap;
}
.activity-bar {
  display: flex;
  flex-direction: column;
  justify-content: end;
  width: 31%;
  min-height: 2px;
  overflow: hidden;
  border-radius: 5px 5px 0 0;
}
.activity-bar span {
  display: block;
  min-height: 0;
}
.empty-bar {
  background: #e9ebf2;
}
.chart-empty,
.soft-empty {
  color: var(--text-muted);
  text-align: center;
}
.provider-list {
  display: grid;
  gap: 20px;
  margin-top: 25px;
}
.provider-row {
  display: grid;
  grid-template-columns: 210px minmax(200px, 1fr) 120px;
  align-items: center;
  gap: 18px;
}
.provider-row > span {
  color: var(--text-muted);
  font-size: var(--type-meta);
  text-align: right;
}
.provider-bar {
  display: flex;
  height: 17px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf0f5;
}
.provider-bar span {
  display: block;
  height: 100%;
}
.dns-intro {
  margin-bottom: 18px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
}
.dns-intro span {
  color: var(--text-muted);
  font-size: var(--type-meta);
}
.dns-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.dns-card {
  min-height: 240px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
}
.dns-card pre {
  margin: 28px 0 10px;
  color: #66708d;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: inherit;
  line-height: 1.6;
}
.dns-status {
  padding: 7px 12px;
  border-radius: 7px;
  background: #fff4de;
  color: #8b641c;
  font-size: var(--type-meta);
}
.dns-status.ok {
  background: #e9f7ef;
  color: #27734d;
}
.dns-status.unavailable {
  background: #fff0f0;
  color: #ae4049;
}
.recommended {
  margin-left: 5px;
  color: #7d84b8;
  font-weight: 400;
}
.warmup-settings-panel {
  margin-top: 4px;
}
.provider-options {
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.provider-options legend {
  padding: 0 5px;
  color: var(--text-muted);
  font-size: var(--type-meta);
}
.provider-options .check {
  margin: 7px 0;
}
.fields-disabled {
  opacity: 0.52;
}
#detail-signature-body {
  min-height: 190px;
}
@media (max-width: 1200px) {
  .detail-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 800px) {
  .mailbox-detail-head,
  .section-head,
  .dns-intro {
    align-items: flex-start;
    flex-direction: column;
  }
  .detail-metrics,
  .dns-grid {
    grid-template-columns: 1fr;
  }
  .provider-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .provider-row > span {
    text-align: left;
  }
}
.compose-toolbar.ql-toolbar.ql-snow {
  display: flex;
  font-family: var(--font-ui);
  flex-wrap: nowrap;
  gap: 0;
  align-items: center;
  padding: 7px 8px;
  background: #fff;
  border: 1px solid #e6e8f0;
  border-radius: 8px 8px 0 0;
  margin: 10px 0 0;
  overflow-x: auto;
  white-space: nowrap;
}
.compose-toolbar .ql-formats {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  margin-right: 0;
  padding: 0 8px;
  border-right: 1px solid #e6e8f0;
}
.compose-toolbar .ql-formats:last-child {
  border-right: 0;
}
.compose-toolbar button {
  flex: 0 0 30px;
  width: 30px;
  height: 28px;
  padding: 4px;
  border: 0;
  background: transparent;
  color: #5e6470;
  font-size: 18px;
  line-height: 20px;
}
.compose-toolbar button:hover,
.compose-toolbar button:focus-visible {
  background: #f2f4fa;
  color: #4658db;
}
.compose-toolbar.ql-toolbar.ql-snow .ql-picker {
  font-family: var(--font-ui);
  color: #5e6470;
}
.compose-toolbar .ql-font {
  width: 115px;
}
.compose-toolbar .ql-size {
  width: 58px;
}
.compose-toolbar .ql-font .ql-picker-label[data-value="Arial"]::before,
.compose-toolbar .ql-font .ql-picker-item[data-value="Arial"]::before {
  content: "Arial";
}
.compose-toolbar .ql-font .ql-picker-label[data-value="Georgia"]::before,
.compose-toolbar .ql-font .ql-picker-item[data-value="Georgia"]::before {
  content: "Georgia";
}
.compose-toolbar
  .ql-font
  .ql-picker-label[data-value="Times New Roman"]::before,
.compose-toolbar
  .ql-font
  .ql-picker-item[data-value="Times New Roman"]::before {
  content: "Times New Roman";
}
.compose-toolbar .ql-font .ql-picker-label[data-value="Courier New"]::before,
.compose-toolbar .ql-font .ql-picker-item[data-value="Courier New"]::before {
  content: "Courier New";
}
.compose-toolbar .ql-size .ql-picker-label[data-value="12px"]::before,
.compose-toolbar .ql-size .ql-picker-item[data-value="12px"]::before {
  content: "12";
}
.compose-toolbar .ql-size .ql-picker-label[data-value="14px"]::before,
.compose-toolbar .ql-size .ql-picker-item[data-value="14px"]::before {
  content: "14";
}
.compose-toolbar .ql-size .ql-picker-label[data-value="16px"]::before,
.compose-toolbar .ql-size .ql-picker-item[data-value="16px"]::before {
  content: "16";
}
.compose-toolbar .ql-size .ql-picker-label[data-value="18px"]::before,
.compose-toolbar .ql-size .ql-picker-item[data-value="18px"]::before {
  content: "18";
}
.compose-toolbar .ql-size .ql-picker-label[data-value="24px"]::before,
.compose-toolbar .ql-size .ql-picker-item[data-value="24px"]::before {
  content: "24";
}
.compose-toolbar [data-tool="md"] {
  width: 35px;
  font-size: var(--type-xs);
  font-weight: 700;
}
.rich-source {
  display: none !important;
}
.rich-editor.ql-container {
  border: 1px solid #e6e8f0;
  border-top: 0;
  border-radius: 0 0 8px 8px;
  font-family: Arial, sans-serif;
  font-size: var(--type-table);
}
.rich-editor .ql-editor {
  min-height: 220px;
  line-height: 1.5;
}
.editor .rich-editor .ql-editor {
  min-height: 300px;
}
.rich-editor .ql-editor img {
  max-width: 100%;
  height: auto;
}
.emoji-panel {
  display: flex;
  gap: 4px;
  padding: 8px;
  border: 1px solid #e6e8f0;
  border-top: 0;
}
.emoji-panel button {
  font-size: 20px;
  border: 0;
  background: transparent;
}
.insert-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: end;
  padding: 14px;
  border: 1px solid #dfe3e8;
  border-radius: 10px;
  margin-bottom: 12px;
}
.insert-panel label {
  flex: 1;
  min-width: 150px;
  margin: 0;
}
.mail-preview {
  white-space: normal;
  background: #fff;
  color: #242736;
  border: 1px solid #e6e8f0;
  border-radius: 10px;
  padding: 20px;
  margin: 12px 0;
  overflow: auto;
  max-height: 600px;
}
.mail-preview[hidden] {
  display: none;
}
.mail-preview img {
  max-width: 100%;
  height: auto;
}
.mail-preview p {
  margin: 0 0 12px;
}
.mail-preview pre {
  white-space: pre-wrap;
}
.mail-preview table {
  width: auto;
}
.compose-tools input[hidden] {
  display: none;
}
dialog:has(#signature-form) {
  width: min(1000px, 92vw);
}
#signature-body {
  min-height: 200px;
}
.preview .mail-preview {
  max-height: none;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.mailbox-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.mailbox-summary > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.mailbox-summary span {
  color: var(--text-muted);
  font-size: var(--type-meta);
}
.mailbox-summary strong {
  font-size: var(--type-figure);
  font-variant-numeric: tabular-nums;
}
.warmup-note {
  margin-bottom: 18px;
}
.mailbox-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.mailbox-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}
.mailbox-search {
  width: min(360px, 100%);
  margin: 0;
  color: var(--text-muted);
}
.mailbox-search input {
  margin-top: 5px;
}
.bulk-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  flex-wrap: wrap;
}
#selected-count {
  min-width: 125px;
  color: var(--text-muted);
  font-size: var(--type-meta);
}
.mailbox-table {
  min-width: 1140px;
}
.mailbox-table th,
.mailbox-table td {
  padding: 18px 14px;
  vertical-align: middle;
}
.mailbox-table tbody tr:hover {
  background: #fafaff;
}
.mailbox-table .select-cell {
  width: 44px;
  text-align: center;
}
.mailbox-table .switch-cell {
  width: 96px;
  text-align: center;
}
.mailbox-name,
.status-button,
.warmup-score {
  border: 0;
  background: transparent;
  text-align: left;
  padding: 0;
}
.mailbox-name:hover,
.status-button:hover,
.warmup-score:hover {
  background: transparent;
  color: var(--accent);
}
.mailbox-name strong,
.mailbox-name small,
.status-button small,
.cell-note {
  display: block;
}
.mailbox-name strong {
  white-space: nowrap;
}
.status-button .error-note {
  max-width: 240px;
  color: #ae4049;
  white-space: normal;
}
.warmup-score {
  min-width: 220px;
}
td.num .warmup-score {
  text-align: center;
}
.warmup-score-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
td.num .warmup-score-head {
  display: block;
}
td.num .warmup-score-head b {
  display: block;
}
.warmup-score-head strong {
  color: var(--accent);
  font-size: var(--type-h2);
  font-variant-numeric: tabular-nums;
}
.warmup-score-head b {
  font-size: var(--type-sm);
  font-weight: 600;
}
.warmup-score .progress {
  margin: 8px 0 0;
}
.warmup-score small {
  display: block;
  margin-top: 6px;
  color: var(--text-muted);
  font-size: var(--type-sm);
}
.connection-error {
  color: #8b3038;
  background: #fff0f0;
  border-left-color: #c94a55;
}
.mailbox-name small,
.status-button small,
.cell-note {
  margin-top: 6px;
  color: var(--text-muted);
  font-size: var(--type-sm);
  white-space: nowrap;
}
.stat-number {
  font-size: var(--type-subtitle);
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.row-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.row-actions button {
  white-space: nowrap;
}
.switch {
  display: inline-flex;
  align-items: center;
  position: relative;
  width: 48px;
  height: 28px;
  margin: 0;
  cursor: pointer;
}
.switch input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: inherit;
}
.switch span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  border: 1px solid #aeb8c9;
  background: #cbd2df;
  box-shadow: inset 0 1px 2px #29304a1a;
  transition:
    background 0.18s ease,
    border-color 0.18s ease;
}
.switch span::after {
  content: "";
  display: block;
  width: 20px;
  height: 20px;
  margin: 3px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px #29304a40;
  transition: transform 0.18s ease;
}
.switch input:checked + span {
  background: var(--accent);
  border-color: var(--accent);
}
.switch input:checked + span::after {
  transform: translateX(20px);
}
.switch input:focus-visible + span {
  outline: 3px solid #a0a7ff;
  outline-offset: 2px;
}
.switch input:disabled {
  cursor: not-allowed;
}
.switch input:disabled + span {
  background: #e5e9f0;
  border-color: #c7cfda;
  cursor: not-allowed;
}
.switch input:disabled + span::after {
  background: #a7b1c1;
  box-shadow: none;
}
.switch input:disabled:checked + span {
  background: #b8bef5;
  border-color: #aab2ec;
}
.switch input:disabled:checked + span::after {
  background: #fff;
}
.health-score {
  min-width: 72px;
  font-weight: 700;
  border-color: transparent;
}
.health-score span {
  margin-left: 2px;
  font-size: var(--type-xs);
  font-weight: 500;
}
.health-score.healthy {
  background: #e8f8ef;
  color: #208552;
}
.health-score.warning {
  background: #fff4de;
  color: #8b641c;
}
.health-score.critical {
  background: #fff0f0;
  color: #ae4049;
}
.health-total {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 10px 0 20px;
}
.health-total strong {
  font-size: var(--type-display);
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.health-total span {
  color: var(--text-muted);
}
.health-parts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 20px;
}
.health-parts > div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.warmup-dialog-summary {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}
.warmup-dialog-summary > div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.warmup-dialog-summary span:first-child {
  display: block;
  color: var(--text-muted);
  font-size: var(--type-sm);
  margin-bottom: 8px;
}
.readiness-total {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 8px 0 20px;
  padding: 18px;
  background: #f7f8ff;
  border: 1px solid #e3e5ff;
  border-radius: 12px;
}
.readiness-total > strong {
  color: var(--accent);
  font-size: var(--type-display);
  font-variant-numeric: tabular-nums;
}
.readiness-total b,
.readiness-total span {
  display: block;
}
.readiness-total span {
  margin-top: 6px;
  color: var(--text-muted);
  font-size: var(--type-meta);
}
.warmup-scale {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 18px 0;
}
.warmup-scale span {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text-muted);
  font-size: var(--type-sm);
}
.warmup-scale b {
  display: block;
  margin-bottom: 4px;
  color: #252638;
}
@media (max-width: 900px) {
  .mailbox-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
  .bulk-actions {
    justify-content: flex-start;
  }
}
@media (max-width: 720px) {
  .mailbox-summary,
  .health-parts,
  .warmup-dialog-summary {
    grid-template-columns: 1fr;
  }
  .warmup-scale {
    grid-template-columns: 1fr 1fr;
  }
}
