@font-face {
  font-family: DM Sans;
  src: url("/dm-sans.woff2") format("woff2");
  font-weight: 100 1000;
  font-display: swap;
}
:root {
  font-family: "DM Sans", Arial, sans-serif;
  color: #202a26;
  background: #fcfdfb;
  --ink: #202a26;
  --teal: #164f47;
  --muted: #5c6a62;
  --rule: #dde3dd;
  --paper: #f0f3ed;
  --white: #fff;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
  color: inherit;
  border: 0;
  background: none;
}
button:disabled {
  cursor: wait;
  opacity: 0.6;
}
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid #408b78;
  outline-offset: 3px;
}
button:hover {
  background-color: #eaf0e9;
}
[hidden] {
  display: none !important;
}
h1,
h2,
p,
figure {
  margin: 0;
}
button,
i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}
svg {
  display: block;
  width: 19px;
  height: 19px;
}
button {
  font-size: 14px;
  font-weight: 550;
  border-radius: 6px;
  padding: 9px 13px;
}
.primary {
  background: var(--teal);
  color: white;
  font-weight: 650;
}
.primary:hover {
  background: #0d4039;
}
.icon {
  width: 38px;
  height: 38px;
  padding: 0;
}
.outlined {
  border: 1px solid var(--rule);
  background: white;
}
.subtle {
  color: var(--muted);
}
input,
textarea {
  color: var(--ink);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  font-weight: 750;
  font-size: 21px;
  letter-spacing: -0.055em;
}
.brand em {
  font-style: normal;
  font-weight: 420;
  color: var(--muted);
  margin-left: 2px;
}
.entry {
  max-width: 1480px;
  padding: 35px clamp(24px, 5vw, 80px) 22px;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  margin: auto;
}
.login-layout {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(380px, 1.05fr);
  gap: 5vw;
  align-items: center;
  flex: 1;
  padding: 50px 0;
}
.login-content {
  width: min(100%, 360px);
  margin: auto;
}
.login-content h1 {
  font-size: clamp(36px, 3.6vw, 56px);
  font-weight: 530;
  line-height: 1.04;
  letter-spacing: -0.06em;
}
.intro {
  color: var(--muted);
  margin: 15px 0 32px;
}
.login-content label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin: 17px 0;
}
.login-content input {
  display: block;
  margin-top: 7px;
  width: 100%;
  padding: 12px;
  border: 1px solid #a9b6ad;
  border-radius: 5px;
  background: white;
  font-size: 16px;
}
.sign {
  width: 100%;
  justify-content: space-between;
  margin-top: 7px;
  padding: 13px 17px;
}
.sign span {
  font-size: 20px;
  line-height: 16px;
}
.art {
  width: 100%;
  max-height: 72vh;
  overflow: hidden;
  border-radius: 14px;
}
.art img {
  display: block;
  width: 100%;
  height: auto;
}
.entry-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
  border-top: 1px solid var(--rule);
  padding-top: 15px;
}
.bar {
  height: 72px;
  display: flex;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid var(--rule);
  padding: 0 26px;
  background: var(--white);
}
.bar .brand {
  width: 220px;
}
.bar #signout {
  margin-left: auto;
  white-space: nowrap;
}
.bar form {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  background: #f3f5f1;
  border: 1px solid var(--rule);
  border-radius: 7px;
  width: min(480px, 44vw);
}
.bar input {
  border: none;
  background: transparent;
  width: 100%;
  min-width: 0;
  outline: none !important;
}
.bar form:focus-within {
  outline: 2px solid var(--teal);
}
kbd {
  border: 1px solid #cdd5cd;
  border-radius: 4px;
  padding: 0 5px;
  color: var(--muted);
}
.frame {
  display: grid;
  grid-template-columns: 238px 1fr;
  min-height: calc(100svh - 72px);
}
aside {
  background: #f3f5f0;
  border-right: 1px solid var(--rule);
  padding: 28px 16px 22px;
  display: flex;
  flex-direction: column;
}
aside .primary {
  height: 43px;
  justify-content: flex-start;
  padding-left: 17px;
}
nav {
  margin-top: 22px;
}
nav button {
  display: flex;
  justify-content: flex-start;
  text-align: left;
  width: 100%;
  padding: 10px 14px;
  margin: 3px 0;
}
nav button[aria-current="page"] {
  background: #e0e6dd;
}
nav button span {
  margin-left: auto;
  font-size: 12px;
}
.identity {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 32px;
}
.identity b {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #cbded2;
  color: #235746;
}
.identity strong,
.identity small {
  display: block;
}
.identity small {
  color: var(--muted);
  font-size: 12px;
}
.mailbox {
  padding: 34px clamp(20px, 3.5vw, 56px);
  min-width: 0;
}
.heading,
.filters,
.dialog-top,
.dialog-bottom,
.detail-nav,
.message-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.heading {
  margin-bottom: 23px;
}
.eyeline {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 3px;
}
.heading h1,
.thread-title {
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -0.045em;
  font-weight: 580;
}
.filters {
  border-bottom: 1px solid var(--rule);
  font-size: 13px;
  color: var(--muted);
}
.filters button {
  border-radius: 0;
  padding: 9px 12px;
}
.filters button[aria-pressed="true"] {
  box-shadow: inset 0 -2px var(--teal);
  color: var(--teal);
}
.mail-row {
  display: grid;
  grid-template-columns: 30px 1fr;
  align-items: center;
  border-bottom: 1px solid var(--rule);
  padding: 0 3px;
  gap: 6px;
}
.mail-row:hover {
  background: #f0f4ee;
}
.mail-row > button.open {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(106px, 0.65fr) minmax(140px, 2.3fr) minmax(
      65px,
      auto
    );
  text-align: left;
  gap: 16px;
  padding: 17px 5px;
  background: transparent;
  font-weight: 410;
}
.mail-row .sender,
.subject,
.snippet {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
}
.unread .sender,
.unread .subject {
  font-weight: 720;
}
.unread .sender:before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #26765e;
  margin: 0 7px 2px 0;
}
.snippet,
time {
  font-size: 13px;
  color: var(--muted);
}
.snippet {
  margin-top: 3px;
}
.mail-row time {
  text-align: right;
}
.star {
  width: 30px;
  height: 34px;
  padding: 0;
  color: #66766b;
}
.star.on {
  color: #80621c;
}
.star.on svg {
  fill: #f5e5a4;
}
.empty {
  padding: 44px 0;
  color: var(--muted);
}
#localnote {
  display: block;
  color: var(--muted);
  margin-top: 30px;
  font-size: 12px;
}
.detail-nav {
  margin-bottom: 25px;
}
.detail-nav > div {
  display: flex;
  gap: 5px;
}
.thread-title {
  overflow-wrap: anywhere;
  margin-bottom: 22px;
}
.message {
  padding: 18px 0;
  border-top: 1px solid var(--rule);
}
.message-head {
  align-items: flex-start;
}
.message-head strong,
.message-head small {
  display: block;
  overflow-wrap: anywhere;
}
.message-head small {
  color: var(--muted);
  margin-top: 3px;
}
.message-head time {
  white-space: nowrap;
}
.body {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.65;
  margin: 20px 0 4px;
}
.reply {
  margin-top: 12px;
}
dialog {
  width: min(590px, calc(100vw - 28px));
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 0;
  box-shadow: 0 16px 80px #16271f38;
  color: var(--ink);
}
dialog::backdrop {
  background: #182b234b;
}
.dialog-top,
.dialog-bottom {
  padding: 16px 21px;
}
.dialog-top {
  background: var(--paper);
}
.dialog-top h2 {
  font-size: 19px;
}
.line {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 22px;
  border-bottom: 1px solid var(--rule);
  color: var(--muted);
  font-size: 14px;
}
.line span {
  width: 48px;
}
.line input,
textarea {
  background: white;
  border: 0;
  padding: 13px 2px;
  width: 100%;
  min-width: 0;
}
textarea {
  display: block;
  min-height: 190px;
  resize: vertical;
  padding: 18px 22px;
}
.dialog-bottom .primary {
  min-width: 96px;
}
.error {
  color: #9a3535;
  font-size: 14px;
  line-height: 1.45;
}
.error:empty {
  display: none;
}
dialog .error {
  margin: 0 22px;
}
#status {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 20px;
  border-radius: 6px;
  background: #22392e;
  color: white;
  font-size: 14px;
  max-width: 90%;
  z-index: 5;
}
#more {
  margin: 18px auto;
}
.mobile {
  display: none;
}
@media (max-width: 900px) {
  .frame {
    grid-template-columns: 188px 1fr;
  }
  .bar .brand {
    width: auto;
  }
  .bar {
    gap: 16px;
  }
  .identity {
    gap: 6px;
  }
  .identity small {
    font-size: 11px;
  }
  .login-layout {
    gap: 28px;
    grid-template-columns: 1fr 1fr;
  }
  .mailbox {
    padding: 25px 18px;
  }
  .mail-row > button.open {
    gap: 10px;
  }
}
@media (max-width: 680px) {
  .entry {
    padding: 24px 22px 18px;
  }
  .login-layout {
    grid-template-columns: 1fr;
    gap: 24px;
    align-content: center;
    padding: 32px 0;
  }
  .login-content {
    max-width: 440px;
    width: 100%;
  }
  .art {
    order: -1;
    max-height: 150px;
    border-radius: 8px;
  }
  .art img {
    height: 150px;
    object-fit: cover;
    object-position: 50% 48%;
  }
  .intro {
    margin: 10px 0 20px;
  }
  .bar {
    height: auto;
    padding: 12px 14px;
    gap: 8px;
    flex-wrap: wrap;
  }
  .bar .brand {
    font-size: 19px;
  }
  .bar .brand img {
    width: 28px;
    height: 28px;
  }
  .mobile {
    display: flex;
  }
  .bar form {
    order: 4;
    width: 100%;
  }
  .bar kbd {
    display: none;
  }
  .bar #signout {
    font-size: 13px;
    padding: 8px;
  }
  .frame {
    display: block;
    min-height: 0;
  }
  .frame aside {
    display: none;
  }
  .frame aside.open-nav {
    display: flex;
    position: absolute;
    left: 0;
    width: min(270px, 85vw);
    z-index: 2;
    box-shadow: 0 8px 22px #182b2326;
    border-bottom: 1px solid var(--rule);
  }
  .mailbox {
    padding: 23px 16px;
  }
  .heading h1,
  .thread-title {
    font-size: 27px;
  }
  .mail-row > button.open {
    grid-template-columns: 1fr auto;
    gap: 4px 8px;
    padding: 12px 2px;
  }
  .mail-row .content {
    grid-column: 1/-1;
    grid-row: 2;
  }
  .mail-row time {
    grid-column: 2;
    grid-row: 1;
  }
  .mail-row .star {
    align-self: start;
    margin-top: 8px;
  }
  .heading {
    margin-bottom: 14px;
  }
  .message-head {
    flex-wrap: wrap;
  }
  .dialog-top,
  .dialog-bottom {
    padding: 13px 16px;
  }
  textarea {
    min-height: 155px;
  }
}
#workspace {
  background: #f3f6f2;
  min-height: 100svh;
}
.bar {
  background: transparent;
  border: 0;
}
.bar form {
  border-radius: 24px;
  background: #e7eee7;
  border: 0;
  padding: 12px 18px;
}
.frame {
  grid-template-columns: 224px minmax(0, 1fr);
  padding: 0 15px 15px 0;
}
#sidebar {
  background: transparent;
  border: 0;
}
#compose {
  border-radius: 14px;
  width: fit-content;
  padding: 0 24px;
  height: 48px;
}
nav button {
  border-radius: 22px;
}
nav button[aria-current="page"] {
  background: #d6e8dd;
  color: #123e35;
}
.mailbox {
  background: white;
  border: 1px solid var(--rule);
  border-radius: 18px;
}
.mail-row {
  background: #f7f9f6;
}
.mail-row.unread {
  background: white;
}
.dialog-bottom {
  justify-content: flex-start;
}
#discard {
  margin-left: auto;
}
#composer {
  max-height: calc(100dvh - 20px);
  overflow: auto;
}
#composeform textarea {
  resize: vertical;
}
.compose-files {
  padding: 0 22px 10px;
}
.compose-files small,
.file-chip small,
.assistant-status {
  color: var(--muted);
  font-size: 12px;
}
#file-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.file-chip {
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  margin: 6px 5px 5px 0;
  padding: 7px 10px;
  color: var(--teal);
  background: #f6f9f6;
  text-decoration: none;
  font-size: 14px;
}
.file-chip span {
  overflow-wrap: anywhere;
  min-width: 0;
}
.file-chip svg,
.file-chip small {
  flex-shrink: 0;
}
.file-chip button {
  border: 0;
  background: transparent;
  width: 28px;
  height: 28px;
}
a.file-chip:hover {
  text-decoration: underline;
}
.assistant-panel {
  margin-top: 28px;
  padding: 17px 20px;
  background: #f5f8f4;
  border: 1px solid #d9e6dc;
  border-radius: 12px;
}
.assistant-panel h2 {
  font-size: 17px;
  margin: 0 0 6px;
  color: var(--teal);
}
.assistant-panel p {
  font-size: 14px;
  line-height: 1.5;
}
.assistant-status {
  margin: 6px 0;
}
.assistant-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.assistant-output {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.55;
}
.assistant-output:not(:empty) {
  margin: 14px 0;
}
@media (min-width: 681px) {
  #composer {
    margin: auto 24px 0 auto;
    border-radius: 14px 14px 0 0;
  }
  .mail-row > button.open {
    padding: 12px 6px;
  }
}
@media (max-width: 680px) {
  .frame {
    padding: 0;
  }
  .frame #sidebar.open-nav {
    background: #f3f6f2;
  }
  .mailbox {
    border-radius: 16px 16px 0 0;
    min-height: 75svh;
  }
  .mobile-compose {
    margin-left: auto;
  }
  .dialog-bottom {
    gap: 5px;
  }
  .dialog-bottom .primary {
    min-width: 72px;
  }
  .attach {
    padding: 9px 5px;
  }
  .bar form {
    width: 100%;
  }
  .line input {
    font-size: 16px;
  }
}
