@font-face {
  font-family: SUIT;
  src: url("/fonts/SUIT-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  font-family: SUIT, system-ui, sans-serif;
  color: #eef0f4;
  background: #0d0f13;
  font-synthesis: none;
  color-scheme: dark;
  --paper: #16191f;
  --ink: #eef0f4;
  --muted: #a1a8b5;
  --line: #303640;
  --accent: #d4edb0;
  --green: #1c271e;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
button:disabled,
button[aria-disabled="true"] {
  opacity: 0.5;
  cursor: default;
}
button {
  border: 0;
  background: none;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  word-break: keep-all;
}
p {
  overflow-wrap: anywhere;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  padding: 14px;
  background: var(--paper);
  z-index: 10;
  clip-path: inset(50%);
}
.skip-link:focus {
  clip-path: none;
}
.site-header {
  height: 96px;
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  gap: 20px;
}
.brand {
  display: flex;
  gap: 15px;
  align-items: center;
  font-size: 25px;
  font-weight: 750;
  letter-spacing: -1px;
}
.brand-mark {
  display: flex;
  font-family: Georgia, serif;
  font-size: 21px;
  letter-spacing: -8px;
  width: 36px;
  height: 36px;
  align-items: center;
  border: 1px solid var(--ink);
  padding-left: 5px;
}
.brand-mark span {
  transform: translateY(4px);
}
.brand-edition {
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 1.5px;
  max-width: 60px;
  line-height: 1.7;
  margin-left: 9px;
}
.header-tools {
  display: flex;
  align-items: center;
  gap: 32px;
}
.local-label {
  font:
    9px ui-monospace,
    monospace;
  letter-spacing: 1.1px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.local-label i {
  width: 6px;
  height: 6px;
  background: #758064;
  border-radius: 50%;
}
main {
  max-width: 1480px;
  margin: auto;
  padding: 0 5%;
  outline: none;
}
.eyebrow {
  font:
    10px ui-monospace,
    monospace;
  letter-spacing: 1.4px;
  line-height: 1.8;
}
.muted {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}
.text-button {
  font-size: 12px;
  min-height: 44px;
  padding: 10px 0;
  text-decoration: underline;
  text-underline-offset: 5px;
}
.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 48px;
  padding: 13px 20px;
  font-weight: 650;
  font-size: 13px;
  border: 1px solid var(--ink);
}
.primary-button {
  background: var(--ink);
  color: var(--paper);
}
.primary-button:hover {
  background: #c4dfa1;
}
.secondary-button {
  background: var(--paper);
}
.secondary-button:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.error {
  color: #ffaaa0;
  font-size: 13px;
  line-height: 1.8;
  white-space: pre-line;
}
.error:empty {
  display: none;
}
.field-note {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
}
.pill {
  border: 1px solid var(--line);
  padding: 5px 9px;
  display: inline-block;
  font-size: 10px;
  line-height: 1.4;
  white-space: nowrap;
}
.pill.accent {
  color: #ffd5a0;
  border-color: #795f3e;
  background: #2a2118;
}
.pill.good {
  color: #d4edb0;
  background: #1e2b20;
  border-color: #506849;
}
.auth-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  min-height: calc(100vh - 97px);
}
.auth-card {
  padding: 85px 0 60px 18%;
  align-self: center;
  max-width: 540px;
  width: 100%;
}
.auth-card h2 {
  font-size: 30px;
  letter-spacing: -1px;
  margin: 13px 0;
}
.auth-card form {
  margin-top: 32px;
}
.auth-card .primary-button {
  width: 100%;
}
.auth-card .text-button {
  margin-top: 18px;
}
label {
  display: block;
  font-size: 12px;
  font-weight: 650;
  margin-bottom: 20px;
}
input,
textarea {
  display: block;
  width: 100%;
  border: 1px solid #363c47;
  background: var(--paper);
  padding: 13px 14px;
  min-height: 48px;
  border-radius: 0;
  resize: vertical;
  font-size: 14px;
  margin-top: 9px;
}
textarea {
  min-height: 140px;
}
input:focus,
textarea:focus {
  border-color: var(--ink);
}
form .error {
  margin-bottom: 16px;
}
form .field-note {
  margin: -8px 0 20px;
}
.workspace-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  padding: 48px 0 35px;
}
.workspace-top h1 {
  font-size: clamp(27px, 3vw, 40px);
  font-weight: 570;
  letter-spacing: -1.5px;
  margin: 13px 0;
}
.balance-slip {
  border-left: 1px solid var(--line);
  padding-left: 35px;
  min-width: 190px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.balance-slip > span:first-child {
  font:
    9px ui-monospace,
    monospace;
  letter-spacing: 1.5px;
  color: var(--accent);
}
.balance-slip strong {
  font:
    52px Georgia,
    serif;
  letter-spacing: -2px;
}
.balance-slip > span:last-child {
  font-size: 11px;
  color: var(--muted);
}
.workspace-bar {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--ink);
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
}
.workspace-bar nav {
  display: flex;
  gap: 30px;
}
.workspace-bar nav a {
  padding: 17px 0;
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
  position: relative;
}
.workspace-bar nav a[aria-current="page"] {
  color: var(--ink);
  font-weight: 750;
}
.workspace-bar nav a[aria-current="page"]:after {
  content: "";
  height: 3px;
  background: var(--accent);
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
}
.page-error {
  margin: 0 0 22px;
}
.workspace-footer {
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 10px;
  color: var(--muted);
  padding: 25px 0 35px;
  margin-top: 48px;
}
.workspace-footer span:first-child {
  font:
    9px ui-monospace,
    monospace;
  letter-spacing: 0.7px;
}
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}
.section-title h2 {
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.7px;
}
.section-title > span {
  font:
    10px ui-monospace,
    monospace;
  color: var(--muted);
}
.stat {
  padding: 22px;
}
.stat + .stat {
  border-left: 1px solid var(--line);
}
.stat > span {
  display: block;
  font-size: 11px;
  color: var(--muted);
}
.stat strong {
  display: block;
  font:
    32px Georgia,
    serif;
  margin-top: 12px;
}
.collection-list {
  border-top: 1px solid var(--line);
}
.project-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 135px 95px;
  gap: 20px;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.project-number {
  font:
    15px Georgia,
    serif;
  color: #a1a8b5;
}
.project-row h3 {
  font-size: 15px;
  margin-bottom: 7px;
  font-weight: 650;
  overflow-wrap: anywhere;
}
.project-row p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
}
.project-row time {
  font:
    10px ui-monospace,
    monospace;
  color: var(--muted);
}
.empty-state {
  padding: 52px 24px;
  border: 1px dashed #363c47;
  text-align: center;
  background: #14171c;
}
.empty-state > span {
  font:
    30px Georgia,
    serif;
  color: #a1a8b5;
}
.empty-state h3 {
  font-size: 17px;
  margin: 15px 0 8px;
}
.empty-state p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.9;
}
.ledger-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 12px;
}
.table-scroll {
  overflow-x: auto;
}
.ledger-table th {
  font-weight: 500;
  font-size: 10px;
  color: var(--muted);
  padding: 12px 16px;
  background: #1b1f26;
  white-space: nowrap;
}
.ledger-table td {
  padding: 18px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  line-height: 1.6;
}
.ledger-table td small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.ledger-table .number {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.credit-positive {
  color: #d4edb0;
}
.credit-negative {
  color: var(--accent);
}
.row-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  white-space: nowrap;
}
.compact-button {
  border: 1px solid #363c47;
  padding: 10px 13px;
  min-height: 44px;
  white-space: nowrap;
  font-size: 11px;
}
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  margin-bottom: 35px;
  background: var(--paper);
}
.admin-note {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 24px;
}
.support-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(270px, 1fr);
  gap: 35px;
}
.support-compose {
  padding: 25px;
  background: var(--paper);
  border: 1px solid var(--line);
  align-self: start;
}
.support-compose h2 {
  font-size: 20px;
  margin-bottom: 12px;
}
.support-compose > p {
  margin-bottom: 24px;
}
.support-compose .primary-button {
  width: 100%;
}
.message-card {
  border: 1px solid var(--line);
  background: var(--paper);
  margin-bottom: 15px;
}
.message-card summary {
  cursor: pointer;
  padding: 20px;
  list-style: none;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}
.message-card summary::-webkit-details-marker {
  display: none;
}
.message-card summary h3 {
  font-size: 14px;
  font-weight: 650;
  line-height: 1.6;
}
.message-card summary p {
  font-size: 10px;
  color: var(--muted);
  margin-top: 6px;
}
.message-body {
  padding: 0 20px 20px;
}
.message-body > p,
.reply p {
  font-size: 13px;
  line-height: 1.9;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.reply {
  border-left: 2px solid #a9b390;
  margin: 20px 0;
  padding: 4px 0 4px 14px;
}
.reply-meta {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 8px;
}
.reply-form {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 20px;
}
.reply-form textarea {
  min-height: 85px;
}
.reply-form label {
  margin-bottom: 12px;
}
.message-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}
.support-help {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-top: 25px;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.9;
}
.icon-button {
  width: 44px;
  height: 44px;
  font-size: 26px;
  font-weight: 300;
}
.dialog-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
dialog {
  border: 1px solid var(--ink);
  background: var(--paper);
  padding: 28px 32px;
  width: min(440px, calc(100% - 32px));
  max-height: calc(100dvh - 40px);
  overflow: auto;
  color: var(--ink);
}
dialog::backdrop {
  background: #22282091;
  backdrop-filter: blur(3px);
}
dialog h2 {
  font-size: 27px;
  margin: 10px 0;
}
dialog .muted {
  margin-bottom: 25px;
}
dialog .primary-button {
  width: 100%;
}
.notice {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--paper);
  padding: 16px 24px;
  font-size: 13px;
  box-shadow: 0 6px 25px #0002;
  max-width: calc(100% - 32px);
  z-index: 10;
}
@media (max-width: 900px) {
  .brand-edition {
    display: none;
  }
  .auth-card {
    padding-left: 12%;
  }
  .auth-story {
    padding-right: 25px;
  }
  .archive-art {
    transform: scale(0.8);
    transform-origin: left center;
    margin-right: -50px;
  }
  .overview-grid {
    grid-template-columns: 1.2fr 1fr;
  }
  .support-grid {
    gap: 22px;
  }
  .project-row {
    grid-template-columns: 28px minmax(0, 1fr) 110px;
    gap: 12px;
  }
  .project-row time {
    display: none;
  }
  .stat {
    padding: 18px;
  }
  .ledger-table th,
  .ledger-table td {
    padding-left: 10px;
    padding-right: 10px;
  }
}
@media (max-width: 640px) {
  .site-header {
    height: 76px;
    padding: 0 20px;
  }
  .brand {
    font-size: 21px;
    gap: 10px;
  }
  .brand-mark {
    width: 31px;
    height: 31px;
    font-size: 18px;
  }
  .header-tools {
    gap: 12px;
  }
  .local-label {
    display: none;
  }
  main {
    padding: 0 20px;
  }
  .auth-layout {
    display: block;
    min-height: auto;
  }
  .auth-story {
    border-right: 0;
    padding: 34px 0 26px;
    border-bottom: 1px solid var(--line);
  }
  .auth-story h1 {
    font-size: 37px;
    margin: 15px 0;
    letter-spacing: -2px;
  }
  .auth-story > p {
    font-size: 12px;
    max-width: 190px;
  }
  .auth-story .eyebrow {
    font-size: 8px;
  }
  .archive-art {
    position: absolute;
    width: 235px;
    height: 260px;
    right: -98px;
    top: 58px;
    transform: scale(0.49);
    transform-origin: top left;
    pointer-events: none;
  }
  .story-bottom {
    display: none;
  }
  .auth-card {
    padding: 32px 0;
    max-width: none;
  }
  .auth-card h2 {
    font-size: 26px;
  }
  .auth-card form {
    margin-top: 24px;
  }
  .auth-note {
    margin-top: 28px;
  }
  .workspace-top {
    padding: 30px 0 25px;
    gap: 15px;
    align-items: flex-start;
  }
  .workspace-top h1 {
    font-size: 26px;
    line-height: 1.35;
    max-width: 220px;
    margin: 10px 0;
  }
  .workspace-top .muted {
    font-size: 11px;
  }
  .balance-slip {
    min-width: 90px;
    padding-left: 18px;
    gap: 6px;
    margin-top: 5px;
  }
  .balance-slip > span:first-child {
    font-size: 7px;
    letter-spacing: 0.6px;
  }
  .balance-slip strong {
    font-size: 36px;
  }
  .balance-slip > span:last-child {
    font-size: 9px;
  }
  .workspace-bar {
    gap: 14px;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 24px;
  }
  .workspace-bar nav {
    gap: 23px;
    overflow: visible;
    max-width: 100%;
    order: 2;
    flex: 1 1 100%;
  }
  .workspace-bar nav a {
    font-size: 12px;
    padding: 11px 0 16px;
  }
  .workspace-bar > #refresh {
    position: relative;
    margin-top: -13px;
    margin-bottom: -9px;
    margin-left: auto;
    min-height: 34px;
    font-size: 10px;
  }
  .overview-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .feature-panel {
    padding: 24px;
    min-height: 240px;
  }
  .feature-panel h2 {
    font-size: 28px;
  }
  .feature-panel p {
    max-width: 250px;
  }
  .feature-index {
    font-size: 150px;
  }
  .stats-row {
    margin-top: 18px;
  }
  .stat {
    padding: 17px 13px;
  }
  .stat strong {
    font-size: 27px;
  }
  .stat > span {
    font-size: 10px;
  }
  .download-panel {
    padding: 24px;
  }
  .section-title h2 {
    font-size: 18px;
  }
  .project-row {
    grid-template-columns: 21px minmax(0, 1fr) 80px;
    gap: 10px;
    padding: 19px 0;
  }
  .project-row h3 {
    font-size: 13px;
  }
  .project-row p {
    font-size: 10px;
  }
  .project-number {
    font-size: 13px;
  }
  .pill {
    font-size: 9px;
    padding: 5px 7px;
  }
  .workspace-footer {
    flex-direction: column;
    font-size: 9px;
    gap: 10px;
    margin-top: 32px;
  }
  .stat-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-strip .stat:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .stat-strip .stat:nth-child(4) {
    border-top: 1px solid var(--line);
  }
  .ledger-table {
    font-size: 11px;
    min-width: 450px;
  }
  .ledger-table.users-table {
    min-width: 640px;
  }
  .support-grid {
    display: flex;
    flex-direction: column;
  }
  .support-compose {
    order: -1;
    width: 100%;
    padding: 22px;
  }
  .support-compose textarea {
    min-height: 110px;
  }
  .message-card summary {
    padding: 18px;
  }
  .message-body {
    padding: 0 18px 18px;
  }
  dialog {
    padding: 20px 23px;
  }
  .auth-card .muted {
    font-size: 13px;
  }
  .recent-section {
    margin-top: 30px;
  }
}
.member-search {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 16px;
  margin: 0 0 24px;
}
.member-search label {
  display: grid;
  gap: 7px;
  flex: 1 1 180px;
}
.member-search input,
.member-search select {
  min-height: 44px;
  padding: 10px;
  border: 1px solid var(--line);
  background: transparent;
  color: inherit;
  font: inherit;
}
.member-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 24px 0;
}
.member-pagination button {
  min-height: 40px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.member-pagination button:disabled {
  opacity: 0.45;
  cursor: default;
}
.member-detail {
  margin-top: 32px;
  padding: 24px;
  border: 1px solid var(--line);
  overflow-wrap: anywhere;
}
.member-detail h3 {
  margin: 24px 0 12px;
}

.site-header {
  min-height: 84px;
  height: auto;
  max-width: 1280px;
  margin: auto;
  padding: 20px 32px;
  flex-wrap: wrap;
}
.brand {
  font-size: 20px;
  gap: 8px;
  letter-spacing: -0.6px;
}
.brand-period {
  color: #d4edb0;
  margin-left: -7px;
}
.brand-mark {
  position: relative;
  width: 24px;
  height: 28px;
  border: 0;
  border-radius: 0;
  padding: 0;
  display: inline-block;
  margin-right: 4px;
}
.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  width: 17px;
  height: 20px;
  border: 1.5px solid #d4edb0;
  border-radius: 4px;
}
.brand-mark::before {
  left: 0;
  top: 0;
}
.brand-mark::after {
  left: 7px;
  top: 7px;
  background: #0d0f13;
  border-color: #eceef0;
}
.header-tools {
  gap: 20px;
  flex-wrap: wrap;
}
.header-tools .text-button {
  color: #aeb5c0;
  font-size: 13px;
}
main {
  max-width: 1280px;
  padding: 0 32px;
}
.auth-layout {
  display: block;
  min-height: 0;
}
.auth-card {
  padding: 32px;
  margin: 56px auto;
  max-width: 460px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
}
.workspace-top {
  padding: 36px 0 24px;
}
.workspace-top h1 {
  font-size: 32px;
  font-weight: 700;
  margin: 8px 0;
}
.workspace-bar {
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 12px 24px;
  border-color: var(--line);
}
.workspace-bar nav {
  flex-wrap: wrap;
  gap: 8px 20px;
}
.workspace-bar > #refresh {
  margin-left: auto;
}
.primary-button {
  background: #d4edb0;
  color: #17200f;
  border-color: #d4edb0;
  border-radius: 9px;
}
.secondary-button,
.compact-button,
input,
textarea,
select,
.pill {
  border-radius: 8px;
}
.support-compose,
.message-card,
.member-detail,
dialog {
  border-radius: 14px;
}
.support-compose {
  background: var(--paper);
}
.support-compose h2 {
  margin-bottom: 24px;
}
.workspace-footer {
  flex-wrap: wrap;
  font-size: 12px;
}
.empty-state {
  padding: 40px 20px;
}
@media (max-width: 640px) {
  .site-header {
    padding: 20px;
    gap: 12px;
  }
  main {
    padding: 0 20px;
  }
  .header-tools {
    width: 100%;
    gap: 20px;
  }
  .auth-card {
    margin: 28px auto;
    padding: 24px;
  }
  .workspace-bar {
    display: flex;
  }
  .workspace-bar nav {
    width: 100%;
  }
  .workspace-top .muted {
    display: block;
  }
}
