:root {
  --paper: #fff;
  --canvas: #f6f7fb;
  --sidebar: #f9fafc;
  --ink: #252b3c;
  --muted: #818798;
  --line: #e9ecf2;
  --accent: #5754d9;
  --accent-soft: #eeedfd;
  --green: #4b9b80;
  --bs-primary: #5754d9;
  --bs-primary-rgb: 87, 84, 217;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}
button,
input,
select {
  font: inherit;
}
a {
  color: var(--accent);
  text-decoration: none;
}
button {
  touch-action: manipulation;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid #aaa7f3;
  outline-offset: 3px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
.icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-library {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.text-muted {
  color: var(--muted) !important;
}
.small-pill {
  display: inline-flex;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.1px;
  padding: 5px 7px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 5px;
}
.eyebrow {
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 1.7px;
  color: var(--muted);
}
.btn {
  border-radius: 8px;
  font-weight: 550;
  font-size: 13px;
  padding: 10px 18px;
}
.btn-primary {
  --bs-btn-bg: var(--accent);
  --bs-btn-border-color: var(--accent);
  --bs-btn-hover-bg: #4542c4;
  --bs-btn-hover-border-color: #4542c4;
  --bs-btn-disabled-bg: var(--accent);
  --bs-btn-disabled-border-color: var(--accent);
}
.btn-outline-secondary {
  --bs-btn-color: #626a7e;
  --bs-btn-border-color: #dfe3ec;
  --bs-btn-hover-bg: #f2f2fb;
  --bs-btn-hover-color: #4542c4;
  --bs-btn-hover-border-color: #c5c3ed;
}
.btn-sm {
  padding: 6px 10px;
  font-size: 12px;
}
.form-control,
.form-select {
  border-color: #e0e4ec;
  border-radius: 8px;
  font-size: 13px;
  padding: 11px 12px;
  color: var(--ink);
}
.form-control:focus,
.form-select:focus {
  border-color: #aba8ef;
  box-shadow: 0 0 0 3px #5754d911;
}
.form-label {
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 9px;
}
.form-control::placeholder {
  color: #a3a9b8;
}
.form-text {
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
}
.alert {
  border-radius: 8px;
}
.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  z-index: 9999;
  background: var(--accent);
  color: white;
  padding: 12px;
}
.skip-link:focus {
  top: 8px;
}
.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  border-radius: 7px;
  color: #858b9c;
  cursor: pointer;
}
.icon-button:hover {
  background: #f0f0f9;
  color: var(--accent);
}
.icon-button .icon {
  width: 18px;
  height: 18px;
}
.text-button {
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--accent);
  font-size: 12px;
  cursor: pointer;
}
.rotate-180 {
  transform: rotate(180deg);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 19px;
  font-weight: 750;
  letter-spacing: -0.8px;
  white-space: nowrap;
}
.brand-light {
  font-weight: 400;
  margin-left: 3px;
}
.brand-dot {
  color: var(--accent);
}
.brand-mark {
  width: 35px;
  height: 35px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: white;
  border-radius: 11px;
  box-shadow: 0 4px 9px #5754d922;
}
.brand-mark .icon {
  width: 21px;
  height: 21px;
  stroke-width: 1.6;
}
.app-header {
  height: 64px;
  padding: 0 31px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: white;
  gap: 42px;
}
.receive-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #8a90a0;
}
.header-account {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 13px;
}
.header-divider {
  height: 23px;
  width: 1px;
  background: var(--line);
  margin: 0 4px;
}
.avatar {
  display: inline-flex;
  width: 39px;
  height: 39px;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  background: #eeedfc;
  color: #7b74bd;
  font-size: 15px;
  font-weight: 600;
  flex-shrink: 0;
}
.avatar-small {
  width: 32px;
  height: 32px;
  font-size: 12px;
  border-radius: 11px;
  background: #eee9e2;
  color: #9b8066;
}
.user-link {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-size: 12px;
}
.header-account form {
  margin: 0;
}
.global-error {
  padding: 12px 22px;
  background: #fff1ef;
  color: #9d514a;
  font-size: 12px;
  display: flex;
  gap: 15px;
  align-items: center;
}
.app-content {
  min-height: calc(100dvh - 64px);
}
.mail-workspace {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  height: calc(100dvh - 64px);
  min-height: 0;
}
.mail-sidebar {
  min-width: 0;
  background: var(--sidebar);
  padding: 33px 19px 19px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  overflow-y: auto;
}
.workspace-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 9px;
  letter-spacing: 1.2px;
  font-weight: 650;
  color: #9399a7;
  padding: 0 8px;
  margin-bottom: 19px;
}
.workspace-label .small-pill {
  font-size: 8px;
  padding: 3px 5px;
  letter-spacing: 0.6px;
}
.mailbox-select {
  font-size: 11px;
  border: 1px solid #e5e7ef;
  background-color: white;
  box-shadow: 0 2px 3px #20263503;
  padding: 11px 26px 11px 10px;
}
.sidebar-divider {
  height: 1px;
  background: var(--line);
  margin: 25px 7px 16px;
}
.folder-nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.folder-link {
  width: 100%;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #848a99;
  min-height: 41px;
  display: flex;
  gap: 12px;
  align-items: center;
  text-align: left;
  padding: 10px 12px;
  font-size: 12px;
  cursor: pointer;
}
.folder-link .icon {
  width: 18px;
  height: 18px;
}
.folder-link > span:not(.folder-count):not(.muted-count) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.folder-link:hover {
  background: #f0f1f7;
  color: var(--ink);
}
.folder-link.active {
  color: var(--accent);
  background: var(--accent-soft);
  font-weight: 600;
}
.folder-count {
  margin-left: auto;
  border-radius: 5px;
  background: var(--accent);
  color: #fff;
  padding: 2px 5px;
  font-size: 10px;
  min-width: 21px;
  text-align: center;
}
.muted-count {
  margin-left: auto;
  font-size: 10px;
  color: #a0a5b2;
}
.sidebar-section-title {
  font-size: 9px;
  font-weight: 650;
  color: #9da3b0;
  letter-spacing: 1px;
  margin: 32px 12px 12px;
}
.new-folder {
  font-size: 12px;
  color: #9a9faf;
  margin: 12px;
}
.new-folder summary {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  list-style: none;
}
.new-folder summary::-webkit-details-marker {
  display: none;
}
.new-folder .icon {
  width: 16px;
  height: 16px;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 34px;
}
.receive-card {
  padding: 18px 15px;
  background: linear-gradient(145deg, #f0eefb, #f5f3fc);
  border: 1px solid #eae7f5;
  border-radius: 10px;
  position: relative;
}
.receive-card-icon {
  display: block;
  color: #9990cc;
  margin-bottom: 10px;
}
.receive-card strong {
  font-size: 11px;
  font-weight: 600;
  color: #77708e;
}
.receive-card p {
  font-size: 10px;
  line-height: 1.8;
  color: #a29bb3;
  margin: 8px 0 15px;
}
.receive-card > span:last-child {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 9px;
  color: #9689ae;
}
.receive-card .status-dot {
  background: #9b8bc2;
  width: 5px;
  height: 5px;
}
.settings-link {
  margin-top: 13px;
}
.mail-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  background: #fff;
}
.mail-header {
  display: grid;
  grid-template-columns: minmax(170px, 1fr) minmax(240px, 470px) auto;
  gap: 24px;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.mail-heading {
  padding: 0;
  display: block;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
}
.mail-heading h1 {
  font-size: 22px;
  letter-spacing: -0.9px;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 4px;
}
.mail-heading p {
  font-size: 11px;
  color: #9ca2b1;
  margin: 0;
  line-height: 1.5;
}
.heading-dot {
  margin: 0 7px;
  color: #c9ced7;
}
.refresh-button {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #e4e7ef;
  border-radius: 7px;
  background: white;
  color: #798092;
  padding: 9px 13px;
  font-size: 11px;
  align-self: center;
  margin-bottom: 0;
  min-height: 38px;
}
.refresh-button:hover {
  background: var(--canvas);
}
.refresh-button .icon {
  width: 14px;
  height: 14px;
}
.search-toolbar {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0;
  border-bottom: 0;
  min-width: 0;
}
.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  max-width: none;
  background: #f7f8fb;
  border: 1px solid #eef0f5;
  border-radius: 8px;
  padding: 0 9px 0 12px;
  min-height: 38px;
}
.search-box > .icon {
  width: 16px;
  height: 16px;
  color: #a1a8b8;
}
.search-box input {
  background: transparent;
  outline: none;
  border: 0;
  flex: 1;
  min-width: 0;
  font-size: 11px;
  padding: 9px 0;
  color: var(--ink);
}
.search-box:focus-within {
  border-color: #a9a6e8;
}
.search-box input::placeholder {
  color: #a0a6b4;
}
.search-submit {
  font-size: 10px;
  border: 1px solid #e6e8f0;
  background: white;
  border-radius: 5px;
  padding: 4px 8px;
  color: #8a8fa4;
}
.query-indicator {
  background: #f7f6ff;
  padding: 9px 32px;
  color: #75718f;
  font-size: 11px;
}
.query-indicator button {
  margin-left: 15px;
}
.mail-split {
  display: grid;
  grid-template-columns: minmax(290px, 36%) minmax(0, 1fr);
  flex: 1;
  min-height: 0;
}
.message-list {
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  min-width: 0;
}
.list-caption {
  display: flex;
  justify-content: space-between;
  padding: 17px 23px 14px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 1.2px;
  color: #a1a7b5;
}
.list-caption span + span {
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0;
  color: #b1b6c2;
}
.message-rows {
  flex: 1;
}
.message-row {
  position: relative;
  display: flex;
  text-align: left;
  gap: 12px;
  width: 100%;
  background: #fff;
  border: 0;
  border-bottom: 1px solid #f0f1f5;
  padding: 21px 20px;
  color: var(--ink);
  min-height: 132px;
  cursor: pointer;
  transition: background 0.15s;
}
.message-row:hover {
  background: #fafaff;
}
.message-row.selected {
  background: #f5f4fe;
}
.message-row.selected:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent);
}
.message-avatar {
  width: 33px;
  height: 33px;
  border-radius: 11px;
  font-size: 12px;
  margin-top: 1px;
}
.avatar-alt {
  background: #e8f1ee;
  color: #75a18d;
}
.avatar-warm {
  background: #f8eee4;
  color: #c69e78;
}
.message-row-content {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}
.message-row-top {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 7px;
}
.message-sender {
  font-size: 11px;
  color: #858b9b;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.message-row.unread .message-sender {
  font-weight: 650;
  color: #50566a;
}
.message-row time {
  font-size: 8px;
  margin-left: auto;
  color: #a9aebb;
  white-space: nowrap;
  font-weight: 400;
}
.message-subject {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  line-height: 1.5;
  color: #757c8c;
  margin-bottom: 5px;
}
.message-subject > span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.message-row.unread .message-subject {
  color: #454b5c;
  font-weight: 600;
}
.unread-dot {
  width: 5px;
  height: 5px;
  border-radius: 100%;
  background: var(--accent);
  flex-shrink: 0;
  margin-left: auto;
}
.message-preview {
  font-size: 10px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: #a5abba;
}
.message-row-tags {
  display: flex;
  gap: 9px;
  align-items: center;
  font-size: 8px;
  color: #a7acb9;
  margin-top: 8px;
  min-height: 12px;
}
.message-row-tags > span {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.message-row-tags .icon {
  width: 10px;
  height: 10px;
}
.message-row-tags .star-label {
  color: #c8a25d;
}
.star-label .icon {
  fill: #f7efd9;
}
.row-folder {
  margin-left: auto;
}
.list-loading {
  padding: 30px 20px;
  text-align: center;
  color: #949aab;
  font-size: 12px;
  display: flex;
  gap: 10px;
  justify-content: center;
}
.list-empty {
  padding: 60px 25px;
  text-align: center;
  color: var(--muted);
}
.empty-icon {
  display: inline-flex;
  padding: 15px;
  background: #f5f4fb;
  border-radius: 18px;
  color: #b2adce;
  margin-bottom: 20px;
}
.list-empty h2 {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.2px;
}
.list-empty p {
  font-size: 12px;
  line-height: 1.8;
}
.list-pagination {
  padding: 13px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  color: #9299aa;
  margin-top: auto;
  border-top: 1px solid var(--line);
  position: sticky;
  bottom: 0;
  background: #fff;
}
.list-pagination > div {
  display: flex;
  gap: 3px;
}
.list-pagination .icon-button {
  width: 25px;
  height: 25px;
}
.list-pagination .icon {
  width: 13px;
  height: 13px;
}
.message-reader {
  min-width: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  background: #fff;
}
.reader-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: center;
  flex: 1;
  padding: 50px 20px;
  min-height: 450px;
}
.reader-illustration {
  width: 146px;
  height: 118px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 38px;
}
.reader-illustration:before {
  content: "";
  position: absolute;
  width: 110px;
  height: 110px;
  background: #f6f5fc;
  border-radius: 50%;
  left: 16px;
  top: 4px;
}
.reader-illustration > .icon {
  width: 78px;
  height: 78px;
  stroke-width: 0.55;
  color: #a29bc9;
  transform: rotate(-10deg);
  position: relative;
}
.illustration-dot {
  position: absolute;
  top: 12px;
  right: 4px;
  width: 8px;
  height: 8px;
  background: #d6d0f1;
  border-radius: 50%;
}
.illustration-line {
  position: absolute;
  width: 26px;
  height: 1px;
  background: #d9d4ec;
  bottom: 13px;
  left: 0;
  transform: rotate(-30deg);
}
.illustration-spark {
  position: absolute;
  bottom: 12px;
  right: 6px;
  color: #c3bcdf;
  font-size: 20px;
}
.reader-empty .eyebrow {
  font-size: 8px;
  letter-spacing: 1.5px;
  color: #afa9c2;
  margin-bottom: 16px;
}
.reader-empty h2 {
  font-size: 24px;
  letter-spacing: -0.6px;
  font-weight: 500;
  line-height: 1.5;
  color: #65677b;
  margin: 0 0 15px;
}
.reader-empty p {
  font-size: 11px;
  color: #b1b1c0;
  line-height: 1.9;
  margin-bottom: 40px;
}
.reader-empty-foot {
  font-size: 9px;
  color: #b4b4c0;
  display: flex;
  align-items: center;
  gap: 6px;
}
.reader-empty-foot .icon {
  width: 12px;
  height: 12px;
}
.reader-loading,
.reader-error {
  text-align: center;
  padding: 75px 25px;
  color: var(--muted);
  font-size: 12px;
}
.reader-loading p {
  margin-top: 12px;
}
.reader-error h2 {
  font-size: 17px;
  margin-bottom: 20px;
}
.reader-error .text-button {
  display: block;
  margin: 15px auto;
}
.reader-content {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  min-width: 0;
}
.reader-toolbar {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 22px;
  border-bottom: 1px solid var(--line);
  min-height: 45px;
  position: sticky;
  top: 0;
  z-index: 1;
  background: #ffffffee;
  backdrop-filter: blur(8px);
}
.reader-toolbar form {
  display: inline-flex;
  margin: 0;
}
.reader-back {
  display: none;
}
.is-starred {
  color: #c5a04f;
}
.is-starred .icon {
  fill: #f9efd5;
}
.action-error {
  background: #fff2ee;
  color: #ad5c51;
  font-size: 11px;
  padding: 10px 25px;
}
.reader-message-heading {
  padding: 16px 24px;
}
.message-folder-badge {
  display: inline-flex;
  background: #f5f5fa;
  color: #9d9bb3;
  padding: 4px 8px;
  font-size: 9px;
  border-radius: 5px;
  margin-bottom: 0;
  white-space: nowrap;
}
.reader-message-heading h2 {
  font-size: 20px;
  font-weight: 550;
  letter-spacing: -0.6px;
  line-height: 1.35;
  margin-bottom: 0;
  overflow-wrap: anywhere;
}
.sender-details {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  flex-wrap: wrap;
}
.sender-details > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 75%;
  overflow-wrap: anywhere;
}
.sender-details strong {
  font-size: 12px;
  font-weight: 600;
}
.sender-email {
  font-size: 10px;
  color: #9299a9;
}
.sender-details time {
  margin-left: auto;
  color: #a3a9b8;
  font-size: 10px;
}
.recipient-line {
  margin: 0;
  font-size: 10px;
  color: #adb2bf;
  overflow-wrap: anywhere;
  min-width: 0;
  flex: 1;
}
.recipient-line > span {
  color: #9299ac;
}
.mail-details {
  margin: 0;
  font-size: 10px;
  color: #9da3b2;
}
.mail-details summary {
  cursor: pointer;
}
.mail-details dl {
  margin: 16px 0 10px;
  display: grid;
  grid-template-columns: 105px 1fr;
  gap: 6px 12px;
}
.mail-details dd {
  overflow-wrap: anywhere;
  margin: 0;
}
.mail-details dt {
  font-weight: 500;
}
.recipient-detail {
  margin: 5px 0;
  overflow-wrap: anywhere;
}
.privacy-notice {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 24px;
  background: #fafafe;
  color: #b1adbf;
  font-size: 9px;
  border-top: 1px solid #f2f0f8;
  border-bottom: 1px solid #f2f0f8;
}
.privacy-notice .icon {
  width: 12px;
  height: 12px;
}
.email-body {
  border: 0;
  width: 100%;
  height: 440px;
  min-height: 320px;
  flex: 1;
  background: #fff;
}
.attachment-section {
  padding: 22px 28px;
  border-top: 1px solid var(--line);
}
.attachment-section h3 {
  font-size: 11px;
  color: #8e94a5;
  margin: 0 0 14px;
  font-weight: 500;
}
.attachment-section h3 > span {
  padding: 2px 5px;
  margin-left: 4px;
  background: var(--canvas);
  border-radius: 4px;
  font-size: 9px;
}
.attachment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
}
.attachment-card {
  border: 1px solid #e9eaf1;
  border-radius: 8px;
  padding: 11px;
  display: flex;
  gap: 9px;
  align-items: center;
  color: #858a9b;
  min-width: 0;
}
.attachment-card:hover {
  border-color: #bdb9ed;
  background: #fafaff;
}
.attachment-card > span:nth-child(2) {
  min-width: 0;
  flex: 1;
}
.attachment-card strong {
  display: block;
  font-size: 10px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.attachment-card small {
  display: block;
  font-size: 9px;
  color: #acb0bf;
  margin-top: 4px;
}
.attachment-card > .icon {
  width: 13px;
  height: 13px;
  color: #9b99b0;
}
.attachment-icon {
  padding: 6px;
  background: #f4f3fb;
  border-radius: 6px;
  color: #a19abc;
}
.attachment-icon .icon {
  width: 16px;
  height: 16px;
}
.reader-footer {
  padding: 18px 28px;
  background: #fdfdff;
  border-top: 1px solid var(--line);
}
.reader-footer > form {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  color: #969cae;
}
.reader-footer label {
  white-space: nowrap;
  margin: 0;
}
.reader-footer select {
  font-size: 11px;
  padding: 8px 28px 8px 10px;
  max-width: 230px;
}
.delete-confirm {
  margin-top: 16px;
  font-size: 11px;
  color: #b26d6d;
}
.delete-confirm summary {
  cursor: pointer;
  display: inline-block;
}
.delete-confirm p {
  margin: 12px 0;
  font-size: 11px;
}
.settings-page {
  max-width: 1040px;
  margin: auto;
  padding: 36px 40px 65px;
}
.back-link {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  color: #9198aa;
  margin-bottom: 35px;
}
.back-link .icon {
  width: 15px;
  height: 15px;
}
.settings-heading {
  margin-bottom: 35px;
}
.settings-heading h1 {
  font-size: 31px;
  font-weight: 550;
  letter-spacing: -1px;
  margin: 12px 0;
}
.settings-heading p {
  font-size: 13px;
}
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}
.settings-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  padding: 29px;
  margin-bottom: 24px;
}
.settings-card h2 {
  font-size: 17px;
  font-weight: 550;
  letter-spacing: -0.3px;
  margin-bottom: 9px;
}
.settings-card > p {
  font-size: 12px;
  line-height: 1.8;
  margin-bottom: 23px;
}
.settings-card-number {
  position: absolute;
  top: 31px;
  right: 25px;
  font-size: 10px;
  color: #c3c7d3;
  letter-spacing: 1px;
}
.settings-note {
  background: linear-gradient(130deg, #f0eefb, #f8f7fc);
  border-color: #eae7f5;
  padding: 30px;
}
.settings-note h2 {
  color: #7a7499;
}
.settings-note p {
  color: #a39bb7;
}
.cloud-badge {
  display: inline-flex;
  color: #a397c3;
  margin-bottom: 18px;
}
.cloud-badge .icon {
  width: 27px;
  height: 27px;
}
.address-list {
  display: flex;
  flex-direction: column;
}
.address-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 15px 0;
  border-bottom: 1px solid #f1f2f6;
  min-width: 0;
}
.address-symbol {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 33px;
  height: 33px;
  flex-shrink: 0;
  background: #f6f5fc;
  color: #b2aacc;
  border-radius: 9px;
}
.address-symbol .icon {
  width: 16px;
  height: 16px;
}
.address-item > div {
  min-width: 0;
  flex: 1;
}
.address-item strong {
  font-size: 11px;
  display: block;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.address-item small {
  display: block;
  font-size: 10px;
  margin-top: 4px;
  color: #aaaebe;
}
.address-state {
  font-size: 9px;
  color: #7ba78d;
  background: #eef8f0;
  padding: 3px 6px;
  border-radius: 5px;
  flex-shrink: 0;
}
.address-state.inactive {
  color: #a8a1a1;
  background: #f4f2f2;
}
.empty-addresses {
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
  background: #fafafd;
  padding: 15px;
  border-radius: 8px;
}
.auth-body {
  background: white;
}
.login-shell {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100dvh;
}
.login-story {
  background: #f4f3fa;
  padding: 45px 50px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.login-story:after {
  content: "";
  position: absolute;
  bottom: -210px;
  left: -160px;
  width: 550px;
  height: 550px;
  border: 1px solid #e9e5f3;
  border-radius: 50%;
  pointer-events: none;
}
.login-story-content {
  margin: auto 0;
  padding: 70px 0 35px;
  z-index: 1;
}
.login-story-content .eyebrow {
  font-size: 9px;
  color: #a29ab9;
}
.login-story h1 {
  font-size: clamp(35px, 4vw, 59px);
  line-height: 1.2;
  letter-spacing: -2px;
  font-weight: 500;
  color: #5d547f;
  margin: 25px 0 23px;
}
.login-story-content p {
  color: #a29ab3;
  font-size: 13px;
  line-height: 1.9;
}
.login-envelope {
  width: 185px;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 45px 0 15px 42px;
  position: relative;
  color: #a99bcd;
}
.login-envelope:before {
  content: "";
  position: absolute;
  width: 165px;
  height: 165px;
  background: #eae5f6;
  border-radius: 50%;
}
.login-envelope > .icon {
  position: relative;
  width: 116px;
  height: 116px;
  transform: rotate(-12deg);
  stroke-width: 0.65;
}
.envelope-seal {
  position: absolute;
  right: 15px;
  bottom: 22px;
  background: white;
  box-shadow: 0 4px 12px #9d91bc1a;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8db29e;
}
.envelope-seal > .icon {
  width: 17px;
  height: 17px;
}
.login-story-footer {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 10px;
  color: #b0a8c2;
  position: relative;
  z-index: 1;
}
.login-story-footer .icon {
  width: 16px;
  height: 16px;
}
.login-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 40px;
  position: relative;
}
.login-form-wrap {
  max-width: 345px;
  width: 100%;
  padding-bottom: 30px;
}
.login-form-wrap > .small-pill {
  font-size: 8px;
  font-weight: 550;
  letter-spacing: 1.1px;
  padding: 7px 9px;
  margin-bottom: 24px;
}
.login-form-wrap h2 {
  font-size: 30px;
  font-weight: 550;
  letter-spacing: -0.8px;
  margin-bottom: 12px;
}
.login-form-wrap > p.text-muted {
  font-size: 12px;
  color: #a2a7b5 !important;
  line-height: 1.8;
}
.login-form-wrap form {
  margin-top: 35px;
}
.login-form-wrap .form-control {
  padding: 13px 14px;
  font-size: 12px;
}
.login-form-wrap .btn-lg {
  font-size: 12px;
  padding: 14px;
}
.login-form-wrap .btn-lg span > span[aria-hidden] {
  margin-left: 15px;
}
.login-help {
  font-size: 10px;
  text-align: center;
  color: #b0b4c0;
  line-height: 1.8;
  margin-top: 27px;
}
.login-bottom {
  position: absolute;
  bottom: 34px;
  font-size: 9px;
  letter-spacing: 0.4px;
  color: #bec1cb;
}
@media (min-width: 1600px) {
  .mail-sidebar {
    padding-left: 26px;
    padding-right: 26px;
  }
  .mail-workspace {
    grid-template-columns: 255px minmax(0, 1fr);
  }
  .mail-split {
    grid-template-columns: minmax(350px, 37%) minmax(0, 1fr);
  }
  .message-row {
    padding: 23px 25px;
  }
  .reader-empty h2 {
    font-size: 28px;
  }
  .message-sender,
  .message-subject {
    font-size: 12px;
  }
  .message-preview {
    font-size: 11px;
  }
}
@media (max-width: 1100px) {
  .mail-workspace {
    grid-template-columns: 195px minmax(0, 1fr);
  }
  .mail-sidebar {
    padding-left: 13px;
    padding-right: 13px;
  }
  .app-header {
    padding: 0 22px;
  }
  .brand {
    font-size: 17px;
  }
  .app-header > .receive-label {
    display: none;
  }
  .search-box {
    max-width: none;
  }
  .mail-split {
    grid-template-columns: 310px minmax(0, 1fr);
  }
  .message-row {
    padding: 20px 15px;
    gap: 10px;
  }
  .message-avatar {
    width: 29px;
    height: 29px;
    font-size: 10px;
  }
  .reader-message-heading {
    padding: 16px 22px;
  }
  .reader-message-heading h2 {
    font-size: 20px;
    margin-bottom: 0;
  }
  .reader-toolbar {
    padding: 5px 16px;
    gap: 1px;
  }
  .reader-empty h2 {
    font-size: 21px;
  }
  .reader-footer,
  .attachment-section {
    padding: 17px 20px;
  }
  .login-story {
    padding: 35px;
  }
  .login-panel {
    padding: 50px 30px;
  }
}
@media (max-width: 900px) {
  .mail-workspace {
    grid-template-columns: 180px minmax(0, 1fr);
    min-height: 0;
  }
  .mail-split {
    display: block;
    position: relative;
  }
  .message-reader {
    display: none;
    height: 100%;
  }
  .message-list {
    height: 100%;
    border-right: 0;
  }
  .mail-workspace.reading .message-list {
    display: none;
  }
  .mail-workspace.reading .message-reader {
    display: flex;
  }
  .reader-back {
    display: inline-flex;
    margin-right: 6px;
  }
  .mail-workspace:not(.reading) .reader-empty {
    display: none;
  }
  .message-row {
    min-height: 117px;
    padding: 18px 23px;
  }
  .message-row-top time {
    font-size: 10px;
  }
  .message-sender,
  .message-subject {
    font-size: 12px;
  }
  .message-preview {
    font-size: 11px;
  }
  .message-row-tags {
    font-size: 9px;
  }
  .message-avatar {
    width: 34px;
    height: 34px;
    font-size: 12px;
  }
  .list-caption {
    font-size: 9px;
  }
  .list-caption span + span {
    font-size: 10px;
  }
  .mail-heading h1 {
    font-size: 22px;
  }
  .reader-content {
    min-height: 100%;
  }
  .sender-details time {
    margin-left: auto;
  }
  .login-shell {
    grid-template-columns: 0.9fr 1fr;
  }
  .login-story {
    padding: 30px;
  }
  .login-story h1 {
    font-size: 40px;
  }
  .settings-page {
    padding: 30px 25px;
  }
  .settings-grid {
    gap: 18px;
  }
  .settings-card {
    padding: 23px;
  }
  .settings-card-number {
    right: 21px;
    top: 26px;
  }
  .reader-message-heading {
    padding: 16px 22px;
  }
  .privacy-notice {
    padding-left: 25px;
    padding: 6px 22px;
  }
}
@media (max-width: 600px) {
  .app-header {
    height: 65px;
    padding: 0 16px;
    gap: 10px;
  }
  .brand {
    font-size: 16px;
    gap: 7px;
  }
  .brand-mark {
    width: 30px;
    height: 30px;
    border-radius: 9px;
  }
  .brand-mark .icon {
    width: 18px;
    height: 18px;
  }
  .header-account {
    gap: 7px;
  }
  .header-divider,
  .header-user-name {
    display: none;
  }
  .header-account .icon-button {
    width: 28px;
    height: 30px;
  }
  .header-account > .icon-button {
    display: none;
  }
  .avatar-small {
    width: 28px;
    height: 28px;
    font-size: 10px;
  }
  .mail-workspace {
    height: auto;
    min-height: calc(100dvh - 65px);
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 1fr;
  }
  .app-content {
    min-height: calc(100dvh - 65px);
  }
  .mail-sidebar {
    padding: 15px 16px 10px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    display: block;
    overflow: visible;
  }
  .workspace-label,
  .sidebar-divider,
  .sidebar-section-title,
  .sidebar-bottom {
    display: none;
  }
  .mailbox-select {
    font-size: 11px;
    margin-bottom: 11px;
    max-width: 100%;
    padding-top: 9px;
    padding-bottom: 9px;
  }
  .folder-nav {
    flex-direction: row;
    overflow-x: auto;
    gap: 5px;
    scrollbar-width: thin;
    padding-bottom: 3px;
  }
  .folder-nav > div:has(button[style*="display: none"]) {
    display: none;
  }
  .folder-link {
    font-size: 10px;
    white-space: nowrap;
    min-height: 33px;
    padding: 8px 10px;
    gap: 6px;
  }
  .folder-link .icon {
    width: 14px;
    height: 14px;
  }
  .folder-nav > div {
    flex-shrink: 0;
  }
  .folder-nav > button {
    width: auto;
    flex-shrink: 0;
  }
  .folder-count {
    font-size: 8px;
    min-width: 16px;
    padding: 1px 4px;
  }
  .muted-count {
    font-size: 8px;
  }
  .custom-folders {
    margin-top: 3px;
  }
  .new-folder {
    margin: 7px 4px 3px;
    font-size: 10px;
  }
  .new-folder summary {
    gap: 6px;
  }
  .new-folder .icon {
    width: 13px;
    height: 13px;
  }
  .new-folder form {
    max-width: 300px;
    padding: 7px 0;
  }
  .mail-heading h1 {
    font-size: 22px;
  }
  .mail-heading p {
    font-size: 10px;
  }
  .refresh-button {
    padding: 8px;
    margin-bottom: 0;
  }
  .refresh-button span {
    display: none;
  }
  .search-box {
    min-height: 38px;
  }
  .mail-split {
    min-height: 400px;
  }
  .message-list {
    overflow: visible;
  }
  .message-row {
    padding: 18px 20px;
    min-height: 122px;
    gap: 13px;
  }
  .message-row-top {
    margin-bottom: 6px;
  }
  .message-sender,
  .message-subject {
    font-size: 12px;
  }
  .message-row time {
    font-size: 9px;
  }
  .message-preview {
    font-size: 11px;
  }
  .message-avatar {
    width: 34px;
    height: 34px;
    font-size: 12px;
  }
  .list-caption {
    padding: 15px 20px;
  }
  .reader-toolbar {
    padding: 5px 16px;
  }
  .mail-workspace.reading .mail-sidebar {
    display: none;
  }
  .mail-workspace.reading .mail-main {
    grid-row: 1 / 3;
    min-height: calc(100dvh - 65px);
  }
  .mail-workspace.reading .mail-header,
  .mail-workspace.reading .query-indicator {
    display: none !important;
  }
  .reader-message-heading {
    padding: 16px 20px;
  }
  .reader-message-heading h2 {
    font-size: 21px;
    margin-bottom: 0;
  }
  .sender-details {
    gap: 10px;
  }
  .sender-details time {
    width: 100%;
    margin: 0 0 0 42px;
  }
  .email-body {
    min-height: 400px;
    height: 58dvh;
    flex: none;
  }
  .privacy-notice {
    padding: 6px 20px;
    font-size: 8px;
  }
  .reader-footer {
    padding: 18px 21px;
  }
  .reader-footer > form {
    font-size: 10px;
  }
  .attachment-grid {
    grid-template-columns: 1fr;
  }
  .list-pagination {
    position: static;
  }
  .global-error {
    font-size: 11px;
    flex-wrap: wrap;
  }
  .settings-page {
    padding: 25px 20px 40px;
  }
  .settings-grid {
    display: block;
  }
  .settings-heading {
    margin-bottom: 24px;
  }
  .settings-heading h1 {
    font-size: 28px;
  }
  .back-link {
    margin-bottom: 28px;
  }
  .settings-card {
    padding: 25px;
  }
  .login-shell {
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
  }
  .login-story {
    padding: 24px;
    background: white;
  }
  .login-story-content,
  .login-story-footer,
  .login-story:after {
    display: none;
  }
  .login-panel {
    padding: 20px 28px 60px;
    flex: 1;
    justify-content: flex-start;
  }
  .login-form-wrap {
    padding-top: 35px;
  }
  .login-form-wrap h2 {
    font-size: 29px;
  }
  .login-form-wrap form {
    margin-top: 29px;
  }
  .login-bottom {
    position: static;
    margin-top: auto;
    padding-top: 15px;
  }
  .message-reader {
    overflow: visible;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
.reader-subject-line {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.reader-subject-line h2 {
  flex: 1;
  min-width: 0;
}
.sender-details > .avatar {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  font-size: 12px;
}
.reader-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 16px;
  margin: 10px 0 0 42px;
}
.reader-meta .mail-details[open] {
  flex-basis: 100%;
  order: 1;
}
@media (max-width: 1100px) {
  .mail-header {
    gap: 16px;
    grid-template-columns: minmax(145px, 1fr) minmax(200px, 1.5fr) auto;
    padding: 14px 20px;
  }
}
@media (max-width: 600px) {
  .mail-header {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    padding: 14px 20px;
  }
  .mail-heading {
    grid-column: 1;
    grid-row: 1;
  }
  .mail-header > .refresh-button {
    grid-column: 2;
    grid-row: 1;
  }
  .search-toolbar {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .reader-meta {
    margin: 10px 0 0;
  }
  .reader-subject-line {
    align-items: flex-start;
  }
}
