:root {
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: #20342d;
  background: #fbfcfa;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  --green: #244f40;
  --muted: #65726c;
  --border: #dbe2db;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: var(--green);
  text-underline-offset: 4px;
}
button,
input,
textarea {
  font: inherit;
}
button,
a,
input,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.6;
  cursor: wait;
}
a:hover {
  text-decoration: underline;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid #7fa78a;
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10;
  background: white;
  padding: 12px;
  transform: translateY(-200%);
}
.skip-link:focus {
  transform: none;
}
.auth-shell {
  display: grid;
  grid-template-columns: minmax(370px, 43%) 1fr;
  min-height: 100svh;
}
.brand-panel {
  position: relative;
  overflow: hidden;
  background: #193d33;
  color: #f4f5e9;
  padding: 48px 12%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100svh;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  font-size: 21px;
  letter-spacing: -0.8px;
  font-weight: 750;
  text-decoration: none;
  width: fit-content;
  position: relative;
  z-index: 1;
}
.brand:hover {
  text-decoration: none;
}
.brand-mark {
  width: 32px;
  height: 32px;
  border: 1px solid currentColor;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-family: Georgia, serif;
  font-size: 26px;
  font-weight: 400;
  line-height: 1;
  padding-bottom: 4px;
}
.brand-story {
  position: relative;
  z-index: 1;
  margin: 90px 0 200px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 0.17em;
  font-weight: 700;
  line-height: 1.5;
  margin: 0 0 22px;
}
.brand-story .eyebrow {
  color: #b1c9b5;
}
.brand-story h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: clamp(37px, 4.2vw, 62px);
  line-height: 1.12;
  letter-spacing: -1.8px;
  margin: 0 0 26px;
}
.brand-story > p:last-child {
  font-size: 15px;
  color: #bed1c5;
  line-height: 1.85;
}
.brand-art {
  position: absolute;
  bottom: -100px;
  left: 0;
  width: 100%;
  height: auto;
  stroke: #a2bb9a;
  stroke-opacity: 0.18;
  stroke-width: 1;
}
.brand-foot {
  position: relative;
  z-index: 1;
  font-size: 11px;
  color: #bed1c5;
  margin: 0;
}
.auth-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 66px 48px 30px;
  min-width: 0;
}
.auth-card {
  width: 100%;
  max-width: 390px;
  margin: auto 0;
  padding: 32px 0;
}
.auth-heading {
  margin-bottom: 32px;
}
.auth-heading .eyebrow {
  color: #6b806e;
  margin-bottom: 14px;
}
h1 {
  font-size: 32px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -1.1px;
  margin: 0 0 12px;
}
h2 {
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.4px;
  margin: 0 0 10px;
}
.subtitle {
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0;
}
.auth-card label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin: 22px 0 9px;
}
.auth-card form > label:first-child {
  margin-top: 0;
}
input,
textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid #cbd5cb;
  border-radius: 7px;
  padding: 13px 14px;
  background: white;
  color: #20342d;
  font-size: 15px;
  line-height: 1.4;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
input {
  height: 49px;
}
input:hover,
textarea:hover {
  border-color: #8d9e91;
}
input:focus,
textarea:focus {
  border-color: #557d60;
}
input[aria-invalid="true"] {
  border-color: #a44735;
}
.password-field {
  position: relative;
}
.password-field input {
  padding-right: 65px;
}
.password-toggle {
  position: absolute;
  right: 3px;
  top: 3px;
  bottom: 3px;
  padding: 0 12px;
  border: 0;
  border-radius: 4px;
  color: #536a5d;
  background: transparent;
  font-size: 12px;
  font-weight: 600;
}
.password-toggle:hover {
  background: #f2f5ef;
}
.primary,
.secondary,
.quiet {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 12px 18px;
  min-height: 46px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.primary {
  background: var(--green);
  color: white;
  box-shadow: 0 2px 3px #1835280b;
}
.primary:hover:not(:disabled) {
  background: #193d30;
}
.secondary {
  background: white;
  border-color: #cbd5cb;
  color: #2b4537;
}
.secondary:hover:not(:disabled) {
  background: #f2f6ef;
  border-color: #90a28e;
}
.quiet {
  background: transparent;
  color: #405b48;
  border-color: var(--border);
}
.quiet:hover:not(:disabled) {
  background: #eef3ea;
}
.full-width {
  width: 100%;
}
form > .primary {
  margin-top: 26px;
}
.divider {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 23px 0;
  color: #79857c;
  font-size: 11px;
}
.divider:before,
.divider:after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e1e7dd;
}
.auth-switch {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  margin: 29px 0 0;
  line-height: 1.7;
}
.auth-switch a {
  font-weight: 600;
  margin-left: 3px;
  text-decoration: none;
}
.auth-switch a:hover {
  text-decoration: underline;
}
.hint {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
  margin: 8px 0 0;
}
.recovery-note {
  font-size: 11px;
  line-height: 1.7;
  color: var(--muted);
  margin: 14px 0 0;
}
.auth-footer {
  font-size: 10px;
  letter-spacing: 0.02em;
  color: #768176;
  display: flex;
  align-items: center;
  gap: 7px;
  padding-top: 36px;
  text-align: center;
}
.status-dot {
  width: 5px;
  height: 5px;
  background: #95a78d;
  border-radius: 50%;
}
#notice {
  font-size: 13px;
  line-height: 1.6;
  margin: 0 0 22px;
  padding: 12px 14px;
  border-radius: 7px;
  background: #edf3e9;
  color: #34543e;
}
#notice:empty {
  display: none;
}
#notice.error {
  background: #fbefea;
  color: #943f2b;
  border: 1px solid #eed1c4;
}
.mobile-brand {
  display: none;
}
.workspace {
  min-height: 100svh;
}
.workspace-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 6vw;
  border-bottom: 1px solid var(--border);
}
.workspace-main {
  max-width: 760px;
  margin: 65px auto;
  padding: 0 24px 40px;
}
.workspace-main > .eyebrow {
  color: #6b806e;
  margin-bottom: 12px;
}
.workspace-main > .subtitle {
  margin-bottom: 30px;
}
.panel {
  padding: 28px;
  margin: 24px 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: white;
  box-shadow: 0 4px 20px #1c3d2604;
}
.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}
.panel-heading h2 {
  margin: 0;
}
.pill {
  font-size: 10px;
  color: #48664c;
  background: #edf3e9;
  border-radius: 20px;
  padding: 5px 10px;
}
textarea {
  resize: vertical;
  min-height: 180px;
}
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.panel .subtitle {
  margin-bottom: 20px;
}
#passkey-list {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
}
#passkey-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding: 12px 0;
  font-size: 13px;
}
#passkey-list button {
  border: 0;
  background: transparent;
  color: #7f4939;
  padding: 8px;
  font-size: 12px;
}
.account-id,
.workspace-foot {
  font-size: 11px;
  color: var(--muted);
  overflow-wrap: anywhere;
  line-height: 1.6;
}
.workspace-foot {
  margin-top: 24px;
}
.noscript {
  padding: 24px;
  text-align: center;
}
@media (min-width: 1500px) {
  .brand-panel {
    padding-left: 16%;
    padding-right: 12%;
  }
  .brand-story {
    margin-bottom: 250px;
  }
  .auth-card {
    max-width: 410px;
  }
}
@media (max-width: 850px) {
  .auth-shell {
    grid-template-columns: 1fr;
  }
  .brand-panel {
    display: none;
  }
  .auth-main {
    padding: 30px 24px;
    min-height: 100svh;
  }
  .mobile-brand {
    display: inline-flex;
    align-self: flex-start;
    margin-bottom: 32px;
  }
  .auth-card {
    padding: 20px 0;
    max-width: 400px;
  }
  .auth-footer {
    padding-top: 30px;
  }
  .workspace-main {
    margin-top: 38px;
  }
  .panel {
    padding: 22px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

dialog {
  width: min(420px, calc(100vw - 40px));
  padding: 28px;
  border: 1px solid #c9d3cb;
  border-radius: 16px;
  background: #fbfaf5;
  color: #19372a;
}
dialog::backdrop {
  background: rgb(15 35 26 / 55%);
}
dialog form {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}
dialog input {
  width: 100%;
  box-sizing: border-box;
}
#verify-error {
  min-height: 1.5em;
}

.workspace-main {
  max-width: 1180px;
}
.mail-app {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  border: 1px solid #d7dfd6;
  border-radius: 16px;
  overflow: hidden;
  background: #fffefb;
  min-height: 420px;
  margin: 24px 0;
}
.mail-sidebar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 14px;
  background: #eef2ea;
}
.mail-sidebar button {
  text-align: left;
}
.mail-sidebar button:not(.primary) {
  background: transparent;
  border: 0;
  padding: 12px 16px;
  color: #355346;
  border-radius: 8px;
}
.mail-sidebar button[aria-current="true"] {
  background: #d9e4d5;
  font-weight: 700;
}
.mail-content {
  min-width: 0;
}
.mail-toolbar {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 22px;
  border-bottom: 1px solid #e5e8df;
}
.mail-toolbar h2 {
  margin: 0 auto 0 0;
}
.mail-toolbar input {
  max-width: 260px;
  min-width: 0;
}
.mail-delivery-note {
  font-size: 12px;
  color: #657569;
  margin: 14px 22px;
}
.mail-empty {
  padding: 50px 28px;
  color: #657569;
  line-height: 1.8;
}
.mail-row {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) 2fr auto;
  gap: 8px 18px;
  text-align: left;
  width: 100%;
  border: 0;
  border-top: 1px solid #e7eae2;
  background: transparent;
  padding: 18px 22px;
  color: #243f32;
}
.mail-row:hover {
  background: #f0f4ec;
}
.mail-row.unread {
  background: #f5f7f0;
}
.mail-row > * {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mail-preview {
  grid-column: 2;
  color: #758074;
}
.mail-row time {
  grid-column: 3;
  grid-row: 1;
  color: #758074;
  font-size: 12px;
}
.mail-reader,
#mail-compose {
  padding: 24px;
  border-top: 1px solid #d7dfd6;
}
.mail-reader p {
  font-size: 13px;
  color: #657569;
}
.mail-reader pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: inherit;
  line-height: 1.75;
  min-height: 120px;
  margin: 28px 0;
}
#mail-compose:not([hidden]) {
  display: grid;
  gap: 12px;
}
#mail-compose input,
#mail-compose textarea {
  width: 100%;
  box-sizing: border-box;
}
#mail-compose textarea {
  resize: vertical;
}
#notes-panel {
  margin: 26px 0;
}
#notes-panel summary {
  cursor: pointer;
  color: #526959;
  padding: 12px 0;
}
@media (max-width: 650px) {
  .mail-app {
    grid-template-columns: 1fr;
  }
  .mail-sidebar {
    flex-direction: row;
    overflow: auto;
    padding: 12px;
  }
  .mail-sidebar button {
    white-space: nowrap;
  }
  .mail-toolbar {
    flex-wrap: wrap;
    padding: 16px;
    gap: 10px;
  }
  .mail-toolbar input {
    max-width: 160px;
  }
  .mail-row {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 16px;
  }
  .mail-correspondent {
    grid-column: 1;
  }
  .mail-row strong {
    grid-column: 1;
  }
  .mail-preview {
    grid-column: 1;
  }
  .mail-row time {
    grid-column: 2;
  }
}
