@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;450;500;550;600;650;700&family=Fraunces:wght@400;500;600;650;700&display=swap");
:root {
  --ink: #2c2b29;
  --muted: #80786f;
  --brand: #b94d34;
  --line: #e8e0d6;
  --paper: #fbf8f2;
  --soft: #f3eade;
  --accent: #f0c7a6;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 14px;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
a {
  color: var(--brand);
}
button,
a,
input,
textarea,
select {
  outline-offset: 4px;
}
button {
  color: inherit;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--brand);
}
[hidden] {
  display: none !important;
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.7px;
  text-decoration: none;
}
.wordmark .muted {
  font-size: 14px;
  font-weight: 450;
  letter-spacing: -0.2px;
}
.brand-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: block;
  margin-right: 4px;
}
.muted,
.fine {
  color: var(--muted);
}
.fine {
  font-size: 11px;
  line-height: 1.65;
}
.eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.7px;
  color: var(--muted);
}
.primary,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 7px;
  border: 1px solid var(--line);
  padding: 10px 15px;
  background: white;
  font-size: 12px;
  font-weight: 600;
}
.primary {
  background: var(--brand);
  border-color: var(--brand);
  color: white;
}
.primary:hover {
  background: #9b3c28;
}
.button:hover {
  background: var(--soft);
}
.text-button {
  border: 0;
  background: none;
  padding: 4px 7px;
  font-size: 11px;
  color: var(--brand);
}
.icon-button {
  border: 0;
  background: none;
  font-size: 25px;
  padding: 0 7px;
}
.sidebar {
  width: 226px;
  position: fixed;
  inset: 0 auto 0 0;
  background: #f2ece3;
  border-right: 1px solid var(--line);
  padding: 30px 17px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sidebar > .wordmark {
  margin: 0 8px 33px;
}
.sidebar > .primary {
  justify-content: flex-start;
  margin: 0 7px 29px;
  padding: 13px;
  font-size: 13px;
}
.sidebar > .primary span:last-child {
  margin-left: auto;
}
.nav-label {
  margin: 0 15px 9px;
}
.nav {
  border: 0;
  background: none;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  width: 100%;
  padding: 11px 14px;
  border-radius: 6px;
  color: #7f7368;
  font-size: 13px;
}
.nav.active {
  background: #ead9c8;
  color: var(--brand);
  font-weight: 650;
}
.nav:hover {
  background: #ece2d5;
}
.nav-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 27px 9px 9px;
}
.domain-option {
  display: flex;
  gap: 9px;
  align-items: center;
  padding: 8px 12px;
  font-size: 11px;
  color: #796c5e;
  overflow-wrap: anywhere;
}
.domain-option input {
  accent-color: var(--brand);
  flex-shrink: 0;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 36px;
}
.account-dot {
  margin: 22px 12px 0;
  font-size: 9px;
  color: #8e7d6e;
  display: flex;
  gap: 7px;
  align-items: center;
}
.account-dot i {
  width: 5px;
  height: 5px;
  background: #b94d34;
  border-radius: 50%;
}
main {
  margin-left: 226px;
}
header {
  padding: 34px 34px 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
}
h1,
h2,
h3 {
  font-family: Fraunces, system-ui, sans-serif;
}
header h1 {
  margin: 7px 0;
  font-size: 30px;
  font-weight: 650;
  letter-spacing: -1.2px;
}
header p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}
.private-tag {
  font-size: 10px;
  color: #8e7d6e;
}
.filterbar {
  display: flex;
  gap: 10px;
  padding: 20px 34px;
  background: white;
  border-bottom: 1px solid var(--line);
}
.search {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 9px 12px;
  max-width: 650px;
  background: var(--paper);
}
.search > span {
  font-size: 23px;
  color: #a59282;
  line-height: 14px;
}
.search input {
  border: 0;
  background: none;
  min-width: 0;
  width: 100%;
  font-size: 12px;
  outline: none;
}
.search kbd {
  border: 1px solid var(--line);
  padding: 0 5px;
  color: #b3a493;
}
.filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: end;
  padding: 20px 34px;
  background: #f7f1e8;
  border-bottom: 1px solid var(--line);
}
label {
  display: block;
  font-size: 11px;
  font-weight: 550;
  color: #7e6d5b;
}
input:not([type="checkbox"]),
select,
textarea {
  border: 1px solid #dfd3c5;
  border-radius: 6px;
  background: #fff;
  padding: 10px 11px;
  color: var(--ink);
  width: 100%;
}
label input,
label select {
  margin-top: 7px;
}
.filters label:first-child {
  flex: 2;
  min-width: 230px;
}
.filters label {
  flex: 1;
  min-width: 120px;
}
.mail-toolbar {
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 34px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  background: #f7f3ed;
}
.select-all {
  display: flex;
  align-items: center;
  gap: 11px;
  white-space: nowrap;
}
.select-all input {
  margin: 0;
  accent-color: var(--brand);
}
.mail-layout {
  display: grid;
  grid-template-columns: minmax(300px, 38%) 1fr;
  min-height: calc(100vh - 249px);
}
.message-column {
  border-right: 1px solid var(--line);
  background: #fff;
  max-height: calc(100vh - 249px);
  overflow-y: auto;
}
.message-item {
  display: flex;
  position: relative;
  gap: 11px;
  padding: 20px 20px 18px 28px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.message-item.active {
  background: #f8ede2;
}
.message-item.active:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #b94d34;
}
.message-check {
  margin: 3px 0 0;
  accent-color: var(--brand);
  align-self: flex-start;
}
.message-main {
  border: 0;
  background: none;
  text-align: left;
  padding: 0;
  flex: 1;
  min-width: 0;
}
.message-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 7px;
  font-size: 12px;
}
.message-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
}
.unread .message-name,
.unread .message-subject {
  font-weight: 750;
}
.message-date {
  font-size: 10px;
  white-space: nowrap;
  color: #a59788;
}
.message-subject {
  font-size: 12px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: #493c32;
  margin: 0 0 5px;
  font-weight: 500;
}
.message-preview {
  font-size: 11px;
  color: #9b8b7b;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  line-height: 1.65;
}
.message-bottom {
  display: flex;
  gap: 5px;
  align-items: center;
  margin-top: 10px;
  flex-wrap: wrap;
}
.recipient-pill,
.label-pill {
  font-size: 9px;
  border: 1px solid #e9ddcf;
  color: #8d7862;
  border-radius: 4px;
  padding: 3px 5px;
  background: #faf5ed;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.label-pill {
  background: #efe0d0;
  color: #975c3e;
  border: 0;
}
.unread-dot {
  width: 6px;
  height: 6px;
  background: #c66b4f;
  border-radius: 50%;
  display: inline-block;
  margin-left: 6px;
}
.reader {
  padding: 26px 32px;
  min-width: 0;
  max-height: calc(100vh - 249px);
  overflow: auto;
  background: var(--paper);
}
.empty-reader {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.reader-symbol {
  font-size: 43px;
  font-weight: 400;
  color: #b28768;
  background: #f3e7d9;
  border: 1px solid #e9d7c3;
  border-radius: 21px;
  width: 83px;
  height: 83px;
  margin: 0 auto 27px;
  line-height: 80px;
}
.empty-reader h2 {
  font-size: 21px;
  font-weight: 550;
  letter-spacing: -0.5px;
}
.empty-reader p {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 22px;
}
.reader-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.reader-actions .button {
  font-size: 11px;
  padding: 7px 11px;
}
.reader h2 {
  font-size: 24px;
  line-height: 1.5;
  font-weight: 650;
  letter-spacing: -0.7px;
  margin: 14px 0 23px;
  overflow-wrap: anywhere;
}
.sender-card {
  display: flex;
  gap: 12px;
  align-items: start;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.avatar {
  background: #efe1d1;
  width: 37px;
  height: 37px;
  line-height: 37px;
  text-align: center;
  color: #9b7255;
  font-weight: 600;
  border-radius: 50%;
  flex-shrink: 0;
}
.sender-detail {
  min-width: 0;
  flex: 1;
  overflow-wrap: anywhere;
  font-size: 12px;
  line-height: 1.8;
}
.sender-detail .fine {
  margin-top: 4px;
  display: block;
}
.email-text {
  font-family: "DM Sans", system-ui;
  white-space: pre-wrap;
  font-size: 13px;
  line-height: 1.85;
  overflow-wrap: anywhere;
  margin: 26px 0;
}
.html-message {
  border: 0;
  width: 100%;
  min-height: 420px;
  background: white;
  margin: 20px 0;
}
.reader-footer {
  border-top: 1px solid var(--line);
  margin-top: 22px;
  padding-top: 20px;
}
.reader-footer textarea {
  min-height: 75px;
  resize: vertical;
  margin-top: 7px;
}
.reader-footer label {
  margin: 15px 0 9px;
}
.attachment {
  display: block;
  margin-top: 10px;
  font-size: 12px;
}
.load-more {
  display: block;
  margin: 20px auto;
}
.empty-list {
  padding: 70px 25px;
  text-align: center;
}
.empty-list h3 {
  font-size: 17px;
  font-weight: 600;
}
.empty-list p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
}
.saved-view {
  display: flex;
  align-items: center;
  padding-left: 8px;
}
.saved-view .nav {
  font-size: 12px;
  padding: 8px;
}
.saved-view > button:last-child {
  opacity: 0.5;
}
.lock {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 42%;
  background: #f9faf6;
}
.lock-card {
  padding: 55px max(40px, 12vw) 60px 9vw;
}
.lock-card > .wordmark {
  margin-bottom: 90px;
}
.lock h1 {
  font-size: 48px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -2px;
  margin: 20px 0;
}
.lock p {
  color: #8b7d6f;
  line-height: 1.8;
  font-size: 13px;
}
.lock form {
  margin-top: 32px;
  max-width: 370px;
}
.lock form .primary {
  width: 100%;
  justify-content: space-between;
  margin-top: 14px;
  padding: 13px;
}
.lock details {
  font-size: 11px;
  color: #907d69;
  max-width: 370px;
  line-height: 1.8;
}
.lock code {
  display: block;
  overflow-wrap: anywhere;
  background: #f0e3d2;
  padding: 12px;
  font-size: 10px;
}
.lock-art {
  background: #eddec8;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lock-art > span {
  position: absolute;
  bottom: 60px;
  color: #9f8162;
  font-size: 9px;
  letter-spacing: 2px;
}

dialog {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px;
  width: min(760px, 94vw);
  max-height: 92vh;
  box-shadow: 0 25px 100px #4f321c22;
  color: var(--ink);
}
dialog::backdrop {
  background: #3d291c50;
  backdrop-filter: blur(3px);
}
.dialog-heading {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 25px;
}
.dialog-heading h2 {
  margin: 7px 0;
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -0.6px;
}
.compose-identity {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  gap: 12px;
  padding: 16px;
  background: #f6ede2;
  border-radius: 7px;
  margin-bottom: 18px;
}
#compose-form > label {
  margin: 13px 0;
}
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
#sending-body {
  height: 230px;
  resize: vertical;
  border: 0;
  padding: 20px 0;
  outline: none;
}
.composer-footer {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  padding-top: 17px;
  border-top: 1px solid var(--line);
}
.attachment-label {
  cursor: pointer;
}
.attachment-label input {
  display: none;
}
.spacer {
  flex: 1;
}
.service-card {
  border: 1px solid var(--line);
  padding: 18px;
  border-radius: 8px;
  margin: 12px 0;
}
.service-card h3 {
  margin: 0 0 8px;
  font-size: 15px;
}
.service-card p {
  margin: 5px 0;
  font-size: 12px;
  color: var(--muted);
}
#toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translateX(-30%);
  max-width: 90vw;
  background: #49382c;
  color: #fff;
  font-size: 12px;
  padding: 14px 22px;
  border-radius: 8px;
  box-shadow: 0 10px 30px #4f321c22;
  z-index: 20;
}
#login-error,
#compose-error {
  color: #a24732;
  font-size: 12px;
}
.sr-only {
  position: absolute;
  clip: rect(0, 0, 0, 0);
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.metadata-fields {
  margin: 14px 0;
  font-size: 11px;
}
.reader a {
  overflow-wrap: anywhere;
}
#bulk-actions {
  display: flex;
  gap: 3px;
}
.reader-back {
  display: none;
}
@media (min-width: 1600px) {
  .mail-layout {
    grid-template-columns: 440px 1fr;
  }
  .reader {
    padding: 34px 65px;
  }
}
@media (max-width: 1150px) {
  .sidebar {
    width: 195px;
    padding: 25px 12px;
  }
  main {
    margin-left: 195px;
  }
  .sidebar .wordmark {
    font-size: 17px;
  }
  .sidebar .wordmark .muted {
    font-size: 12px;
  }
  header,
  .filterbar {
    padding-left: 24px;
    padding-right: 24px;
  }
  .mail-toolbar {
    padding: 0 24px;
  }
  .reader {
    padding: 23px;
  }
  .message-item {
    padding-left: 20px;
  }
  .mail-layout {
    grid-template-columns: 330px 1fr;
  }
  .filterbar > .button:last-child {
    display: none;
  }
  .mail-toolbar .fine {
    font-size: 9px;
  }
}
@media (max-width: 900px) {
  .mail-layout {
    grid-template-columns: 1fr;
  }
  .reader {
    display: none;
  }
  .reader.open {
    display: block;
    position: fixed;
    inset: 0 0 0 195px;
    z-index: 5;
    max-height: 100vh;
  }
  .reader-back {
    display: inline-flex;
  }
  .message-column {
    border: 0;
  }
  .mail-toolbar {
    flex-wrap: wrap;
    height: auto;
    min-height: 52px;
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .lock-card {
    padding: 45px;
  }
  .lock h1 {
    font-size: 40px;
  }
  .lock-card > .wordmark {
    margin-bottom: 70px;
  }
}
@media (max-width: 600px) {
  .sidebar {
    width: 70px;
    padding: 23px 7px;
  }
  .sidebar > .wordmark {
    font-size: 0;
    margin: 0 auto 30px;
  }
  .sidebar .wordmark .muted,
  .sidebar .nav span,
  .sidebar .nav-heading,
  .sidebar .nav-label,
  #domain-list,
  #saved-views,
  .account-dot {
    display: none;
  }
  .sidebar > .primary {
    padding: 10px;
    margin: 0 0 20px;
    font-size: 18px;
    justify-content: center;
  }
  .sidebar > .primary span {
    display: none;
  }
  .sidebar .nav {
    font-size: 18px;
    justify-content: center;
    padding: 12px 8px;
  }
  .sidebar-bottom {
    padding-top: 20px;
  }
  main {
    margin-left: 70px;
  }
  header {
    padding: 24px 16px 18px;
  }
  header h1 {
    font-size: 25px;
  }
  .header-actions {
    gap: 0;
  }
  .private-tag {
    display: none;
  }
  .header-actions .button {
    padding: 8px;
    font-size: 10px;
  }
  .filterbar {
    padding: 14px 16px;
    gap: 7px;
  }
  .filterbar > .button {
    font-size: 0;
    padding: 9px;
  }
  .filterbar > .button:first-of-type::before {
    content: "☷";
    font-size: 17px;
  }
  .search input {
    font-size: 11px;
  }
  .search kbd {
    display: none;
  }
  .mail-toolbar {
    padding-left: 16px;
    padding-right: 16px;
  }
  .mail-layout {
    min-height: calc(100vh - 215px);
  }
  .message-column {
    max-height: calc(100vh - 215px);
  }
  .message-item {
    padding: 19px 14px;
  }
  .reader.open {
    left: 70px;
    padding: 22px 18px;
  }
  .reader h2 {
    font-size: 21px;
  }
  .filters {
    padding: 15px;
    gap: 9px;
  }
  .filters label {
    min-width: 90px;
  }
  .filters label:first-child {
    min-width: 100%;
  }
  .compose-identity {
    grid-template-columns: 1fr;
    padding: 12px;
  }
  .two-col {
    grid-template-columns: 1fr;
  }
  dialog {
    padding: 20px;
  }
  .lock {
    display: block;
  }
  .lock-art {
    display: none;
  }
  .lock-card {
    padding: 35px;
  }
  .lock-card > .wordmark {
    margin-bottom: 75px;
  }
  .lock h1 {
    font-size: 44px;
  }
  .header-actions .button {
    white-space: nowrap;
  }
  #bulk-actions {
    width: 100%;
  }
  #toast {
    left: 50%;
    transform: translateX(-50%);
  }
  #sync-status {
    max-width: 140px;
    text-align: right;
  }
}

.scope-button {
  border: 0;
  background: none;
  padding: 0;
  font-size: 12px;
  color: var(--muted);
  text-align: left;
}
.scope-button::after {
  content: " ▾";
  color: var(--brand);
}

.google-login {
  margin-top: 24px;
  max-width: 370px;
  display: flex;
  justify-content: space-between;
  text-decoration: none;
  padding: 14px 18px;
}
.lock-card > .fine {
  max-width: 370px;
}

/* postal: paper, ink and a stamped vermilion signature. */
.wordmark {
  font-family: Fraunces, Georgia, serif;
  font-size: 31px;
  font-weight: 600;
  letter-spacing: -1.5px;
  gap: 8px;
  line-height: 1.1;
}
.sidebar > .wordmark {
  margin-left: 10px;
  margin-bottom: 34px;
}
header h1 {
  font-weight: 500;
  font-size: 34px;
  letter-spacing: -1.2px;
}
.reader h2 {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.6px;
}
.eyebrow {
  font-weight: 600;
  letter-spacing: 1.6px;
}
.primary {
  box-shadow: 0 2px 0 #7f2e1c13;
}
.nav.active {
  box-shadow: inset 2px 0 var(--brand);
}
.message-item.active:before {
  background: var(--brand);
}
.message-subject {
  font-family: "DM Sans", system-ui, sans-serif;
}
.lock {
  background: #fbf7ef;
}
.lock h1 {
  font-weight: 500;
  font-size: 54px;
  letter-spacing: -1.8px;
  line-height: 1.15;
}
.lock-card > .wordmark {
  font-size: 36px;
}
.lock-card > .wordmark .brand-icon {
  width: 40px;
  height: 40px;
  flex-basis: 40px;
}
.lock-art {
  background-color: #eadbc4;
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    #fff8ed18 3px,
    #fff8ed18 4px
  );
}
.postal-card {
  position: relative;
  width: 360px;
  height: 440px;
  max-width: 85%;
  background: #fffaf1;
  transform: rotate(-7deg);
  border: 1px solid #d3bda0;
  border-radius: 3px;
  box-shadow:
    8px 20px 0 #c8ac8620,
    0 30px 70px #8f653323;
  padding: 38px 34px;
}
.postage {
  position: absolute;
  right: 29px;
  top: 29px;
  width: 64px;
  height: 64px;
  transform: rotate(5deg);
}
.postmark {
  position: absolute;
  right: 67px;
  top: 58px;
  width: 106px;
  height: 106px;
  border: 2px solid #9d765e66;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  font:
    500 26px Fraunces,
    Georgia,
    serif;
  color: #9d765e;
  transform: rotate(16deg);
}
.postmark small {
  font:
    8px "DM Sans",
    sans-serif;
  letter-spacing: 1.5px;
  margin-top: 6px;
}
.cancellation {
  position: absolute;
  left: 28px;
  right: 130px;
  top: 74px;
  display: grid;
  gap: 8px;
  transform: rotate(2deg);
}
.cancellation i {
  height: 6px;
  border-top: 2px solid #9d765e40;
  border-radius: 50%;
}
.card-message {
  position: absolute;
  left: 34px;
  top: 182px;
  font:
    400 36px/1.2 Fraunces,
    Georgia,
    serif;
  letter-spacing: -0.8px;
  color: #5e4534;
}
.address-lines {
  position: absolute;
  left: 36px;
  right: 35px;
  bottom: 70px;
  display: grid;
  gap: 15px;
}
.address-lines i {
  height: 1px;
  background: #dfd0ba;
}
.address-lines i:nth-child(2) {
  width: 84%;
}
.address-lines i:nth-child(3) {
  width: 65%;
}
.card-footer {
  position: absolute;
  left: 35px;
  bottom: 27px;
  font:
    8px "DM Sans",
    sans-serif;
  letter-spacing: 1.5px;
  color: #ac9073;
}
.lock-art > span {
  color: #97795c;
  bottom: 50px;
  font-size: 9px;
}
@media (max-width: 1150px) {
  .sidebar .wordmark {
    font-size: 28px;
  }
  .postal-card {
    height: 400px;
    width: 320px;
  }
  .card-message {
    font-size: 32px;
  }
  .lock h1 {
    font-size: 46px;
  }
}
@media (max-width: 900px) {
  .lock h1 {
    font-size: 42px;
  }
  .postal-card {
    height: 370px;
  }
  .card-message {
    font-size: 29px;
    top: 165px;
  }
}
@media (max-width: 600px) {
  .sidebar > .wordmark {
    margin: 0 auto 28px;
  }
  .sidebar .wordmark > span {
    display: none;
  }
  .sidebar .wordmark {
    font-size: 0;
  }
  .brand-icon {
    width: 34px;
    height: 34px;
  }
  .lock h1 {
    font-size: 45px;
  }
  .lock-card > .wordmark {
    font-size: 34px;
  }
  .reader h2 {
    font-size: 25px;
  }
}

/* Conversations live in the reader; the chronological message list stays flat. */
.conversation-bar {
  position: sticky;
  top: 0;
  z-index: 3;
  background: var(--paper);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 12px 0 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
}
.conversation-bar strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
}
.conversation-bar .fine {
  display: block;
}
.conversation-bar .text-button {
  font-size: 10px;
  padding: 5px;
}
.thread-notice {
  flex-basis: 100%;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}
.conversation-selected {
  background: #fffdf9;
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: 9px;
  padding: 22px;
  margin: 12px 0;
  scroll-margin-top: 90px;
}
.conversation-selected:before {
  content: "SELECTED MESSAGE";
  display: block;
  font-size: 8px;
  font-weight: 650;
  letter-spacing: 1.6px;
  color: var(--brand);
  margin-bottom: 16px;
}
.conversation-selected .reader-actions {
  margin-bottom: 20px;
}
.conversation-selected h2 {
  margin-top: 12px;
}
.conversation-message {
  background: #fffdf9;
  border: 1px solid var(--line);
  border-radius: 9px;
  margin: 10px 0;
  overflow: hidden;
}
.conversation-message > summary {
  list-style: none;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  cursor: pointer;
  padding: 17px;
}
.conversation-message > summary::-webkit-details-marker {
  display: none;
}
.conversation-message > summary:hover {
  background: #f7efe5;
}
.conversation-message[open] > summary {
  border-bottom: 1px solid var(--line);
}
.thread-avatar {
  width: 30px;
  height: 30px;
  line-height: 30px;
  text-align: center;
  background: #efe1d1;
  color: #9b7255;
  border-radius: 50%;
  flex-shrink: 0;
  font-size: 11px;
}
.thread-summary-main {
  flex: 1;
  min-width: 0;
}
.thread-summary-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
  font-size: 11px;
}
.thread-summary-top strong {
  font-weight: 500;
  min-width: 0;
  overflow-wrap: anywhere;
}
.unread .thread-summary-top strong {
  font-weight: 700;
}
.thread-summary-top time {
  color: var(--muted);
  font-size: 9px;
  white-space: nowrap;
}
.thread-summary-bottom {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 6px;
  font-size: 9px;
  color: var(--muted);
}
.thread-direction {
  color: var(--brand);
  background: #f2e5d8;
  border-radius: 3px;
  padding: 2px 5px;
}
.thread-unread {
  color: var(--brand);
  font-weight: 650;
}
.thread-preview {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #9b8b7b;
  font-size: 10px;
  margin-top: 8px;
}
.thread-chevron {
  font-size: 15px;
  line-height: 22px;
  color: var(--muted);
}
.conversation-message[open] .thread-chevron {
  transform: rotate(180deg);
}
.thread-message-body {
  padding: 18px;
  min-width: 0;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.thread-message-body h3 {
  font-size: 20px;
  font-weight: 500;
  margin: 15px 0;
}
.thread-message-body .email-text {
  font-size: 12px;
}
.thread-recipient-line {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.8;
}
.thread-member-actions {
  margin: 20px 0 0 !important;
  border-top: 1px solid var(--line);
  padding-top: 15px;
}
.thread-member-actions .button {
  font-size: 10px;
}
@media (min-width: 1600px) {
  .conversation-bar {
    top: 0;
  }
}
@media (max-width: 1150px) {
  .conversation-bar {
    top: 0;
  }
  .conversation-selected {
    padding: 18px;
  }
}
@media (max-width: 600px) {
  .conversation-bar {
    top: 0;
    gap: 5px;
  }
  .conversation-bar .spacer {
    display: none;
  }
  .conversation-bar > div {
    flex: 1;
    min-width: 115px;
  }
  .conversation-bar .reader-back {
    padding: 7px;
    font-size: 10px;
  }
  .conversation-selected {
    padding: 16px 12px;
  }
  .conversation-message > summary {
    padding: 13px 10px;
    gap: 8px;
  }
  .thread-summary-top {
    display: block;
  }
  .thread-summary-top time {
    display: block;
    margin-top: 4px;
  }
  .thread-avatar {
    width: 25px;
    height: 25px;
    line-height: 25px;
  }
  .thread-message-body {
    padding: 13px;
  }
  .conversation-selected h2 {
    font-size: 23px;
  }
}

.conversation-selected .reader-actions button {
  scroll-margin-top: 90px;
}
