:root {
  font-family: Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #202124;
  background: #fff;
  font-synthesis: none;
  font-size: 14px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
}
button {
  cursor: pointer;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 9px 13px;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  line-height: 1.4;
}
button:hover {
  background: #f1f3f4;
}
button:disabled {
  opacity: 0.38;
  cursor: default;
}
button.primary {
  background: #0b57d0;
  color: #fff;
  border-radius: 22px;
  padding: 10px 23px;
}
button.primary:hover {
  background: #0842a0;
}
.outline {
  border: 1px solid #dadce0;
  border-radius: 22px;
}
.quiet,
.text-button {
  color: #0b57d0;
}
.text-button {
  padding: 3px 6px;
  font-size: 12px;
}
.icon-button {
  width: 36px;
  height: 36px;
  padding: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
svg {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 22px;
  line-height: 1.5;
  font-weight: 400;
}
h2 {
  font-size: 19px;
  font-weight: 500;
}
h3 {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.7;
  margin-bottom: 12px;
}
.muted {
  font-size: 12px;
  color: #73777d;
  line-height: 1.8;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.04em;
  color: #73777d;
  margin-bottom: 8px;
}
.tag {
  display: inline-block;
  border-radius: 4px;
  background: #f1f3f4;
  font-size: 11px;
  color: #5f6368;
  padding: 2px 6px;
}
.actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.pulse {
  font-size: 12px;
  color: #5f6368;
  line-height: 1.7;
}
.avatar {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e8eaed;
  color: #5f6368;
  flex-shrink: 0;
}
.avatar.hero {
  color: #0b57d0;
  background: #e8f0fe;
}
.mail-body {
  font-size: 14px;
  line-height: 2;
  overflow-wrap: anywhere;
}
.mail-body p {
  margin: 0 0 20px;
  white-space: pre-wrap;
}
.mail-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.mail-meta .person {
  flex: 1;
  min-width: 0;
}
.mail-meta strong {
  font-size: 13px;
  font-weight: 600;
}
.mail-meta time {
  font-size: 11px;
  color: #80868b;
  white-space: nowrap;
}
.mail-meta .muted {
  display: block;
}
.source-line {
  font-size: 12px;
  color: #73777d;
  line-height: 1.8;
}
.receipt,
.history {
  margin-top: 20px;
}
summary {
  cursor: pointer;
  color: #5f6368;
  font-size: 12px;
  padding: 8px 0;
}
details li {
  margin: 10px 0;
  line-height: 1.8;
}
blockquote {
  font-size: 12px;
  color: #73777d;
  border-left: 2px solid #dadce0;
  padding-left: 12px;
  margin: 10px 0 16px;
  line-height: 1.8;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
form label:not(.choice) {
  display: block;
  font-size: 12px;
  color: #5f6368;
  margin: 12px 0 8px;
}
input:not([type="radio"]):not([type="hidden"]),
textarea,
select {
  border: 1px solid #dadce0;
  border-radius: 5px;
  background: white;
  color: #202124;
  width: 100%;
  padding: 11px;
}
textarea {
  min-height: 88px;
  resize: vertical;
  line-height: 1.8;
}
input[type="radio"] {
  accent-color: #0b57d0;
  flex-shrink: 0;
  margin: 4px 0;
}
.choice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.8;
  padding: 10px;
  border: 1px solid #e8eaed;
  border-radius: 5px;
  margin: 8px 0;
  overflow-wrap: anywhere;
}
.choice:has(:checked) {
  border-color: #a8c7fa;
  background: #f6f9ff;
}
.human-question {
  margin: 18px 0;
}
.consequential {
  border-left: 3px solid #5f6368;
  padding-left: 18px;
}
.recovery {
  padding: 20px 0;
}
.recovery form {
  margin-top: 20px;
}
.send-preview {
  padding: 16px;
  border: 1px solid #dadce0;
  border-radius: 6px;
  background: #f8fafd;
  line-height: 1.9;
  max-height: 45vh;
  overflow: auto;
  overflow-wrap: anywhere;
}
dialog {
  width: min(560px, calc(100% - 28px));
  max-height: 86vh;
  overflow: auto;
  border: 0;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 10px 60px #20212433;
}
dialog::backdrop {
  background: #20212444;
}
.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}
.dialog-head h2 {
  margin: 0;
}
#toast {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  background: #323232;
  color: white;
  z-index: 50;
  border-radius: 6px;
  padding: 10px 16px;
  font-size: 12px;
  max-width: calc(100% - 24px);
  box-shadow: 0 4px 15px #0002;
  line-height: 1.8;
}
#toast:empty {
  display: none;
}
#toast .toast-link {
  color: #aecbfa;
  padding: 4px 8px;
}
:focus-visible {
  outline: 2px solid #1a73e8;
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
.empty {
  padding: 40px 16px;
  color: #73777d;
  text-align: center;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 600px) {
  h1 {
    font-size: 19px;
  }
  .mail-meta {
    flex-wrap: wrap;
  }
  .mail-meta time {
    margin-left: 48px;
  }
  .consequential {
    padding-left: 12px;
  }
  .actions {
    gap: 6px;
  }
  .actions button {
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}
