@font-face {
  font-family: Inter;
  src: url("/assets/fonts/sans.ttf");
}
@font-face {
  font-family: Instrument;
  src: url("/assets/fonts/serif.ttf");
}
@font-face {
  font-family: Instrument;
  src: url("/assets/fonts/serif-italic.ttf");
  font-style: italic;
}
:root {
  --ink: #343d2e;
  --olive: #6b705c;
  --paper: #f5eee3;
  --cream: #fcf7ef;
  --muted: #626953;
  --line: #d9d9cc;
  --rose: #ddbea9;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-family: Instrument, Georgia, serif;
  font-weight: 400;
  line-height: 1.06;
}
h1 {
  font-size: 70px;
}
h2 {
  font-size: 40px;
}
em {
  font-weight: 400;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
a {
  color: inherit;
}
button {
  border: 0;
}
input,
textarea,
select {
  color: var(--ink);
  background: #fffdf8;
  border: 1px solid #bfc1b2;
  padding: 12px 14px;
  min-height: 46px;
  border-radius: 4px;
  max-width: 100%;
  width: 100%;
}
textarea {
  resize: vertical;
}
label {
  display: block;
  margin: 18px 0 7px;
  font-weight: 600;
  font-size: 12px;
}
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid var(--olive);
  outline-offset: 2px;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #cb997e;
  outline-offset: 4px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 600;
}
.muted {
  color: var(--muted);
}
.primary,
.secondary,
.quiet {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  min-height: 46px;
  padding: 12px 20px;
  border-radius: 4px;
  text-decoration: none;
}
.primary {
  color: white;
  background: var(--ink);
}
.primary:hover {
  background: #505c42;
}
.primary span {
  margin-left: auto;
}
.secondary {
  border: 1px solid #b6b9a9;
  background: transparent;
}
.quiet {
  background: transparent;
  color: var(--ink);
  padding: 10px 12px;
}
.quiet:hover,
.secondary:hover {
  background: #6b705c12;
}
.login-layout {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.login-story {
  padding: 8vh 8vw;
  background: var(--olive);
  color: var(--cream);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 28px;
}
.login-story img {
  object-fit: contain;
  filter: grayscale(1) contrast(0.18) brightness(1.95);
}
.login-story h1 {
  font-size: clamp(58px, 6vw, 96px);
}
.login-story > span {
  font-family: Instrument;
  font-size: 25px;
  font-style: italic;
  margin-top: 26px;
}
.login-card {
  align-self: center;
  width: min(420px, 100%);
  margin: auto;
  padding: 48px 24px;
}
.login-card h2 {
  font-size: 52px;
  margin: 24px 0;
}
.login-card form {
  margin: 28px 0;
}
.login-card .primary {
  width: 100%;
  margin-top: 18px;
}
small {
  color: var(--muted);
  font-size: 11px;
}
.topbar {
  padding: 16px max(24px, 5vw);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.topbar > a {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  font: 25px Instrument;
}
.topbar img {
  object-fit: contain;
}
.topbar small {
  display: block;
  font: 8px Inter;
  letter-spacing: 2px;
  margin-top: 4px;
}
.topbar > div {
  display: flex;
  align-items: center;
  gap: 10px;
}
.workspace {
  max-width: 1440px;
  margin: auto;
  padding: 55px 5vw 80px;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 35px;
}
.page-heading h1 {
  margin: 13px 0;
}
.stats {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin-bottom: 36px;
}
.stat {
  background: var(--cream);
  border: 1px solid var(--line);
  padding: 20px;
  border-radius: 5px;
}
.stat strong {
  display: block;
  font: 44px Instrument;
  margin-bottom: 8px;
}
.stat span {
  font-size: 11px;
  color: var(--muted);
}
.views {
  display: flex;
  gap: 28px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
  overflow-x: auto;
}
.views button {
  white-space: nowrap;
  background: none;
  color: var(--muted);
  padding: 15px 0;
  border-bottom: 2px solid transparent;
}
.views button[aria-pressed="true"] {
  color: var(--ink);
  border-color: var(--ink);
}
.toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
}
.toolbar .search {
  flex: 1;
}
.toolbar select {
  width: 185px;
}
.toolbar button {
  white-space: nowrap;
}
.list-caption {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  font-size: 11px;
  color: var(--muted);
  margin: 20px 0;
}
.invite-card {
  border: 1px solid var(--line);
  background: var(--cream);
  border-radius: 5px;
  margin: 12px 0;
  display: grid;
  grid-template-columns: 1.5fr 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 22px;
}
.invite-card h3 {
  font-size: 28px;
  margin-bottom: 7px;
  overflow-wrap: anywhere;
}
.invite-card p {
  font-size: 12px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 10px;
  background: #e6e6db;
  color: #4a503e;
  margin-bottom: 7px;
}
.badge.yes,
.badge.sent {
  background: #e1e8db;
  color: #354b2a;
}
.badge.no,
.badge.failed {
  background: #f1ddd6;
  color: #7a3c25;
}
.badge.maybe,
.badge.uncertain {
  background: #f2e4c9;
  color: #79521e;
}
.actions {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: 265px;
}
.actions button,
.actions a {
  min-height: 40px;
  padding: 8px 10px;
  font-size: 11px;
  border-radius: 3px;
  background: transparent;
  color: var(--ink);
  border: 1px solid #cacebf;
  text-decoration: none;
}
.actions button:hover,
.actions a:hover {
  background: #e7e8da;
}
.actions .send {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}
.empty {
  padding: 70px 25px;
  text-align: center;
  border: 1px dashed #b8bdab;
  border-radius: 5px;
  color: var(--muted);
}
.empty h2 {
  margin-bottom: 16px;
}
.section-title {
  max-width: 720px;
  margin: 32px 0;
}
.section-title p {
  margin-top: 15px;
  color: var(--muted);
}
.mail-row {
  padding: 18px 20px;
  background: var(--cream);
  border: 1px solid var(--line);
  margin: 10px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.mail-row p {
  overflow-wrap: anywhere;
}
.mail-row small {
  display: block;
}
.settings-card {
  max-width: 720px;
  background: var(--cream);
  border: 1px solid var(--line);
  padding: 36px;
}
.settings-card h2 {
  margin: 20px 0;
}
.settings-card form {
  margin: 24px 0;
}
.settings-card .primary {
  margin-top: 18px;
}
footer {
  padding: 22px 5vw;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
}
dialog {
  width: min(680px, calc(100% - 28px));
  max-height: calc(100svh - 32px);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 30px;
  color: var(--ink);
  background: var(--cream);
}
dialog::backdrop {
  background: #1c271fc9;
  backdrop-filter: blur(4px);
}
dialog header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}
dialog h2 {
  font-size: 38px;
  margin-top: 12px;
}
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  align-self: center;
}
.checkbox input {
  width: 20px;
  min-height: 20px;
}
.two-col > div {
  min-width: 0;
}
#invite-form > .primary {
  width: 100%;
  margin-top: 20px;
}
#invite-form > .muted {
  font-size: 11px;
  margin-top: 12px;
}
#login-error,
#editor-error {
  color: #963c23;
  font-size: 13px;
  min-height: 22px;
}
#response-detail {
  padding: 20px 0;
  border-top: 1px solid var(--line);
  margin-top: 24px;
  white-space: pre-wrap;
  font-size: 13px;
  overflow-wrap: anywhere;
}
#notice {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100% - 32px);
  padding: 15px 22px;
  background: var(--ink);
  color: white;
  border-radius: 5px;
  box-shadow: 0 8px 35px #0003;
  z-index: 100;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 1000px) {
  .stats {
    grid-template-columns: repeat(3, 1fr);
  }
  .invite-card {
    grid-template-columns: 1.5fr 1fr;
  }
  .actions {
    grid-column: 1/-1;
    max-width: none;
    justify-content: flex-start;
  }
  .login-story {
    padding: 40px;
  }
  .toolbar {
    flex-wrap: wrap;
  }
  .toolbar .search {
    flex-basis: 50%;
  }
}
@media (max-width: 620px) {
  .login-layout {
    display: block;
  }
  .login-story {
    min-height: auto;
    padding: 35px 28px;
    gap: 12px;
  }
  .login-story img {
    width: 70px;
    height: 70px;
  }
  .login-story h1 {
    font-size: 48px;
  }
  .login-story > p:not(.eyebrow),
  .login-story > span {
    display: none;
  }
  .login-card {
    padding: 35px 24px;
  }
  .login-card h2 {
    font-size: 42px;
  }
  .topbar {
    padding: 12px 18px;
  }
  .topbar img {
    width: 44px;
    height: 52px;
  }
  .topbar > a {
    gap: 8px;
    font-size: 21px;
  }
  .topbar small {
    font-size: 6px;
    letter-spacing: 1px;
  }
  .topbar > div > span {
    display: none;
  }
  .topbar .quiet {
    font-size: 11px;
    padding: 8px;
  }
  .workspace {
    padding: 35px 20px 60px;
  }
  .page-heading {
    display: block;
  }
  .page-heading h1 {
    font-size: 58px;
  }
  .page-heading > .primary {
    margin-top: 24px;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .stat {
    padding: 15px;
  }
  .stat strong {
    font-size: 37px;
  }
  .views {
    gap: 22px;
    font-size: 12px;
  }
  .toolbar .search {
    flex-basis: 100%;
  }
  .toolbar select {
    flex: 1;
    width: 100%;
  }
  .toolbar .secondary {
    padding: 10px;
  }
  .toolbar #refresh {
    display: none;
  }
  .list-caption {
    display: block;
  }
  .list-caption > span {
    display: block;
    margin: 8px 0;
  }
  .invite-card {
    padding: 18px;
    gap: 14px;
    grid-template-columns: 1fr;
  }
  .actions {
    grid-column: auto;
  }
  .settings-card {
    padding: 24px;
  }
  .settings-card h2 {
    font-size: 36px;
  }
  .mail-row {
    align-items: flex-start;
    flex-direction: column;
  }
  .two-col {
    grid-template-columns: 1fr;
    gap: 0;
  }
  dialog {
    padding: 22px;
  }
  footer {
    display: block;
  }
  footer span {
    display: block;
    margin-top: 8px;
  }
}

#confirm-action {
  max-width: 460px;
}
#confirm-message {
  margin: 24px 0;
}
.confirm-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}
