:root {
  color-scheme: light;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", sans-serif;
  color: #202638;
  background: #f5f7fb;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  --muted: #7d8495;
  --line: #e8ebf2;
  --accent: #5666e9;
  --accent-light: #eef0ff;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: #f5f7fb;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  display: flex;
  width: 248px;
  flex: 0 0 248px;
  flex-direction: column;
  padding: 27px 16px 18px;
  background: #fff;
  border-right: 1px solid var(--line);
}

.brand,
.mobile-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #242a3a;
  font-size: 20px;
  font-weight: 750;
  letter-spacing: -0.5px;
  text-decoration: none;
}

.brand {
  margin: 0 8px 36px;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 11px;
  background: linear-gradient(145deg, #7181ff, #4b5cda);
  box-shadow: 0 5px 12px #5666e933;
  color: #fff;
  font-size: 17px;
  font-weight: 750;
}

.compose-button {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin: 0 3px 28px;
  border: 0;
  border-radius: 13px;
  background: var(--accent);
  box-shadow: 0 6px 14px #5666e92b;
  color: #fff;
  font-weight: 650;
  text-decoration: none;
  transition: background 150ms ease, transform 150ms ease;
}

.compose-button:hover,
.send-button:hover {
  background: #4656d5;
  transform: translateY(-1px);
}

.compose-button span {
  font-size: 20px;
  font-weight: 400;
}

.sidebar-section-title {
  margin: 0 11px 9px;
  color: #a0a5b2;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.09em;
}

.folder-nav {
  display: grid;
  gap: 4px;
}

.folder-link {
  display: flex;
  min-height: 40px;
  align-items: center;
  gap: 12px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #555d70;
  text-align: left;
}

.folder-link > span:nth-child(2) {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.folder-link:hover,
.folder-link.active {
  background: var(--accent-light);
  color: var(--accent);
}

.folder-link.active {
  font-weight: 650;
}

.folder-icon {
  width: 18px;
  flex: 0 0 18px;
  font-size: 16px;
  text-align: center;
}

.folder-count {
  color: #777e91;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.folder-link.active .folder-count {
  color: var(--accent);
}

.sidebar-note {
  margin: 8px 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.sidebar-footer {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: auto;
  padding: 13px 8px 2px;
  overflow: hidden;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: #35bd83;
}

.status-dot.offline {
  background: #e5a545;
}

.main-panel {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
}

.topbar {
  display: flex;
  height: 68px;
  align-items: center;
  gap: 14px;
  padding: 0 clamp(20px, 4vw, 58px);
  border-bottom: 1px solid var(--line);
  background: #ffffffc9;
}

.mobile-brand {
  display: none;
  font-size: 17px;
}

.search-wrap {
  display: flex;
  width: min(570px, 70%);
  height: 43px;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: #f0f2f7;
  color: #858b9b;
}

.search-wrap:focus-within {
  border-color: #c9ceff;
  background: #fff;
  box-shadow: 0 0 0 3px #5666e911;
}

.search-wrap > span {
  font-size: 22px;
  line-height: 1;
}

.search-wrap input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #30374a;
  font-size: 14px;
}

.search-wrap input::placeholder {
  color: #969bab;
}

.icon-button {
  display: inline-grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #747b8d;
  font-size: 22px;
}

.icon-button:hover {
  background: #eef0f6;
  color: #343c50;
}

.topbar > .icon-button {
  margin-left: auto;
}

.avatar {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border: 1px solid #e0e4fb;
  border-radius: 50%;
  background: #eff1ff;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}

.topbar-compose {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 8px;
  padding: 0 13px;
  border: 1px solid #e3e6f4;
  border-radius: 9px;
  background: #fff;
  color: #505a76;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.topbar-compose:hover {
  border-color: #c9ceff;
  background: #f9f9ff;
  color: var(--accent);
}

.topbar-compose span {
  font-size: 16px;
}

.content {
  width: min(100%, 1320px);
  flex: 1;
  align-self: center;
  padding: clamp(24px, 3.5vw, 42px) clamp(18px, 3.5vw, 48px);
}

.list-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin: 0 0 23px;
}

.eyebrow {
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  color: #242a3a;
  font-size: clamp(23px, 3vw, 29px);
  letter-spacing: -0.8px;
}

.list-toolbar {
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.message-filters {
  display: flex;
  align-items: center;
  gap: 4px;
}

.filter-button {
  min-height: 31px;
  padding: 0 11px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #858b9b;
  font-size: 11px;
}

.filter-button:hover {
  background: #eef0f6;
}

.filter-button.active {
  background: #fff;
  box-shadow: 0 1px 5px #25315b12;
  color: #454e68;
  font-weight: 650;
}

.list-toolbar-hint {
  color: #a0a5b2;
  font-size: 11px;
}

.message-count {
  padding-bottom: 4px;
  color: var(--muted);
  font-size: 13px;
}

.message-list {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 4px 18px #25315b06;
}

.message-row {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(130px, 220px) minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  min-height: 68px;
  padding: 13px 19px;
  border: 0;
  border-bottom: 1px solid #edf0f5;
  background: #fff;
  color: inherit;
  text-align: left;
  transition: background 120ms ease;
}

.message-row:last-child {
  border-bottom: 0;
}

.message-row:hover {
  background: #fafbff;
}

.message-row.unseen {
  background: #fbfbff;
}

.message-row.unseen .sender,
.message-row.unseen .subject {
  color: #252b3a;
  font-weight: 700;
}

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

.sender {
  color: #586073;
  font-size: 13px;
}

.message-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 5px;
}

.subject {
  color: #384052;
  font-size: 13px;
}

.preview {
  color: #969bab;
  font-size: 12px;
}

.message-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #969bab;
  font-size: 11px;
  white-space: nowrap;
}

.unread-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.loading-state,
.empty-state,
.error-state {
  display: grid;
  min-height: 190px;
  place-items: center;
  padding: 28px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
  line-height: 1.7;
}

.error-state {
  color: #b94d51;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 17px 0;
  color: var(--muted);
  font-size: 12px;
}

.text-button {
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #626a7d;
  font-size: 13px;
}

.text-button:hover:not(:disabled) {
  background: #eef0f6;
  color: #30374a;
}

.text-button:disabled {
  cursor: default;
  opacity: 0.4;
}

.hidden {
  display: none !important;
}

.detail-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.detail-card {
  padding: clamp(20px, 4vw, 36px);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.detail-subject {
  margin: 5px 0 23px;
  color: #252b3a;
  font-size: clamp(20px, 3vw, 26px);
  letter-spacing: -0.55px;
  overflow-wrap: anywhere;
}

.detail-sender {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.sender-avatar {
  display: grid;
  width: 39px;
  height: 39px;
  flex: 0 0 39px;
  place-items: center;
  border-radius: 50%;
  background: #eff1ff;
  color: var(--accent);
  font-weight: 650;
}

.detail-from {
  min-width: 0;
  flex: 1;
}

.detail-from strong,
.detail-from span {
  display: block;
  overflow-wrap: anywhere;
}

.detail-from strong {
  margin-bottom: 4px;
  color: #343b4e;
  font-size: 13px;
}

.detail-from span,
.detail-date {
  color: var(--muted);
  font-size: 12px;
}

.detail-date {
  align-self: flex-start;
  padding-top: 4px;
  white-space: nowrap;
}

.detail-body {
  padding-top: 25px;
  color: #41485b;
  font-size: 14px;
  line-height: 1.8;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.compose-dialog {
  width: min(620px, calc(100vw - 28px));
  max-width: none;
  max-height: min(780px, calc(100vh - 28px));
  padding: 0;
  overflow: hidden;
  border: 1px solid #e4e7ef;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 80px #1f294333;
}

.compose-dialog::backdrop {
  background: #17213a66;
  backdrop-filter: blur(2px);
}

.compose-form {
  display: flex;
  min-height: 430px;
  max-height: min(780px, calc(100vh - 28px));
  flex-direction: column;
}

.compose-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: #fafbfe;
}

.compose-header h2 {
  margin: 0;
  color: #343b4d;
  font-size: 14px;
}

.compose-form > input,
.compose-form > textarea {
  width: calc(100% - 38px);
  margin: 0 19px;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  outline: 0;
  background: #fff;
  color: #30374a;
  font-size: 13px;
}

.compose-form > input:focus,
.compose-form > textarea:focus {
  border-bottom-color: #a7afff;
}

.compose-form > textarea {
  min-height: 150px;
  flex: 1;
  resize: vertical;
  line-height: 1.7;
}

.field-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

.compose-footer {
  display: flex;
  min-height: 70px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 19px;
}

.form-message {
  color: #b94d51;
  font-size: 12px;
}

.send-button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 650;
}

.send-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 3;
  max-width: min(420px, calc(100vw - 32px));
  padding: 12px 17px;
  border-radius: 10px;
  background: #273149;
  box-shadow: 0 8px 24px #17213a33;
  color: #fff;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 760px) {
  .sidebar {
    width: 68px;
    flex-basis: 68px;
    align-items: center;
    padding: 20px 8px 15px;
  }

  .brand {
    margin: 0 0 27px;
  }

  .brand > span:last-child,
  .compose-button:not(:focus) {
    font-size: 0;
  }

  .compose-button {
    width: 46px;
    height: 46px;
    min-height: 46px;
    margin: 0 0 19px;
    border-radius: 14px;
  }

  .compose-button span {
    font-size: 21px;
  }

  .folder-nav {
    width: 100%;
    justify-items: center;
  }

  .folder-link {
    width: 48px;
    justify-content: center;
    padding: 0;
    font-size: 0;
  }

  .folder-icon {
    font-size: 17px;
  }

  .sidebar-note,
  .sidebar-footer {
    display: none;
  }

  .topbar {
    height: 60px;
    gap: 8px;
    padding: 0 14px;
  }

  .mobile-brand {
    display: flex;
    gap: 7px;
  }

  .mobile-brand .brand-mark {
    width: 29px;
    height: 29px;
    border-radius: 9px;
    font-size: 14px;
  }

  .search-wrap {
    width: auto;
    height: 39px;
    flex: 1;
    gap: 6px;
    padding: 0 9px;
  }

  .search-wrap input {
    min-width: 0;
    font-size: 12px;
  }

  .avatar {
    display: none;
  }

  .topbar-compose {
    width: 36px;
    min-height: 36px;
    justify-content: center;
    gap: 0;
    padding: 0;
    font-size: 0;
  }

  .topbar-compose span {
    font-size: 19px;
  }

  .content {
    padding: 24px 14px;
  }

  .message-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 12px;
    padding: 14px;
  }

  .sender {
    grid-column: 1;
  }

  .message-copy {
    grid-column: 1;
  }

  .message-meta {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: start;
  }
}

@media (max-width: 430px) {
  .sidebar {
    width: 56px;
    flex-basis: 56px;
    padding-right: 5px;
    padding-left: 5px;
  }

  .brand-mark {
    width: 31px;
    height: 31px;
  }

  .compose-button {
    width: 42px;
    height: 42px;
    min-height: 42px;
  }

  .folder-link {
    width: 43px;
  }

  .mobile-brand strong {
    display: none;
  }

  .topbar {
    gap: 7px;
    padding: 0 9px;
  }

  .topbar > .icon-button {
    width: 32px;
    flex-basis: 32px;
  }

  .list-heading {
    margin-bottom: 17px;
  }

  .list-toolbar-hint {
    display: none;
  }

  .detail-card {
    padding: 18px;
  }

  .detail-date {
    max-width: 95px;
    overflow-wrap: anywhere;
    text-align: right;
  }
}

.builder-body {
  height: 100vh;
  overflow: hidden;
  background: #f3f5f9;
}

.builder-topbar {
  position: relative;
  z-index: 1;
  display: grid;
  height: 66px;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.builder-back {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 9px;
  color: #626a7d;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}

.builder-back:hover {
  color: var(--accent);
}

.brand-lockup {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-lockup small {
  color: #9298a7;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.2;
}

.builder-title {
  display: flex;
  align-items: center;
  gap: 11px;
}

.builder-title strong {
  color: #292f40;
  font-size: 14px;
}

.builder-title > span {
  padding: 4px 8px;
  border-radius: 20px;
  background: #f0f2f7;
  color: #83899a;
  font-size: 10px;
}

.builder-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.builder-preview-toggle {
  padding: 9px 11px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #626a7d;
  font-size: 12px;
}

.builder-preview-toggle:hover {
  background: #f0f2f7;
}

.builder-send {
  min-height: 38px;
  font-size: 12px;
}

.builder-send:disabled {
  cursor: not-allowed;
  background: #d7dbea;
  box-shadow: none;
  color: #72798b;
  transform: none;
}

.builder-connection-banner {
  display: flex;
  min-height: 58px;
  align-items: center;
  gap: 11px;
  margin-bottom: 14px;
  padding: 10px 15px;
  border: 1px solid #f0dfb8;
  border-radius: 11px;
  background: #fffaf0;
}

.connection-indicator {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border-radius: 50%;
  background: #e5a545;
  box-shadow: 0 0 0 4px #e5a54520;
}

.builder-connection-banner > span:nth-child(2) {
  display: grid;
  gap: 3px;
}

.builder-connection-banner strong {
  color: #755a28;
  font-size: 11px;
}

.builder-connection-banner small {
  color: #938265;
  font-size: 10px;
}

.connection-later {
  margin-left: auto;
  color: #a28b61;
  font-size: 10px;
  white-space: nowrap;
}

.builder-side-section {
  display: grid;
  gap: 2px;
  margin-top: 22px;
  padding-top: 12px;
  border-top: 1px solid #f0f1f5;
}

.builder-side-section > p {
  margin: 0 9px 5px;
  color: #a0a5b2;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.builder-side-current,
.builder-side-muted {
  display: flex;
  min-height: 32px;
  align-items: center;
  gap: 9px;
  padding: 0 3px;
  font-size: 11px;
}

.builder-side-current {
  color: #515fd1;
}

.builder-side-current > span:first-child,
.builder-side-muted > span:first-child {
  width: 17px;
  text-align: center;
}

.builder-side-current strong {
  font-size: 11px;
}

.side-active-dot {
  width: 6px;
  height: 6px;
  margin-left: auto;
  border-radius: 50%;
  background: #5c6ce5;
}

.builder-side-muted {
  color: #969bab;
}

.builder-side-muted small {
  margin-left: auto;
  font-size: 9px;
}

.builder-layout {
  display: grid;
  height: calc(100vh - 66px);
  grid-template-columns: 282px minmax(0, 1fr) 278px;
}

.builder-layout:not([data-view="compose"]) {
  grid-template-columns: 282px minmax(0, 1fr);
}

.builder-layout[data-view="compose"] {
  grid-template-columns: 282px minmax(0, 1fr) 278px;
}

.builder-panel {
  display: flex;
  min-height: 0;
  flex-direction: column;
  padding: 23px 17px;
  background: #fff;
}

.builder-palette {
  overflow-y: auto;
  border-right: 1px solid var(--line);
  scrollbar-width: none;
  overscroll-behavior: contain;
}

.builder-palette::-webkit-scrollbar,
.mail-navigation::-webkit-scrollbar {
  display: none;
}

.mail-navigation {
  scrollbar-width: none;
}

.builder-inspector {
  border-left: 1px solid var(--line);
}

.mail-navigation {
  display: grid;
  gap: 4px;
}

.mail-nav-label {
  margin: 0 9px 7px;
  color: #7d8495;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.mail-nav-secondary {
  margin-top: 23px;
}

.mail-nav-item {
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 11px;
  padding: 0 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #50596d;
  font-size: 13px;
  font-weight: 550;
  text-align: left;
  text-decoration: none;
  transition: color 120ms ease, background 120ms ease;
}

.mail-nav-item:hover {
  background: #f3f4fb;
  color: #4656c9;
}

.mail-nav-item.active {
  background: #eef0ff;
  color: #4656c9;
  font-weight: 700;
}

.mail-nav-icon {
  display: grid;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  place-items: center;
  border-radius: 6px;
  color: #697287;
  font-size: 16px;
  text-align: center;
}

.mail-nav-item.active .mail-nav-icon {
  color: var(--accent);
}

.mail-nav-compose {
  margin-bottom: 9px;
  background: #f6f7ff;
  color: #4656c9;
  font-weight: 700;
}

.mail-nav-compose .mail-nav-icon {
  color: #5666e9;
}

.mail-nav-arrow {
  margin-left: auto;
  color: #9299a8;
  font-size: 12px;
}

.nav-badge {
  min-width: 17px;
  margin-left: auto;
  color: #5967ce;
  font-size: 11px;
  font-weight: 700;
  text-align: right;
}

.mail-content-view {
  min-width: 0;
  min-height: 0;
  overflow: auto;
  padding: clamp(24px, 4vw, 46px) clamp(20px, 4vw, 56px);
  background: #f3f5f9;
}

.mail-page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 25px;
}

.mail-page-eyebrow {
  margin: 0 0 7px;
  color: #989eac;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.mail-page-heading h1 {
  margin: 0;
  color: #252b3a;
  font-size: clamp(23px, 3vw, 29px);
  letter-spacing: -0.7px;
}

.mail-refresh-button {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border: 1px solid #e3e6ee;
  border-radius: 7px;
  background: #fff;
  color: #666e80;
  font-size: 10px;
}

.mail-refresh-button:hover {
  border-color: #c9ceff;
  color: var(--accent);
}

.mail-refresh-button span {
  font-size: 14px;
}

.mail-folder-toolbar {
  display: flex;
  min-height: 37px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e5e8ef;
  color: #777e8f;
  font-size: 11px;
}

.server-not-connected {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #a1834e;
  font-size: 10px;
}

.server-not-connected::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #dfa94f;
  content: "";
}

.mail-empty-panel {
  display: flex;
  min-height: 330px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  text-align: center;
}

.mail-empty-icon {
  display: grid;
  width: 53px;
  height: 53px;
  place-items: center;
  border-radius: 50%;
  background: #e9ecf5;
  color: #818aab;
  font-size: 22px;
}

.mail-empty-panel h2 {
  margin: 18px 0 7px;
  color: #434a5c;
  font-size: 14px;
  font-weight: 650;
}

.mail-empty-panel p {
  max-width: 380px;
  margin: 0;
  color: #8c92a1;
  font-size: 11px;
  line-height: 1.7;
}

.mail-empty-action {
  margin-top: 18px;
  padding: 8px 11px;
  border: 0;
  border-bottom: 1px solid #cbd0f5;
  background: transparent;
  color: #5967ce;
  font-size: 11px;
}

.mail-empty-action:hover {
  border-bottom-color: #5666e9;
  color: #394ac9;
}

.mail-info-card {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: start;
  gap: 13px;
  padding: 20px;
  border-bottom: 1px solid #e3e6ee;
  background: #fff;
}

.mail-info-icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: #707bdf;
  font-size: 18px;
}

.mail-info-card h2 {
  margin: 2px 0 7px;
  color: #343b4e;
  font-size: 13px;
}

.mail-info-card p {
  max-width: 610px;
  margin: 0;
  color: #7e8595;
  font-size: 11px;
  line-height: 1.75;
}

.mail-info-card > .server-not-connected {
  padding-top: 4px;
}

.mail-setup-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 27px;
}

.mail-setup-grid article {
  padding: 13px 0;
  border-top: 1px solid #dfe3ec;
}

.domain-top-link {
  color: #5967ce;
  font-size: 11px;
  text-decoration: none;
}

.domain-body {
  height: auto;
  min-height: 100vh;
  overflow: auto;
}

.domain-top-link:hover,
.domain-secondary-link:hover {
  color: #394ac9;
  text-decoration: underline;
}

.domain-page {
  width: min(100% - 40px, 980px);
  margin: 0 auto;
  padding: clamp(32px, 6vw, 68px) 0 56px;
}

.domain-page-heading {
  max-width: 760px;
  margin-bottom: 32px;
}

.domain-page-heading h1 {
  margin: 0;
  color: #252b3a;
  font-size: clamp(27px, 4.5vw, 42px);
  letter-spacing: -1.3px;
  line-height: 1.3;
}

.domain-lead {
  max-width: 680px;
  margin: 17px 0 0;
  color: #727a8c;
  font-size: 14px;
  line-height: 1.85;
}

.domain-answer-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 16px;
  padding: 25px;
  border: 1px solid #e6e9f2;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 26px #26314b08;
}

.domain-answer-icon,
.domain-compare-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 18px;
  font-weight: 700;
}

.domain-card-label {
  margin: 1px 0 6px;
  color: #707bdf;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.06em;
}

.domain-answer-card h2,
.domain-section-heading h2 {
  margin: 0;
  color: #343b4e;
  font-size: clamp(17px, 2.4vw, 21px);
  letter-spacing: -0.3px;
}

.domain-answer-card p:last-child {
  margin: 10px 0 0;
  color: #737b8c;
  font-size: 12px;
  line-height: 1.85;
}

.domain-page code {
  padding: 2px 5px;
  border-radius: 4px;
  background: #f0f2f8;
  color: #4858b9;
  font-size: 0.95em;
}

.domain-section {
  margin-top: 48px;
}

.domain-section-heading {
  margin-bottom: 18px;
}

.domain-section-heading .mail-page-eyebrow {
  margin-bottom: 6px;
}

.domain-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.domain-flow li,
.domain-compare article {
  min-width: 0;
  padding: 20px;
  border: 1px solid #e6e9f2;
  border-radius: 12px;
  background: #fff;
}

.domain-flow-number {
  color: #6573dc;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.08em;
}

.domain-flow h3,
.domain-compare h3 {
  margin: 10px 0 7px;
  color: #3e4659;
  font-size: 13px;
}

.domain-flow p,
.domain-compare p {
  margin: 0;
  color: #7a8292;
  font-size: 11px;
  line-height: 1.8;
}

.domain-compare {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.domain-compare-icon {
  width: 38px;
  height: 38px;
  font-size: 15px;
}

.domain-compare article:nth-child(n + 2) .domain-compare-icon {
  background: #f0f2f6;
  color: #747d90;
}

.domain-tag {
  display: inline-block;
  margin-top: 14px;
  padding: 5px 8px;
  border-radius: 20px;
  background: #eef0ff;
  color: #5967ce;
  font-size: 9px;
  font-weight: 650;
}

.domain-tag-muted {
  background: #f1f2f5;
  color: #777e8d;
}

.domain-requirements ul {
  display: grid;
  gap: 11px;
  margin: 0;
  padding: 20px 22px;
  border: 1px solid #e6e9f2;
  border-radius: 12px;
  background: #fff;
  color: #70798a;
  font-size: 11px;
  line-height: 1.75;
  list-style: none;
}

.domain-requirements li {
  position: relative;
  padding-left: 17px;
}

.domain-requirements li::before {
  position: absolute;
  top: 0;
  left: 0;
  color: #6573dc;
  content: "•";
  font-weight: 700;
}

.domain-requirements strong {
  color: #464e60;
}

.domain-disclaimer {
  margin: 15px 0 0;
  color: #898f9d;
  font-size: 10px;
  line-height: 1.8;
}

.domain-page-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 25px;
}

.domain-page-actions .mail-empty-action {
  margin-top: 0;
  text-decoration: none;
}

.domain-secondary-link {
  color: #747c8d;
  font-size: 11px;
  text-decoration: none;
}

.install-body {
  min-height: 100vh;
  background: #f3f5f9;
}

.install-topbar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  min-height: 66px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 clamp(20px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
  background: #ffffffed;
  backdrop-filter: blur(12px);
}

.install-brand,
.install-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #50586b;
  font-size: 12px;
  text-decoration: none;
}

.install-brand .brand-lockup strong {
  color: #292f40;
  font-size: 13px;
}

.install-back:hover {
  color: var(--accent);
}

.install-main {
  width: min(100% - 40px, 920px);
  margin: 0 auto;
  padding: 54px 0 42px;
}

.install-hero {
  max-width: 720px;
  margin-bottom: 27px;
}

.install-hero h1 {
  margin: 0;
  color: #252b3a;
  font-size: clamp(29px, 4vw, 40px);
  letter-spacing: -1.2px;
}

.install-intro {
  margin: 13px 0 0;
  color: #737b8c;
  font-size: 13px;
  line-height: 1.85;
}

.install-status {
  display: grid;
  grid-template-columns: 35px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  padding: 18px 20px;
  border: 1px solid #f0dfb8;
  border-radius: 12px;
  background: #fffaf0;
}

.install-status-mark {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: #f8edcf;
  color: #9a7639;
  font-size: 13px;
  font-weight: 750;
}

.install-status strong {
  color: #755a28;
  font-size: 12px;
}

.install-status p {
  margin: 5px 0 0;
  color: #938265;
  font-size: 11px;
  line-height: 1.65;
}

.install-status-label {
  padding: 6px 9px;
  border-radius: 20px;
  background: #f8edcf;
  color: #8d6f38;
  font-size: 10px;
  white-space: nowrap;
}

.install-steps-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 25px 0 37px;
  padding: 7px;
  border: 1px solid #e6e9f1;
  border-radius: 11px;
  background: #fff;
}

.install-steps-nav a {
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 7px;
  color: #626a7d;
  font-size: 11px;
  text-decoration: none;
}

.install-steps-nav a:hover {
  background: #f1f2ff;
  color: #4f5fd6;
}

.install-steps-nav span,
.install-section-title > span {
  color: #6674dc;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.06em;
}

.install-section {
  scroll-margin-top: 88px;
  margin-top: 35px;
}

.install-section-title {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin-bottom: 16px;
}

.install-section-title > span {
  display: grid;
  width: 29px;
  height: 29px;
  flex: 0 0 29px;
  place-items: center;
  border-radius: 9px;
  background: #eef0ff;
}

.install-section-title h2 {
  margin: 1px 0 5px;
  color: #333b4e;
  font-size: 17px;
  letter-spacing: -0.3px;
}

.install-section-title p {
  margin: 0;
  color: #7d8494;
  font-size: 11px;
  line-height: 1.7;
}

.install-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}

.install-options article {
  padding: 19px;
  border: 1px solid #e6e9f1;
  border-radius: 11px;
  background: #fff;
}

.install-option-label {
  color: #6875d9;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.install-options h3 {
  margin: 8px 0 7px;
  color: #3b4355;
  font-size: 13px;
}

.install-options p {
  margin: 0;
  color: #7a8292;
  font-size: 11px;
  line-height: 1.8;
}

.install-details {
  overflow: hidden;
  border: 1px solid #e6e9f1;
  border-radius: 11px;
  background: #fff;
}

.install-details > div {
  display: grid;
  grid-template-columns: minmax(145px, 0.34fr) minmax(0, 1fr);
  gap: 16px;
  padding: 13px 17px;
  border-bottom: 1px solid #eef0f4;
}

.install-details > div:last-child {
  border-bottom: 0;
}

.install-details strong,
.install-details code {
  color: #4a5367;
  font-size: 10px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.install-details span {
  color: #798193;
  font-size: 10px;
  line-height: 1.7;
}

.install-details span code {
  padding: 2px 4px;
  border-radius: 4px;
  background: #f0f2f8;
  color: #5967ce;
  font-weight: 500;
}

.install-env-list > div {
  grid-template-columns: minmax(230px, 0.55fr) minmax(0, 1fr);
}

.install-note,
.install-warning,
.install-config-note {
  margin: 13px 0 0;
  padding: 13px 15px;
  border-radius: 9px;
  color: #747d8e;
  font-size: 10px;
  line-height: 1.8;
}

.install-note {
  border: 1px solid #e7e9f2;
  background: #fff;
}

.install-note strong {
  color: #4d5669;
}

.install-warning {
  border: 1px solid #f0e2c6;
  background: #fffaf1;
  color: #8b744d;
}

.install-config-note {
  padding: 15px 17px;
  border: 1px solid #e2e6f4;
  background: #f9faff;
}

.install-config-note strong {
  color: #46516d;
  font-size: 11px;
}

.install-config-note p {
  margin: 5px 0 0;
}

.install-config-note pre {
  margin: 11px 0 0;
  padding: 12px;
  overflow-x: auto;
  border: 1px solid #e3e7ed;
  border-radius: 7px;
  background: #fff;
  color: #475264;
  font: 11px/1.7 ui-monospace, SFMono-Regular, Consolas, monospace;
}

.install-config-note pre code {
  color: inherit;
  font-size: inherit;
}

.install-checklist {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid #e6e9f1;
  border-radius: 11px;
  background: #fff;
  counter-reset: install-check;
  list-style: none;
}

.install-checklist li {
  position: relative;
  padding: 13px 16px 13px 43px;
  border-bottom: 1px solid #eef0f4;
  color: #747c8d;
  font-size: 10px;
  line-height: 1.75;
  counter-increment: install-check;
}

.install-checklist li:last-child {
  border-bottom: 0;
}

.install-checklist li::before {
  position: absolute;
  top: 13px;
  left: 16px;
  color: #6674dc;
  content: counter(install-check, decimal-leading-zero);
  font-size: 9px;
  font-weight: 750;
}

.install-checklist strong {
  color: #4d5669;
}

.install-checklist a {
  color: #5666d7;
}

.install-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 25px;
}

.install-primary-link {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 9px;
  padding: 0 14px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 650;
  text-decoration: none;
}

.install-primary-link:hover {
  background: #4656d5;
}

.install-secondary-link {
  color: #737b8c;
  font-size: 11px;
  text-decoration: none;
}

.install-secondary-link:hover {
  color: #4f5fd6;
  text-decoration: underline;
}

.install-footer {
  margin-top: 35px;
  padding-top: 15px;
  border-top: 1px solid #e2e5ed;
  color: #9298a6;
  font-size: 10px;
}

.mail-setup-grid article > span {
  color: #818add;
  font-size: 10px;
  font-weight: 700;
}

.mail-setup-grid h3 {
  margin: 10px 0 7px;
  color: #454c5d;
  font-size: 12px;
}

.mail-setup-grid p {
  margin: 0;
  color: #8a90a0;
  font-size: 10px;
  line-height: 1.7;
}

.compose-view {
  min-width: 0;
}

.builder-layout[data-view="compose"] .compose-tools,
.builder-layout[data-view="compose"] .builder-tip,
.builder-layout[data-view="compose"] .builder-inspector,
.builder-layout[data-view="compose"] .canvas-heading,
.builder-layout[data-view="compose"] .canvas-scroller {
  display: none !important;
}

.mail-recipient-field {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  align-items: center;
  gap: 8px 12px;
  padding: 14px 17px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.mail-recipient-field label {
  color: #565f72;
  font-size: 12px;
  font-weight: 650;
}

.mail-recipient-field input {
  width: 100%;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid #e4e7ef;
  border-radius: 7px;
  outline: 0;
  color: #343b4e;
  font: inherit;
  font-size: 13px;
}

.mail-recipient-field input:focus {
  border-color: #aeb7ff;
  box-shadow: 0 0 0 3px #5666e915;
}

.mail-recipient-field input::placeholder {
  color: #a4a9b5;
}

.mail-recipient-field small {
  grid-column: 2;
  color: #9298a7;
  font-size: 10px;
}

.builder-workspace > .board-editor-form {
  gap: 13px;
  margin-top: 13px;
}

.builder-workspace .editor-title-field > input {
  min-height: 43px;
  border-radius: 8px;
  color: #343b4e;
  font-size: 16px;
}

.builder-workspace .editor-title-field > input:focus {
  border-color: #aeb7ff;
  box-shadow: 0 0 0 3px #5666e915;
}

.builder-workspace .editor-tools.editor-tools-floating {
  position: relative;
  left: auto;
  bottom: auto;
  z-index: 1;
  justify-content: flex-start;
  width: 100%;
  min-height: 52px;
  max-height: none;
  transform: none;
  overflow-x: auto;
  overflow-y: hidden;
  border: 0;
  border-bottom: 1px solid #e8ebf2;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
  backdrop-filter: none;
}

.builder-workspace .editor-panel {
  border-color: #e4e7ef;
  border-radius: 11px;
}

.builder-workspace .editor-panel .editor {
  min-height: 340px;
  padding: 22px;
  color: #343b4e;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.8;
}

.builder-workspace .editor-label {
  color: #565f72;
  font-size: 12px;
}

.builder-workspace .attachment-field {
  padding: 14px 16px;
  border: 1px solid #e4e7ef;
  border-radius: 10px;
  background: #fff;
}

.builder-workspace .attachment-field > input[type="file"] {
  width: 100%;
  color: #626a7d;
  font-size: 11px;
}

.builder-workspace .attachment-field > small {
  color: #9298a7;
  font-size: 10px;
}

.builder-workspace .editor-actions {
  justify-content: flex-end;
  margin: 0;
}

.builder-workspace .editor-actions .button {
  min-height: 40px;
  padding: 0 17px;
  border-radius: 8px;
  background: var(--accent);
  font-size: 12px;
}

.builder-workspace .editor-actions .button:disabled {
  cursor: not-allowed;
  background: #d7dbea;
  color: #72798b;
}

.builder-workspace .attachment-preview-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.builder-workspace .attachment-preview-item > span {
  overflow: hidden;
  color: #4c5568;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.builder-panel-heading {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 0 2px 20px;
}

.builder-step {
  display: inline-flex;
  min-width: 20px;
  height: 20px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
}

.builder-panel-heading h1,
.builder-panel-heading h2 {
  margin: 1px 0 5px;
  color: #2b3142;
  font-size: 15px;
}

.builder-panel-heading p {
  margin: 0;
  color: #747d8e;
  font-size: 12px;
}

.block-palette {
  display: grid;
  gap: 2px;
}

.palette-block {
  display: grid;
  min-height: 48px;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 5px 3px;
  border: 0;
  border-bottom: 1px solid #f0f1f5;
  border-radius: 0;
  background: transparent;
  color: #42495b;
  text-align: left;
  transition: color 130ms ease, border-color 130ms ease;
}

.palette-block:hover {
  border-bottom-color: #c9ceff;
  background: transparent;
  color: var(--accent);
}

.palette-block:active {
  cursor: grabbing;
}

.palette-icon {
  display: inline-flex;
  width: 20px;
  height: 22px;
  align-items: center;
  justify-content: flex-start;
  border-radius: 0;
  background: transparent;
  color: #5967de;
  font-size: 14px;
  font-weight: 700;
}

.palette-icon-lines {
  color: #39947d;
}

.palette-icon-button {
  color: #df8c37;
}

.palette-icon-divider {
  color: #8d68b0;
}

.palette-block strong,
.palette-block small {
  display: block;
}

.palette-block strong {
  margin-bottom: 2px;
  font-size: 12px;
}

.palette-block small {
  color: #969bab;
  font-size: 10px;
}

.palette-block > b {
  padding-right: 3px;
  color: #9da2b0;
  font-size: 17px;
  font-weight: 400;
}

.builder-tip {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding: 10px 2px 0;
  border-radius: 0;
  border-top: 1px solid #f0f1f5;
  background: transparent;
  color: #777e96;
  font-size: 10px;
  line-height: 1.6;
}

.builder-tip span {
  color: var(--accent);
}

.builder-workspace {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  padding: 24px clamp(16px, 3vw, 40px);
  overflow: auto;
}

.builder-campaign {
  display: grid;
  grid-template-columns: 83px minmax(0, 1fr);
  align-items: center;
  gap: 8px 12px;
  padding: 15px 17px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.builder-campaign label {
  color: #797f90;
  font-size: 11px;
}

.builder-campaign input {
  width: 100%;
  min-width: 0;
  padding: 8px 9px;
  border: 1px solid transparent;
  border-radius: 7px;
  outline: 0;
  color: #343b4e;
  font-size: 12px;
}

.builder-campaign input:focus {
  border-color: #c9ceff;
  background: #fafaff;
}

.builder-campaign input::placeholder {
  color: #a4a9b5;
}

.canvas-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 24px 1px 13px;
}

.canvas-heading > div {
  display: flex;
  align-items: center;
  gap: 9px;
}

.canvas-heading strong {
  color: #42495a;
  font-size: 12px;
}

.canvas-heading > span {
  color: #989eac;
  font-size: 10px;
}

.canvas-scroller {
  display: flex;
  min-height: 320px;
  flex: 1;
  justify-content: center;
  padding: 18px;
  overflow: auto;
  border: 1px solid #e4e7ef;
  border-radius: 13px;
  background-color: #eceff5;
  background-image: radial-gradient(#d5d9e3 0.8px, transparent 0.8px);
  background-size: 16px 16px;
}

.email-canvas {
  position: relative;
  width: min(100%, 620px);
  min-height: 100%;
  padding: 30px 28px;
  border: 1px solid #e9ebf0;
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 5px 22px #242b3d12;
  transition: width 180ms ease;
}

.email-canvas--mobile {
  width: min(100%, 375px);
}

.canvas-drop-hint {
  display: grid;
  min-height: 260px;
  place-items: center;
  padding: 30px;
  color: #a0a5b2;
  font-size: 12px;
  text-align: center;
  line-height: 1.7;
}

.canvas-block {
  position: relative;
  margin: 0 -12px 8px;
  padding: 12px;
  border: 1px solid transparent;
  border-radius: 7px;
  cursor: grab;
}

.canvas-block:hover,
.canvas-block.selected {
  border-color: #aeb5ff;
  background: #f8f8ff;
}

.canvas-block.dragging {
  opacity: 0.45;
}

.canvas-block h2 {
  margin: 0;
  color: #252b3a;
  font-size: 27px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.canvas-block p {
  margin: 0;
  color: #535a6b;
  font-size: 14px;
  line-height: 1.75;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.canvas-block hr {
  margin: 9px 0;
  border: 0;
  border-top: 1px solid #e4e7ef;
}

.email-preview-button {
  display: inline-block;
  padding: 11px 17px;
  border-radius: 7px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

.canvas-block-controls {
  position: absolute;
  top: -13px;
  right: 3px;
  display: none;
  align-items: center;
  gap: 4px;
  padding: 2px 4px;
  border: 1px solid #e3e5f1;
  border-radius: 6px;
  background: #fff;
  color: #8c92a2;
  font-size: 13px;
}

.canvas-block:hover .canvas-block-controls,
.canvas-block.selected .canvas-block-controls {
  display: flex;
}

.canvas-block-controls button {
  padding: 3px 5px;
  border: 0;
  border-radius: 4px;
  background: #fff;
  color: #a54b57;
  font-size: 10px;
}

.canvas-block-controls button:hover {
  background: #fff1f2;
}

.inspector-content {
  display: grid;
  gap: 17px;
}

.inspector-empty {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 34px 5px;
  color: #989eac;
  font-size: 11px;
  text-align: center;
  line-height: 1.7;
}

.inspector-empty > span {
  color: #7983e7;
  font-size: 22px;
}

.inspector-empty p {
  margin: 0;
}

.inspector-field {
  display: grid;
  gap: 8px;
}

.inspector-field > span {
  color: #646b7c;
  font-size: 11px;
  font-weight: 600;
}

.inspector-field input,
.inspector-field textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #e4e7ef;
  border-radius: 8px;
  outline: 0;
  color: #343b4e;
  font-size: 12px;
  line-height: 1.6;
}

.inspector-field input:focus,
.inspector-field textarea:focus {
  border-color: #aeb5ff;
  box-shadow: 0 0 0 3px #5666e910;
}

.inspector-field textarea {
  resize: vertical;
}

.inspector-help {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: #969bab;
  font-size: 10px;
  line-height: 1.6;
}

.builder-toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 3;
  max-width: min(420px, calc(100vw - 32px));
  padding: 12px 16px;
  border-radius: 9px;
  background: #283149;
  box-shadow: 0 8px 24px #17213a33;
  color: #fff;
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.builder-toast.visible {
  opacity: 1;
  transform: translateY(0);
}

.builder-toast.error {
  background: #a5424b;
}

.builder-preview-dialog {
  width: min(620px, calc(100vw - 28px));
  max-width: none;
  max-height: min(780px, calc(100vh - 28px));
  padding: 0;
  overflow: auto;
  border: 1px solid #e4e7ef;
  border-radius: 15px;
  background: #f3f5f9;
  box-shadow: 0 24px 80px #1f294333;
}

.builder-preview-dialog::backdrop {
  background: #17213a66;
  backdrop-filter: blur(2px);
}

.preview-dialog-header {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.preview-dialog-header strong {
  color: #343b4d;
  font-size: 13px;
}

.preview-dialog-meta {
  display: grid;
  gap: 6px;
  padding: 18px 20px 12px;
  color: #8990a0;
  font-size: 10px;
}

.preview-dialog-meta strong {
  color: #343b4d;
  font-size: 15px;
}

.preview-email-canvas {
  display: grid;
  gap: 15px;
  width: calc(100% - 32px);
  min-height: 180px;
  margin: 0 16px;
  padding: 26px;
  border-radius: 7px;
  background: #fff;
  color: #41485b;
}

.preview-email-canvas h2 {
  margin: 0;
  color: #252b3a;
  font-size: 25px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.preview-email-canvas p {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.preview-email-canvas hr {
  width: 100%;
  border: 0;
  border-top: 1px solid #e4e7ef;
}

.preview-dialog-note {
  margin: 12px 18px 18px;
  color: #9298a8;
  font-size: 10px;
  text-align: center;
}

@media (max-width: 1020px) {
  .builder-layout[data-view="compose"] {
    grid-template-columns: 242px minmax(0, 1fr);
  }

  .builder-layout[data-view="compose"] .builder-inspector {
    display: none;
  }

  .builder-layout:not([data-view="compose"]) {
    grid-template-columns: 242px minmax(0, 1fr);
  }

}

@media (max-width: 680px) {
  .install-topbar {
    min-height: 58px;
    padding: 0 14px;
  }

  .install-brand {
    gap: 7px;
  }

  .install-brand .brand-lockup strong {
    font-size: 11px;
  }

  .brand-lockup small {
    font-size: 8px;
  }

  .install-back {
    gap: 5px;
    font-size: 10px;
  }

  .install-main {
    width: min(100% - 30px, 920px);
    padding-top: 35px;
  }

  .install-status {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 10px;
    padding: 14px;
  }

  .install-status-label {
    display: none;
  }

  .install-steps-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3px;
    margin: 18px 0 30px;
  }

  .install-steps-nav a {
    justify-content: flex-start;
    padding: 0 9px;
  }

  .install-options {
    grid-template-columns: 1fr;
  }

  .install-details > div,
  .install-env-list > div {
    grid-template-columns: 1fr;
    gap: 5px;
    padding: 12px 14px;
  }

  .install-section {
    margin-top: 29px;
  }

  .builder-body {
    height: auto;
    min-height: 100vh;
    overflow: auto;
  }

  .builder-topbar {
    position: sticky;
    top: 0;
    height: 60px;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 7px;
    padding: 0 12px;
  }

  .builder-back span {
    display: none;
  }

  .builder-back .brand-lockup {
    display: flex;
    max-width: 118px;
    min-width: 0;
    overflow: hidden;
  }

  .builder-back .brand-lockup span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .builder-title {
    justify-self: center;
    gap: 0;
  }

  .builder-title > span {
    display: none;
  }

  .builder-actions {
    min-width: 0;
    justify-self: end;
    gap: 3px;
  }

  .app-account-nav .account-desktop-link {
    display: none;
  }

  .app-account-nav .account-mobile-link {
    display: inline-flex !important;
    min-height: 32px;
    padding: 0 8px;
  }

  .builder-preview-toggle {
    display: none;
  }

  .builder-send {
    min-height: 35px;
    padding: 0 10px;
    font-size: 10px;
  }

  .builder-layout {
    height: auto;
    min-height: calc(100vh - 60px);
    grid-template-columns: 1fr;
  }

  .builder-layout:not([data-view="compose"]) {
    grid-template-columns: minmax(0, 1fr);
  }

  .domain-page {
    width: min(100% - 32px, 980px);
    padding-top: 34px;
  }

  .domain-answer-card {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 20px;
  }

  .domain-flow,
  .domain-compare {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .domain-section {
    margin-top: 36px;
  }

  .domain-requirements ul {
    padding: 17px;
  }

  .builder-layout[data-view="compose"] .builder-palette {
    order: 2;
    border-top: 1px solid var(--line);
    border-right: 0;
  }

  .mail-recipient-field {
    grid-template-columns: 1fr;
    gap: 7px;
    padding: 12px;
  }

  .mail-recipient-field small {
    grid-column: 1;
  }

  .builder-workspace .editor-panel .editor {
    min-height: 300px;
    padding: 17px;
  }

  .builder-workspace .editor-tools.editor-tools-floating {
    flex-wrap: nowrap;
    justify-content: flex-start;
  }

  .builder-workspace {
    min-height: 570px;
    padding: 17px 12px;
  }

  .builder-inspector {
    display: flex;
    order: 3;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .builder-layout[data-view="compose"] .builder-inspector {
    display: flex;
  }

  .builder-layout:not([data-view="compose"]) .builder-palette {
    order: 0;
    border-top: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .mail-navigation {
    display: flex;
    grid-template-columns: none;
    gap: 4px;
    overflow-x: auto;
    padding-bottom: 3px;
    -webkit-overflow-scrolling: touch;
  }

  .mail-nav-label {
    display: none;
  }

  .builder-layout:not([data-view="compose"]) .builder-palette {
    padding: 9px 12px 6px;
  }

  .builder-layout:not([data-view="compose"]) .builder-panel-heading {
    display: none;
  }

  .mail-nav-item {
    min-height: 36px;
    flex: 0 0 auto;
    gap: 7px;
    padding: 0 9px;
    font-size: 11px;
    white-space: nowrap;
  }

  .mail-nav-item > span:nth-child(2) {
    white-space: nowrap;
  }

  .builder-layout:not([data-view="compose"]) .mail-content-view {
    order: 1;
    min-height: 480px;
    padding: 24px 18px;
  }

  .mail-setup-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .block-palette {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 16px;
  }

  .builder-tip {
    margin-top: 12px;
  }

  .canvas-scroller {
    min-height: 350px;
    padding: 12px;
  }

  .email-canvas {
    padding: 23px 18px;
  }

  .builder-campaign {
    grid-template-columns: 65px minmax(0, 1fr);
    gap: 6px 6px;
    padding: 11px;
  }
}

.dashboard-page-heading {
  align-items: flex-start;
}

.dashboard-intro {
  max-width: 650px;
  margin: 9px 0 0;
  color: #777f8e;
  font-size: 11px;
  line-height: 1.65;
}

.dashboard-signal-band {
  display: grid;
  grid-template-columns: minmax(150px, 0.32fr) minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  margin: -8px 0 24px;
  padding: 11px 15px;
  border: 1px solid #e1e6ea;
  border-radius: 7px;
  background: #fff;
}

.dashboard-signal-copy {
  display: grid;
  gap: 4px;
}

.dashboard-signal-copy span {
  color: #8a939e;
  font-size: 8px;
  font-weight: 700;
}

.dashboard-signal-copy strong {
  color: #4b5e6d;
  font-size: 10px;
  font-weight: 700;
}

.dashboard-signal-rail {
  position: relative;
  height: 18px;
  overflow: hidden;
}

.dashboard-signal-rail::before,
.dashboard-signal-rail::after {
  position: absolute;
  top: 8px;
  left: 0;
  height: 2px;
  content: "";
}

.dashboard-signal-rail::before {
  width: 100%;
  background: #e6eaed;
}

.dashboard-signal-rail::after {
  width: 22%;
  background: #6a879a;
  animation: dashboard-signal-sweep 3.8s ease-in-out infinite;
}

.dashboard-signal-rail i {
  position: absolute;
  z-index: 1;
  top: 4px;
  width: 10px;
  height: 10px;
  border: 2px solid #7893a4;
  border-radius: 50%;
  background: #fff;
  animation: dashboard-signal-pulse 2.4s ease-in-out infinite;
}

.dashboard-signal-rail i:nth-child(1) {
  left: 0;
}

.dashboard-signal-rail i:nth-child(2) {
  left: 50%;
  animation-delay: 0.45s;
}

.dashboard-signal-rail i:nth-child(3) {
  right: 0;
  animation-delay: 0.9s;
}

@keyframes dashboard-signal-sweep {
  from { transform: translateX(-105%); }
  to { transform: translateX(560%); }
}

@keyframes dashboard-signal-pulse {
  0%, 100% { box-shadow: 0 0 0 0 #6a879a00; }
  50% { box-shadow: 0 0 0 4px #6a879a20; }
}

@media (prefers-reduced-motion: reduce) {
  .dashboard-signal-rail::after,
  .dashboard-signal-rail i {
    animation: none;
  }
}

.dashboard-message-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 25px;
}

.dashboard-section {
  min-width: 0;
}

.dashboard-section-heading {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.dashboard-section-heading > div:first-child {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.dashboard-section-heading h2,
.dashboard-routing-note h2 {
  margin: 0;
  color: #303849;
  font-size: 15px;
}

.dashboard-status {
  font-size: 9px;
}

.dashboard-section-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 9px;
}

.dashboard-section-actions > a,
.dashboard-routing-note > a {
  color: #526678;
  font-size: 10px;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}

.dashboard-section-actions > a:hover,
.dashboard-routing-note > a:hover {
  color: #354f65;
  text-decoration: underline;
}

.dashboard-refresh-button {
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid #e1e5eb;
  border-radius: 6px;
  background: #fff;
  color: #667182;
  font-size: 16px;
}

.dashboard-refresh-button:hover {
  border-color: #bac8d2;
  color: #354f65;
}

.dashboard-refresh-button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.dashboard-message-list {
  min-height: 278px;
  overflow: hidden;
  border: 1px solid #e2e6eb;
  border-radius: 8px;
  background: #fff;
}

.dashboard-message-row {
  display: flex;
  min-height: 55px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 13px;
  border-bottom: 1px solid #edf0f3;
  color: inherit;
  text-decoration: none;
}

.dashboard-message-row:last-child {
  border-bottom: 0;
}

.dashboard-message-row:hover {
  background: #f8fafb;
}

.dashboard-message-main {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.dashboard-message-main strong,
.dashboard-message-main small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-message-main strong {
  color: #343c4b;
  font-size: 11px;
}

.dashboard-message-main small {
  color: #7e8795;
  font-size: 10px;
}

.dashboard-message-row time {
  flex: 0 0 auto;
  color: #9299a4;
  font-size: 9px;
}

.dashboard-empty {
  display: grid;
  min-height: 120px;
  align-content: center;
  justify-items: center;
  gap: 7px;
  padding: 16px;
  color: #747d8b;
  text-align: center;
}

.dashboard-empty strong {
  color: #414a59;
  font-size: 11px;
}

.dashboard-empty p {
  max-width: 360px;
  margin: 0;
  font-size: 9px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.dashboard-empty a {
  color: #4e6d84;
  font-size: 9px;
  font-weight: 650;
  text-decoration: none;
}

.dashboard-routing-note {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-top: 30px;
  padding: 18px 0 0;
  border-top: 1px solid #e2e6ec;
}

.dashboard-routing-note .mail-page-eyebrow {
  margin-bottom: 6px;
}

.dashboard-routing-note p:last-child {
  max-width: 720px;
  margin: 8px 0 0;
  color: #78818f;
  font-size: 10px;
  line-height: 1.75;
}

.inbox-compose-link {
  padding: 0 13px;
  color: #fff;
  font-size: 11px;
  text-decoration: none;
}

.inbox-message-list {
  overflow: hidden;
  border: 1px solid #e3e7ed;
  border-radius: 8px;
  background: #fff;
}

.inbox-message-row {
  display: grid;
  width: 100%;
  min-height: 64px;
  grid-template-columns: minmax(145px, 0.35fr) minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border: 0;
  border-bottom: 1px solid #edf0f3;
  background: #fff;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.inbox-message-row:last-child {
  border-bottom: 0;
}

.inbox-message-row:hover,
.inbox-message-row.unread {
  background: #f8fafb;
}

.inbox-message-sender,
.inbox-message-copy strong,
.inbox-message-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inbox-message-sender {
  color: #5d6775;
  font-size: 11px;
}

.inbox-message-row.unread .inbox-message-sender,
.inbox-message-row.unread .inbox-message-copy strong {
  color: #303949;
  font-weight: 700;
}

.inbox-message-copy {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.inbox-message-copy strong {
  color: #434c5a;
  font-size: 11px;
}

.inbox-message-copy small {
  color: #9299a4;
  font-size: 9px;
}

.inbox-message-view {
  margin-top: 16px;
  padding: 18px;
  border: 1px solid #e3e7ed;
  border-radius: 8px;
  background: #fff;
}

.mail-open-subject {
  margin: 15px 0 10px;
  color: #303949;
  font-size: 19px;
  overflow-wrap: anywhere;
}

.mail-open-meta {
  margin: 0;
  padding-bottom: 12px;
  border-bottom: 1px solid #e8ebef;
  color: #78818f;
  font-size: 10px;
  overflow-wrap: anywhere;
}

.mail-open-body {
  margin: 0;
  padding-top: 16px;
  color: #434c59;
  font: inherit;
  font-size: 12px;
  line-height: 1.75;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.app-catalog-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  color: #7b8592;
  font-size: 10px;
}

.app-catalog-summary span:first-child {
  color: #445b6c;
  font-weight: 700;
}

.app-catalog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}

.app-catalog-item {
  display: flex;
  min-width: 0;
  min-height: 218px;
  flex-direction: column;
  padding: 18px;
  border: 1px solid #e2e6eb;
  border-radius: 8px;
  background: #fff;
}

.app-catalog-item-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.app-catalog-mark {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border-radius: 7px;
  background: #eef2f4;
  color: #516c7d;
  font-size: 13px;
  font-weight: 700;
}

.app-catalog-type {
  color: #85909b;
  font-size: 8px;
  font-weight: 700;
}

.app-catalog-item h2 {
  margin: 15px 0 7px;
  color: #303949;
  font-size: 15px;
}

.app-catalog-item > p {
  margin: 0;
  color: #77818e;
  font-size: 10px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.app-catalog-item-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 16px;
}

.app-catalog-item-footer > span {
  color: #8a939f;
  font-size: 9px;
}

.app-catalog-item-footer > a,
.app-reference-links > a {
  color: #4c6b80;
  font-size: 10px;
  font-weight: 650;
  text-decoration: none;
}

.app-catalog-item-footer > a:hover,
.app-reference-links > a:hover {
  text-decoration: underline;
}

.app-detail-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e3e7eb;
  color: #7d8792;
  font-size: 10px;
}

.app-detail-status > a {
  color: #4c6b80;
  font-weight: 650;
  text-decoration: none;
}

.app-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.app-detail-section {
  min-width: 0;
}

.app-detail-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 16px 18px;
  border: 1px solid #e3e7eb;
  border-radius: 8px;
  background: #fff;
  color: #6f7a87;
  font-size: 10px;
  line-height: 1.7;
  list-style: none;
}

.app-detail-list li {
  position: relative;
  padding-left: 14px;
}

.app-detail-list li::before {
  position: absolute;
  top: 0;
  left: 0;
  color: #668294;
  content: "•";
}

.app-reference-section {
  margin-top: 27px;
  padding-top: 17px;
  border-top: 1px solid #e2e6eb;
}

.app-reference-section h2 {
  margin: 0 0 12px;
  color: #394352;
  font-size: 14px;
}

.app-reference-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.installer-check-mark {
  display: inline-grid;
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  place-items: center;
  margin-right: 8px;
  border-radius: 50%;
  font-size: 10px;
}

.installer-check-mark.ready {
  background: #e7f1ec;
  color: #47745b;
}

.installer-check-mark.missing {
  background: #fbf0df;
  color: #9a7138;
}

.installer-check-list > div > strong {
  display: flex;
  align-items: center;
}

.installer-account-note {
  margin: 0 0 14px;
}

.installer-admin-form {
  display: grid;
  max-width: 560px;
  gap: 12px;
  padding: 18px;
  border: 1px solid #e3e7eb;
  border-radius: 8px;
  background: #fff;
}

.installer-form-note {
  margin: 0;
  color: #848d98;
  font-size: 9px;
  line-height: 1.65;
}

.installer-reinstall-toggle {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid #e3e7eb;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.installer-reinstall-toggle input {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  margin: 1px 0 0;
  accent-color: #526e80;
}

.installer-reinstall-toggle span {
  display: grid;
  gap: 4px;
}

.installer-reinstall-toggle strong {
  color: #475361;
  font-size: 10px;
}

.installer-reinstall-toggle small {
  color: #848d98;
  font-size: 9px;
  line-height: 1.55;
}

.installer-reinstall-notice {
  margin-top: 9px;
  padding: 10px 13px;
  border: 1px solid #e3e7eb;
  border-radius: 6px;
  background: #fff;
  color: #76818d;
  font-size: 9px;
  line-height: 1.6;
}

.installer-reinstall-notice.selected {
  border-color: #eddfc5;
  background: #fffaf1;
  color: #876f4c;
}

@media (max-width: 900px) {
  .app-catalog-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .dashboard-signal-band {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    margin-bottom: 19px;
    padding: 10px 12px;
  }

  .dashboard-signal-copy {
    grid-template-columns: auto 1fr;
    align-items: baseline;
    gap: 10px;
  }

  .dashboard-signal-rail {
    min-width: 0;
  }

  .app-catalog-item {
    min-height: 195px;
    padding: 15px;
  }

  .app-detail-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .app-reference-links {
    display: grid;
    gap: 10px;
  }
}

.account-nav {
  display: flex;
  align-items: center;
  gap: 7px;
}

.account-nav a {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 1px solid #dfe5ea;
  border-radius: 6px;
  background: #fff;
  color: #4c5d6b;
  font-size: 10px;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}

.account-nav a:hover,
.account-nav a.active {
  border-color: #b7c8d2;
  background: #f0f5f7;
  color: #354f65;
}

.account-nav .account-signup-link,
.account-page-nav a:last-child {
  border-color: #486982;
  background: #486982;
  color: #fff;
}

.account-nav .account-signup-link:hover,
.account-page-nav a:last-child:hover {
  border-color: #36556e;
  background: #36556e;
  color: #fff;
}

.account-mobile-link {
  display: none !important;
}

.account-main {
  width: min(100% - 40px, 980px);
  margin: 0 auto;
  padding: 54px 0 42px;
}

.account-hero {
  max-width: 720px;
}

.account-status {
  margin-bottom: 20px;
}

.account-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 16px;
}

.account-form-panel {
  min-width: 0;
  padding: 20px;
  scroll-margin-top: 85px;
  border: 1px solid #e2e6eb;
  border-radius: 8px;
  background: #fff;
}

.account-form-panel.selected {
  border-color: #b8c8d2;
  box-shadow: 0 0 0 2px #4869820b;
}

.account-form-heading {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-bottom: 17px;
}

.account-form-heading > span {
  display: grid;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  place-items: center;
  border-radius: 7px;
  background: #eff3f5;
  color: #526b7d;
  font-size: 9px;
  font-weight: 700;
}

.account-form-heading h2 {
  margin: 1px 0 4px;
  color: #303949;
  font-size: 15px;
}

.account-form-heading p {
  margin: 0;
  color: #828b98;
  font-size: 10px;
}

.account-form-panel form {
  display: grid;
  gap: 12px;
}

.account-field {
  display: grid;
  gap: 6px;
  color: #5e6876;
  font-size: 10px;
  font-weight: 650;
}

.account-field input {
  width: 100%;
  min-width: 0;
  height: 39px;
  padding: 0 10px;
  border: 1px solid #e0e5e9;
  border-radius: 6px;
  background: #f7f8f9;
  color: #697481;
  font: inherit;
  font-weight: 400;
}

.account-field input:disabled {
  cursor: not-allowed;
  opacity: 1;
}

.account-remember {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #7d8793;
  font-size: 10px;
}

.account-submit {
  min-height: 39px;
  border: 0;
  border-radius: 6px;
  background: #dce2e6;
  color: #65717c;
  font-size: 10px;
  font-weight: 650;
}

.account-submit:disabled {
  cursor: not-allowed;
}

.account-form-switch {
  display: inline-block;
  margin-top: 14px;
  color: #526b7d;
  font-size: 10px;
  text-decoration: none;
}

.account-form-switch:hover {
  text-decoration: underline;
}

.account-integration-note {
  margin-top: 27px;
  padding-top: 18px;
  border-top: 1px solid #e2e6eb;
}

.account-integration-note h2 {
  margin: 0;
  color: #394352;
  font-size: 14px;
}

.account-integration-note p:not(.mail-page-eyebrow) {
  max-width: 760px;
  margin: 8px 0 10px;
  color: #78818e;
  font-size: 10px;
  line-height: 1.75;
}

.account-integration-note > a {
  color: #526b7d;
  font-size: 10px;
  font-weight: 650;
  text-decoration: none;
}

.account-integration-note > a:hover {
  text-decoration: underline;
}

@media (max-width: 680px) {
  .account-page-nav {
    gap: 4px;
  }

  .account-page-nav a {
    min-height: 30px;
    padding: 0 8px;
    font-size: 9px;
  }

  .account-main {
    width: min(100% - 30px, 980px);
    padding: 34px 0;
  }

  .account-form-grid {
    grid-template-columns: 1fr;
    gap: 11px;
  }

  .account-form-panel {
    padding: 16px;
  }
}

@media (max-width: 900px) {
  .dashboard-message-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 680px) {
  .dashboard-page-heading {
    flex-direction: column;
  }

  .dashboard-message-list {
    min-height: 220px;
  }

  .dashboard-routing-note {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .inbox-message-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 5px;
  }

  .inbox-message-view {
    padding: 14px;
  }
}

.push-heading-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.push-guide-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #526678;
  font-size: 10px;
  text-decoration: none;
  white-space: nowrap;
}

.push-guide-link:hover {
  color: #354f65;
  text-decoration: underline;
}

.push-thread {
  display: flex;
  width: min(100%, 1040px);
  height: calc(100vh - 245px);
  min-height: 490px;
  flex-direction: column;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid #e3e7ed;
  border-radius: 8px;
  background: #fff;
}

.push-thread-header {
  display: flex;
  min-height: 62px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 20px;
  border-bottom: 1px solid #e8ebf0;
}

.push-thread-header > div {
  display: grid;
  gap: 4px;
}

.push-thread-header strong {
  color: #2c3341;
  font-size: 13px;
}

.push-thread-header small,
.push-thread-header > span {
  color: #838b99;
  font-size: 10px;
}

.push-message-list {
  display: flex;
  min-height: 250px;
  flex: 1;
  flex-direction: column;
  gap: 14px;
  overflow: auto;
  padding: 22px clamp(16px, 4vw, 48px);
  background: repeating-linear-gradient(0deg, #f8f9fa, #f8f9fa 1px, #fbfbfc 1px, #fbfbfc 38px);
}

.push-empty-state {
  display: grid;
  min-height: 220px;
  align-content: center;
  justify-items: center;
  gap: 8px;
  padding: 22px;
  color: #707989;
  text-align: center;
}

.push-empty-state > span {
  margin-bottom: 6px;
  color: #6682a0;
  font-size: 28px;
}

.push-empty-state strong {
  color: #394253;
  font-size: 13px;
}

.push-empty-state p {
  max-width: 470px;
  margin: 0;
  font-size: 11px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.push-message-row {
  display: flex;
  width: 100%;
}

.push-message-row.is-sent {
  justify-content: flex-end;
}

.push-message-bubble {
  width: fit-content;
  max-width: min(78%, 650px);
  padding: 13px 15px 10px;
  border: 1px solid #e1e5eb;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 2px 6px #26324708;
}

.push-message-row.is-sent .push-message-bubble {
  border-color: #d3e2ed;
  background: #edf5f8;
}

.push-message-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.push-message-heading strong {
  min-width: 0;
  color: #303949;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.push-priority-tag {
  flex: 0 0 auto;
  color: #7a8492;
  font-size: 9px;
}

.push-message-body {
  margin: 9px 0 12px;
  color: #434d5c;
  font-size: 12px;
  line-height: 1.65;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.push-message-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: #89919d;
  font-size: 9px;
}

.push-compose-form {
  display: grid;
  gap: 12px;
  padding: 16px 20px;
  border-top: 1px solid #e8ebf0;
  background: #fff;
}

.push-form-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 12px;
}

.push-compose-form label {
  display: grid;
  min-width: 0;
  gap: 6px;
  color: #606a79;
  font-size: 10px;
  font-weight: 650;
}

.push-compose-form input,
.push-compose-form select,
.push-compose-form textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid #dfe4ea;
  border-radius: 6px;
  outline: 0;
  background: #fff;
  color: #303949;
  font-size: 12px;
}

.push-compose-form input,
.push-compose-form select {
  height: 37px;
  padding: 0 10px;
}

.push-compose-form textarea {
  min-height: 76px;
  padding: 10px;
  resize: vertical;
  line-height: 1.55;
}

.push-compose-form input:focus,
.push-compose-form select:focus,
.push-compose-form textarea:focus {
  border-color: #8ca2b5;
  box-shadow: 0 0 0 3px #6682a014;
}

.push-compose-form input:disabled,
.push-compose-form select:disabled,
.push-compose-form textarea:disabled {
  background: #f5f6f7;
  color: #9299a4;
  cursor: not-allowed;
}

.push-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.push-form-footer small {
  color: #89919d;
  font-size: 9px;
  line-height: 1.5;
}

.push-send-button {
  display: inline-flex;
  min-height: 37px;
  align-items: center;
  gap: 7px;
  padding: 0 13px;
  border: 0;
  border-radius: 6px;
  background: #486982;
  color: #fff;
  font-size: 11px;
  font-weight: 650;
  white-space: nowrap;
}

.push-send-button:hover:not(:disabled) {
  background: #36556e;
}

.push-send-button:disabled,
.mail-refresh-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

@media (max-width: 680px) {
  .push-page-heading {
    align-items: flex-start;
  }

  .push-heading-actions {
    flex-direction: column-reverse;
    align-items: flex-end;
    gap: 6px;
  }

  .push-thread {
    height: calc(100dvh - 285px);
    min-height: 460px;
  }

  .push-thread-header {
    min-height: 56px;
    padding: 10px 13px;
  }

  .push-thread-header > span {
    max-width: 125px;
    text-align: right;
  }

  .push-message-list {
    min-height: 200px;
    padding: 15px 12px;
  }

  .push-message-bubble {
    max-width: 90%;
    padding: 11px 12px 9px;
  }

  .push-compose-form {
    gap: 10px;
    padding: 12px;
  }

  .push-form-fields {
    grid-template-columns: minmax(0, 1fr) 105px;
    gap: 8px;
  }

  .push-form-footer {
    align-items: flex-end;
  }

  .push-form-footer small {
    max-width: 190px;
  }
}
