@font-face {
  font-family: DM Sans;
  src: url("/assets/DMSans-Variable.ttf") format("truetype");
  font-weight: 100 1000;
  font-display: swap;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #faf7ef;
  color: #33261f;
  font:
    15px/1.5 "DM Sans",
    Arial,
    sans-serif;
}
button,
input,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
  border: 1px solid #ded2c1;
  border-radius: 9px;
  padding: 10px 16px;
  background: #fffdf9;
  color: #603823;
  min-height: 44px;
}
button:hover {
  background: #eee4d5;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
button.primary {
  background: #603823;
  color: #faf7ef;
  border-color: #603823;
}
button.primary:hover {
  background: #4d2c1b;
}
button.quiet {
  background: transparent;
  border: 0;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid #5e684e;
  outline-offset: 3px;
}
input,
textarea {
  border: 1px solid #d7c9b8;
  border-radius: 8px;
  background: #fffdf9;
  padding: 12px;
  color: #33261f;
  width: 100%;
}
textarea {
  resize: vertical;
  min-height: 230px;
  line-height: 1.7;
}
label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin: 18px 0 6px;
}
h1,
h2 {
  font-weight: 500;
  color: #603823;
  letter-spacing: -0.025em;
  line-height: 1.2;
}
h1 {
  font-size: 32px;
  margin: 0;
}
h2 {
  font-size: 26px;
}
p {
  margin: 0 0 18px;
}
.muted {
  color: #77695e;
  font-size: 13px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.17em;
  font-size: 10px;
  font-weight: 700;
}
.logo {
  width: 150px;
  height: auto;
  display: block;
}
.login {
  max-width: 430px;
  margin: 9vh auto;
  padding: 40px;
  background: #fffdf9;
  border: 1px solid #e6d8c6;
  border-radius: 18px;
}
.login .logo {
  margin-bottom: 48px;
  width: 190px;
}
.login button {
  width: 100%;
  margin-top: 24px;
}
.shell {
  display: grid;
  grid-template-columns: 232px 1fr;
  min-height: 100vh;
}
.sidebar {
  padding: 36px 24px;
  background: #eee5d8;
  border-right: 1px solid #ded2c1;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.sidebar .logo {
  margin-bottom: 4px;
}
.sidebar nav {
  display: grid;
  gap: 8px;
}
.sidebar nav button {
  text-align: left;
  border: 0;
  background: transparent;
}
.sidebar nav button[aria-current="page"] {
  background: #faf7ef;
  color: #603823;
  font-weight: 650;
}
.sidebar footer {
  margin-top: auto;
}
.identity {
  padding-top: 10px;
  border-top: 1px solid #d9cbb9;
}
.workspace {
  min-width: 0;
  padding: 38px 40px;
}
.top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 26px;
}
.badge {
  padding: 7px 12px;
  border-radius: 999px;
  background: #e6d8c6;
  color: #603823;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.banner {
  padding: 12px 18px;
  background: #eeeddf;
  border: 1px solid #d7dac6;
  border-radius: 10px;
  color: #4e5841;
  font-size: 13px;
  margin-bottom: 24px;
}
.mail-layout {
  display: grid;
  grid-template-columns: minmax(240px, 340px) minmax(0, 1fr);
  background: #fffdf9;
  border: 1px solid #e6d8c6;
  border-radius: 14px;
  min-height: 620px;
  overflow: hidden;
}
.list {
  border-right: 1px solid #e6d8c6;
}
.list-head {
  padding: 18px 20px;
  border-bottom: 1px solid #e6d8c6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.message-row {
  display: block;
  text-align: left;
  width: 100%;
  border: 0;
  border-bottom: 1px solid #eee5d8;
  border-radius: 0;
  background: transparent;
  padding: 22px;
}
.message-row[aria-current="true"] {
  background: #f0e8dc;
  box-shadow: inset 3px 0 #603823;
}
.message-row strong {
  display: block;
  font-weight: 550;
  margin: 7px 0;
  overflow-wrap: anywhere;
}
.row-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  color: #77695e;
}
.sender {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 180px;
}
.reader {
  padding: 34px;
  min-width: 0;
}
.reader h2 {
  overflow-wrap: anywhere;
  margin-top: 0;
}
.reader pre {
  font: inherit;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.8;
  margin-top: 30px;
}
.empty {
  height: 100%;
  min-height: 350px;
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  color: #77695e;
  padding: 30px;
}
.empty span {
  font-size: 38px;
  color: #b76547;
  margin-bottom: 18px;
}
.empty h2 {
  font-size: 24px;
}
.meta {
  padding-bottom: 24px;
  border-bottom: 1px solid #e6d8c6;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}
.attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0;
}
.attachments a {
  color: #603823;
  padding: 10px 14px;
  border: 1px solid #ded2c1;
  border-radius: 8px;
  font-size: 13px;
  text-decoration: none;
}
.composer {
  max-width: 850px;
  background: #fffdf9;
  border: 1px solid #e6d8c6;
  border-radius: 14px;
  padding: 32px;
}
.composer header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.composer h2 {
  margin: 0;
}
.file-row {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
  border-bottom: 1px solid #eee5d8;
  padding: 8px 0;
  overflow-wrap: anywhere;
}
.error {
  color: #9c332b;
  font-size: 14px;
  margin-top: 16px;
}
iframe {
  width: 100%;
  min-height: 380px;
  border: 0;
  margin-top: 24px;
  background: white;
}
#notice:not(:empty) {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  background: #33261f;
  color: #faf7ef;
  padding: 14px 24px;
  border-radius: 10px;
  max-width: 90vw;
  box-shadow: 0 8px 30px #33261f22;
}
.pagination {
  display: flex;
  justify-content: space-between;
  padding: 12px;
  gap: 8px;
}
.mobile-back {
  display: none;
}
@media (max-width: 1100px) {
  .workspace {
    padding: 26px 22px;
  }
  .shell {
    grid-template-columns: 190px 1fr;
  }
  .sidebar {
    padding: 30px 18px;
  }
  .mail-layout {
    grid-template-columns: 260px minmax(0, 1fr);
  }
  .reader {
    padding: 24px;
  }
}
@media (max-width: 800px) {
  .shell {
    display: block;
  }
  .sidebar {
    padding: 20px;
    gap: 16px;
    border-bottom: 1px solid #ded2c1;
    border-right: 0;
  }
  .sidebar .logo {
    width: 128px;
  }
  .sidebar nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }
  .sidebar footer {
    display: block;
    position: absolute;
    top: 67px;
    right: 20px;
  }
  .sidebar > .primary {
    position: absolute;
    top: 18px;
    right: 20px;
  }
  .workspace {
    padding: 24px 16px;
  }
  .top {
    align-items: start;
  }
  .top h1 {
    font-size: 28px;
  }
  .badge {
    max-width: 130px;
    text-align: center;
  }
  .mail-layout {
    grid-template-columns: 1fr;
    min-height: 400px;
  }
  .list {
    border-right: 0;
  }
  .reader {
    display: none;
  }
  .mail-layout.reading .reader {
    display: block;
  }
  .mail-layout.reading .list {
    display: none;
  }
  .mobile-back {
    display: inline-flex;
    margin-bottom: 20px;
  }
  .composer {
    padding: 22px;
  }
  .login {
    margin: 5vh 16px;
    padding: 30px;
  }
  .banner {
    font-size: 12px;
  }
  .identity {
    display: none;
  }
}

/* Marketing plan: the same warm palette and type as the mail workspace. */
.plan-intro {
  max-width: 760px;
  margin: 4px 0 28px;
}
.plan-intro > p:first-child {
  font-size: 20px;
}
.plan-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}
.plan-tabs button {
  background: #eee5d8;
  border-color: transparent;
}
.plan-tabs button[aria-current="page"] {
  background: #603823;
  color: #fffdf9;
}
.plan-content {
  max-width: 1120px;
}
.plan-section {
  margin-bottom: 40px;
}
.plan-section > p,
.plan-list {
  max-width: 78ch;
}
.plan-section h2 {
  margin-bottom: 20px;
}
.plan-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.plan-card {
  padding: 26px;
  background: #fffdf9;
  border: 1px solid #e6d8c6;
  border-radius: 14px;
}
.plan-card h3 {
  color: #603823;
  font-size: 21px;
  margin: 0 0 16px;
}
.plan-card h4 {
  color: #5e684e;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 20px 0 6px;
}
.plan-card p {
  margin: 0 0 12px;
}
.plan-card p:last-child {
  margin-bottom: 0;
}
.plan-subheading {
  margin-top: 32px;
}
.plan-list {
  padding-left: 24px;
}
.plan-list li {
  padding-left: 6px;
  margin-bottom: 14px;
}
@media (max-width: 1000px) {
  .plan-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 800px) {
  .plan-card {
    padding: 22px;
  }
  .plan-tabs {
    gap: 6px;
  }
  .plan-tabs button {
    padding: 10px 12px;
  }
}

.document-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 20px 0 32px;
}
.document-actions a {
  color: #603823;
  text-underline-offset: 4px;
  font-weight: 600;
}
.document-content {
  overflow-wrap: anywhere;
}
